@versini/sassysaint 8.12.4 → 8.12.5
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.CVZ99NTb.js → App.Cm4K7QbR.js} +864 -869
- package/dist/chunks/{CPIOZS5X.Cb1-Hob1.js → CPIOZS5X.wpz4tQ4p.js} +1 -1
- package/dist/chunks/{Chart.CDkY9ycF.js → Chart.C5O_JbB2.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BGulOYAA.js → ChatBubbleAssistant.C-koz0tD.js} +6 -6
- package/dist/chunks/{index.BzL2ch6C.js → index.BIk4_5Pq.js} +3 -3
- package/dist/chunks/{index.D7ZGOJfS.js → index.BPUw9YjI.js} +2 -2
- package/dist/chunks/{index.Dejh-w-c.js → index.CC9kR-0D.js} +1 -1
- package/dist/chunks/{index.osC64-ID.js → index.DJfETc-L.js} +1 -1
- package/dist/chunks/{index.Ctdiy7Rm.js → index.Dlji9Y00.js} +2 -2
- package/dist/chunks/{index.DhhZOjPw.js → index.dTEgiBA5.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -4,19 +4,19 @@ var Eo = (e) => {
|
|
4
4
|
var jr = (e, t, r) => t.has(e) || Eo("Cannot " + r);
|
5
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) ? Eo("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), ce = (e, t, r) => (jr(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as N, Fragment as se } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as zi, pendingThenable as Io, resolveEnabled as Ve, shallowEqualObjects as da, resolveStaleTime as kr, noop as Vi, isServer as ua, isValidTimeout as Co, focusManager as Fi, fetchState as Ui, replaceData as So, notifyManager as
|
7
|
+
import { Subscribable as zi, pendingThenable as Io, resolveEnabled as Ve, shallowEqualObjects as da, resolveStaleTime as kr, noop as Vi, isServer as ua, isValidTimeout as Co, focusManager as Fi, fetchState as Ui, replaceData as So, notifyManager as zn, timeUntilStale as Hi, useQueryClient as Gi, I as ae, ACTION_SORT as fa, ACTION_SEARCH as Vn, ACTION_RESET_PROMPT as Fn, ACTION_TOGGLE_PROMPT as Un, isElectron as ha, isProbablyiPhone as ma, re as Se, DEFAULT_ICON_ACTION_SIZE as Ke, L as er, j as He, C as mt, LOCAL_STORAGE_PREFIX as pt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ji, Qr as Ne, LOCAL_STORAGE_REASONING_DISCLOSURE as Wi, TOAST_CHAT_SAVED as qi, toastOptions as Er, TOAST_PROVIDER_CHANGED as Hn, PROMPT_CLASSNAME as Yi, PROMPT_EDITABLE_AREA_CLASSNAME as Ji, ERROR_MESSAGE as Ki, ROLE_INTERNAL as pa, CLIPBOARD_PROMPT as No, isProbablyMobile as Qe, qr as Gn, GRANTS as jn, INPUT_PLACEHOLDER_TEXT as Ro, FOOTER_DISCLAIMER as Qi, S as Oe, renderDataAsList as Ir, CARDS as ne, pluralize as jt, ABOUT_TITLE as Xi, INFINITE_SCROLL_LIMIT as Ao, INFINITE_SCROLL_THRESHOLD as Oo, LOCAL_STORAGE_SORT as Wn, APP_CLASSNAME as qn, TOAST_CHAT_DELETED as Zi, LOCAL_STORAGE_SEARCH as Yn, HISTORY_TITLE as el, fe as tl, debounce as rl, x as al, l as $o, PROFILE_TITLE as ol, LOCAL_STORAGE_CHAT_DETAILS as nl, SETTINGS_TITLE as sl, APP_NAME as il, PROMPTS_DESCRIPTION as ll, getCurrentGeoLocation as cl, USAGE_TITLE as dl, LOG_OUT as Lo, getMessageContaintWrapperClass as ul, UI_FOOTER_BUFFER as Jn, UI_BUTTON_SCROLL_BUFFER as fl, Logo as hl, UI_DEFAULT_MAIN_HEIGHT as Mo, getMainPaddingClass as Do, I$1 as ml } from "./index.Dlji9Y00.js";
|
8
8
|
import p from "clsx";
|
9
9
|
import * as te from "react";
|
10
|
-
import U, { useEffect as P, useRef as $, useState as F, useCallback as Y, useSyncExternalStore as Kn, useMemo as Ee, useId as Or, useContext as X, useLayoutEffect as ge, isValidElement as $r, cloneElement as
|
11
|
-
import { useMergeRefs as
|
12
|
-
var xe, j, Xt,
|
10
|
+
import U, { useEffect as P, useRef as $, useState as F, useCallback as Y, useSyncExternalStore as Kn, useMemo as Ee, useId as Or, useContext as X, useLayoutEffect as ge, isValidElement as $r, cloneElement as Ka, createContext as Qn, useDebugValue as pl, forwardRef as Xn, Fragment as gl, useReducer as Ut, Suspense as Zn, lazy as es } from "react";
|
11
|
+
import { useMergeRefs as Qa, FloatingPortal as ts, FloatingOverlay as yl, FloatingFocusManager as rs, useFloating as as, useClick as os, useDismiss as ns, useRole as ss, useInteractions as is, FloatingTree as bl, useFloatingTree as ls, useFloatingNodeId as vl, useListItem as cs, autoUpdate as _l, offset as wl, flip as kl, shift as xl, useListNavigation as Tl, useTypeahead as El, FloatingNode as Il, FloatingList as Cl } from "@floating-ui/react";
|
12
|
+
var xe, j, Xt, ye, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, ga, ya, ba, va, _a, wa, ka, ds, Pn, Sl = (Pn = class extends zi {
|
13
13
|
constructor(t, r) {
|
14
14
|
super();
|
15
15
|
fe(this, Z);
|
16
16
|
fe(this, xe);
|
17
17
|
fe(this, j);
|
18
18
|
fe(this, Xt);
|
19
|
-
fe(this,
|
19
|
+
fe(this, ye);
|
20
20
|
fe(this, ut);
|
21
21
|
fe(this, St);
|
22
22
|
fe(this, tt);
|
@@ -38,27 +38,27 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
38
38
|
this.refetch = this.refetch.bind(this);
|
39
39
|
}
|
40
40
|
onSubscribe() {
|
41
|
-
this.listeners.size === 1 && (O(this, j).addObserver(this), Bo(O(this, j), this.options) ? ce(this, Z, Ht).call(this) : this.updateResult(), ce(this, Z,
|
41
|
+
this.listeners.size === 1 && (O(this, j).addObserver(this), Bo(O(this, j), this.options) ? ce(this, Z, Ht).call(this) : this.updateResult(), ce(this, Z, va).call(this));
|
42
42
|
}
|
43
43
|
onUnsubscribe() {
|
44
44
|
this.hasListeners() || this.destroy();
|
45
45
|
}
|
46
46
|
shouldFetchOnReconnect() {
|
47
|
-
return
|
47
|
+
return xa(
|
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 xa(
|
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(), ce(this, Z,
|
61
|
+
this.listeners = /* @__PURE__ */ new Set(), ce(this, Z, _a).call(this), ce(this, Z, wa).call(this), O(this, j).removeObserver(this);
|
62
62
|
}
|
63
63
|
setOptions(t) {
|
64
64
|
const r = this.options, a = O(this, j);
|
@@ -66,7 +66,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
66
66
|
throw new Error(
|
67
67
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
68
68
|
);
|
69
|
-
ce(this, Z,
|
69
|
+
ce(this, Z, ka).call(this), O(this, j).setOptions(this.options), r._defaulted && !da(this.options, r) && O(this, xe).getQueryCache().notify({
|
70
70
|
type: "observerOptionsUpdated",
|
71
71
|
query: O(this, j),
|
72
72
|
observer: this
|
@@ -77,16 +77,16 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
77
77
|
a,
|
78
78
|
this.options,
|
79
79
|
r
|
80
|
-
) && ce(this, Z, Ht).call(this), this.updateResult(), o && (O(this, j) !== a || Ve(this.options.enabled, O(this, j)) !== Ve(r.enabled, O(this, j)) || kr(this.options.staleTime, O(this, j)) !== kr(r.staleTime, O(this, j))) && ce(this, Z,
|
81
|
-
const n = ce(this, Z,
|
82
|
-
o && (O(this, j) !== a || Ve(this.options.enabled, O(this, j)) !== Ve(r.enabled, O(this, j)) || n !== O(this, rt)) && ce(this, Z,
|
80
|
+
) && ce(this, Z, Ht).call(this), this.updateResult(), o && (O(this, j) !== a || Ve(this.options.enabled, O(this, j)) !== Ve(r.enabled, O(this, j)) || kr(this.options.staleTime, O(this, j)) !== kr(r.staleTime, O(this, j))) && ce(this, Z, ga).call(this);
|
81
|
+
const n = ce(this, Z, ya).call(this);
|
82
|
+
o && (O(this, j) !== a || Ve(this.options.enabled, O(this, j)) !== Ve(r.enabled, O(this, j)) || n !== O(this, rt)) && ce(this, Z, ba).call(this, n);
|
83
83
|
}
|
84
84
|
getOptimisticResult(t) {
|
85
85
|
const r = O(this, xe).getQueryCache().build(O(this, xe), t), a = this.createResult(r, t);
|
86
|
-
return Rl(this, a) && (re(this,
|
86
|
+
return Rl(this, a) && (re(this, ye, a), re(this, St, this.options), re(this, ut, O(this, j).state)), a;
|
87
87
|
}
|
88
88
|
getCurrentResult() {
|
89
|
-
return O(this,
|
89
|
+
return O(this, ye);
|
90
90
|
}
|
91
91
|
trackResult(t, r) {
|
92
92
|
const a = {};
|
@@ -117,11 +117,11 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
117
117
|
return ce(this, Z, Ht).call(this, {
|
118
118
|
...t,
|
119
119
|
cancelRefetch: t.cancelRefetch ?? !0
|
120
|
-
}).then(() => (this.updateResult(), O(this,
|
120
|
+
}).then(() => (this.updateResult(), O(this, ye)));
|
121
121
|
}
|
122
122
|
createResult(t, r) {
|
123
123
|
var E;
|
124
|
-
const a = O(this, j), o = this.options, n = O(this,
|
124
|
+
const a = O(this, j), o = this.options, n = O(this, ye), s = O(this, ut), i = O(this, St), d = t !== a ? t.state : O(this, Xt), { state: f } = t;
|
125
125
|
let u = { ...f }, h = !1, m;
|
126
126
|
if (r._optimisticResults) {
|
127
127
|
const k = this.hasListeners(), R = !k && Bo(t, r), S = k && Po(t, a, r, o);
|
@@ -144,7 +144,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
144
144
|
m = u.data;
|
145
145
|
if (r.placeholderData !== void 0 && m === void 0 && b === "pending") {
|
146
146
|
let k;
|
147
|
-
if (n != null && n.isPlaceholderData && r.placeholderData === (
|
147
|
+
if (n != null && n.isPlaceholderData && r.placeholderData === (i == null ? void 0 : i.placeholderData))
|
148
148
|
k = n.data;
|
149
149
|
else if (k = typeof r.placeholderData == "function" ? r.placeholderData(
|
150
150
|
(E = O(this, Rt)) == null ? void 0 : E.state.data,
|
@@ -185,7 +185,7 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
185
185
|
isPaused: u.fetchStatus === "paused",
|
186
186
|
isPlaceholderData: h,
|
187
187
|
isRefetchError: x && I,
|
188
|
-
isStale:
|
188
|
+
isStale: Xa(t, r),
|
189
189
|
refetch: this.refetch,
|
190
190
|
promise: O(this, tt)
|
191
191
|
};
|
@@ -211,10 +211,10 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
211
211
|
return T;
|
212
212
|
}
|
213
213
|
updateResult() {
|
214
|
-
const t = O(this,
|
214
|
+
const t = O(this, ye), r = this.createResult(O(this, j), this.options);
|
215
215
|
if (re(this, ut, O(this, j).state), re(this, St, this.options), O(this, ut).data !== void 0 && re(this, Rt, O(this, j)), da(r, t))
|
216
216
|
return;
|
217
|
-
re(this,
|
217
|
+
re(this, ye, r);
|
218
218
|
const a = () => {
|
219
219
|
if (!t)
|
220
220
|
return !0;
|
@@ -224,80 +224,80 @@ var xe, j, Xt, be, ut, St, tt, ze, Zt, Nt, Rt, ft, ht, rt, At, Z, Ht, pa, ga, ya
|
|
224
224
|
const s = new Set(
|
225
225
|
n ?? O(this, At)
|
226
226
|
);
|
227
|
-
return this.options.throwOnError && s.add("error"), Object.keys(O(this,
|
228
|
-
const
|
229
|
-
return O(this,
|
227
|
+
return this.options.throwOnError && s.add("error"), Object.keys(O(this, ye)).some((i) => {
|
228
|
+
const l = i;
|
229
|
+
return O(this, ye)[l] !== t[l] && s.has(l);
|
230
230
|
});
|
231
231
|
};
|
232
232
|
ce(this, Z, ds).call(this, { listeners: a() });
|
233
233
|
}
|
234
234
|
onQueryUpdate() {
|
235
|
-
this.updateResult(), this.hasListeners() && ce(this, Z,
|
235
|
+
this.updateResult(), this.hasListeners() && ce(this, Z, va).call(this);
|
236
236
|
}
|
237
|
-
}, xe = new WeakMap(), j = new WeakMap(), Xt = new WeakMap(),
|
238
|
-
ce(this, Z,
|
237
|
+
}, xe = new WeakMap(), j = new WeakMap(), Xt = new WeakMap(), ye = new WeakMap(), ut = new WeakMap(), St = new WeakMap(), tt = new WeakMap(), ze = new WeakMap(), Zt = new WeakMap(), Nt = new WeakMap(), Rt = new WeakMap(), ft = new WeakMap(), ht = new WeakMap(), rt = new WeakMap(), At = new WeakMap(), Z = new WeakSet(), Ht = function(t) {
|
238
|
+
ce(this, Z, ka).call(this);
|
239
239
|
let r = O(this, j).fetch(
|
240
240
|
this.options,
|
241
241
|
t
|
242
242
|
);
|
243
243
|
return t != null && t.throwOnError || (r = r.catch(Vi)), r;
|
244
|
-
},
|
245
|
-
ce(this, Z,
|
244
|
+
}, ga = function() {
|
245
|
+
ce(this, Z, _a).call(this);
|
246
246
|
const t = kr(
|
247
247
|
this.options.staleTime,
|
248
248
|
O(this, j)
|
249
249
|
);
|
250
|
-
if (ua || O(this,
|
250
|
+
if (ua || O(this, ye).isStale || !Co(t))
|
251
251
|
return;
|
252
|
-
const a = Hi(O(this,
|
252
|
+
const a = Hi(O(this, ye).dataUpdatedAt, t) + 1;
|
253
253
|
re(this, ft, setTimeout(() => {
|
254
|
-
O(this,
|
254
|
+
O(this, ye).isStale || this.updateResult();
|
255
255
|
}, a));
|
256
|
-
},
|
256
|
+
}, ya = function() {
|
257
257
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(O(this, j)) : this.options.refetchInterval) ?? !1;
|
258
|
-
},
|
259
|
-
ce(this, Z,
|
258
|
+
}, ba = function(t) {
|
259
|
+
ce(this, Z, wa).call(this), re(this, rt, t), !(ua || Ve(this.options.enabled, O(this, j)) === !1 || !Co(O(this, rt)) || O(this, rt) === 0) && re(this, ht, setInterval(() => {
|
260
260
|
(this.options.refetchIntervalInBackground || Fi.isFocused()) && ce(this, Z, Ht).call(this);
|
261
261
|
}, O(this, rt)));
|
262
|
-
}, ba = function() {
|
263
|
-
ce(this, Z, pa).call(this), ce(this, Z, ya).call(this, ce(this, Z, ga).call(this));
|
264
262
|
}, va = function() {
|
265
|
-
|
263
|
+
ce(this, Z, ga).call(this), ce(this, Z, ba).call(this, ce(this, Z, ya).call(this));
|
266
264
|
}, _a = function() {
|
267
|
-
O(this,
|
265
|
+
O(this, ft) && (clearTimeout(O(this, ft)), re(this, ft, void 0));
|
268
266
|
}, wa = function() {
|
267
|
+
O(this, ht) && (clearInterval(O(this, ht)), re(this, ht, void 0));
|
268
|
+
}, ka = 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, Xt, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
274
274
|
}, ds = function(t) {
|
275
|
-
|
275
|
+
zn.batch(() => {
|
276
276
|
t.listeners && this.listeners.forEach((r) => {
|
277
|
-
r(O(this,
|
277
|
+
r(O(this, ye));
|
278
278
|
}), O(this, xe).getQueryCache().notify({
|
279
279
|
query: O(this, j),
|
280
280
|
type: "observerResultsUpdated"
|
281
281
|
});
|
282
282
|
});
|
283
|
-
},
|
283
|
+
}, Pn);
|
284
284
|
function Nl(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
287
|
function Bo(e, t) {
|
288
|
-
return Nl(e, t) || e.state.data !== void 0 &&
|
288
|
+
return Nl(e, t) || e.state.data !== void 0 && xa(e, t, t.refetchOnMount);
|
289
289
|
}
|
290
|
-
function
|
290
|
+
function xa(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 && Xa(e, t);
|
294
294
|
}
|
295
295
|
return !1;
|
296
296
|
}
|
297
297
|
function Po(e, t, r, a) {
|
298
|
-
return (e !== t || Ve(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
298
|
+
return (e !== t || Ve(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Xa(e, r);
|
299
299
|
}
|
300
|
-
function
|
300
|
+
function Xa(e, t) {
|
301
301
|
return Ve(t.enabled, e) !== !1 && e.isStaleByTime(kr(t.staleTime, e));
|
302
302
|
}
|
303
303
|
function Rl(e, t) {
|
@@ -353,26 +353,26 @@ function Hl(e, t, r) {
|
|
353
353
|
), process.env.NODE_ENV !== "production" && (s.queryFn || console.error(
|
354
354
|
`[${s.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
355
355
|
)), s._optimisticResults = o ? "isRestoring" : "optimistic", Vl(s), Bl(s, n), Pl(n);
|
356
|
-
const
|
356
|
+
const i = !a.getQueryCache().get(s.queryHash), [l] = te.useState(
|
357
357
|
() => new t(
|
358
358
|
a,
|
359
359
|
s
|
360
360
|
)
|
361
|
-
), d =
|
361
|
+
), d = l.getOptimisticResult(s), f = !o && e.subscribed !== !1;
|
362
362
|
if (te.useSyncExternalStore(
|
363
363
|
te.useCallback(
|
364
364
|
(b) => {
|
365
|
-
const v = f ?
|
366
|
-
return
|
365
|
+
const v = f ? l.subscribe(zn.batchCalls(b)) : zo;
|
366
|
+
return l.updateResult(), v;
|
367
367
|
},
|
368
|
-
[
|
368
|
+
[l, f]
|
369
369
|
),
|
370
|
-
() =>
|
371
|
-
() =>
|
370
|
+
() => l.getCurrentResult(),
|
371
|
+
() => l.getCurrentResult()
|
372
372
|
), te.useEffect(() => {
|
373
|
-
|
374
|
-
}, [s,
|
375
|
-
throw Vo(s,
|
373
|
+
l.setOptions(s);
|
374
|
+
}, [s, l]), Ul(s, d))
|
375
|
+
throw Vo(s, l, n);
|
376
376
|
if (zl({
|
377
377
|
result: d,
|
378
378
|
errorResetBoundary: n,
|
@@ -386,18 +386,18 @@ function Hl(e, t, r) {
|
|
386
386
|
s,
|
387
387
|
d
|
388
388
|
), s.experimental_prefetchInRender && !ua && Fl(d, o)) {
|
389
|
-
const b =
|
389
|
+
const b = i ? (
|
390
390
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
391
|
-
Vo(s,
|
391
|
+
Vo(s, l, n)
|
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
396
|
b == null || b.catch(zo).finally(() => {
|
397
|
-
|
397
|
+
l.updateResult();
|
398
398
|
});
|
399
399
|
}
|
400
|
-
return s.notifyOnChangeProps ? d :
|
400
|
+
return s.notifyOnChangeProps ? d : l.trackResult(d);
|
401
401
|
}
|
402
402
|
function tr(e, t) {
|
403
403
|
return Hl(e, Sl, t);
|
@@ -1009,8 +1009,8 @@ const dc = "av-header", uc = ({
|
|
1009
1009
|
noColors: o = !1,
|
1010
1010
|
sticky: n = !1,
|
1011
1011
|
noBorder: s = !1,
|
1012
|
-
noMargin:
|
1013
|
-
noPadding:
|
1012
|
+
noMargin: i = !1,
|
1013
|
+
noPadding: l = !1,
|
1014
1014
|
...d
|
1015
1015
|
}) => {
|
1016
1016
|
const f = p(
|
@@ -1030,8 +1030,8 @@ const dc = "av-header", uc = ({
|
|
1030
1030
|
},
|
1031
1031
|
t
|
1032
1032
|
), u = p({
|
1033
|
-
"mt-0": !
|
1034
|
-
"p-2": !
|
1033
|
+
"mt-0": !i,
|
1034
|
+
"p-2": !l,
|
1035
1035
|
"flex flex-col w-full md:mx-auto md:max-w-4xl": !r
|
1036
1036
|
});
|
1037
1037
|
return /* @__PURE__ */ c("header", { className: f, ...d, children: /* @__PURE__ */ c("div", { className: u, children: e }) });
|
@@ -1050,15 +1050,15 @@ function fc(e) {
|
|
1050
1050
|
};
|
1051
1051
|
}
|
1052
1052
|
function hc(e, t) {
|
1053
|
-
const { alt: r, ctrl: a, meta: o, mod: n, shift: s, key:
|
1054
|
-
if (r !==
|
1053
|
+
const { alt: r, ctrl: a, meta: o, mod: n, shift: s, key: i } = e, { altKey: l, ctrlKey: d, metaKey: f, shiftKey: u, key: h } = t;
|
1054
|
+
if (r !== l)
|
1055
1055
|
return !1;
|
1056
1056
|
if (n) {
|
1057
1057
|
if (!d && !f)
|
1058
1058
|
return !1;
|
1059
1059
|
} else if (a !== d || o !== f)
|
1060
1060
|
return !1;
|
1061
|
-
return s !== u ? !1 : !!(
|
1061
|
+
return s !== u ? !1 : !!(i && (h.toLowerCase() === i.toLowerCase() || t.code.replace("Key", "").toLowerCase() === i.toLowerCase()));
|
1062
1062
|
}
|
1063
1063
|
function ps(e) {
|
1064
1064
|
return (t) => hc(fc(e), t);
|
@@ -1078,8 +1078,8 @@ function gs(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
1078
1078
|
P(() => {
|
1079
1079
|
const a = (o) => {
|
1080
1080
|
e.forEach(
|
1081
|
-
([n, s,
|
1082
|
-
ps(n)(o) && pc(o, t, r) && (
|
1081
|
+
([n, s, i = { preventDefault: !0 }]) => {
|
1082
|
+
ps(n)(o) && pc(o, t, r) && (i.preventDefault && o.preventDefault(), s(o));
|
1083
1083
|
}
|
1084
1084
|
);
|
1085
1085
|
};
|
@@ -1091,7 +1091,7 @@ function gc() {
|
|
1091
1091
|
return { ref: Y((a) => {
|
1092
1092
|
var o, n;
|
1093
1093
|
typeof IntersectionObserver < "u" && (a && !e.current ? e.current = new IntersectionObserver(
|
1094
|
-
(s) => r(s.some((
|
1094
|
+
(s) => r(s.some((i) => i.isIntersecting))
|
1095
1095
|
) : (o = e.current) == null || o.disconnect(), a ? (n = e.current) == null || n.observe(a) : r(!1));
|
1096
1096
|
}, []), inViewport: t };
|
1097
1097
|
}
|
@@ -1119,10 +1119,10 @@ function gt({
|
|
1119
1119
|
const r = Kn(vc, () => Uo(e)), a = Y(
|
1120
1120
|
(s) => {
|
1121
1121
|
try {
|
1122
|
-
const
|
1123
|
-
|
1124
|
-
} catch (
|
1125
|
-
console.warn(
|
1122
|
+
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
1123
|
+
i == null ? bc(e) : Fo(e, i);
|
1124
|
+
} catch (i) {
|
1125
|
+
console.warn(i);
|
1126
1126
|
}
|
1127
1127
|
},
|
1128
1128
|
[e, r]
|
@@ -1150,10 +1150,10 @@ const _c = {
|
|
1150
1150
|
right: 0
|
1151
1151
|
};
|
1152
1152
|
function bs(e) {
|
1153
|
-
const t = yc(), r = $(0), a = $(null), [o, n] = F(_c), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((
|
1154
|
-
const
|
1155
|
-
|
1156
|
-
a.current && t() && n(
|
1153
|
+
const t = yc(), r = $(0), a = $(null), [o, n] = F(_c), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
1154
|
+
const l = i[0];
|
1155
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
1156
|
+
a.current && t() && n(l.contentRect);
|
1157
1157
|
}));
|
1158
1158
|
}), [t]);
|
1159
1159
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
@@ -1212,7 +1212,7 @@ try {
|
|
1212
1212
|
});
|
1213
1213
|
} catch {
|
1214
1214
|
}
|
1215
|
-
const Lr = "thead",
|
1215
|
+
const Lr = "thead", Za = "tfoot", Tt = "tbody", Fe = {
|
1216
1216
|
ASC: "asc",
|
1217
1217
|
DESC: "desc"
|
1218
1218
|
}, xc = ({
|
@@ -1280,7 +1280,7 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1280
1280
|
mode: e,
|
1281
1281
|
className: t,
|
1282
1282
|
cellWrapper: r
|
1283
|
-
}) => r === Lr || r ===
|
1283
|
+
}) => r === Lr || r === Za ? p(
|
1284
1284
|
{
|
1285
1285
|
"bg-table-head-dark": e === "dark" || e === "system",
|
1286
1286
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
@@ -1319,7 +1319,7 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1319
1319
|
"text-copy-dark": a === "light" || a === "alt-system",
|
1320
1320
|
"dark:text-copy-dark": a === "system",
|
1321
1321
|
"dark:text-copy-light": a === "alt-system",
|
1322
|
-
"px-4 py-3": !r && (e === Lr || e ===
|
1322
|
+
"px-4 py-3": !r && (e === Lr || e === Za),
|
1323
1323
|
"p-4": !r && e === Tt,
|
1324
1324
|
"px-2 py-1.5": r
|
1325
1325
|
},
|
@@ -1327,7 +1327,7 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1327
1327
|
)
|
1328
1328
|
}), Sc = ({
|
1329
1329
|
buttonClassName: e
|
1330
|
-
}) => p("rounded-none text-sm", e), Go = "av-button",
|
1330
|
+
}) => p("rounded-none text-sm", e), Go = "av-button", eo = "icon", vs = "button", Ta = "link", Nc = ({
|
1331
1331
|
type: e,
|
1332
1332
|
size: t,
|
1333
1333
|
labelRight: r,
|
@@ -1335,16 +1335,16 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1335
1335
|
align: o,
|
1336
1336
|
animated: n
|
1337
1337
|
}) => {
|
1338
|
-
const s = "max-h-8 py-0 px-2",
|
1338
|
+
const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
1339
1339
|
switch (e) {
|
1340
1340
|
case vs:
|
1341
|
-
case
|
1341
|
+
case Ta:
|
1342
1342
|
return p({
|
1343
1343
|
[s]: t === "small",
|
1344
|
-
[
|
1345
|
-
[
|
1344
|
+
[i]: t === "medium",
|
1345
|
+
[l]: t === "large"
|
1346
1346
|
});
|
1347
|
-
case
|
1347
|
+
case eo:
|
1348
1348
|
return p("flex items-center", {
|
1349
1349
|
"justify-center": o === "center",
|
1350
1350
|
"justify-start": o === "left",
|
@@ -1372,14 +1372,14 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1372
1372
|
const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
|
1373
1373
|
switch (e) {
|
1374
1374
|
case vs:
|
1375
|
-
case
|
1375
|
+
case Ta:
|
1376
1376
|
return p({
|
1377
|
-
"text-center": e ===
|
1377
|
+
"text-center": e === Ta,
|
1378
1378
|
[o]: t === "small",
|
1379
1379
|
[n]: t === "medium",
|
1380
1380
|
[s]: t === "large"
|
1381
1381
|
});
|
1382
|
-
case
|
1382
|
+
case eo:
|
1383
1383
|
return p({
|
1384
1384
|
[o]: t === "small" && (r || a),
|
1385
1385
|
[n]: t === "medium" && (r || a),
|
@@ -1579,8 +1579,8 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1579
1579
|
focusMode: o,
|
1580
1580
|
disabled: n,
|
1581
1581
|
fullWidth: s,
|
1582
|
-
size:
|
1583
|
-
noBorder:
|
1582
|
+
size: i,
|
1583
|
+
noBorder: l,
|
1584
1584
|
labelRight: d,
|
1585
1585
|
labelLeft: f,
|
1586
1586
|
noBackground: u,
|
@@ -1601,14 +1601,14 @@ const Lr = "thead", Xa = "tfoot", Tt = "tbody", Fe = {
|
|
1601
1601
|
$c({ radius: y }),
|
1602
1602
|
Nc({
|
1603
1603
|
type: e,
|
1604
|
-
size:
|
1604
|
+
size: i,
|
1605
1605
|
labelRight: d,
|
1606
1606
|
labelLeft: f,
|
1607
1607
|
align: g,
|
1608
1608
|
animated: b
|
1609
1609
|
}),
|
1610
|
-
Rc({ type: e, size:
|
1611
|
-
Dc({ mode: a, variant: h, noBorder:
|
1610
|
+
Rc({ type: e, size: i, labelRight: d, labelLeft: f }),
|
1611
|
+
Dc({ mode: a, variant: h, noBorder: l }),
|
1612
1612
|
Bc({ focusMode: o }),
|
1613
1613
|
Lc({ mode: a, variant: h, disabled: n }),
|
1614
1614
|
Mc({ mode: a, variant: h, disabled: n }),
|
@@ -1662,10 +1662,10 @@ const Gc = {
|
|
1662
1662
|
right: 0
|
1663
1663
|
};
|
1664
1664
|
function Wr(e) {
|
1665
|
-
const t = Uc(), r = $(0), a = $(null), [o, n] = F(Gc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((
|
1666
|
-
const
|
1667
|
-
|
1668
|
-
a.current && t() && n(
|
1665
|
+
const t = Uc(), r = $(0), a = $(null), [o, n] = F(Gc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
1666
|
+
const l = i[0];
|
1667
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
1668
|
+
a.current && t() && n(l.contentRect);
|
1669
1669
|
}));
|
1670
1670
|
}), [t]);
|
1671
1671
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
@@ -1695,8 +1695,8 @@ const jc = {
|
|
1695
1695
|
fullWidth: o = !1,
|
1696
1696
|
className: n,
|
1697
1697
|
type: s = "button",
|
1698
|
-
raw:
|
1699
|
-
noBorder:
|
1698
|
+
raw: i = !1,
|
1699
|
+
noBorder: l = !1,
|
1700
1700
|
"aria-label": d,
|
1701
1701
|
label: f,
|
1702
1702
|
size: u = "medium",
|
@@ -1711,14 +1711,14 @@ const jc = {
|
|
1711
1711
|
...C
|
1712
1712
|
}, I) => {
|
1713
1713
|
const _ = Vc({
|
1714
|
-
type:
|
1714
|
+
type: eo,
|
1715
1715
|
mode: r,
|
1716
1716
|
focusMode: a,
|
1717
1717
|
fullWidth: o,
|
1718
1718
|
disabled: t,
|
1719
|
-
raw:
|
1719
|
+
raw: i,
|
1720
1720
|
className: n,
|
1721
|
-
noBorder:
|
1721
|
+
noBorder: l,
|
1722
1722
|
size: u,
|
1723
1723
|
labelRight: h,
|
1724
1724
|
labelLeft: m,
|
@@ -1727,10 +1727,10 @@ const jc = {
|
|
1727
1727
|
radius: b,
|
1728
1728
|
variant: v,
|
1729
1729
|
animated: x
|
1730
|
-
}), T = Pc({ mode: r, raw:
|
1730
|
+
}), T = Pc({ mode: r, raw: i, iconClassName: w }), E = zc({ animated: x }), [k, R] = Wr(), [S, A] = Wr(), [L, D] = Wr(), z = $(0), M = $(null), W = Hc([I, M]);
|
1731
1731
|
return ge(() => {
|
1732
|
-
L && L.current && x && (z.current = D.width + Wc[u] + (
|
1733
|
-
}, [D, L, u,
|
1732
|
+
L && L.current && x && (z.current = D.width + Wc[u] + (l ? 0 : qc));
|
1733
|
+
}, [D, L, u, l, x]), ge(() => {
|
1734
1734
|
M && M.current && x && (h && k && R.width > 0 ? (k.current && (k.current.style.opacity = "100"), M.current.style.width = `${R.width + z.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + z.current}px`) : (k.current && (k.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${jc[u]}px`));
|
1735
1735
|
}, [
|
1736
1736
|
R,
|
@@ -1833,7 +1833,7 @@ const ks = U.forwardRef(
|
|
1833
1833
|
}
|
1834
1834
|
);
|
1835
1835
|
ks.displayName = "ButtonSort";
|
1836
|
-
const
|
1836
|
+
const to = ({
|
1837
1837
|
children: e,
|
1838
1838
|
fill: t,
|
1839
1839
|
viewBox: r,
|
@@ -1841,8 +1841,8 @@ const eo = ({
|
|
1841
1841
|
defaultViewBox: o,
|
1842
1842
|
size: n,
|
1843
1843
|
title: s,
|
1844
|
-
semantic:
|
1845
|
-
...
|
1844
|
+
semantic: i = !1,
|
1845
|
+
...l
|
1846
1846
|
}) => {
|
1847
1847
|
const d = p(n, a);
|
1848
1848
|
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
@@ -1853,11 +1853,11 @@ const eo = ({
|
|
1853
1853
|
viewBox: r || o,
|
1854
1854
|
fill: t || "currentColor",
|
1855
1855
|
role: "img",
|
1856
|
-
"aria-hidden": !
|
1856
|
+
"aria-hidden": !i,
|
1857
1857
|
focusable: !1,
|
1858
|
-
...
|
1858
|
+
...l,
|
1859
1859
|
children: [
|
1860
|
-
s &&
|
1860
|
+
s && i && /* @__PURE__ */ c("title", { children: s }),
|
1861
1861
|
e
|
1862
1862
|
]
|
1863
1863
|
}
|
@@ -1883,7 +1883,7 @@ const Yc = ({
|
|
1883
1883
|
monotone: a,
|
1884
1884
|
...o
|
1885
1885
|
}) => /* @__PURE__ */ N(
|
1886
|
-
|
1886
|
+
to,
|
1887
1887
|
{
|
1888
1888
|
defaultViewBox: "0 0 576 512",
|
1889
1889
|
size: "size-5",
|
@@ -1909,7 +1909,7 @@ const Yc = ({
|
|
1909
1909
|
monotone: a,
|
1910
1910
|
...o
|
1911
1911
|
}) => /* @__PURE__ */ N(
|
1912
|
-
|
1912
|
+
to,
|
1913
1913
|
{
|
1914
1914
|
defaultViewBox: "0 0 576 512",
|
1915
1915
|
size: "size-5",
|
@@ -1935,7 +1935,7 @@ const Yc = ({
|
|
1935
1935
|
monotone: a,
|
1936
1936
|
...o
|
1937
1937
|
}) => /* @__PURE__ */ N(
|
1938
|
-
|
1938
|
+
to,
|
1939
1939
|
{
|
1940
1940
|
defaultViewBox: "0 0 576 512",
|
1941
1941
|
size: "size-5",
|
@@ -1982,8 +1982,8 @@ const Bt = U.createContext({
|
|
1982
1982
|
summary: o,
|
1983
1983
|
className: n,
|
1984
1984
|
wrapperClassName: s,
|
1985
|
-
maxHeight:
|
1986
|
-
stickyHeader:
|
1985
|
+
maxHeight: i,
|
1986
|
+
stickyHeader: l,
|
1987
1987
|
stickyFooter: d,
|
1988
1988
|
...f
|
1989
1989
|
}) => {
|
@@ -1991,19 +1991,19 @@ const Bt = U.createContext({
|
|
1991
1991
|
mode: t,
|
1992
1992
|
className: n,
|
1993
1993
|
wrapperClassName: s,
|
1994
|
-
stickyHeader:
|
1994
|
+
stickyHeader: l,
|
1995
1995
|
stickyFooter: d
|
1996
1996
|
});
|
1997
1997
|
return /* @__PURE__ */ c(
|
1998
1998
|
Bt.Provider,
|
1999
1999
|
{
|
2000
|
-
value: { mode: t, stickyHeader:
|
2000
|
+
value: { mode: t, stickyHeader: l, stickyFooter: d, compact: a },
|
2001
2001
|
children: /* @__PURE__ */ c(
|
2002
2002
|
"div",
|
2003
2003
|
{
|
2004
2004
|
className: u.wrapper,
|
2005
|
-
...
|
2006
|
-
style: { maxHeight:
|
2005
|
+
...i && {
|
2006
|
+
style: { maxHeight: i }
|
2007
2007
|
},
|
2008
2008
|
children: /* @__PURE__ */ N("table", { className: u.table, summary: o, ...f, children: [
|
2009
2009
|
r && /* @__PURE__ */ c("caption", { className: u.caption, children: r }),
|
@@ -2032,7 +2032,7 @@ const Bt = U.createContext({
|
|
2032
2032
|
...r
|
2033
2033
|
}) => {
|
2034
2034
|
const a = X(Bt);
|
2035
|
-
a.cellWrapper =
|
2035
|
+
a.cellWrapper = Za;
|
2036
2036
|
const o = Ec({
|
2037
2037
|
className: t,
|
2038
2038
|
mode: a.mode,
|
@@ -2060,14 +2060,14 @@ const Bt = U.createContext({
|
|
2060
2060
|
align: a,
|
2061
2061
|
...o
|
2062
2062
|
}) => {
|
2063
|
-
const n = X(Bt), s = t || (n.cellWrapper === Lr ? "th" : "td"), { mainClasses:
|
2063
|
+
const n = X(Bt), s = t || (n.cellWrapper === Lr ? "th" : "td"), { mainClasses: i, alignClasses: l } = Cc({
|
2064
2064
|
cellWrapper: n.cellWrapper,
|
2065
2065
|
className: r,
|
2066
2066
|
mode: n.mode,
|
2067
2067
|
compact: n.compact,
|
2068
2068
|
align: a
|
2069
2069
|
});
|
2070
|
-
return a ? /* @__PURE__ */ c(s, { className:
|
2070
|
+
return a ? /* @__PURE__ */ c(s, { className: i, ...o, children: /* @__PURE__ */ c("div", { className: l, children: e }) }) : /* @__PURE__ */ c(s, { className: i, ...o, children: e });
|
2071
2071
|
}, td = ({
|
2072
2072
|
align: e,
|
2073
2073
|
children: t,
|
@@ -2076,8 +2076,8 @@ const Bt = U.createContext({
|
|
2076
2076
|
component: o,
|
2077
2077
|
focusMode: n = "alt-system",
|
2078
2078
|
mode: s = "alt-system",
|
2079
|
-
onClick:
|
2080
|
-
sortDirection:
|
2079
|
+
onClick: i,
|
2080
|
+
sortDirection: l,
|
2081
2081
|
sortedCell: d,
|
2082
2082
|
cellId: f,
|
2083
2083
|
...u
|
@@ -2089,21 +2089,21 @@ const Bt = U.createContext({
|
|
2089
2089
|
component: o,
|
2090
2090
|
className: a,
|
2091
2091
|
role: "columnheader",
|
2092
|
-
"aria-sort":
|
2092
|
+
"aria-sort": l === Fe.ASC && d === f ? "ascending" : l === Fe.DESC && d === f ? "descending" : "other",
|
2093
2093
|
...u,
|
2094
2094
|
children: /* @__PURE__ */ c(
|
2095
2095
|
ks,
|
2096
2096
|
{
|
2097
2097
|
active: d === f,
|
2098
2098
|
className: h,
|
2099
|
-
onClick:
|
2099
|
+
onClick: i,
|
2100
2100
|
align: e,
|
2101
2101
|
noBorder: !0,
|
2102
2102
|
focusMode: n,
|
2103
2103
|
mode: s,
|
2104
2104
|
fullWidth: !0,
|
2105
2105
|
labelRight: t,
|
2106
|
-
children:
|
2106
|
+
children: l === Fe.ASC && d === f ? /* @__PURE__ */ c(Kc, { className: "size-4", monotone: !0 }) : l === Fe.DESC && d === f ? /* @__PURE__ */ c(Jc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Yc, { className: "size-4", monotone: !0 })
|
2107
2107
|
}
|
2108
2108
|
)
|
2109
2109
|
}
|
@@ -2142,7 +2142,7 @@ function sd(e) {
|
|
2142
2142
|
}
|
2143
2143
|
sd(`: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)}}
|
2144
2144
|
`);
|
2145
|
-
var rr = (e) => typeof e == "number" && !isNaN(e), yt = (e) => typeof e == "string", Xe = (e) => typeof e == "function", id = (e) => yt(e) || rr(e),
|
2145
|
+
var rr = (e) => typeof e == "number" && !isNaN(e), yt = (e) => typeof e == "string", Xe = (e) => typeof e == "function", id = (e) => yt(e) || rr(e), Ea = (e) => yt(e) || Xe(e) ? e : null, ld = (e, t) => e === !1 || rr(e) && e > 0 ? e : t, Ia = (e) => $r(e) || yt(e) || Xe(e) || rr(e);
|
2146
2146
|
function cd(e, t, r = 300) {
|
2147
2147
|
let { scrollHeight: a, style: o } = e;
|
2148
2148
|
requestAnimationFrame(() => {
|
@@ -2152,7 +2152,7 @@ function cd(e, t, r = 300) {
|
|
2152
2152
|
});
|
2153
2153
|
}
|
2154
2154
|
function xs({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: o = 300 }) {
|
2155
|
-
return function({ children: n, position: s, preventExitTransition:
|
2155
|
+
return function({ children: n, position: s, preventExitTransition: i, done: l, nodeRef: d, isIn: f, playToast: u }) {
|
2156
2156
|
let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, g = $(0);
|
2157
2157
|
return ge(() => {
|
2158
2158
|
let y = d.current, b = h.split(" "), v = (w) => {
|
@@ -2161,9 +2161,9 @@ function xs({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, colla
|
|
2161
2161
|
y.classList.add(...b), y.addEventListener("animationend", v), y.addEventListener("animationcancel", v);
|
2162
2162
|
}, []), P(() => {
|
2163
2163
|
let y = d.current, b = () => {
|
2164
|
-
y.removeEventListener("animationend", b), a ? cd(y,
|
2164
|
+
y.removeEventListener("animationend", b), a ? cd(y, l, o) : l();
|
2165
2165
|
};
|
2166
|
-
f || (
|
2166
|
+
f || (i ? b() : (g.current = 1, y.className += ` ${m}`, y.addEventListener("animationend", b)));
|
2167
2167
|
}, [f]), U.createElement(U.Fragment, null, n);
|
2168
2168
|
};
|
2169
2169
|
}
|
@@ -2171,30 +2171,30 @@ function qo(e, t) {
|
|
2171
2171
|
return { content: Ts(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 };
|
2172
2172
|
}
|
2173
2173
|
function Ts(e, t, r = !1) {
|
2174
|
-
return $r(e) && !yt(e.type) ?
|
2174
|
+
return $r(e) && !yt(e.type) ? Ka(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : Xe(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
|
2175
2175
|
}
|
2176
2176
|
function dd({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
2177
2177
|
return U.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (a) => {
|
2178
2178
|
a.stopPropagation(), e(!0);
|
2179
2179
|
}, "aria-label": r }, U.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, U.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
2180
2180
|
}
|
2181
|
-
function ud({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress:
|
2182
|
-
let u = o || s &&
|
2183
|
-
s && (h.transform = `scaleX(${
|
2184
|
-
let m = 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":
|
2181
|
+
function ud({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: o, className: n, controlledProgress: s, progress: i, rtl: l, isIn: d, theme: f }) {
|
2182
|
+
let u = o || s && i === 0, h = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
|
2183
|
+
s && (h.transform = `scaleX(${i})`);
|
2184
|
+
let m = 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": l }), g = Xe(n) ? n({ rtl: l, type: a, defaultClassName: m }) : p(m, n), y = { [s && i >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && i < 1 ? null : () => {
|
2185
2185
|
d && r();
|
2186
2186
|
} };
|
2187
2187
|
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: h, ...y }));
|
2188
2188
|
}
|
2189
2189
|
var fd = 1, Es = () => `${fd++}`;
|
2190
2190
|
function hd(e, t, r) {
|
2191
|
-
let a = 1, o = 0, n = [], s = [],
|
2192
|
-
s = Array.from(
|
2191
|
+
let a = 1, o = 0, n = [], s = [], i = t, l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (w) => (d.add(w), () => d.delete(w)), u = () => {
|
2192
|
+
s = Array.from(l.values()), d.forEach((w) => w());
|
2193
2193
|
}, h = ({ containerId: w, toastId: x, updateId: C }) => {
|
2194
|
-
let I = w ? w !== e : e !== 1, _ =
|
2194
|
+
let I = w ? w !== e : e !== 1, _ = l.has(x) && C == null;
|
2195
2195
|
return I || _;
|
2196
2196
|
}, m = (w, x) => {
|
2197
|
-
|
2197
|
+
l.forEach((C) => {
|
2198
2198
|
var I;
|
2199
2199
|
(x == null || x === C.props.toastId) && ((I = C.toggle) == null || I.call(C, w));
|
2200
2200
|
});
|
@@ -2202,9 +2202,9 @@ function hd(e, t, r) {
|
|
2202
2202
|
var x, C;
|
2203
2203
|
(C = (x = w.props) == null ? void 0 : x.onClose) == null || C.call(x, w.removalReason), w.isActive = !1;
|
2204
2204
|
}, y = (w) => {
|
2205
|
-
if (w == null)
|
2205
|
+
if (w == null) l.forEach(g);
|
2206
2206
|
else {
|
2207
|
-
let x =
|
2207
|
+
let x = l.get(w);
|
2208
2208
|
x && g(x);
|
2209
2209
|
}
|
2210
2210
|
u();
|
@@ -2213,52 +2213,52 @@ function hd(e, t, r) {
|
|
2213
2213
|
}, v = (w) => {
|
2214
2214
|
var x, C;
|
2215
2215
|
let { toastId: I, updateId: _ } = w.props, T = _ == null;
|
2216
|
-
w.staleId &&
|
2216
|
+
w.staleId && l.delete(w.staleId), w.isActive = !0, l.set(I, w), u(), r(qo(w, T ? "added" : "updated")), T && ((C = (x = w.props).onOpen) == null || C.call(x));
|
2217
2217
|
};
|
2218
|
-
return { id: e, props:
|
2218
|
+
return { id: e, props: i, observe: f, toggle: m, removeToast: y, toasts: l, clearQueue: b, buildToast: (w, x) => {
|
2219
2219
|
if (h(x)) return;
|
2220
2220
|
let { toastId: C, updateId: I, data: _, staleId: T, delay: E } = x, k = I == null;
|
2221
2221
|
k && o++;
|
2222
|
-
let R = { ...
|
2223
|
-
|
2222
|
+
let R = { ...i, style: i.toastStyle, key: a++, ...Object.fromEntries(Object.entries(x).filter(([A, L]) => L != null)), toastId: C, updateId: I, data: _, isIn: !1, className: Ea(x.className || i.toastClassName), progressClassName: Ea(x.progressClassName || i.progressClassName), autoClose: x.isLoading ? !1 : ld(x.autoClose, i.autoClose), closeToast(A) {
|
2223
|
+
l.get(C).removalReason = A, y(C);
|
2224
2224
|
}, deleteToast() {
|
2225
|
-
let A =
|
2225
|
+
let A = l.get(C);
|
2226
2226
|
if (A != null) {
|
2227
|
-
if (r(qo(A, "removed")),
|
2227
|
+
if (r(qo(A, "removed")), l.delete(C), o--, o < 0 && (o = 0), n.length > 0) {
|
2228
2228
|
v(n.shift());
|
2229
2229
|
return;
|
2230
2230
|
}
|
2231
2231
|
u();
|
2232
2232
|
}
|
2233
2233
|
} };
|
2234
|
-
R.closeButton =
|
2234
|
+
R.closeButton = i.closeButton, x.closeButton === !1 || Ia(x.closeButton) ? R.closeButton = x.closeButton : x.closeButton === !0 && (R.closeButton = Ia(i.closeButton) ? i.closeButton : !0);
|
2235
2235
|
let S = { content: w, props: R, staleId: T };
|
2236
|
-
|
2236
|
+
i.limit && i.limit > 0 && o > i.limit && k ? n.push(S) : rr(E) ? setTimeout(() => {
|
2237
2237
|
v(S);
|
2238
2238
|
}, E) : v(S);
|
2239
2239
|
}, setProps(w) {
|
2240
|
-
|
2240
|
+
i = w;
|
2241
2241
|
}, setToggle: (w, x) => {
|
2242
|
-
let C =
|
2242
|
+
let C = l.get(w);
|
2243
2243
|
C && (C.toggle = x);
|
2244
2244
|
}, isToastActive: (w) => {
|
2245
2245
|
var x;
|
2246
|
-
return (x =
|
2246
|
+
return (x = l.get(w)) == null ? void 0 : x.isActive;
|
2247
2247
|
}, getSnapshot: () => s };
|
2248
2248
|
}
|
2249
|
-
var
|
2249
|
+
var ve = /* @__PURE__ */ new Map(), Yt = [], Ca = /* @__PURE__ */ new Set(), md = (e) => Ca.forEach((t) => t(e)), Is = () => ve.size > 0;
|
2250
2250
|
function pd() {
|
2251
2251
|
Yt.forEach((e) => Ss(e.content, e.options)), Yt = [];
|
2252
2252
|
}
|
2253
2253
|
var gd = (e, { containerId: t }) => {
|
2254
2254
|
var r;
|
2255
|
-
return (r =
|
2255
|
+
return (r = ve.get(t || 1)) == null ? void 0 : r.toasts.get(e);
|
2256
2256
|
};
|
2257
2257
|
function Cs(e, t) {
|
2258
2258
|
var r;
|
2259
|
-
if (t) return !!((r =
|
2259
|
+
if (t) return !!((r = ve.get(t)) != null && r.isToastActive(e));
|
2260
2260
|
let a = !1;
|
2261
|
-
return
|
2261
|
+
return ve.forEach((o) => {
|
2262
2262
|
o.isToastActive(e) && (a = !0);
|
2263
2263
|
}), a;
|
2264
2264
|
}
|
@@ -2267,32 +2267,32 @@ function yd(e) {
|
|
2267
2267
|
Yt = Yt.filter((t) => e != null && t.options.toastId !== e);
|
2268
2268
|
return;
|
2269
2269
|
}
|
2270
|
-
if (e == null || id(e))
|
2270
|
+
if (e == null || id(e)) ve.forEach((t) => {
|
2271
2271
|
t.removeToast(e);
|
2272
2272
|
});
|
2273
2273
|
else if (e && ("containerId" in e || "id" in e)) {
|
2274
|
-
let t =
|
2275
|
-
t ? t.removeToast(e.id) :
|
2274
|
+
let t = ve.get(e.containerId);
|
2275
|
+
t ? t.removeToast(e.id) : ve.forEach((r) => {
|
2276
2276
|
r.removeToast(e.id);
|
2277
2277
|
});
|
2278
2278
|
}
|
2279
2279
|
}
|
2280
2280
|
var bd = (e = {}) => {
|
2281
|
-
|
2281
|
+
ve.forEach((t) => {
|
2282
2282
|
t.props.limit && (!e.containerId || t.id === e.containerId) && t.clearQueue();
|
2283
2283
|
});
|
2284
2284
|
};
|
2285
2285
|
function Ss(e, t) {
|
2286
|
-
|
2286
|
+
Ia(e) && (Is() || Yt.push({ content: e, options: t }), ve.forEach((r) => {
|
2287
2287
|
r.buildToast(e, t);
|
2288
2288
|
}));
|
2289
2289
|
}
|
2290
2290
|
function vd(e) {
|
2291
2291
|
var t;
|
2292
|
-
(t =
|
2292
|
+
(t = ve.get(e.containerId || 1)) == null || t.setToggle(e.id, e.fn);
|
2293
2293
|
}
|
2294
2294
|
function Ns(e, t) {
|
2295
|
-
|
2295
|
+
ve.forEach((r) => {
|
2296
2296
|
(t == null || !(t != null && t.containerId) || (t == null ? void 0 : t.containerId) === r.id) && r.toggle(e, t == null ? void 0 : t.id);
|
2297
2297
|
});
|
2298
2298
|
}
|
@@ -2300,22 +2300,22 @@ function _d(e) {
|
|
2300
2300
|
let t = e.containerId || 1;
|
2301
2301
|
return { subscribe(r) {
|
2302
2302
|
let a = hd(t, e, md);
|
2303
|
-
|
2303
|
+
ve.set(t, a);
|
2304
2304
|
let o = a.observe(r);
|
2305
2305
|
return pd(), () => {
|
2306
|
-
o(),
|
2306
|
+
o(), ve.delete(t);
|
2307
2307
|
};
|
2308
2308
|
}, setProps(r) {
|
2309
2309
|
var a;
|
2310
|
-
(a =
|
2310
|
+
(a = ve.get(t)) == null || a.setProps(r);
|
2311
2311
|
}, getSnapshot() {
|
2312
2312
|
var r;
|
2313
|
-
return (r =
|
2313
|
+
return (r = ve.get(t)) == null ? void 0 : r.getSnapshot();
|
2314
2314
|
} };
|
2315
2315
|
}
|
2316
2316
|
function wd(e) {
|
2317
|
-
return
|
2318
|
-
|
2317
|
+
return Ca.add(e), () => {
|
2318
|
+
Ca.delete(e);
|
2319
2319
|
};
|
2320
2320
|
}
|
2321
2321
|
function kd(e) {
|
@@ -2337,15 +2337,15 @@ Q.loading = (e, t) => ar(e, Mr("default", { isLoading: !0, autoClose: !1, closeO
|
|
2337
2337
|
function xd(e, { pending: t, error: r, success: a }, o) {
|
2338
2338
|
let n;
|
2339
2339
|
t && (n = yt(t) ? Q.loading(t, o) : Q.loading(t.render, { ...o, ...t }));
|
2340
|
-
let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null },
|
2340
|
+
let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, i = (d, f, u) => {
|
2341
2341
|
if (f == null) {
|
2342
2342
|
Q.dismiss(n);
|
2343
2343
|
return;
|
2344
2344
|
}
|
2345
2345
|
let h = { type: d, ...s, ...o, data: u }, m = yt(f) ? { render: f } : f;
|
2346
2346
|
return n ? Q.update(n, { ...h, ...m }) : Q(m.render, { ...h, ...m }), u;
|
2347
|
-
},
|
2348
|
-
return
|
2347
|
+
}, l = Xe(e) ? e() : e;
|
2348
|
+
return l.then((d) => i("success", a, d)).catch((d) => i("error", r, d)), l;
|
2349
2349
|
}
|
2350
2350
|
Q.promise = xd;
|
2351
2351
|
Q.success = Dr("success");
|
@@ -2380,18 +2380,18 @@ function Ed(e) {
|
|
2380
2380
|
let { subscribe: r, getSnapshot: a, setProps: o } = $(_d(e)).current;
|
2381
2381
|
o(e);
|
2382
2382
|
let n = (t = Kn(r, a, a)) == null ? void 0 : t.slice();
|
2383
|
-
function s(
|
2383
|
+
function s(i) {
|
2384
2384
|
if (!n) return [];
|
2385
|
-
let
|
2385
|
+
let l = /* @__PURE__ */ new Map();
|
2386
2386
|
return e.newestOnTop && n.reverse(), n.forEach((d) => {
|
2387
2387
|
let { position: f } = d.props;
|
2388
|
-
|
2389
|
-
}), Array.from(
|
2388
|
+
l.has(f) || l.set(f, []), l.get(f).push(d);
|
2389
|
+
}), Array.from(l, (d) => i(d[0], d[1]));
|
2390
2390
|
}
|
2391
2391
|
return { getToastToRender: s, isToastActive: Cs, count: n == null ? void 0 : n.length };
|
2392
2392
|
}
|
2393
2393
|
function Id(e) {
|
2394
|
-
let [t, r] = F(!1), [a, o] = F(!1), n = $(null), s = $({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose:
|
2394
|
+
let [t, r] = F(!1), [a, o] = F(!1), n = $(null), s = $({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: i, pauseOnHover: l, closeToast: d, onClick: f, closeOnClick: u } = e;
|
2395
2395
|
vd({ id: e.toastId, containerId: e.containerId, fn: r }), P(() => {
|
2396
2396
|
if (e.pauseOnFocusLoss) return h(), () => {
|
2397
2397
|
m();
|
@@ -2446,7 +2446,7 @@ function Id(e) {
|
|
2446
2446
|
}
|
2447
2447
|
}
|
2448
2448
|
let _ = { onPointerDown: g, onPointerUp: y };
|
2449
|
-
return
|
2449
|
+
return i && l && (_.onMouseEnter = v, e.stacked || (_.onMouseLeave = b)), u && (_.onClick = (T) => {
|
2450
2450
|
f && f(T), s.canCloseOnClick && d(!0);
|
2451
2451
|
}), { playToast: b, pauseToast: v, isRunning: t, preventExitTransition: a, toastRef: n, eventHandlers: _ };
|
2452
2452
|
}
|
@@ -2466,20 +2466,20 @@ function Ad(e) {
|
|
2466
2466
|
function Od() {
|
2467
2467
|
return U.createElement("div", { className: "Toastify__spinner" });
|
2468
2468
|
}
|
2469
|
-
var
|
2469
|
+
var Sa = { info: Nd, warning: Sd, success: Rd, error: Ad, spinner: Od }, $d = (e) => e in Sa;
|
2470
2470
|
function Ld({ theme: e, type: t, isLoading: r, icon: a }) {
|
2471
2471
|
let o = null, n = { theme: e, type: t };
|
2472
|
-
return a === !1 || (Xe(a) ? o = a({ ...n, isLoading: r }) : $r(a) ? o =
|
2472
|
+
return a === !1 || (Xe(a) ? o = a({ ...n, isLoading: r }) : $r(a) ? o = Ka(a, n) : r ? o = Sa.spinner() : $d(t) && (o = Sa[t](n))), o;
|
2473
2473
|
}
|
2474
2474
|
var Md = (e) => {
|
2475
|
-
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Id(e), { closeButton: s, children:
|
2476
|
-
return s === !1 || (Xe(s) ? G = s(W) : $r(s) ? G =
|
2475
|
+
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: o, playToast: n } = Id(e), { closeButton: s, children: i, autoClose: l, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: g, className: y, style: b, progressClassName: v, updateId: w, role: x, progress: C, rtl: I, toastId: _, deleteToast: T, isIn: E, isLoading: k, closeOnClick: R, theme: S, ariaLabel: A } = e, L = p("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": R }), D = Xe(y) ? y({ rtl: I, position: g, type: f, defaultClassName: L }) : p(L, y), z = Ld(e), M = !!C || !l, W = { closeToast: h, type: f, theme: S }, G = null;
|
2476
|
+
return s === !1 || (Xe(s) ? G = s(W) : $r(s) ? G = Ka(s, W) : G = dd(W)), U.createElement(m, { isIn: E, done: T, position: g, preventExitTransition: r, nodeRef: a, playToast: n }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": E, className: D, ...o, style: b, ref: a, ...E && { role: x, "aria-label": A } }, z != null && U.createElement("div", { className: p("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !k }) }, z), Ts(i, e, !t), G, !e.customProgressBar && U.createElement(ud, { ...w && !M ? { key: `p-${w}` } : {}, rtl: I, theme: S, delay: l, isRunning: t, isIn: E, closeToast: h, hide: u, type: f, className: v, controlledProgress: M, progress: C || 0 })));
|
2477
2477
|
}, Rs = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Dd = xs(Rs("bounce", !0)), Cr = xs(Rs("slide", !0)), Bd = { position: "top-right", transition: Dd, 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" };
|
2478
|
-
function
|
2479
|
-
let t = { ...Bd, ...e }, r = e.stacked, [a, o] = F(!0), n = $(null), { getToastToRender: s, isToastActive:
|
2478
|
+
function Na(e) {
|
2479
|
+
let t = { ...Bd, ...e }, r = e.stacked, [a, o] = F(!0), n = $(null), { getToastToRender: s, isToastActive: i, count: l } = Ed(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
|
2480
2480
|
function g(b) {
|
2481
2481
|
let v = p("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": u });
|
2482
|
-
return Xe(d) ? d({ position: b, rtl: u, defaultClassName: v }) : p(v,
|
2482
|
+
return Xe(d) ? d({ position: b, rtl: u, defaultClassName: v }) : p(v, Ea(d));
|
2483
2483
|
}
|
2484
2484
|
function y() {
|
2485
2485
|
r && (o(!0), Q.play());
|
@@ -2495,7 +2495,7 @@ function Sa(e) {
|
|
2495
2495
|
E.style.setProperty("--y", `${x ? k : k * -1}px`), E.style.setProperty("--g", `${w}`), E.style.setProperty("--s", `${1 - (a ? I : 0)}`), C += E.offsetHeight, I += 0.025;
|
2496
2496
|
});
|
2497
2497
|
}
|
2498
|
-
}, [a,
|
2498
|
+
}, [a, l, r]), P(() => {
|
2499
2499
|
function b(v) {
|
2500
2500
|
var w;
|
2501
2501
|
let x = n.current;
|
@@ -2508,10 +2508,10 @@ function Sa(e) {
|
|
2508
2508
|
r && (o(!1), Q.pause());
|
2509
2509
|
}, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((b, v) => {
|
2510
2510
|
let w = v.length ? { ...f } : { ...f, pointerEvents: "none" };
|
2511
|
-
return U.createElement("div", { tabIndex: -1, className: g(b), "data-stacked": r, style: w, key: `c-${b}` }, v.map(({ content: x, props: C }) => U.createElement(Md, { ...C, stacked: r, collapseAll: y, isIn:
|
2511
|
+
return U.createElement("div", { tabIndex: -1, className: g(b), "data-stacked": r, style: w, key: `c-${b}` }, v.map(({ content: x, props: C }) => U.createElement(Md, { ...C, stacked: r, collapseAll: y, isIn: i(C.toastId, C.containerId), key: `t-${C.key}` }, x)));
|
2512
2512
|
}));
|
2513
2513
|
}
|
2514
|
-
const Wt = "FOOTER_BOTTOM",
|
2514
|
+
const Wt = "FOOTER_BOTTOM", Ra = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", As = "APP_SET_FOOTER_HEIGHT", Pd = (e, t) => {
|
2515
2515
|
switch (t.type) {
|
2516
2516
|
case xr:
|
2517
2517
|
return {
|
@@ -2527,7 +2527,7 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2527
2527
|
default:
|
2528
2528
|
return e;
|
2529
2529
|
}
|
2530
|
-
}, Et = "CHAT_SET_STATUS", Os = "CHAT_SET_USAGE",
|
2530
|
+
}, Et = "CHAT_SET_STATUS", Os = "CHAT_SET_USAGE", ro = "CHAT_SET_PROVIDER", vt = "CHAT_RESET", zd = (e, t) => {
|
2531
2531
|
var r, a, o, n, s;
|
2532
2532
|
switch (t.type) {
|
2533
2533
|
case Os:
|
@@ -2536,27 +2536,27 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2536
2536
|
usage: t.payload.usage
|
2537
2537
|
};
|
2538
2538
|
case Et: {
|
2539
|
-
let
|
2540
|
-
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? d = t.payload.loading : typeof e.loading == "boolean" && (d = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ?
|
2539
|
+
let i = !1, l = !1, d = !1;
|
2540
|
+
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.loading) == "boolean" ? d = t.payload.loading : typeof e.loading == "boolean" && (d = e.loading), typeof ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.streaming) == "boolean" ? l = t.payload.streaming : typeof e.streaming == "boolean" && (l = e.streaming), typeof ((o = t == null ? void 0 : t.payload) == null ? void 0 : o.restoring) == "boolean" ? i = t.payload.restoring : typeof e.restoring == "boolean" && (i = e.restoring), (l || d) && (i = !1), {
|
2541
2541
|
...e,
|
2542
2542
|
reseting: !1,
|
2543
|
-
streaming:
|
2543
|
+
streaming: l,
|
2544
2544
|
loading: d,
|
2545
|
-
restoring:
|
2545
|
+
restoring: i,
|
2546
2546
|
usage: t.payload.usage || e.usage,
|
2547
|
-
lastStreamingTimestamp:
|
2547
|
+
lastStreamingTimestamp: l ? Date.now() : e.lastStreamingTimestamp
|
2548
2548
|
};
|
2549
2549
|
}
|
2550
|
-
case
|
2550
|
+
case ro:
|
2551
2551
|
return {
|
2552
2552
|
...e,
|
2553
2553
|
provider: t.payload.provider
|
2554
2554
|
};
|
2555
2555
|
case vt: {
|
2556
|
-
let
|
2557
|
-
return typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.privateChat) == "boolean" ?
|
2558
|
-
privateChat:
|
2559
|
-
reasoning:
|
2556
|
+
let i = !1, l = !1;
|
2557
|
+
return typeof ((n = t == null ? void 0 : t.payload) == null ? void 0 : n.privateChat) == "boolean" ? i = t.payload.privateChat : typeof e.privateChat == "boolean" && (i = e.privateChat), typeof ((s = t == null ? void 0 : t.payload) == null ? void 0 : s.reasoning) == "boolean" ? l = t.payload.reasoning : typeof e.reasoning == "boolean" && (l = e.reasoning), {
|
2558
|
+
privateChat: i,
|
2559
|
+
reasoning: l,
|
2560
2560
|
provider: e.provider,
|
2561
2561
|
usage: 0,
|
2562
2562
|
streaming: !1,
|
@@ -2571,7 +2571,7 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2571
2571
|
}
|
2572
2572
|
}, Vd = (e, t) => {
|
2573
2573
|
switch (t == null ? void 0 : t.type) {
|
2574
|
-
case
|
2574
|
+
case Vn:
|
2575
2575
|
return {
|
2576
2576
|
searchString: t.payload.searchString,
|
2577
2577
|
sortedCell: e.sortedCell,
|
@@ -2588,12 +2588,12 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2588
2588
|
}
|
2589
2589
|
}, Fd = (e, t) => {
|
2590
2590
|
switch (t == null ? void 0 : t.type) {
|
2591
|
-
case
|
2591
|
+
case Un:
|
2592
2592
|
return {
|
2593
2593
|
prompt: t.payload.prompt,
|
2594
2594
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
2595
2595
|
};
|
2596
|
-
case
|
2596
|
+
case Fn:
|
2597
2597
|
return {
|
2598
2598
|
prompt: "",
|
2599
2599
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
@@ -2864,7 +2864,7 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2864
2864
|
type: $e.GET_CHATS_STATS,
|
2865
2865
|
getAccessToken: t
|
2866
2866
|
})
|
2867
|
-
}),
|
2867
|
+
}), ao = ({
|
2868
2868
|
user: e,
|
2869
2869
|
searchString: t,
|
2870
2870
|
sortDirection: r,
|
@@ -2933,9 +2933,9 @@ const Wt = "FOOTER_BOTTOM", Na = "FOOTER_TOP", xr = "APP_SET_FOOTER_POSITION", A
|
|
2933
2933
|
);
|
2934
2934
|
if (!n.ok)
|
2935
2935
|
throw new Error(`HTTP error! Status: ${n.status}`);
|
2936
|
-
const { data: s, error:
|
2937
|
-
if (
|
2938
|
-
throw new Error(
|
2936
|
+
const { data: s, error: i } = await n.json();
|
2937
|
+
if (i)
|
2938
|
+
throw new Error(i);
|
2939
2939
|
return s[t.method];
|
2940
2940
|
} catch (o) {
|
2941
2941
|
return Promise.reject(o);
|
@@ -3002,7 +3002,7 @@ Error message: ${Ps(t)}`,
|
|
3002
3002
|
}
|
3003
3003
|
};
|
3004
3004
|
Gs = Jd;
|
3005
|
-
var js = "AI_TypeValidationError", Ws = `vercel.ai.error.${js}`, Kd = Symbol.for(Ws), qs, Qd = class
|
3005
|
+
var js = "AI_TypeValidationError", Ws = `vercel.ai.error.${js}`, Kd = Symbol.for(Ws), qs, Qd = class Aa extends $t {
|
3006
3006
|
constructor({ value: t, cause: r }) {
|
3007
3007
|
super({
|
3008
3008
|
name: js,
|
@@ -3028,7 +3028,7 @@ Error message: ${Ps(r)}`,
|
|
3028
3028
|
value: t,
|
3029
3029
|
cause: r
|
3030
3030
|
}) {
|
3031
|
-
return
|
3031
|
+
return Aa.isInstance(r) && r.value === t ? r : new Aa({ value: t, cause: r });
|
3032
3032
|
}
|
3033
3033
|
};
|
3034
3034
|
qs = Kd;
|
@@ -3047,34 +3047,34 @@ function Zd() {
|
|
3047
3047
|
if (Ko) return ct.exports;
|
3048
3048
|
Ko = 1;
|
3049
3049
|
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*:/;
|
3050
|
-
function a(
|
3051
|
-
d == null &&
|
3052
|
-
const f = JSON.parse(
|
3050
|
+
function a(i, l, d) {
|
3051
|
+
d == null && l !== null && typeof l == "object" && (d = l, l = void 0), e && Buffer.isBuffer(i) && (i = i.toString()), i && i.charCodeAt(0) === 65279 && (i = i.slice(1));
|
3052
|
+
const f = JSON.parse(i, l);
|
3053
3053
|
if (f === null || typeof f != "object")
|
3054
3054
|
return f;
|
3055
3055
|
const u = d && d.protoAction || "error", h = d && d.constructorAction || "error";
|
3056
3056
|
if (u === "ignore" && h === "ignore")
|
3057
3057
|
return f;
|
3058
3058
|
if (u !== "ignore" && h !== "ignore") {
|
3059
|
-
if (t.test(
|
3059
|
+
if (t.test(i) === !1 && r.test(i) === !1)
|
3060
3060
|
return f;
|
3061
3061
|
} else if (u !== "ignore" && h === "ignore") {
|
3062
|
-
if (t.test(
|
3062
|
+
if (t.test(i) === !1)
|
3063
3063
|
return f;
|
3064
|
-
} else if (r.test(
|
3064
|
+
} else if (r.test(i) === !1)
|
3065
3065
|
return f;
|
3066
3066
|
return o(f, { protoAction: u, constructorAction: h, safe: d && d.safe });
|
3067
3067
|
}
|
3068
|
-
function o(
|
3069
|
-
let u = [
|
3068
|
+
function o(i, { protoAction: l = "error", constructorAction: d = "error", safe: f } = {}) {
|
3069
|
+
let u = [i];
|
3070
3070
|
for (; u.length; ) {
|
3071
3071
|
const h = u;
|
3072
3072
|
u = [];
|
3073
3073
|
for (const m of h) {
|
3074
|
-
if (
|
3074
|
+
if (l !== "ignore" && Object.prototype.hasOwnProperty.call(m, "__proto__")) {
|
3075
3075
|
if (f === !0)
|
3076
3076
|
return null;
|
3077
|
-
if (
|
3077
|
+
if (l === "error")
|
3078
3078
|
throw new SyntaxError("Object contains forbidden prototype property");
|
3079
3079
|
delete m.__proto__;
|
3080
3080
|
}
|
@@ -3091,22 +3091,22 @@ function Zd() {
|
|
3091
3091
|
}
|
3092
3092
|
}
|
3093
3093
|
}
|
3094
|
-
return
|
3094
|
+
return i;
|
3095
3095
|
}
|
3096
|
-
function n(
|
3096
|
+
function n(i, l, d) {
|
3097
3097
|
const f = Error.stackTraceLimit;
|
3098
3098
|
Error.stackTraceLimit = 0;
|
3099
3099
|
try {
|
3100
|
-
return a(
|
3100
|
+
return a(i, l, d);
|
3101
3101
|
} finally {
|
3102
3102
|
Error.stackTraceLimit = f;
|
3103
3103
|
}
|
3104
3104
|
}
|
3105
|
-
function s(
|
3105
|
+
function s(i, l) {
|
3106
3106
|
const d = Error.stackTraceLimit;
|
3107
3107
|
Error.stackTraceLimit = 0;
|
3108
3108
|
try {
|
3109
|
-
return a(
|
3109
|
+
return a(i, l, { safe: !0 });
|
3110
3110
|
} catch {
|
3111
3111
|
return null;
|
3112
3112
|
} finally {
|
@@ -3132,12 +3132,12 @@ var ru = ({
|
|
3132
3132
|
message: `The separator "${a}" must not be part of the alphabet "${r}".`
|
3133
3133
|
});
|
3134
3134
|
return (n) => `${e}${a}${o(n)}`;
|
3135
|
-
},
|
3135
|
+
}, oo = ru(), Oa = Symbol.for("vercel.ai.validator");
|
3136
3136
|
function au(e) {
|
3137
|
-
return { [
|
3137
|
+
return { [Oa]: !0, validate: e };
|
3138
3138
|
}
|
3139
3139
|
function ou(e) {
|
3140
|
-
return typeof e == "object" && e !== null &&
|
3140
|
+
return typeof e == "object" && e !== null && Oa in e && e[Oa] === !0 && "validate" in e;
|
3141
3141
|
}
|
3142
3142
|
function nu(e) {
|
3143
3143
|
return ou(e) ? e : su(e);
|
@@ -3198,8 +3198,8 @@ function lu({
|
|
3198
3198
|
function cu(e) {
|
3199
3199
|
const t = ["ROOT"];
|
3200
3200
|
let r = -1, a = null;
|
3201
|
-
function o(
|
3202
|
-
switch (
|
3201
|
+
function o(l, d, f) {
|
3202
|
+
switch (l) {
|
3203
3203
|
case '"': {
|
3204
3204
|
r = d, t.pop(), t.push(f), t.push("INSIDE_STRING");
|
3205
3205
|
break;
|
@@ -3237,8 +3237,8 @@ function cu(e) {
|
|
3237
3237
|
}
|
3238
3238
|
}
|
3239
3239
|
}
|
3240
|
-
function n(
|
3241
|
-
switch (
|
3240
|
+
function n(l, d) {
|
3241
|
+
switch (l) {
|
3242
3242
|
case ",": {
|
3243
3243
|
t.pop(), t.push("INSIDE_OBJECT_AFTER_COMMA");
|
3244
3244
|
break;
|
@@ -3249,8 +3249,8 @@ function cu(e) {
|
|
3249
3249
|
}
|
3250
3250
|
}
|
3251
3251
|
}
|
3252
|
-
function s(
|
3253
|
-
switch (
|
3252
|
+
function s(l, d) {
|
3253
|
+
switch (l) {
|
3254
3254
|
case ",": {
|
3255
3255
|
t.pop(), t.push("INSIDE_ARRAY_AFTER_COMMA");
|
3256
3256
|
break;
|
@@ -3261,11 +3261,11 @@ function cu(e) {
|
|
3261
3261
|
}
|
3262
3262
|
}
|
3263
3263
|
}
|
3264
|
-
for (let
|
3265
|
-
const d = e[
|
3264
|
+
for (let l = 0; l < e.length; l++) {
|
3265
|
+
const d = e[l];
|
3266
3266
|
switch (t[t.length - 1]) {
|
3267
3267
|
case "ROOT":
|
3268
|
-
o(d,
|
3268
|
+
o(d, l, "FINISH");
|
3269
3269
|
break;
|
3270
3270
|
case "INSIDE_OBJECT_START": {
|
3271
3271
|
switch (d) {
|
@@ -3274,7 +3274,7 @@ function cu(e) {
|
|
3274
3274
|
break;
|
3275
3275
|
}
|
3276
3276
|
case "}": {
|
3277
|
-
r =
|
3277
|
+
r = l, t.pop();
|
3278
3278
|
break;
|
3279
3279
|
}
|
3280
3280
|
}
|
@@ -3308,17 +3308,17 @@ function cu(e) {
|
|
3308
3308
|
break;
|
3309
3309
|
}
|
3310
3310
|
case "INSIDE_OBJECT_BEFORE_VALUE": {
|
3311
|
-
o(d,
|
3311
|
+
o(d, l, "INSIDE_OBJECT_AFTER_VALUE");
|
3312
3312
|
break;
|
3313
3313
|
}
|
3314
3314
|
case "INSIDE_OBJECT_AFTER_VALUE": {
|
3315
|
-
n(d,
|
3315
|
+
n(d, l);
|
3316
3316
|
break;
|
3317
3317
|
}
|
3318
3318
|
case "INSIDE_STRING": {
|
3319
3319
|
switch (d) {
|
3320
3320
|
case '"': {
|
3321
|
-
t.pop(), r =
|
3321
|
+
t.pop(), r = l;
|
3322
3322
|
break;
|
3323
3323
|
}
|
3324
3324
|
case "\\": {
|
@@ -3326,18 +3326,18 @@ function cu(e) {
|
|
3326
3326
|
break;
|
3327
3327
|
}
|
3328
3328
|
default:
|
3329
|
-
r =
|
3329
|
+
r = l;
|
3330
3330
|
}
|
3331
3331
|
break;
|
3332
3332
|
}
|
3333
3333
|
case "INSIDE_ARRAY_START": {
|
3334
3334
|
switch (d) {
|
3335
3335
|
case "]": {
|
3336
|
-
r =
|
3336
|
+
r = l, t.pop();
|
3337
3337
|
break;
|
3338
3338
|
}
|
3339
3339
|
default: {
|
3340
|
-
r =
|
3340
|
+
r = l, o(d, l, "INSIDE_ARRAY_AFTER_VALUE");
|
3341
3341
|
break;
|
3342
3342
|
}
|
3343
3343
|
}
|
@@ -3350,22 +3350,22 @@ function cu(e) {
|
|
3350
3350
|
break;
|
3351
3351
|
}
|
3352
3352
|
case "]": {
|
3353
|
-
r =
|
3353
|
+
r = l, t.pop();
|
3354
3354
|
break;
|
3355
3355
|
}
|
3356
3356
|
default: {
|
3357
|
-
r =
|
3357
|
+
r = l;
|
3358
3358
|
break;
|
3359
3359
|
}
|
3360
3360
|
}
|
3361
3361
|
break;
|
3362
3362
|
}
|
3363
3363
|
case "INSIDE_ARRAY_AFTER_COMMA": {
|
3364
|
-
o(d,
|
3364
|
+
o(d, l, "INSIDE_ARRAY_AFTER_VALUE");
|
3365
3365
|
break;
|
3366
3366
|
}
|
3367
3367
|
case "INSIDE_STRING_ESCAPE": {
|
3368
|
-
t.pop(), r =
|
3368
|
+
t.pop(), r = l;
|
3369
3369
|
break;
|
3370
3370
|
}
|
3371
3371
|
case "INSIDE_NUMBER": {
|
@@ -3380,7 +3380,7 @@ function cu(e) {
|
|
3380
3380
|
case "7":
|
3381
3381
|
case "8":
|
3382
3382
|
case "9": {
|
3383
|
-
r =
|
3383
|
+
r = l;
|
3384
3384
|
break;
|
3385
3385
|
}
|
3386
3386
|
case "e":
|
@@ -3389,15 +3389,15 @@ function cu(e) {
|
|
3389
3389
|
case ".":
|
3390
3390
|
break;
|
3391
3391
|
case ",": {
|
3392
|
-
t.pop(), t[t.length - 1] === "INSIDE_ARRAY_AFTER_VALUE" && s(d,
|
3392
|
+
t.pop(), t[t.length - 1] === "INSIDE_ARRAY_AFTER_VALUE" && s(d, l), t[t.length - 1] === "INSIDE_OBJECT_AFTER_VALUE" && n(d, l);
|
3393
3393
|
break;
|
3394
3394
|
}
|
3395
3395
|
case "}": {
|
3396
|
-
t.pop(), t[t.length - 1] === "INSIDE_OBJECT_AFTER_VALUE" && n(d,
|
3396
|
+
t.pop(), t[t.length - 1] === "INSIDE_OBJECT_AFTER_VALUE" && n(d, l);
|
3397
3397
|
break;
|
3398
3398
|
}
|
3399
3399
|
case "]": {
|
3400
|
-
t.pop(), t[t.length - 1] === "INSIDE_ARRAY_AFTER_VALUE" && s(d,
|
3400
|
+
t.pop(), t[t.length - 1] === "INSIDE_ARRAY_AFTER_VALUE" && s(d, l);
|
3401
3401
|
break;
|
3402
3402
|
}
|
3403
3403
|
default: {
|
@@ -3408,17 +3408,17 @@ function cu(e) {
|
|
3408
3408
|
break;
|
3409
3409
|
}
|
3410
3410
|
case "INSIDE_LITERAL": {
|
3411
|
-
const u = e.substring(a,
|
3412
|
-
!"false".startsWith(u) && !"true".startsWith(u) && !"null".startsWith(u) ? (t.pop(), t[t.length - 1] === "INSIDE_OBJECT_AFTER_VALUE" ? n(d,
|
3411
|
+
const u = e.substring(a, l + 1);
|
3412
|
+
!"false".startsWith(u) && !"true".startsWith(u) && !"null".startsWith(u) ? (t.pop(), t[t.length - 1] === "INSIDE_OBJECT_AFTER_VALUE" ? n(d, l) : t[t.length - 1] === "INSIDE_ARRAY_AFTER_VALUE" && s(d, l)) : r = l;
|
3413
3413
|
break;
|
3414
3414
|
}
|
3415
3415
|
}
|
3416
3416
|
}
|
3417
|
-
let
|
3418
|
-
for (let
|
3419
|
-
switch (t[
|
3417
|
+
let i = e.slice(0, r + 1);
|
3418
|
+
for (let l = t.length - 1; l >= 0; l--)
|
3419
|
+
switch (t[l]) {
|
3420
3420
|
case "INSIDE_STRING": {
|
3421
|
-
|
3421
|
+
i += '"';
|
3422
3422
|
break;
|
3423
3423
|
}
|
3424
3424
|
case "INSIDE_OBJECT_KEY":
|
@@ -3427,21 +3427,21 @@ function cu(e) {
|
|
3427
3427
|
case "INSIDE_OBJECT_START":
|
3428
3428
|
case "INSIDE_OBJECT_BEFORE_VALUE":
|
3429
3429
|
case "INSIDE_OBJECT_AFTER_VALUE": {
|
3430
|
-
|
3430
|
+
i += "}";
|
3431
3431
|
break;
|
3432
3432
|
}
|
3433
3433
|
case "INSIDE_ARRAY_START":
|
3434
3434
|
case "INSIDE_ARRAY_AFTER_COMMA":
|
3435
3435
|
case "INSIDE_ARRAY_AFTER_VALUE": {
|
3436
|
-
|
3436
|
+
i += "]";
|
3437
3437
|
break;
|
3438
3438
|
}
|
3439
3439
|
case "INSIDE_LITERAL": {
|
3440
3440
|
const f = e.substring(a, e.length);
|
3441
|
-
"true".startsWith(f) ?
|
3441
|
+
"true".startsWith(f) ? i += "true".slice(f.length) : "false".startsWith(f) ? i += "false".slice(f.length) : "null".startsWith(f) && (i += "null".slice(f.length));
|
3442
3442
|
}
|
3443
3443
|
}
|
3444
|
-
return
|
3444
|
+
return i;
|
3445
3445
|
}
|
3446
3446
|
function du(e) {
|
3447
3447
|
if (e === void 0)
|
@@ -3639,7 +3639,7 @@ var uu = {
|
|
3639
3639
|
);
|
3640
3640
|
return { type: "file", value: e };
|
3641
3641
|
}
|
3642
|
-
},
|
3642
|
+
}, no = [
|
3643
3643
|
uu,
|
3644
3644
|
fu,
|
3645
3645
|
hu,
|
@@ -3657,12 +3657,12 @@ var uu = {
|
|
3657
3657
|
Eu,
|
3658
3658
|
Iu
|
3659
3659
|
], Cu = Object.fromEntries(
|
3660
|
-
|
3660
|
+
no.map((e) => [e.code, e])
|
3661
3661
|
);
|
3662
3662
|
Object.fromEntries(
|
3663
|
-
|
3663
|
+
no.map((e) => [e.name, e.code])
|
3664
3664
|
);
|
3665
|
-
var Su =
|
3665
|
+
var Su = no.map((e) => e.code), Nu = (e) => {
|
3666
3666
|
const t = e.indexOf(":");
|
3667
3667
|
if (t === -1)
|
3668
3668
|
throw new Error("Failed to parse stream string. No separator found.");
|
@@ -3687,8 +3687,8 @@ async function Ou({
|
|
3687
3687
|
onRedactedReasoningPart: o,
|
3688
3688
|
onSourcePart: n,
|
3689
3689
|
onFilePart: s,
|
3690
|
-
onDataPart:
|
3691
|
-
onErrorPart:
|
3690
|
+
onDataPart: i,
|
3691
|
+
onErrorPart: l,
|
3692
3692
|
onToolCallStreamingStartPart: d,
|
3693
3693
|
onToolCallDeltaPart: f,
|
3694
3694
|
onToolCallPart: u,
|
@@ -3731,10 +3731,10 @@ async function Ou({
|
|
3731
3731
|
await (n == null ? void 0 : n(k));
|
3732
3732
|
break;
|
3733
3733
|
case "data":
|
3734
|
-
await (
|
3734
|
+
await (i == null ? void 0 : i(k));
|
3735
3735
|
break;
|
3736
3736
|
case "error":
|
3737
|
-
await (
|
3737
|
+
await (l == null ? void 0 : l(k));
|
3738
3738
|
break;
|
3739
3739
|
case "message_annotations":
|
3740
3740
|
await (m == null ? void 0 : m(k));
|
@@ -3772,17 +3772,17 @@ async function $u({
|
|
3772
3772
|
update: t,
|
3773
3773
|
onToolCall: r,
|
3774
3774
|
onFinish: a,
|
3775
|
-
generateId: o =
|
3775
|
+
generateId: o = oo,
|
3776
3776
|
getCurrentDate: n = () => /* @__PURE__ */ new Date(),
|
3777
3777
|
lastMessage: s
|
3778
3778
|
}) {
|
3779
|
-
var
|
3779
|
+
var i, l;
|
3780
3780
|
const d = (s == null ? void 0 : s.role) === "assistant";
|
3781
3781
|
let f = d ? 1 + // find max step in existing tool invocations:
|
3782
|
-
((
|
3782
|
+
((l = (i = s.toolInvocations) == null ? void 0 : i.reduce((_, T) => {
|
3783
3783
|
var E;
|
3784
3784
|
return Math.max(_, (E = T.step) != null ? E : 0);
|
3785
|
-
}, 0)) != null ?
|
3785
|
+
}, 0)) != null ? l : 0) : 0;
|
3786
3786
|
const u = d ? structuredClone(s) : {
|
3787
3787
|
id: o(),
|
3788
3788
|
createdAt: n(),
|
@@ -3972,7 +3972,7 @@ async function Mu({
|
|
3972
3972
|
update: t,
|
3973
3973
|
onFinish: r,
|
3974
3974
|
getCurrentDate: a = () => /* @__PURE__ */ new Date(),
|
3975
|
-
generateId: o =
|
3975
|
+
generateId: o = oo
|
3976
3976
|
}) {
|
3977
3977
|
const n = { type: "text", text: "" }, s = {
|
3978
3978
|
id: o(),
|
@@ -3983,8 +3983,8 @@ async function Mu({
|
|
3983
3983
|
};
|
3984
3984
|
await Lu({
|
3985
3985
|
stream: e,
|
3986
|
-
onTextPart: (
|
3987
|
-
s.content +=
|
3986
|
+
onTextPart: (i) => {
|
3987
|
+
s.content += i, n.text += i, t({
|
3988
3988
|
message: { ...s },
|
3989
3989
|
data: [],
|
3990
3990
|
replaceLastMessage: !1
|
@@ -4004,8 +4004,8 @@ async function Bu({
|
|
4004
4004
|
headers: o,
|
4005
4005
|
abortController: n,
|
4006
4006
|
restoreMessagesOnFailure: s,
|
4007
|
-
onResponse:
|
4008
|
-
onUpdate:
|
4007
|
+
onResponse: i,
|
4008
|
+
onUpdate: l,
|
4009
4009
|
onFinish: d,
|
4010
4010
|
onToolCall: f,
|
4011
4011
|
generateId: u,
|
@@ -4025,9 +4025,9 @@ async function Bu({
|
|
4025
4025
|
}).catch((v) => {
|
4026
4026
|
throw s(), v;
|
4027
4027
|
});
|
4028
|
-
if (
|
4028
|
+
if (i)
|
4029
4029
|
try {
|
4030
|
-
await
|
4030
|
+
await i(b);
|
4031
4031
|
} catch (v) {
|
4032
4032
|
throw v;
|
4033
4033
|
}
|
@@ -4041,7 +4041,7 @@ async function Bu({
|
|
4041
4041
|
case "text": {
|
4042
4042
|
await Mu({
|
4043
4043
|
stream: b.body,
|
4044
|
-
update:
|
4044
|
+
update: l,
|
4045
4045
|
onFinish: d,
|
4046
4046
|
generateId: u
|
4047
4047
|
});
|
@@ -4050,7 +4050,7 @@ async function Bu({
|
|
4050
4050
|
case "data": {
|
4051
4051
|
await $u({
|
4052
4052
|
stream: b.body,
|
4053
|
-
update:
|
4053
|
+
update: l,
|
4054
4054
|
lastMessage: m,
|
4055
4055
|
onToolCall: f,
|
4056
4056
|
onFinish({ message: v, finishReason: w, usage: x }) {
|
@@ -4066,7 +4066,7 @@ async function Bu({
|
|
4066
4066
|
}
|
4067
4067
|
}
|
4068
4068
|
}
|
4069
|
-
function
|
4069
|
+
function $a(e) {
|
4070
4070
|
return e == null ? void 0 : e.reduce((t, r) => {
|
4071
4071
|
var a;
|
4072
4072
|
return Math.max(t, (a = r.step) != null ? a : 0);
|
@@ -4095,7 +4095,7 @@ function Jr(e) {
|
|
4095
4095
|
parts: Js(t)
|
4096
4096
|
}));
|
4097
4097
|
}
|
4098
|
-
function
|
4098
|
+
function La(e, t) {
|
4099
4099
|
if (e === t)
|
4100
4100
|
return !0;
|
4101
4101
|
if (e == null || t == null)
|
@@ -4110,7 +4110,7 @@ function $a(e, t) {
|
|
4110
4110
|
if (e.length !== t.length)
|
4111
4111
|
return !1;
|
4112
4112
|
for (let o = 0; o < e.length; o++)
|
4113
|
-
if (
|
4113
|
+
if (!La(e[o], t[o]))
|
4114
4114
|
return !1;
|
4115
4115
|
return !0;
|
4116
4116
|
}
|
@@ -4118,7 +4118,7 @@ function $a(e, t) {
|
|
4118
4118
|
if (r.length !== a.length)
|
4119
4119
|
return !1;
|
4120
4120
|
for (const o of r)
|
4121
|
-
if (!a.includes(o) ||
|
4121
|
+
if (!a.includes(o) || !La(e[o], t[o]))
|
4122
4122
|
return !1;
|
4123
4123
|
return !0;
|
4124
4124
|
}
|
@@ -4129,11 +4129,11 @@ async function Xo(e) {
|
|
4129
4129
|
return Promise.all(
|
4130
4130
|
Array.from(e).map(async (t) => {
|
4131
4131
|
const { name: r, type: a } = t, o = await new Promise((n, s) => {
|
4132
|
-
const
|
4133
|
-
|
4132
|
+
const i = new FileReader();
|
4133
|
+
i.onload = (l) => {
|
4134
4134
|
var d;
|
4135
|
-
n((d =
|
4136
|
-
},
|
4135
|
+
n((d = l.target) == null ? void 0 : d.result);
|
4136
|
+
}, i.onerror = (l) => s(l), i.readAsDataURL(t);
|
4137
4137
|
});
|
4138
4138
|
return {
|
4139
4139
|
name: r,
|
@@ -4158,9 +4158,9 @@ function Pu({
|
|
4158
4158
|
// check if the feature is enabled:
|
4159
4159
|
r > 1 && // ensure there is a last message:
|
4160
4160
|
n != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
|
4161
|
-
(a.length > t ||
|
4161
|
+
(a.length > t || $a(n.toolInvocations) !== e) && // check that next step is possible:
|
4162
4162
|
Ks(n) && // limit the number of automatic steps:
|
4163
|
-
((o =
|
4163
|
+
((o = $a(n.toolInvocations)) != null ? o : 0) < r
|
4164
4164
|
);
|
4165
4165
|
}
|
4166
4166
|
function Ks(e) {
|
@@ -4176,7 +4176,7 @@ function zu({
|
|
4176
4176
|
}) {
|
4177
4177
|
var a;
|
4178
4178
|
const o = e[e.length - 1], n = o.parts.find(
|
4179
|
-
(
|
4179
|
+
(i) => i.type === "tool-invocation" && i.toolInvocation.toolCallId === t
|
4180
4180
|
);
|
4181
4181
|
if (n == null)
|
4182
4182
|
return;
|
@@ -4186,7 +4186,7 @@ function zu({
|
|
4186
4186
|
result: r
|
4187
4187
|
};
|
4188
4188
|
n.toolInvocation = s, o.toolInvocations = (a = o.toolInvocations) == null ? void 0 : a.map(
|
4189
|
-
(
|
4189
|
+
(i) => i.toolCallId === t ? s : i
|
4190
4190
|
);
|
4191
4191
|
}
|
4192
4192
|
var hr = { exports: {} }, Kr = {};
|
@@ -4208,23 +4208,23 @@ function Vu() {
|
|
4208
4208
|
return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
|
4209
4209
|
}
|
4210
4210
|
var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, o = e.useEffect, n = e.useLayoutEffect, s = e.useDebugValue;
|
4211
|
-
function
|
4211
|
+
function i(u, h) {
|
4212
4212
|
var m = h(), g = a({ inst: { value: m, getSnapshot: h } }), y = g[0].inst, b = g[1];
|
4213
4213
|
return n(
|
4214
4214
|
function() {
|
4215
|
-
y.value = m, y.getSnapshot = h,
|
4215
|
+
y.value = m, y.getSnapshot = h, l(y) && b({ inst: y });
|
4216
4216
|
},
|
4217
4217
|
[u, m, h]
|
4218
4218
|
), o(
|
4219
4219
|
function() {
|
4220
|
-
return
|
4221
|
-
|
4220
|
+
return l(y) && b({ inst: y }), u(function() {
|
4221
|
+
l(y) && b({ inst: y });
|
4222
4222
|
});
|
4223
4223
|
},
|
4224
4224
|
[u]
|
4225
4225
|
), s(m), m;
|
4226
4226
|
}
|
4227
|
-
function
|
4227
|
+
function l(u) {
|
4228
4228
|
var h = u.getSnapshot;
|
4229
4229
|
u = u.value;
|
4230
4230
|
try {
|
@@ -4237,7 +4237,7 @@ function Vu() {
|
|
4237
4237
|
function d(u, h) {
|
4238
4238
|
return h();
|
4239
4239
|
}
|
4240
|
-
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d :
|
4240
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : i;
|
4241
4241
|
return Kr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Kr;
|
4242
4242
|
}
|
4243
4243
|
var Qr = {};
|
@@ -4271,12 +4271,12 @@ function Fu() {
|
|
4271
4271
|
inst: { value: y, getSnapshot: g }
|
4272
4272
|
});
|
4273
4273
|
var v = b[0].inst, w = b[1];
|
4274
|
-
return
|
4274
|
+
return l(
|
4275
4275
|
function() {
|
4276
4276
|
v.value = y, v.getSnapshot = g, r(v) && w({ inst: v });
|
4277
4277
|
},
|
4278
4278
|
[m, y, g]
|
4279
|
-
),
|
4279
|
+
), i(
|
4280
4280
|
function() {
|
4281
4281
|
return r(v) && w({ inst: v }), m(function() {
|
4282
4282
|
r(v) && w({ inst: v });
|
@@ -4299,7 +4299,7 @@ function Fu() {
|
|
4299
4299
|
return g();
|
4300
4300
|
}
|
4301
4301
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
4302
|
-
var o = U, n = typeof Object.is == "function" ? Object.is : e, s = o.useState,
|
4302
|
+
var o = U, n = typeof Object.is == "function" ? Object.is : e, s = o.useState, i = o.useEffect, l = o.useLayoutEffect, d = o.useDebugValue, f = !1, u = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
4303
4303
|
Qr.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
4304
4304
|
}()), Qr;
|
4305
4305
|
}
|
@@ -4310,7 +4310,7 @@ function Uu() {
|
|
4310
4310
|
var Hu = /* @__PURE__ */ Uu();
|
4311
4311
|
const Qs = 0, Xs = 1, Zs = 2, rn = 3;
|
4312
4312
|
var an = Object.prototype.hasOwnProperty;
|
4313
|
-
function
|
4313
|
+
function Ma(e, t) {
|
4314
4314
|
var r, a;
|
4315
4315
|
if (e === t) return !0;
|
4316
4316
|
if (e && t && (r = e.constructor) === t.constructor) {
|
@@ -4318,26 +4318,26 @@ function La(e, t) {
|
|
4318
4318
|
if (r === RegExp) return e.toString() === t.toString();
|
4319
4319
|
if (r === Array) {
|
4320
4320
|
if ((a = e.length) === t.length)
|
4321
|
-
for (; a-- &&
|
4321
|
+
for (; a-- && Ma(e[a], t[a]); ) ;
|
4322
4322
|
return a === -1;
|
4323
4323
|
}
|
4324
4324
|
if (!r || typeof e == "object") {
|
4325
4325
|
a = 0;
|
4326
4326
|
for (r in e)
|
4327
|
-
if (an.call(e, r) && ++a && !an.call(t, r) || !(r in t) || !
|
4327
|
+
if (an.call(e, r) && ++a && !an.call(t, r) || !(r in t) || !Ma(e[r], t[r])) return !1;
|
4328
4328
|
return Object.keys(t).length === a;
|
4329
4329
|
}
|
4330
4330
|
}
|
4331
4331
|
return e !== e && t !== t;
|
4332
4332
|
}
|
4333
4333
|
const Je = /* @__PURE__ */ new WeakMap(), at = () => {
|
4334
|
-
},
|
4334
|
+
}, be = (
|
4335
4335
|
/*#__NOINLINE__*/
|
4336
4336
|
at()
|
4337
|
-
),
|
4337
|
+
), Da = Object, q = (e) => e === be, Ue = (e) => typeof e == "function", nt = (e, t) => ({
|
4338
4338
|
...e,
|
4339
4339
|
...t
|
4340
|
-
}), ei = (e) => Ue(e.then), Xr = {}, mr = {},
|
4340
|
+
}), ei = (e) => Ue(e.then), Xr = {}, mr = {}, so = "undefined", sr = typeof window != so, Ba = typeof document != so, Gu = sr && "Deno" in window, ju = () => sr && typeof window.requestAnimationFrame != so, ti = (e, t) => {
|
4341
4341
|
const r = Je.get(e);
|
4342
4342
|
return [
|
4343
4343
|
// Getter
|
@@ -4355,26 +4355,26 @@ const Je = /* @__PURE__ */ new WeakMap(), at = () => {
|
|
4355
4355
|
() => !q(t) && t in mr ? mr[t] : !q(t) && e.get(t) || Xr
|
4356
4356
|
];
|
4357
4357
|
};
|
4358
|
-
let
|
4359
|
-
const Wu = () =>
|
4358
|
+
let Pa = !0;
|
4359
|
+
const Wu = () => Pa, [za, Va] = sr && window.addEventListener ? [
|
4360
4360
|
window.addEventListener.bind(window),
|
4361
4361
|
window.removeEventListener.bind(window)
|
4362
4362
|
] : [
|
4363
4363
|
at,
|
4364
4364
|
at
|
4365
4365
|
], qu = () => {
|
4366
|
-
const e =
|
4366
|
+
const e = Ba && document.visibilityState;
|
4367
4367
|
return q(e) || e !== "hidden";
|
4368
|
-
}, Yu = (e) => (
|
4369
|
-
|
4368
|
+
}, Yu = (e) => (Ba && document.addEventListener("visibilitychange", e), za("focus", e), () => {
|
4369
|
+
Ba && document.removeEventListener("visibilitychange", e), Va("focus", e);
|
4370
4370
|
}), Ju = (e) => {
|
4371
4371
|
const t = () => {
|
4372
|
-
|
4372
|
+
Pa = !0, e();
|
4373
4373
|
}, r = () => {
|
4374
|
-
|
4374
|
+
Pa = !1;
|
4375
4375
|
};
|
4376
|
-
return
|
4377
|
-
|
4376
|
+
return za("online", t), za("offline", r), () => {
|
4377
|
+
Va("online", t), Va("offline", r);
|
4378
4378
|
};
|
4379
4379
|
}, Ku = {
|
4380
4380
|
isOnline: Wu,
|
@@ -4385,29 +4385,29 @@ const Wu = () => Ba, [Pa, za] = sr && window.addEventListener ? [
|
|
4385
4385
|
}, on = !U.useId, Jt = !sr || Gu, Xu = (e) => ju() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Zr = Jt ? P : ge, ea = typeof navigator < "u" && navigator.connection, nn = !Jt && ea && ([
|
4386
4386
|
"slow-2g",
|
4387
4387
|
"2g"
|
4388
|
-
].includes(ea.effectiveType) || ea.saveData), pr = /* @__PURE__ */ new WeakMap(), ta = (e, t) =>
|
4388
|
+
].includes(ea.effectiveType) || ea.saveData), pr = /* @__PURE__ */ new WeakMap(), ta = (e, t) => Da.prototype.toString.call(e) === `[object ${t}]`;
|
4389
4389
|
let Zu = 0;
|
4390
|
-
const
|
4390
|
+
const Fa = (e) => {
|
4391
4391
|
const t = typeof e, r = ta(e, "Date"), a = ta(e, "RegExp"), o = ta(e, "Object");
|
4392
4392
|
let n, s;
|
4393
|
-
if (
|
4393
|
+
if (Da(e) === e && !r && !a) {
|
4394
4394
|
if (n = pr.get(e), n) return n;
|
4395
4395
|
if (n = ++Zu + "~", pr.set(e, n), Array.isArray(e)) {
|
4396
4396
|
for (n = "@", s = 0; s < e.length; s++)
|
4397
|
-
n +=
|
4397
|
+
n += Fa(e[s]) + ",";
|
4398
4398
|
pr.set(e, n);
|
4399
4399
|
}
|
4400
4400
|
if (o) {
|
4401
4401
|
n = "#";
|
4402
|
-
const
|
4403
|
-
for (; !q(s =
|
4404
|
-
q(e[s]) || (n += s + ":" +
|
4402
|
+
const i = Da.keys(e).sort();
|
4403
|
+
for (; !q(s = i.pop()); )
|
4404
|
+
q(e[s]) || (n += s + ":" + Fa(e[s]) + ",");
|
4405
4405
|
pr.set(e, n);
|
4406
4406
|
}
|
4407
4407
|
} else
|
4408
4408
|
n = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
4409
4409
|
return n;
|
4410
|
-
},
|
4410
|
+
}, io = (e) => {
|
4411
4411
|
if (Ue(e))
|
4412
4412
|
try {
|
4413
4413
|
e = e();
|
@@ -4415,13 +4415,13 @@ const Va = (e) => {
|
|
4415
4415
|
e = "";
|
4416
4416
|
}
|
4417
4417
|
const t = e;
|
4418
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
4418
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Fa(e) : "", [
|
4419
4419
|
e,
|
4420
4420
|
t
|
4421
4421
|
];
|
4422
4422
|
};
|
4423
4423
|
let ef = 0;
|
4424
|
-
const
|
4424
|
+
const Ua = () => ++ef;
|
4425
4425
|
async function ri(...e) {
|
4426
4426
|
const [t, r, a, o] = e, n = nt({
|
4427
4427
|
populateCache: !0,
|
@@ -4430,9 +4430,9 @@ async function ri(...e) {
|
|
4430
4430
|
revalidate: o
|
4431
4431
|
} : o || {});
|
4432
4432
|
let s = n.populateCache;
|
4433
|
-
const
|
4434
|
-
let
|
4435
|
-
const d = (h) => typeof
|
4433
|
+
const i = n.rollbackOnError;
|
4434
|
+
let l = n.optimisticData;
|
4435
|
+
const d = (h) => typeof i == "function" ? i(h) : i !== !1, f = n.throwOnError;
|
4436
4436
|
if (Ue(r)) {
|
4437
4437
|
const h = r, m = [], g = t.keys();
|
4438
4438
|
for (const y of g)
|
@@ -4442,7 +4442,7 @@ async function ri(...e) {
|
|
4442
4442
|
}
|
4443
4443
|
return u(r);
|
4444
4444
|
async function u(h) {
|
4445
|
-
const [m] =
|
4445
|
+
const [m] = io(h);
|
4446
4446
|
if (!m) return;
|
4447
4447
|
const [g, y] = ti(t, m), [b, v, w, x] = Je.get(t), C = () => {
|
4448
4448
|
const L = b[m];
|
@@ -4451,14 +4451,14 @@ async function ri(...e) {
|
|
4451
4451
|
if (e.length < 3)
|
4452
4452
|
return C();
|
4453
4453
|
let I = a, _;
|
4454
|
-
const T =
|
4454
|
+
const T = Ua();
|
4455
4455
|
v[m] = [
|
4456
4456
|
T,
|
4457
4457
|
0
|
4458
4458
|
];
|
4459
|
-
const E = !q(
|
4460
|
-
if (E && (
|
4461
|
-
data:
|
4459
|
+
const E = !q(l), k = g(), R = k.data, S = k._c, A = q(S) ? R : S;
|
4460
|
+
if (E && (l = Ue(l) ? l(A, R) : l, y({
|
4461
|
+
data: l,
|
4462
4462
|
_c: A
|
4463
4463
|
})), Ue(I))
|
4464
4464
|
try {
|
@@ -4474,25 +4474,25 @@ async function ri(...e) {
|
|
4474
4474
|
return I;
|
4475
4475
|
} else _ && E && d(_) && (s = !0, y({
|
4476
4476
|
data: A,
|
4477
|
-
_c:
|
4477
|
+
_c: be
|
4478
4478
|
}));
|
4479
4479
|
if (s && !_)
|
4480
4480
|
if (Ue(s)) {
|
4481
4481
|
const L = s(I, A);
|
4482
4482
|
y({
|
4483
4483
|
data: L,
|
4484
|
-
error:
|
4485
|
-
_c:
|
4484
|
+
error: be,
|
4485
|
+
_c: be
|
4486
4486
|
});
|
4487
4487
|
} else
|
4488
4488
|
y({
|
4489
4489
|
data: I,
|
4490
|
-
error:
|
4491
|
-
_c:
|
4490
|
+
error: be,
|
4491
|
+
_c: be
|
4492
4492
|
});
|
4493
|
-
if (v[m][1] =
|
4493
|
+
if (v[m][1] = Ua(), Promise.resolve(C()).then(() => {
|
4494
4494
|
y({
|
4495
|
-
_c:
|
4495
|
+
_c: be
|
4496
4496
|
});
|
4497
4497
|
}), _) {
|
4498
4498
|
if (f) throw _;
|
@@ -4506,12 +4506,12 @@ const sn = (e, t) => {
|
|
4506
4506
|
e[r][0] && e[r][0](t);
|
4507
4507
|
}, tf = (e, t) => {
|
4508
4508
|
if (!Je.has(e)) {
|
4509
|
-
const r = nt(Qu, t), a = {}, o = ri.bind(
|
4509
|
+
const r = nt(Qu, t), a = {}, o = ri.bind(be, e);
|
4510
4510
|
let n = at;
|
4511
|
-
const s = {},
|
4511
|
+
const s = {}, i = (f, u) => {
|
4512
4512
|
const h = s[f] || [];
|
4513
4513
|
return s[f] = h, h.push(u), () => h.splice(h.indexOf(u), 1);
|
4514
|
-
},
|
4514
|
+
}, l = (f, u, h) => {
|
4515
4515
|
e.set(f, u);
|
4516
4516
|
const m = s[f];
|
4517
4517
|
if (m)
|
@@ -4524,10 +4524,10 @@ const sn = (e, t) => {
|
|
4524
4524
|
{},
|
4525
4525
|
{},
|
4526
4526
|
o,
|
4527
|
-
|
4528
|
-
|
4527
|
+
l,
|
4528
|
+
i
|
4529
4529
|
]), !Jt)) {
|
4530
|
-
const f = r.initFocus(setTimeout.bind(
|
4530
|
+
const f = r.initFocus(setTimeout.bind(be, sn.bind(be, a, Qs))), u = r.initReconnect(setTimeout.bind(be, sn.bind(be, a, Xs)));
|
4531
4531
|
n = () => {
|
4532
4532
|
f && f(), u && u(), Je.delete(e);
|
4533
4533
|
};
|
@@ -4545,9 +4545,9 @@ const sn = (e, t) => {
|
|
4545
4545
|
Je.get(e)[4]
|
4546
4546
|
];
|
4547
4547
|
}, rf = (e, t, r, a, o) => {
|
4548
|
-
const n = r.errorRetryCount, s = o.retryCount,
|
4549
|
-
!q(n) && s > n || setTimeout(a,
|
4550
|
-
}, af =
|
4548
|
+
const n = r.errorRetryCount, s = o.retryCount, i = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
4549
|
+
!q(n) && s > n || setTimeout(a, i, o);
|
4550
|
+
}, af = Ma, [ai, of] = tf(/* @__PURE__ */ new Map()), nf = nt(
|
4551
4551
|
{
|
4552
4552
|
// events
|
4553
4553
|
onLoadingSlow: at,
|
@@ -4592,18 +4592,18 @@ const sn = (e, t) => {
|
|
4592
4592
|
null,
|
4593
4593
|
(e[1] === null ? e[2] : e[1]) || {}
|
4594
4594
|
], hf = () => nt(nf, X(lf)), mf = (e) => (t, r, a) => e(t, r && ((...n) => {
|
4595
|
-
const [s] =
|
4595
|
+
const [s] = io(t), [, , , i] = Je.get(ai);
|
4596
4596
|
if (s.startsWith(cf))
|
4597
4597
|
return r(...n);
|
4598
|
-
const
|
4599
|
-
return q(
|
4598
|
+
const l = i[s];
|
4599
|
+
return q(l) ? r(...n) : (delete i[s], l);
|
4600
4600
|
}), a), pf = df.concat(mf), gf = (e) => function(...r) {
|
4601
|
-
const a = hf(), [o, n, s] = ff(r),
|
4602
|
-
let
|
4603
|
-
const { use: d } =
|
4601
|
+
const a = hf(), [o, n, s] = ff(r), i = sf(a, s);
|
4602
|
+
let l = e;
|
4603
|
+
const { use: d } = i, f = (d || []).concat(pf);
|
4604
4604
|
for (let u = f.length; u--; )
|
4605
|
-
|
4606
|
-
return
|
4605
|
+
l = f[u](l);
|
4606
|
+
return l(o, n || i.fetcher || null, i);
|
4607
4607
|
}, yf = (e, t, r) => {
|
4608
4608
|
const a = t[e] || (t[e] = []);
|
4609
4609
|
return a.push(r), () => {
|
@@ -4634,7 +4634,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4634
4634
|
}), aa = {
|
4635
4635
|
dedupe: !0
|
4636
4636
|
}, bf = (e, t, r) => {
|
4637
|
-
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount:
|
4637
|
+
const { cache: a, compare: o, suspense: n, fallbackData: s, revalidateOnMount: i, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, b] = Je.get(a), [v, w] = io(e), x = $(!1), C = $(!1), I = $(v), _ = $(t), T = $(r), E = () => T.current, k = () => E().isVisible() && E().isOnline(), [R, S, A, L] = ti(a, v), D = $({}).current, z = q(s) ? q(r.fallback) ? be : r.fallback[v] : s, M = (B, V) => {
|
4638
4638
|
for (const ee in D) {
|
4639
4639
|
const K = ee;
|
4640
4640
|
if (K === "data") {
|
@@ -4645,7 +4645,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4645
4645
|
}
|
4646
4646
|
return !0;
|
4647
4647
|
}, W = Ee(() => {
|
4648
|
-
const B = !v || !t ? !1 : q(
|
4648
|
+
const B = !v || !t ? !1 : q(i) ? E().isPaused() || n ? !1 : l !== !1 : i, V = (ue) => {
|
4649
4649
|
const Re = nt(ue);
|
4650
4650
|
return delete Re._k, B ? {
|
4651
4651
|
isValidating: !0,
|
@@ -4673,7 +4673,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4673
4673
|
a,
|
4674
4674
|
v
|
4675
4675
|
]
|
4676
|
-
), W[0], W[1]), J = !x.current, me = m[v] && m[v].length > 0, De = G.data, Ie = q(De) ? z && ei(z) ? ra(z) : z : De, et = G.error, lt = $(Ie), We = h ? q(De) ? q(lt.current) ? Ie : lt.current : De : Ie, Be = me && !q(et) ? !1 : J && !q(
|
4676
|
+
), W[0], W[1]), J = !x.current, me = m[v] && m[v].length > 0, De = G.data, Ie = q(De) ? z && ei(z) ? ra(z) : z : De, et = G.error, lt = $(Ie), We = h ? q(De) ? q(lt.current) ? Ie : lt.current : De : Ie, Be = me && !q(et) ? !1 : J && !q(i) ? i : E().isPaused() ? !1 : n ? q(Ie) ? !1 : l : q(Ie) || l, we = !!(v && t && J && Be), Ce = q(G.isValidating) ? we : G.isValidating, Vt = q(G.isLoading) ? we : G.isLoading, qe = Y(
|
4677
4677
|
async (B) => {
|
4678
4678
|
const V = _.current;
|
4679
4679
|
if (!v || !V || C.current || E().isPaused())
|
@@ -4696,10 +4696,10 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4696
4696
|
le && ue() && E().onLoadingSlow(v, r);
|
4697
4697
|
}, r.loadingTimeout), y[v] = [
|
4698
4698
|
V(w),
|
4699
|
-
|
4699
|
+
Ua()
|
4700
4700
|
]), [ee, K] = y[v], ee = await ee, oe && setTimeout(Ft, r.dedupingInterval), !y[v] || y[v][1] !== K)
|
4701
4701
|
return oe && ue() && E().onDiscarded(v), !1;
|
4702
|
-
Re.error =
|
4702
|
+
Re.error = be;
|
4703
4703
|
const de = g[v];
|
4704
4704
|
if (!q(de) && // case 1
|
4705
4705
|
(K <= de[0] || // case 2
|
@@ -4746,7 +4746,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4746
4746
|
_.current = t, T.current = r, q(De) || (lt.current = De);
|
4747
4747
|
}), Zr(() => {
|
4748
4748
|
if (!v) return;
|
4749
|
-
const B = qe.bind(
|
4749
|
+
const B = qe.bind(be, aa);
|
4750
4750
|
let V = 0;
|
4751
4751
|
const K = yf(v, m, (le, pe = {}) => {
|
4752
4752
|
if (le == Qs) {
|
@@ -4826,8 +4826,8 @@ function vf() {
|
|
4826
4826
|
let a, o = 0;
|
4827
4827
|
return function(...s) {
|
4828
4828
|
clearTimeout(a);
|
4829
|
-
const
|
4830
|
-
d <= 0 ? (o =
|
4829
|
+
const i = Date.now(), l = i - o, d = r - l;
|
4830
|
+
d <= 0 ? (o = i, t.apply(this, s)) : a = setTimeout(() => {
|
4831
4831
|
o = Date.now(), t.apply(this, s);
|
4832
4832
|
}, d);
|
4833
4833
|
};
|
@@ -4842,7 +4842,7 @@ function cn(e, t) {
|
|
4842
4842
|
function kf(e) {
|
4843
4843
|
const [t, r] = F(e);
|
4844
4844
|
return P(() => {
|
4845
|
-
|
4845
|
+
La(e, t) || r(e);
|
4846
4846
|
}, [e, t]), t;
|
4847
4847
|
}
|
4848
4848
|
function xf({
|
@@ -4853,15 +4853,15 @@ function xf({
|
|
4853
4853
|
sendExtraMessageFields: o,
|
4854
4854
|
onToolCall: n,
|
4855
4855
|
experimental_prepareRequestBody: s,
|
4856
|
-
maxSteps:
|
4857
|
-
streamProtocol:
|
4856
|
+
maxSteps: i = 1,
|
4857
|
+
streamProtocol: l = "data",
|
4858
4858
|
onResponse: d,
|
4859
4859
|
onFinish: f,
|
4860
4860
|
onError: u,
|
4861
4861
|
credentials: h,
|
4862
4862
|
headers: m,
|
4863
4863
|
body: g,
|
4864
|
-
generateId: y =
|
4864
|
+
generateId: y = oo,
|
4865
4865
|
fetch: b,
|
4866
4866
|
keepLastMessageOnError: v = !0,
|
4867
4867
|
experimental_throttle: w
|
@@ -4897,7 +4897,7 @@ function xf({
|
|
4897
4897
|
async (H) => {
|
4898
4898
|
var ie, B;
|
4899
4899
|
z("submitted"), W(void 0);
|
4900
|
-
const V = Jr(H.messages), ee = V.length, K =
|
4900
|
+
const V = Jr(H.messages), ee = V.length, K = $a(
|
4901
4901
|
(ie = V[V.length - 1]) == null ? void 0 : ie.toolInvocations
|
4902
4902
|
);
|
4903
4903
|
try {
|
@@ -4943,7 +4943,7 @@ function xf({
|
|
4943
4943
|
...J.current.body,
|
4944
4944
|
...H.body
|
4945
4945
|
},
|
4946
|
-
streamProtocol:
|
4946
|
+
streamProtocol: l,
|
4947
4947
|
credentials: J.current.credentials,
|
4948
4948
|
headers: {
|
4949
4949
|
...J.current.headers,
|
@@ -4981,7 +4981,7 @@ function xf({
|
|
4981
4981
|
Pu({
|
4982
4982
|
originalMaxToolInvocationStep: K,
|
4983
4983
|
originalMessageCount: ee,
|
4984
|
-
maxSteps:
|
4984
|
+
maxSteps: i,
|
4985
4985
|
messages: le
|
4986
4986
|
}) && await me({ messages: le });
|
4987
4987
|
},
|
@@ -4996,11 +4996,11 @@ function xf({
|
|
4996
4996
|
W,
|
4997
4997
|
A,
|
4998
4998
|
L,
|
4999
|
-
|
4999
|
+
l,
|
5000
5000
|
o,
|
5001
5001
|
s,
|
5002
5002
|
n,
|
5003
|
-
|
5003
|
+
i,
|
5004
5004
|
R,
|
5005
5005
|
G,
|
5006
5006
|
y,
|
@@ -5154,30 +5154,30 @@ function Tf({
|
|
5154
5154
|
r.current = dn();
|
5155
5155
|
}, [t]);
|
5156
5156
|
const a = Y(
|
5157
|
-
(...
|
5157
|
+
(...l) => {
|
5158
5158
|
for (const d of r.current.onError)
|
5159
|
-
d(...
|
5159
|
+
d(...l);
|
5160
5160
|
},
|
5161
5161
|
[]
|
5162
5162
|
), o = Y(
|
5163
|
-
(...
|
5163
|
+
(...l) => {
|
5164
5164
|
for (const d of r.current.onFinish)
|
5165
|
-
d(...
|
5165
|
+
d(...l);
|
5166
5166
|
},
|
5167
5167
|
[]
|
5168
5168
|
), n = Y(
|
5169
|
-
async (...
|
5169
|
+
async (...l) => {
|
5170
5170
|
for (const d of r.current.onResponse)
|
5171
|
-
await d(...
|
5171
|
+
await d(...l);
|
5172
5172
|
},
|
5173
5173
|
[]
|
5174
5174
|
), s = Y(
|
5175
|
-
async (...
|
5175
|
+
async (...l) => {
|
5176
5176
|
for (const d of r.current.onToolCall)
|
5177
|
-
await d(...
|
5177
|
+
await d(...l);
|
5178
5178
|
},
|
5179
5179
|
[]
|
5180
|
-
),
|
5180
|
+
), i = xf({
|
5181
5181
|
...t,
|
5182
5182
|
onError: a,
|
5183
5183
|
onFinish: o,
|
@@ -5188,17 +5188,17 @@ function Tf({
|
|
5188
5188
|
ni.Provider,
|
5189
5189
|
{
|
5190
5190
|
value: {
|
5191
|
-
chat:
|
5191
|
+
chat: i,
|
5192
5192
|
handlers: r.current
|
5193
5193
|
},
|
5194
5194
|
children: e
|
5195
5195
|
}
|
5196
5196
|
);
|
5197
5197
|
}
|
5198
|
-
const Ef = "z-20", If = "z-10", Cf = "user", un = "assistant", Pr = "OpenAI",
|
5199
|
-
[
|
5198
|
+
const Ef = "z-20", If = "z-10", Cf = "user", un = "assistant", Pr = "OpenAI", lo = "Anthropic", co = "Google", Sf = Pr, Nf = "claude-3", Rf = "gpt-4", Af = "o3", Of = "gemini", $f = {
|
5199
|
+
[lo]: [Nf],
|
5200
5200
|
[Pr]: [Rf, Af],
|
5201
|
-
[
|
5201
|
+
[co]: [Of]
|
5202
5202
|
}, Lf = (e) => {
|
5203
5203
|
for (const [t, r] of Object.entries(
|
5204
5204
|
$f
|
@@ -5210,11 +5210,11 @@ const Ef = "z-20", If = "z-10", Cf = "user", un = "assistant", Pr = "OpenAI", io
|
|
5210
5210
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
5211
5211
|
dispatch: () => {
|
5212
5212
|
}
|
5213
|
-
}),
|
5213
|
+
}), uo = U.createContext({
|
5214
5214
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
5215
5215
|
dispatch: () => {
|
5216
5216
|
}
|
5217
|
-
}),
|
5217
|
+
}), _e = U.createContext({
|
5218
5218
|
state: {
|
5219
5219
|
provider: Sf,
|
5220
5220
|
privateChat: !1,
|
@@ -5232,9 +5232,9 @@ const Ef = "z-20", If = "z-10", Cf = "user", un = "assistant", Pr = "OpenAI", io
|
|
5232
5232
|
},
|
5233
5233
|
setInitialMessages: () => {
|
5234
5234
|
}
|
5235
|
-
}),
|
5235
|
+
}), fo = U.createContext({
|
5236
5236
|
state: {
|
5237
|
-
footerPosition:
|
5237
|
+
footerPosition: Ra,
|
5238
5238
|
footerHeight: 0,
|
5239
5239
|
footerOffset: 0
|
5240
5240
|
},
|
@@ -5266,7 +5266,7 @@ const Mf = "av-tooltip", Df = "av-tooltip-arrow", Kt = Math.min, It = Math.max,
|
|
5266
5266
|
start: "end",
|
5267
5267
|
end: "start"
|
5268
5268
|
};
|
5269
|
-
function
|
5269
|
+
function Ha(e, t, r) {
|
5270
5270
|
return It(e, Kt(t, r));
|
5271
5271
|
}
|
5272
5272
|
function lr(e, t) {
|
@@ -5281,26 +5281,26 @@ function cr(e) {
|
|
5281
5281
|
function si(e) {
|
5282
5282
|
return e === "x" ? "y" : "x";
|
5283
5283
|
}
|
5284
|
-
function
|
5284
|
+
function ho(e) {
|
5285
5285
|
return e === "y" ? "height" : "width";
|
5286
5286
|
}
|
5287
5287
|
function Lt(e) {
|
5288
5288
|
return ["top", "bottom"].includes(bt(e)) ? "y" : "x";
|
5289
5289
|
}
|
5290
|
-
function
|
5290
|
+
function mo(e) {
|
5291
5291
|
return si(Lt(e));
|
5292
5292
|
}
|
5293
5293
|
function zf(e, t, r) {
|
5294
5294
|
r === void 0 && (r = !1);
|
5295
|
-
const a = cr(e), o =
|
5295
|
+
const a = cr(e), o = mo(e), n = ho(o);
|
5296
5296
|
let s = o === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
5297
5297
|
return t.reference[n] > t.floating[n] && (s = Rr(s)), [s, Rr(s)];
|
5298
5298
|
}
|
5299
5299
|
function Vf(e) {
|
5300
5300
|
const t = Rr(e);
|
5301
|
-
return [
|
5301
|
+
return [Ga(e), t, Ga(t)];
|
5302
5302
|
}
|
5303
|
-
function
|
5303
|
+
function Ga(e) {
|
5304
5304
|
return e.replace(/start|end/g, (t) => Pf[t]);
|
5305
5305
|
}
|
5306
5306
|
function Ff(e, t, r) {
|
@@ -5319,7 +5319,7 @@ function Ff(e, t, r) {
|
|
5319
5319
|
function Uf(e, t, r, a) {
|
5320
5320
|
const o = cr(e);
|
5321
5321
|
let n = Ff(bt(e), r === "start", a);
|
5322
|
-
return o && (n = n.map((s) => s + "-" + o), t && (n = n.concat(n.map(
|
5322
|
+
return o && (n = n.map((s) => s + "-" + o), t && (n = n.concat(n.map(Ga)))), n;
|
5323
5323
|
}
|
5324
5324
|
function Rr(e) {
|
5325
5325
|
return e.replace(/left|right|bottom|top/g, (t) => Bf[t]);
|
@@ -5364,9 +5364,9 @@ function fn(e, t, r) {
|
|
5364
5364
|
reference: a,
|
5365
5365
|
floating: o
|
5366
5366
|
} = e;
|
5367
|
-
const n = Lt(t), s =
|
5367
|
+
const n = Lt(t), s = mo(t), i = ho(s), l = bt(t), d = n === "y", f = a.x + a.width / 2 - o.width / 2, u = a.y + a.height / 2 - o.height / 2, h = a[i] / 2 - o[i] / 2;
|
5368
5368
|
let m;
|
5369
|
-
switch (
|
5369
|
+
switch (l) {
|
5370
5370
|
case "top":
|
5371
5371
|
m = {
|
5372
5372
|
x: f,
|
@@ -5413,7 +5413,7 @@ const Gf = async (e, t, r) => {
|
|
5413
5413
|
strategy: o = "absolute",
|
5414
5414
|
middleware: n = [],
|
5415
5415
|
platform: s
|
5416
|
-
} = r,
|
5416
|
+
} = r, i = n.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
5417
5417
|
let d = await s.getElementRects({
|
5418
5418
|
reference: e,
|
5419
5419
|
floating: t,
|
@@ -5421,12 +5421,12 @@ const Gf = async (e, t, r) => {
|
|
5421
5421
|
}), {
|
5422
5422
|
x: f,
|
5423
5423
|
y: u
|
5424
|
-
} = fn(d, a,
|
5425
|
-
for (let y = 0; y <
|
5424
|
+
} = fn(d, a, l), h = a, m = {}, g = 0;
|
5425
|
+
for (let y = 0; y < i.length; y++) {
|
5426
5426
|
const {
|
5427
5427
|
name: b,
|
5428
5428
|
fn: v
|
5429
|
-
} =
|
5429
|
+
} = i[y], {
|
5430
5430
|
x: w,
|
5431
5431
|
y: x,
|
5432
5432
|
data: C,
|
@@ -5458,7 +5458,7 @@ const Gf = async (e, t, r) => {
|
|
5458
5458
|
}) : I.rects), {
|
5459
5459
|
x: f,
|
5460
5460
|
y: u
|
5461
|
-
} = fn(d, h,
|
5461
|
+
} = fn(d, h, l)), y = -1);
|
5462
5462
|
}
|
5463
5463
|
return {
|
5464
5464
|
x: f,
|
@@ -5476,35 +5476,35 @@ async function li(e, t) {
|
|
5476
5476
|
y: o,
|
5477
5477
|
platform: n,
|
5478
5478
|
rects: s,
|
5479
|
-
elements:
|
5480
|
-
strategy:
|
5479
|
+
elements: i,
|
5480
|
+
strategy: l
|
5481
5481
|
} = e, {
|
5482
5482
|
boundary: d = "clippingAncestors",
|
5483
5483
|
rootBoundary: f = "viewport",
|
5484
5484
|
elementContext: u = "floating",
|
5485
5485
|
altBoundary: h = !1,
|
5486
5486
|
padding: m = 0
|
5487
|
-
} = lr(t, e), g = ii(m), y =
|
5488
|
-
element: (r = await (n.isElement == null ? void 0 : n.isElement(y))) == null || r ? y : y.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(
|
5487
|
+
} = lr(t, e), g = ii(m), y = i[h ? u === "floating" ? "reference" : "floating" : u], b = Ar(await n.getClippingRect({
|
5488
|
+
element: (r = await (n.isElement == null ? void 0 : n.isElement(y))) == null || r ? y : y.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(i.floating)),
|
5489
5489
|
boundary: d,
|
5490
5490
|
rootBoundary: f,
|
5491
|
-
strategy:
|
5491
|
+
strategy: l
|
5492
5492
|
})), v = u === "floating" ? {
|
5493
5493
|
x: a,
|
5494
5494
|
y: o,
|
5495
5495
|
width: s.floating.width,
|
5496
5496
|
height: s.floating.height
|
5497
|
-
} : s.reference, w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(
|
5497
|
+
} : s.reference, w = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(i.floating)), x = await (n.isElement == null ? void 0 : n.isElement(w)) ? await (n.getScale == null ? void 0 : n.getScale(w)) || {
|
5498
5498
|
x: 1,
|
5499
5499
|
y: 1
|
5500
5500
|
} : {
|
5501
5501
|
x: 1,
|
5502
5502
|
y: 1
|
5503
5503
|
}, C = Ar(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
5504
|
-
elements:
|
5504
|
+
elements: i,
|
5505
5505
|
rect: v,
|
5506
5506
|
offsetParent: w,
|
5507
|
-
strategy:
|
5507
|
+
strategy: l
|
5508
5508
|
}) : v);
|
5509
5509
|
return {
|
5510
5510
|
top: (b.top - C.top + g.top) / x.y,
|
@@ -5523,8 +5523,8 @@ const jf = (e) => ({
|
|
5523
5523
|
placement: o,
|
5524
5524
|
rects: n,
|
5525
5525
|
platform: s,
|
5526
|
-
elements:
|
5527
|
-
middlewareData:
|
5526
|
+
elements: i,
|
5527
|
+
middlewareData: l
|
5528
5528
|
} = t, {
|
5529
5529
|
element: d,
|
5530
5530
|
padding: f = 0
|
@@ -5534,10 +5534,10 @@ const jf = (e) => ({
|
|
5534
5534
|
const u = ii(f), h = {
|
5535
5535
|
x: r,
|
5536
5536
|
y: a
|
5537
|
-
}, m =
|
5537
|
+
}, m = mo(o), g = ho(m), y = await s.getDimensions(d), b = m === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", C = n.reference[g] + n.reference[m] - h[m] - n.floating[g], I = h[m] - n.reference[m], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
5538
5538
|
let T = _ ? _[x] : 0;
|
5539
|
-
(!T || !await (s.isElement == null ? void 0 : s.isElement(_))) && (T =
|
5540
|
-
const E = C / 2 - I / 2, k = T / 2 - y[g] / 2 - 1, R = Kt(u[v], k), S = Kt(u[w], k), A = R, L = T - y[g] - S, D = T / 2 - y[g] / 2 + E, z =
|
5539
|
+
(!T || !await (s.isElement == null ? void 0 : s.isElement(_))) && (T = i.floating[x] || n.floating[g]);
|
5540
|
+
const E = C / 2 - I / 2, k = T / 2 - y[g] / 2 - 1, R = Kt(u[v], k), S = Kt(u[w], k), A = R, L = T - y[g] - S, D = T / 2 - y[g] / 2 + E, z = Ha(A, D, L), M = !l.arrow && cr(o) != null && D !== z && n.reference[g] / 2 - (D < A ? R : S) - y[g] / 2 < 0, W = M ? D < A ? D - A : D - L : 0;
|
5541
5541
|
return {
|
5542
5542
|
[m]: h[m] + W,
|
5543
5543
|
data: {
|
@@ -5560,8 +5560,8 @@ const jf = (e) => ({
|
|
5560
5560
|
placement: o,
|
5561
5561
|
middlewareData: n,
|
5562
5562
|
rects: s,
|
5563
|
-
initialPlacement:
|
5564
|
-
platform:
|
5563
|
+
initialPlacement: i,
|
5564
|
+
platform: l,
|
5565
5565
|
elements: d
|
5566
5566
|
} = t, {
|
5567
5567
|
mainAxis: f = !0,
|
@@ -5574,9 +5574,9 @@ const jf = (e) => ({
|
|
5574
5574
|
} = lr(e, t);
|
5575
5575
|
if ((r = n.arrow) != null && r.alignmentOffset)
|
5576
5576
|
return {};
|
5577
|
-
const v = bt(o), w = Lt(
|
5578
|
-
!h && _ && I.push(...Uf(
|
5579
|
-
const T = [
|
5577
|
+
const v = bt(o), w = Lt(i), x = bt(i) === i, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), I = h || (x || !y ? [Rr(i)] : Vf(i)), _ = g !== "none";
|
5578
|
+
!h && _ && I.push(...Uf(i, y, g, C));
|
5579
|
+
const T = [i, ...I], E = await li(t, b), k = [];
|
5580
5580
|
let R = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
5581
5581
|
if (f && k.push(E[v]), u) {
|
5582
5582
|
const D = zf(o, s, C);
|
@@ -5616,7 +5616,7 @@ const jf = (e) => ({
|
|
5616
5616
|
break;
|
5617
5617
|
}
|
5618
5618
|
case "initialPlacement":
|
5619
|
-
M =
|
5619
|
+
M = i;
|
5620
5620
|
break;
|
5621
5621
|
}
|
5622
5622
|
if (o !== M)
|
@@ -5635,7 +5635,7 @@ async function qf(e, t) {
|
|
5635
5635
|
placement: r,
|
5636
5636
|
platform: a,
|
5637
5637
|
elements: o
|
5638
|
-
} = e, n = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), s = bt(r),
|
5638
|
+
} = e, n = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), s = bt(r), i = cr(r), l = Lt(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, f = n && l ? -1 : 1, u = lr(t, e);
|
5639
5639
|
let {
|
5640
5640
|
mainAxis: h,
|
5641
5641
|
crossAxis: m,
|
@@ -5649,7 +5649,7 @@ async function qf(e, t) {
|
|
5649
5649
|
crossAxis: u.crossAxis || 0,
|
5650
5650
|
alignmentAxis: u.alignmentAxis
|
5651
5651
|
};
|
5652
|
-
return
|
5652
|
+
return i && typeof g == "number" && (m = i === "end" ? g * -1 : g), l ? {
|
5653
5653
|
x: m * f,
|
5654
5654
|
y: h * d
|
5655
5655
|
} : {
|
@@ -5667,13 +5667,13 @@ const Yf = function(e) {
|
|
5667
5667
|
x: o,
|
5668
5668
|
y: n,
|
5669
5669
|
placement: s,
|
5670
|
-
middlewareData:
|
5671
|
-
} = t,
|
5672
|
-
return s === ((r =
|
5673
|
-
x: o +
|
5674
|
-
y: n +
|
5670
|
+
middlewareData: i
|
5671
|
+
} = t, l = await qf(t, e);
|
5672
|
+
return s === ((r = i.offset) == null ? void 0 : r.placement) && (a = i.arrow) != null && a.alignmentOffset ? {} : {
|
5673
|
+
x: o + l.x,
|
5674
|
+
y: n + l.y,
|
5675
5675
|
data: {
|
5676
|
-
...
|
5676
|
+
...l,
|
5677
5677
|
placement: s
|
5678
5678
|
}
|
5679
5679
|
};
|
@@ -5691,7 +5691,7 @@ const Yf = function(e) {
|
|
5691
5691
|
} = t, {
|
5692
5692
|
mainAxis: n = !0,
|
5693
5693
|
crossAxis: s = !1,
|
5694
|
-
limiter:
|
5694
|
+
limiter: i = {
|
5695
5695
|
fn: (b) => {
|
5696
5696
|
let {
|
5697
5697
|
x: v,
|
@@ -5703,21 +5703,21 @@ const Yf = function(e) {
|
|
5703
5703
|
};
|
5704
5704
|
}
|
5705
5705
|
},
|
5706
|
-
...
|
5706
|
+
...l
|
5707
5707
|
} = lr(e, t), d = {
|
5708
5708
|
x: r,
|
5709
5709
|
y: a
|
5710
|
-
}, f = await li(t,
|
5710
|
+
}, f = await li(t, l), u = Lt(bt(o)), h = si(u);
|
5711
5711
|
let m = d[h], g = d[u];
|
5712
5712
|
if (n) {
|
5713
5713
|
const b = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = m + f[b], x = m - f[v];
|
5714
|
-
m =
|
5714
|
+
m = Ha(w, m, x);
|
5715
5715
|
}
|
5716
5716
|
if (s) {
|
5717
5717
|
const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = g + f[b], x = g - f[v];
|
5718
|
-
g =
|
5718
|
+
g = Ha(w, g, x);
|
5719
5719
|
}
|
5720
|
-
const y =
|
5720
|
+
const y = i.fn({
|
5721
5721
|
...t,
|
5722
5722
|
[h]: m,
|
5723
5723
|
[u]: g
|
@@ -5783,14 +5783,14 @@ function Vr(e) {
|
|
5783
5783
|
}
|
5784
5784
|
});
|
5785
5785
|
}
|
5786
|
-
function
|
5787
|
-
const t =
|
5786
|
+
function po(e) {
|
5787
|
+
const t = go(), r = Le(e) ? Me(e) : e;
|
5788
5788
|
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));
|
5789
5789
|
}
|
5790
5790
|
function Qf(e) {
|
5791
5791
|
let t = st(e);
|
5792
5792
|
for (; je(t) && !Mt(t); ) {
|
5793
|
-
if (
|
5793
|
+
if (po(t))
|
5794
5794
|
return t;
|
5795
5795
|
if (Vr(t))
|
5796
5796
|
return null;
|
@@ -5798,7 +5798,7 @@ function Qf(e) {
|
|
5798
5798
|
}
|
5799
5799
|
return null;
|
5800
5800
|
}
|
5801
|
-
function
|
5801
|
+
function go() {
|
5802
5802
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
5803
5803
|
}
|
5804
5804
|
function Mt(e) {
|
@@ -5844,11 +5844,11 @@ function mn(e) {
|
|
5844
5844
|
function fi(e) {
|
5845
5845
|
const t = Me(e);
|
5846
5846
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
5847
|
-
const o = je(e), n = o ? e.offsetWidth : r, s = o ? e.offsetHeight : a,
|
5848
|
-
return
|
5847
|
+
const o = je(e), n = o ? e.offsetWidth : r, s = o ? e.offsetHeight : a, i = Nr(r) !== n || Nr(a) !== s;
|
5848
|
+
return i && (r = n, a = s), {
|
5849
5849
|
width: r,
|
5850
5850
|
height: a,
|
5851
|
-
$:
|
5851
|
+
$: i
|
5852
5852
|
};
|
5853
5853
|
}
|
5854
5854
|
function hi(e) {
|
@@ -5863,16 +5863,16 @@ function Ct(e) {
|
|
5863
5863
|
height: o,
|
5864
5864
|
$: n
|
5865
5865
|
} = fi(t);
|
5866
|
-
let s = (n ? Nr(r.width) : r.width) / a,
|
5867
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!
|
5866
|
+
let s = (n ? Nr(r.width) : r.width) / a, i = (n ? Nr(r.height) : r.height) / o;
|
5867
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
5868
5868
|
x: s,
|
5869
|
-
y:
|
5869
|
+
y: i
|
5870
5870
|
};
|
5871
5871
|
}
|
5872
5872
|
const Xf = /* @__PURE__ */ Ge(0);
|
5873
5873
|
function mi(e) {
|
5874
5874
|
const t = Te(e);
|
5875
|
-
return !
|
5875
|
+
return !go() || !t.visualViewport ? Xf : {
|
5876
5876
|
x: t.visualViewport.offsetLeft,
|
5877
5877
|
y: t.visualViewport.offsetTop
|
5878
5878
|
};
|
@@ -5885,24 +5885,24 @@ function Qt(e, t, r, a) {
|
|
5885
5885
|
const o = e.getBoundingClientRect(), n = hi(e);
|
5886
5886
|
let s = Ge(1);
|
5887
5887
|
t && (a ? Le(a) && (s = Ct(a)) : s = Ct(e));
|
5888
|
-
const
|
5889
|
-
let
|
5888
|
+
const i = Zf(n, r, a) ? mi(n) : Ge(0);
|
5889
|
+
let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, u = o.height / s.y;
|
5890
5890
|
if (n) {
|
5891
5891
|
const h = Te(n), m = a && Le(a) ? Te(a) : a;
|
5892
5892
|
let g = h, y = mn(g);
|
5893
5893
|
for (; y && a && m !== g; ) {
|
5894
5894
|
const b = Ct(y), v = y.getBoundingClientRect(), w = Me(y), x = v.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, C = v.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
|
5895
|
-
|
5895
|
+
l *= b.x, d *= b.y, f *= b.x, u *= b.y, l += x, d += C, g = Te(y), y = mn(g);
|
5896
5896
|
}
|
5897
5897
|
}
|
5898
5898
|
return Ar({
|
5899
5899
|
width: f,
|
5900
5900
|
height: u,
|
5901
|
-
x:
|
5901
|
+
x: l,
|
5902
5902
|
y: d
|
5903
5903
|
});
|
5904
5904
|
}
|
5905
|
-
function
|
5905
|
+
function yo(e, t) {
|
5906
5906
|
const r = Fr(e).scrollLeft;
|
5907
5907
|
return t ? t.left + r : Qt(Ze(e)).left + r;
|
5908
5908
|
}
|
@@ -5910,7 +5910,7 @@ function pi(e, t, r) {
|
|
5910
5910
|
r === void 0 && (r = !1);
|
5911
5911
|
const a = e.getBoundingClientRect(), o = a.left + t.scrollLeft - (r ? 0 : (
|
5912
5912
|
// RTL <body> scrollbar.
|
5913
|
-
|
5913
|
+
yo(e, a)
|
5914
5914
|
)), n = a.top + t.scrollTop;
|
5915
5915
|
return {
|
5916
5916
|
x: o,
|
@@ -5924,24 +5924,24 @@ function eh(e) {
|
|
5924
5924
|
offsetParent: a,
|
5925
5925
|
strategy: o
|
5926
5926
|
} = e;
|
5927
|
-
const n = o === "fixed", s = Ze(a),
|
5928
|
-
if (a === s ||
|
5927
|
+
const n = o === "fixed", s = Ze(a), i = t ? Vr(t.floating) : !1;
|
5928
|
+
if (a === s || i && n)
|
5929
5929
|
return r;
|
5930
|
-
let
|
5930
|
+
let l = {
|
5931
5931
|
scrollLeft: 0,
|
5932
5932
|
scrollTop: 0
|
5933
5933
|
}, d = Ge(1);
|
5934
5934
|
const f = Ge(0), u = je(a);
|
5935
|
-
if ((u || !u && !n) && ((Pt(a) !== "body" || dr(s)) && (
|
5935
|
+
if ((u || !u && !n) && ((Pt(a) !== "body" || dr(s)) && (l = Fr(a)), je(a))) {
|
5936
5936
|
const m = Qt(a);
|
5937
5937
|
d = Ct(a), f.x = m.x + a.clientLeft, f.y = m.y + a.clientTop;
|
5938
5938
|
}
|
5939
|
-
const h = s && !u && !n ? pi(s,
|
5939
|
+
const h = s && !u && !n ? pi(s, l, !0) : Ge(0);
|
5940
5940
|
return {
|
5941
5941
|
width: r.width * d.x,
|
5942
5942
|
height: r.height * d.y,
|
5943
|
-
x: r.x * d.x -
|
5944
|
-
y: r.y * d.y -
|
5943
|
+
x: r.x * d.x - l.scrollLeft * d.x + f.x + h.x,
|
5944
|
+
y: r.y * d.y - l.scrollTop * d.y + f.y + h.y
|
5945
5945
|
};
|
5946
5946
|
}
|
5947
5947
|
function th(e) {
|
@@ -5949,36 +5949,36 @@ function th(e) {
|
|
5949
5949
|
}
|
5950
5950
|
function rh(e) {
|
5951
5951
|
const t = Ze(e), r = Fr(e), a = e.ownerDocument.body, o = It(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = It(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
5952
|
-
let s = -r.scrollLeft +
|
5953
|
-
const
|
5952
|
+
let s = -r.scrollLeft + yo(e);
|
5953
|
+
const i = -r.scrollTop;
|
5954
5954
|
return Me(a).direction === "rtl" && (s += It(t.clientWidth, a.clientWidth) - o), {
|
5955
5955
|
width: o,
|
5956
5956
|
height: n,
|
5957
5957
|
x: s,
|
5958
|
-
y:
|
5958
|
+
y: i
|
5959
5959
|
};
|
5960
5960
|
}
|
5961
5961
|
function ah(e, t) {
|
5962
5962
|
const r = Te(e), a = Ze(e), o = r.visualViewport;
|
5963
|
-
let n = a.clientWidth, s = a.clientHeight,
|
5963
|
+
let n = a.clientWidth, s = a.clientHeight, i = 0, l = 0;
|
5964
5964
|
if (o) {
|
5965
5965
|
n = o.width, s = o.height;
|
5966
|
-
const d =
|
5967
|
-
(!d || d && t === "fixed") && (
|
5966
|
+
const d = go();
|
5967
|
+
(!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
|
5968
5968
|
}
|
5969
5969
|
return {
|
5970
5970
|
width: n,
|
5971
5971
|
height: s,
|
5972
|
-
x:
|
5973
|
-
y:
|
5972
|
+
x: i,
|
5973
|
+
y: l
|
5974
5974
|
};
|
5975
5975
|
}
|
5976
5976
|
function oh(e, t) {
|
5977
|
-
const r = Qt(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n = je(e) ? Ct(e) : Ge(1), s = e.clientWidth * n.x,
|
5977
|
+
const r = Qt(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n = je(e) ? Ct(e) : Ge(1), s = e.clientWidth * n.x, i = e.clientHeight * n.y, l = o * n.x, d = a * n.y;
|
5978
5978
|
return {
|
5979
5979
|
width: s,
|
5980
|
-
height:
|
5981
|
-
x:
|
5980
|
+
height: i,
|
5981
|
+
x: l,
|
5982
5982
|
y: d
|
5983
5983
|
};
|
5984
5984
|
}
|
@@ -6009,12 +6009,12 @@ function nh(e, t) {
|
|
6009
6009
|
const r = t.get(e);
|
6010
6010
|
if (r)
|
6011
6011
|
return r;
|
6012
|
-
let a = ui(e, []).filter((
|
6012
|
+
let a = ui(e, []).filter((i) => Le(i) && Pt(i) !== "body"), o = null;
|
6013
6013
|
const n = Me(e).position === "fixed";
|
6014
6014
|
let s = n ? st(e) : e;
|
6015
6015
|
for (; Le(s) && !Mt(s); ) {
|
6016
|
-
const
|
6017
|
-
!
|
6016
|
+
const i = Me(s), l = po(s);
|
6017
|
+
!l && i.position === "fixed" && (o = null), (n ? !l && !o : !l && i.position === "static" && o && ["absolute", "fixed"].includes(o.position) || dr(s) && !l && gi(e, s)) ? a = a.filter((d) => d !== s) : o = i, s = st(s);
|
6018
6018
|
}
|
6019
6019
|
return t.set(e, a), a;
|
6020
6020
|
}
|
@@ -6025,15 +6025,15 @@ function sh(e) {
|
|
6025
6025
|
rootBoundary: a,
|
6026
6026
|
strategy: o
|
6027
6027
|
} = e;
|
6028
|
-
const n = [...r === "clippingAncestors" ? Vr(t) ? [] : nh(t, this._c) : [].concat(r), a], s = n[0],
|
6028
|
+
const n = [...r === "clippingAncestors" ? Vr(t) ? [] : nh(t, this._c) : [].concat(r), a], s = n[0], i = n.reduce((l, d) => {
|
6029
6029
|
const f = pn(t, d, o);
|
6030
|
-
return
|
6030
|
+
return l.top = It(f.top, l.top), l.right = Kt(f.right, l.right), l.bottom = Kt(f.bottom, l.bottom), l.left = It(f.left, l.left), l;
|
6031
6031
|
}, pn(t, s, o));
|
6032
6032
|
return {
|
6033
|
-
width:
|
6034
|
-
height:
|
6035
|
-
x:
|
6036
|
-
y:
|
6033
|
+
width: i.right - i.left,
|
6034
|
+
height: i.bottom - i.top,
|
6035
|
+
x: i.left,
|
6036
|
+
y: i.top
|
6037
6037
|
};
|
6038
6038
|
}
|
6039
6039
|
function ih(e) {
|
@@ -6048,17 +6048,17 @@ function ih(e) {
|
|
6048
6048
|
}
|
6049
6049
|
function lh(e, t, r) {
|
6050
6050
|
const a = je(t), o = Ze(t), n = r === "fixed", s = Qt(e, !0, n, t);
|
6051
|
-
let
|
6051
|
+
let i = {
|
6052
6052
|
scrollLeft: 0,
|
6053
6053
|
scrollTop: 0
|
6054
6054
|
};
|
6055
|
-
const
|
6055
|
+
const l = Ge(0);
|
6056
6056
|
if (a || !a && !n)
|
6057
|
-
if ((Pt(t) !== "body" || dr(o)) && (
|
6057
|
+
if ((Pt(t) !== "body" || dr(o)) && (i = Fr(t)), a) {
|
6058
6058
|
const h = Qt(t, !0, n, t);
|
6059
|
-
|
6060
|
-
} else o && (
|
6061
|
-
const d = o && !a && !n ? pi(o,
|
6059
|
+
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
6060
|
+
} else o && (l.x = yo(o));
|
6061
|
+
const d = o && !a && !n ? pi(o, i) : Ge(0), f = s.left + i.scrollLeft - l.x - d.x, u = s.top + i.scrollTop - l.y - d.y;
|
6062
6062
|
return {
|
6063
6063
|
x: f,
|
6064
6064
|
y: u,
|
@@ -6093,7 +6093,7 @@ function yi(e, t) {
|
|
6093
6093
|
let a = gn(e, t);
|
6094
6094
|
for (; a && Kf(a) && na(a); )
|
6095
6095
|
a = gn(a, t);
|
6096
|
-
return a && Mt(a) && na(a) && !
|
6096
|
+
return a && Mt(a) && na(a) && !po(a) ? r : a || Qf(e) || r;
|
6097
6097
|
}
|
6098
6098
|
const ch = async function(e) {
|
6099
6099
|
const t = this.getOffsetParent || yi, r = this.getDimensions, a = await r(e.floating);
|
@@ -6140,10 +6140,10 @@ function yh(e, t, r) {
|
|
6140
6140
|
const o = (n) => {
|
6141
6141
|
const s = n ? n.target : void 0;
|
6142
6142
|
if (Array.isArray(r)) {
|
6143
|
-
const
|
6143
|
+
const i = !document.body.contains(s) && s.tagName !== "HTML";
|
6144
6144
|
r.every(
|
6145
|
-
(
|
6146
|
-
) && !
|
6145
|
+
(l) => !!l && !n.composedPath().includes(l)
|
6146
|
+
) && !i && e();
|
6147
6147
|
} else a.current && !a.current.contains(s) && e();
|
6148
6148
|
};
|
6149
6149
|
return yn.forEach(
|
@@ -6157,11 +6157,11 @@ function yh(e, t, r) {
|
|
6157
6157
|
}
|
6158
6158
|
function bh(e, t) {
|
6159
6159
|
const [r, a] = F(!1), o = $(null), n = $(null), s = Y(() => {
|
6160
|
-
a((
|
6161
|
-
}, [t]),
|
6160
|
+
a((l) => (!l && (!o.current || o.current === -1) && (o.current = window.setInterval(n.current, t)), !0));
|
6161
|
+
}, [t]), i = Y(() => {
|
6162
6162
|
a(!1), window.clearInterval(o.current || -1), o.current = -1;
|
6163
6163
|
}, []);
|
6164
|
-
return P(() => (n.current = e, r && s(),
|
6164
|
+
return P(() => (n.current = e, r && s(), i), [e, r, s, i]), { start: s, stop: i, active: r };
|
6165
6165
|
}
|
6166
6166
|
const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), bn = ({
|
6167
6167
|
mode: e
|
@@ -6206,9 +6206,9 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6206
6206
|
delay: o = 300,
|
6207
6207
|
className: n,
|
6208
6208
|
tooltipClassName: s,
|
6209
|
-
arrowClassName:
|
6209
|
+
arrowClassName: i
|
6210
6210
|
}) => {
|
6211
|
-
const
|
6211
|
+
const l = yh(() => {
|
6212
6212
|
y.stop(), g(!1);
|
6213
6213
|
}), d = $(null), f = $(null), [u, h] = F(!1), [m, g] = F(!1), y = bh(() => {
|
6214
6214
|
g(!1);
|
@@ -6216,16 +6216,16 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6216
6216
|
mode: a,
|
6217
6217
|
className: n,
|
6218
6218
|
tooltipClassName: s,
|
6219
|
-
arrowClassName:
|
6219
|
+
arrowClassName: i
|
6220
6220
|
}), v = xh({ delay: o }), w = Y(async () => {
|
6221
6221
|
var _, T, E, k;
|
6222
|
-
if (
|
6222
|
+
if (l.current && d.current && f.current) {
|
6223
6223
|
const {
|
6224
6224
|
x: R,
|
6225
6225
|
y: S,
|
6226
6226
|
middlewareData: A,
|
6227
6227
|
placement: L
|
6228
|
-
} = await gh(
|
6228
|
+
} = await gh(l.current, d.current, {
|
6229
6229
|
placement: r,
|
6230
6230
|
middleware: [
|
6231
6231
|
fh(10),
|
@@ -6256,7 +6256,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6256
6256
|
[D]: "-4px"
|
6257
6257
|
});
|
6258
6258
|
}
|
6259
|
-
}, [r, v,
|
6259
|
+
}, [r, v, l]);
|
6260
6260
|
P(() => {
|
6261
6261
|
(async () => u && await w())();
|
6262
6262
|
}, [w, u]);
|
@@ -6271,7 +6271,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6271
6271
|
"div",
|
6272
6272
|
{
|
6273
6273
|
className: b.wrapper,
|
6274
|
-
ref:
|
6274
|
+
ref: l,
|
6275
6275
|
onMouseEnter: C,
|
6276
6276
|
onMouseLeave: I,
|
6277
6277
|
onClick: x,
|
@@ -6300,7 +6300,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6300
6300
|
dispatch: a,
|
6301
6301
|
setChatId: o,
|
6302
6302
|
setInitialMessages: n
|
6303
|
-
} = X(
|
6303
|
+
} = X(_e), { setInput: s, stop: i } = _t(), l = $(null), d = $(!1), f = () => {
|
6304
6304
|
o(ot()), n([]), s(""), a({
|
6305
6305
|
type: vt,
|
6306
6306
|
payload: {
|
@@ -6332,12 +6332,12 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6332
6332
|
[]
|
6333
6333
|
);
|
6334
6334
|
const u = (m) => {
|
6335
|
-
m.preventDefault(),
|
6335
|
+
m.preventDefault(), i();
|
6336
6336
|
}, h = (m) => {
|
6337
6337
|
m.preventDefault(), f();
|
6338
6338
|
};
|
6339
6339
|
return P(() => {
|
6340
|
-
ma() || ((t === !0 || r === !0) && !d.current &&
|
6340
|
+
ma() || ((t === !0 || r === !0) && !d.current && l.current && (d.current = !0, l.current.focus()), t === !1 && d.current && (d.current = !1));
|
6341
6341
|
}, [t, r]), /* @__PURE__ */ c(
|
6342
6342
|
it,
|
6343
6343
|
{
|
@@ -6352,7 +6352,7 @@ const yr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, vh = (
|
|
6352
6352
|
mode: "dark",
|
6353
6353
|
focusMode: "light",
|
6354
6354
|
label: "New Chat",
|
6355
|
-
ref:
|
6355
|
+
ref: l,
|
6356
6356
|
onClick: t || r ? u : h,
|
6357
6357
|
children: t || r ? /* @__PURE__ */ c(fs, { size: Ke, monotone: !0 }) : /* @__PURE__ */ c(Jl, { size: Ke })
|
6358
6358
|
}
|
@@ -6373,7 +6373,7 @@ try {
|
|
6373
6373
|
});
|
6374
6374
|
} catch {
|
6375
6375
|
}
|
6376
|
-
const vn = "av-messagebox", _n = "av-panel", wn = "av-button",
|
6376
|
+
const vn = "av-messagebox", _n = "av-panel", wn = "av-button", bo = "icon", bi = "button", ja = "link", Ih = ({
|
6377
6377
|
type: e,
|
6378
6378
|
size: t,
|
6379
6379
|
labelRight: r,
|
@@ -6381,16 +6381,16 @@ const vn = "av-messagebox", _n = "av-panel", wn = "av-button", yo = "icon", bi =
|
|
6381
6381
|
align: o,
|
6382
6382
|
animated: n
|
6383
6383
|
}) => {
|
6384
|
-
const s = "max-h-8 py-0 px-2",
|
6384
|
+
const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
6385
6385
|
switch (e) {
|
6386
6386
|
case bi:
|
6387
|
-
case
|
6387
|
+
case ja:
|
6388
6388
|
return p({
|
6389
6389
|
[s]: t === "small",
|
6390
|
-
[
|
6391
|
-
[
|
6390
|
+
[i]: t === "medium",
|
6391
|
+
[l]: t === "large"
|
6392
6392
|
});
|
6393
|
-
case
|
6393
|
+
case bo:
|
6394
6394
|
return p("flex items-center", {
|
6395
6395
|
"justify-center": o === "center",
|
6396
6396
|
"justify-start": o === "left",
|
@@ -6418,14 +6418,14 @@ const vn = "av-messagebox", _n = "av-panel", wn = "av-button", yo = "icon", bi =
|
|
6418
6418
|
const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
|
6419
6419
|
switch (e) {
|
6420
6420
|
case bi:
|
6421
|
-
case
|
6421
|
+
case ja:
|
6422
6422
|
return p({
|
6423
|
-
"text-center": e ===
|
6423
|
+
"text-center": e === ja,
|
6424
6424
|
[o]: t === "small",
|
6425
6425
|
[n]: t === "medium",
|
6426
6426
|
[s]: t === "large"
|
6427
6427
|
});
|
6428
|
-
case
|
6428
|
+
case bo:
|
6429
6429
|
return p({
|
6430
6430
|
[o]: t === "small" && (r || a),
|
6431
6431
|
[n]: t === "medium" && (r || a),
|
@@ -6625,8 +6625,8 @@ const vn = "av-messagebox", _n = "av-panel", wn = "av-button", yo = "icon", bi =
|
|
6625
6625
|
focusMode: o,
|
6626
6626
|
disabled: n,
|
6627
6627
|
fullWidth: s,
|
6628
|
-
size:
|
6629
|
-
noBorder:
|
6628
|
+
size: i,
|
6629
|
+
noBorder: l,
|
6630
6630
|
labelRight: d,
|
6631
6631
|
labelLeft: f,
|
6632
6632
|
noBackground: u,
|
@@ -6647,14 +6647,14 @@ const vn = "av-messagebox", _n = "av-panel", wn = "av-button", yo = "icon", bi =
|
|
6647
6647
|
Rh({ radius: y }),
|
6648
6648
|
Ih({
|
6649
6649
|
type: e,
|
6650
|
-
size:
|
6650
|
+
size: i,
|
6651
6651
|
labelRight: d,
|
6652
6652
|
labelLeft: f,
|
6653
6653
|
align: g,
|
6654
6654
|
animated: b
|
6655
6655
|
}),
|
6656
|
-
Ch({ type: e, size:
|
6657
|
-
$h({ mode: a, variant: h, noBorder:
|
6656
|
+
Ch({ type: e, size: i, labelRight: d, labelLeft: f }),
|
6657
|
+
$h({ mode: a, variant: h, noBorder: l }),
|
6658
6658
|
Lh({ focusMode: o }),
|
6659
6659
|
Ah({ mode: a, variant: h, disabled: n }),
|
6660
6660
|
Oh({ mode: a, variant: h, disabled: n }),
|
@@ -6708,10 +6708,10 @@ const Fh = {
|
|
6708
6708
|
right: 0
|
6709
6709
|
};
|
6710
6710
|
function sa(e) {
|
6711
|
-
const t = zh(), r = $(0), a = $(null), [o, n] = F(Fh), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((
|
6712
|
-
const
|
6713
|
-
|
6714
|
-
a.current && t() && n(
|
6711
|
+
const t = zh(), r = $(0), a = $(null), [o, n] = F(Fh), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
6712
|
+
const l = i[0];
|
6713
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6714
|
+
a.current && t() && n(l.contentRect);
|
6715
6715
|
}));
|
6716
6716
|
}), [t]);
|
6717
6717
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
@@ -6732,7 +6732,7 @@ const Uh = {
|
|
6732
6732
|
// px-3 x 2
|
6733
6733
|
large: 16 * 2
|
6734
6734
|
// px-4 x 2
|
6735
|
-
}, Gh = 2,
|
6735
|
+
}, Gh = 2, vo = U.forwardRef(
|
6736
6736
|
({
|
6737
6737
|
children: e,
|
6738
6738
|
disabled: t = !1,
|
@@ -6741,8 +6741,8 @@ const Uh = {
|
|
6741
6741
|
fullWidth: o = !1,
|
6742
6742
|
className: n,
|
6743
6743
|
type: s = "button",
|
6744
|
-
raw:
|
6745
|
-
noBorder:
|
6744
|
+
raw: i = !1,
|
6745
|
+
noBorder: l = !1,
|
6746
6746
|
"aria-label": d,
|
6747
6747
|
label: f,
|
6748
6748
|
size: u = "medium",
|
@@ -6757,14 +6757,14 @@ const Uh = {
|
|
6757
6757
|
...C
|
6758
6758
|
}, I) => {
|
6759
6759
|
const _ = Bh({
|
6760
|
-
type:
|
6760
|
+
type: bo,
|
6761
6761
|
mode: r,
|
6762
6762
|
focusMode: a,
|
6763
6763
|
fullWidth: o,
|
6764
6764
|
disabled: t,
|
6765
|
-
raw:
|
6765
|
+
raw: i,
|
6766
6766
|
className: n,
|
6767
|
-
noBorder:
|
6767
|
+
noBorder: l,
|
6768
6768
|
size: u,
|
6769
6769
|
labelRight: h,
|
6770
6770
|
labelLeft: m,
|
@@ -6773,10 +6773,10 @@ const Uh = {
|
|
6773
6773
|
radius: b,
|
6774
6774
|
variant: v,
|
6775
6775
|
animated: x
|
6776
|
-
}), T = Mh({ mode: r, raw:
|
6776
|
+
}), T = Mh({ mode: r, raw: i, iconClassName: w }), E = Dh({ animated: x }), [k, R] = sa(), [S, A] = sa(), [L, D] = sa(), z = $(0), M = $(null), W = Vh([I, M]);
|
6777
6777
|
return ge(() => {
|
6778
|
-
L && L.current && x && (z.current = D.width + Hh[u] + (
|
6779
|
-
}, [D, L, u,
|
6778
|
+
L && L.current && x && (z.current = D.width + Hh[u] + (l ? 0 : Gh));
|
6779
|
+
}, [D, L, u, l, x]), ge(() => {
|
6780
6780
|
M && M.current && x && (h && k && R.width > 0 ? (k.current && (k.current.style.opacity = "100"), M.current.style.width = `${R.width + z.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + z.current}px`) : (k.current && (k.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Uh[u]}px`));
|
6781
6781
|
}, [
|
6782
6782
|
R,
|
@@ -6826,7 +6826,7 @@ const Uh = {
|
|
6826
6826
|
label: r,
|
6827
6827
|
labelInnerClass: a
|
6828
6828
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
6829
|
-
|
6829
|
+
vo.displayName = "ButtonIcon";
|
6830
6830
|
/*!
|
6831
6831
|
@versini/ui-button v6.0.4
|
6832
6832
|
© 2025 gizmette.com
|
@@ -6866,7 +6866,7 @@ const jh = U.forwardRef(
|
|
6866
6866
|
}
|
6867
6867
|
) : "";
|
6868
6868
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
6869
|
-
|
6869
|
+
vo,
|
6870
6870
|
{
|
6871
6871
|
className: p("justify-center", r),
|
6872
6872
|
ref: n,
|
@@ -6887,8 +6887,8 @@ const Wh = ({
|
|
6887
6887
|
defaultViewBox: o,
|
6888
6888
|
size: n,
|
6889
6889
|
title: s,
|
6890
|
-
semantic:
|
6891
|
-
...
|
6890
|
+
semantic: i = !1,
|
6891
|
+
...l
|
6892
6892
|
}) => {
|
6893
6893
|
const d = p(n, a);
|
6894
6894
|
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
@@ -6899,11 +6899,11 @@ const Wh = ({
|
|
6899
6899
|
viewBox: r || o,
|
6900
6900
|
fill: t || "currentColor",
|
6901
6901
|
role: "img",
|
6902
|
-
"aria-hidden": !
|
6902
|
+
"aria-hidden": !i,
|
6903
6903
|
focusable: !1,
|
6904
|
-
...
|
6904
|
+
...l,
|
6905
6905
|
children: [
|
6906
|
-
s &&
|
6906
|
+
s && i && /* @__PURE__ */ c("title", { children: s }),
|
6907
6907
|
e
|
6908
6908
|
]
|
6909
6909
|
}
|
@@ -6965,7 +6965,7 @@ function Yh({
|
|
6965
6965
|
open: t,
|
6966
6966
|
onOpenChange: r
|
6967
6967
|
} = {}) {
|
6968
|
-
const [a, o] = te.useState(e), [n, s] = te.useState(), [
|
6968
|
+
const [a, o] = te.useState(e), [n, s] = te.useState(), [i, l] = te.useState(), d = t ?? a, f = r ?? o, u = as({
|
6969
6969
|
open: d,
|
6970
6970
|
onOpenChange: f
|
6971
6971
|
}), h = u.context, m = os(h, {
|
@@ -6981,11 +6981,11 @@ function Yh({
|
|
6981
6981
|
...b,
|
6982
6982
|
...u,
|
6983
6983
|
labelId: n,
|
6984
|
-
descriptionId:
|
6984
|
+
descriptionId: i,
|
6985
6985
|
setLabelId: s,
|
6986
|
-
setDescriptionId:
|
6986
|
+
setDescriptionId: l
|
6987
6987
|
}),
|
6988
|
-
[d, f, b, u, n,
|
6988
|
+
[d, f, b, u, n, i]
|
6989
6989
|
);
|
6990
6990
|
}
|
6991
6991
|
const Ur = () => {
|
@@ -7002,14 +7002,14 @@ function Jh({
|
|
7002
7002
|
return /* @__PURE__ */ c(_i.Provider, { value: r, children: e });
|
7003
7003
|
}
|
7004
7004
|
const Kh = te.forwardRef(function(e, t) {
|
7005
|
-
const { context: r, ...a } = Ur(), o =
|
7005
|
+
const { context: r, ...a } = Ur(), o = Qa([a.refs.setFloating, t]);
|
7006
7006
|
if (!r.open)
|
7007
7007
|
return null;
|
7008
|
-
const { overlayBackground: n, ...s } = e,
|
7008
|
+
const { overlayBackground: n, ...s } = e, i = p("grid place-items-center", {
|
7009
7009
|
[`${n}`]: n,
|
7010
7010
|
"bg-black sm:bg-black/[.8]": !n
|
7011
7011
|
});
|
7012
|
-
return /* @__PURE__ */ c(ts, { children: /* @__PURE__ */ c(yl, { className:
|
7012
|
+
return /* @__PURE__ */ c(ts, { children: /* @__PURE__ */ c(yl, { className: i, lockScroll: !0, children: /* @__PURE__ */ c(rs, { context: r, children: /* @__PURE__ */ c(
|
7013
7013
|
"div",
|
7014
7014
|
{
|
7015
7015
|
ref: o,
|
@@ -7076,46 +7076,46 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7076
7076
|
footer: o,
|
7077
7077
|
borderMode: n = "light",
|
7078
7078
|
kind: s = Gt,
|
7079
|
-
className:
|
7080
|
-
animation:
|
7079
|
+
className: i,
|
7080
|
+
animation: l = !1,
|
7081
7081
|
animationType: d = tm
|
7082
7082
|
}) => {
|
7083
7083
|
const f = $(""), [u, h] = F(
|
7084
|
-
|
7084
|
+
l ? d === xn ? { opacity: 0 } : {
|
7085
7085
|
transform: "translateY(-100vh)"
|
7086
7086
|
} : {}
|
7087
7087
|
), m = em({
|
7088
|
-
className:
|
7088
|
+
className: i,
|
7089
7089
|
kind: s,
|
7090
7090
|
borderMode: n,
|
7091
|
-
animation:
|
7091
|
+
animation: l
|
7092
7092
|
});
|
7093
7093
|
return P(() => (e && (f.current = document.title, document.title = `${r} | ${f.current}`), () => {
|
7094
7094
|
e && (document.title = f.current);
|
7095
7095
|
}), [r, e]), P(() => {
|
7096
|
-
if (
|
7096
|
+
if (l && e) {
|
7097
7097
|
h(
|
7098
|
-
|
7098
|
+
l ? d === xn ? { opacity: 0 } : {
|
7099
7099
|
transform: "translateY(-666vh)"
|
7100
7100
|
} : {}
|
7101
7101
|
);
|
7102
7102
|
const g = setTimeout(() => {
|
7103
7103
|
h(
|
7104
|
-
|
7104
|
+
l ? d === "fade" ? { opacity: 1 } : {
|
7105
7105
|
transform: "translateY(0)"
|
7106
7106
|
} : {}
|
7107
7107
|
);
|
7108
7108
|
}, 100);
|
7109
7109
|
return () => clearTimeout(g);
|
7110
7110
|
}
|
7111
|
-
}, [e,
|
7111
|
+
}, [e, l, d]), /* @__PURE__ */ c(se, { children: e && /* @__PURE__ */ c(Jh, { open: e, onOpenChange: t, children: /* @__PURE__ */ N(Kh, { className: m.main, style: u, children: [
|
7112
7112
|
/* @__PURE__ */ N("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
7113
7113
|
/* @__PURE__ */ c(
|
7114
7114
|
Zh,
|
7115
7115
|
{
|
7116
7116
|
className: m.close,
|
7117
7117
|
trigger: /* @__PURE__ */ c(
|
7118
|
-
|
7118
|
+
vo,
|
7119
7119
|
{
|
7120
7120
|
mode: "dark",
|
7121
7121
|
focusMode: "light",
|
@@ -7180,7 +7180,7 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7180
7180
|
dispatch: r,
|
7181
7181
|
setChatId: a,
|
7182
7182
|
setInitialMessages: o
|
7183
|
-
} = X(
|
7183
|
+
} = X(_e), [n, s] = F(!1), [i, l] = gt({
|
7184
7184
|
key: pt + ji,
|
7185
7185
|
initialValue: ""
|
7186
7186
|
}), d = () => {
|
@@ -7227,7 +7227,7 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7227
7227
|
labelRight: t ? "private" : "",
|
7228
7228
|
variant: t ? "danger" : "primary",
|
7229
7229
|
onClick: (u) => {
|
7230
|
-
u.preventDefault(),
|
7230
|
+
u.preventDefault(), i ? d() : (l("true"), s(!n));
|
7231
7231
|
},
|
7232
7232
|
className: "text-sm",
|
7233
7233
|
children: t ? /* @__PURE__ */ c(Zl, { size: Ke }) : /* @__PURE__ */ c(cc, { size: Ke })
|
@@ -7236,7 +7236,7 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7236
7236
|
}
|
7237
7237
|
)
|
7238
7238
|
] });
|
7239
|
-
},
|
7239
|
+
}, Wa = te.createContext({
|
7240
7240
|
getItemProps: () => ({}),
|
7241
7241
|
activeIndex: null,
|
7242
7242
|
/* v8 ignore next 2 */
|
@@ -7265,9 +7265,9 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7265
7265
|
onOpenChange: o,
|
7266
7266
|
mode: n = "system",
|
7267
7267
|
focusMode: s = "system",
|
7268
|
-
...
|
7269
|
-
},
|
7270
|
-
const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = $([]), b = $([]), v = X(
|
7268
|
+
...i
|
7269
|
+
}, l) => {
|
7270
|
+
const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = $([]), b = $([]), v = X(Wa), w = ls(), x = vl(), C = cs(), { floatingStyles: I, refs: _, context: T } = as({
|
7271
7271
|
nodeId: x,
|
7272
7272
|
open: d,
|
7273
7273
|
onOpenChange: (J) => {
|
@@ -7302,10 +7302,10 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7302
7302
|
"aria-label": r,
|
7303
7303
|
"data-open": d ? "" : void 0,
|
7304
7304
|
"data-focus-inside": u ? "" : void 0,
|
7305
|
-
ref:
|
7305
|
+
ref: Qa([_.setReference, C.ref, l]),
|
7306
7306
|
...L(
|
7307
7307
|
v.getItemProps({
|
7308
|
-
...
|
7308
|
+
...i
|
7309
7309
|
})
|
7310
7310
|
)
|
7311
7311
|
}
|
@@ -7324,7 +7324,7 @@ const Gt = "panel", br = "messagebox", em = ({
|
|
7324
7324
|
}, [w, d, x]), /* @__PURE__ */ N(Il, { id: x, children: [
|
7325
7325
|
G,
|
7326
7326
|
/* @__PURE__ */ c(
|
7327
|
-
|
7327
|
+
Wa.Provider,
|
7328
7328
|
{
|
7329
7329
|
value: {
|
7330
7330
|
activeIndex: m,
|
@@ -7367,8 +7367,8 @@ const rm = ({
|
|
7367
7367
|
defaultViewBox: o,
|
7368
7368
|
size: n,
|
7369
7369
|
title: s,
|
7370
|
-
semantic:
|
7371
|
-
...
|
7370
|
+
semantic: i = !1,
|
7371
|
+
...l
|
7372
7372
|
}) => {
|
7373
7373
|
const d = p(n, a);
|
7374
7374
|
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
@@ -7379,11 +7379,11 @@ const rm = ({
|
|
7379
7379
|
viewBox: r || o,
|
7380
7380
|
fill: t || "currentColor",
|
7381
7381
|
role: "img",
|
7382
|
-
"aria-hidden": !
|
7382
|
+
"aria-hidden": !i,
|
7383
7383
|
focusable: !1,
|
7384
|
-
...
|
7384
|
+
...l,
|
7385
7385
|
children: [
|
7386
|
-
s &&
|
7386
|
+
s && i && /* @__PURE__ */ c("title", { children: s }),
|
7387
7387
|
e
|
7388
7388
|
]
|
7389
7389
|
}
|
@@ -7451,10 +7451,10 @@ const Ye = te.forwardRef(
|
|
7451
7451
|
children: o,
|
7452
7452
|
ignoreClick: n = !1,
|
7453
7453
|
selected: s = !1,
|
7454
|
-
...
|
7455
|
-
},
|
7454
|
+
...i
|
7455
|
+
}, l) => {
|
7456
7456
|
let d = "";
|
7457
|
-
const f = te.useContext(
|
7457
|
+
const f = te.useContext(Wa), u = cs({ label: t ? null : e }), h = ls(), m = Qa([u.ref, l]);
|
7458
7458
|
if (a && o)
|
7459
7459
|
return /* @__PURE__ */ c(
|
7460
7460
|
"div",
|
@@ -7463,7 +7463,7 @@ const Ye = te.forwardRef(
|
|
7463
7463
|
...f.getItemProps({
|
7464
7464
|
onClick(y) {
|
7465
7465
|
var b;
|
7466
|
-
n || ((b =
|
7466
|
+
n || ((b = i.onClick) == null || b.call(i, y), h == null || h.events.emit("click"));
|
7467
7467
|
}
|
7468
7468
|
}),
|
7469
7469
|
children: o
|
@@ -7480,7 +7480,7 @@ const Ye = te.forwardRef(
|
|
7480
7480
|
return /* @__PURE__ */ N(
|
7481
7481
|
"button",
|
7482
7482
|
{
|
7483
|
-
...
|
7483
|
+
...i,
|
7484
7484
|
ref: m,
|
7485
7485
|
role: "menuitem",
|
7486
7486
|
className: g,
|
@@ -7489,11 +7489,11 @@ const Ye = te.forwardRef(
|
|
7489
7489
|
...f.getItemProps({
|
7490
7490
|
onClick(y) {
|
7491
7491
|
var b;
|
7492
|
-
n || ((b =
|
7492
|
+
n || ((b = i.onClick) == null || b.call(i, y), h == null || h.events.emit("click"));
|
7493
7493
|
},
|
7494
7494
|
onFocus(y) {
|
7495
7495
|
var b;
|
7496
|
-
(b =
|
7496
|
+
(b = i.onFocus) == null || b.call(i, y), f.setHasFocusInside(!0);
|
7497
7497
|
}
|
7498
7498
|
}),
|
7499
7499
|
children: [
|
@@ -7541,8 +7541,8 @@ const nm = (e) => {
|
|
7541
7541
|
className: e,
|
7542
7542
|
defaultPlacement: t = "top-start"
|
7543
7543
|
}) => {
|
7544
|
-
const { dispatch: r, setChatId: a, setInitialMessages: o } = X(
|
7545
|
-
user:
|
7544
|
+
const { dispatch: r, setChatId: a, setInitialMessages: o } = X(_e), { dispatch: n } = X(uo), { getAccessToken: s, user: i } = Ne(), { data: l, isSuccess: d } = or({
|
7545
|
+
user: i == null ? void 0 : i.username,
|
7546
7546
|
getAccessToken: s
|
7547
7547
|
}), f = (u, h, m) => {
|
7548
7548
|
u.preventDefault(), a(ot()), o([]), r({
|
@@ -7551,13 +7551,13 @@ const nm = (e) => {
|
|
7551
7551
|
privateChat: m
|
7552
7552
|
}
|
7553
7553
|
}), n({
|
7554
|
-
type:
|
7554
|
+
type: Un,
|
7555
7555
|
payload: {
|
7556
7556
|
prompt: h
|
7557
7557
|
}
|
7558
7558
|
});
|
7559
7559
|
};
|
7560
|
-
return d &&
|
7560
|
+
return d && l && l.tags && nm(l.tags) && /* @__PURE__ */ c(
|
7561
7561
|
it,
|
7562
7562
|
{
|
7563
7563
|
label: "Prompts",
|
@@ -7572,7 +7572,7 @@ const nm = (e) => {
|
|
7572
7572
|
defaultPlacement: t,
|
7573
7573
|
children: [
|
7574
7574
|
/* @__PURE__ */ c(xi, { children: "Prompts" }),
|
7575
|
-
|
7575
|
+
l && l.tags && l.tags.map((u) => {
|
7576
7576
|
let h = null;
|
7577
7577
|
switch (u.slot) {
|
7578
7578
|
case 0:
|
@@ -7615,7 +7615,7 @@ const nm = (e) => {
|
|
7615
7615
|
dispatch: a,
|
7616
7616
|
setChatId: o,
|
7617
7617
|
setInitialMessages: n
|
7618
|
-
} = X(
|
7618
|
+
} = X(_e), [s, i] = F(!1), [l, d] = F(!1), [f, u] = gt({
|
7619
7619
|
key: pt + Wi,
|
7620
7620
|
initialValue: ""
|
7621
7621
|
}), h = () => {
|
@@ -7627,10 +7627,10 @@ const nm = (e) => {
|
|
7627
7627
|
});
|
7628
7628
|
};
|
7629
7629
|
return /* @__PURE__ */ N(se, { children: [
|
7630
|
-
|
7630
|
+
l && /* @__PURE__ */ c(
|
7631
7631
|
Dt,
|
7632
7632
|
{
|
7633
|
-
showConfirmation:
|
7633
|
+
showConfirmation: l,
|
7634
7634
|
setShowConfirmation: d,
|
7635
7635
|
action: h,
|
7636
7636
|
customStrings: {
|
@@ -7645,7 +7645,7 @@ const nm = (e) => {
|
|
7645
7645
|
Dt,
|
7646
7646
|
{
|
7647
7647
|
showConfirmation: s,
|
7648
|
-
setShowConfirmation:
|
7648
|
+
setShowConfirmation: i,
|
7649
7649
|
action: h,
|
7650
7650
|
customStrings: {
|
7651
7651
|
confirmAction: "Continue",
|
@@ -7676,7 +7676,7 @@ const nm = (e) => {
|
|
7676
7676
|
label: "Reasoning Chat",
|
7677
7677
|
variant: t ? "selected" : "primary",
|
7678
7678
|
onClick: (g) => {
|
7679
|
-
g && g.preventDefault(), f ? r > 0 ? d(!
|
7679
|
+
g && g.preventDefault(), f ? r > 0 ? d(!l) : h() : (u("true"), i(!s));
|
7680
7680
|
},
|
7681
7681
|
className: "text-sm",
|
7682
7682
|
children: /* @__PURE__ */ c(Xl, { size: Ke })
|
@@ -7691,7 +7691,7 @@ const nm = (e) => {
|
|
7691
7691
|
const { user: t, getAccessToken: r } = Ne(), {
|
7692
7692
|
dispatch: a,
|
7693
7693
|
state: { usage: o, provider: n, privateChat: s }
|
7694
|
-
} = X(
|
7694
|
+
} = X(_e), { messages: i, id: l } = _t(), { state: d } = X(ir), { refetch: f } = ao({
|
7695
7695
|
enabled: !1,
|
7696
7696
|
user: (t == null ? void 0 : t.username) || "",
|
7697
7697
|
searchString: d.searchString,
|
@@ -7699,8 +7699,8 @@ const nm = (e) => {
|
|
7699
7699
|
getAccessToken: r
|
7700
7700
|
}), [u, h] = F(!1), [m, g] = F(!1), y = async () => {
|
7701
7701
|
try {
|
7702
|
-
if (
|
7703
|
-
const v =
|
7702
|
+
if (l && i && n) {
|
7703
|
+
const v = i.filter(({ content: w }) => w).map(({ role: w, content: x, id: C }) => ({
|
7704
7704
|
role: w,
|
7705
7705
|
content: x,
|
7706
7706
|
id: C
|
@@ -7710,7 +7710,7 @@ const nm = (e) => {
|
|
7710
7710
|
type: $e.SAVE_CHAT,
|
7711
7711
|
params: {
|
7712
7712
|
userId: (t == null ? void 0 : t.username) || "",
|
7713
|
-
id:
|
7713
|
+
id: l,
|
7714
7714
|
messages: v,
|
7715
7715
|
provider: n,
|
7716
7716
|
usage: o
|
@@ -7734,8 +7734,8 @@ const nm = (e) => {
|
|
7734
7734
|
v && v.preventDefault(), o > 0 ? g(!m) : y();
|
7735
7735
|
};
|
7736
7736
|
return P(() => {
|
7737
|
-
s && (
|
7738
|
-
}, [s,
|
7737
|
+
s && (i == null ? void 0 : i.length) > 0 ? h(!0) : h(!1);
|
7738
|
+
}, [s, i]), /* @__PURE__ */ N(se, { children: [
|
7739
7739
|
m && /* @__PURE__ */ c(
|
7740
7740
|
Dt,
|
7741
7741
|
{
|
@@ -7807,7 +7807,7 @@ const nm = (e) => {
|
|
7807
7807
|
}) => {
|
7808
7808
|
const {
|
7809
7809
|
state: { loading: t, streaming: r }
|
7810
|
-
} = X(
|
7810
|
+
} = X(_e);
|
7811
7811
|
return /* @__PURE__ */ c(
|
7812
7812
|
it,
|
7813
7813
|
{
|
@@ -7837,12 +7837,12 @@ const nm = (e) => {
|
|
7837
7837
|
icon: ms
|
7838
7838
|
},
|
7839
7839
|
{
|
7840
|
-
id:
|
7840
|
+
id: lo,
|
7841
7841
|
label: "Anthropic",
|
7842
7842
|
icon: us
|
7843
7843
|
},
|
7844
7844
|
{
|
7845
|
-
id:
|
7845
|
+
id: co,
|
7846
7846
|
label: "Google Gemini",
|
7847
7847
|
icon: hs
|
7848
7848
|
}
|
@@ -7852,7 +7852,7 @@ const nm = (e) => {
|
|
7852
7852
|
state: { privateChat: r },
|
7853
7853
|
setChatId: a,
|
7854
7854
|
setInitialMessages: o
|
7855
|
-
} = X(
|
7855
|
+
} = X(_e), { getAccessToken: n, user: s } = Ne(), { status: i } = _t(), { isSuccess: l, refetch: d, data: f } = or({
|
7856
7856
|
user: s == null ? void 0 : s.username,
|
7857
7857
|
getAccessToken: n
|
7858
7858
|
}), u = async (h) => {
|
@@ -7862,7 +7862,7 @@ const nm = (e) => {
|
|
7862
7862
|
accessToken: await n(),
|
7863
7863
|
username: (s == null ? void 0 : s.username) || ""
|
7864
7864
|
}), d(), Q.success(
|
7865
|
-
`${
|
7865
|
+
`${Hn} ${h}`,
|
7866
7866
|
Er({
|
7867
7867
|
containerId: "toggle-provider",
|
7868
7868
|
transition: Cr
|
@@ -7876,7 +7876,7 @@ const nm = (e) => {
|
|
7876
7876
|
} catch {
|
7877
7877
|
}
|
7878
7878
|
};
|
7879
|
-
return
|
7879
|
+
return l ? /* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
7880
7880
|
it,
|
7881
7881
|
{
|
7882
7882
|
label: "Toggle Providers",
|
@@ -7892,7 +7892,7 @@ const nm = (e) => {
|
|
7892
7892
|
(h) => f.provider === h.id ? /* @__PURE__ */ c(
|
7893
7893
|
h.icon,
|
7894
7894
|
{
|
7895
|
-
className:
|
7895
|
+
className: i === "streaming" ? "av-pulsate-icon" : "",
|
7896
7896
|
size: Ke
|
7897
7897
|
},
|
7898
7898
|
h.id
|
@@ -7949,11 +7949,11 @@ const nm = (e) => {
|
|
7949
7949
|
}, bm = () => {
|
7950
7950
|
const { user: e, getAccessToken: t } = Ne(), [r, a] = F(!1), {
|
7951
7951
|
state: { streaming: o, lastResetTimestamp: n }
|
7952
|
-
} = X(
|
7952
|
+
} = X(_e), { state: s, dispatch: i } = X(uo), { state: l } = X(ir), { refetch: d } = ao({
|
7953
7953
|
enabled: !1,
|
7954
7954
|
user: (e == null ? void 0 : e.username) || "",
|
7955
|
-
searchString:
|
7956
|
-
sortDirection:
|
7955
|
+
searchString: l.searchString,
|
7956
|
+
sortDirection: l.sortDirection,
|
7957
7957
|
getAccessToken: t
|
7958
7958
|
}), {
|
7959
7959
|
input: f,
|
@@ -8013,7 +8013,7 @@ const nm = (e) => {
|
|
8013
8013
|
...S,
|
8014
8014
|
{
|
8015
8015
|
id: ot(),
|
8016
|
-
role:
|
8016
|
+
role: pa,
|
8017
8017
|
content: Ki
|
8018
8018
|
}
|
8019
8019
|
]);
|
@@ -8024,7 +8024,7 @@ const nm = (e) => {
|
|
8024
8024
|
const {
|
8025
8025
|
dispatch: b,
|
8026
8026
|
state: { reasoning: v }
|
8027
|
-
} = X(
|
8027
|
+
} = X(_e), w = $(!1), x = $(0), C = $(null), I = $(null), _ = qt(), T = mm({
|
8028
8028
|
className: ""
|
8029
8029
|
}), E = Y(() => {
|
8030
8030
|
if (!I.current)
|
@@ -8063,11 +8063,11 @@ const nm = (e) => {
|
|
8063
8063
|
const S = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
|
8064
8064
|
S.indexOf(No) !== -1 ? navigator.clipboard.readText().then((L) => {
|
8065
8065
|
u(S.replace(No, L));
|
8066
|
-
}) : u(S), !ma() && I.current && I.current.focus(),
|
8067
|
-
type:
|
8066
|
+
}) : u(S), !ma() && I.current && I.current.focus(), i({
|
8067
|
+
type: Fn
|
8068
8068
|
});
|
8069
8069
|
}
|
8070
|
-
}, [s,
|
8070
|
+
}, [s, i, u]), P(() => {
|
8071
8071
|
if (w.current === !1) {
|
8072
8072
|
w.current = !0, !f && vr(I);
|
8073
8073
|
return;
|
@@ -8117,10 +8117,10 @@ const nm = (e) => {
|
|
8117
8117
|
}, _r = "--sassy-bottom", Sn = 16, Nn = 76, vm = ({ isComponent: e }) => {
|
8118
8118
|
const {
|
8119
8119
|
state: { loading: t, streaming: r, restoring: a }
|
8120
|
-
} = X(
|
8120
|
+
} = X(_e), {
|
8121
8121
|
state: { footerHeight: o, footerPosition: n },
|
8122
8122
|
dispatch: s
|
8123
|
-
} = X(
|
8123
|
+
} = X(fo), { messages: i } = _t(), { height: l } = wc(), { height: d } = kc(), [f, u] = bs();
|
8124
8124
|
return P(() => {
|
8125
8125
|
o !== u.height && s({
|
8126
8126
|
type: As,
|
@@ -8132,8 +8132,8 @@ const nm = (e) => {
|
|
8132
8132
|
var g, y, b, v;
|
8133
8133
|
if (!f || !f.current)
|
8134
8134
|
return;
|
8135
|
-
const h =
|
8136
|
-
if (n ===
|
8135
|
+
const h = l - d, m = (g = f == null ? void 0 : f.current) == null ? void 0 : g.style.getPropertyValue(_r);
|
8136
|
+
if (n === Ra && (t && !r || a)) {
|
8137
8137
|
const w = h > 0 && h < 100 ? Nn : Sn;
|
8138
8138
|
m !== `${w}px` && (s({
|
8139
8139
|
type: xr,
|
@@ -8153,12 +8153,12 @@ const nm = (e) => {
|
|
8153
8153
|
}
|
8154
8154
|
}), (b = f == null ? void 0 : f.current) == null || b.style.setProperty(_r, `${w}px`));
|
8155
8155
|
}
|
8156
|
-
if (!t && !r && !a &&
|
8157
|
-
const w = `${
|
8156
|
+
if (!t && !r && !a && i.length === 0 && l > 0 && u.height > 0) {
|
8157
|
+
const w = `${l - u.height - (e ? 300 : 245)}`;
|
8158
8158
|
m !== `${w}px` && Number(w) > 0 && (s({
|
8159
8159
|
type: xr,
|
8160
8160
|
payload: {
|
8161
|
-
footerPosition:
|
8161
|
+
footerPosition: Ra,
|
8162
8162
|
footerOffset: Number(w)
|
8163
8163
|
}
|
8164
8164
|
}), (v = f == null ? void 0 : f.current) == null || v.style.setProperty(
|
@@ -8172,8 +8172,8 @@ const nm = (e) => {
|
|
8172
8172
|
r,
|
8173
8173
|
a,
|
8174
8174
|
e,
|
8175
|
-
l,
|
8176
8175
|
i,
|
8176
|
+
l,
|
8177
8177
|
u.height,
|
8178
8178
|
n,
|
8179
8179
|
d,
|
@@ -8204,8 +8204,8 @@ const nm = (e) => {
|
|
8204
8204
|
header: ne.ABOUT.TITLE_CLIENT,
|
8205
8205
|
className: "prose-dark dark:prose-lighter",
|
8206
8206
|
children: Ir(e, {
|
8207
|
-
[ne.ABOUT.VERSION]: "8.12.
|
8208
|
-
[ne.ABOUT.BUILD_TIMESTAMP]: "04/
|
8207
|
+
[ne.ABOUT.VERSION]: "8.12.5",
|
8208
|
+
[ne.ABOUT.BUILD_TIMESTAMP]: "04/09/2025 12:15 PM EDT"
|
8209
8209
|
})
|
8210
8210
|
}
|
8211
8211
|
) }),
|
@@ -8234,9 +8234,9 @@ const nm = (e) => {
|
|
8234
8234
|
children: /* @__PURE__ */ c(_m, {})
|
8235
8235
|
}
|
8236
8236
|
), km = {
|
8237
|
-
[
|
8237
|
+
[lo]: us,
|
8238
8238
|
[Pr]: ms,
|
8239
|
-
[
|
8239
|
+
[co]: hs
|
8240
8240
|
}, xm = ({
|
8241
8241
|
filteredHistory: e,
|
8242
8242
|
dispatch: t,
|
@@ -8244,17 +8244,17 @@ const nm = (e) => {
|
|
8244
8244
|
mutate: a
|
8245
8245
|
}) => {
|
8246
8246
|
var E;
|
8247
|
-
const { user: o, getAccessToken: n } = Ne(), s = $(null),
|
8247
|
+
const { user: o, getAccessToken: n } = Ne(), s = $(null), i = $({
|
8248
8248
|
id: "",
|
8249
8249
|
timestamp: "",
|
8250
8250
|
message: ""
|
8251
|
-
}), [
|
8251
|
+
}), [l, d] = F(!1), [f, u] = F(
|
8252
8252
|
Ao + Oo
|
8253
8253
|
), { state: h, dispatch: m } = X(ir), {
|
8254
8254
|
state: { provider: g },
|
8255
8255
|
setChatId: y,
|
8256
8256
|
setInitialMessages: b
|
8257
|
-
} = X(
|
8257
|
+
} = X(_e), { setInput: v } = _t(), [, w] = gt({
|
8258
8258
|
key: pt + Wn,
|
8259
8259
|
initialValue: h.sortDirection
|
8260
8260
|
}), { refetch: x } = or({
|
@@ -8282,7 +8282,7 @@ const nm = (e) => {
|
|
8282
8282
|
break;
|
8283
8283
|
}
|
8284
8284
|
}, I = async () => {
|
8285
|
-
const k =
|
8285
|
+
const k = i.current;
|
8286
8286
|
try {
|
8287
8287
|
await Ot({
|
8288
8288
|
accessToken: await n(),
|
@@ -8315,12 +8315,12 @@ const nm = (e) => {
|
|
8315
8315
|
accessToken: A,
|
8316
8316
|
username: L
|
8317
8317
|
}), R({
|
8318
|
-
type:
|
8318
|
+
type: ro,
|
8319
8319
|
payload: {
|
8320
8320
|
provider: z.data.provider
|
8321
8321
|
}
|
8322
8322
|
}), x(), Q.success(
|
8323
|
-
`${
|
8323
|
+
`${Hn} ${z.data.provider}`,
|
8324
8324
|
Er({
|
8325
8325
|
containerId: "toggle-provider",
|
8326
8326
|
transition: Cr
|
@@ -8346,7 +8346,7 @@ const nm = (e) => {
|
|
8346
8346
|
/* @__PURE__ */ N(
|
8347
8347
|
Dt,
|
8348
8348
|
{
|
8349
|
-
showConfirmation:
|
8349
|
+
showConfirmation: l,
|
8350
8350
|
setShowConfirmation: d,
|
8351
8351
|
action: I,
|
8352
8352
|
customStrings: {
|
@@ -8360,18 +8360,18 @@ const nm = (e) => {
|
|
8360
8360
|
/* @__PURE__ */ N("li", { children: [
|
8361
8361
|
"Timestamp:",
|
8362
8362
|
" ",
|
8363
|
-
/* @__PURE__ */ c("span", { className: "text-lg", children:
|
8363
|
+
/* @__PURE__ */ c("span", { className: "text-lg", children: i.current && i.current.timestamp })
|
8364
8364
|
] }),
|
8365
8365
|
/* @__PURE__ */ N("li", { children: [
|
8366
8366
|
"First message:",
|
8367
8367
|
" ",
|
8368
|
-
/* @__PURE__ */ c("span", { className: "text-lg", children: (E =
|
8368
|
+
/* @__PURE__ */ c("span", { className: "text-lg", children: (E = i.current) == null ? void 0 : E.message })
|
8369
8369
|
] })
|
8370
8370
|
] })
|
8371
8371
|
]
|
8372
8372
|
}
|
8373
8373
|
),
|
8374
|
-
/* @__PURE__ */ c("div", { className: qn, children: /* @__PURE__ */ c(
|
8374
|
+
/* @__PURE__ */ c("div", { className: qn, children: /* @__PURE__ */ c(Na, { containerId: "history-table" }) }),
|
8375
8375
|
/* @__PURE__ */ N(Qc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
8376
8376
|
/* @__PURE__ */ c(Xc, { children: /* @__PURE__ */ N(qr, { children: [
|
8377
8377
|
/* @__PURE__ */ c(Ae, { className: "sr-only", children: "Row" }),
|
@@ -8459,11 +8459,11 @@ const nm = (e) => {
|
|
8459
8459
|
label: "Delete chat",
|
8460
8460
|
onClick: () => {
|
8461
8461
|
var M;
|
8462
|
-
|
8462
|
+
i.current = {
|
8463
8463
|
id: k.id,
|
8464
8464
|
timestamp: k.timestamp,
|
8465
8465
|
message: k.messages.length > 0 ? (M = k.messages[0]) == null ? void 0 : M.content : ""
|
8466
|
-
}, d(!
|
8466
|
+
}, d(!l);
|
8467
8467
|
},
|
8468
8468
|
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(ql, { size: "size-3", monotone: !0 }) })
|
8469
8469
|
}
|
@@ -8482,26 +8482,26 @@ const nm = (e) => {
|
|
8482
8482
|
open: e,
|
8483
8483
|
onOpenChange: t
|
8484
8484
|
}) => {
|
8485
|
-
const { getAccessToken: r, user: a } = Ne(), { dispatch: o } = X(
|
8486
|
-
|
8487
|
-
), { data: h, refetch: m } =
|
8485
|
+
const { getAccessToken: r, user: a } = Ne(), { dispatch: o } = X(_e), [n, s] = F([]), i = $(null), { state: l, dispatch: d } = X(ir), [f, u] = F(
|
8486
|
+
l.sortDirection
|
8487
|
+
), { data: h, refetch: m } = ao({
|
8488
8488
|
enabled: e,
|
8489
8489
|
user: (a == null ? void 0 : a.username) || "",
|
8490
|
-
searchString:
|
8490
|
+
searchString: l.searchString,
|
8491
8491
|
sortDirection: f,
|
8492
8492
|
getAccessToken: r
|
8493
8493
|
}), [, g] = gt({
|
8494
8494
|
key: pt + Yn,
|
8495
|
-
initialValue:
|
8495
|
+
initialValue: l.searchString
|
8496
8496
|
});
|
8497
8497
|
P(() => {
|
8498
|
-
|
8499
|
-
}, [
|
8498
|
+
l.sortDirection !== f && u(l.sortDirection);
|
8499
|
+
}, [l, f]), P(() => {
|
8500
8500
|
h && s(h);
|
8501
8501
|
}, [h]);
|
8502
8502
|
const y = async (w) => {
|
8503
8503
|
g(w), d({
|
8504
|
-
type:
|
8504
|
+
type: Vn,
|
8505
8505
|
payload: { searchString: w }
|
8506
8506
|
});
|
8507
8507
|
}, b = rl((w) => {
|
@@ -8526,8 +8526,8 @@ const nm = (e) => {
|
|
8526
8526
|
autoCapitalize: "off",
|
8527
8527
|
autoComplete: "off",
|
8528
8528
|
autoCorrect: "off",
|
8529
|
-
ref:
|
8530
|
-
defaultValue:
|
8529
|
+
ref: i,
|
8530
|
+
defaultValue: l.searchString,
|
8531
8531
|
focusMode: "light",
|
8532
8532
|
mode: "light",
|
8533
8533
|
name: "Search",
|
@@ -8543,10 +8543,10 @@ const nm = (e) => {
|
|
8543
8543
|
size: "small",
|
8544
8544
|
onClick: () => {
|
8545
8545
|
var w;
|
8546
|
-
y(""), (w =
|
8546
|
+
y(""), (w = i.current) != null && w.value && (i.current.value = "", i.current.focus());
|
8547
8547
|
},
|
8548
|
-
disabled:
|
8549
|
-
children:
|
8548
|
+
disabled: l.searchString === "",
|
8549
|
+
children: l.searchString !== "" ? /* @__PURE__ */ c(fs, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ c(nc, { monotone: !0, size: "size-3" })
|
8550
8550
|
}
|
8551
8551
|
) })
|
8552
8552
|
}
|
@@ -8653,10 +8653,10 @@ const Om = {
|
|
8653
8653
|
right: 0
|
8654
8654
|
};
|
8655
8655
|
function Rn(e) {
|
8656
|
-
const t = Rm(), r = $(0), a = $(null), [o, n] = F(Om), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((
|
8657
|
-
const
|
8658
|
-
|
8659
|
-
a.current && t() && n(
|
8656
|
+
const t = Rm(), r = $(0), a = $(null), [o, n] = F(Om), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
8657
|
+
const l = i[0];
|
8658
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8659
|
+
a.current && t() && n(l.contentRect);
|
8660
8660
|
}));
|
8661
8661
|
}), [t]);
|
8662
8662
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
@@ -8671,16 +8671,16 @@ function $m({
|
|
8671
8671
|
},
|
8672
8672
|
initialControlledDelay: o = 0
|
8673
8673
|
}) {
|
8674
|
-
const [n, s] = F(!1), [
|
8674
|
+
const [n, s] = F(!1), [i, l] = F(
|
8675
8675
|
t !== void 0 ? t : r
|
8676
8676
|
), d = (f) => {
|
8677
|
-
|
8677
|
+
l(f), a == null || a(f);
|
8678
8678
|
};
|
8679
8679
|
return P(() => {
|
8680
8680
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
8681
8681
|
(f) => setTimeout(f, o)
|
8682
8682
|
), s(!0)))();
|
8683
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [
|
8683
|
+
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [i, d, !1];
|
8684
8684
|
}
|
8685
8685
|
function Lm(e) {
|
8686
8686
|
const t = Or();
|
@@ -8771,8 +8771,8 @@ function zm({
|
|
8771
8771
|
announcementDelay: o,
|
8772
8772
|
clearAnnouncementDelay: n,
|
8773
8773
|
onAnnouncementClear: s,
|
8774
|
-
visible:
|
8775
|
-
...
|
8774
|
+
visible: i,
|
8775
|
+
...l
|
8776
8776
|
}) {
|
8777
8777
|
const d = $(null), f = $(null), [u, h] = Ut(Dm, {
|
8778
8778
|
announcement: null
|
@@ -8795,7 +8795,7 @@ function zm({
|
|
8795
8795
|
s
|
8796
8796
|
]);
|
8797
8797
|
const g = p(t, {
|
8798
|
-
"sr-only": !
|
8798
|
+
"sr-only": !i
|
8799
8799
|
});
|
8800
8800
|
return /* @__PURE__ */ c(
|
8801
8801
|
"div",
|
@@ -8803,7 +8803,7 @@ function zm({
|
|
8803
8803
|
"aria-live": m,
|
8804
8804
|
...a && { role: a },
|
8805
8805
|
className: g,
|
8806
|
-
...
|
8806
|
+
...l,
|
8807
8807
|
children: u.announcement
|
8808
8808
|
}
|
8809
8809
|
);
|
@@ -8915,8 +8915,8 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8915
8915
|
disabled: o,
|
8916
8916
|
noBorder: n,
|
8917
8917
|
error: s,
|
8918
|
-
mode:
|
8919
|
-
leftElement:
|
8918
|
+
mode: i,
|
8919
|
+
leftElement: l,
|
8920
8920
|
rightElement: d
|
8921
8921
|
}) => {
|
8922
8922
|
const f = r ? e : p(
|
@@ -8927,7 +8927,7 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8927
8927
|
Si,
|
8928
8928
|
t,
|
8929
8929
|
Vm(),
|
8930
|
-
Fm({ mode:
|
8930
|
+
Fm({ mode: i }),
|
8931
8931
|
Um({ focusMode: a }),
|
8932
8932
|
Hm({
|
8933
8933
|
noBorder: n,
|
@@ -8940,13 +8940,13 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8940
8940
|
disabled: o,
|
8941
8941
|
raw: r,
|
8942
8942
|
error: s,
|
8943
|
-
mode:
|
8943
|
+
mode: i,
|
8944
8944
|
rightElement: d,
|
8945
|
-
leftElement:
|
8945
|
+
leftElement: l
|
8946
8946
|
}), g = jm({
|
8947
8947
|
error: s,
|
8948
8948
|
raw: r,
|
8949
|
-
mode:
|
8949
|
+
mode: i,
|
8950
8950
|
disabled: o
|
8951
8951
|
}), y = r ? void 0 : p(Sm, "absolute"), b = r ? void 0 : p(Nm, "absolute");
|
8952
8952
|
return {
|
@@ -8966,15 +8966,15 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8966
8966
|
}) => {
|
8967
8967
|
let o, n;
|
8968
8968
|
if (e > 0 && e !== t) {
|
8969
|
-
const s = e - t,
|
8970
|
-
o = r + -1 * Math.sign(s) * (12 *
|
8969
|
+
const s = e - t, i = Math.abs(s / 24);
|
8970
|
+
o = r + -1 * Math.sign(s) * (12 * i), n = a + Math.sign(s) * (12 * i);
|
8971
8971
|
}
|
8972
8972
|
return {
|
8973
8973
|
labelOffset: o,
|
8974
8974
|
helperTextOffset: n,
|
8975
8975
|
scrollHeight: e
|
8976
8976
|
};
|
8977
|
-
},
|
8977
|
+
}, qa = U.forwardRef(
|
8978
8978
|
({
|
8979
8979
|
id: e,
|
8980
8980
|
name: t,
|
@@ -8983,8 +8983,8 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8983
8983
|
raw: o = !1,
|
8984
8984
|
className: n,
|
8985
8985
|
textAreaClassName: s,
|
8986
|
-
mode:
|
8987
|
-
focusMode:
|
8986
|
+
mode: i = "system",
|
8987
|
+
focusMode: l = "system",
|
8988
8988
|
value: d,
|
8989
8989
|
defaultValue: f,
|
8990
8990
|
disabled: u = !1,
|
@@ -9007,10 +9007,10 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9007
9007
|
textAreaClassName: s,
|
9008
9008
|
error: a,
|
9009
9009
|
raw: o,
|
9010
|
-
focusMode:
|
9010
|
+
focusMode: l,
|
9011
9011
|
disabled: u,
|
9012
9012
|
noBorder: h,
|
9013
|
-
mode:
|
9013
|
+
mode: i,
|
9014
9014
|
rightElement: !!b,
|
9015
9015
|
leftElement: !!v
|
9016
9016
|
}), [Ce, Vt] = $m({
|
@@ -9141,7 +9141,7 @@ const Vm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9141
9141
|
] });
|
9142
9142
|
}
|
9143
9143
|
);
|
9144
|
-
|
9144
|
+
qa.displayName = "TextArea";
|
9145
9145
|
/*!
|
9146
9146
|
@versini/ui-toggle v4.0.1
|
9147
9147
|
© 2025 gizmette.com
|
@@ -9232,15 +9232,15 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9232
9232
|
name: o,
|
9233
9233
|
mode: n = "system",
|
9234
9234
|
focusMode: s = "system",
|
9235
|
-
className:
|
9236
|
-
noBorder:
|
9235
|
+
className: i,
|
9236
|
+
noBorder: l = !1
|
9237
9237
|
}) => {
|
9238
9238
|
const d = rp({
|
9239
9239
|
mode: n,
|
9240
9240
|
focusMode: s,
|
9241
9241
|
labelHidden: a,
|
9242
|
-
className:
|
9243
|
-
noBorder:
|
9242
|
+
className: i,
|
9243
|
+
noBorder: l
|
9244
9244
|
}), f = (u) => {
|
9245
9245
|
t == null || t(u.target.checked);
|
9246
9246
|
};
|
@@ -9269,7 +9269,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9269
9269
|
} = or({
|
9270
9270
|
user: a == null ? void 0 : a.username,
|
9271
9271
|
getAccessToken: r
|
9272
|
-
}), [
|
9272
|
+
}), [i, l] = F({
|
9273
9273
|
loadingLocation: !1
|
9274
9274
|
}), [d, f] = F({
|
9275
9275
|
prompts: []
|
@@ -9291,13 +9291,13 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9291
9291
|
provider: o == null ? void 0 : o.provider,
|
9292
9292
|
tags: d.prompts
|
9293
9293
|
}
|
9294
|
-
}), s(),
|
9294
|
+
}), s(), l({
|
9295
9295
|
loadingLocation: !1
|
9296
9296
|
});
|
9297
9297
|
} catch {
|
9298
9298
|
}
|
9299
9299
|
}, x = async () => {
|
9300
|
-
|
9300
|
+
l({
|
9301
9301
|
loadingLocation: !0
|
9302
9302
|
}), g("...");
|
9303
9303
|
try {
|
@@ -9311,11 +9311,11 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9311
9311
|
}), R = Date.now() - _;
|
9312
9312
|
if (R < 2e3 && await new Promise((S) => setTimeout(S, 2e3 - R)), E.status === 200) {
|
9313
9313
|
const { city: S, state: A, country: L, displayName: D } = E.data, z = S && A && L ? `${S}, ${A}, ${L}` : D;
|
9314
|
-
|
9314
|
+
l({
|
9315
9315
|
loadingLocation: !1
|
9316
9316
|
}), g(z);
|
9317
9317
|
} else
|
9318
|
-
|
9318
|
+
l({
|
9319
9319
|
loadingLocation: !1
|
9320
9320
|
});
|
9321
9321
|
} catch {
|
@@ -9421,7 +9421,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9421
9421
|
" to know about you to provide better responses?"
|
9422
9422
|
] }),
|
9423
9423
|
/* @__PURE__ */ c(
|
9424
|
-
|
9424
|
+
qa,
|
9425
9425
|
{
|
9426
9426
|
mode: "alt-system",
|
9427
9427
|
autoCapitalize: "off",
|
@@ -9447,7 +9447,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9447
9447
|
children: [
|
9448
9448
|
/* @__PURE__ */ c("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
9449
9449
|
/* @__PURE__ */ c(
|
9450
|
-
|
9450
|
+
qa,
|
9451
9451
|
{
|
9452
9452
|
mode: "alt-system",
|
9453
9453
|
name: "location",
|
@@ -9465,9 +9465,9 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9465
9465
|
className: "mt-2",
|
9466
9466
|
size: "small",
|
9467
9467
|
noBorder: !0,
|
9468
|
-
disabled:
|
9468
|
+
disabled: i.loadingLocation,
|
9469
9469
|
onClick: x,
|
9470
|
-
children:
|
9470
|
+
children: i.loadingLocation ? "Detecting..." : "Auto-detect"
|
9471
9471
|
}
|
9472
9472
|
)
|
9473
9473
|
]
|
@@ -9552,7 +9552,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9552
9552
|
) : null;
|
9553
9553
|
}, dt = [0, 3, 6, 9], op = es(() => import(
|
9554
9554
|
/* webpackChunkName: "LazyChart" */
|
9555
|
-
"./Chart.
|
9555
|
+
"./Chart.C5O_JbB2.js"
|
9556
9556
|
)), np = ({
|
9557
9557
|
open: e,
|
9558
9558
|
onOpenChange: t
|
@@ -9560,7 +9560,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9560
9560
|
const { getAccessToken: r, user: a } = Ne(), o = qt(), { data: n, isSuccess: s } = Hd({
|
9561
9561
|
user: a == null ? void 0 : a.username,
|
9562
9562
|
getAccessToken: r
|
9563
|
-
}), { data:
|
9563
|
+
}), { data: i, isSuccess: l } = Gd({
|
9564
9564
|
user: a == null ? void 0 : a.username,
|
9565
9565
|
getAccessToken: r
|
9566
9566
|
}), d = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [f, u] = F(d), h = (g) => {
|
@@ -9603,9 +9603,9 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9603
9603
|
{
|
9604
9604
|
header: ne.MAIN_STATISTICS.USAGE,
|
9605
9605
|
className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
|
9606
|
-
children:
|
9606
|
+
children: l && i && i.usage && i.usage.series && i.usage.series.length ? /* @__PURE__ */ N(Zn, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
9607
9607
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
9608
|
-
/* @__PURE__ */ c(op, { usage:
|
9608
|
+
/* @__PURE__ */ c(op, { usage: i.usage.series, page: f }),
|
9609
9609
|
/* @__PURE__ */ c(er, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ N(He, { children: [
|
9610
9610
|
/* @__PURE__ */ c(
|
9611
9611
|
mt,
|
@@ -9637,12 +9637,12 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9637
9637
|
}, sp = ({
|
9638
9638
|
isComponent: e = !1
|
9639
9639
|
}) => {
|
9640
|
-
const { logout: t, getAccessToken: r } = Ne(), [a, o] = F(!1), [n, s] = F(!1), [
|
9640
|
+
const { logout: t, getAccessToken: r } = Ne(), [a, o] = F(!1), [n, s] = F(!1), [i, l] = F(!1), [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(!1), [y, b] = F(!1), v = () => {
|
9641
9641
|
o(!a);
|
9642
9642
|
}, w = () => {
|
9643
9643
|
s(!n);
|
9644
9644
|
}, x = () => {
|
9645
|
-
|
9645
|
+
l(!i);
|
9646
9646
|
}, C = () => {
|
9647
9647
|
f(!d);
|
9648
9648
|
}, I = () => {
|
@@ -9674,7 +9674,7 @@ const Ym = "av-toggle", Jm = () => p("peer", "h-6", "w-11", "rounded-full"), Km
|
|
9674
9674
|
),
|
9675
9675
|
a && /* @__PURE__ */ c(Im, { open: a, onOpenChange: o }),
|
9676
9676
|
n && /* @__PURE__ */ c(ap, { open: n, onOpenChange: s }),
|
9677
|
-
|
9677
|
+
i && /* @__PURE__ */ c(Tm, { open: i, onOpenChange: l }),
|
9678
9678
|
d && /* @__PURE__ */ c(wm, { open: d, onOpenChange: f }),
|
9679
9679
|
u && /* @__PURE__ */ c(np, { open: u, onOpenChange: h }),
|
9680
9680
|
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ N(
|
@@ -9779,7 +9779,7 @@ try {
|
|
9779
9779
|
});
|
9780
9780
|
} catch {
|
9781
9781
|
}
|
9782
|
-
const Tr = "av-bubble", On = "av-button",
|
9782
|
+
const Tr = "av-bubble", On = "av-button", _o = "icon", Ai = "button", Ya = "link", ip = ({
|
9783
9783
|
type: e,
|
9784
9784
|
size: t,
|
9785
9785
|
labelRight: r,
|
@@ -9787,16 +9787,16 @@ const Tr = "av-bubble", On = "av-button", vo = "icon", Ai = "button", qa = "link
|
|
9787
9787
|
align: o,
|
9788
9788
|
animated: n
|
9789
9789
|
}) => {
|
9790
|
-
const s = "max-h-8 py-0 px-2",
|
9790
|
+
const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
9791
9791
|
switch (e) {
|
9792
9792
|
case Ai:
|
9793
|
-
case
|
9793
|
+
case Ya:
|
9794
9794
|
return p({
|
9795
9795
|
[s]: t === "small",
|
9796
|
-
[
|
9797
|
-
[
|
9796
|
+
[i]: t === "medium",
|
9797
|
+
[l]: t === "large"
|
9798
9798
|
});
|
9799
|
-
case
|
9799
|
+
case _o:
|
9800
9800
|
return p("flex items-center", {
|
9801
9801
|
"justify-center": o === "center",
|
9802
9802
|
"justify-start": o === "left",
|
@@ -9824,14 +9824,14 @@ const Tr = "av-bubble", On = "av-button", vo = "icon", Ai = "button", qa = "link
|
|
9824
9824
|
const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
|
9825
9825
|
switch (e) {
|
9826
9826
|
case Ai:
|
9827
|
-
case
|
9827
|
+
case Ya:
|
9828
9828
|
return p({
|
9829
|
-
"text-center": e ===
|
9829
|
+
"text-center": e === Ya,
|
9830
9830
|
[o]: t === "small",
|
9831
9831
|
[n]: t === "medium",
|
9832
9832
|
[s]: t === "large"
|
9833
9833
|
});
|
9834
|
-
case
|
9834
|
+
case _o:
|
9835
9835
|
return p({
|
9836
9836
|
[o]: t === "small" && (r || a),
|
9837
9837
|
[n]: t === "medium" && (r || a),
|
@@ -10031,8 +10031,8 @@ const Tr = "av-bubble", On = "av-button", vo = "icon", Ai = "button", qa = "link
|
|
10031
10031
|
focusMode: o,
|
10032
10032
|
disabled: n,
|
10033
10033
|
fullWidth: s,
|
10034
|
-
size:
|
10035
|
-
noBorder:
|
10034
|
+
size: i,
|
10035
|
+
noBorder: l,
|
10036
10036
|
labelRight: d,
|
10037
10037
|
labelLeft: f,
|
10038
10038
|
noBackground: u,
|
@@ -10053,14 +10053,14 @@ const Tr = "av-bubble", On = "av-button", vo = "icon", Ai = "button", qa = "link
|
|
10053
10053
|
up({ radius: y }),
|
10054
10054
|
ip({
|
10055
10055
|
type: e,
|
10056
|
-
size:
|
10056
|
+
size: i,
|
10057
10057
|
labelRight: d,
|
10058
10058
|
labelLeft: f,
|
10059
10059
|
align: g,
|
10060
10060
|
animated: b
|
10061
10061
|
}),
|
10062
|
-
lp({ type: e, size:
|
10063
|
-
mp({ mode: a, variant: h, noBorder:
|
10062
|
+
lp({ type: e, size: i, labelRight: d, labelLeft: f }),
|
10063
|
+
mp({ mode: a, variant: h, noBorder: l }),
|
10064
10064
|
pp({ focusMode: o }),
|
10065
10065
|
fp({ mode: a, variant: h, disabled: n }),
|
10066
10066
|
hp({ mode: a, variant: h, disabled: n }),
|
@@ -10114,10 +10114,10 @@ const kp = {
|
|
10114
10114
|
right: 0
|
10115
10115
|
};
|
10116
10116
|
function la(e) {
|
10117
|
-
const t = _p(), r = $(0), a = $(null), [o, n] = F(kp), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((
|
10118
|
-
const
|
10119
|
-
|
10120
|
-
a.current && t() && n(
|
10117
|
+
const t = _p(), r = $(0), a = $(null), [o, n] = F(kp), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
10118
|
+
const l = i[0];
|
10119
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
10120
|
+
a.current && t() && n(l.contentRect);
|
10121
10121
|
}));
|
10122
10122
|
}), [t]);
|
10123
10123
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
@@ -10138,7 +10138,7 @@ const xp = {
|
|
10138
10138
|
// px-3 x 2
|
10139
10139
|
large: 16 * 2
|
10140
10140
|
// px-4 x 2
|
10141
|
-
}, Ep = 2,
|
10141
|
+
}, Ep = 2, wo = U.forwardRef(
|
10142
10142
|
({
|
10143
10143
|
children: e,
|
10144
10144
|
disabled: t = !1,
|
@@ -10147,8 +10147,8 @@ const xp = {
|
|
10147
10147
|
fullWidth: o = !1,
|
10148
10148
|
className: n,
|
10149
10149
|
type: s = "button",
|
10150
|
-
raw:
|
10151
|
-
noBorder:
|
10150
|
+
raw: i = !1,
|
10151
|
+
noBorder: l = !1,
|
10152
10152
|
"aria-label": d,
|
10153
10153
|
label: f,
|
10154
10154
|
size: u = "medium",
|
@@ -10163,14 +10163,14 @@ const xp = {
|
|
10163
10163
|
...C
|
10164
10164
|
}, I) => {
|
10165
10165
|
const _ = bp({
|
10166
|
-
type:
|
10166
|
+
type: _o,
|
10167
10167
|
mode: r,
|
10168
10168
|
focusMode: a,
|
10169
10169
|
fullWidth: o,
|
10170
10170
|
disabled: t,
|
10171
|
-
raw:
|
10171
|
+
raw: i,
|
10172
10172
|
className: n,
|
10173
|
-
noBorder:
|
10173
|
+
noBorder: l,
|
10174
10174
|
size: u,
|
10175
10175
|
labelRight: h,
|
10176
10176
|
labelLeft: m,
|
@@ -10179,10 +10179,10 @@ const xp = {
|
|
10179
10179
|
radius: b,
|
10180
10180
|
variant: v,
|
10181
10181
|
animated: x
|
10182
|
-
}), T = gp({ mode: r, raw:
|
10182
|
+
}), T = gp({ mode: r, raw: i, iconClassName: w }), E = yp({ animated: x }), [k, R] = la(), [S, A] = la(), [L, D] = la(), z = $(0), M = $(null), W = wp([I, M]);
|
10183
10183
|
return ge(() => {
|
10184
|
-
L && L.current && x && (z.current = D.width + Tp[u] + (
|
10185
|
-
}, [D, L, u,
|
10184
|
+
L && L.current && x && (z.current = D.width + Tp[u] + (l ? 0 : Ep));
|
10185
|
+
}, [D, L, u, l, x]), ge(() => {
|
10186
10186
|
M && M.current && x && (h && k && R.width > 0 ? (k.current && (k.current.style.opacity = "100"), M.current.style.width = `${R.width + z.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + z.current}px`) : (k.current && (k.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${xp[u]}px`));
|
10187
10187
|
}, [
|
10188
10188
|
R,
|
@@ -10232,7 +10232,7 @@ const xp = {
|
|
10232
10232
|
label: r,
|
10233
10233
|
labelInnerClass: a
|
10234
10234
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
10235
|
-
|
10235
|
+
wo.displayName = "ButtonIcon";
|
10236
10236
|
/*!
|
10237
10237
|
@versini/ui-button v6.0.4
|
10238
10238
|
© 2025 gizmette.com
|
@@ -10272,7 +10272,7 @@ const Ip = U.forwardRef(
|
|
10272
10272
|
}
|
10273
10273
|
) : "";
|
10274
10274
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
10275
|
-
|
10275
|
+
wo,
|
10276
10276
|
{
|
10277
10277
|
className: p("justify-center", r),
|
10278
10278
|
ref: n,
|
@@ -10293,8 +10293,8 @@ const $i = ({
|
|
10293
10293
|
defaultViewBox: o,
|
10294
10294
|
size: n,
|
10295
10295
|
title: s,
|
10296
|
-
semantic:
|
10297
|
-
...
|
10296
|
+
semantic: i = !1,
|
10297
|
+
...l
|
10298
10298
|
}) => {
|
10299
10299
|
const d = p(n, a);
|
10300
10300
|
return /* @__PURE__ */ c(se, { children: /* @__PURE__ */ N(
|
@@ -10305,11 +10305,11 @@ const $i = ({
|
|
10305
10305
|
viewBox: r || o,
|
10306
10306
|
fill: t || "currentColor",
|
10307
10307
|
role: "img",
|
10308
|
-
"aria-hidden": !
|
10308
|
+
"aria-hidden": !i,
|
10309
10309
|
focusable: !1,
|
10310
|
-
...
|
10310
|
+
...l,
|
10311
10311
|
children: [
|
10312
|
-
s &&
|
10312
|
+
s && i && /* @__PURE__ */ c("title", { children: s }),
|
10313
10313
|
e
|
10314
10314
|
]
|
10315
10315
|
}
|
@@ -10442,7 +10442,7 @@ const Np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10442
10442
|
Rp({ kind: e }),
|
10443
10443
|
Op({ kind: e, tail: o }),
|
10444
10444
|
r
|
10445
|
-
),
|
10445
|
+
), i = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
|
10446
10446
|
"ml-2": e === "left" && !o,
|
10447
10447
|
"mr-2": e === "right" && !o,
|
10448
10448
|
"ml-1": e === "left" && o,
|
@@ -10451,10 +10451,10 @@ const Np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10451
10451
|
return {
|
10452
10452
|
wrapper: n,
|
10453
10453
|
main: s,
|
10454
|
-
footer:
|
10455
|
-
copyButton:
|
10454
|
+
footer: i,
|
10455
|
+
copyButton: l
|
10456
10456
|
};
|
10457
|
-
},
|
10457
|
+
}, Li = ({
|
10458
10458
|
children: e,
|
10459
10459
|
kind: t = "left",
|
10460
10460
|
className: r,
|
@@ -10462,8 +10462,8 @@ const Np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10462
10462
|
footer: o,
|
10463
10463
|
rawFooter: n,
|
10464
10464
|
copyToClipboard: s,
|
10465
|
-
copyToClipboardFocusMode:
|
10466
|
-
copyToClipboardMode:
|
10465
|
+
copyToClipboardFocusMode: i = "system",
|
10466
|
+
copyToClipboardMode: l = "system",
|
10467
10467
|
noMaxWidth: d = !1,
|
10468
10468
|
tail: f = !1
|
10469
10469
|
}) => {
|
@@ -10494,13 +10494,13 @@ const Np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10494
10494
|
n && n
|
10495
10495
|
] }),
|
10496
10496
|
g && /* @__PURE__ */ c("div", { className: m.copyButton, children: /* @__PURE__ */ c(
|
10497
|
-
|
10497
|
+
wo,
|
10498
10498
|
{
|
10499
10499
|
noBorder: !0,
|
10500
10500
|
noBackground: !0,
|
10501
10501
|
size: "small",
|
10502
|
-
mode:
|
10503
|
-
focusMode:
|
10502
|
+
mode: l,
|
10503
|
+
focusMode: i,
|
10504
10504
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
10505
10505
|
onClick: y,
|
10506
10506
|
disabled: u,
|
@@ -10522,7 +10522,7 @@ try {
|
|
10522
10522
|
});
|
10523
10523
|
} catch {
|
10524
10524
|
}
|
10525
|
-
const Ln = "av-spinner",
|
10525
|
+
const Ln = "av-spinner", Lp = ({
|
10526
10526
|
spinnerRef: e,
|
10527
10527
|
mode: t = "system",
|
10528
10528
|
type: r = "circle",
|
@@ -10555,7 +10555,7 @@ const Ln = "av-spinner", Li = ({
|
|
10555
10555
|
] }),
|
10556
10556
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
10557
10557
|
] });
|
10558
|
-
}, Mn = "av-button", Gr = "icon", ko = "button",
|
10558
|
+
}, Mn = "av-button", Gr = "icon", ko = "button", Ja = "link", Mp = ({
|
10559
10559
|
type: e,
|
10560
10560
|
size: t,
|
10561
10561
|
labelRight: r,
|
@@ -10563,14 +10563,14 @@ const Ln = "av-spinner", Li = ({
|
|
10563
10563
|
align: o,
|
10564
10564
|
animated: n
|
10565
10565
|
}) => {
|
10566
|
-
const s = "max-h-8 py-0 px-2",
|
10566
|
+
const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
10567
10567
|
switch (e) {
|
10568
10568
|
case ko:
|
10569
|
-
case
|
10569
|
+
case Ja:
|
10570
10570
|
return p({
|
10571
10571
|
[s]: t === "small",
|
10572
|
-
[
|
10573
|
-
[
|
10572
|
+
[i]: t === "medium",
|
10573
|
+
[l]: t === "large"
|
10574
10574
|
});
|
10575
10575
|
case Gr:
|
10576
10576
|
return p("flex items-center", {
|
@@ -10591,7 +10591,7 @@ const Ln = "av-spinner", Li = ({
|
|
10591
10591
|
"h-12": t === "large" && n && (r || a)
|
10592
10592
|
});
|
10593
10593
|
}
|
10594
|
-
},
|
10594
|
+
}, Dp = ({
|
10595
10595
|
type: e,
|
10596
10596
|
size: t,
|
10597
10597
|
labelRight: r,
|
@@ -10600,9 +10600,9 @@ const Ln = "av-spinner", Li = ({
|
|
10600
10600
|
const o = "text-sm font-medium", n = "text-base font-medium", s = "text-lg font-medium";
|
10601
10601
|
switch (e) {
|
10602
10602
|
case ko:
|
10603
|
-
case
|
10603
|
+
case Ja:
|
10604
10604
|
return p({
|
10605
|
-
"text-center": e ===
|
10605
|
+
"text-center": e === Ja,
|
10606
10606
|
[o]: t === "small",
|
10607
10607
|
[n]: t === "medium",
|
10608
10608
|
[s]: t === "large"
|
@@ -10614,7 +10614,7 @@ const Ln = "av-spinner", Li = ({
|
|
10614
10614
|
[s]: t === "large" && (r || a)
|
10615
10615
|
});
|
10616
10616
|
}
|
10617
|
-
},
|
10617
|
+
}, Bp = ({
|
10618
10618
|
mode: e,
|
10619
10619
|
noBackground: t,
|
10620
10620
|
truncate: r,
|
@@ -10650,7 +10650,7 @@ const Ln = "av-spinner", Li = ({
|
|
10650
10650
|
return p("not-prose text-copy-lighter", {
|
10651
10651
|
truncate: r
|
10652
10652
|
});
|
10653
|
-
},
|
10653
|
+
}, Pp = ({
|
10654
10654
|
mode: e,
|
10655
10655
|
noBackground: t,
|
10656
10656
|
variant: r
|
@@ -10680,13 +10680,13 @@ const Ln = "av-spinner", Li = ({
|
|
10680
10680
|
if (r === "selected")
|
10681
10681
|
return "bg-action-selected-dark";
|
10682
10682
|
}
|
10683
|
-
},
|
10683
|
+
}, zp = ({
|
10684
10684
|
radius: e
|
10685
10685
|
}) => p({
|
10686
10686
|
"rounded-full": e === "large",
|
10687
10687
|
"rounded-md": e === "medium",
|
10688
10688
|
"rounded-xs": e === "small"
|
10689
|
-
}),
|
10689
|
+
}), Vp = ({
|
10690
10690
|
mode: e,
|
10691
10691
|
disabled: t,
|
10692
10692
|
variant: r
|
@@ -10716,7 +10716,7 @@ const Ln = "av-spinner", Li = ({
|
|
10716
10716
|
});
|
10717
10717
|
if (r === "selected")
|
10718
10718
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
10719
|
-
},
|
10719
|
+
}, Fp = ({
|
10720
10720
|
mode: e,
|
10721
10721
|
disabled: t,
|
10722
10722
|
variant: r
|
@@ -10746,7 +10746,7 @@ const Ln = "av-spinner", Li = ({
|
|
10746
10746
|
});
|
10747
10747
|
if (r === "selected")
|
10748
10748
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
10749
|
-
},
|
10749
|
+
}, Up = ({
|
10750
10750
|
mode: e,
|
10751
10751
|
noBorder: t,
|
10752
10752
|
variant: r
|
@@ -10776,14 +10776,14 @@ const Ln = "av-spinner", Li = ({
|
|
10776
10776
|
});
|
10777
10777
|
if (r === "selected")
|
10778
10778
|
return "border border-border-selected-dark";
|
10779
|
-
},
|
10779
|
+
}, Hp = ({
|
10780
10780
|
focusMode: e
|
10781
10781
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
10782
10782
|
"focus:outline-focus-dark": e === "dark",
|
10783
10783
|
"focus:outline-focus-light": e === "light",
|
10784
10784
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
10785
10785
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
10786
|
-
}),
|
10786
|
+
}), Gp = ({
|
10787
10787
|
mode: e,
|
10788
10788
|
raw: t,
|
10789
10789
|
iconClassName: r
|
@@ -10795,7 +10795,7 @@ const Ln = "av-spinner", Li = ({
|
|
10795
10795
|
"dark:text-copy-accent-dark": e === "system"
|
10796
10796
|
},
|
10797
10797
|
r
|
10798
|
-
),
|
10798
|
+
), jp = ({
|
10799
10799
|
animated: e
|
10800
10800
|
}) => p({
|
10801
10801
|
"transition-opacity duration-300 ease-in": e
|
@@ -10807,8 +10807,8 @@ const Ln = "av-spinner", Li = ({
|
|
10807
10807
|
focusMode: o,
|
10808
10808
|
disabled: n,
|
10809
10809
|
fullWidth: s,
|
10810
|
-
size:
|
10811
|
-
noBorder:
|
10810
|
+
size: i,
|
10811
|
+
noBorder: l,
|
10812
10812
|
labelRight: d,
|
10813
10813
|
labelLeft: f,
|
10814
10814
|
noBackground: u,
|
@@ -10819,27 +10819,27 @@ const Ln = "av-spinner", Li = ({
|
|
10819
10819
|
animated: b
|
10820
10820
|
}) => (h || (h = "primary"), r ? p(Mn, t) : p(
|
10821
10821
|
Mn,
|
10822
|
-
|
10822
|
+
Bp({
|
10823
10823
|
mode: a,
|
10824
10824
|
variant: h,
|
10825
10825
|
noBackground: u,
|
10826
10826
|
truncate: m
|
10827
10827
|
}),
|
10828
|
-
|
10829
|
-
|
10830
|
-
|
10828
|
+
Pp({ mode: a, noBackground: u, variant: h }),
|
10829
|
+
zp({ radius: y }),
|
10830
|
+
Mp({
|
10831
10831
|
type: e,
|
10832
|
-
size:
|
10832
|
+
size: i,
|
10833
10833
|
labelRight: d,
|
10834
10834
|
labelLeft: f,
|
10835
10835
|
align: g,
|
10836
10836
|
animated: b
|
10837
10837
|
}),
|
10838
|
-
|
10839
|
-
|
10840
|
-
|
10841
|
-
zp({ mode: a, variant: h, disabled: n }),
|
10838
|
+
Dp({ type: e, size: i, labelRight: d, labelLeft: f }),
|
10839
|
+
Up({ mode: a, variant: h, noBorder: l }),
|
10840
|
+
Hp({ focusMode: o }),
|
10842
10841
|
Vp({ mode: a, variant: h, disabled: n }),
|
10842
|
+
Fp({ mode: a, variant: h, disabled: n }),
|
10843
10843
|
{
|
10844
10844
|
"w-full": s,
|
10845
10845
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -10848,7 +10848,7 @@ const Ln = "av-spinner", Li = ({
|
|
10848
10848
|
"transition-[width] duration-300 ease-in-out": e === Gr && b
|
10849
10849
|
}),
|
10850
10850
|
t
|
10851
|
-
)),
|
10851
|
+
)), Wp = (e, t, r) => {
|
10852
10852
|
var a;
|
10853
10853
|
!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);
|
10854
10854
|
}, xo = U.forwardRef((e, t) => {
|
@@ -10858,7 +10858,7 @@ const Ln = "av-spinner", Li = ({
|
|
10858
10858
|
{
|
10859
10859
|
ref: t,
|
10860
10860
|
onClick: (n) => {
|
10861
|
-
|
10861
|
+
Wp(n, a, r);
|
10862
10862
|
},
|
10863
10863
|
...o
|
10864
10864
|
}
|
@@ -10874,8 +10874,8 @@ const Di = U.forwardRef(
|
|
10874
10874
|
fullWidth: o = !1,
|
10875
10875
|
className: n,
|
10876
10876
|
size: s = "medium",
|
10877
|
-
raw:
|
10878
|
-
noBorder:
|
10877
|
+
raw: i = !1,
|
10878
|
+
noBorder: l = !1,
|
10879
10879
|
variant: d = "primary",
|
10880
10880
|
truncate: f = !1,
|
10881
10881
|
radius: u = "large",
|
@@ -10887,10 +10887,10 @@ const Di = U.forwardRef(
|
|
10887
10887
|
focusMode: a,
|
10888
10888
|
fullWidth: o,
|
10889
10889
|
disabled: t,
|
10890
|
-
raw:
|
10890
|
+
raw: i,
|
10891
10891
|
className: n,
|
10892
10892
|
size: s,
|
10893
|
-
noBorder:
|
10893
|
+
noBorder: l,
|
10894
10894
|
variant: d,
|
10895
10895
|
truncate: f,
|
10896
10896
|
radius: u
|
@@ -10908,13 +10908,13 @@ const Di = U.forwardRef(
|
|
10908
10908
|
}
|
10909
10909
|
);
|
10910
10910
|
Di.displayName = "Button";
|
10911
|
-
function
|
10911
|
+
function qp() {
|
10912
10912
|
const e = $(!1);
|
10913
10913
|
return P(() => (e.current = !0, () => {
|
10914
10914
|
e.current = !1;
|
10915
10915
|
}), []), Y(() => e.current, []);
|
10916
10916
|
}
|
10917
|
-
function
|
10917
|
+
function Yp(e) {
|
10918
10918
|
return Ee(() => e.every((t) => t == null) ? () => {
|
10919
10919
|
} : (t) => {
|
10920
10920
|
e.forEach((r) => {
|
@@ -10922,7 +10922,7 @@ function qp(e) {
|
|
10922
10922
|
});
|
10923
10923
|
}, e);
|
10924
10924
|
}
|
10925
|
-
const
|
10925
|
+
const Jp = {
|
10926
10926
|
x: 0,
|
10927
10927
|
y: 0,
|
10928
10928
|
width: 0,
|
@@ -10933,31 +10933,31 @@ const Yp = {
|
|
10933
10933
|
right: 0
|
10934
10934
|
};
|
10935
10935
|
function ca(e) {
|
10936
|
-
const t =
|
10937
|
-
const
|
10938
|
-
|
10939
|
-
a.current && t() && n(
|
10936
|
+
const t = qp(), r = $(0), a = $(null), [o, n] = F(Jp), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
10937
|
+
const l = i[0];
|
10938
|
+
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
10939
|
+
a.current && t() && n(l.contentRect);
|
10940
10940
|
}));
|
10941
10941
|
}), [t]);
|
10942
10942
|
return P(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
10943
10943
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
10944
10944
|
}), [s, e]), [a, o];
|
10945
10945
|
}
|
10946
|
-
const
|
10946
|
+
const Kp = {
|
10947
10947
|
small: 24,
|
10948
10948
|
// w-6
|
10949
10949
|
medium: 32,
|
10950
10950
|
// w-8
|
10951
10951
|
large: 48
|
10952
10952
|
// w-12
|
10953
|
-
},
|
10953
|
+
}, Qp = {
|
10954
10954
|
small: 8 * 2,
|
10955
10955
|
// px-2 x 2
|
10956
10956
|
medium: 12 * 2,
|
10957
10957
|
// px-3 x 2
|
10958
10958
|
large: 16 * 2
|
10959
10959
|
// px-4 x 2
|
10960
|
-
},
|
10960
|
+
}, Xp = 2, Bi = U.forwardRef(
|
10961
10961
|
({
|
10962
10962
|
children: e,
|
10963
10963
|
disabled: t = !1,
|
@@ -10966,8 +10966,8 @@ const Jp = {
|
|
10966
10966
|
fullWidth: o = !1,
|
10967
10967
|
className: n,
|
10968
10968
|
type: s = "button",
|
10969
|
-
raw:
|
10970
|
-
noBorder:
|
10969
|
+
raw: i = !1,
|
10970
|
+
noBorder: l = !1,
|
10971
10971
|
"aria-label": d,
|
10972
10972
|
label: f,
|
10973
10973
|
size: u = "medium",
|
@@ -10987,9 +10987,9 @@ const Jp = {
|
|
10987
10987
|
focusMode: a,
|
10988
10988
|
fullWidth: o,
|
10989
10989
|
disabled: t,
|
10990
|
-
raw:
|
10990
|
+
raw: i,
|
10991
10991
|
className: n,
|
10992
|
-
noBorder:
|
10992
|
+
noBorder: l,
|
10993
10993
|
size: u,
|
10994
10994
|
labelRight: h,
|
10995
10995
|
labelLeft: m,
|
@@ -10998,11 +10998,11 @@ const Jp = {
|
|
10998
10998
|
radius: b,
|
10999
10999
|
variant: v,
|
11000
11000
|
animated: x
|
11001
|
-
}), T =
|
11001
|
+
}), T = Gp({ mode: r, raw: i, iconClassName: w }), E = jp({ animated: x }), [k, R] = ca(), [S, A] = ca(), [L, D] = ca(), z = $(0), M = $(null), W = Yp([I, M]);
|
11002
11002
|
return ge(() => {
|
11003
|
-
L && L.current && x && (z.current = D.width +
|
11004
|
-
}, [D, L, u,
|
11005
|
-
M && M.current && x && (h && k && R.width > 0 ? (k.current && (k.current.style.opacity = "100"), M.current.style.width = `${R.width + z.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + z.current}px`) : (k.current && (k.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${
|
11003
|
+
L && L.current && x && (z.current = D.width + Qp[u] + (l ? 0 : Xp));
|
11004
|
+
}, [D, L, u, l, x]), ge(() => {
|
11005
|
+
M && M.current && x && (h && k && R.width > 0 ? (k.current && (k.current.style.opacity = "100"), M.current.style.width = `${R.width + z.current}px`) : m && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + z.current}px`) : (k.current && (k.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Kp[u]}px`));
|
11006
11006
|
}, [
|
11007
11007
|
R,
|
11008
11008
|
h,
|
@@ -11065,7 +11065,7 @@ try {
|
|
11065
11065
|
});
|
11066
11066
|
} catch {
|
11067
11067
|
}
|
11068
|
-
const
|
11068
|
+
const Zp = U.forwardRef(
|
11069
11069
|
({
|
11070
11070
|
children: e,
|
11071
11071
|
mode: t = "system",
|
@@ -11103,10 +11103,10 @@ const Xp = U.forwardRef(
|
|
11103
11103
|
) });
|
11104
11104
|
}
|
11105
11105
|
);
|
11106
|
-
|
11107
|
-
const
|
11106
|
+
Zp.displayName = "ButtonSort";
|
11107
|
+
const eg = 200, tg = ({
|
11108
11108
|
string: e,
|
11109
|
-
idealLength: t =
|
11109
|
+
idealLength: t = eg
|
11110
11110
|
}) => {
|
11111
11111
|
if (e.length <= t)
|
11112
11112
|
return { string: e, isTruncated: !1 };
|
@@ -11117,7 +11117,7 @@ const Zp = 200, eg = ({
|
|
11117
11117
|
string: e.slice(0, t + r),
|
11118
11118
|
isTruncated: !0
|
11119
11119
|
};
|
11120
|
-
},
|
11120
|
+
}, rg = ({
|
11121
11121
|
children: e,
|
11122
11122
|
length: t = 200,
|
11123
11123
|
mode: r = "system",
|
@@ -11126,21 +11126,21 @@ const Zp = 200, eg = ({
|
|
11126
11126
|
const [o, n] = F(!1);
|
11127
11127
|
if (typeof e != "string")
|
11128
11128
|
return e;
|
11129
|
-
const { string: s, isTruncated:
|
11129
|
+
const { string: s, isTruncated: i } = tg({
|
11130
11130
|
string: e,
|
11131
11131
|
idealLength: t
|
11132
11132
|
});
|
11133
11133
|
return /* @__PURE__ */ N("span", { style: { wordBreak: "break-word" }, children: [
|
11134
11134
|
o ? e : s,
|
11135
|
-
|
11135
|
+
i && /* @__PURE__ */ c(
|
11136
11136
|
Di,
|
11137
11137
|
{
|
11138
11138
|
mode: r,
|
11139
11139
|
focusMode: a,
|
11140
11140
|
className: "ml-2",
|
11141
11141
|
size: "small",
|
11142
|
-
onClick: (
|
11143
|
-
|
11142
|
+
onClick: (l) => {
|
11143
|
+
l.preventDefault(), n(!o);
|
11144
11144
|
},
|
11145
11145
|
children: o ? "less..." : "more..."
|
11146
11146
|
}
|
@@ -11160,22 +11160,22 @@ try {
|
|
11160
11160
|
});
|
11161
11161
|
} catch {
|
11162
11162
|
}
|
11163
|
-
const
|
11164
|
-
|
11163
|
+
const ag = ({ content: e }) => /* @__PURE__ */ c(
|
11164
|
+
Li,
|
11165
11165
|
{
|
11166
11166
|
tail: !0,
|
11167
11167
|
kind: "right",
|
11168
11168
|
copyToClipboard: e,
|
11169
11169
|
copyToClipboardFocusMode: "light",
|
11170
11170
|
className: "mt-3",
|
11171
|
-
children: /* @__PURE__ */ c(
|
11171
|
+
children: /* @__PURE__ */ c(rg, { mode: "light", focusMode: "light", children: e })
|
11172
11172
|
}
|
11173
|
-
),
|
11173
|
+
), Bn = 2, og = es(
|
11174
11174
|
() => import(
|
11175
11175
|
/* webpackChunkName: "LazyMessageAssistant" */
|
11176
|
-
"./ChatBubbleAssistant.
|
11176
|
+
"./ChatBubbleAssistant.C-koz0tD.js"
|
11177
11177
|
).then((e) => e.ChatBubbleAssistant)
|
11178
|
-
),
|
11178
|
+
), ng = U.memo(
|
11179
11179
|
({
|
11180
11180
|
role: e,
|
11181
11181
|
content: t,
|
@@ -11183,10 +11183,10 @@ const rg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11183
11183
|
toolName: a
|
11184
11184
|
}) => {
|
11185
11185
|
const {
|
11186
|
-
state: { restoring: o }
|
11187
|
-
} = X(
|
11188
|
-
return e === Cf && t ? /* @__PURE__ */ c(
|
11189
|
-
|
11186
|
+
state: { restoring: o, streaming: n }
|
11187
|
+
} = X(_e);
|
11188
|
+
return e === Cf && t ? /* @__PURE__ */ c(ag, { content: t }) : n && (e === un || e === pa) && (!t || t && t.length < Bn) ? /* @__PURE__ */ c(Li, { tail: !0, children: /* @__PURE__ */ c(Lp, { type: "dots" }) }) : (e === un || e === pa) && t && t.length >= Bn ? /* @__PURE__ */ c(Zn, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
|
11189
|
+
og,
|
11190
11190
|
{
|
11191
11191
|
role: e,
|
11192
11192
|
content: t,
|
@@ -11194,46 +11194,41 @@ const rg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11194
11194
|
toolName: a,
|
11195
11195
|
smooth: !o
|
11196
11196
|
}
|
11197
|
-
) }) :
|
11197
|
+
) }) : null;
|
11198
11198
|
}
|
11199
|
-
),
|
11200
|
-
const {
|
11201
|
-
|
11202
|
-
|
11203
|
-
|
11204
|
-
|
11205
|
-
|
11206
|
-
|
11207
|
-
|
11208
|
-
|
11209
|
-
|
11210
|
-
return i.
|
11211
|
-
case "tool-invocation":
|
11212
|
-
if (i.toolInvocation.state === "result" || i.toolInvocation.state === "partial-call" || i.toolInvocation.state === "call")
|
11213
|
-
return o = ((d = i == null ? void 0 : i.toolInvocation) == null ? void 0 : d.toolName) || "", `
|
11199
|
+
), sg = () => {
|
11200
|
+
const { messages: e } = _t();
|
11201
|
+
return e && e.length > 0 ? /* @__PURE__ */ c("div", { className: "space-y-6 mt-2 @container", children: e == null ? void 0 : e.map((t, r) => {
|
11202
|
+
let a;
|
11203
|
+
const o = `${r}-${t.role}`, n = t.parts.map((i) => {
|
11204
|
+
var l;
|
11205
|
+
switch (i.type) {
|
11206
|
+
case "text":
|
11207
|
+
return i.text;
|
11208
|
+
case "tool-invocation":
|
11209
|
+
if (i.toolInvocation.state === "result" || i.toolInvocation.state === "partial-call" || i.toolInvocation.state === "call")
|
11210
|
+
return a = ((l = i == null ? void 0 : i.toolInvocation) == null ? void 0 : l.toolName) || "", `
|
11214
11211
|
`;
|
11215
|
-
|
11216
|
-
|
11212
|
+
}
|
11213
|
+
}), s = n && n.length > 0 ? n.filter(Boolean).join(`
|
11217
11214
|
`) : void 0;
|
11218
|
-
|
11219
|
-
|
11220
|
-
|
11221
|
-
|
11222
|
-
|
11223
|
-
|
11224
|
-
|
11225
|
-
|
11226
|
-
|
11227
|
-
|
11228
|
-
|
11229
|
-
|
11230
|
-
] }) : null;
|
11231
|
-
}, sg = () => {
|
11215
|
+
return /* @__PURE__ */ c(
|
11216
|
+
ng,
|
11217
|
+
{
|
11218
|
+
role: t.role,
|
11219
|
+
content: s,
|
11220
|
+
toolName: a,
|
11221
|
+
annotations: t.annotations && t.annotations.length > 0 ? t.annotations[0] : null
|
11222
|
+
},
|
11223
|
+
o
|
11224
|
+
);
|
11225
|
+
}) }) : null;
|
11226
|
+
}, ig = () => {
|
11232
11227
|
const { isAuthenticated: e } = Ne(), { ref: t, inViewport: r } = gc(), a = $(null), o = $(null), {
|
11233
|
-
state: { footerPosition: n, footerHeight: s, footerOffset:
|
11234
|
-
} = X(
|
11235
|
-
state: { loading:
|
11236
|
-
} = X(
|
11228
|
+
state: { footerPosition: n, footerHeight: s, footerOffset: i }
|
11229
|
+
} = X(fo), {
|
11230
|
+
state: { loading: l }
|
11231
|
+
} = X(_e), d = $(0), f = ul({
|
11237
11232
|
isAuthenticated: e,
|
11238
11233
|
extraClass: "rounded-b-md relative"
|
11239
11234
|
}), u = Y(() => {
|
@@ -11243,13 +11238,13 @@ const rg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11243
11238
|
});
|
11244
11239
|
}, []);
|
11245
11240
|
return P(() => {
|
11246
|
-
|
11247
|
-
}, [
|
11248
|
-
d.current = n === Wt ? s +
|
11249
|
-
}, [n, s,
|
11241
|
+
l && u();
|
11242
|
+
}, [l, u]), P(() => {
|
11243
|
+
d.current = n === Wt ? s + i + Jn + fl : 0;
|
11244
|
+
}, [n, s, i]), /* @__PURE__ */ N(se, { children: [
|
11250
11245
|
/* @__PURE__ */ N("div", { className: f, ref: a, children: [
|
11251
11246
|
/* @__PURE__ */ c(hl, {}),
|
11252
|
-
/* @__PURE__ */ c(
|
11247
|
+
/* @__PURE__ */ c(sg, {}),
|
11253
11248
|
/* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" }),
|
11254
11249
|
/* @__PURE__ */ c("div", { ref: o, className: "pt-20" })
|
11255
11250
|
] }),
|
@@ -11267,7 +11262,7 @@ function Pi({
|
|
11267
11262
|
isComponent: e = !1,
|
11268
11263
|
headerHeight: t = 0
|
11269
11264
|
}) {
|
11270
|
-
const { user: r, getAccessToken: a } = Ne(), [o, n] = F(`${Mo}px`), [s,
|
11265
|
+
const { user: r, getAccessToken: a } = Ne(), [o, n] = F(`${Mo}px`), [s, i] = bs(), [l, d] = F(ot()), [f, u] = F([]), [h] = gt({
|
11271
11266
|
key: pt + Yn,
|
11272
11267
|
initialValue: ""
|
11273
11268
|
}), [m] = gt({
|
@@ -11307,32 +11302,32 @@ function Pi({
|
|
11307
11302
|
}, 500);
|
11308
11303
|
}), P(() => {
|
11309
11304
|
_ && _.provider && I({
|
11310
|
-
type:
|
11305
|
+
type: ro,
|
11311
11306
|
payload: {
|
11312
11307
|
provider: _.provider
|
11313
11308
|
}
|
11314
11309
|
});
|
11315
11310
|
}, [_]), P(() => {
|
11316
11311
|
if (g.footerPosition === "FOOTER_BOTTOM") {
|
11317
|
-
const T = `calc(${
|
11312
|
+
const T = `calc(${i.height}px + 20px)`;
|
11318
11313
|
n(
|
11319
11314
|
`calc(100svh - ${t}px - ${T} - ${g.footerHeight}px - ${g.footerOffset}px - ${Jn}px)`
|
11320
11315
|
);
|
11321
11316
|
} else
|
11322
11317
|
n(`${Mo}px`);
|
11323
|
-
}, [g,
|
11318
|
+
}, [g, i, t]), /* @__PURE__ */ c(
|
11324
11319
|
ir.Provider,
|
11325
11320
|
{
|
11326
11321
|
value: {
|
11327
11322
|
state: b,
|
11328
11323
|
dispatch: v
|
11329
11324
|
},
|
11330
|
-
children: /* @__PURE__ */ c(
|
11331
|
-
|
11325
|
+
children: /* @__PURE__ */ c(fo.Provider, { value: { state: g, dispatch: y }, children: /* @__PURE__ */ c(
|
11326
|
+
uo.Provider,
|
11332
11327
|
{
|
11333
11328
|
value: { state: w, dispatch: x },
|
11334
11329
|
children: /* @__PURE__ */ c(
|
11335
|
-
|
11330
|
+
_e.Provider,
|
11336
11331
|
{
|
11337
11332
|
value: {
|
11338
11333
|
state: C,
|
@@ -11344,7 +11339,7 @@ function Pi({
|
|
11344
11339
|
Tf,
|
11345
11340
|
{
|
11346
11341
|
value: {
|
11347
|
-
id:
|
11342
|
+
id: l,
|
11348
11343
|
api: `${$s}/api/generate`,
|
11349
11344
|
initialMessages: f,
|
11350
11345
|
experimental_throttle: 300,
|
@@ -11360,8 +11355,8 @@ function Pi({
|
|
11360
11355
|
},
|
11361
11356
|
children: [
|
11362
11357
|
/* @__PURE__ */ N("div", { className: qn, children: [
|
11363
|
-
/* @__PURE__ */ c(
|
11364
|
-
/* @__PURE__ */ c(
|
11358
|
+
/* @__PURE__ */ c(Na, { containerId: "toggle-save" }),
|
11359
|
+
/* @__PURE__ */ c(Na, { containerId: "toggle-provider" })
|
11365
11360
|
] }),
|
11366
11361
|
/* @__PURE__ */ c(
|
11367
11362
|
uc,
|
@@ -11388,7 +11383,7 @@ function Pi({
|
|
11388
11383
|
style: {
|
11389
11384
|
height: o
|
11390
11385
|
},
|
11391
|
-
children: /* @__PURE__ */ c(
|
11386
|
+
children: /* @__PURE__ */ c(ig, {})
|
11392
11387
|
}
|
11393
11388
|
),
|
11394
11389
|
/* @__PURE__ */ c(vm, { isComponent: e })
|
@@ -11403,11 +11398,11 @@ function Pi({
|
|
11403
11398
|
);
|
11404
11399
|
}
|
11405
11400
|
Pi.displayName = "App";
|
11406
|
-
const
|
11401
|
+
const mg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Pi }, Symbol.toStringTag, { value: "Module" }));
|
11407
11402
|
export {
|
11408
|
-
|
11409
|
-
|
11403
|
+
mg as App,
|
11404
|
+
_e as ChatContext,
|
11410
11405
|
gt as E,
|
11411
|
-
|
11406
|
+
Li as Te,
|
11412
11407
|
Ys as getDefaultExportFromCjs
|
11413
11408
|
};
|