@versini/sassysaint 8.130.2 → 8.130.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.Cz30jls7.js → AboutChangelog.mN52eYa6.js} +2 -2
- package/dist/chunks/{AboutEntry.CmNF75xu.js → AboutEntry.Co65kh5i.js} +8 -8
- package/dist/chunks/{App.CgCfXEpK.js → App.BzuWf4lx.js} +213 -213
- package/dist/chunks/{BubbleActions.BDKwFg1N.js → BubbleActions.DlDHJrYB.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.CFggTYm3.js → ButtonIconDelete.BL5s0VGd.js} +4 -4
- package/dist/chunks/{Chart.6AuhMRBT.js → Chart.C6eVdFj9.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CM6PsxH0.js → ChatBubbleAssistant.C8_uMynh.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.CrQO0eaq.js → ChatBubbleUser.CTMbbRxr.js} +4 -4
- package/dist/chunks/{GenericPanel.B4uuSCfr.js → GenericPanel.CVT6hD1b.js} +1 -1
- package/dist/chunks/{HistoryEntry.Bv12v7SQ.js → HistoryEntry.9Ytq4UZ2.js} +24 -24
- package/dist/chunks/{LoginEntry.DRAlXIxv.js → LoginEntry.vIGz-Iz8.js} +4 -4
- package/dist/chunks/{LogoEntry.BbPeqqKp.js → LogoEntry.DnVKIHym.js} +1 -1
- package/dist/chunks/{MemoriesEntry.C_Pm_SXR.js → MemoriesEntry.BMnrCzPP.js} +6 -6
- package/dist/chunks/{ProfileEntry.BlqKLXUG.js → ProfileEntry.Bh-oJdu6.js} +6 -6
- package/dist/chunks/{SettingsEntry.win0KYvM.js → SettingsEntry.vtZtGtrS.js} +14 -14
- package/dist/chunks/{UsageEntry.CWReA2Rf.js → UsageEntry.AVpqOs3U.js} +6 -6
- package/dist/chunks/{_baseUniq.CfCdrgpj.js → _baseUniq.CbLbRIRo.js} +1 -1
- package/dist/chunks/{arc.BFX8hz_1.js → arc.BrhpJFIK.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.iQed79aG.js → architecture-U656AL7Q.BuOlCzC3.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.v5Pd09ZT.js → architectureDiagram-VXUJARFQ.C37zRBHK.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.7tPSnpTB.js → blockDiagram-VD42YOAC.C1S-alv-.js} +5 -5
- package/dist/chunks/{browser.DEANJfyg.js → browser.CX02wxQL.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.HKHJLgH7.js → c4Diagram-YG6GDRKO.Bc6K1yZH.js} +2 -2
- package/dist/chunks/{channel.FLipM_Rf.js → channel.B_TlFdpO.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.CqW425hZ.js → chunk-4BX2VUAB.DvJCcmrM.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Uhupgd54.js → chunk-55IACEB6.vaS7gBVW.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.B6bKNxWw.js → chunk-B4BG7PRW.5_hjDpnX.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.B82jj-td.js → chunk-DI55MBZ5.DM8y1fp8.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.C2rJhllK.js → chunk-FMBD7UC4.BUHH3M-9.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.BFFmJcS6.js → chunk-QN33PNHL.DKzPjOtx.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.CsdlgkwA.js → chunk-QZHKN3VN.B0w9rZUE.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.BHuTyPSZ.js → chunk-TZMSLE5B.Bd6S4tB1.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.vI03DShC.js → classDiagram-2ON5EDUG.BGDO5KEI.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.vI03DShC.js → classDiagram-v2-WZHVMYZB.BGDO5KEI.js} +2 -2
- package/dist/chunks/{clone.D4-Fbnht.js → clone.COBAxcoo.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.1E2z-Vj_.js → cose-bilkent-S5V4N54A.BPw8_6Kh.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.CQYuM_p2.js → dagre-6UL2VRFP.20DIOl1G.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.nkmPTjul.js → diagram-PSM6KHXK.CLHht6y3.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.Cv70QgV5.js → diagram-QEK2KX5R.BiWEXV42.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.pTw7XyiD.js → diagram-S2PKOQOG.BUBADu9k.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.dJrgxklb.js → erDiagram-Q2GNP2WA.Bz3y9kaJ.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CE54UNWr.js → flowDiagram-NV44I4VS.BpMpgF2j.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.Du78Za0n.js → ganttDiagram-JELNMOA3.BzBShN2d.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.HOu9V0Uh.js → gitGraph-F6HP7TQM.0ARVYLV7.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.QvoeOEWe.js → gitGraphDiagram-NY62KEGX.B1uA8lOS.js} +4 -4
- package/dist/chunks/{graph.lZe07XYi.js → graph.Dsc_8Dn1.js} +2 -2
- package/dist/chunks/{index.BFCs0oGp.js → index.B6PzCbBe.js} +1 -1
- package/dist/chunks/{index.DM3BFraR.js → index.BMIB_Zod.js} +1 -1
- package/dist/chunks/{index._DBtG8MS.js → index.BmTV5oqH.js} +7 -7
- package/dist/chunks/{index.C6r_YrrZ.js → index.C9CSghRZ.js} +1 -1
- package/dist/chunks/{index.DxUMrxge.js → index.D0zrLB0k.js} +3 -3
- package/dist/chunks/{index.BetYk8Q2.js → index.D6WxjRjL.js} +2 -2
- package/dist/chunks/{index.rGD-VTnR.js → index.D__Zo1FV.js} +3 -3
- package/dist/chunks/{index.Dkf753Ec.js → index.Dush1xMh.js} +1 -1
- package/dist/chunks/{index.CCFV68ir.js → index.SMq29E41.js} +2 -2
- package/dist/chunks/index.orV6HL9H.js +90 -0
- package/dist/chunks/{index.DUI67PCL.js → index.q-oduPqd.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.Nah8Z7UT.js → info-NVLQJR56.gU9Xdwqe.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.BJzvgHNP.js → infoDiagram-WHAUD3N6.DRHw8qEO.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BDy7Alca.js → journeyDiagram-XKPGCS4Q.BOM53mgw.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.BbUhp8wn.js → kanban-definition-3W4ZIXB7.BaK2AImd.js} +2 -2
- package/dist/chunks/{layout.CsIrlMLu.js → layout.Tguav9T0.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.CJtUphRC.js → mermaid-parser.core.DbpoZpPR.js} +10 -10
- package/dist/chunks/{min.DA_9VUhF.js → min.BAaO9A9F.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.HnPne6Hm.js → mindmap-definition-VGOIOE7T.Xp_kyfqQ.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.CV5uo6GK.js → packet-BFZMPI3H.BSyTYH-f.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.DJ6_wEJq.js → pie-7BOR55EZ.CK2-0CYR.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.D6cG-wcD.js → pieDiagram-ADFJNKIX.B2n2zmuk.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.BCAEH_3w.js → quadrantDiagram-AYHSOK5B.Dbd9-4On.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.C665g810.js → radar-NHE76QYJ.eMkyGnWa.js} +1 -1
- package/dist/chunks/{rehype-mermaid.CbSnXNxz.js → rehype-mermaid.rIU32Dik.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.nrYxgLYh.js → requirementDiagram-UZGBJVZJ.CQ9I4jvK.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BKH7c7kv.js → sankeyDiagram-TZEHDZUN.e7U_KVMT.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.CudVdbOg.js → sequenceDiagram-WL72ISMW.CufwCjpC.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.XDcYlWpR.js → stateDiagram-FKZM4ZOC.CNKMf8XJ.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.DWNY230o.js → stateDiagram-v2-4FDKWEC3.NJuWgjLq.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.1pAihmc9.js → timeline-definition-IT6M3QCI.Jxi4u-bh.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DCVmgTQF.js → treemap-KMMF4GRG.AV6F-r1X.js} +1 -1
- package/dist/chunks/{useMarkdown.DA3W24b5.js → useMarkdown.DDZBGaMN.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.DoMahPwV.js → xychartDiagram-PRI3JC2R.XOsfF5-U.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/chunks/index.Bi0z4EE1.js +0 -90
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as g, jsxs as L, Fragment as rt } from "react/jsx-runtime";
|
|
2
|
-
import { ACTION_SORT as Tu, ACTION_SEARCH as Iu, ACTION_RESET_PROMPT as ti, ACTION_TOGGLE_PROMPT as ni, LOCAL_STORAGE_PREFIX as Te, LOCAL_STORAGE_CHAT_ID as rr, n as Ue, useChat as Au, DEFAULT_ICON_ACTION_SIZE as Xe, isTauri as mn, useUserPreferences as bt, serverUrl as ri, useEntitlements as Uo, useSaveChat as Ru, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ou, F as Ut, LOCAL_STORAGE_REASONING_DISCLOSURE as Nu, useQueryClient as oi, graphQLRequest as Wr, CHATS_QUERY_KEY as ys, SERVICE_TYPES as Gr, PROMPT_EDITABLE_AREA_CLASSNAME as ku, PROMPT_CLASSNAME as Mu,
|
|
2
|
+
import { ACTION_SORT as Tu, ACTION_SEARCH as Iu, ACTION_RESET_PROMPT as ti, ACTION_TOGGLE_PROMPT as ni, LOCAL_STORAGE_PREFIX as Te, LOCAL_STORAGE_CHAT_ID as rr, n as Ue, useChat as Au, DEFAULT_ICON_ACTION_SIZE as Xe, isTauri as mn, useUserPreferences as bt, serverUrl as ri, useEntitlements as Uo, useSaveChat as Ru, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ou, F as Ut, LOCAL_STORAGE_REASONING_DISCLOSURE as Nu, useQueryClient as oi, graphQLRequest as Wr, CHATS_QUERY_KEY as ys, SERVICE_TYPES as Gr, PROMPT_EDITABLE_AREA_CLASSNAME as ku, PROMPT_CLASSNAME as Mu, z as si, ERROR_MESSAGE as Pu, o as Wt, n$1 as pr, v as Du, INPUT_BOTTOM_OFFSET_IPHONE as $u, INPUT_BOTTOM_OFFSET_IPAD as Lu, INPUT_BOTTOM_OFFSET as ai, INPUT_BOTTOM_OFFSET_EXTRA as Yr, getLayoutPaddingClass as bo, canEvaluateModels as bs, W as zu, a as Fu, i as Zu, s as Uu, x as Bu, p as Jr, setNewProvider as ws, LOCAL_STORAGE_KEYWORD_MATCH_ALL as ju, LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY as Hu, LOCAL_STORAGE_HISTORY_WITH_SHARED_ONLY as Vu, useChatsHistory as Wu, y as wo, useServerCapabilities as Gu, getMessageContaintWrapperClass as Yu, UI_FOOTER_BUFFER as ii, UI_BUTTON_SCROLL_BUFFER as Ju, UI_DEFAULT_MAIN_HEIGHT as _s, Z as Ku, applyOledMode as qu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Xu, B as Qu, LOCAL_STORAGE_SORT as ed, LOCAL_STORAGE_SEARCH as td, LOCAL_STORAGE_OLED_MODE as nd, LOCAL_STORAGE_FULL_SCREEN as rd, LOCAL_STORAGE_SORT_TIMESTAMP as od, LOCAL_STORAGE_SORT_TOKEN_USAGE as sd } from "./index.BmTV5oqH.js";
|
|
3
3
|
import * as w from "react";
|
|
4
|
-
import Ve, { useSyncExternalStore as or, useCallback as V, useEffect as
|
|
5
|
-
import { SortDirections as
|
|
4
|
+
import Ve, { useSyncExternalStore as or, useCallback as V, useEffect as B, useRef as G, useState as U, createContext as ci, useContext as de, useMemo as Ie, useId as li, useLayoutEffect as xn, cloneElement as ui, Suspense as _o, lazy as wt, useReducer as Un } from "react";
|
|
5
|
+
import { SortDirections as Bt, ChatContext as Be, ButtonIcon as Gt, useTheme as je, IconAddLight as ad, IconCloseLight as id, IconEditLight as cd, Button as dn, IconLockedLight as ld, IconUnlockedLight as ud, IconSelected as dd, IconUnSelected as fd, IconNext as pd, PromptsContext as Bo, IconBookSparklesLight as md, IconRewrite as hd, IconProofread as gd, IconMagic as vd, IconLightBulbLight as yd, IconSendLight as bd, CARDS as me, IconUploadLight as wd, INPUT_PLACEHOLDER_TEXT_IN_SESSION as di, INPUT_PLACEHOLDER_TEXT_MORNING as _d, INPUT_PLACEHOLDER_TEXT_TODAY as Ed, INPUT_PLACEHOLDER_TEXT_AFTERNOON as Sd, INPUT_PLACEHOLDER_TEXT_EVENING as Cd, INPUT_PLACEHOLDER_TEXT_NIGHT as xd, INPUT_PLACEHOLDER_TEXT_DEFAULT as Td, IconClose as Id, AppContext as Tn, useUniqueId as Ad, CLIPBOARD_PROMPT as Es, FOOTER_DISCLAIMERS as Ss, useResizeObserver as fi, APP_SET_FOOTER_HEIGHT as Rd, FOOTER_TOP as Eo, FOOTER_BOTTOM as fn, APP_SET_FOOTER_POSITION as Kr, IconOpenAI as Od, IconAnthropic as Nd, IconGoogleGemini as kd, TOAST_PROVIDER_CHANGED as Cs, HistoryContext as pi, LOG_OUT as xs, IconBack as Bn, IconSliders as Md, IconHistory as Pd, IconChart as Dd, IconSettings as $d, Logo as Ld, appReducer as zd, APP_SET_OLED_MODE as Fd, APP_SET_FULL_SCREEN as Zd, APP_SET_THEME_PALETTE as Ud } from "./LogoEntry.DnVKIHym.js";
|
|
6
6
|
import * as mi from "react-dom";
|
|
7
|
-
import
|
|
7
|
+
import Bd, { createPortal as jd } from "react-dom";
|
|
8
8
|
import D, { clsx as pt } from "clsx";
|
|
9
9
|
import { useFloatingParentNodeId as Hd, FloatingTree as Vd, useMergeRefs as Wd, FloatingNode as Gd, FloatingPortal as Yd, FloatingOverlay as Jd, FloatingFocusManager as Kd, useFloatingNodeId as qd, useFloating as Xd, useClick as Qd, useDismiss as ef, useRole as tf, useInteractions as nf } from "@floating-ui/react";
|
|
10
10
|
function hi(e, t) {
|
|
@@ -40,7 +40,7 @@ function Ne({ key: e, initialValue: t }) {
|
|
|
40
40
|
}, [
|
|
41
41
|
o
|
|
42
42
|
]);
|
|
43
|
-
return
|
|
43
|
+
return B(() => {
|
|
44
44
|
try {
|
|
45
45
|
Is(e) === null && typeof t < "u" && Ts(e, t);
|
|
46
46
|
} catch (a) {
|
|
@@ -208,7 +208,7 @@ function Ti(e) {
|
|
|
208
208
|
function mf(e, t) {
|
|
209
209
|
return typeof t == "bigint" ? t.toString() : t;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function jo(e) {
|
|
212
212
|
return {
|
|
213
213
|
get value() {
|
|
214
214
|
{
|
|
@@ -262,7 +262,7 @@ const Ii = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
|
|
|
262
262
|
function mr(e) {
|
|
263
263
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
264
264
|
}
|
|
265
|
-
const gf =
|
|
265
|
+
const gf = jo(() => {
|
|
266
266
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
267
267
|
return !1;
|
|
268
268
|
try {
|
|
@@ -423,13 +423,13 @@ function At(e, t) {
|
|
|
423
423
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function jn(e) {
|
|
427
427
|
return typeof e == "string" ? e : e?.message;
|
|
428
428
|
}
|
|
429
429
|
function ht(e, t, n) {
|
|
430
430
|
const r = { ...e, path: e.path ?? [] };
|
|
431
431
|
if (!e.message) {
|
|
432
|
-
const o =
|
|
432
|
+
const o = jn(e.inst?._zod.def?.error?.(e)) ?? jn(t?.error?.(e)) ?? jn(n.customError?.(e)) ?? jn(n.localeError?.(e)) ?? "Invalid input";
|
|
433
433
|
r.message = o;
|
|
434
434
|
}
|
|
435
435
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
@@ -526,10 +526,10 @@ const Af = (e) => (t, n, r, o) => {
|
|
|
526
526
|
error: new e(s.issues.map((i) => ht(i, o, mt())))
|
|
527
527
|
} : { success: !0, data: s.value };
|
|
528
528
|
}, Nf = /* @__PURE__ */ ki(Oi), kf = /^[cC][^\s-]{8,}$/, Mf = /^[0-9a-z]+$/, Pf = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Df = /^[0-9a-vA-V]{20}$/, $f = /^[A-Za-z0-9]{27}$/, Lf = /^[a-zA-Z0-9_-]{21}$/, zf = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ff = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ls = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/, Zf = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Uf = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
529
|
-
function
|
|
529
|
+
function Bf() {
|
|
530
530
|
return new RegExp(Uf, "u");
|
|
531
531
|
}
|
|
532
|
-
const
|
|
532
|
+
const jf = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Hf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, Vf = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Wf = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Gf = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Mi = /^[A-Za-z0-9_-]*$/, Yf = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, Jf = /^\+(?:[0-9]){6,14}[0-9]$/, Pi = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Kf = /* @__PURE__ */ new RegExp(`^${Pi}$`);
|
|
533
533
|
function Di(e) {
|
|
534
534
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
535
535
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -973,7 +973,7 @@ const bp = {
|
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
975
|
}), Cp = /* @__PURE__ */ C("$ZodEmoji", (e, t) => {
|
|
976
|
-
t.pattern ?? (t.pattern =
|
|
976
|
+
t.pattern ?? (t.pattern = Bf()), ae.init(e, t);
|
|
977
977
|
}), xp = /* @__PURE__ */ C("$ZodNanoID", (e, t) => {
|
|
978
978
|
t.pattern ?? (t.pattern = Lf), ae.init(e, t);
|
|
979
979
|
}), Tp = /* @__PURE__ */ C("$ZodCUID", (e, t) => {
|
|
@@ -995,7 +995,7 @@ const bp = {
|
|
|
995
995
|
}), Pp = /* @__PURE__ */ C("$ZodISODuration", (e, t) => {
|
|
996
996
|
t.pattern ?? (t.pattern = zf), ae.init(e, t);
|
|
997
997
|
}), Dp = /* @__PURE__ */ C("$ZodIPv4", (e, t) => {
|
|
998
|
-
t.pattern ?? (t.pattern =
|
|
998
|
+
t.pattern ?? (t.pattern = jf), ae.init(e, t), e._zod.onattach.push((n) => {
|
|
999
999
|
const r = n._zod.bag;
|
|
1000
1000
|
r.format = "ipv4";
|
|
1001
1001
|
});
|
|
@@ -1083,10 +1083,10 @@ const Up = /* @__PURE__ */ C("$ZodBase64URL", (e, t) => {
|
|
|
1083
1083
|
continue: !t.abort
|
|
1084
1084
|
});
|
|
1085
1085
|
};
|
|
1086
|
-
}),
|
|
1086
|
+
}), Bp = /* @__PURE__ */ C("$ZodE164", (e, t) => {
|
|
1087
1087
|
t.pattern ?? (t.pattern = Jf), ae.init(e, t);
|
|
1088
1088
|
});
|
|
1089
|
-
function
|
|
1089
|
+
function jp(e, t = null) {
|
|
1090
1090
|
try {
|
|
1091
1091
|
const n = e.split(".");
|
|
1092
1092
|
if (n.length !== 3)
|
|
@@ -1102,7 +1102,7 @@ function Bp(e, t = null) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
const Hp = /* @__PURE__ */ C("$ZodJWT", (e, t) => {
|
|
1104
1104
|
ae.init(e, t), e._zod.check = (n) => {
|
|
1105
|
-
|
|
1105
|
+
jp(n.value, t.alg) || n.issues.push({
|
|
1106
1106
|
code: "invalid_format",
|
|
1107
1107
|
format: "jwt",
|
|
1108
1108
|
input: n.value,
|
|
@@ -1199,7 +1199,7 @@ function Fs(e, t, n, r) {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
const qp = /* @__PURE__ */ C("$ZodObject", (e, t) => {
|
|
1201
1201
|
ne.init(e, t);
|
|
1202
|
-
const n =
|
|
1202
|
+
const n = jo(() => {
|
|
1203
1203
|
const u = Object.keys(t.shape);
|
|
1204
1204
|
for (const f of u)
|
|
1205
1205
|
if (!(t.shape[f] instanceof ne))
|
|
@@ -1373,7 +1373,7 @@ const Ui = /* @__PURE__ */ C("$ZodUnion", (e, t) => {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
return o;
|
|
1375
1375
|
});
|
|
1376
|
-
const r =
|
|
1376
|
+
const r = jo(() => {
|
|
1377
1377
|
const o = t.options, s = /* @__PURE__ */ new Map();
|
|
1378
1378
|
for (const i of o) {
|
|
1379
1379
|
const a = i._zod.propValues[t.discriminator];
|
|
@@ -1558,10 +1558,10 @@ const em = /* @__PURE__ */ C("$ZodRecord", (e, t) => {
|
|
|
1558
1558
|
if (n.value === void 0)
|
|
1559
1559
|
return n.value = t.defaultValue, n;
|
|
1560
1560
|
const o = t.innerType._zod.run(n, r);
|
|
1561
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1561
|
+
return o instanceof Promise ? o.then((s) => Bs(s, t)) : Bs(o, t);
|
|
1562
1562
|
};
|
|
1563
1563
|
});
|
|
1564
|
-
function
|
|
1564
|
+
function Bs(e, t) {
|
|
1565
1565
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1566
1566
|
}
|
|
1567
1567
|
const im = /* @__PURE__ */ C("$ZodPrefault", (e, t) => {
|
|
@@ -1572,10 +1572,10 @@ const im = /* @__PURE__ */ C("$ZodPrefault", (e, t) => {
|
|
|
1572
1572
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
1573
1573
|
}), e._zod.parse = (n, r) => {
|
|
1574
1574
|
const o = t.innerType._zod.run(n, r);
|
|
1575
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1575
|
+
return o instanceof Promise ? o.then((s) => js(s, e)) : js(o, e);
|
|
1576
1576
|
};
|
|
1577
1577
|
});
|
|
1578
|
-
function
|
|
1578
|
+
function js(e, t) {
|
|
1579
1579
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1580
1580
|
code: "invalid_type",
|
|
1581
1581
|
expected: "nonoptional",
|
|
@@ -1643,7 +1643,7 @@ function Ws(e, t, n, r) {
|
|
|
1643
1643
|
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(gn(o));
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
|
-
class
|
|
1646
|
+
class Bi {
|
|
1647
1647
|
constructor() {
|
|
1648
1648
|
this._map = /* @__PURE__ */ new Map(), this._idmap = /* @__PURE__ */ new Map();
|
|
1649
1649
|
}
|
|
@@ -1676,7 +1676,7 @@ class ji {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
function mm() {
|
|
1679
|
-
return new
|
|
1679
|
+
return new Bi();
|
|
1680
1680
|
}
|
|
1681
1681
|
const sn = /* @__PURE__ */ mm();
|
|
1682
1682
|
function hm(e, t) {
|
|
@@ -1929,7 +1929,7 @@ function Um(e, t) {
|
|
|
1929
1929
|
...P(t)
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Bm(e, t) {
|
|
1933
1933
|
return new e({
|
|
1934
1934
|
type: "number",
|
|
1935
1935
|
check: "number_format",
|
|
@@ -1938,7 +1938,7 @@ function jm(e, t) {
|
|
|
1938
1938
|
...P(t)
|
|
1939
1939
|
});
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function jm(e, t) {
|
|
1942
1942
|
return new e({
|
|
1943
1943
|
type: "boolean",
|
|
1944
1944
|
...P(t)
|
|
@@ -2000,7 +2000,7 @@ function Ks(e, t) {
|
|
|
2000
2000
|
value: e
|
|
2001
2001
|
});
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function ji(e, t) {
|
|
2004
2004
|
return new cp({
|
|
2005
2005
|
check: "max_length",
|
|
2006
2006
|
...P(t),
|
|
@@ -2514,7 +2514,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
2516
|
function ah(e, t) {
|
|
2517
|
-
if (e instanceof
|
|
2517
|
+
if (e instanceof Bi) {
|
|
2518
2518
|
const r = new qs(t), o = {};
|
|
2519
2519
|
for (const a of e._idmap.entries()) {
|
|
2520
2520
|
const [l, c] = a;
|
|
@@ -2698,7 +2698,7 @@ const hh = (e, t) => {
|
|
|
2698
2698
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Wi = /* @__PURE__ */ C("_ZodString", (e, t) => {
|
|
2699
2699
|
Go.init(e, t), ie.init(e, t);
|
|
2700
2700
|
const n = e._zod.bag;
|
|
2701
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Gm(...r)), e.includes = (...r) => e.check(Km(...r)), e.startsWith = (...r) => e.check(qm(...r)), e.endsWith = (...r) => e.check(Xm(...r)), e.min = (...r) => e.check(gr(...r)), e.max = (...r) => e.check(
|
|
2701
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Gm(...r)), e.includes = (...r) => e.check(Km(...r)), e.startsWith = (...r) => e.check(qm(...r)), e.endsWith = (...r) => e.check(Xm(...r)), e.min = (...r) => e.check(gr(...r)), e.max = (...r) => e.check(ji(...r)), e.length = (...r) => e.check(Hi(...r)), e.nonempty = (...r) => e.check(gr(1, ...r)), e.lowercase = (r) => e.check(Ym(r)), e.uppercase = (r) => e.check(Jm(r)), e.trim = () => e.check(eh()), e.normalize = (...r) => e.check(Qm(...r)), e.toLowerCase = () => e.check(th()), e.toUpperCase = () => e.check(nh());
|
|
2702
2702
|
}), bh = /* @__PURE__ */ C("ZodString", (e, t) => {
|
|
2703
2703
|
Go.init(e, t), Wi.init(e, t), e.email = (n) => e.check(gm(wh, n)), e.url = (n) => e.check(_m(_h, n)), e.jwt = (n) => e.check($m($h, n)), e.emoji = (n) => e.check(Em(Eh, n)), e.guid = (n) => e.check(Gs(Xs, n)), e.uuid = (n) => e.check(vm(Vn, n)), e.uuidv4 = (n) => e.check(ym(Vn, n)), e.uuidv6 = (n) => e.check(bm(Vn, n)), e.uuidv7 = (n) => e.check(wm(Vn, n)), e.nanoid = (n) => e.check(Sm(Sh, n)), e.guid = (n) => e.check(Gs(Xs, n)), e.cuid = (n) => e.check(Cm(Ch, n)), e.cuid2 = (n) => e.check(xm(xh, n)), e.ulid = (n) => e.check(Tm(Th, n)), e.base64 = (n) => e.check(Mm(Mh, n)), e.base64url = (n) => e.check(Pm(Ph, n)), e.xid = (n) => e.check(Im(Ih, n)), e.ksuid = (n) => e.check(Am(Ah, n)), e.ipv4 = (n) => e.check(Rm(Rh, n)), e.ipv6 = (n) => e.check(Om(Oh, n)), e.cidrv4 = (n) => e.check(Nm(Nh, n)), e.cidrv6 = (n) => e.check(km(kh, n)), e.e164 = (n) => e.check(Dm(Dh, n)), e.datetime = (n) => e.check(ch(n)), e.date = (n) => e.check(uh(n)), e.time = (n) => e.check(fh(n)), e.duration = (n) => e.check(mh(n));
|
|
2704
2704
|
});
|
|
@@ -2742,7 +2742,7 @@ const ce = /* @__PURE__ */ C("ZodStringFormat", (e, t) => {
|
|
|
2742
2742
|
}), Ph = /* @__PURE__ */ C("ZodBase64URL", (e, t) => {
|
|
2743
2743
|
Up.init(e, t), ce.init(e, t);
|
|
2744
2744
|
}), Dh = /* @__PURE__ */ C("ZodE164", (e, t) => {
|
|
2745
|
-
|
|
2745
|
+
Bp.init(e, t), ce.init(e, t);
|
|
2746
2746
|
}), $h = /* @__PURE__ */ C("ZodJWT", (e, t) => {
|
|
2747
2747
|
Hp.init(e, t), ce.init(e, t);
|
|
2748
2748
|
}), Gi = /* @__PURE__ */ C("ZodNumber", (e, t) => {
|
|
@@ -2757,13 +2757,13 @@ const zh = /* @__PURE__ */ C("ZodNumberFormat", (e, t) => {
|
|
|
2757
2757
|
Vp.init(e, t), Gi.init(e, t);
|
|
2758
2758
|
});
|
|
2759
2759
|
function Qs(e) {
|
|
2760
|
-
return
|
|
2760
|
+
return Bm(zh, e);
|
|
2761
2761
|
}
|
|
2762
2762
|
const Fh = /* @__PURE__ */ C("ZodBoolean", (e, t) => {
|
|
2763
2763
|
Wp.init(e, t), ie.init(e, t);
|
|
2764
2764
|
});
|
|
2765
2765
|
function be(e) {
|
|
2766
|
-
return
|
|
2766
|
+
return jm(Fh, e);
|
|
2767
2767
|
}
|
|
2768
2768
|
const Zh = /* @__PURE__ */ C("ZodNull", (e, t) => {
|
|
2769
2769
|
Gp.init(e, t), ie.init(e, t);
|
|
@@ -2771,20 +2771,20 @@ const Zh = /* @__PURE__ */ C("ZodNull", (e, t) => {
|
|
|
2771
2771
|
function Uh(e) {
|
|
2772
2772
|
return Hm(Zh, e);
|
|
2773
2773
|
}
|
|
2774
|
-
const
|
|
2774
|
+
const Bh = /* @__PURE__ */ C("ZodUnknown", (e, t) => {
|
|
2775
2775
|
Yp.init(e, t), ie.init(e, t);
|
|
2776
2776
|
});
|
|
2777
2777
|
function We() {
|
|
2778
|
-
return Vm(
|
|
2778
|
+
return Vm(Bh);
|
|
2779
2779
|
}
|
|
2780
|
-
const
|
|
2780
|
+
const jh = /* @__PURE__ */ C("ZodNever", (e, t) => {
|
|
2781
2781
|
Jp.init(e, t), ie.init(e, t);
|
|
2782
2782
|
});
|
|
2783
2783
|
function Yi(e) {
|
|
2784
|
-
return Wm(
|
|
2784
|
+
return Wm(jh, e);
|
|
2785
2785
|
}
|
|
2786
2786
|
const Hh = /* @__PURE__ */ C("ZodArray", (e, t) => {
|
|
2787
|
-
Kp.init(e, t), ie.init(e, t), e.element = t.element, e.min = (n, r) => e.check(gr(n, r)), e.nonempty = (n) => e.check(gr(1, n)), e.max = (n, r) => e.check(
|
|
2787
|
+
Kp.init(e, t), ie.init(e, t), e.element = t.element, e.min = (n, r) => e.check(gr(n, r)), e.nonempty = (n) => e.check(gr(1, n)), e.max = (n, r) => e.check(ji(n, r)), e.length = (n, r) => e.check(Hi(n, r)), e.unwrap = () => e.element;
|
|
2788
2788
|
});
|
|
2789
2789
|
function Xt(e, t) {
|
|
2790
2790
|
return rh(Hh, e, t);
|
|
@@ -3773,7 +3773,7 @@ var To = {
|
|
|
3773
3773
|
ZodBoolean: "boolean",
|
|
3774
3774
|
ZodNull: "null"
|
|
3775
3775
|
};
|
|
3776
|
-
function
|
|
3776
|
+
function Bg(e, t) {
|
|
3777
3777
|
const n = e.options instanceof Map ? Array.from(e.options.values()) : e.options;
|
|
3778
3778
|
if (n.every(
|
|
3779
3779
|
(r) => r._def.typeName in To && (!r._def.checks || !r._def.checks.length)
|
|
@@ -3825,9 +3825,9 @@ function jg(e, t) {
|
|
|
3825
3825
|
[]
|
|
3826
3826
|
)
|
|
3827
3827
|
};
|
|
3828
|
-
return
|
|
3828
|
+
return jg(e, t);
|
|
3829
3829
|
}
|
|
3830
|
-
var
|
|
3830
|
+
var jg = (e, t) => {
|
|
3831
3831
|
const n = (e.options instanceof Map ? Array.from(e.options.values()) : e.options).map(
|
|
3832
3832
|
(r, o) => Q(r._def, {
|
|
3833
3833
|
...t,
|
|
@@ -4019,7 +4019,7 @@ var nv = (e, t) => Q(e.innerType._def, t), rv = (e, t, n) => {
|
|
|
4019
4019
|
return xg(e, n);
|
|
4020
4020
|
case H.ZodUnion:
|
|
4021
4021
|
case H.ZodDiscriminatedUnion:
|
|
4022
|
-
return
|
|
4022
|
+
return Bg(e, n);
|
|
4023
4023
|
case H.ZodIntersection:
|
|
4024
4024
|
return Pg(e, n);
|
|
4025
4025
|
case H.ZodTuple:
|
|
@@ -5281,7 +5281,7 @@ function Uv({
|
|
|
5281
5281
|
partialToolCalls: {}
|
|
5282
5282
|
};
|
|
5283
5283
|
}
|
|
5284
|
-
function
|
|
5284
|
+
function Bv({
|
|
5285
5285
|
stream: e,
|
|
5286
5286
|
messageMetadataSchema: t,
|
|
5287
5287
|
dataPartSchemas: n,
|
|
@@ -5647,7 +5647,7 @@ function jv({
|
|
|
5647
5647
|
})
|
|
5648
5648
|
);
|
|
5649
5649
|
}
|
|
5650
|
-
async function
|
|
5650
|
+
async function jv({
|
|
5651
5651
|
stream: e,
|
|
5652
5652
|
onError: t
|
|
5653
5653
|
}) {
|
|
@@ -6031,8 +6031,8 @@ var Wv = class {
|
|
|
6031
6031
|
})
|
|
6032
6032
|
)
|
|
6033
6033
|
);
|
|
6034
|
-
await
|
|
6035
|
-
stream:
|
|
6034
|
+
await jv({
|
|
6035
|
+
stream: Bv({
|
|
6036
6036
|
stream: m,
|
|
6037
6037
|
onToolCall: this.onToolCall,
|
|
6038
6038
|
onData: this.onData,
|
|
@@ -6181,7 +6181,7 @@ const Rt = "CHAT_SET_STATUS", vc = "CHAT_SET_USAGE", yr = "CHAT_SET_ATTACHMENTS"
|
|
|
6181
6181
|
sortDirection: e.sortDirection
|
|
6182
6182
|
};
|
|
6183
6183
|
case Tu: {
|
|
6184
|
-
const n = t.payload.sortDirection, r = n ===
|
|
6184
|
+
const n = t.payload.sortDirection, r = n === Bt.ASC || n === Bt.DESC ? n : Bt.DESC;
|
|
6185
6185
|
return {
|
|
6186
6186
|
searchString: e.searchString,
|
|
6187
6187
|
sortedCell: t.payload.sortedCell,
|
|
@@ -6373,7 +6373,7 @@ function cy({
|
|
|
6373
6373
|
},
|
|
6374
6374
|
[s]
|
|
6375
6375
|
);
|
|
6376
|
-
return
|
|
6376
|
+
return B(() => {
|
|
6377
6377
|
t && s.current.resumeStream();
|
|
6378
6378
|
}, [t, s]), {
|
|
6379
6379
|
id: s.current.id,
|
|
@@ -6405,9 +6405,9 @@ function _t(e = {}) {
|
|
|
6405
6405
|
if (!t)
|
|
6406
6406
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
|
6407
6407
|
const n = G(e);
|
|
6408
|
-
return
|
|
6408
|
+
return B(() => {
|
|
6409
6409
|
n.current = e;
|
|
6410
|
-
}, [e]),
|
|
6410
|
+
}, [e]), B(() => {
|
|
6411
6411
|
const { onFinish: r, onError: o, onData: s, onToolCall: i } = n.current;
|
|
6412
6412
|
return r && t.handlers.onFinish.add(r), o && t.handlers.onError.add(o), s && t.handlers.onData.add(s), i && t.handlers.onToolCall.add(i), () => {
|
|
6413
6413
|
r && t.handlers.onFinish.delete(r), o && t.handlers.onError.delete(o), s && t.handlers.onData.delete(s), i && t.handlers.onToolCall.delete(i);
|
|
@@ -6423,7 +6423,7 @@ function ly({
|
|
|
6423
6423
|
value: t
|
|
6424
6424
|
}) {
|
|
6425
6425
|
const n = G(ha()), [r, o] = U("");
|
|
6426
|
-
|
|
6426
|
+
B(() => {
|
|
6427
6427
|
n.current = ha();
|
|
6428
6428
|
}, [t]);
|
|
6429
6429
|
const s = V((d) => {
|
|
@@ -6467,8 +6467,8 @@ function ly({
|
|
|
6467
6467
|
const uy = ({ chatId: e }) => {
|
|
6468
6468
|
const { messages: t } = _t(), {
|
|
6469
6469
|
state: { privateChat: n }
|
|
6470
|
-
} = de(
|
|
6471
|
-
return
|
|
6470
|
+
} = de(Be), r = G(e), o = G(!1);
|
|
6471
|
+
return B(() => {
|
|
6472
6472
|
const s = r.current !== e, i = t.length > 0;
|
|
6473
6473
|
s && !i ? (window.localStorage.removeItem(
|
|
6474
6474
|
Te + rr
|
|
@@ -6483,7 +6483,7 @@ const uy = ({ chatId: e }) => {
|
|
|
6483
6483
|
let Wn = !1, oo = null;
|
|
6484
6484
|
const dy = () => {
|
|
6485
6485
|
const [e, t] = U(Wn), n = Ie(() => typeof document < "u" ? document.body : null, []);
|
|
6486
|
-
return
|
|
6486
|
+
return B(() => {
|
|
6487
6487
|
if (!Wn) {
|
|
6488
6488
|
const r = async () => {
|
|
6489
6489
|
try {
|
|
@@ -6502,7 +6502,7 @@ const dy = () => {
|
|
|
6502
6502
|
window.removeEventListener("toast-request", o);
|
|
6503
6503
|
};
|
|
6504
6504
|
}
|
|
6505
|
-
}, []), e && oo && n ?
|
|
6505
|
+
}, []), e && oo && n ? jd(
|
|
6506
6506
|
/* @__PURE__ */ g(
|
|
6507
6507
|
oo,
|
|
6508
6508
|
{
|
|
@@ -6536,7 +6536,7 @@ const dy = () => {
|
|
|
6536
6536
|
getAccessToken: i,
|
|
6537
6537
|
enabled: d
|
|
6538
6538
|
});
|
|
6539
|
-
return
|
|
6539
|
+
return B(() => {
|
|
6540
6540
|
!u || !d || a || o > 0 && Date.now() - o < fy || u.messages && (r({
|
|
6541
6541
|
type: Rt,
|
|
6542
6542
|
payload: {
|
|
@@ -6560,7 +6560,7 @@ const dy = () => {
|
|
|
6560
6560
|
]), { hasRestoredFromCache: a };
|
|
6561
6561
|
};
|
|
6562
6562
|
function ga(e, t) {
|
|
6563
|
-
|
|
6563
|
+
B(() => (window.addEventListener(e, t, {
|
|
6564
6564
|
passive: !0
|
|
6565
6565
|
}), () => window.removeEventListener(e, t)), [
|
|
6566
6566
|
e,
|
|
@@ -6577,7 +6577,7 @@ function my() {
|
|
|
6577
6577
|
height: window.innerHeight || 0
|
|
6578
6578
|
});
|
|
6579
6579
|
}, []);
|
|
6580
|
-
return ga("resize", n), ga("orientationchange", n),
|
|
6580
|
+
return ga("resize", n), ga("orientationchange", n), B(n, []), e;
|
|
6581
6581
|
}
|
|
6582
6582
|
function hy() {
|
|
6583
6583
|
const [e, t] = U({
|
|
@@ -6589,7 +6589,7 @@ function hy() {
|
|
|
6589
6589
|
height: window?.visualViewport?.height || window.innerHeight || 0
|
|
6590
6590
|
});
|
|
6591
6591
|
}, []);
|
|
6592
|
-
return
|
|
6592
|
+
return B(() => (n(), window.visualViewport && (window.visualViewport.addEventListener("resize", n, {
|
|
6593
6593
|
passive: !0
|
|
6594
6594
|
}), window.visualViewport.addEventListener("orientationchange", n, {
|
|
6595
6595
|
passive: !0
|
|
@@ -6602,7 +6602,7 @@ function hy() {
|
|
|
6602
6602
|
const gy = "z-20", vy = "z-10";
|
|
6603
6603
|
function yy(e) {
|
|
6604
6604
|
const [t, n] = U(!1);
|
|
6605
|
-
return
|
|
6605
|
+
return B(() => {
|
|
6606
6606
|
if (!e) {
|
|
6607
6607
|
n(!1);
|
|
6608
6608
|
return;
|
|
@@ -6668,7 +6668,7 @@ function Xo(e, t = [
|
|
|
6668
6668
|
"TEXTAREA",
|
|
6669
6669
|
"SELECT"
|
|
6670
6670
|
], n = !1) {
|
|
6671
|
-
|
|
6671
|
+
B(() => {
|
|
6672
6672
|
const r = (o) => {
|
|
6673
6673
|
e.forEach(([s, i, a = {
|
|
6674
6674
|
preventDefault: !0
|
|
@@ -7020,7 +7020,7 @@ const Dy = (e) => ({
|
|
|
7020
7020
|
const k = (((F = s.flip) == null ? void 0 : F.index) || 0) + 1, $ = x[k];
|
|
7021
7021
|
if ($ && (!(u === "alignment" ? _ !== Je($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
7022
7022
|
// overflows the main axis.
|
|
7023
|
-
N.every((
|
|
7023
|
+
N.every((j) => Je(j.placement) === _ ? j.overflows[0] > 0 : !0)))
|
|
7024
7024
|
return {
|
|
7025
7025
|
data: {
|
|
7026
7026
|
index: k,
|
|
@@ -7030,20 +7030,20 @@ const Dy = (e) => ({
|
|
|
7030
7030
|
placement: $
|
|
7031
7031
|
}
|
|
7032
7032
|
};
|
|
7033
|
-
let Y = (I = N.filter((ee) => ee.overflows[0] <= 0).sort((ee,
|
|
7033
|
+
let Y = (I = N.filter((ee) => ee.overflows[0] <= 0).sort((ee, j) => ee.overflows[1] - j.overflows[1])[0]) == null ? void 0 : I.placement;
|
|
7034
7034
|
if (!Y)
|
|
7035
7035
|
switch (f) {
|
|
7036
7036
|
case "bestFit": {
|
|
7037
7037
|
var O;
|
|
7038
|
-
const ee = (O = N.filter((
|
|
7038
|
+
const ee = (O = N.filter((j) => {
|
|
7039
7039
|
if (T) {
|
|
7040
|
-
const M = Je(
|
|
7040
|
+
const M = Je(j.placement);
|
|
7041
7041
|
return M === _ || // Create a bias to the `y` side axis due to horizontal
|
|
7042
7042
|
// reading directions favoring greater width.
|
|
7043
7043
|
M === "y";
|
|
7044
7044
|
}
|
|
7045
7045
|
return !0;
|
|
7046
|
-
}).map((
|
|
7046
|
+
}).map((j) => [j.placement, j.overflows.filter((M) => M > 0).reduce((M, X) => M + X, 0)]).sort((j, M) => j[1] - M[1])[0]) == null ? void 0 : O[0];
|
|
7047
7047
|
ee && (Y = ee);
|
|
7048
7048
|
break;
|
|
7049
7049
|
}
|
|
@@ -7262,7 +7262,7 @@ const Fy = function(e) {
|
|
|
7262
7262
|
};
|
|
7263
7263
|
}
|
|
7264
7264
|
};
|
|
7265
|
-
},
|
|
7265
|
+
}, By = function(e) {
|
|
7266
7266
|
return e === void 0 && (e = {}), {
|
|
7267
7267
|
name: "size",
|
|
7268
7268
|
options: e,
|
|
@@ -7329,7 +7329,7 @@ function et(e) {
|
|
|
7329
7329
|
function Ea(e) {
|
|
7330
7330
|
return !Nr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ae(e).ShadowRoot;
|
|
7331
7331
|
}
|
|
7332
|
-
const
|
|
7332
|
+
const jy = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7333
7333
|
function Nn(e) {
|
|
7334
7334
|
const {
|
|
7335
7335
|
overflow: t,
|
|
@@ -7337,7 +7337,7 @@ function Nn(e) {
|
|
|
7337
7337
|
overflowY: r,
|
|
7338
7338
|
display: o
|
|
7339
7339
|
} = Ze(e);
|
|
7340
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
7340
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !jy.has(o);
|
|
7341
7341
|
}
|
|
7342
7342
|
const Hy = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
7343
7343
|
function Vy(e) {
|
|
@@ -7430,7 +7430,7 @@ function Tc(e) {
|
|
|
7430
7430
|
function os(e) {
|
|
7431
7431
|
return Fe(e) ? e : e.contextElement;
|
|
7432
7432
|
}
|
|
7433
|
-
function
|
|
7433
|
+
function jt(e) {
|
|
7434
7434
|
const t = os(e);
|
|
7435
7435
|
if (!et(t))
|
|
7436
7436
|
return qe(1);
|
|
@@ -7460,14 +7460,14 @@ function kt(e, t, n, r) {
|
|
|
7460
7460
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7461
7461
|
const o = e.getBoundingClientRect(), s = os(e);
|
|
7462
7462
|
let i = qe(1);
|
|
7463
|
-
t && (r ? Fe(r) && (i =
|
|
7463
|
+
t && (r ? Fe(r) && (i = jt(r)) : i = jt(e));
|
|
7464
7464
|
const a = Qy(s, n, r) ? Ic(s) : qe(0);
|
|
7465
7465
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
|
|
7466
7466
|
if (s) {
|
|
7467
7467
|
const h = Ae(s), f = r && Fe(r) ? Ae(r) : r;
|
|
7468
7468
|
let m = h, p = Po(m);
|
|
7469
7469
|
for (; p && r && f !== m; ) {
|
|
7470
|
-
const y =
|
|
7470
|
+
const y = jt(p), b = p.getBoundingClientRect(), _ = Ze(p), v = b.left + (p.clientLeft + parseFloat(_.paddingLeft)) * y.x, E = b.top + (p.clientTop + parseFloat(_.paddingTop)) * y.y;
|
|
7471
7471
|
l *= y.x, c *= y.y, d *= y.x, u *= y.y, l += v, c += E, m = Ae(p), p = Po(m);
|
|
7472
7472
|
}
|
|
7473
7473
|
}
|
|
@@ -7506,7 +7506,7 @@ function eb(e) {
|
|
|
7506
7506
|
const d = qe(0), u = et(r);
|
|
7507
7507
|
if ((u || !u && !s) && ((en(r) !== "body" || Nn(i)) && (l = Mr(r)), et(r))) {
|
|
7508
7508
|
const f = kt(r);
|
|
7509
|
-
c =
|
|
7509
|
+
c = jt(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
|
|
7510
7510
|
}
|
|
7511
7511
|
const h = i && !u && !s ? Ac(i, l) : qe(0);
|
|
7512
7512
|
return {
|
|
@@ -7553,7 +7553,7 @@ function rb(e, t) {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
const ob = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
7555
7555
|
function sb(e, t) {
|
|
7556
|
-
const n = kt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = et(e) ?
|
|
7556
|
+
const n = kt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = et(e) ? jt(e) : qe(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
|
|
7557
7557
|
return {
|
|
7558
7558
|
width: i,
|
|
7559
7559
|
height: a,
|
|
@@ -7701,7 +7701,7 @@ const fb = {
|
|
|
7701
7701
|
getElementRects: ub,
|
|
7702
7702
|
getClientRects: tb,
|
|
7703
7703
|
getDimensions: cb,
|
|
7704
|
-
getScale:
|
|
7704
|
+
getScale: jt,
|
|
7705
7705
|
isElement: Fe,
|
|
7706
7706
|
isRTL: db
|
|
7707
7707
|
};
|
|
@@ -7790,7 +7790,7 @@ function mb(e, t, n, r) {
|
|
|
7790
7790
|
}), u?.(), (b = f) == null || b.disconnect(), f = null, l && cancelAnimationFrame(m);
|
|
7791
7791
|
};
|
|
7792
7792
|
}
|
|
7793
|
-
const kc = Fy, Mc = Zy, Pc = $y, hb =
|
|
7793
|
+
const kc = Fy, Mc = Zy, Pc = $y, hb = By, gb = Ly, Do = Dy, vb = Uy, Dc = (e, t, n) => {
|
|
7794
7794
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7795
7795
|
platform: fb,
|
|
7796
7796
|
...n
|
|
@@ -7809,7 +7809,7 @@ const Ta = [
|
|
|
7809
7809
|
];
|
|
7810
7810
|
function yb(e, t, n) {
|
|
7811
7811
|
const r = G(null);
|
|
7812
|
-
return
|
|
7812
|
+
return B(() => {
|
|
7813
7813
|
const o = (s) => {
|
|
7814
7814
|
const i = s ? s.target : void 0;
|
|
7815
7815
|
if (Array.isArray(n)) {
|
|
@@ -7834,7 +7834,7 @@ function bb(e, t) {
|
|
|
7834
7834
|
]), a = V(() => {
|
|
7835
7835
|
r(!1), window.clearInterval(o.current || -1), o.current = -1;
|
|
7836
7836
|
}, []);
|
|
7837
|
-
return
|
|
7837
|
+
return B(() => (s.current = e, n && i(), a), [
|
|
7838
7838
|
e,
|
|
7839
7839
|
n,
|
|
7840
7840
|
i,
|
|
@@ -7929,12 +7929,12 @@ const wb = "av-tooltip", _b = "av-tooltip-arrow", Yn = (e, t = "px") => typeof e
|
|
|
7929
7929
|
S,
|
|
7930
7930
|
c
|
|
7931
7931
|
]);
|
|
7932
|
-
|
|
7932
|
+
B(() => {
|
|
7933
7933
|
(async () => f ? await T() : _(!1))();
|
|
7934
7934
|
}, [
|
|
7935
7935
|
T,
|
|
7936
7936
|
f
|
|
7937
|
-
]),
|
|
7937
|
+
]), B(() => () => {
|
|
7938
7938
|
h.current && clearTimeout(h.current);
|
|
7939
7939
|
}, []);
|
|
7940
7940
|
const x = () => {
|
|
@@ -8020,7 +8020,7 @@ const wb = "av-tooltip", _b = "av-tooltip-arrow", Yn = (e, t = "px") => typeof e
|
|
|
8020
8020
|
className: e,
|
|
8021
8021
|
onClick: t
|
|
8022
8022
|
}) => {
|
|
8023
|
-
const [n, r] =
|
|
8023
|
+
const [n, r] = je();
|
|
8024
8024
|
return /* @__PURE__ */ g(
|
|
8025
8025
|
tn,
|
|
8026
8026
|
{
|
|
@@ -8040,7 +8040,7 @@ const wb = "av-tooltip", _b = "av-tooltip-arrow", Yn = (e, t = "px") => typeof e
|
|
|
8040
8040
|
);
|
|
8041
8041
|
};
|
|
8042
8042
|
function $c(e, t) {
|
|
8043
|
-
|
|
8043
|
+
B(() => {
|
|
8044
8044
|
if (mn() && typeof window < "u")
|
|
8045
8045
|
return window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = t), () => {
|
|
8046
8046
|
window.__VERSINI_DIGGIDY_TAURI_EVENTS__ && (window.__VERSINI_DIGGIDY_TAURI_EVENTS__[e] = null);
|
|
@@ -8055,7 +8055,7 @@ const Nb = ({
|
|
|
8055
8055
|
dispatch: s,
|
|
8056
8056
|
setChatId: i,
|
|
8057
8057
|
setInitialMessages: a
|
|
8058
|
-
} = de(
|
|
8058
|
+
} = de(Be), { id: l, setInput: c, stop: d } = _t(), u = G(null), h = G(!1), [f, m] = je(), { data: p, isSuccess: y } = bt({
|
|
8059
8059
|
user: n?.username,
|
|
8060
8060
|
getAccessToken: t
|
|
8061
8061
|
}), b = f(m.NewChat), _ = V(() => {
|
|
@@ -8119,7 +8119,7 @@ const Nb = ({
|
|
|
8119
8119
|
}, E = (S) => {
|
|
8120
8120
|
S.preventDefault(), _();
|
|
8121
8121
|
};
|
|
8122
|
-
return
|
|
8122
|
+
return B(() => {
|
|
8123
8123
|
Ke() || ((r === !0 || o === !0) && !h.current && u.current && (h.current = !0, u.current.focus()), r === !1 && h.current && (h.current = !1));
|
|
8124
8124
|
}, [r, o]), /* @__PURE__ */ g(
|
|
8125
8125
|
tn,
|
|
@@ -8309,7 +8309,7 @@ const Oa = ({ blurEffect: e }) => D("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8309
8309
|
"large",
|
|
8310
8310
|
"bg-surface-darker": e === /* inlined export .NONE */
|
|
8311
8311
|
"none"
|
|
8312
|
-
}),
|
|
8312
|
+
}), Bb = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
|
|
8313
8313
|
/* inlined export .MEDIUM */
|
|
8314
8314
|
"medium"
|
|
8315
8315
|
), maxHeight: s, blurEffect: i = (
|
|
@@ -8444,7 +8444,7 @@ const Oa = ({ blurEffect: e }) => D("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8444
8444
|
),
|
|
8445
8445
|
content: "p-4 rounded-3xl"
|
|
8446
8446
|
};
|
|
8447
|
-
},
|
|
8447
|
+
}, jb = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
|
|
8448
8448
|
/* inlined export .TYPE_PANEL */
|
|
8449
8449
|
"panel"
|
|
8450
8450
|
), className: a, animation: l = !1, animationType: c = (
|
|
@@ -8462,7 +8462,7 @@ const Oa = ({ blurEffect: e }) => D("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8462
8462
|
opacity: 0
|
|
8463
8463
|
} : {
|
|
8464
8464
|
transform: "translateY(-100vh)"
|
|
8465
|
-
} : {}), b =
|
|
8465
|
+
} : {}), b = Bb({
|
|
8466
8466
|
className: a,
|
|
8467
8467
|
kind: i,
|
|
8468
8468
|
borderMode: s,
|
|
@@ -8472,12 +8472,12 @@ const Oa = ({ blurEffect: e }) => D("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8472
8472
|
blurEffect: h,
|
|
8473
8473
|
hasFooter: !!o
|
|
8474
8474
|
});
|
|
8475
|
-
return
|
|
8475
|
+
return B(() => (e && (m.current = document.title, document.title = `${n} | ${m.current}`), () => {
|
|
8476
8476
|
e && (document.title = m.current);
|
|
8477
8477
|
}), [
|
|
8478
8478
|
n,
|
|
8479
8479
|
e
|
|
8480
|
-
]),
|
|
8480
|
+
]), B(() => {
|
|
8481
8481
|
if (l && e) {
|
|
8482
8482
|
y(l ? c === /* inlined export .ANIMATION_FADE */
|
|
8483
8483
|
"fade" ? {
|
|
@@ -8580,7 +8580,7 @@ const Hb = () => {
|
|
|
8580
8580
|
Ge && document.body && document.body.contains(Ge) && document.body.removeChild(Ge), Ge = null;
|
|
8581
8581
|
}, Wb = () => {
|
|
8582
8582
|
const e = G(/* @__PURE__ */ new Set());
|
|
8583
|
-
|
|
8583
|
+
B(() => {
|
|
8584
8584
|
Jn++;
|
|
8585
8585
|
try {
|
|
8586
8586
|
Hb();
|
|
@@ -8832,7 +8832,7 @@ const Gb = "av-toggle", Yb = ({ narrow: e }) => D(
|
|
|
8832
8832
|
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto grow", children: p })
|
|
8833
8833
|
] }) : p;
|
|
8834
8834
|
return /* @__PURE__ */ g(
|
|
8835
|
-
|
|
8835
|
+
jb,
|
|
8836
8836
|
{
|
|
8837
8837
|
kind: "messagebox",
|
|
8838
8838
|
open: e,
|
|
@@ -8851,7 +8851,7 @@ const Gb = "av-toggle", Yb = ({ narrow: e }) => D(
|
|
|
8851
8851
|
const { getAccessToken: t, user: n } = Ue(), {
|
|
8852
8852
|
state: { privateChat: r, provider: o, tokenUsage: s },
|
|
8853
8853
|
dispatch: i
|
|
8854
|
-
} = de(
|
|
8854
|
+
} = de(Be), { messages: a, id: l } = _t(), { mutateAsync: c } = Ru({ getAccessToken: t }), [d, u] = je(), [h, f] = U(!1), [m, p] = U(!1), [y, b] = U(!1), [_, v] = Ne({
|
|
8855
8855
|
key: Te + Ou,
|
|
8856
8856
|
initialValue: ""
|
|
8857
8857
|
}), E = Ht(Ut.TOOL.MEMORIES), S = Ht(Ut.ADDON.SHARE_CHAT), { data: T, isSuccess: x } = bt({
|
|
@@ -9215,7 +9215,7 @@ function Uc(e) {
|
|
|
9215
9215
|
];
|
|
9216
9216
|
}
|
|
9217
9217
|
var hw = w.createContext(void 0);
|
|
9218
|
-
function
|
|
9218
|
+
function Bc(e) {
|
|
9219
9219
|
const t = w.useContext(hw);
|
|
9220
9220
|
return e || t || "ltr";
|
|
9221
9221
|
}
|
|
@@ -9234,7 +9234,7 @@ function gw(e, t = globalThis?.document) {
|
|
|
9234
9234
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
9235
9235
|
}, [n, t]);
|
|
9236
9236
|
}
|
|
9237
|
-
var vw = "DismissableLayer", $o = "dismissableLayer.update", yw = "dismissableLayer.pointerDownOutside", bw = "dismissableLayer.focusOutside", Pa,
|
|
9237
|
+
var vw = "DismissableLayer", $o = "dismissableLayer.update", yw = "dismissableLayer.pointerDownOutside", bw = "dismissableLayer.focusOutside", Pa, jc = w.createContext({
|
|
9238
9238
|
layers: /* @__PURE__ */ new Set(),
|
|
9239
9239
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
9240
9240
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -9248,7 +9248,7 @@ var vw = "DismissableLayer", $o = "dismissableLayer.update", yw = "dismissableLa
|
|
|
9248
9248
|
onInteractOutside: i,
|
|
9249
9249
|
onDismiss: a,
|
|
9250
9250
|
...l
|
|
9251
|
-
} = e, c = w.useContext(
|
|
9251
|
+
} = e, c = w.useContext(jc), [d, u] = w.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, f] = w.useState({}), m = Ee(t, (x) => u(x)), p = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = p.indexOf(y), _ = d ? p.indexOf(d) : -1, v = c.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = Ew((x) => {
|
|
9252
9252
|
const R = x.target, z = [...c.branches].some((N) => N.contains(R));
|
|
9253
9253
|
!E || z || (o?.(x), i?.(x), x.defaultPrevented || a?.());
|
|
9254
9254
|
}, h), T = Sw((x) => {
|
|
@@ -9288,7 +9288,7 @@ var vw = "DismissableLayer", $o = "dismissableLayer.update", yw = "dismissableLa
|
|
|
9288
9288
|
);
|
|
9289
9289
|
Hc.displayName = vw;
|
|
9290
9290
|
var ww = "DismissableLayerBranch", _w = w.forwardRef((e, t) => {
|
|
9291
|
-
const n = w.useContext(
|
|
9291
|
+
const n = w.useContext(jc), r = w.useRef(null), o = Ee(t, r);
|
|
9292
9292
|
return w.useEffect(() => {
|
|
9293
9293
|
const s = r.current;
|
|
9294
9294
|
if (s)
|
|
@@ -9567,19 +9567,19 @@ function $w(e) {
|
|
|
9567
9567
|
isPositioned: !1
|
|
9568
9568
|
}), [h, f] = w.useState(r);
|
|
9569
9569
|
Sr(h, r) || f(r);
|
|
9570
|
-
const [m, p] = w.useState(null), [y, b] = w.useState(null), _ = w.useCallback((
|
|
9571
|
-
|
|
9572
|
-
}, []), v = w.useCallback((
|
|
9573
|
-
|
|
9570
|
+
const [m, p] = w.useState(null), [y, b] = w.useState(null), _ = w.useCallback((j) => {
|
|
9571
|
+
j !== T.current && (T.current = j, p(j));
|
|
9572
|
+
}, []), v = w.useCallback((j) => {
|
|
9573
|
+
j !== x.current && (x.current = j, b(j));
|
|
9574
9574
|
}, []), E = s || m, S = i || y, T = w.useRef(null), x = w.useRef(null), R = w.useRef(d), z = l != null, N = fo(l), F = fo(o), I = fo(c), O = w.useCallback(() => {
|
|
9575
9575
|
if (!T.current || !x.current)
|
|
9576
9576
|
return;
|
|
9577
|
-
const
|
|
9577
|
+
const j = {
|
|
9578
9578
|
placement: t,
|
|
9579
9579
|
strategy: n,
|
|
9580
9580
|
middleware: h
|
|
9581
9581
|
};
|
|
9582
|
-
F.current && (
|
|
9582
|
+
F.current && (j.platform = F.current), Dc(T.current, x.current, j).then((M) => {
|
|
9583
9583
|
const X = {
|
|
9584
9584
|
...M,
|
|
9585
9585
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -9594,8 +9594,8 @@ function $w(e) {
|
|
|
9594
9594
|
});
|
|
9595
9595
|
}, [h, t, n, F, I]);
|
|
9596
9596
|
cr(() => {
|
|
9597
|
-
c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, u((
|
|
9598
|
-
...
|
|
9597
|
+
c === !1 && R.current.isPositioned && (R.current.isPositioned = !1, u((j) => ({
|
|
9598
|
+
...j,
|
|
9599
9599
|
isPositioned: !1
|
|
9600
9600
|
})));
|
|
9601
9601
|
}, [c]);
|
|
@@ -9618,16 +9618,16 @@ function $w(e) {
|
|
|
9618
9618
|
reference: E,
|
|
9619
9619
|
floating: S
|
|
9620
9620
|
}), [E, S]), ee = w.useMemo(() => {
|
|
9621
|
-
const
|
|
9621
|
+
const j = {
|
|
9622
9622
|
position: n,
|
|
9623
9623
|
left: 0,
|
|
9624
9624
|
top: 0
|
|
9625
9625
|
};
|
|
9626
9626
|
if (!Y.floating)
|
|
9627
|
-
return
|
|
9627
|
+
return j;
|
|
9628
9628
|
const M = Ua(Y.floating, d.x), X = Ua(Y.floating, d.y);
|
|
9629
9629
|
return a ? {
|
|
9630
|
-
...
|
|
9630
|
+
...j,
|
|
9631
9631
|
transform: "translate(" + M + "px, " + X + "px)",
|
|
9632
9632
|
...Yc(Y.floating) >= 1.5 && {
|
|
9633
9633
|
willChange: "transform"
|
|
@@ -9679,10 +9679,10 @@ const Lw = (e) => {
|
|
|
9679
9679
|
}), Uw = (e, t) => ({
|
|
9680
9680
|
...Pc(e),
|
|
9681
9681
|
options: [e, t]
|
|
9682
|
-
}),
|
|
9682
|
+
}), Bw = (e, t) => ({
|
|
9683
9683
|
...hb(e),
|
|
9684
9684
|
options: [e, t]
|
|
9685
|
-
}),
|
|
9685
|
+
}), jw = (e, t) => ({
|
|
9686
9686
|
...gb(e),
|
|
9687
9687
|
options: [e, t]
|
|
9688
9688
|
}), Hw = (e, t) => ({
|
|
@@ -9765,7 +9765,7 @@ var is = "PopperContent", [Jw, Kw] = Kc(is), nl = w.forwardRef(
|
|
|
9765
9765
|
boundary: F.filter(Xw),
|
|
9766
9766
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
9767
9767
|
altBoundary: I
|
|
9768
|
-
}, { refs: k, floatingStyles: $, placement: Y, isPositioned: ee, middlewareData:
|
|
9768
|
+
}, { refs: k, floatingStyles: $, placement: Y, isPositioned: ee, middlewareData: j } = $w({
|
|
9769
9769
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
9770
9770
|
strategy: "fixed",
|
|
9771
9771
|
placement: z,
|
|
@@ -9784,22 +9784,22 @@ var is = "PopperContent", [Jw, Kw] = Kc(is), nl = w.forwardRef(
|
|
|
9784
9784
|
...O
|
|
9785
9785
|
}),
|
|
9786
9786
|
l && Uw({ ...O }),
|
|
9787
|
-
|
|
9787
|
+
Bw({
|
|
9788
9788
|
...O,
|
|
9789
|
-
apply: ({ elements: re, rects: St, availableWidth:
|
|
9789
|
+
apply: ({ elements: re, rects: St, availableWidth: Br, availableHeight: jr }) => {
|
|
9790
9790
|
const { width: Fn, height: nn } = St.reference, Ct = re.floating.style;
|
|
9791
|
-
Ct.setProperty("--radix-popper-available-width", `${
|
|
9791
|
+
Ct.setProperty("--radix-popper-available-width", `${Br}px`), Ct.setProperty("--radix-popper-available-height", `${jr}px`), Ct.setProperty("--radix-popper-anchor-width", `${Fn}px`), Ct.setProperty("--radix-popper-anchor-height", `${nn}px`);
|
|
9792
9792
|
}
|
|
9793
9793
|
}),
|
|
9794
9794
|
E && Hw({ element: E, padding: a }),
|
|
9795
9795
|
Qw({ arrowWidth: x, arrowHeight: R }),
|
|
9796
|
-
h &&
|
|
9796
|
+
h && jw({ strategy: "referenceHidden", ...O })
|
|
9797
9797
|
]
|
|
9798
9798
|
}), [M, X] = sl(Y), Ce = tt(m);
|
|
9799
9799
|
yt(() => {
|
|
9800
9800
|
ee && Ce?.();
|
|
9801
9801
|
}, [ee, Ce]);
|
|
9802
|
-
const Me =
|
|
9802
|
+
const Me = j.arrow?.x, at = j.arrow?.y, it = j.arrow?.centerOffset !== 0, [ge, ve] = w.useState();
|
|
9803
9803
|
return yt(() => {
|
|
9804
9804
|
b && ve(window.getComputedStyle(b).zIndex);
|
|
9805
9805
|
}, [b]), /* @__PURE__ */ g(
|
|
@@ -9814,13 +9814,13 @@ var is = "PopperContent", [Jw, Kw] = Kc(is), nl = w.forwardRef(
|
|
|
9814
9814
|
minWidth: "max-content",
|
|
9815
9815
|
zIndex: ge,
|
|
9816
9816
|
"--radix-popper-transform-origin": [
|
|
9817
|
-
|
|
9818
|
-
|
|
9817
|
+
j.transformOrigin?.x,
|
|
9818
|
+
j.transformOrigin?.y
|
|
9819
9819
|
].join(" "),
|
|
9820
9820
|
// hide the content if using the hide middleware and should be hidden
|
|
9821
9821
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
9822
9822
|
// as if the PopperContent isn't there at all
|
|
9823
|
-
...
|
|
9823
|
+
...j.hide?.referenceHidden && {
|
|
9824
9824
|
visibility: "hidden",
|
|
9825
9825
|
pointerEvents: "none"
|
|
9826
9826
|
}
|
|
@@ -9928,7 +9928,7 @@ var al = Qc, e_ = tl, t_ = nl, n_ = ol, r_ = "Portal", il = w.forwardRef((e, t)
|
|
|
9928
9928
|
const { container: n, ...r } = e, [o, s] = w.useState(!1);
|
|
9929
9929
|
yt(() => s(!0), []);
|
|
9930
9930
|
const i = n || o && globalThis?.document?.body;
|
|
9931
|
-
return i ?
|
|
9931
|
+
return i ? Bd.createPortal(/* @__PURE__ */ g(_e.div, { ...r, ref: t }), i) : null;
|
|
9932
9932
|
});
|
|
9933
9933
|
il.displayName = r_;
|
|
9934
9934
|
function o_(e, t) {
|
|
@@ -10014,7 +10014,7 @@ var f_ = w.forwardRef((e, t) => {
|
|
|
10014
10014
|
onEntryFocus: c,
|
|
10015
10015
|
preventScrollOnEntryFocus: d = !1,
|
|
10016
10016
|
...u
|
|
10017
|
-
} = e, h = w.useRef(null), f = Ee(t, h), m =
|
|
10017
|
+
} = e, h = w.useRef(null), f = Ee(t, h), m = Bc(s), [p, y] = ss({
|
|
10018
10018
|
prop: i,
|
|
10019
10019
|
defaultProp: a ?? null,
|
|
10020
10020
|
onChange: l,
|
|
@@ -10254,7 +10254,7 @@ function T_(e, t) {
|
|
|
10254
10254
|
})[0];
|
|
10255
10255
|
return n.callback = t, n.facade;
|
|
10256
10256
|
}
|
|
10257
|
-
var I_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect,
|
|
10257
|
+
var I_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, Ba = /* @__PURE__ */ new WeakMap();
|
|
10258
10258
|
function A_(e, t) {
|
|
10259
10259
|
var n = T_(null, function(r) {
|
|
10260
10260
|
return e.forEach(function(o) {
|
|
@@ -10262,7 +10262,7 @@ function A_(e, t) {
|
|
|
10262
10262
|
});
|
|
10263
10263
|
});
|
|
10264
10264
|
return I_(function() {
|
|
10265
|
-
var r =
|
|
10265
|
+
var r = Ba.get(n);
|
|
10266
10266
|
if (r) {
|
|
10267
10267
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
10268
10268
|
o.forEach(function(a) {
|
|
@@ -10271,7 +10271,7 @@ function A_(e, t) {
|
|
|
10271
10271
|
o.has(a) || ho(a, i);
|
|
10272
10272
|
});
|
|
10273
10273
|
}
|
|
10274
|
-
|
|
10274
|
+
Ba.set(n, e);
|
|
10275
10275
|
}, [e]), n;
|
|
10276
10276
|
}
|
|
10277
10277
|
function R_(e) {
|
|
@@ -10437,7 +10437,7 @@ var L_ = function() {
|
|
|
10437
10437
|
right: t[2],
|
|
10438
10438
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
10439
10439
|
};
|
|
10440
|
-
},
|
|
10440
|
+
}, B_ = yl(), Vt = "data-scroll-locked", j_ = function(e, t, n, r) {
|
|
10441
10441
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
10442
10442
|
return n === void 0 && (n = "margin"), `
|
|
10443
10443
|
.`.concat(C_, ` {
|
|
@@ -10481,13 +10481,13 @@ var L_ = function() {
|
|
|
10481
10481
|
`).concat(x_, ": ").concat(a, `px;
|
|
10482
10482
|
}
|
|
10483
10483
|
`);
|
|
10484
|
-
},
|
|
10484
|
+
}, ja = function() {
|
|
10485
10485
|
var e = parseInt(document.body.getAttribute(Vt) || "0", 10);
|
|
10486
10486
|
return isFinite(e) ? e : 0;
|
|
10487
10487
|
}, H_ = function() {
|
|
10488
10488
|
w.useEffect(function() {
|
|
10489
|
-
return document.body.setAttribute(Vt, (
|
|
10490
|
-
var e =
|
|
10489
|
+
return document.body.setAttribute(Vt, (ja() + 1).toString()), function() {
|
|
10490
|
+
var e = ja() - 1;
|
|
10491
10491
|
e <= 0 ? document.body.removeAttribute(Vt) : document.body.setAttribute(Vt, e.toString());
|
|
10492
10492
|
};
|
|
10493
10493
|
}, []);
|
|
@@ -10497,7 +10497,7 @@ var L_ = function() {
|
|
|
10497
10497
|
var s = w.useMemo(function() {
|
|
10498
10498
|
return U_(o);
|
|
10499
10499
|
}, [o]);
|
|
10500
|
-
return w.createElement(
|
|
10500
|
+
return w.createElement(B_, { styles: j_(s, !t, o, n ? "" : "!important") });
|
|
10501
10501
|
}, zo = !1;
|
|
10502
10502
|
if (typeof window < "u")
|
|
10503
10503
|
try {
|
|
@@ -10693,7 +10693,7 @@ var Fo = ["Enter", " "], sE = ["ArrowDown", "PageUp", "Home"], Sl = ["ArrowUp",
|
|
|
10693
10693
|
qc,
|
|
10694
10694
|
ll
|
|
10695
10695
|
]), Ln = qc(), xl = ll(), [Tl, Et] = Pt($n), [dE, zn] = Pt($n), Il = (e) => {
|
|
10696
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ln(t), [l, c] = w.useState(null), d = w.useRef(!1), u = tt(s), h =
|
|
10696
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ln(t), [l, c] = w.useState(null), d = w.useRef(!1), u = tt(s), h = Bc(o);
|
|
10697
10697
|
return w.useEffect(() => {
|
|
10698
10698
|
const f = () => {
|
|
10699
10699
|
d.current = !0, document.addEventListener("pointerdown", m, { capture: !0, once: !0 }), document.addEventListener("pointermove", m, { capture: !0, once: !0 });
|
|
@@ -10803,7 +10803,7 @@ var ke = "MenuContent", [mE, us] = Pt(ke), Ol = w.forwardRef(
|
|
|
10803
10803
|
})(X), ve && setTimeout(() => ve.focus());
|
|
10804
10804
|
};
|
|
10805
10805
|
w.useEffect(() => () => window.clearTimeout(z.current), []), Cw();
|
|
10806
|
-
const
|
|
10806
|
+
const j = w.useCallback((M) => O.current === I.current?.side && NE(M, I.current?.area), []);
|
|
10807
10807
|
return /* @__PURE__ */ g(
|
|
10808
10808
|
mE,
|
|
10809
10809
|
{
|
|
@@ -10811,21 +10811,21 @@ var ke = "MenuContent", [mE, us] = Pt(ke), Ol = w.forwardRef(
|
|
|
10811
10811
|
searchRef: N,
|
|
10812
10812
|
onItemEnter: w.useCallback(
|
|
10813
10813
|
(M) => {
|
|
10814
|
-
|
|
10814
|
+
j(M) && M.preventDefault();
|
|
10815
10815
|
},
|
|
10816
|
-
[
|
|
10816
|
+
[j]
|
|
10817
10817
|
),
|
|
10818
10818
|
onItemLeave: w.useCallback(
|
|
10819
10819
|
(M) => {
|
|
10820
|
-
|
|
10820
|
+
j(M) || (x.current?.focus(), T(null));
|
|
10821
10821
|
},
|
|
10822
|
-
[
|
|
10822
|
+
[j]
|
|
10823
10823
|
),
|
|
10824
10824
|
onTriggerLeave: w.useCallback(
|
|
10825
10825
|
(M) => {
|
|
10826
|
-
|
|
10826
|
+
j(M) && M.preventDefault();
|
|
10827
10827
|
},
|
|
10828
|
-
[
|
|
10828
|
+
[j]
|
|
10829
10829
|
),
|
|
10830
10830
|
pointerGraceTimerRef: F,
|
|
10831
10831
|
onPointerGraceIntentChange: w.useCallback((M) => {
|
|
@@ -11092,7 +11092,7 @@ var xE = "MenuArrow", Ul = w.forwardRef(
|
|
|
11092
11092
|
}
|
|
11093
11093
|
);
|
|
11094
11094
|
Ul.displayName = xE;
|
|
11095
|
-
var ms = "MenuSub", [TE,
|
|
11095
|
+
var ms = "MenuSub", [TE, Bl] = Pt(ms), jl = (e) => {
|
|
11096
11096
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Et(ms, t), i = Ln(t), [a, l] = w.useState(null), [c, d] = w.useState(null), u = tt(o);
|
|
11097
11097
|
return w.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ g(al, { ...i, children: /* @__PURE__ */ g(
|
|
11098
11098
|
Tl,
|
|
@@ -11116,10 +11116,10 @@ var ms = "MenuSub", [TE, jl] = Pt(ms), Bl = (e) => {
|
|
|
11116
11116
|
}
|
|
11117
11117
|
) });
|
|
11118
11118
|
};
|
|
11119
|
-
|
|
11119
|
+
jl.displayName = ms;
|
|
11120
11120
|
var un = "MenuSubTrigger", Hl = w.forwardRef(
|
|
11121
11121
|
(e, t) => {
|
|
11122
|
-
const n = Et(un, e.__scopeMenu), r = zn(un, e.__scopeMenu), o =
|
|
11122
|
+
const n = Et(un, e.__scopeMenu), r = zn(un, e.__scopeMenu), o = Bl(un, e.__scopeMenu), s = us(un, e.__scopeMenu), i = w.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = w.useCallback(() => {
|
|
11123
11123
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
11124
11124
|
}, []);
|
|
11125
11125
|
return w.useEffect(() => d, [d]), w.useEffect(() => {
|
|
@@ -11187,7 +11187,7 @@ var un = "MenuSubTrigger", Hl = w.forwardRef(
|
|
|
11187
11187
|
Hl.displayName = un;
|
|
11188
11188
|
var Vl = "MenuSubContent", Wl = w.forwardRef(
|
|
11189
11189
|
(e, t) => {
|
|
11190
|
-
const n = Al(ke, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Et(ke, e.__scopeMenu), i = zn(ke, e.__scopeMenu), a =
|
|
11190
|
+
const n = Al(ke, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Et(ke, e.__scopeMenu), i = zn(ke, e.__scopeMenu), a = Bl(Vl, e.__scopeMenu), l = w.useRef(null), c = Ee(t, l);
|
|
11191
11191
|
return /* @__PURE__ */ g(Sn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(Pn, { present: r || s.open, children: /* @__PURE__ */ g(Sn.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(
|
|
11192
11192
|
ds,
|
|
11193
11193
|
{
|
|
@@ -11262,7 +11262,7 @@ function NE(e, t) {
|
|
|
11262
11262
|
function Cn(e) {
|
|
11263
11263
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
11264
11264
|
}
|
|
11265
|
-
var kE = Il, ME = cs, PE = Rl, DE = Ol, $E = fs, LE = Nl, zE = Fr, FE = Ml, ZE = Dl, UE = Ll,
|
|
11265
|
+
var kE = Il, ME = cs, PE = Rl, DE = Ol, $E = fs, LE = Nl, zE = Fr, FE = Ml, ZE = Dl, UE = Ll, BE = Fl, jE = Zl, HE = Ul, VE = jl, WE = Hl, GE = Wl, Zr = "DropdownMenu", [YE] = Mn(
|
|
11266
11266
|
Zr,
|
|
11267
11267
|
[Cl]
|
|
11268
11268
|
), he = Cl(), [JE, Yl] = YE(Zr), Jl = (e) => {
|
|
@@ -11397,12 +11397,12 @@ var sS = "DropdownMenuRadioItem", aS = w.forwardRef((e, t) => {
|
|
|
11397
11397
|
aS.displayName = sS;
|
|
11398
11398
|
var iS = "DropdownMenuItemIndicator", cS = w.forwardRef((e, t) => {
|
|
11399
11399
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11400
|
-
return /* @__PURE__ */ g(
|
|
11400
|
+
return /* @__PURE__ */ g(BE, { ...o, ...r, ref: t });
|
|
11401
11401
|
});
|
|
11402
11402
|
cS.displayName = iS;
|
|
11403
11403
|
var lS = "DropdownMenuSeparator", ru = w.forwardRef((e, t) => {
|
|
11404
11404
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11405
|
-
return /* @__PURE__ */ g(
|
|
11405
|
+
return /* @__PURE__ */ g(jE, { ...o, ...r, ref: t });
|
|
11406
11406
|
});
|
|
11407
11407
|
ru.displayName = lS;
|
|
11408
11408
|
var uS = "DropdownMenuArrow", dS = w.forwardRef(
|
|
@@ -11612,7 +11612,7 @@ const RS = (e) => {
|
|
|
11612
11612
|
className: e,
|
|
11613
11613
|
defaultPlacement: t = "top-start"
|
|
11614
11614
|
}) => {
|
|
11615
|
-
const { dispatch: n, setChatId: r, setInitialMessages: o } = de(
|
|
11615
|
+
const { dispatch: n, setChatId: r, setInitialMessages: o } = de(Be), { dispatch: s } = de(Bo), { getAccessToken: i, user: a } = Ue(), [l, c] = je(), { data: d, isSuccess: u } = bt({
|
|
11616
11616
|
user: a?.username,
|
|
11617
11617
|
getAccessToken: i
|
|
11618
11618
|
}), h = (p, y) => {
|
|
@@ -11696,7 +11696,7 @@ const RS = (e) => {
|
|
|
11696
11696
|
const {
|
|
11697
11697
|
state: { reasoningText: t },
|
|
11698
11698
|
dispatch: n
|
|
11699
|
-
} = de(
|
|
11699
|
+
} = de(Be), [r, o] = je(), [s, i] = U(!1), [a, l] = Ne({
|
|
11700
11700
|
key: Te + Nu,
|
|
11701
11701
|
initialValue: ""
|
|
11702
11702
|
}), [c, d] = U(!1), u = () => {
|
|
@@ -11764,7 +11764,7 @@ const RS = (e) => {
|
|
|
11764
11764
|
}) => {
|
|
11765
11765
|
const { getAccessToken: t, user: n } = Ue(), {
|
|
11766
11766
|
state: { loading: r, streaming: o }
|
|
11767
|
-
} = de(
|
|
11767
|
+
} = de(Be), [s, i] = je(), { data: a, isSuccess: l } = bt({
|
|
11768
11768
|
user: n?.username,
|
|
11769
11769
|
getAccessToken: t
|
|
11770
11770
|
});
|
|
@@ -11820,8 +11820,8 @@ const RS = (e) => {
|
|
|
11820
11820
|
messages: n,
|
|
11821
11821
|
getAccessToken: r
|
|
11822
11822
|
}) => {
|
|
11823
|
-
const [o, s] =
|
|
11824
|
-
|
|
11823
|
+
const [o, s] = je(), [i, a] = U(!1), [l, c] = U(null), [d, u] = U(!1), [h, f] = U(!1), [m, p] = U(!1), [y, b] = U(null), [_, v] = U(!1), E = oi();
|
|
11824
|
+
B(() => {
|
|
11825
11825
|
a(!1), c(null), b(null), v(!1), f(!1), p(!1), t || u(!1);
|
|
11826
11826
|
}, [t]);
|
|
11827
11827
|
const S = V(async () => {
|
|
@@ -12080,7 +12080,7 @@ function FS(e) {
|
|
|
12080
12080
|
const [t, n] = U(
|
|
12081
12081
|
() => Ka()
|
|
12082
12082
|
);
|
|
12083
|
-
return
|
|
12083
|
+
return B(() => {
|
|
12084
12084
|
const r = setInterval(() => {
|
|
12085
12085
|
const o = Ka();
|
|
12086
12086
|
n((s) => s !== o ? o : s);
|
|
@@ -12092,7 +12092,7 @@ function Ka() {
|
|
|
12092
12092
|
const e = (/* @__PURE__ */ new Date()).getHours();
|
|
12093
12093
|
return e >= 5 && e < 11 ? _d : e >= 11 && e < 12 ? Ed : e >= 12 && e < 17 ? Sd : e >= 17 && e < 21 ? Cd : e >= 21 && e < 24 ? xd : Td;
|
|
12094
12094
|
}
|
|
12095
|
-
const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"],
|
|
12095
|
+
const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], BS = [
|
|
12096
12096
|
".js",
|
|
12097
12097
|
".cjs",
|
|
12098
12098
|
".mjs",
|
|
@@ -12108,9 +12108,9 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12108
12108
|
".md"
|
|
12109
12109
|
], Tt = [
|
|
12110
12110
|
...US,
|
|
12111
|
-
...
|
|
12111
|
+
...BS,
|
|
12112
12112
|
...ZS
|
|
12113
|
-
], Zo = 400 * 1024,
|
|
12113
|
+
], Zo = 400 * 1024, jS = "text/plain", dr = (e) => {
|
|
12114
12114
|
if (e === 0)
|
|
12115
12115
|
return "0 Bytes";
|
|
12116
12116
|
const t = 1024, n = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
|
|
@@ -12120,7 +12120,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12120
12120
|
// Use the original file content
|
|
12121
12121
|
e.name,
|
|
12122
12122
|
{
|
|
12123
|
-
type:
|
|
12123
|
+
type: jS,
|
|
12124
12124
|
lastModified: e.lastModified
|
|
12125
12125
|
}
|
|
12126
12126
|
), VS = () => pt(
|
|
@@ -12281,12 +12281,12 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12281
12281
|
provider: v,
|
|
12282
12282
|
privateChat: E
|
|
12283
12283
|
}
|
|
12284
|
-
} = de(
|
|
12284
|
+
} = de(Be), { state: S, dispatch: T } = de(Bo), { data: x, isSuccess: R } = bt({
|
|
12285
12285
|
user: e?.username,
|
|
12286
12286
|
getAccessToken: t
|
|
12287
|
-
}), z = G(null), N = G(null), F = G(!1), I = G(0), O = G(0), k = G(null), $ = G(null), Y = Ad(), [ee,
|
|
12287
|
+
}), z = G(null), N = G(null), F = G(!1), I = G(0), O = G(0), k = G(null), $ = G(null), Y = Ad(), [ee, j] = je(), M = KS({
|
|
12288
12288
|
oledMode: h,
|
|
12289
|
-
placeholderColor: ee(
|
|
12289
|
+
placeholderColor: ee(j.Placeholder)
|
|
12290
12290
|
}), X = r && x?.showReasoningButton, { setMessages: Ce, status: Me, id: at, sendMessage: it, input: ge, setInput: ve, messages: re } = _t({
|
|
12291
12291
|
onFinish: (W) => {
|
|
12292
12292
|
const le = W.message?.metadata;
|
|
@@ -12297,12 +12297,12 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12297
12297
|
}
|
|
12298
12298
|
});
|
|
12299
12299
|
}
|
|
12300
|
-
}), St = FS(!!re.length),
|
|
12300
|
+
}), St = FS(!!re.length), Br = V(
|
|
12301
12301
|
(W) => {
|
|
12302
12302
|
ve(W.target.value);
|
|
12303
12303
|
},
|
|
12304
12304
|
[ve]
|
|
12305
|
-
),
|
|
12305
|
+
), jr = V(
|
|
12306
12306
|
(W, fe) => {
|
|
12307
12307
|
if (W.preventDefault(), ge.trim()) {
|
|
12308
12308
|
const le = {
|
|
@@ -12374,11 +12374,11 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12374
12374
|
},
|
|
12375
12375
|
[f, Ce, y]
|
|
12376
12376
|
);
|
|
12377
|
-
|
|
12377
|
+
B(() => {
|
|
12378
12378
|
Me && Fn(Me);
|
|
12379
|
-
}, [Me, Fn]),
|
|
12379
|
+
}, [Me, Fn]), B(() => {
|
|
12380
12380
|
x?.sendOnEnter !== void 0 && d(x.sendOnEnter);
|
|
12381
|
-
}, [x]),
|
|
12381
|
+
}, [x]), B(() => {
|
|
12382
12382
|
u.current = s;
|
|
12383
12383
|
}, [s]);
|
|
12384
12384
|
const nn = V(() => {
|
|
@@ -12453,7 +12453,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12453
12453
|
), ct = new DataTransfer();
|
|
12454
12454
|
rn.forEach((Zn) => ct.items.add(Zn)), le = ct.files;
|
|
12455
12455
|
}
|
|
12456
|
-
|
|
12456
|
+
jr(W, {
|
|
12457
12457
|
headers: {
|
|
12458
12458
|
"Content-Type": "application/json",
|
|
12459
12459
|
authorization: `Bearer ${fe}`,
|
|
@@ -12465,7 +12465,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12465
12465
|
files: le
|
|
12466
12466
|
}), _u();
|
|
12467
12467
|
}, Eu = (W) => {
|
|
12468
|
-
nn(),
|
|
12468
|
+
nn(), Br(W);
|
|
12469
12469
|
};
|
|
12470
12470
|
Xo([
|
|
12471
12471
|
[
|
|
@@ -12474,7 +12474,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12474
12474
|
$ && $.current && !Ke() && $.current.focus();
|
|
12475
12475
|
}
|
|
12476
12476
|
]
|
|
12477
|
-
]),
|
|
12477
|
+
]), B(() => {
|
|
12478
12478
|
if (S.prompt !== "") {
|
|
12479
12479
|
const W = S.prompt.endsWith(":") && !S.prompt.endsWith(": ") ? S.prompt + " " : S.prompt;
|
|
12480
12480
|
W.indexOf(Es) !== -1 ? navigator.clipboard.readText().then((le) => {
|
|
@@ -12484,7 +12484,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12484
12484
|
type: ti
|
|
12485
12485
|
});
|
|
12486
12486
|
}
|
|
12487
|
-
}, [S, T, ve]),
|
|
12487
|
+
}, [S, T, ve]), B(() => {
|
|
12488
12488
|
if (F.current === !1) {
|
|
12489
12489
|
F.current = !0, !ge && tr($);
|
|
12490
12490
|
return;
|
|
@@ -12495,11 +12495,11 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12495
12495
|
!ge && !W && tr($), $.current.focus();
|
|
12496
12496
|
}
|
|
12497
12497
|
}, c0)) : p === !1 && !ge && (tr($), !Ke() && $.current && $.current.focus());
|
|
12498
|
-
}, [b, p, ge]),
|
|
12498
|
+
}, [b, p, ge]), B(() => {
|
|
12499
12499
|
Date.now() - O.current < 200 && ge && requestAnimationFrame(() => {
|
|
12500
12500
|
nn();
|
|
12501
12501
|
});
|
|
12502
|
-
}, [ge, nn]),
|
|
12502
|
+
}, [ge, nn]), B(() => {
|
|
12503
12503
|
_ === 0 && (N.current && (N.current.value = ""), i(null));
|
|
12504
12504
|
}, [_]);
|
|
12505
12505
|
const Su = Ht(Ut.ADDON.SHARE_CHAT), Cu = re && re.some((W) => W.role === pr) && re.some((W) => W.role === Wt), xu = Su && R && x?.allowChatSharing && Cu;
|
|
@@ -12612,16 +12612,16 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12612
12612
|
}, nr = "--sassy-bottom", g0 = ({ isComponent: e }) => {
|
|
12613
12613
|
const {
|
|
12614
12614
|
state: { loading: t, streaming: n, restoring: r }
|
|
12615
|
-
} = de(
|
|
12615
|
+
} = de(Be), {
|
|
12616
12616
|
state: { footerHeight: o, footerPosition: s, fullScreen: i },
|
|
12617
12617
|
dispatch: a
|
|
12618
12618
|
} = de(Tn), [l] = U(
|
|
12619
12619
|
() => Ss[Math.floor(Math.random() * Ss.length)]
|
|
12620
|
-
), c = Ie(() => Ke(), []), d = Ie(() => af(), []), { messages: u } = _t(), [h, f] = fi(), [m, p] =
|
|
12620
|
+
), c = Ie(() => Ke(), []), d = Ie(() => af(), []), { messages: u } = _t(), [h, f] = fi(), [m, p] = je(), y = yy(d), { height: b } = my(), { height: _ } = hy(), v = d ? 0 : b - _, E = Ie(() => {
|
|
12621
12621
|
const S = c ? $u : d ? Lu : ai;
|
|
12622
12622
|
return c ? v > 70 && v < 500 ? Yr / 2 : S : d ? y ? Yr : S : v > 0 && v < 100 ? Yr : S;
|
|
12623
12623
|
}, [v, c, d, y]);
|
|
12624
|
-
return
|
|
12624
|
+
return B(() => {
|
|
12625
12625
|
o !== f.height && a({
|
|
12626
12626
|
type: Rd,
|
|
12627
12627
|
payload: {
|
|
@@ -12724,7 +12724,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12724
12724
|
state: { privateChat: n },
|
|
12725
12725
|
setChatId: r,
|
|
12726
12726
|
setInitialMessages: o
|
|
12727
|
-
} = de(
|
|
12727
|
+
} = de(Be), { getAccessToken: s, user: i } = Ue(), { status: a } = _t(), { allowedModels: l, status: c } = Uo(), [d, u] = je(), [h, f] = U(!1), m = V(() => {
|
|
12728
12728
|
h || (kb(), f(!0));
|
|
12729
12729
|
}, [h]), {
|
|
12730
12730
|
isSuccess: p,
|
|
@@ -12743,7 +12743,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12743
12743
|
return O.length > 0 ? O : yo;
|
|
12744
12744
|
}
|
|
12745
12745
|
return yo;
|
|
12746
|
-
}, [l, c]), v = Ie(() => bs(l, c) ?
|
|
12746
|
+
}, [l, c]), v = Ie(() => bs(l, c) ? Bu(l) : /* @__PURE__ */ new Map(), [l, c]), E = Ie(() => {
|
|
12747
12747
|
if (!b?.useNestedModelSelection)
|
|
12748
12748
|
return !1;
|
|
12749
12749
|
for (const I of v.values())
|
|
@@ -12876,38 +12876,38 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12876
12876
|
}, y0 = wt(
|
|
12877
12877
|
() => import(
|
|
12878
12878
|
/* webpackChunkName: "modal-chunk" */
|
|
12879
|
-
"./ProfileEntry.
|
|
12879
|
+
"./ProfileEntry.Bh-oJdu6.js"
|
|
12880
12880
|
).then((e) => ({
|
|
12881
12881
|
default: e.Profile
|
|
12882
12882
|
}))
|
|
12883
12883
|
), b0 = wt(
|
|
12884
12884
|
() => import(
|
|
12885
12885
|
/* webpackChunkName: "modal-chunk" */
|
|
12886
|
-
"./SettingsEntry.
|
|
12886
|
+
"./SettingsEntry.vtZtGtrS.js"
|
|
12887
12887
|
).then((e) => ({
|
|
12888
12888
|
default: e.SettingsPanel
|
|
12889
12889
|
}))
|
|
12890
12890
|
), w0 = wt(
|
|
12891
12891
|
() => import(
|
|
12892
12892
|
/* webpackChunkName: "modal-chunk" */
|
|
12893
|
-
"./HistoryEntry.
|
|
12893
|
+
"./HistoryEntry.9Ytq4UZ2.js"
|
|
12894
12894
|
).then((e) => ({
|
|
12895
12895
|
default: e.HistoryPanel
|
|
12896
12896
|
}))
|
|
12897
12897
|
), _0 = wt(
|
|
12898
12898
|
() => import(
|
|
12899
12899
|
/* webpackChunkName: "modal-chunk" */
|
|
12900
|
-
"./AboutEntry.
|
|
12900
|
+
"./AboutEntry.Co65kh5i.js"
|
|
12901
12901
|
).then((e) => ({ default: e.About }))
|
|
12902
12902
|
), E0 = wt(
|
|
12903
12903
|
() => import(
|
|
12904
12904
|
/* webpackChunkName: "modal-chunk" */
|
|
12905
|
-
"./UsageEntry.
|
|
12905
|
+
"./UsageEntry.AVpqOs3U.js"
|
|
12906
12906
|
).then((e) => ({ default: e.Usage }))
|
|
12907
12907
|
), S0 = wt(
|
|
12908
12908
|
() => import(
|
|
12909
12909
|
/* webpackChunkName: "modal-chunk" */
|
|
12910
|
-
"./MemoriesEntry.
|
|
12910
|
+
"./MemoriesEntry.BMnrCzPP.js"
|
|
12911
12911
|
).then((e) => ({ default: e.default }))
|
|
12912
12912
|
), C0 = ({
|
|
12913
12913
|
open: e,
|
|
@@ -12922,7 +12922,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12922
12922
|
user: n?.username
|
|
12923
12923
|
}
|
|
12924
12924
|
);
|
|
12925
|
-
}, x0 = ({ type: e, open: t, onOpenChange: n }) => (
|
|
12925
|
+
}, x0 = ({ type: e, open: t, onOpenChange: n }) => (B(() => {
|
|
12926
12926
|
if (!(!t || !Yt()))
|
|
12927
12927
|
return document.documentElement.dataset.modalTint = "darker", document.body.dataset.modalTint = "darker", () => {
|
|
12928
12928
|
delete document.documentElement.dataset.modalTint, delete document.body.dataset.modalTint;
|
|
@@ -12949,11 +12949,11 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12949
12949
|
}) => {
|
|
12950
12950
|
const {
|
|
12951
12951
|
state: { oledMode: t }
|
|
12952
|
-
} = de(Tn), { state: n } = de(pi), { logout: r, getAccessToken: o, user: s } = Ue(), i = oi(), [a, l] =
|
|
12952
|
+
} = de(Tn), { state: n } = de(pi), { logout: r, getAccessToken: o, user: s } = Ue(), i = oi(), [a, l] = je(), { data: c, isSuccess: d } = bt({
|
|
12953
12953
|
user: s?.username,
|
|
12954
12954
|
getAccessToken: o
|
|
12955
12955
|
}), [u, h] = U(null), [f, m] = U(!1), [p, y] = U(!1), [b, _] = U(!1), [v, E] = U(!1), S = Ht(Ut.TOOL.MEMORIES), [T] = Ne({
|
|
12956
|
-
key: Te +
|
|
12956
|
+
key: Te + ju,
|
|
12957
12957
|
initialValue: !0
|
|
12958
12958
|
}), [x] = Ne({
|
|
12959
12959
|
key: Te + Hu,
|
|
@@ -12966,36 +12966,36 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
12966
12966
|
enabled: v,
|
|
12967
12967
|
user: s?.username || "",
|
|
12968
12968
|
searchString: n.searchString || "",
|
|
12969
|
-
sortDirection: n.sortDirection ||
|
|
12969
|
+
sortDirection: n.sortDirection || Bt.DESC,
|
|
12970
12970
|
sortedCell: n.sortedCell || wo,
|
|
12971
12971
|
getAccessToken: o,
|
|
12972
12972
|
keywordMatchAll: T,
|
|
12973
12973
|
withMediaOnly: x,
|
|
12974
12974
|
withSharedOnly: R
|
|
12975
|
-
}),
|
|
12975
|
+
}), B(() => {
|
|
12976
12976
|
d && c && S && _(c?.useMemory ?? !1);
|
|
12977
12977
|
}, [d, c, S]);
|
|
12978
12978
|
const z = V(() => {
|
|
12979
12979
|
p || Promise.all([
|
|
12980
12980
|
import(
|
|
12981
12981
|
/* webpackChunkName: "modal-chunk" */
|
|
12982
|
-
"./ProfileEntry.
|
|
12982
|
+
"./ProfileEntry.Bh-oJdu6.js"
|
|
12983
12983
|
),
|
|
12984
12984
|
import(
|
|
12985
12985
|
/* webpackChunkName: "modal-chunk" */
|
|
12986
|
-
"./SettingsEntry.
|
|
12986
|
+
"./SettingsEntry.vtZtGtrS.js"
|
|
12987
12987
|
),
|
|
12988
12988
|
import(
|
|
12989
12989
|
/* webpackChunkName: "modal-chunk" */
|
|
12990
|
-
"./HistoryEntry.
|
|
12990
|
+
"./HistoryEntry.9Ytq4UZ2.js"
|
|
12991
12991
|
),
|
|
12992
12992
|
import(
|
|
12993
12993
|
/* webpackChunkName: "modal-chunk" */
|
|
12994
|
-
"./AboutEntry.
|
|
12994
|
+
"./AboutEntry.Co65kh5i.js"
|
|
12995
12995
|
),
|
|
12996
12996
|
import(
|
|
12997
12997
|
/* webpackChunkName: "modal-chunk" */
|
|
12998
|
-
"./UsageEntry.
|
|
12998
|
+
"./UsageEntry.AVpqOs3U.js"
|
|
12999
12999
|
)
|
|
13000
13000
|
]).finally(() => y(!0));
|
|
13001
13001
|
}, [p]), N = V(($) => {
|
|
@@ -13088,7 +13088,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
13088
13088
|
{
|
|
13089
13089
|
label: "Profile",
|
|
13090
13090
|
onClick: () => N("profile"),
|
|
13091
|
-
icon: /* @__PURE__ */ g(
|
|
13091
|
+
icon: /* @__PURE__ */ g(Bn, { size: "size-4", className: "invisible" })
|
|
13092
13092
|
}
|
|
13093
13093
|
),
|
|
13094
13094
|
/* @__PURE__ */ g(
|
|
@@ -13113,7 +13113,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
13113
13113
|
{
|
|
13114
13114
|
label: "Memories",
|
|
13115
13115
|
onClick: () => N("memories"),
|
|
13116
|
-
icon: /* @__PURE__ */ g(
|
|
13116
|
+
icon: /* @__PURE__ */ g(Bn, { size: "size-4", className: "invisible" })
|
|
13117
13117
|
}
|
|
13118
13118
|
),
|
|
13119
13119
|
!e && /* @__PURE__ */ g(
|
|
@@ -13129,7 +13129,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
13129
13129
|
{
|
|
13130
13130
|
label: "About",
|
|
13131
13131
|
onClick: () => N("about"),
|
|
13132
|
-
icon: /* @__PURE__ */ g(
|
|
13132
|
+
icon: /* @__PURE__ */ g(Bn, { size: "size-4", className: "invisible" })
|
|
13133
13133
|
}
|
|
13134
13134
|
),
|
|
13135
13135
|
!e && /* @__PURE__ */ L(rt, { children: [
|
|
@@ -13139,7 +13139,7 @@ const ZS = [".png", ".jpg", ".jpeg", ".webp"], US = [".pdf", ".txt"], jS = [
|
|
|
13139
13139
|
{
|
|
13140
13140
|
label: "Log out",
|
|
13141
13141
|
onClick: O,
|
|
13142
|
-
icon: /* @__PURE__ */ g("div", { className: "text-copy-error-dark", children: /* @__PURE__ */ g(
|
|
13142
|
+
icon: /* @__PURE__ */ g("div", { className: "text-copy-error-dark", children: /* @__PURE__ */ g(Bn, { size: "size-4", monotone: !0 }) })
|
|
13143
13143
|
}
|
|
13144
13144
|
)
|
|
13145
13145
|
] })
|
|
@@ -13368,12 +13368,12 @@ const Qa = "av-spinner", hu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
13368
13368
|
}, ei = 1, $0 = 150, L0 = wt(
|
|
13369
13369
|
() => import(
|
|
13370
13370
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
13371
|
-
"./ChatBubbleAssistant.
|
|
13371
|
+
"./ChatBubbleAssistant.C8_uMynh.js"
|
|
13372
13372
|
)
|
|
13373
13373
|
), z0 = wt(
|
|
13374
13374
|
() => import(
|
|
13375
13375
|
/* webpackChunkName: "LazyMessageUser" */
|
|
13376
|
-
"./ChatBubbleUser.
|
|
13376
|
+
"./ChatBubbleUser.CTMbbRxr.js"
|
|
13377
13377
|
)
|
|
13378
13378
|
), F0 = Ve.memo(
|
|
13379
13379
|
({
|
|
@@ -13389,7 +13389,7 @@ const Qa = "av-spinner", hu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
13389
13389
|
const [l, c] = U(!0), d = G(Date.now()), [u] = U(
|
|
13390
13390
|
() => o && (s === "streaming" || s === "submitted")
|
|
13391
13391
|
);
|
|
13392
|
-
return
|
|
13392
|
+
return B(() => {
|
|
13393
13393
|
if (o && l && t && t.trim().length >= ei) {
|
|
13394
13394
|
const f = Date.now() - d.current, m = $0 - f;
|
|
13395
13395
|
if (m > 0) {
|
|
@@ -13470,12 +13470,12 @@ const gu = Ve.forwardRef((e, t) => {
|
|
|
13470
13470
|
] }) : null;
|
|
13471
13471
|
});
|
|
13472
13472
|
gu.displayName = "MessagesList";
|
|
13473
|
-
const
|
|
13473
|
+
const B0 = () => {
|
|
13474
13474
|
const { isAuthenticated: e } = Ue(), { ref: t, inViewport: n } = I0(), r = G(null), o = G(null), s = G(null), i = G(null), [a, l] = U(0), {
|
|
13475
13475
|
state: { footerPosition: c, footerHeight: d, footerOffset: u, oledMode: h }
|
|
13476
13476
|
} = de(Tn), {
|
|
13477
13477
|
state: { loading: f, streaming: m, scrollToBottomTrigger: p }
|
|
13478
|
-
} = de(
|
|
13478
|
+
} = de(Be), { messages: y } = _t(), b = G(0), _ = G(!1), v = G(0), E = G(0), S = G(0), { data: T, isSuccess: x } = Gu(), R = Yu({
|
|
13479
13479
|
isAuthenticated: e,
|
|
13480
13480
|
oledMode: h,
|
|
13481
13481
|
extraClass: "rounded-b-md relative border-b-16 border-transparent"
|
|
@@ -13507,14 +13507,14 @@ const j0 = () => {
|
|
|
13507
13507
|
block: "start"
|
|
13508
13508
|
});
|
|
13509
13509
|
}, []);
|
|
13510
|
-
return
|
|
13510
|
+
return B(() => {
|
|
13511
13511
|
if (f && y && y.length > 0 && r.current) {
|
|
13512
13512
|
const I = r.current.clientHeight;
|
|
13513
13513
|
v.current = r.current.scrollHeight, E.current = I, l(I);
|
|
13514
13514
|
}
|
|
13515
|
-
}, [f, y]),
|
|
13515
|
+
}, [f, y]), B(() => {
|
|
13516
13516
|
(!y || y.length === 0) && l(0);
|
|
13517
|
-
}, [y]),
|
|
13517
|
+
}, [y]), B(() => {
|
|
13518
13518
|
if (_.current && !m && !f && a > 0 && r.current) {
|
|
13519
13519
|
const O = r.current.scrollHeight - v.current, k = Math.max(
|
|
13520
13520
|
0,
|
|
@@ -13523,11 +13523,11 @@ const j0 = () => {
|
|
|
13523
13523
|
l(k);
|
|
13524
13524
|
}
|
|
13525
13525
|
_.current = m;
|
|
13526
|
-
}, [m, f, a]),
|
|
13526
|
+
}, [m, f, a]), B(() => {
|
|
13527
13527
|
f && y && y.length > 0 && F();
|
|
13528
|
-
}, [f, F, y]),
|
|
13528
|
+
}, [f, F, y]), B(() => {
|
|
13529
13529
|
p > 0 && p !== S.current && (S.current = p, N());
|
|
13530
|
-
}, [p, N]),
|
|
13530
|
+
}, [p, N]), B(() => {
|
|
13531
13531
|
b.current = c === fn ? d + u + ii + Ju + 15 : 0;
|
|
13532
13532
|
}, [c, d, u]), /* @__PURE__ */ L(rt, { children: [
|
|
13533
13533
|
/* @__PURE__ */ L("div", { className: R, ref: r, children: [
|
|
@@ -13575,10 +13575,10 @@ function vu({
|
|
|
13575
13575
|
initialValue: wo
|
|
13576
13576
|
}), [m] = Ne({
|
|
13577
13577
|
key: Te + od,
|
|
13578
|
-
initialValue:
|
|
13578
|
+
initialValue: Bt.DESC
|
|
13579
13579
|
}), [p] = Ne({
|
|
13580
13580
|
key: Te + sd,
|
|
13581
|
-
initialValue:
|
|
13581
|
+
initialValue: Bt.ASC
|
|
13582
13582
|
}), [y] = Ne({
|
|
13583
13583
|
key: nd,
|
|
13584
13584
|
initialValue: !1
|
|
@@ -13644,24 +13644,24 @@ function vu({
|
|
|
13644
13644
|
setInitialMessages: u,
|
|
13645
13645
|
dispatchChat: O,
|
|
13646
13646
|
lastResetTimestamp: I.lastResetTimestamp
|
|
13647
|
-
}),
|
|
13647
|
+
}), B(() => {
|
|
13648
13648
|
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
|
13649
|
-
}, []),
|
|
13649
|
+
}, []), B(() => {
|
|
13650
13650
|
qu(y), E({
|
|
13651
13651
|
type: Fd,
|
|
13652
13652
|
payload: { oledMode: y }
|
|
13653
13653
|
});
|
|
13654
|
-
}, [y]),
|
|
13654
|
+
}, [y]), B(() => {
|
|
13655
13655
|
E({
|
|
13656
13656
|
type: Zd,
|
|
13657
13657
|
payload: { fullScreen: b }
|
|
13658
13658
|
});
|
|
13659
|
-
}, [b]),
|
|
13659
|
+
}, [b]), B(() => {
|
|
13660
13660
|
k?.themePalette && E({
|
|
13661
13661
|
type: Ud,
|
|
13662
13662
|
payload: { themePalette: k.themePalette }
|
|
13663
13663
|
});
|
|
13664
|
-
}, [k]),
|
|
13664
|
+
}, [k]), B(() => {
|
|
13665
13665
|
k && k.provider && O({
|
|
13666
13666
|
type: yc,
|
|
13667
13667
|
payload: {
|
|
@@ -13693,11 +13693,11 @@ function vu({
|
|
|
13693
13693
|
dispatch: z
|
|
13694
13694
|
},
|
|
13695
13695
|
children: /* @__PURE__ */ g(Tn.Provider, { value: { state: v, dispatch: E }, children: /* @__PURE__ */ g(
|
|
13696
|
-
|
|
13696
|
+
Bo.Provider,
|
|
13697
13697
|
{
|
|
13698
13698
|
value: { state: N, dispatch: F },
|
|
13699
13699
|
children: /* @__PURE__ */ g(
|
|
13700
|
-
|
|
13700
|
+
Be.Provider,
|
|
13701
13701
|
{
|
|
13702
13702
|
value: {
|
|
13703
13703
|
state: I,
|
|
@@ -13738,7 +13738,7 @@ function vu({
|
|
|
13738
13738
|
style: {
|
|
13739
13739
|
height: o
|
|
13740
13740
|
},
|
|
13741
|
-
children: /* @__PURE__ */ g(
|
|
13741
|
+
children: /* @__PURE__ */ g(B0, {})
|
|
13742
13742
|
}
|
|
13743
13743
|
),
|
|
13744
13744
|
/* @__PURE__ */ g(g0, { isComponent: e })
|
|
@@ -13768,7 +13768,7 @@ export {
|
|
|
13768
13768
|
Tr as DropdownMenuGroupLabel,
|
|
13769
13769
|
ze as DropdownMenuItem,
|
|
13770
13770
|
iu as DropdownMenuSub,
|
|
13771
|
-
|
|
13771
|
+
jb as Panel,
|
|
13772
13772
|
Dr as ResponsiveTooltip,
|
|
13773
13773
|
nw as Toggle,
|
|
13774
13774
|
q0 as debounce,
|