@versini/sassysaint 8.0.5 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.7g8qHZP1.js → App.1PlOa-0g.js} +809 -784
- package/dist/chunks/{ChatBubbleAssistant.DJmgnp6c.js → ChatBubbleAssistant.BeefC-md.js} +5 -5
- package/dist/chunks/{MarkdownWithExtra.DBGr5RNo.js → MarkdownWithExtra.uh4jbRSq.js} +3 -3
- package/dist/chunks/{index.BWKilSZX.js → index.LpUeZZHT.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c, jsxs as C, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { f as J, ACTION_SORT as Dr, ACTION_SEARCH as
|
|
2
|
+
import { f as J, ACTION_SORT as Dr, ACTION_SEARCH as Ss, ACTION_RESET_PROMPT as As, ACTION_TOGGLE_PROMPT as Rs, useSWR as Ht, DEFAULT_AI_PROVIDER as Zi, isElectron as Fr, isProbablyiPhone as zr, re as Te, DEFAULT_ICON_ACTION_SIZE as Re, L as ir, j as Oe, C as Qe, LOCAL_STORAGE_PREFIX as nt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Qi, un as de, useUserPreferences as lr, serviceCall as _t, SERVICE_TYPES as It, PROVIDER_ANTHROPIC as _r, PROVIDER_OPENAI as sa, setNewProvider as Ms, PROMPT_CLASSNAME as el, PROMPT_EDITABLE_AREA_CLASSNAME as tl, ROLE_INTERNAL as Ur, ERROR_MESSAGE as rl, CLIPBOARD_PROMPT as oa, INPUT_PLACEHOLDER_TEXT as ia, FOOTER_DISCLAIMER as nl, useServerCapabilities as al, R as ve, CARDS as X, renderDataAsList as Zt, pluralize as pn, ABOUT_TITLE as sl, INFINITE_SCROLL_LIMIT as la, INFINITE_SCROLL_THRESHOLD as ca, LOCAL_STORAGE_SORT as Vs, useChatsHistory as ol, LOCAL_STORAGE_SEARCH as Ps, HISTORY_TITLE as il, fe as ll, debounce as cl, M as dl, l as da, durationFormatter as ul, useUserChatStats as hl, PROFILE_TITLE as fl, LOCAL_STORAGE_CHAT_DETAILS as ml, SETTINGS_TITLE as pl, APP_NAME as gl, PROMPTS_DESCRIPTION as yl, getCurrentGeoLocation as bl, LOG_OUT as ua, ROLE_ASSISTANT as vl, ROLE_USER as wl, getMessageContaintWrapperClass as kl, UI_FOOTER_BUFFER as Bs, UI_BUTTON_SCROLL_BUFFER as xl, Logo as Tl, UI_DEFAULT_MAIN_HEIGHT as ha, usePreloadChatsHistory as _l, serverUrl as Il, getMainPaddingClass as fa, I as El } from "./index.LpUeZZHT.js";
|
|
3
3
|
import p from "clsx";
|
|
4
4
|
import * as ee from "react";
|
|
5
|
-
import Y, { useEffect as L, useRef as M, useState as $, useCallback as K, useSyncExternalStore as
|
|
6
|
-
import { useMergeRefs as
|
|
7
|
-
function
|
|
5
|
+
import Y, { useEffect as L, useRef as M, useState as $, useCallback as K, useSyncExternalStore as Cl, useMemo as ye, useId as cr, useLayoutEffect as le, useContext as W, createContext as Nl, forwardRef as Os, Fragment as Sl, useReducer as bt, lazy as Al, Suspense as ma } from "react";
|
|
6
|
+
import { useMergeRefs as gn, FloatingPortal as Ls, FloatingOverlay as Rl, FloatingFocusManager as $s, useFloating as Ds, useClick as Fs, useDismiss as zs, useRole as Us, useInteractions as Hs, useFloatingTree as js, useFloatingNodeId as Ml, useListItem as Ws, offset as Vl, flip as Pl, shift as Bl, autoUpdate as Ol, useListNavigation as Ll, useTypeahead as $l, FloatingNode as Dl, FloatingList as Fl, FloatingTree as zl } from "@floating-ui/react";
|
|
7
|
+
function Ks(e) {
|
|
8
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const Hr = ({
|
|
11
11
|
className: e,
|
|
12
12
|
viewBox: t,
|
|
13
13
|
title: r,
|
|
@@ -24,7 +24,7 @@ const Ur = ({
|
|
|
24
24
|
...a,
|
|
25
25
|
children: /* @__PURE__ */ c("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), Ul = ({
|
|
28
28
|
className: e,
|
|
29
29
|
viewBox: t,
|
|
30
30
|
title: r,
|
|
@@ -50,7 +50,7 @@ const Ur = ({
|
|
|
50
50
|
/* @__PURE__ */ c("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), Hl = ({
|
|
54
54
|
className: e,
|
|
55
55
|
viewBox: t,
|
|
56
56
|
title: r,
|
|
@@ -76,7 +76,7 @@ const Ur = ({
|
|
|
76
76
|
/* @__PURE__ */ c("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
|
-
),
|
|
79
|
+
), jl = ({
|
|
80
80
|
className: e,
|
|
81
81
|
viewBox: t,
|
|
82
82
|
title: r,
|
|
@@ -99,7 +99,7 @@ const Ur = ({
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
}
|
|
102
|
-
),
|
|
102
|
+
), Wl = ({
|
|
103
103
|
className: e,
|
|
104
104
|
viewBox: t,
|
|
105
105
|
title: r,
|
|
@@ -125,7 +125,7 @@ const Ur = ({
|
|
|
125
125
|
/* @__PURE__ */ c("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
|
|
126
126
|
]
|
|
127
127
|
}
|
|
128
|
-
),
|
|
128
|
+
), Kl = ({
|
|
129
129
|
className: e,
|
|
130
130
|
viewBox: t,
|
|
131
131
|
title: r,
|
|
@@ -151,7 +151,7 @@ const Ur = ({
|
|
|
151
151
|
/* @__PURE__ */ c("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
|
|
152
152
|
]
|
|
153
153
|
}
|
|
154
|
-
),
|
|
154
|
+
), Gl = ({
|
|
155
155
|
className: e,
|
|
156
156
|
viewBox: t,
|
|
157
157
|
title: r,
|
|
@@ -177,7 +177,7 @@ const Ur = ({
|
|
|
177
177
|
/* @__PURE__ */ c("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
|
|
178
178
|
]
|
|
179
179
|
}
|
|
180
|
-
),
|
|
180
|
+
), Yl = ({
|
|
181
181
|
className: e,
|
|
182
182
|
viewBox: t,
|
|
183
183
|
title: r,
|
|
@@ -203,7 +203,7 @@ const Ur = ({
|
|
|
203
203
|
/* @__PURE__ */ c("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
204
204
|
]
|
|
205
205
|
}
|
|
206
|
-
),
|
|
206
|
+
), Jl = ({
|
|
207
207
|
className: e,
|
|
208
208
|
viewBox: t,
|
|
209
209
|
title: r,
|
|
@@ -229,7 +229,7 @@ const Ur = ({
|
|
|
229
229
|
/* @__PURE__ */ c("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24" })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
|
-
),
|
|
232
|
+
), ql = ({
|
|
233
233
|
className: e,
|
|
234
234
|
viewBox: t,
|
|
235
235
|
title: r,
|
|
@@ -255,7 +255,7 @@ const Ur = ({
|
|
|
255
255
|
/* @__PURE__ */ c("path", { d: "M224 32c53 0 96 43 96 96v64H128v-64c0-53 43-96 96-96M96 128v64H80c-44.2 0-80 35.8-80 80v160c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V272c0-44.2-35.8-80-80-80h-16v-64C352 57.3 294.7 0 224 0S96 57.3 96 128m-16 96h288c26.5 0 48 21.5 48 48v160c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48m160 88c0-8.8-7.2-16-16-16s-16 7.2-16 16v80c0 8.8 7.2 16 16 16s16-7.2 16-16z" })
|
|
256
256
|
]
|
|
257
257
|
}
|
|
258
|
-
),
|
|
258
|
+
), Xl = ({
|
|
259
259
|
className: e,
|
|
260
260
|
viewBox: t,
|
|
261
261
|
title: r,
|
|
@@ -281,7 +281,7 @@ const Ur = ({
|
|
|
281
281
|
/* @__PURE__ */ c("path", { d: "M419.2 227.2 316.7 124.7 46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0z" })
|
|
282
282
|
]
|
|
283
283
|
}
|
|
284
|
-
),
|
|
284
|
+
), jr = ({
|
|
285
285
|
className: e,
|
|
286
286
|
viewBox: t,
|
|
287
287
|
title: r,
|
|
@@ -298,7 +298,7 @@ const Ur = ({
|
|
|
298
298
|
...a,
|
|
299
299
|
children: /* @__PURE__ */ c("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
|
|
300
300
|
}
|
|
301
|
-
),
|
|
301
|
+
), Zl = ({
|
|
302
302
|
className: e,
|
|
303
303
|
viewBox: t,
|
|
304
304
|
title: r,
|
|
@@ -324,7 +324,7 @@ const Ur = ({
|
|
|
324
324
|
/* @__PURE__ */ c("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z" })
|
|
325
325
|
]
|
|
326
326
|
}
|
|
327
|
-
),
|
|
327
|
+
), Ql = ({
|
|
328
328
|
className: e,
|
|
329
329
|
viewBox: t,
|
|
330
330
|
title: r,
|
|
@@ -350,7 +350,7 @@ const Ur = ({
|
|
|
350
350
|
/* @__PURE__ */ c("path", { d: "M566.6 265.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l73.4 73.3 169.4-169.3c12.5-12.5 32.8-12.5 45.3 0z" })
|
|
351
351
|
]
|
|
352
352
|
}
|
|
353
|
-
),
|
|
353
|
+
), ec = ({
|
|
354
354
|
className: e,
|
|
355
355
|
viewBox: t,
|
|
356
356
|
title: r,
|
|
@@ -376,7 +376,7 @@ const Ur = ({
|
|
|
376
376
|
/* @__PURE__ */ c("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
|
|
377
377
|
]
|
|
378
378
|
}
|
|
379
|
-
),
|
|
379
|
+
), tc = ({
|
|
380
380
|
className: e,
|
|
381
381
|
viewBox: t,
|
|
382
382
|
title: r,
|
|
@@ -402,7 +402,7 @@ const Ur = ({
|
|
|
402
402
|
/* @__PURE__ */ c("path", { d: "m406.1 16-39.7 39.7 89.3 89.3 39.8-38.9c19.1-18.7 19.2-49.4.4-68.2l-22-21.9C455.1-2.8 424.7-2.7 406 16zm-62.4 62.4L200.5 221.8c-7 7-12.3 15.6-15.4 25l-23.8 71.3c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l71.5-23.9c9.2-3.1 17.6-8.2 24.5-15l145.1-142.1z" })
|
|
403
403
|
]
|
|
404
404
|
}
|
|
405
|
-
),
|
|
405
|
+
), rc = ({
|
|
406
406
|
className: e,
|
|
407
407
|
viewBox: t,
|
|
408
408
|
title: r,
|
|
@@ -428,7 +428,7 @@ const Ur = ({
|
|
|
428
428
|
/* @__PURE__ */ c("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
|
|
429
429
|
]
|
|
430
430
|
}
|
|
431
|
-
),
|
|
431
|
+
), nc = ({
|
|
432
432
|
className: e,
|
|
433
433
|
viewBox: t,
|
|
434
434
|
title: r,
|
|
@@ -445,7 +445,7 @@ const Ur = ({
|
|
|
445
445
|
...a,
|
|
446
446
|
children: /* @__PURE__ */ c("path", { d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96" })
|
|
447
447
|
}
|
|
448
|
-
),
|
|
448
|
+
), ac = ({
|
|
449
449
|
className: e,
|
|
450
450
|
viewBox: t,
|
|
451
451
|
title: r,
|
|
@@ -471,7 +471,7 @@ const Ur = ({
|
|
|
471
471
|
/* @__PURE__ */ c("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
|
|
472
472
|
]
|
|
473
473
|
}
|
|
474
|
-
),
|
|
474
|
+
), sc = ({
|
|
475
475
|
className: e,
|
|
476
476
|
viewBox: t,
|
|
477
477
|
title: r,
|
|
@@ -511,7 +511,7 @@ try {
|
|
|
511
511
|
});
|
|
512
512
|
} catch {
|
|
513
513
|
}
|
|
514
|
-
const
|
|
514
|
+
const oc = "av-header", ic = ({
|
|
515
515
|
children: e,
|
|
516
516
|
className: t,
|
|
517
517
|
raw: r = !1,
|
|
@@ -524,7 +524,7 @@ const sc = "av-header", oc = ({
|
|
|
524
524
|
...d
|
|
525
525
|
}) => {
|
|
526
526
|
const u = p(
|
|
527
|
-
|
|
527
|
+
oc,
|
|
528
528
|
{
|
|
529
529
|
"border-border-accent": n === "dark" && !r && !a && !o,
|
|
530
530
|
"border-border-medium": n === "light" && !r && !a && !o,
|
|
@@ -546,7 +546,7 @@ const sc = "av-header", oc = ({
|
|
|
546
546
|
});
|
|
547
547
|
return /* @__PURE__ */ c("header", { className: u, ...d, children: /* @__PURE__ */ c("div", { className: h, children: e }) });
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function lc(e) {
|
|
550
550
|
const t = e.toLowerCase().split("+").map((s) => s.trim()), r = {
|
|
551
551
|
alt: t.includes("alt"),
|
|
552
552
|
ctrl: t.includes("ctrl"),
|
|
@@ -559,7 +559,7 @@ function ic(e) {
|
|
|
559
559
|
key: a
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function cc(e, t) {
|
|
563
563
|
const { alt: r, ctrl: n, meta: a, mod: s, shift: o, key: i } = e, { altKey: l, ctrlKey: d, metaKey: u, shiftKey: h, key: f } = t;
|
|
564
564
|
if (r !== l)
|
|
565
565
|
return !1;
|
|
@@ -570,26 +570,26 @@ function lc(e, t) {
|
|
|
570
570
|
return !1;
|
|
571
571
|
return o !== h ? !1 : !!(i && (f.toLowerCase() === i.toLowerCase() || t.code.replace("Key", "").toLowerCase() === i.toLowerCase()));
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
return (t) => lc(
|
|
573
|
+
function Gs(e) {
|
|
574
|
+
return (t) => cc(lc(e), t);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function dc(e) {
|
|
577
577
|
return (t) => {
|
|
578
578
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
579
579
|
e.forEach(([n, a, s = { preventDefault: !0 }]) => {
|
|
580
|
-
|
|
580
|
+
Gs(n)(r) && (s.preventDefault && t.preventDefault(), a(r));
|
|
581
581
|
});
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function uc(e, t, r = !1) {
|
|
585
585
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ys(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
588
588
|
L(() => {
|
|
589
589
|
const n = (a) => {
|
|
590
590
|
e.forEach(
|
|
591
591
|
([s, o, i = { preventDefault: !0 }]) => {
|
|
592
|
-
|
|
592
|
+
Gs(s)(a) && uc(a, t, r) && (i.preventDefault && a.preventDefault(), o(a));
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
};
|
|
@@ -611,26 +611,26 @@ function fc() {
|
|
|
611
611
|
e.current = !1;
|
|
612
612
|
}), []), K(() => e.current, []);
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Js(e, t) {
|
|
615
615
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const pa = (e, t) => {
|
|
618
618
|
const r = JSON.stringify(
|
|
619
619
|
typeof t == "function" ? t() : t
|
|
620
620
|
);
|
|
621
|
-
window.localStorage.setItem(e, r),
|
|
621
|
+
window.localStorage.setItem(e, r), Js(e, r);
|
|
622
622
|
}, mc = (e) => {
|
|
623
|
-
window.localStorage.removeItem(e),
|
|
624
|
-
},
|
|
623
|
+
window.localStorage.removeItem(e), Js(e, null);
|
|
624
|
+
}, ga = (e) => window.localStorage.getItem(e), pc = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
625
625
|
function at({
|
|
626
626
|
key: e,
|
|
627
627
|
initialValue: t
|
|
628
628
|
}) {
|
|
629
|
-
const r =
|
|
629
|
+
const r = Cl(pc, () => ga(e)), n = K(
|
|
630
630
|
(o) => {
|
|
631
631
|
try {
|
|
632
632
|
const i = typeof o == "function" ? o(JSON.parse(r)) : o;
|
|
633
|
-
i == null ? mc(e) :
|
|
633
|
+
i == null ? mc(e) : pa(e, i);
|
|
634
634
|
} catch (i) {
|
|
635
635
|
console.warn(i);
|
|
636
636
|
}
|
|
@@ -643,7 +643,7 @@ function at({
|
|
|
643
643
|
}, [n]);
|
|
644
644
|
return L(() => {
|
|
645
645
|
try {
|
|
646
|
-
|
|
646
|
+
ga(e) === null && typeof t < "u" && pa(e, t);
|
|
647
647
|
} catch (o) {
|
|
648
648
|
console.warn(o);
|
|
649
649
|
}
|
|
@@ -659,7 +659,7 @@ const gc = {
|
|
|
659
659
|
bottom: 0,
|
|
660
660
|
right: 0
|
|
661
661
|
};
|
|
662
|
-
function
|
|
662
|
+
function qs(e) {
|
|
663
663
|
const t = fc(), r = M(0), n = M(null), [a, s] = $(gc), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
664
664
|
const l = i[0];
|
|
665
665
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -673,7 +673,7 @@ function Ys(e) {
|
|
|
673
673
|
function Et(e) {
|
|
674
674
|
return cr();
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function ya(e, t) {
|
|
677
677
|
L(() => (window.addEventListener(e, t, {
|
|
678
678
|
passive: !0
|
|
679
679
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
|
@@ -688,9 +688,9 @@ function yc() {
|
|
|
688
688
|
height: window.innerHeight || 0
|
|
689
689
|
});
|
|
690
690
|
}, []);
|
|
691
|
-
return
|
|
691
|
+
return ya("resize", r), ya("orientationchange", r), L(r, []), e;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function ba(e, t) {
|
|
694
694
|
L(() => (window.visualViewport && window.visualViewport.addEventListener(e, t, {
|
|
695
695
|
passive: !0
|
|
696
696
|
}), () => {
|
|
@@ -708,7 +708,7 @@ function bc() {
|
|
|
708
708
|
height: ((a = window == null ? void 0 : window.visualViewport) == null ? void 0 : a.height) || window.innerHeight || 0
|
|
709
709
|
});
|
|
710
710
|
}, []);
|
|
711
|
-
return
|
|
711
|
+
return ba("orientationchange", r), ba("resize", r), L(r, []), e;
|
|
712
712
|
}
|
|
713
713
|
/*!
|
|
714
714
|
@versini/ui-table v3.1.8
|
|
@@ -723,7 +723,7 @@ try {
|
|
|
723
723
|
});
|
|
724
724
|
} catch {
|
|
725
725
|
}
|
|
726
|
-
const dr = "thead",
|
|
726
|
+
const dr = "thead", yn = "tfoot", Xe = "tbody", we = {
|
|
727
727
|
ASC: "asc",
|
|
728
728
|
DESC: "desc"
|
|
729
729
|
}, vc = ({
|
|
@@ -791,7 +791,7 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
791
791
|
mode: e,
|
|
792
792
|
className: t,
|
|
793
793
|
cellWrapper: r
|
|
794
|
-
}) => r === dr || r ===
|
|
794
|
+
}) => r === dr || r === yn ? p(
|
|
795
795
|
{
|
|
796
796
|
"bg-table-head-dark": e === "dark" || e === "system",
|
|
797
797
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
@@ -830,7 +830,7 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
830
830
|
"text-copy-dark": n === "light" || n === "alt-system",
|
|
831
831
|
"dark:text-copy-dark": n === "system",
|
|
832
832
|
"dark:text-copy-light": n === "alt-system",
|
|
833
|
-
"px-4 py-3": !r && (e === dr || e ===
|
|
833
|
+
"px-4 py-3": !r && (e === dr || e === yn),
|
|
834
834
|
"p-4": !r && e === Xe,
|
|
835
835
|
"px-2 py-1.5": r
|
|
836
836
|
},
|
|
@@ -838,7 +838,7 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
838
838
|
)
|
|
839
839
|
}), _c = ({
|
|
840
840
|
buttonClassName: e
|
|
841
|
-
}) => p("rounded-none text-sm", e),
|
|
841
|
+
}) => p("rounded-none text-sm", e), va = "av-button", ur = "icon", Xs = "button", Wr = "link", Ic = ({
|
|
842
842
|
type: e,
|
|
843
843
|
size: t,
|
|
844
844
|
labelRight: r,
|
|
@@ -848,8 +848,8 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
848
848
|
}) => {
|
|
849
849
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
850
850
|
switch (e) {
|
|
851
|
-
case
|
|
852
|
-
case
|
|
851
|
+
case Xs:
|
|
852
|
+
case Wr:
|
|
853
853
|
return p({
|
|
854
854
|
[o]: t === "small",
|
|
855
855
|
[i]: t === "medium",
|
|
@@ -882,10 +882,10 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
882
882
|
}) => {
|
|
883
883
|
const a = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
|
884
884
|
switch (e) {
|
|
885
|
-
case
|
|
886
|
-
case
|
|
885
|
+
case Xs:
|
|
886
|
+
case Wr:
|
|
887
887
|
return p({
|
|
888
|
-
"text-center": e ===
|
|
888
|
+
"text-center": e === Wr,
|
|
889
889
|
[a]: t === "small",
|
|
890
890
|
[s]: t === "medium",
|
|
891
891
|
[o]: t === "large"
|
|
@@ -1100,8 +1100,8 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
1100
1100
|
align: g,
|
|
1101
1101
|
radius: y,
|
|
1102
1102
|
animated: v
|
|
1103
|
-
}) => (f || (f = "primary"), r ? p(
|
|
1104
|
-
|
|
1103
|
+
}) => (f || (f = "primary"), r ? p(va, t) : p(
|
|
1104
|
+
va,
|
|
1105
1105
|
Cc({
|
|
1106
1106
|
mode: n,
|
|
1107
1107
|
variant: f,
|
|
@@ -1134,7 +1134,7 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
1134
1134
|
)), Lc = (e, t, r) => {
|
|
1135
1135
|
var n;
|
|
1136
1136
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
1137
|
-
},
|
|
1137
|
+
}, Zs = Y.forwardRef((e, t) => {
|
|
1138
1138
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
1139
1139
|
return /* @__PURE__ */ c(
|
|
1140
1140
|
"button",
|
|
@@ -1147,7 +1147,7 @@ const dr = "thead", gn = "tfoot", Xe = "tbody", we = {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
);
|
|
1149
1149
|
});
|
|
1150
|
-
|
|
1150
|
+
Zs.displayName = "BaseButton";
|
|
1151
1151
|
function $c() {
|
|
1152
1152
|
const e = M(!1);
|
|
1153
1153
|
return L(() => (e.current = !0, () => {
|
|
@@ -1197,7 +1197,7 @@ const zc = {
|
|
|
1197
1197
|
// px-3 x 2
|
|
1198
1198
|
large: 16 * 2
|
|
1199
1199
|
// px-4 x 2
|
|
1200
|
-
}, Hc = 2,
|
|
1200
|
+
}, Hc = 2, Qs = Y.forwardRef(
|
|
1201
1201
|
({
|
|
1202
1202
|
children: e,
|
|
1203
1203
|
disabled: t = !1,
|
|
@@ -1253,7 +1253,7 @@ const zc = {
|
|
|
1253
1253
|
h,
|
|
1254
1254
|
E
|
|
1255
1255
|
]), /* @__PURE__ */ C(
|
|
1256
|
-
|
|
1256
|
+
Zs,
|
|
1257
1257
|
{
|
|
1258
1258
|
ref: D,
|
|
1259
1259
|
className: x,
|
|
@@ -1263,7 +1263,7 @@ const zc = {
|
|
|
1263
1263
|
...N,
|
|
1264
1264
|
children: [
|
|
1265
1265
|
/* @__PURE__ */ c(
|
|
1266
|
-
|
|
1266
|
+
wa,
|
|
1267
1267
|
{
|
|
1268
1268
|
label: m,
|
|
1269
1269
|
labelRef: S,
|
|
@@ -1273,7 +1273,7 @@ const zc = {
|
|
|
1273
1273
|
),
|
|
1274
1274
|
/* @__PURE__ */ c("span", { ref: A, className: _, children: e }),
|
|
1275
1275
|
/* @__PURE__ */ c(
|
|
1276
|
-
|
|
1276
|
+
wa,
|
|
1277
1277
|
{
|
|
1278
1278
|
label: f,
|
|
1279
1279
|
labelRef: I,
|
|
@@ -1285,13 +1285,13 @@ const zc = {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
|
-
),
|
|
1288
|
+
), wa = ({
|
|
1289
1289
|
labelRef: e,
|
|
1290
1290
|
labelClass: t,
|
|
1291
1291
|
label: r,
|
|
1292
1292
|
labelInnerClass: n
|
|
1293
1293
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
|
|
1294
|
-
|
|
1294
|
+
Qs.displayName = "ButtonIcon";
|
|
1295
1295
|
/*!
|
|
1296
1296
|
@versini/ui-button v4.2.8
|
|
1297
1297
|
© 2025 gizmette.com
|
|
@@ -1305,7 +1305,7 @@ try {
|
|
|
1305
1305
|
});
|
|
1306
1306
|
} catch {
|
|
1307
1307
|
}
|
|
1308
|
-
const
|
|
1308
|
+
const eo = Y.forwardRef(
|
|
1309
1309
|
({
|
|
1310
1310
|
children: e,
|
|
1311
1311
|
mode: t = "system",
|
|
@@ -1331,7 +1331,7 @@ const Zs = Y.forwardRef(
|
|
|
1331
1331
|
}
|
|
1332
1332
|
) : "";
|
|
1333
1333
|
return /* @__PURE__ */ c("div", { className: o, children: /* @__PURE__ */ c(
|
|
1334
|
-
|
|
1334
|
+
Qs,
|
|
1335
1335
|
{
|
|
1336
1336
|
className: p("justify-center", r),
|
|
1337
1337
|
ref: s,
|
|
@@ -1343,8 +1343,8 @@ const Zs = Y.forwardRef(
|
|
|
1343
1343
|
) });
|
|
1344
1344
|
}
|
|
1345
1345
|
);
|
|
1346
|
-
|
|
1347
|
-
const
|
|
1346
|
+
eo.displayName = "ButtonSort";
|
|
1347
|
+
const bn = ({
|
|
1348
1348
|
children: e,
|
|
1349
1349
|
fill: t,
|
|
1350
1350
|
viewBox: r,
|
|
@@ -1394,7 +1394,7 @@ const jc = ({
|
|
|
1394
1394
|
monotone: n,
|
|
1395
1395
|
...a
|
|
1396
1396
|
}) => /* @__PURE__ */ C(
|
|
1397
|
-
|
|
1397
|
+
bn,
|
|
1398
1398
|
{
|
|
1399
1399
|
defaultViewBox: "0 0 576 512",
|
|
1400
1400
|
size: "size-5",
|
|
@@ -1420,7 +1420,7 @@ const jc = ({
|
|
|
1420
1420
|
monotone: n,
|
|
1421
1421
|
...a
|
|
1422
1422
|
}) => /* @__PURE__ */ C(
|
|
1423
|
-
|
|
1423
|
+
bn,
|
|
1424
1424
|
{
|
|
1425
1425
|
defaultViewBox: "0 0 576 512",
|
|
1426
1426
|
size: "size-5",
|
|
@@ -1446,7 +1446,7 @@ const jc = ({
|
|
|
1446
1446
|
monotone: n,
|
|
1447
1447
|
...a
|
|
1448
1448
|
}) => /* @__PURE__ */ C(
|
|
1449
|
-
|
|
1449
|
+
bn,
|
|
1450
1450
|
{
|
|
1451
1451
|
defaultViewBox: "0 0 576 512",
|
|
1452
1452
|
size: "size-5",
|
|
@@ -1543,7 +1543,7 @@ const ct = Y.createContext({
|
|
|
1543
1543
|
...r
|
|
1544
1544
|
}) => {
|
|
1545
1545
|
const n = W(ct);
|
|
1546
|
-
n.cellWrapper =
|
|
1546
|
+
n.cellWrapper = yn;
|
|
1547
1547
|
const a = kc({
|
|
1548
1548
|
className: t,
|
|
1549
1549
|
mode: n.mode,
|
|
@@ -1603,7 +1603,7 @@ const ct = Y.createContext({
|
|
|
1603
1603
|
"aria-sort": l === we.ASC && d === u ? "ascending" : l === we.DESC && d === u ? "descending" : "other",
|
|
1604
1604
|
...h,
|
|
1605
1605
|
children: /* @__PURE__ */ c(
|
|
1606
|
-
|
|
1606
|
+
eo,
|
|
1607
1607
|
{
|
|
1608
1608
|
active: d === u,
|
|
1609
1609
|
className: f,
|
|
@@ -1635,11 +1635,11 @@ function ed() {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
return Cr(Qc);
|
|
1637
1637
|
}
|
|
1638
|
-
const td = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
1638
|
+
const td = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ka = { randomUUID: td };
|
|
1639
1639
|
function je(e, t, r) {
|
|
1640
1640
|
var a;
|
|
1641
|
-
if (
|
|
1642
|
-
return
|
|
1641
|
+
if (ka.randomUUID && !e)
|
|
1642
|
+
return ka.randomUUID();
|
|
1643
1643
|
e = e || {};
|
|
1644
1644
|
const n = e.random ?? ((a = e.rng) == null ? void 0 : a.call(e)) ?? ed();
|
|
1645
1645
|
if (n.length < 16)
|
|
@@ -1648,7 +1648,7 @@ function je(e, t, r) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
const rd = (e, t) => {
|
|
1650
1650
|
switch (t == null ? void 0 : t.type) {
|
|
1651
|
-
case
|
|
1651
|
+
case Ss:
|
|
1652
1652
|
return {
|
|
1653
1653
|
searchString: t.payload.searchString,
|
|
1654
1654
|
sortedCell: e.sortedCell,
|
|
@@ -1665,12 +1665,12 @@ const rd = (e, t) => {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
}, nd = (e, t) => {
|
|
1667
1667
|
switch (t == null ? void 0 : t.type) {
|
|
1668
|
-
case
|
|
1668
|
+
case Rs:
|
|
1669
1669
|
return {
|
|
1670
1670
|
prompt: t.payload.prompt,
|
|
1671
1671
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
|
1672
1672
|
};
|
|
1673
|
-
case
|
|
1673
|
+
case As:
|
|
1674
1674
|
return {
|
|
1675
1675
|
prompt: "",
|
|
1676
1676
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
@@ -1678,7 +1678,7 @@ const rd = (e, t) => {
|
|
|
1678
1678
|
default:
|
|
1679
1679
|
return e;
|
|
1680
1680
|
}
|
|
1681
|
-
}, kt = "FOOTER_BOTTOM",
|
|
1681
|
+
}, kt = "FOOTER_BOTTOM", Kr = "FOOTER_TOP", qt = "APP_SET_FOOTER_POSITION", to = "APP_SET_FOOTER_HEIGHT", ad = (e, t) => {
|
|
1682
1682
|
switch (t.type) {
|
|
1683
1683
|
case qt:
|
|
1684
1684
|
return {
|
|
@@ -1686,7 +1686,7 @@ const rd = (e, t) => {
|
|
|
1686
1686
|
footerPosition: t.payload.footerPosition,
|
|
1687
1687
|
footerOffset: t.payload.footerOffset
|
|
1688
1688
|
};
|
|
1689
|
-
case
|
|
1689
|
+
case to:
|
|
1690
1690
|
return {
|
|
1691
1691
|
...e,
|
|
1692
1692
|
footerHeight: t.payload.footerHeight
|
|
@@ -1694,7 +1694,7 @@ const rd = (e, t) => {
|
|
|
1694
1694
|
default:
|
|
1695
1695
|
return e;
|
|
1696
1696
|
}
|
|
1697
|
-
}, Pe = "CHAT_SET_STATUS",
|
|
1697
|
+
}, Pe = "CHAT_SET_STATUS", vn = "CHAT_SET_PROVIDER", Vt = "CHAT_RESET", sd = (e, t) => {
|
|
1698
1698
|
var r, n, a, s;
|
|
1699
1699
|
switch (t.type) {
|
|
1700
1700
|
case Pe: {
|
|
@@ -1709,7 +1709,7 @@ const rd = (e, t) => {
|
|
|
1709
1709
|
lastStreamingTimestamp: i ? Date.now() : e.lastStreamingTimestamp
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
case
|
|
1712
|
+
case vn:
|
|
1713
1713
|
return {
|
|
1714
1714
|
...e,
|
|
1715
1715
|
provider: t.payload.provider
|
|
@@ -1731,7 +1731,7 @@ const rd = (e, t) => {
|
|
|
1731
1731
|
return e;
|
|
1732
1732
|
}
|
|
1733
1733
|
};
|
|
1734
|
-
var
|
|
1734
|
+
var ro = "vercel.ai.error", od = Symbol.for(ro), no, id = class ao extends Error {
|
|
1735
1735
|
/**
|
|
1736
1736
|
* Creates an AI SDK Error.
|
|
1737
1737
|
*
|
|
@@ -1745,7 +1745,7 @@ var eo = "vercel.ai.error", od = Symbol.for(eo), to, id = class ro extends Error
|
|
|
1745
1745
|
message: r,
|
|
1746
1746
|
cause: n
|
|
1747
1747
|
}) {
|
|
1748
|
-
super(r), this[
|
|
1748
|
+
super(r), this[no] = !0, this.name = t, this.cause = n;
|
|
1749
1749
|
}
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Checks if the given error is an AI SDK Error.
|
|
@@ -1753,56 +1753,56 @@ var eo = "vercel.ai.error", od = Symbol.for(eo), to, id = class ro extends Error
|
|
|
1753
1753
|
* @returns {boolean} True if the error is an AI SDK Error, false otherwise.
|
|
1754
1754
|
*/
|
|
1755
1755
|
static isInstance(t) {
|
|
1756
|
-
return
|
|
1756
|
+
return ao.hasMarker(t, ro);
|
|
1757
1757
|
}
|
|
1758
1758
|
static hasMarker(t, r) {
|
|
1759
1759
|
const n = Symbol.for(r);
|
|
1760
1760
|
return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
|
|
1761
1761
|
}
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1763
|
+
no = od;
|
|
1764
1764
|
var st = id;
|
|
1765
|
-
function
|
|
1765
|
+
function so(e) {
|
|
1766
1766
|
return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
|
|
1767
1767
|
}
|
|
1768
|
-
var
|
|
1768
|
+
var oo = "AI_InvalidArgumentError", io = `vercel.ai.error.${oo}`, ld = Symbol.for(io), lo, cd = class extends st {
|
|
1769
1769
|
constructor({
|
|
1770
1770
|
message: e,
|
|
1771
1771
|
cause: t,
|
|
1772
1772
|
argument: r
|
|
1773
1773
|
}) {
|
|
1774
|
-
super({ name:
|
|
1774
|
+
super({ name: oo, message: e, cause: t }), this[lo] = !0, this.argument = r;
|
|
1775
1775
|
}
|
|
1776
1776
|
static isInstance(e) {
|
|
1777
|
-
return st.hasMarker(e,
|
|
1777
|
+
return st.hasMarker(e, io);
|
|
1778
1778
|
}
|
|
1779
1779
|
};
|
|
1780
|
-
|
|
1781
|
-
var
|
|
1780
|
+
lo = ld;
|
|
1781
|
+
var co = "AI_JSONParseError", uo = `vercel.ai.error.${co}`, dd = Symbol.for(uo), ho, xa = class extends st {
|
|
1782
1782
|
constructor({ text: e, cause: t }) {
|
|
1783
1783
|
super({
|
|
1784
|
-
name:
|
|
1784
|
+
name: co,
|
|
1785
1785
|
message: `JSON parsing failed: Text: ${e}.
|
|
1786
|
-
Error message: ${
|
|
1786
|
+
Error message: ${so(t)}`,
|
|
1787
1787
|
cause: t
|
|
1788
|
-
}), this[
|
|
1788
|
+
}), this[ho] = !0, this.text = e;
|
|
1789
1789
|
}
|
|
1790
1790
|
static isInstance(e) {
|
|
1791
|
-
return st.hasMarker(e,
|
|
1791
|
+
return st.hasMarker(e, uo);
|
|
1792
1792
|
}
|
|
1793
1793
|
};
|
|
1794
|
-
|
|
1795
|
-
var
|
|
1794
|
+
ho = dd;
|
|
1795
|
+
var fo = "AI_TypeValidationError", mo = `vercel.ai.error.${fo}`, ud = Symbol.for(mo), po, hd = class Gr extends st {
|
|
1796
1796
|
constructor({ value: t, cause: r }) {
|
|
1797
1797
|
super({
|
|
1798
|
-
name:
|
|
1798
|
+
name: fo,
|
|
1799
1799
|
message: `Type validation failed: Value: ${JSON.stringify(t)}.
|
|
1800
|
-
Error message: ${
|
|
1800
|
+
Error message: ${so(r)}`,
|
|
1801
1801
|
cause: r
|
|
1802
|
-
}), this[
|
|
1802
|
+
}), this[po] = !0, this.value = t;
|
|
1803
1803
|
}
|
|
1804
1804
|
static isInstance(t) {
|
|
1805
|
-
return st.hasMarker(t,
|
|
1805
|
+
return st.hasMarker(t, mo);
|
|
1806
1806
|
}
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Wraps an error into a TypeValidationError.
|
|
@@ -1818,21 +1818,21 @@ Error message: ${no(r)}`,
|
|
|
1818
1818
|
value: t,
|
|
1819
1819
|
cause: r
|
|
1820
1820
|
}) {
|
|
1821
|
-
return
|
|
1821
|
+
return Gr.isInstance(r) && r.value === t ? r : new Gr({ value: t, cause: r });
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
1824
|
-
|
|
1825
|
-
var
|
|
1824
|
+
po = ud;
|
|
1825
|
+
var Ta = hd;
|
|
1826
1826
|
let fd = (e, t = 21) => (r = t) => {
|
|
1827
1827
|
let n = "", a = r | 0;
|
|
1828
1828
|
for (; a--; )
|
|
1829
1829
|
n += e[Math.random() * e.length | 0];
|
|
1830
1830
|
return n;
|
|
1831
1831
|
};
|
|
1832
|
-
var ze = { exports: {} },
|
|
1832
|
+
var ze = { exports: {} }, _a;
|
|
1833
1833
|
function md() {
|
|
1834
|
-
if (
|
|
1835
|
-
|
|
1834
|
+
if (_a) return ze.exports;
|
|
1835
|
+
_a = 1;
|
|
1836
1836
|
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*:/;
|
|
1837
1837
|
function n(i, l, d) {
|
|
1838
1838
|
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));
|
|
@@ -1903,7 +1903,7 @@ function md() {
|
|
|
1903
1903
|
return ze.exports = s, ze.exports.default = s, ze.exports.parse = s, ze.exports.safeParse = o, ze.exports.scan = a, ze.exports;
|
|
1904
1904
|
}
|
|
1905
1905
|
var pd = /* @__PURE__ */ md();
|
|
1906
|
-
const gd = /* @__PURE__ */
|
|
1906
|
+
const gd = /* @__PURE__ */ Ks(pd);
|
|
1907
1907
|
var yd = ({
|
|
1908
1908
|
prefix: e,
|
|
1909
1909
|
size: t = 16,
|
|
@@ -1919,12 +1919,12 @@ var yd = ({
|
|
|
1919
1919
|
message: `The separator "${n}" must not be part of the alphabet "${r}".`
|
|
1920
1920
|
});
|
|
1921
1921
|
return (s) => `${e}${n}${a(s)}`;
|
|
1922
|
-
},
|
|
1922
|
+
}, wn = yd(), Yr = Symbol.for("vercel.ai.validator");
|
|
1923
1923
|
function bd(e) {
|
|
1924
|
-
return { [
|
|
1924
|
+
return { [Yr]: !0, validate: e };
|
|
1925
1925
|
}
|
|
1926
1926
|
function vd(e) {
|
|
1927
|
-
return typeof e == "object" && e !== null &&
|
|
1927
|
+
return typeof e == "object" && e !== null && Yr in e && e[Yr] === !0 && "validate" in e;
|
|
1928
1928
|
}
|
|
1929
1929
|
function wd(e) {
|
|
1930
1930
|
return vd(e) ? e : kd(e);
|
|
@@ -1946,16 +1946,16 @@ function xd({
|
|
|
1946
1946
|
const n = r.validate(e);
|
|
1947
1947
|
return n.success ? n : {
|
|
1948
1948
|
success: !1,
|
|
1949
|
-
error:
|
|
1949
|
+
error: Ta.wrap({ value: e, cause: n.error })
|
|
1950
1950
|
};
|
|
1951
1951
|
} catch (n) {
|
|
1952
1952
|
return {
|
|
1953
1953
|
success: !1,
|
|
1954
|
-
error:
|
|
1954
|
+
error: Ta.wrap({ value: e, cause: n })
|
|
1955
1955
|
};
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Ia({
|
|
1959
1959
|
text: e,
|
|
1960
1960
|
schema: t
|
|
1961
1961
|
}) {
|
|
@@ -1968,7 +1968,7 @@ function _a({
|
|
|
1968
1968
|
} catch (r) {
|
|
1969
1969
|
return {
|
|
1970
1970
|
success: !1,
|
|
1971
|
-
error:
|
|
1971
|
+
error: xa.isInstance(r) ? r : new xa({ text: e, cause: r })
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
1974
|
}
|
|
@@ -2233,8 +2233,8 @@ function _d(e) {
|
|
|
2233
2233
|
function Id(e) {
|
|
2234
2234
|
if (e === void 0)
|
|
2235
2235
|
return { value: void 0, state: "undefined-input" };
|
|
2236
|
-
let t =
|
|
2237
|
-
return t.success ? { value: t.value, state: "successful-parse" } : (t =
|
|
2236
|
+
let t = Ia({ text: e });
|
|
2237
|
+
return t.success ? { value: t.value, state: "successful-parse" } : (t = Ia({ text: _d(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
|
|
2238
2238
|
}
|
|
2239
2239
|
var Ed = {
|
|
2240
2240
|
code: "0",
|
|
@@ -2393,7 +2393,7 @@ var Ed = {
|
|
|
2393
2393
|
value: e
|
|
2394
2394
|
};
|
|
2395
2395
|
}
|
|
2396
|
-
},
|
|
2396
|
+
}, kn = [
|
|
2397
2397
|
Ed,
|
|
2398
2398
|
Cd,
|
|
2399
2399
|
Nd,
|
|
@@ -2408,12 +2408,12 @@ var Ed = {
|
|
|
2408
2408
|
Ld,
|
|
2409
2409
|
$d
|
|
2410
2410
|
], Dd = Object.fromEntries(
|
|
2411
|
-
|
|
2411
|
+
kn.map((e) => [e.code, e])
|
|
2412
2412
|
);
|
|
2413
2413
|
Object.fromEntries(
|
|
2414
|
-
|
|
2414
|
+
kn.map((e) => [e.name, e.code])
|
|
2415
2415
|
);
|
|
2416
|
-
var Fd =
|
|
2416
|
+
var Fd = kn.map((e) => e.code), zd = (e) => {
|
|
2417
2417
|
const t = e.indexOf(":");
|
|
2418
2418
|
if (t === -1)
|
|
2419
2419
|
throw new Error("Failed to parse stream string. No separator found.");
|
|
@@ -2511,7 +2511,7 @@ async function Wd({
|
|
|
2511
2511
|
update: t,
|
|
2512
2512
|
onToolCall: r,
|
|
2513
2513
|
onFinish: n,
|
|
2514
|
-
generateId: a =
|
|
2514
|
+
generateId: a = wn,
|
|
2515
2515
|
getCurrentDate: s = () => /* @__PURE__ */ new Date(),
|
|
2516
2516
|
lastMessage: o
|
|
2517
2517
|
}) {
|
|
@@ -2690,7 +2690,7 @@ async function Gd({
|
|
|
2690
2690
|
update: t,
|
|
2691
2691
|
onFinish: r,
|
|
2692
2692
|
getCurrentDate: n = () => /* @__PURE__ */ new Date(),
|
|
2693
|
-
generateId: a =
|
|
2693
|
+
generateId: a = wn
|
|
2694
2694
|
}) {
|
|
2695
2695
|
const s = { type: "text", text: "" }, o = {
|
|
2696
2696
|
id: a(),
|
|
@@ -2784,13 +2784,13 @@ async function Jd({
|
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function Jr(e) {
|
|
2788
2788
|
return e == null ? void 0 : e.reduce((t, r) => {
|
|
2789
2789
|
var n;
|
|
2790
2790
|
return Math.max(t, (n = r.step) != null ? n : 0);
|
|
2791
2791
|
}, 0);
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function go(e) {
|
|
2794
2794
|
var t;
|
|
2795
2795
|
return (t = e.parts) != null ? t : [
|
|
2796
2796
|
...e.toolInvocations ? e.toolInvocations.map((r) => ({
|
|
@@ -2804,10 +2804,10 @@ function mo(e) {
|
|
|
2804
2804
|
function Nr(e) {
|
|
2805
2805
|
return e.map((t) => ({
|
|
2806
2806
|
...t,
|
|
2807
|
-
parts:
|
|
2807
|
+
parts: go(t)
|
|
2808
2808
|
}));
|
|
2809
2809
|
}
|
|
2810
|
-
async function
|
|
2810
|
+
async function Ea(e) {
|
|
2811
2811
|
if (!e)
|
|
2812
2812
|
return [];
|
|
2813
2813
|
if (e instanceof FileList)
|
|
@@ -2843,10 +2843,10 @@ function qd({
|
|
|
2843
2843
|
// check if the feature is enabled:
|
|
2844
2844
|
r > 1 && // ensure there is a last message:
|
|
2845
2845
|
s != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
|
|
2846
|
-
(n.length > t ||
|
|
2847
|
-
|
|
2846
|
+
(n.length > t || Jr(s.toolInvocations) !== e) && // check that next step is possible:
|
|
2847
|
+
yo(s) && // check that assistant has not answered yet:
|
|
2848
2848
|
!Xd(s) && // limit the number of automatic steps:
|
|
2849
|
-
((a =
|
|
2849
|
+
((a = Jr(s.toolInvocations)) != null ? a : 0) < r
|
|
2850
2850
|
);
|
|
2851
2851
|
}
|
|
2852
2852
|
function Xd(e) {
|
|
@@ -2855,7 +2855,7 @@ function Xd(e) {
|
|
|
2855
2855
|
r.type === "text" && (t = !0), r.type === "tool-invocation" && (t = !1);
|
|
2856
2856
|
}), t;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function yo(e) {
|
|
2859
2859
|
return e.role === "assistant" && e.parts.filter((t) => t.type === "tool-invocation").every((t) => "result" in t.toolInvocation);
|
|
2860
2860
|
}
|
|
2861
2861
|
function Zd({
|
|
@@ -2878,10 +2878,10 @@ function Zd({
|
|
|
2878
2878
|
(i) => i.toolCallId === t ? o : i
|
|
2879
2879
|
);
|
|
2880
2880
|
}
|
|
2881
|
-
var Sr,
|
|
2881
|
+
var Sr, Ca;
|
|
2882
2882
|
function Qd() {
|
|
2883
|
-
if (
|
|
2884
|
-
|
|
2883
|
+
if (Ca) return Sr;
|
|
2884
|
+
Ca = 1;
|
|
2885
2885
|
function e(t, r) {
|
|
2886
2886
|
if (typeof t != "function")
|
|
2887
2887
|
throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);
|
|
@@ -2897,8 +2897,8 @@ function Qd() {
|
|
|
2897
2897
|
return Sr = e, Sr;
|
|
2898
2898
|
}
|
|
2899
2899
|
var eu = /* @__PURE__ */ Qd();
|
|
2900
|
-
const tu = /* @__PURE__ */
|
|
2901
|
-
function
|
|
2900
|
+
const tu = /* @__PURE__ */ Ks(eu);
|
|
2901
|
+
function Na(e, t) {
|
|
2902
2902
|
return t != null ? tu(e, t) : e;
|
|
2903
2903
|
}
|
|
2904
2904
|
function ru({
|
|
@@ -2917,7 +2917,7 @@ function ru({
|
|
|
2917
2917
|
credentials: f,
|
|
2918
2918
|
headers: m,
|
|
2919
2919
|
body: g,
|
|
2920
|
-
generateId: y =
|
|
2920
|
+
generateId: y = wn,
|
|
2921
2921
|
fetch: v,
|
|
2922
2922
|
keepLastMessageOnError: k = !0,
|
|
2923
2923
|
experimental_throttle: T
|
|
@@ -2952,38 +2952,38 @@ function ru({
|
|
|
2952
2952
|
async (H) => {
|
|
2953
2953
|
var q, Z;
|
|
2954
2954
|
V("submitted"), P(void 0);
|
|
2955
|
-
const F = Nr(H.messages), ue = F.length, Ne =
|
|
2955
|
+
const F = Nr(H.messages), ue = F.length, Ne = Jr(
|
|
2956
2956
|
(q = F[F.length - 1]) == null ? void 0 : q.toolInvocations
|
|
2957
2957
|
);
|
|
2958
2958
|
try {
|
|
2959
2959
|
const fe = new AbortController();
|
|
2960
2960
|
D.current = fe;
|
|
2961
|
-
const gt =
|
|
2961
|
+
const gt = Na(w, T), Ji = Na(
|
|
2962
2962
|
S,
|
|
2963
2963
|
T
|
|
2964
|
-
),
|
|
2964
|
+
), qi = I.current;
|
|
2965
2965
|
gt(F, !1);
|
|
2966
|
-
const
|
|
2966
|
+
const Xi = a ? F : F.map(
|
|
2967
2967
|
({
|
|
2968
2968
|
role: Tr,
|
|
2969
2969
|
content: yt,
|
|
2970
2970
|
experimental_attachments: Ut,
|
|
2971
|
-
data:
|
|
2972
|
-
annotations:
|
|
2973
|
-
toolInvocations:
|
|
2974
|
-
parts:
|
|
2971
|
+
data: ta,
|
|
2972
|
+
annotations: ra,
|
|
2973
|
+
toolInvocations: na,
|
|
2974
|
+
parts: aa
|
|
2975
2975
|
}) => ({
|
|
2976
2976
|
role: Tr,
|
|
2977
2977
|
content: yt,
|
|
2978
2978
|
...Ut !== void 0 && {
|
|
2979
2979
|
experimental_attachments: Ut
|
|
2980
2980
|
},
|
|
2981
|
-
...
|
|
2982
|
-
...
|
|
2983
|
-
...
|
|
2984
|
-
...
|
|
2981
|
+
...ta !== void 0 && { data: ta },
|
|
2982
|
+
...ra !== void 0 && { annotations: ra },
|
|
2983
|
+
...na !== void 0 && { toolInvocations: na },
|
|
2984
|
+
...aa !== void 0 && { parts: aa }
|
|
2985
2985
|
})
|
|
2986
|
-
),
|
|
2986
|
+
), ea = B.current;
|
|
2987
2987
|
await Jd({
|
|
2988
2988
|
api: e,
|
|
2989
2989
|
body: (Z = o == null ? void 0 : o({
|
|
@@ -2993,7 +2993,7 @@ function ru({
|
|
|
2993
2993
|
requestBody: H.body
|
|
2994
2994
|
})) != null ? Z : {
|
|
2995
2995
|
id: N,
|
|
2996
|
-
messages:
|
|
2996
|
+
messages: Xi,
|
|
2997
2997
|
data: H.data,
|
|
2998
2998
|
...U.current.body,
|
|
2999
2999
|
...H.body
|
|
@@ -3006,7 +3006,7 @@ function ru({
|
|
|
3006
3006
|
},
|
|
3007
3007
|
abortController: () => D.current,
|
|
3008
3008
|
restoreMessagesOnFailure() {
|
|
3009
|
-
k || gt(
|
|
3009
|
+
k || gt(qi, !1);
|
|
3010
3010
|
},
|
|
3011
3011
|
onResponse: d,
|
|
3012
3012
|
onUpdate({ message: Tr, data: yt, replaceLastMessage: Ut }) {
|
|
@@ -3016,8 +3016,8 @@ function ru({
|
|
|
3016
3016
|
Tr
|
|
3017
3017
|
],
|
|
3018
3018
|
!1
|
|
3019
|
-
), yt != null && yt.length &&
|
|
3020
|
-
[...
|
|
3019
|
+
), yt != null && yt.length && Ji(
|
|
3020
|
+
[...ea ?? [], ...yt],
|
|
3021
3021
|
!1
|
|
3022
3022
|
);
|
|
3023
3023
|
},
|
|
@@ -3072,14 +3072,14 @@ function ru({
|
|
|
3072
3072
|
experimental_attachments: ue
|
|
3073
3073
|
} = {}) => {
|
|
3074
3074
|
var Ne, he;
|
|
3075
|
-
const fe = await
|
|
3075
|
+
const fe = await Ea(
|
|
3076
3076
|
ue
|
|
3077
3077
|
), gt = I.current.concat({
|
|
3078
3078
|
...H,
|
|
3079
3079
|
id: (Ne = H.id) != null ? Ne : y(),
|
|
3080
3080
|
createdAt: (he = H.createdAt) != null ? he : /* @__PURE__ */ new Date(),
|
|
3081
3081
|
experimental_attachments: fe.length > 0 ? fe : void 0,
|
|
3082
|
-
parts:
|
|
3082
|
+
parts: go(H)
|
|
3083
3083
|
});
|
|
3084
3084
|
return j({ messages: gt, headers: Z, body: F, data: q });
|
|
3085
3085
|
},
|
|
@@ -3121,7 +3121,7 @@ function ru({
|
|
|
3121
3121
|
...U.current,
|
|
3122
3122
|
...Z
|
|
3123
3123
|
});
|
|
3124
|
-
const ue = await
|
|
3124
|
+
const ue = await Ea(
|
|
3125
3125
|
q.experimental_attachments
|
|
3126
3126
|
), he = {
|
|
3127
3127
|
messages: I.current.concat({
|
|
@@ -3150,7 +3150,7 @@ function ru({
|
|
|
3150
3150
|
toolResult: q
|
|
3151
3151
|
}), w(Z, !1);
|
|
3152
3152
|
const F = Z[Z.length - 1];
|
|
3153
|
-
|
|
3153
|
+
yo(F) && j({ messages: Z });
|
|
3154
3154
|
},
|
|
3155
3155
|
[w, j]
|
|
3156
3156
|
);
|
|
@@ -3173,14 +3173,14 @@ function ru({
|
|
|
3173
3173
|
addToolResult: Ce
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
const
|
|
3176
|
+
const Sa = {
|
|
3177
3177
|
onFinish: /* @__PURE__ */ new Set(),
|
|
3178
3178
|
onError: /* @__PURE__ */ new Set(),
|
|
3179
3179
|
onResponse: /* @__PURE__ */ new Set(),
|
|
3180
3180
|
onToolCall: /* @__PURE__ */ new Set()
|
|
3181
|
-
},
|
|
3181
|
+
}, bo = Nl(null);
|
|
3182
3182
|
function dt(e = {}) {
|
|
3183
|
-
const t = W(
|
|
3183
|
+
const t = W(bo);
|
|
3184
3184
|
if (!t)
|
|
3185
3185
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
|
3186
3186
|
return L(() => (e.onFinish && t.handlers.onFinish.add(e.onFinish), e.onError && t.handlers.onError.add(e.onError), e.onResponse && t.handlers.onResponse.add(e.onResponse), e.onToolCall && t.handlers.onToolCall.add(e.onToolCall), () => {
|
|
@@ -3191,9 +3191,9 @@ function nu({
|
|
|
3191
3191
|
children: e,
|
|
3192
3192
|
value: t
|
|
3193
3193
|
}) {
|
|
3194
|
-
const r = M(
|
|
3194
|
+
const r = M(Sa);
|
|
3195
3195
|
L(() => {
|
|
3196
|
-
r.current =
|
|
3196
|
+
r.current = Sa;
|
|
3197
3197
|
}, [t]);
|
|
3198
3198
|
const n = ru({
|
|
3199
3199
|
...t,
|
|
@@ -3222,7 +3222,7 @@ function nu({
|
|
|
3222
3222
|
// },
|
|
3223
3223
|
});
|
|
3224
3224
|
return /* @__PURE__ */ c(
|
|
3225
|
-
|
|
3225
|
+
bo.Provider,
|
|
3226
3226
|
{
|
|
3227
3227
|
value: {
|
|
3228
3228
|
chat: n,
|
|
@@ -3232,17 +3232,17 @@ function nu({
|
|
|
3232
3232
|
}
|
|
3233
3233
|
);
|
|
3234
3234
|
}
|
|
3235
|
-
const au = "z-20", su = "z-10",
|
|
3235
|
+
const au = "z-20", su = "z-10", xn = Y.createContext({
|
|
3236
3236
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
3237
3237
|
dispatch: () => {
|
|
3238
3238
|
}
|
|
3239
|
-
}),
|
|
3239
|
+
}), Tn = Y.createContext({
|
|
3240
3240
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
|
3241
3241
|
dispatch: () => {
|
|
3242
3242
|
}
|
|
3243
3243
|
}), ie = Y.createContext({
|
|
3244
3244
|
state: {
|
|
3245
|
-
provider:
|
|
3245
|
+
provider: Zi,
|
|
3246
3246
|
privateChat: !1,
|
|
3247
3247
|
streaming: !1,
|
|
3248
3248
|
loading: !1,
|
|
@@ -3257,9 +3257,9 @@ const au = "z-20", su = "z-10", kn = Y.createContext({
|
|
|
3257
3257
|
},
|
|
3258
3258
|
setInitialMessages: () => {
|
|
3259
3259
|
}
|
|
3260
|
-
}),
|
|
3260
|
+
}), _n = Y.createContext({
|
|
3261
3261
|
state: {
|
|
3262
|
-
footerPosition:
|
|
3262
|
+
footerPosition: Kr,
|
|
3263
3263
|
footerHeight: 0,
|
|
3264
3264
|
footerOffset: 0
|
|
3265
3265
|
},
|
|
@@ -3291,7 +3291,7 @@ const ou = "av-tooltip", iu = "av-tooltip-arrow", Ct = Math.min, et = Math.max,
|
|
|
3291
3291
|
start: "end",
|
|
3292
3292
|
end: "start"
|
|
3293
3293
|
};
|
|
3294
|
-
function
|
|
3294
|
+
function qr(e, t, r) {
|
|
3295
3295
|
return et(e, Ct(t, r));
|
|
3296
3296
|
}
|
|
3297
3297
|
function Pt(e, t) {
|
|
@@ -3303,29 +3303,29 @@ function We(e) {
|
|
|
3303
3303
|
function Bt(e) {
|
|
3304
3304
|
return e.split("-")[1];
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function vo(e) {
|
|
3307
3307
|
return e === "x" ? "y" : "x";
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function In(e) {
|
|
3310
3310
|
return e === "y" ? "height" : "width";
|
|
3311
3311
|
}
|
|
3312
3312
|
function ot(e) {
|
|
3313
3313
|
return ["top", "bottom"].includes(We(e)) ? "y" : "x";
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3316
|
-
return
|
|
3315
|
+
function En(e) {
|
|
3316
|
+
return vo(ot(e));
|
|
3317
3317
|
}
|
|
3318
3318
|
function du(e, t, r) {
|
|
3319
3319
|
r === void 0 && (r = !1);
|
|
3320
|
-
const n = Bt(e), a =
|
|
3320
|
+
const n = Bt(e), a = En(e), s = In(a);
|
|
3321
3321
|
let o = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
3322
3322
|
return t.reference[s] > t.floating[s] && (o = er(o)), [o, er(o)];
|
|
3323
3323
|
}
|
|
3324
3324
|
function uu(e) {
|
|
3325
3325
|
const t = er(e);
|
|
3326
|
-
return [
|
|
3326
|
+
return [Xr(e), t, Xr(t)];
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function Xr(e) {
|
|
3329
3329
|
return e.replace(/start|end/g, (t) => cu[t]);
|
|
3330
3330
|
}
|
|
3331
3331
|
function hu(e, t, r) {
|
|
@@ -3344,7 +3344,7 @@ function hu(e, t, r) {
|
|
|
3344
3344
|
function fu(e, t, r, n) {
|
|
3345
3345
|
const a = Bt(e);
|
|
3346
3346
|
let s = hu(We(e), r === "start", n);
|
|
3347
|
-
return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(
|
|
3347
|
+
return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(Xr)))), s;
|
|
3348
3348
|
}
|
|
3349
3349
|
function er(e) {
|
|
3350
3350
|
return e.replace(/left|right|bottom|top/g, (t) => lu[t]);
|
|
@@ -3358,7 +3358,7 @@ function mu(e) {
|
|
|
3358
3358
|
...e
|
|
3359
3359
|
};
|
|
3360
3360
|
}
|
|
3361
|
-
function
|
|
3361
|
+
function wo(e) {
|
|
3362
3362
|
return typeof e != "number" ? mu(e) : {
|
|
3363
3363
|
top: e,
|
|
3364
3364
|
right: e,
|
|
@@ -3384,12 +3384,12 @@ function tr(e) {
|
|
|
3384
3384
|
y: r
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function Aa(e, t, r) {
|
|
3388
3388
|
let {
|
|
3389
3389
|
reference: n,
|
|
3390
3390
|
floating: a
|
|
3391
3391
|
} = e;
|
|
3392
|
-
const s = ot(t), o =
|
|
3392
|
+
const s = ot(t), o = En(t), i = In(o), l = We(t), d = s === "y", u = n.x + n.width / 2 - a.width / 2, h = n.y + n.height / 2 - a.height / 2, f = n[i] / 2 - a[i] / 2;
|
|
3393
3393
|
let m;
|
|
3394
3394
|
switch (l) {
|
|
3395
3395
|
case "top":
|
|
@@ -3446,7 +3446,7 @@ const pu = async (e, t, r) => {
|
|
|
3446
3446
|
}), {
|
|
3447
3447
|
x: u,
|
|
3448
3448
|
y: h
|
|
3449
|
-
} =
|
|
3449
|
+
} = Aa(d, n, l), f = n, m = {}, g = 0;
|
|
3450
3450
|
for (let y = 0; y < i.length; y++) {
|
|
3451
3451
|
const {
|
|
3452
3452
|
name: v,
|
|
@@ -3483,7 +3483,7 @@ const pu = async (e, t, r) => {
|
|
|
3483
3483
|
}) : b.rects), {
|
|
3484
3484
|
x: u,
|
|
3485
3485
|
y: h
|
|
3486
|
-
} =
|
|
3486
|
+
} = Aa(d, f, l)), y = -1);
|
|
3487
3487
|
}
|
|
3488
3488
|
return {
|
|
3489
3489
|
x: u,
|
|
@@ -3493,7 +3493,7 @@ const pu = async (e, t, r) => {
|
|
|
3493
3493
|
middlewareData: m
|
|
3494
3494
|
};
|
|
3495
3495
|
};
|
|
3496
|
-
async function
|
|
3496
|
+
async function ko(e, t) {
|
|
3497
3497
|
var r;
|
|
3498
3498
|
t === void 0 && (t = {});
|
|
3499
3499
|
const {
|
|
@@ -3509,7 +3509,7 @@ async function vo(e, t) {
|
|
|
3509
3509
|
elementContext: h = "floating",
|
|
3510
3510
|
altBoundary: f = !1,
|
|
3511
3511
|
padding: m = 0
|
|
3512
|
-
} = Pt(t, e), g =
|
|
3512
|
+
} = Pt(t, e), g = wo(m), y = i[f ? h === "floating" ? "reference" : "floating" : h], v = tr(await s.getClippingRect({
|
|
3513
3513
|
element: (r = await (s.isElement == null ? void 0 : s.isElement(y))) == null || r ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
3514
3514
|
boundary: d,
|
|
3515
3515
|
rootBoundary: u,
|
|
@@ -3556,13 +3556,13 @@ const gu = (e) => ({
|
|
|
3556
3556
|
} = Pt(e, t) || {};
|
|
3557
3557
|
if (d == null)
|
|
3558
3558
|
return {};
|
|
3559
|
-
const h =
|
|
3559
|
+
const h = wo(u), f = {
|
|
3560
3560
|
x: r,
|
|
3561
3561
|
y: n
|
|
3562
|
-
}, m =
|
|
3562
|
+
}, m = En(a), g = In(m), y = await o.getDimensions(d), v = m === "y", k = v ? "top" : "left", T = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", N = s.reference[g] + s.reference[m] - f[m] - s.floating[g], b = f[m] - s.reference[m], x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d));
|
|
3563
3563
|
let _ = x ? x[E] : 0;
|
|
3564
3564
|
(!_ || !await (o.isElement == null ? void 0 : o.isElement(x))) && (_ = i.floating[E] || s.floating[g]);
|
|
3565
|
-
const w = N / 2 - b / 2, I = _ / 2 - y[g] / 2 - 1, R = Ct(h[k], I), S = Ct(h[T], I), B = R, A = _ - y[g] - S, V = _ / 2 - y[g] / 2 + w, z =
|
|
3565
|
+
const w = N / 2 - b / 2, I = _ / 2 - y[g] / 2 - 1, R = Ct(h[k], I), S = Ct(h[T], I), B = R, A = _ - y[g] - S, V = _ / 2 - y[g] / 2 + w, z = qr(B, V, A), P = !l.arrow && Bt(a) != null && V !== z && s.reference[g] / 2 - (V < B ? R : S) - y[g] / 2 < 0, D = P ? V < B ? V - B : V - A : 0;
|
|
3566
3566
|
return {
|
|
3567
3567
|
[m]: f[m] + D,
|
|
3568
3568
|
data: {
|
|
@@ -3601,7 +3601,7 @@ const gu = (e) => ({
|
|
|
3601
3601
|
return {};
|
|
3602
3602
|
const k = We(a), T = ot(i), E = We(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), b = f || (E || !y ? [er(i)] : uu(i)), x = g !== "none";
|
|
3603
3603
|
!f && x && b.push(...fu(i, y, g, N));
|
|
3604
|
-
const _ = [i, ...b], w = await
|
|
3604
|
+
const _ = [i, ...b], w = await ko(t, v), I = [];
|
|
3605
3605
|
let R = ((n = s.flip) == null ? void 0 : n.overflows) || [];
|
|
3606
3606
|
if (u && I.push(w[k]), h) {
|
|
3607
3607
|
const V = du(a, o, N);
|
|
@@ -3732,15 +3732,15 @@ const vu = function(e) {
|
|
|
3732
3732
|
} = Pt(e, t), d = {
|
|
3733
3733
|
x: r,
|
|
3734
3734
|
y: n
|
|
3735
|
-
}, u = await
|
|
3735
|
+
}, u = await ko(t, l), h = ot(We(a)), f = vo(h);
|
|
3736
3736
|
let m = d[f], g = d[h];
|
|
3737
3737
|
if (s) {
|
|
3738
3738
|
const v = f === "y" ? "top" : "left", k = f === "y" ? "bottom" : "right", T = m + u[v], E = m - u[k];
|
|
3739
|
-
m =
|
|
3739
|
+
m = qr(T, m, E);
|
|
3740
3740
|
}
|
|
3741
3741
|
if (o) {
|
|
3742
3742
|
const v = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", T = g + u[v], E = g - u[k];
|
|
3743
|
-
g =
|
|
3743
|
+
g = qr(T, g, E);
|
|
3744
3744
|
}
|
|
3745
3745
|
const y = i.fn({
|
|
3746
3746
|
...t,
|
|
@@ -3765,7 +3765,7 @@ function hr() {
|
|
|
3765
3765
|
return typeof window < "u";
|
|
3766
3766
|
}
|
|
3767
3767
|
function ut(e) {
|
|
3768
|
-
return
|
|
3768
|
+
return xo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
3769
3769
|
}
|
|
3770
3770
|
function ce(e) {
|
|
3771
3771
|
var t;
|
|
@@ -3773,9 +3773,9 @@ function ce(e) {
|
|
|
3773
3773
|
}
|
|
3774
3774
|
function Me(e) {
|
|
3775
3775
|
var t;
|
|
3776
|
-
return (t = (
|
|
3776
|
+
return (t = (xo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function xo(e) {
|
|
3779
3779
|
return hr() ? e instanceof Node || e instanceof ce(e).Node : !1;
|
|
3780
3780
|
}
|
|
3781
3781
|
function pe(e) {
|
|
@@ -3784,7 +3784,7 @@ function pe(e) {
|
|
|
3784
3784
|
function _e(e) {
|
|
3785
3785
|
return hr() ? e instanceof HTMLElement || e instanceof ce(e).HTMLElement : !1;
|
|
3786
3786
|
}
|
|
3787
|
-
function
|
|
3787
|
+
function Ra(e) {
|
|
3788
3788
|
return !hr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ce(e).ShadowRoot;
|
|
3789
3789
|
}
|
|
3790
3790
|
function Ot(e) {
|
|
@@ -3808,14 +3808,14 @@ function fr(e) {
|
|
|
3808
3808
|
}
|
|
3809
3809
|
});
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3812
|
-
const t =
|
|
3811
|
+
function Cn(e) {
|
|
3812
|
+
const t = Nn(), r = pe(e) ? ge(e) : e;
|
|
3813
3813
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "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((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
|
|
3814
3814
|
}
|
|
3815
3815
|
function xu(e) {
|
|
3816
3816
|
let t = Le(e);
|
|
3817
3817
|
for (; _e(t) && !it(t); ) {
|
|
3818
|
-
if (
|
|
3818
|
+
if (Cn(t))
|
|
3819
3819
|
return t;
|
|
3820
3820
|
if (fr(t))
|
|
3821
3821
|
return null;
|
|
@@ -3823,7 +3823,7 @@ function xu(e) {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
return null;
|
|
3825
3825
|
}
|
|
3826
|
-
function
|
|
3826
|
+
function Nn() {
|
|
3827
3827
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
3828
3828
|
}
|
|
3829
3829
|
function it(e) {
|
|
@@ -3848,25 +3848,25 @@ function Le(e) {
|
|
|
3848
3848
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
3849
3849
|
e.assignedSlot || // DOM Element detected.
|
|
3850
3850
|
e.parentNode || // ShadowRoot detected.
|
|
3851
|
-
|
|
3851
|
+
Ra(e) && e.host || // Fallback.
|
|
3852
3852
|
Me(e)
|
|
3853
3853
|
);
|
|
3854
|
-
return
|
|
3854
|
+
return Ra(t) ? t.host : t;
|
|
3855
3855
|
}
|
|
3856
|
-
function
|
|
3856
|
+
function To(e) {
|
|
3857
3857
|
const t = Le(e);
|
|
3858
|
-
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(t) && Ot(t) ? t :
|
|
3858
|
+
return it(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : _e(t) && Ot(t) ? t : To(t);
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3860
|
+
function _o(e, t, r) {
|
|
3861
3861
|
var n;
|
|
3862
3862
|
t === void 0 && (t = []);
|
|
3863
|
-
const a =
|
|
3864
|
-
return s ? t.concat(o, o.visualViewport || [], Ot(a) ? a : [], []) : t.concat(a,
|
|
3863
|
+
const a = To(e), s = a === ((n = e.ownerDocument) == null ? void 0 : n.body), o = ce(a);
|
|
3864
|
+
return s ? t.concat(o, o.visualViewport || [], Ot(a) ? a : [], []) : t.concat(a, _o(a, []));
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3866
|
+
function Ma(e) {
|
|
3867
3867
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3868
3868
|
}
|
|
3869
|
-
function
|
|
3869
|
+
function Io(e) {
|
|
3870
3870
|
const t = ge(e);
|
|
3871
3871
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
3872
3872
|
const a = _e(e), s = a ? e.offsetWidth : r, o = a ? e.offsetHeight : n, i = Qt(r) !== s || Qt(n) !== o;
|
|
@@ -3876,18 +3876,18 @@ function To(e) {
|
|
|
3876
3876
|
$: i
|
|
3877
3877
|
};
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function Eo(e) {
|
|
3880
3880
|
return pe(e) ? e : e.contextElement;
|
|
3881
3881
|
}
|
|
3882
3882
|
function tt(e) {
|
|
3883
|
-
const t =
|
|
3883
|
+
const t = Eo(e);
|
|
3884
3884
|
if (!_e(t))
|
|
3885
3885
|
return ke(1);
|
|
3886
3886
|
const r = t.getBoundingClientRect(), {
|
|
3887
3887
|
width: n,
|
|
3888
3888
|
height: a,
|
|
3889
3889
|
$: s
|
|
3890
|
-
} =
|
|
3890
|
+
} = Io(t);
|
|
3891
3891
|
let o = (s ? Qt(r.width) : r.width) / n, i = (s ? Qt(r.height) : r.height) / a;
|
|
3892
3892
|
return (!o || !Number.isFinite(o)) && (o = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
3893
3893
|
x: o,
|
|
@@ -3895,9 +3895,9 @@ function tt(e) {
|
|
|
3895
3895
|
};
|
|
3896
3896
|
}
|
|
3897
3897
|
const Tu = /* @__PURE__ */ ke(0);
|
|
3898
|
-
function
|
|
3898
|
+
function Co(e) {
|
|
3899
3899
|
const t = ce(e);
|
|
3900
|
-
return !
|
|
3900
|
+
return !Nn() || !t.visualViewport ? Tu : {
|
|
3901
3901
|
x: t.visualViewport.offsetLeft,
|
|
3902
3902
|
y: t.visualViewport.offsetTop
|
|
3903
3903
|
};
|
|
@@ -3907,17 +3907,17 @@ function _u(e, t, r) {
|
|
|
3907
3907
|
}
|
|
3908
3908
|
function Nt(e, t, r, n) {
|
|
3909
3909
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
3910
|
-
const a = e.getBoundingClientRect(), s =
|
|
3910
|
+
const a = e.getBoundingClientRect(), s = Eo(e);
|
|
3911
3911
|
let o = ke(1);
|
|
3912
3912
|
t && (n ? pe(n) && (o = tt(n)) : o = tt(e));
|
|
3913
|
-
const i = _u(s, r, n) ?
|
|
3913
|
+
const i = _u(s, r, n) ? Co(s) : ke(0);
|
|
3914
3914
|
let l = (a.left + i.x) / o.x, d = (a.top + i.y) / o.y, u = a.width / o.x, h = a.height / o.y;
|
|
3915
3915
|
if (s) {
|
|
3916
3916
|
const f = ce(s), m = n && pe(n) ? ce(n) : n;
|
|
3917
|
-
let g = f, y =
|
|
3917
|
+
let g = f, y = Ma(g);
|
|
3918
3918
|
for (; y && n && m !== g; ) {
|
|
3919
3919
|
const v = tt(y), k = y.getBoundingClientRect(), T = ge(y), E = k.left + (y.clientLeft + parseFloat(T.paddingLeft)) * v.x, N = k.top + (y.clientTop + parseFloat(T.paddingTop)) * v.y;
|
|
3920
|
-
l *= v.x, d *= v.y, u *= v.x, h *= v.y, l += E, d += N, g = ce(y), y =
|
|
3920
|
+
l *= v.x, d *= v.y, u *= v.x, h *= v.y, l += E, d += N, g = ce(y), y = Ma(g);
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
return tr({
|
|
@@ -3927,15 +3927,15 @@ function Nt(e, t, r, n) {
|
|
|
3927
3927
|
y: d
|
|
3928
3928
|
});
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function Sn(e, t) {
|
|
3931
3931
|
const r = mr(e).scrollLeft;
|
|
3932
3932
|
return t ? t.left + r : Nt(Me(e)).left + r;
|
|
3933
3933
|
}
|
|
3934
|
-
function
|
|
3934
|
+
function No(e, t, r) {
|
|
3935
3935
|
r === void 0 && (r = !1);
|
|
3936
3936
|
const n = e.getBoundingClientRect(), a = n.left + t.scrollLeft - (r ? 0 : (
|
|
3937
3937
|
// RTL <body> scrollbar.
|
|
3938
|
-
|
|
3938
|
+
Sn(e, n)
|
|
3939
3939
|
)), s = n.top + t.scrollTop;
|
|
3940
3940
|
return {
|
|
3941
3941
|
x: a,
|
|
@@ -3961,7 +3961,7 @@ function Iu(e) {
|
|
|
3961
3961
|
const m = Nt(n);
|
|
3962
3962
|
d = tt(n), u.x = m.x + n.clientLeft, u.y = m.y + n.clientTop;
|
|
3963
3963
|
}
|
|
3964
|
-
const f = o && !h && !s ?
|
|
3964
|
+
const f = o && !h && !s ? No(o, l, !0) : ke(0);
|
|
3965
3965
|
return {
|
|
3966
3966
|
width: r.width * d.x,
|
|
3967
3967
|
height: r.height * d.y,
|
|
@@ -3974,7 +3974,7 @@ function Eu(e) {
|
|
|
3974
3974
|
}
|
|
3975
3975
|
function Cu(e) {
|
|
3976
3976
|
const t = Me(e), r = mr(e), n = e.ownerDocument.body, a = et(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = et(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
3977
|
-
let o = -r.scrollLeft +
|
|
3977
|
+
let o = -r.scrollLeft + Sn(e);
|
|
3978
3978
|
const i = -r.scrollTop;
|
|
3979
3979
|
return ge(n).direction === "rtl" && (o += et(t.clientWidth, n.clientWidth) - a), {
|
|
3980
3980
|
width: a,
|
|
@@ -3988,7 +3988,7 @@ function Nu(e, t) {
|
|
|
3988
3988
|
let s = n.clientWidth, o = n.clientHeight, i = 0, l = 0;
|
|
3989
3989
|
if (a) {
|
|
3990
3990
|
s = a.width, o = a.height;
|
|
3991
|
-
const d =
|
|
3991
|
+
const d = Nn();
|
|
3992
3992
|
(!d || d && t === "fixed") && (i = a.offsetLeft, l = a.offsetTop);
|
|
3993
3993
|
}
|
|
3994
3994
|
return {
|
|
@@ -4007,7 +4007,7 @@ function Su(e, t) {
|
|
|
4007
4007
|
y: d
|
|
4008
4008
|
};
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function Va(e, t, r) {
|
|
4011
4011
|
let n;
|
|
4012
4012
|
if (t === "viewport")
|
|
4013
4013
|
n = Nu(e, r);
|
|
@@ -4016,7 +4016,7 @@ function Ma(e, t, r) {
|
|
|
4016
4016
|
else if (pe(t))
|
|
4017
4017
|
n = Su(t, r);
|
|
4018
4018
|
else {
|
|
4019
|
-
const a =
|
|
4019
|
+
const a = Co(e);
|
|
4020
4020
|
n = {
|
|
4021
4021
|
x: t.x - a.x,
|
|
4022
4022
|
y: t.y - a.y,
|
|
@@ -4026,20 +4026,20 @@ function Ma(e, t, r) {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
return tr(n);
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4029
|
+
function So(e, t) {
|
|
4030
4030
|
const r = Le(e);
|
|
4031
|
-
return r === t || !pe(r) || it(r) ? !1 : ge(r).position === "fixed" ||
|
|
4031
|
+
return r === t || !pe(r) || it(r) ? !1 : ge(r).position === "fixed" || So(r, t);
|
|
4032
4032
|
}
|
|
4033
4033
|
function Au(e, t) {
|
|
4034
4034
|
const r = t.get(e);
|
|
4035
4035
|
if (r)
|
|
4036
4036
|
return r;
|
|
4037
|
-
let n =
|
|
4037
|
+
let n = _o(e, []).filter((i) => pe(i) && ut(i) !== "body"), a = null;
|
|
4038
4038
|
const s = ge(e).position === "fixed";
|
|
4039
4039
|
let o = s ? Le(e) : e;
|
|
4040
4040
|
for (; pe(o) && !it(o); ) {
|
|
4041
|
-
const i = ge(o), l =
|
|
4042
|
-
!l && i.position === "fixed" && (a = null), (s ? !l && !a : !l && i.position === "static" && a && ["absolute", "fixed"].includes(a.position) || Ot(o) && !l &&
|
|
4041
|
+
const i = ge(o), l = Cn(o);
|
|
4042
|
+
!l && i.position === "fixed" && (a = null), (s ? !l && !a : !l && i.position === "static" && a && ["absolute", "fixed"].includes(a.position) || Ot(o) && !l && So(e, o)) ? n = n.filter((d) => d !== o) : a = i, o = Le(o);
|
|
4043
4043
|
}
|
|
4044
4044
|
return t.set(e, n), n;
|
|
4045
4045
|
}
|
|
@@ -4051,9 +4051,9 @@ function Ru(e) {
|
|
|
4051
4051
|
strategy: a
|
|
4052
4052
|
} = e;
|
|
4053
4053
|
const s = [...r === "clippingAncestors" ? fr(t) ? [] : Au(t, this._c) : [].concat(r), n], o = s[0], i = s.reduce((l, d) => {
|
|
4054
|
-
const u =
|
|
4054
|
+
const u = Va(t, d, a);
|
|
4055
4055
|
return l.top = et(u.top, l.top), l.right = Ct(u.right, l.right), l.bottom = Ct(u.bottom, l.bottom), l.left = et(u.left, l.left), l;
|
|
4056
|
-
},
|
|
4056
|
+
}, Va(t, o, a));
|
|
4057
4057
|
return {
|
|
4058
4058
|
width: i.right - i.left,
|
|
4059
4059
|
height: i.bottom - i.top,
|
|
@@ -4065,7 +4065,7 @@ function Mu(e) {
|
|
|
4065
4065
|
const {
|
|
4066
4066
|
width: t,
|
|
4067
4067
|
height: r
|
|
4068
|
-
} =
|
|
4068
|
+
} = Io(e);
|
|
4069
4069
|
return {
|
|
4070
4070
|
width: t,
|
|
4071
4071
|
height: r
|
|
@@ -4082,8 +4082,8 @@ function Vu(e, t, r) {
|
|
|
4082
4082
|
if ((ut(t) !== "body" || Ot(a)) && (i = mr(t)), n) {
|
|
4083
4083
|
const f = Nt(t, !0, s, t);
|
|
4084
4084
|
l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
|
|
4085
|
-
} else a && (l.x =
|
|
4086
|
-
const d = a && !n && !s ?
|
|
4085
|
+
} else a && (l.x = Sn(a));
|
|
4086
|
+
const d = a && !n && !s ? No(a, i) : ke(0), u = o.left + i.scrollLeft - l.x - d.x, h = o.top + i.scrollTop - l.y - d.y;
|
|
4087
4087
|
return {
|
|
4088
4088
|
x: u,
|
|
4089
4089
|
y: h,
|
|
@@ -4094,7 +4094,7 @@ function Vu(e, t, r) {
|
|
|
4094
4094
|
function Ar(e) {
|
|
4095
4095
|
return ge(e).position === "static";
|
|
4096
4096
|
}
|
|
4097
|
-
function
|
|
4097
|
+
function Pa(e, t) {
|
|
4098
4098
|
if (!_e(e) || ge(e).position === "fixed")
|
|
4099
4099
|
return null;
|
|
4100
4100
|
if (t)
|
|
@@ -4102,7 +4102,7 @@ function Va(e, t) {
|
|
|
4102
4102
|
let r = e.offsetParent;
|
|
4103
4103
|
return Me(e) === r && (r = r.ownerDocument.body), r;
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4105
|
+
function Ao(e, t) {
|
|
4106
4106
|
const r = ce(e);
|
|
4107
4107
|
if (fr(e))
|
|
4108
4108
|
return r;
|
|
@@ -4115,13 +4115,13 @@ function No(e, t) {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
return r;
|
|
4117
4117
|
}
|
|
4118
|
-
let n =
|
|
4118
|
+
let n = Pa(e, t);
|
|
4119
4119
|
for (; n && ku(n) && Ar(n); )
|
|
4120
|
-
n =
|
|
4121
|
-
return n && it(n) && Ar(n) && !
|
|
4120
|
+
n = Pa(n, t);
|
|
4121
|
+
return n && it(n) && Ar(n) && !Cn(n) ? r : n || xu(e) || r;
|
|
4122
4122
|
}
|
|
4123
4123
|
const Pu = async function(e) {
|
|
4124
|
-
const t = this.getOffsetParent ||
|
|
4124
|
+
const t = this.getOffsetParent || Ao, r = this.getDimensions, n = await r(e.floating);
|
|
4125
4125
|
return {
|
|
4126
4126
|
reference: Vu(e.reference, await t(e.floating), e.strategy),
|
|
4127
4127
|
floating: {
|
|
@@ -4139,7 +4139,7 @@ const Ou = {
|
|
|
4139
4139
|
convertOffsetParentRelativeRectToViewportRelativeRect: Iu,
|
|
4140
4140
|
getDocumentElement: Me,
|
|
4141
4141
|
getClippingRect: Ru,
|
|
4142
|
-
getOffsetParent:
|
|
4142
|
+
getOffsetParent: Ao,
|
|
4143
4143
|
getElementRects: Pu,
|
|
4144
4144
|
getClientRects: Eu,
|
|
4145
4145
|
getDimensions: Mu,
|
|
@@ -4158,7 +4158,7 @@ const Ou = {
|
|
|
4158
4158
|
...a,
|
|
4159
4159
|
platform: s
|
|
4160
4160
|
});
|
|
4161
|
-
},
|
|
4161
|
+
}, Ba = ["mousedown", "touchstart"];
|
|
4162
4162
|
function Uu(e, t, r) {
|
|
4163
4163
|
const n = M(null);
|
|
4164
4164
|
return L(() => {
|
|
@@ -4171,10 +4171,10 @@ function Uu(e, t, r) {
|
|
|
4171
4171
|
) && !i && e();
|
|
4172
4172
|
} else n.current && !n.current.contains(o) && e();
|
|
4173
4173
|
};
|
|
4174
|
-
return
|
|
4174
|
+
return Ba.forEach(
|
|
4175
4175
|
(s) => document.addEventListener(s, a)
|
|
4176
4176
|
), () => {
|
|
4177
|
-
|
|
4177
|
+
Ba.forEach(
|
|
4178
4178
|
(s) => document.removeEventListener(s, a)
|
|
4179
4179
|
);
|
|
4180
4180
|
};
|
|
@@ -4188,7 +4188,7 @@ function Hu(e, t) {
|
|
|
4188
4188
|
}, []);
|
|
4189
4189
|
return L(() => (s.current = e, r && o(), i), [e, r, o, i]), { start: o, stop: i, active: r };
|
|
4190
4190
|
}
|
|
4191
|
-
const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"),
|
|
4191
|
+
const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Oa = ({
|
|
4192
4192
|
mode: e
|
|
4193
4193
|
}) => p({
|
|
4194
4194
|
"bg-surface-darker": e === "dark" || e === "system",
|
|
@@ -4211,13 +4211,13 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = (
|
|
|
4211
4211
|
const a = p("relative inline-block", t), s = p(
|
|
4212
4212
|
ou,
|
|
4213
4213
|
ju(),
|
|
4214
|
-
|
|
4214
|
+
Oa({ mode: e }),
|
|
4215
4215
|
Wu({ mode: e }),
|
|
4216
4216
|
r
|
|
4217
4217
|
), o = p(
|
|
4218
4218
|
iu,
|
|
4219
4219
|
Ku(),
|
|
4220
|
-
|
|
4220
|
+
Oa({ mode: e }),
|
|
4221
4221
|
n
|
|
4222
4222
|
);
|
|
4223
4223
|
return { tooltip: s, arrow: o, wrapper: a };
|
|
@@ -4325,24 +4325,49 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = (
|
|
|
4325
4325
|
dispatch: r,
|
|
4326
4326
|
setChatId: n,
|
|
4327
4327
|
setInitialMessages: a
|
|
4328
|
-
} = W(ie), { setInput: s, stop: o } = dt(), i = M(null), l = M(!1), d = (
|
|
4329
|
-
|
|
4330
|
-
type:
|
|
4328
|
+
} = W(ie), { setInput: s, stop: o } = dt(), i = M(null), l = M(!1), d = () => {
|
|
4329
|
+
n(je()), a([]), s(""), r({
|
|
4330
|
+
type: Vt,
|
|
4331
4331
|
payload: {
|
|
4332
|
-
|
|
4333
|
-
loading: !1
|
|
4332
|
+
privateChat: !1
|
|
4334
4333
|
}
|
|
4335
4334
|
});
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
|
|
4335
|
+
};
|
|
4336
|
+
Ys(
|
|
4337
|
+
[
|
|
4338
|
+
[
|
|
4339
|
+
"mod+N",
|
|
4340
|
+
() => {
|
|
4341
|
+
Fr() && d();
|
|
4342
|
+
}
|
|
4343
|
+
],
|
|
4344
|
+
[
|
|
4345
|
+
"mod+T",
|
|
4346
|
+
() => {
|
|
4347
|
+
Fr() && d();
|
|
4348
|
+
}
|
|
4349
|
+
]
|
|
4350
|
+
],
|
|
4351
|
+
/**
|
|
4352
|
+
* Removing the default tags that should not trigger the hotkey, e.g.
|
|
4353
|
+
* input, textarea and select, since we want to trigger the hotkey
|
|
4354
|
+
* regardless of the focus.
|
|
4355
|
+
*/
|
|
4356
|
+
[]
|
|
4357
|
+
);
|
|
4358
|
+
const u = (f) => {
|
|
4359
|
+
f.preventDefault(), o(), r({
|
|
4360
|
+
type: Pe,
|
|
4339
4361
|
payload: {
|
|
4340
|
-
|
|
4362
|
+
streaming: !1,
|
|
4363
|
+
loading: !1
|
|
4341
4364
|
}
|
|
4342
4365
|
});
|
|
4366
|
+
}, h = (f) => {
|
|
4367
|
+
f.preventDefault(), d();
|
|
4343
4368
|
};
|
|
4344
4369
|
return L(() => {
|
|
4345
|
-
|
|
4370
|
+
zr() || (t === !0 && !l.current && i.current && (l.current = !0, i.current.focus()), t === !1 && l.current && (l.current = !1));
|
|
4346
4371
|
}, [t]), /* @__PURE__ */ c(
|
|
4347
4372
|
Ge,
|
|
4348
4373
|
{
|
|
@@ -4358,8 +4383,8 @@ const jt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ju = (
|
|
|
4358
4383
|
focusMode: "light",
|
|
4359
4384
|
label: "New Chat",
|
|
4360
4385
|
ref: i,
|
|
4361
|
-
onClick: t ?
|
|
4362
|
-
children: t ? /* @__PURE__ */ c(
|
|
4386
|
+
onClick: t ? u : h,
|
|
4387
|
+
children: t ? /* @__PURE__ */ c(jl, { size: Re, monotone: !0 }) : /* @__PURE__ */ c(Gl, { size: Re })
|
|
4363
4388
|
}
|
|
4364
4389
|
)
|
|
4365
4390
|
}
|
|
@@ -4378,7 +4403,7 @@ try {
|
|
|
4378
4403
|
});
|
|
4379
4404
|
} catch {
|
|
4380
4405
|
}
|
|
4381
|
-
const
|
|
4406
|
+
const La = "av-messagebox", $a = "av-panel", Da = "av-button", pr = "icon", Ro = "button", Zr = "link", Xu = ({
|
|
4382
4407
|
type: e,
|
|
4383
4408
|
size: t,
|
|
4384
4409
|
labelRight: r,
|
|
@@ -4388,8 +4413,8 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
|
|
|
4388
4413
|
}) => {
|
|
4389
4414
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
4390
4415
|
switch (e) {
|
|
4391
|
-
case
|
|
4392
|
-
case
|
|
4416
|
+
case Ro:
|
|
4417
|
+
case Zr:
|
|
4393
4418
|
return p({
|
|
4394
4419
|
[o]: t === "small",
|
|
4395
4420
|
[i]: t === "medium",
|
|
@@ -4422,10 +4447,10 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
|
|
|
4422
4447
|
}) => {
|
|
4423
4448
|
const a = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
|
4424
4449
|
switch (e) {
|
|
4425
|
-
case
|
|
4426
|
-
case
|
|
4450
|
+
case Ro:
|
|
4451
|
+
case Zr:
|
|
4427
4452
|
return p({
|
|
4428
|
-
"text-center": e ===
|
|
4453
|
+
"text-center": e === Zr,
|
|
4429
4454
|
[a]: t === "small",
|
|
4430
4455
|
[s]: t === "medium",
|
|
4431
4456
|
[o]: t === "large"
|
|
@@ -4640,8 +4665,8 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
|
|
|
4640
4665
|
align: g,
|
|
4641
4666
|
radius: y,
|
|
4642
4667
|
animated: v
|
|
4643
|
-
}) => (f || (f = "primary"), r ? p(
|
|
4644
|
-
|
|
4668
|
+
}) => (f || (f = "primary"), r ? p(Da, t) : p(
|
|
4669
|
+
Da,
|
|
4645
4670
|
Qu({
|
|
4646
4671
|
mode: n,
|
|
4647
4672
|
variant: f,
|
|
@@ -4674,7 +4699,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
|
|
|
4674
4699
|
)), ch = (e, t, r) => {
|
|
4675
4700
|
var n;
|
|
4676
4701
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
4677
|
-
},
|
|
4702
|
+
}, Mo = Y.forwardRef((e, t) => {
|
|
4678
4703
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
4679
4704
|
return /* @__PURE__ */ c(
|
|
4680
4705
|
"button",
|
|
@@ -4687,7 +4712,7 @@ const Oa = "av-messagebox", La = "av-panel", $a = "av-button", pr = "icon", So =
|
|
|
4687
4712
|
}
|
|
4688
4713
|
);
|
|
4689
4714
|
});
|
|
4690
|
-
|
|
4715
|
+
Mo.displayName = "BaseButton";
|
|
4691
4716
|
function dh() {
|
|
4692
4717
|
const e = M(!1);
|
|
4693
4718
|
return L(() => (e.current = !0, () => {
|
|
@@ -4737,7 +4762,7 @@ const fh = {
|
|
|
4737
4762
|
// px-3 x 2
|
|
4738
4763
|
large: 16 * 2
|
|
4739
4764
|
// px-4 x 2
|
|
4740
|
-
}, ph = 2,
|
|
4765
|
+
}, ph = 2, An = Y.forwardRef(
|
|
4741
4766
|
({
|
|
4742
4767
|
children: e,
|
|
4743
4768
|
disabled: t = !1,
|
|
@@ -4793,7 +4818,7 @@ const fh = {
|
|
|
4793
4818
|
h,
|
|
4794
4819
|
E
|
|
4795
4820
|
]), /* @__PURE__ */ C(
|
|
4796
|
-
|
|
4821
|
+
Mo,
|
|
4797
4822
|
{
|
|
4798
4823
|
ref: D,
|
|
4799
4824
|
className: x,
|
|
@@ -4803,7 +4828,7 @@ const fh = {
|
|
|
4803
4828
|
...N,
|
|
4804
4829
|
children: [
|
|
4805
4830
|
/* @__PURE__ */ c(
|
|
4806
|
-
|
|
4831
|
+
Fa,
|
|
4807
4832
|
{
|
|
4808
4833
|
label: m,
|
|
4809
4834
|
labelRef: S,
|
|
@@ -4813,7 +4838,7 @@ const fh = {
|
|
|
4813
4838
|
),
|
|
4814
4839
|
/* @__PURE__ */ c("span", { ref: A, className: _, children: e }),
|
|
4815
4840
|
/* @__PURE__ */ c(
|
|
4816
|
-
|
|
4841
|
+
Fa,
|
|
4817
4842
|
{
|
|
4818
4843
|
label: f,
|
|
4819
4844
|
labelRef: I,
|
|
@@ -4825,13 +4850,13 @@ const fh = {
|
|
|
4825
4850
|
}
|
|
4826
4851
|
);
|
|
4827
4852
|
}
|
|
4828
|
-
),
|
|
4853
|
+
), Fa = ({
|
|
4829
4854
|
labelRef: e,
|
|
4830
4855
|
labelClass: t,
|
|
4831
4856
|
label: r,
|
|
4832
4857
|
labelInnerClass: n
|
|
4833
4858
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
|
|
4834
|
-
|
|
4859
|
+
An.displayName = "ButtonIcon";
|
|
4835
4860
|
/*!
|
|
4836
4861
|
@versini/ui-button v4.2.8
|
|
4837
4862
|
© 2025 gizmette.com
|
|
@@ -4871,7 +4896,7 @@ const gh = Y.forwardRef(
|
|
|
4871
4896
|
}
|
|
4872
4897
|
) : "";
|
|
4873
4898
|
return /* @__PURE__ */ c("div", { className: o, children: /* @__PURE__ */ c(
|
|
4874
|
-
|
|
4899
|
+
An,
|
|
4875
4900
|
{
|
|
4876
4901
|
className: p("justify-center", r),
|
|
4877
4902
|
ref: s,
|
|
@@ -4964,21 +4989,21 @@ try {
|
|
|
4964
4989
|
});
|
|
4965
4990
|
} catch {
|
|
4966
4991
|
}
|
|
4967
|
-
const
|
|
4992
|
+
const Vo = ee.createContext(null);
|
|
4968
4993
|
function vh({
|
|
4969
4994
|
initialOpen: e = !1,
|
|
4970
4995
|
open: t,
|
|
4971
4996
|
onOpenChange: r
|
|
4972
4997
|
} = {}) {
|
|
4973
|
-
const [n, a] = ee.useState(e), [s, o] = ee.useState(), [i, l] = ee.useState(), d = t ?? n, u = r ?? a, h =
|
|
4998
|
+
const [n, a] = ee.useState(e), [s, o] = ee.useState(), [i, l] = ee.useState(), d = t ?? n, u = r ?? a, h = Ds({
|
|
4974
4999
|
open: d,
|
|
4975
5000
|
onOpenChange: u
|
|
4976
|
-
}), f = h.context, m =
|
|
5001
|
+
}), f = h.context, m = Fs(f, {
|
|
4977
5002
|
enabled: t == null
|
|
4978
|
-
}), g =
|
|
5003
|
+
}), g = zs(f, {
|
|
4979
5004
|
outsidePress: !1,
|
|
4980
5005
|
outsidePressEvent: "mousedown"
|
|
4981
|
-
}), y =
|
|
5006
|
+
}), y = Us(f), v = Hs([m, g, y]);
|
|
4982
5007
|
return ee.useMemo(
|
|
4983
5008
|
() => ({
|
|
4984
5009
|
open: d,
|
|
@@ -4994,7 +5019,7 @@ function vh({
|
|
|
4994
5019
|
);
|
|
4995
5020
|
}
|
|
4996
5021
|
const gr = () => {
|
|
4997
|
-
const e = ee.useContext(
|
|
5022
|
+
const e = ee.useContext(Vo);
|
|
4998
5023
|
if (e == null)
|
|
4999
5024
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
5000
5025
|
return e;
|
|
@@ -5004,17 +5029,17 @@ function wh({
|
|
|
5004
5029
|
...t
|
|
5005
5030
|
}) {
|
|
5006
5031
|
const r = vh(t);
|
|
5007
|
-
return /* @__PURE__ */ c(
|
|
5032
|
+
return /* @__PURE__ */ c(Vo.Provider, { value: r, children: e });
|
|
5008
5033
|
}
|
|
5009
5034
|
const kh = ee.forwardRef(function(e, t) {
|
|
5010
|
-
const { context: r, ...n } = gr(), a =
|
|
5035
|
+
const { context: r, ...n } = gr(), a = gn([n.refs.setFloating, t]);
|
|
5011
5036
|
if (!r.open)
|
|
5012
5037
|
return null;
|
|
5013
5038
|
const { overlayBackground: s, ...o } = e, i = p("grid place-items-center", {
|
|
5014
5039
|
[`${s}`]: s,
|
|
5015
5040
|
"bg-black sm:bg-black/[.8]": !s
|
|
5016
5041
|
});
|
|
5017
|
-
return /* @__PURE__ */ c(
|
|
5042
|
+
return /* @__PURE__ */ c(Ls, { children: /* @__PURE__ */ c(Rl, { className: i, lockScroll: !0, children: /* @__PURE__ */ c($s, { context: r, children: /* @__PURE__ */ c(
|
|
5018
5043
|
"div",
|
|
5019
5044
|
{
|
|
5020
5045
|
ref: a,
|
|
@@ -5057,10 +5082,10 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5057
5082
|
borderMode: r
|
|
5058
5083
|
}) => ({
|
|
5059
5084
|
main: p("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
5060
|
-
[`${
|
|
5061
|
-
[`${
|
|
5062
|
-
[`${
|
|
5063
|
-
[`${
|
|
5085
|
+
[`${$a} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === vt,
|
|
5086
|
+
[`${$a} w-full sm:w-[95%] md:max-w-2xl`]: t === vt && !e,
|
|
5087
|
+
[`${La} rounded-lg border-2`]: t === Wt,
|
|
5088
|
+
[`${La} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === Wt && !e,
|
|
5064
5089
|
[`${e}`]: !!e,
|
|
5065
5090
|
"sm:border-border-dark": r === "dark" && t === vt,
|
|
5066
5091
|
"sm:border-border-accent": r === "light" && t === vt,
|
|
@@ -5091,7 +5116,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5091
5116
|
{
|
|
5092
5117
|
className: d.close,
|
|
5093
5118
|
trigger: /* @__PURE__ */ c(
|
|
5094
|
-
|
|
5119
|
+
An,
|
|
5095
5120
|
{
|
|
5096
5121
|
mode: "dark",
|
|
5097
5122
|
focusMode: "light",
|
|
@@ -5107,7 +5132,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5107
5132
|
/* @__PURE__ */ c(Th, { className: d.content, children: n }),
|
|
5108
5133
|
a && /* @__PURE__ */ c("div", { className: d.footer, children: a })
|
|
5109
5134
|
] }) }) });
|
|
5110
|
-
},
|
|
5135
|
+
}, Rn = ({
|
|
5111
5136
|
showConfirmation: e,
|
|
5112
5137
|
setShowConfirmation: t,
|
|
5113
5138
|
action: r,
|
|
@@ -5157,7 +5182,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5157
5182
|
setChatId: n,
|
|
5158
5183
|
setInitialMessages: a
|
|
5159
5184
|
} = W(ie), [s, o] = $(!1), [i, l] = at({
|
|
5160
|
-
key: nt +
|
|
5185
|
+
key: nt + Qi,
|
|
5161
5186
|
initialValue: ""
|
|
5162
5187
|
}), d = () => {
|
|
5163
5188
|
n(je()), a([]), r({
|
|
@@ -5169,7 +5194,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5169
5194
|
};
|
|
5170
5195
|
return /* @__PURE__ */ C(ae, { children: [
|
|
5171
5196
|
/* @__PURE__ */ c(
|
|
5172
|
-
|
|
5197
|
+
Rn,
|
|
5173
5198
|
{
|
|
5174
5199
|
showConfirmation: s,
|
|
5175
5200
|
setShowConfirmation: o,
|
|
@@ -5206,13 +5231,13 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5206
5231
|
h.preventDefault(), i ? d() : (l("true"), o(!s));
|
|
5207
5232
|
},
|
|
5208
5233
|
className: "text-sm",
|
|
5209
|
-
children: t ? /* @__PURE__ */ c(
|
|
5234
|
+
children: t ? /* @__PURE__ */ c(ql, { size: Re }) : /* @__PURE__ */ c(sc, { size: Re })
|
|
5210
5235
|
}
|
|
5211
5236
|
)
|
|
5212
5237
|
}
|
|
5213
5238
|
)
|
|
5214
5239
|
] });
|
|
5215
|
-
},
|
|
5240
|
+
}, Qr = ee.createContext({
|
|
5216
5241
|
getItemProps: () => ({}),
|
|
5217
5242
|
activeIndex: null,
|
|
5218
5243
|
/* v8 ignore next 2 */
|
|
@@ -5221,7 +5246,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5221
5246
|
setHasFocusInside: () => {
|
|
5222
5247
|
},
|
|
5223
5248
|
isOpen: !1
|
|
5224
|
-
}),
|
|
5249
|
+
}), za = (e) => {
|
|
5225
5250
|
if (typeof e == "string")
|
|
5226
5251
|
return e;
|
|
5227
5252
|
if (typeof e == "function")
|
|
@@ -5232,7 +5257,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5232
5257
|
return t.displayName || t.name || "Component";
|
|
5233
5258
|
}
|
|
5234
5259
|
return "Element";
|
|
5235
|
-
},
|
|
5260
|
+
}, Po = Os(
|
|
5236
5261
|
({
|
|
5237
5262
|
trigger: e,
|
|
5238
5263
|
children: t,
|
|
@@ -5243,7 +5268,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5243
5268
|
focusMode: o = "system",
|
|
5244
5269
|
...i
|
|
5245
5270
|
}, l) => {
|
|
5246
|
-
const [d, u] = $(!1), [h, f] = $(!1), [m, g] = $(null), y = M([]), v = M([]), k = W(
|
|
5271
|
+
const [d, u] = $(!1), [h, f] = $(!1), [m, g] = $(null), y = M([]), v = M([]), k = W(Qr), T = js(), E = Ml(), N = Ws(), { floatingStyles: b, refs: x, context: _ } = Ds({
|
|
5247
5272
|
nodeId: E,
|
|
5248
5273
|
open: d,
|
|
5249
5274
|
onOpenChange: (j) => {
|
|
@@ -5251,23 +5276,23 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5251
5276
|
},
|
|
5252
5277
|
placement: n,
|
|
5253
5278
|
strategy: "fixed",
|
|
5254
|
-
middleware: [
|
|
5255
|
-
whileElementsMounted:
|
|
5256
|
-
}), w =
|
|
5279
|
+
middleware: [Vl({ mainAxis: 10 }), Pl(), Bl()],
|
|
5280
|
+
whileElementsMounted: Ol
|
|
5281
|
+
}), w = Fs(_, {
|
|
5257
5282
|
event: "mousedown",
|
|
5258
5283
|
toggle: !0,
|
|
5259
5284
|
ignoreMouse: !1
|
|
5260
|
-
}), I =
|
|
5285
|
+
}), I = Us(_, { role: "menu" }), R = zs(_, { bubbles: !0 }), S = Ll(_, {
|
|
5261
5286
|
listRef: y,
|
|
5262
5287
|
activeIndex: m,
|
|
5263
5288
|
nested: !1,
|
|
5264
5289
|
onNavigate: g,
|
|
5265
5290
|
loop: !0
|
|
5266
|
-
}), B =
|
|
5291
|
+
}), B = $l(_, {
|
|
5267
5292
|
listRef: v,
|
|
5268
5293
|
onMatch: d ? g : void 0,
|
|
5269
5294
|
activeIndex: m
|
|
5270
|
-
}), { getReferenceProps: A, getFloatingProps: V, getItemProps: z } =
|
|
5295
|
+
}), { getReferenceProps: A, getFloatingProps: V, getItemProps: z } = Hs([w, I, R, S, B]), P = za(e) === "Button" || za(e) === "ButtonIcon", D = P ? {
|
|
5271
5296
|
noInternalClick: P,
|
|
5272
5297
|
focusMode: o,
|
|
5273
5298
|
mode: s
|
|
@@ -5278,7 +5303,7 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5278
5303
|
"aria-label": r,
|
|
5279
5304
|
"data-open": d ? "" : void 0,
|
|
5280
5305
|
"data-focus-inside": h ? "" : void 0,
|
|
5281
|
-
ref:
|
|
5306
|
+
ref: gn([x.setReference, N.ref, l]),
|
|
5282
5307
|
...A(
|
|
5283
5308
|
k.getItemProps({
|
|
5284
5309
|
...i
|
|
@@ -5297,10 +5322,10 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5297
5322
|
};
|
|
5298
5323
|
}, [T, a]), L(() => {
|
|
5299
5324
|
d && T && T.events.emit("menuopen", { nodeId: E });
|
|
5300
|
-
}, [T, d, E]), /* @__PURE__ */ C(
|
|
5325
|
+
}, [T, d, E]), /* @__PURE__ */ C(Dl, { id: E, children: [
|
|
5301
5326
|
U,
|
|
5302
5327
|
/* @__PURE__ */ c(
|
|
5303
|
-
|
|
5328
|
+
Qr.Provider,
|
|
5304
5329
|
{
|
|
5305
5330
|
value: {
|
|
5306
5331
|
activeIndex: m,
|
|
@@ -5309,8 +5334,8 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5309
5334
|
setHasFocusInside: f,
|
|
5310
5335
|
isOpen: d
|
|
5311
5336
|
},
|
|
5312
|
-
children: /* @__PURE__ */ c(
|
|
5313
|
-
|
|
5337
|
+
children: /* @__PURE__ */ c(Fl, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ c(Ls, { children: /* @__PURE__ */ c(
|
|
5338
|
+
$s,
|
|
5314
5339
|
{
|
|
5315
5340
|
context: _,
|
|
5316
5341
|
modal: !1,
|
|
@@ -5332,9 +5357,9 @@ const vt = "panel", Wt = "messagebox", Ih = ({
|
|
|
5332
5357
|
)
|
|
5333
5358
|
] });
|
|
5334
5359
|
}
|
|
5335
|
-
), yr =
|
|
5360
|
+
), yr = Os((e, t) => /* @__PURE__ */ c(zl, { children: /* @__PURE__ */ c(Po, { ...e, ref: t }) }));
|
|
5336
5361
|
yr.displayName = "Menu";
|
|
5337
|
-
|
|
5362
|
+
Po.displayName = "MenuComponent";
|
|
5338
5363
|
const Ch = ({
|
|
5339
5364
|
children: e,
|
|
5340
5365
|
fill: t,
|
|
@@ -5430,7 +5455,7 @@ const Se = ee.forwardRef(
|
|
|
5430
5455
|
...i
|
|
5431
5456
|
}, l) => {
|
|
5432
5457
|
let d = "";
|
|
5433
|
-
const u = ee.useContext(
|
|
5458
|
+
const u = ee.useContext(Qr), h = Ws({ label: t ? null : e }), f = js(), m = gn([h.ref, l]);
|
|
5434
5459
|
if (n && a)
|
|
5435
5460
|
return /* @__PURE__ */ c(
|
|
5436
5461
|
"div",
|
|
@@ -5485,7 +5510,7 @@ Se.displayName = "MenuItem";
|
|
|
5485
5510
|
const Sh = ({ className: e, ...t }) => {
|
|
5486
5511
|
const r = p(e, "my-1 border-t border-border-medium");
|
|
5487
5512
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
|
5488
|
-
},
|
|
5513
|
+
}, Bo = ({
|
|
5489
5514
|
className: e,
|
|
5490
5515
|
...t
|
|
5491
5516
|
}) => {
|
|
@@ -5517,7 +5542,7 @@ const Ah = (e) => {
|
|
|
5517
5542
|
className: e,
|
|
5518
5543
|
defaultPlacement: t = "top-start"
|
|
5519
5544
|
}) => {
|
|
5520
|
-
const { dispatch: r, setChatId: n, setInitialMessages: a } = W(ie), { dispatch: s } = W(
|
|
5545
|
+
const { dispatch: r, setChatId: n, setInitialMessages: a } = W(ie), { dispatch: s } = W(Tn), { getAccessToken: o, user: i } = de(), {
|
|
5521
5546
|
data: l,
|
|
5522
5547
|
error: d,
|
|
5523
5548
|
isLoading: u
|
|
@@ -5531,7 +5556,7 @@ const Ah = (e) => {
|
|
|
5531
5556
|
privateChat: g
|
|
5532
5557
|
}
|
|
5533
5558
|
}), s({
|
|
5534
|
-
type:
|
|
5559
|
+
type: Rs,
|
|
5535
5560
|
payload: {
|
|
5536
5561
|
prompt: m
|
|
5537
5562
|
}
|
|
@@ -5548,21 +5573,21 @@ const Ah = (e) => {
|
|
|
5548
5573
|
{
|
|
5549
5574
|
mode: "dark",
|
|
5550
5575
|
focusMode: "light",
|
|
5551
|
-
trigger: /* @__PURE__ */ c(Te, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(
|
|
5576
|
+
trigger: /* @__PURE__ */ c(Te, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(Hl, { size: Re }) }),
|
|
5552
5577
|
defaultPlacement: t,
|
|
5553
5578
|
children: [
|
|
5554
|
-
/* @__PURE__ */ c(
|
|
5579
|
+
/* @__PURE__ */ c(Bo, { children: "Prompts" }),
|
|
5555
5580
|
l && l.tags && l.tags.map((f) => {
|
|
5556
5581
|
let m = null;
|
|
5557
5582
|
switch (f.slot) {
|
|
5558
5583
|
case 0:
|
|
5559
|
-
m = /* @__PURE__ */ c(
|
|
5584
|
+
m = /* @__PURE__ */ c(Xl, {});
|
|
5560
5585
|
break;
|
|
5561
5586
|
case 1:
|
|
5562
|
-
m = /* @__PURE__ */ c(
|
|
5587
|
+
m = /* @__PURE__ */ c(Ql, {});
|
|
5563
5588
|
break;
|
|
5564
5589
|
case 2:
|
|
5565
|
-
m = /* @__PURE__ */ c(
|
|
5590
|
+
m = /* @__PURE__ */ c(tc, {});
|
|
5566
5591
|
break;
|
|
5567
5592
|
default:
|
|
5568
5593
|
m = null;
|
|
@@ -5633,7 +5658,7 @@ const Ah = (e) => {
|
|
|
5633
5658
|
focusMode: "light",
|
|
5634
5659
|
label: "Save Private Chat",
|
|
5635
5660
|
onClick: u,
|
|
5636
|
-
children: /* @__PURE__ */ c(
|
|
5661
|
+
children: /* @__PURE__ */ c(Kl, { size: Re, monotone: !0 })
|
|
5637
5662
|
}
|
|
5638
5663
|
)
|
|
5639
5664
|
}
|
|
@@ -5695,7 +5720,7 @@ const Ah = (e) => {
|
|
|
5695
5720
|
type: "submit",
|
|
5696
5721
|
mode: "light",
|
|
5697
5722
|
focusMode: "light",
|
|
5698
|
-
children: /* @__PURE__ */ c(
|
|
5723
|
+
children: /* @__PURE__ */ c(rc, { size: Re })
|
|
5699
5724
|
}
|
|
5700
5725
|
)
|
|
5701
5726
|
}
|
|
@@ -5718,7 +5743,7 @@ const Ah = (e) => {
|
|
|
5718
5743
|
getAccessToken: o
|
|
5719
5744
|
}), f = async (m) => {
|
|
5720
5745
|
try {
|
|
5721
|
-
a(je()), s([]), await
|
|
5746
|
+
a(je()), s([]), await Ms({
|
|
5722
5747
|
provider: m,
|
|
5723
5748
|
accessToken: await o(),
|
|
5724
5749
|
username: (i == null ? void 0 : i.username) || ""
|
|
@@ -5743,26 +5768,26 @@ const Ah = (e) => {
|
|
|
5743
5768
|
{
|
|
5744
5769
|
mode: "dark",
|
|
5745
5770
|
focusMode: "light",
|
|
5746
|
-
trigger: /* @__PURE__ */ c(Te, { noBorder: !0, label: "Providers", children: r === _r ? /* @__PURE__ */ c(
|
|
5771
|
+
trigger: /* @__PURE__ */ c(Te, { noBorder: !0, label: "Providers", children: r === _r ? /* @__PURE__ */ c(Hr, { size: Re }) : /* @__PURE__ */ c(jr, { size: Re }) }),
|
|
5747
5772
|
defaultPlacement: "top-start",
|
|
5748
5773
|
children: [
|
|
5749
|
-
/* @__PURE__ */ c(
|
|
5774
|
+
/* @__PURE__ */ c(Bo, { children: "Providers" }),
|
|
5750
5775
|
/* @__PURE__ */ c(
|
|
5751
5776
|
Se,
|
|
5752
5777
|
{
|
|
5753
5778
|
selected: r === _r,
|
|
5754
5779
|
label: "Anthropic",
|
|
5755
|
-
icon: /* @__PURE__ */ c(
|
|
5780
|
+
icon: /* @__PURE__ */ c(Hr, {}),
|
|
5756
5781
|
onClick: () => f(_r)
|
|
5757
5782
|
}
|
|
5758
5783
|
),
|
|
5759
5784
|
/* @__PURE__ */ c(
|
|
5760
5785
|
Se,
|
|
5761
5786
|
{
|
|
5762
|
-
selected: r ===
|
|
5787
|
+
selected: r === sa,
|
|
5763
5788
|
label: "OpenAI",
|
|
5764
|
-
icon: /* @__PURE__ */ c(
|
|
5765
|
-
onClick: () => f(
|
|
5789
|
+
icon: /* @__PURE__ */ c(jr, {}),
|
|
5790
|
+
onClick: () => f(sa)
|
|
5766
5791
|
}
|
|
5767
5792
|
)
|
|
5768
5793
|
]
|
|
@@ -5772,7 +5797,7 @@ const Ah = (e) => {
|
|
|
5772
5797
|
);
|
|
5773
5798
|
}, Oh = () => p(
|
|
5774
5799
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
|
5775
|
-
),
|
|
5800
|
+
), Ua = () => p("bg-surface-darker"), Lh = () => p("text-copy-lighter caret-copy-light"), $h = () => p(
|
|
5776
5801
|
"has-[.av-prompt-editable:focus]:outline",
|
|
5777
5802
|
"has-[.av-prompt-editable:focus]:outline-2",
|
|
5778
5803
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
|
@@ -5783,25 +5808,25 @@ const Ah = (e) => {
|
|
|
5783
5808
|
"h-6 pr-2 pl-4"
|
|
5784
5809
|
), Fh = ({ className: e }) => {
|
|
5785
5810
|
const t = p(
|
|
5786
|
-
|
|
5811
|
+
el,
|
|
5787
5812
|
Oh(),
|
|
5788
|
-
|
|
5813
|
+
Ua(),
|
|
5789
5814
|
Lh(),
|
|
5790
5815
|
$h(),
|
|
5791
5816
|
e
|
|
5792
5817
|
), r = p(
|
|
5793
|
-
|
|
5818
|
+
tl,
|
|
5794
5819
|
Dh(),
|
|
5795
|
-
|
|
5820
|
+
Ua()
|
|
5796
5821
|
);
|
|
5797
5822
|
return {
|
|
5798
5823
|
wrapper: t,
|
|
5799
5824
|
textArea: r
|
|
5800
5825
|
};
|
|
5801
|
-
},
|
|
5826
|
+
}, Oo = 24, zh = 500, Lo = 2, Uh = 5, Ha = Oo * Lo, ja = Uh * Oo, Hh = () => {
|
|
5802
5827
|
const { getAccessToken: e } = de(), {
|
|
5803
5828
|
state: { usage: t, streaming: r, lastResetTimestamp: n }
|
|
5804
|
-
} = W(ie), { state: a, dispatch: s } = W(
|
|
5829
|
+
} = W(ie), { state: a, dispatch: s } = W(Tn), {
|
|
5805
5830
|
input: o,
|
|
5806
5831
|
setInput: i,
|
|
5807
5832
|
handleInputChange: l,
|
|
@@ -5842,8 +5867,8 @@ const Ah = (e) => {
|
|
|
5842
5867
|
...b,
|
|
5843
5868
|
{
|
|
5844
5869
|
id: je(),
|
|
5845
|
-
role:
|
|
5846
|
-
content:
|
|
5870
|
+
role: Ur,
|
|
5871
|
+
content: rl
|
|
5847
5872
|
}
|
|
5848
5873
|
]), f({
|
|
5849
5874
|
type: Pe,
|
|
@@ -5860,8 +5885,8 @@ const Ah = (e) => {
|
|
|
5860
5885
|
return;
|
|
5861
5886
|
y.current.style.height = "auto";
|
|
5862
5887
|
const b = y.current.scrollHeight;
|
|
5863
|
-
if (b >
|
|
5864
|
-
y.current.style.height = `${
|
|
5888
|
+
if (b > ja) {
|
|
5889
|
+
y.current.style.height = `${ja}px`, y.current.style.overflowY = "scroll";
|
|
5865
5890
|
return;
|
|
5866
5891
|
}
|
|
5867
5892
|
y.current.style.height = `${b}px`, y.current.style.overflowY = "hidden";
|
|
@@ -5872,7 +5897,7 @@ const Ah = (e) => {
|
|
|
5872
5897
|
loading: !0,
|
|
5873
5898
|
streaming: !1
|
|
5874
5899
|
}
|
|
5875
|
-
}), y.current && (y.current.style.height = `${
|
|
5900
|
+
}), y.current && (y.current.style.height = `${Ha}px`);
|
|
5876
5901
|
const x = await e();
|
|
5877
5902
|
d(b, {
|
|
5878
5903
|
headers: {
|
|
@@ -5883,20 +5908,20 @@ const Ah = (e) => {
|
|
|
5883
5908
|
}, N = (b) => {
|
|
5884
5909
|
T(), l(b);
|
|
5885
5910
|
};
|
|
5886
|
-
return
|
|
5911
|
+
return Ys([
|
|
5887
5912
|
[
|
|
5888
5913
|
"mod+K",
|
|
5889
5914
|
() => {
|
|
5890
|
-
y && y.current && !
|
|
5915
|
+
y && y.current && !zr() && y.current.focus();
|
|
5891
5916
|
}
|
|
5892
5917
|
]
|
|
5893
5918
|
]), L(() => {
|
|
5894
5919
|
if (a.prompt !== "") {
|
|
5895
5920
|
const b = a.prompt.endsWith(":") && !a.prompt.endsWith(": ") ? a.prompt + " " : a.prompt;
|
|
5896
|
-
b.indexOf(
|
|
5897
|
-
i(b.replace(
|
|
5898
|
-
}) : i(b), !
|
|
5899
|
-
type:
|
|
5921
|
+
b.indexOf(oa) !== -1 ? navigator.clipboard.readText().then((_) => {
|
|
5922
|
+
i(b.replace(oa, _));
|
|
5923
|
+
}) : i(b), !zr() && y.current && y.current.focus(), s({
|
|
5924
|
+
type: As
|
|
5900
5925
|
});
|
|
5901
5926
|
}
|
|
5902
5927
|
}, [a, s, i]), L(() => {
|
|
@@ -5908,24 +5933,24 @@ const Ah = (e) => {
|
|
|
5908
5933
|
y.current && y.current.focus();
|
|
5909
5934
|
}, zh) : r === !1 && y.current && y.current.focus();
|
|
5910
5935
|
}, [n, r]), L(() => {
|
|
5911
|
-
t === 0 && (u == null ? void 0 : u.length) === 0 && y.current && (y.current.style.height = `${
|
|
5936
|
+
t === 0 && (u == null ? void 0 : u.length) === 0 && y.current && (y.current.style.height = `${Ha}px`);
|
|
5912
5937
|
}, [t, u]), L(() => {
|
|
5913
5938
|
a.lastTriggeredTimestamp && setTimeout(() => {
|
|
5914
5939
|
T();
|
|
5915
5940
|
}, 100);
|
|
5916
5941
|
}, [a.lastTriggeredTimestamp, T]), /* @__PURE__ */ c("div", { className: k.wrapper, ref: g, children: /* @__PURE__ */ C("form", { onSubmit: E, children: [
|
|
5917
|
-
/* @__PURE__ */ c("div", { id: v, className: "sr-only", children:
|
|
5942
|
+
/* @__PURE__ */ c("div", { id: v, className: "sr-only", children: ia }),
|
|
5918
5943
|
/* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ c(
|
|
5919
5944
|
"textarea",
|
|
5920
5945
|
{
|
|
5921
5946
|
required: !0,
|
|
5922
|
-
rows:
|
|
5947
|
+
rows: Lo,
|
|
5923
5948
|
ref: y,
|
|
5924
|
-
placeholder:
|
|
5949
|
+
placeholder: ia,
|
|
5925
5950
|
translate: "no",
|
|
5926
5951
|
onChange: N,
|
|
5927
5952
|
value: o,
|
|
5928
|
-
onKeyDown:
|
|
5953
|
+
onKeyDown: dc([["mod+Enter", E]]),
|
|
5929
5954
|
className: k.textArea,
|
|
5930
5955
|
"aria-labelledby": v
|
|
5931
5956
|
}
|
|
@@ -5938,16 +5963,16 @@ const Ah = (e) => {
|
|
|
5938
5963
|
/* @__PURE__ */ c(Mh, { className: "order-4" })
|
|
5939
5964
|
] })
|
|
5940
5965
|
] }) });
|
|
5941
|
-
}, Kt = "--sassy-bottom",
|
|
5966
|
+
}, Kt = "--sassy-bottom", Wa = 16, Ka = 76, jh = ({ isComponent: e }) => {
|
|
5942
5967
|
const {
|
|
5943
5968
|
state: { loading: t, streaming: r, restoring: n }
|
|
5944
5969
|
} = W(ie), {
|
|
5945
5970
|
state: { footerHeight: a, footerPosition: s },
|
|
5946
5971
|
dispatch: o
|
|
5947
|
-
} = W(
|
|
5972
|
+
} = W(_n), { messages: i } = dt(), { height: l } = yc(), { height: d } = bc(), [u, h] = qs();
|
|
5948
5973
|
return L(() => {
|
|
5949
5974
|
a !== h.height && o({
|
|
5950
|
-
type:
|
|
5975
|
+
type: to,
|
|
5951
5976
|
payload: {
|
|
5952
5977
|
footerHeight: h.height
|
|
5953
5978
|
}
|
|
@@ -5957,8 +5982,8 @@ const Ah = (e) => {
|
|
|
5957
5982
|
if (!u || !u.current)
|
|
5958
5983
|
return;
|
|
5959
5984
|
const f = l - d, m = (g = u == null ? void 0 : u.current) == null ? void 0 : g.style.getPropertyValue(Kt);
|
|
5960
|
-
if (s ===
|
|
5961
|
-
const T = f > 0 && f < 100 ?
|
|
5985
|
+
if (s === Kr && (t && !r || n)) {
|
|
5986
|
+
const T = f > 0 && f < 100 ? Ka : Wa;
|
|
5962
5987
|
m !== `${T}px` && (o({
|
|
5963
5988
|
type: qt,
|
|
5964
5989
|
payload: {
|
|
@@ -5968,7 +5993,7 @@ const Ah = (e) => {
|
|
|
5968
5993
|
}), (y = u == null ? void 0 : u.current) == null || y.style.setProperty(Kt, `${T}px`));
|
|
5969
5994
|
}
|
|
5970
5995
|
if (s === kt && !n) {
|
|
5971
|
-
const T = f > 0 && f < 100 ?
|
|
5996
|
+
const T = f > 0 && f < 100 ? Ka : Wa;
|
|
5972
5997
|
m !== `${T}px` && (o({
|
|
5973
5998
|
type: qt,
|
|
5974
5999
|
payload: {
|
|
@@ -5982,7 +6007,7 @@ const Ah = (e) => {
|
|
|
5982
6007
|
m !== `${T}px` && Number(T) > 0 && (o({
|
|
5983
6008
|
type: qt,
|
|
5984
6009
|
payload: {
|
|
5985
|
-
footerPosition:
|
|
6010
|
+
footerPosition: Kr,
|
|
5986
6011
|
footerOffset: Number(T)
|
|
5987
6012
|
}
|
|
5988
6013
|
}), (k = u == null ? void 0 : u.current) == null || k.style.setProperty(
|
|
@@ -6015,12 +6040,12 @@ const Ah = (e) => {
|
|
|
6015
6040
|
),
|
|
6016
6041
|
children: [
|
|
6017
6042
|
/* @__PURE__ */ c(Hh, {}),
|
|
6018
|
-
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children:
|
|
6043
|
+
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: nl })
|
|
6019
6044
|
]
|
|
6020
6045
|
}
|
|
6021
6046
|
);
|
|
6022
6047
|
}, Wh = () => {
|
|
6023
|
-
const e = Et(), t = Et(), { data: r, error: n, isLoading: a } =
|
|
6048
|
+
const e = Et(), t = Et(), { data: r, error: n, isLoading: a } = al(), s = (r == null ? void 0 : r.version) || "", o = (r == null ? void 0 : r.models) || [];
|
|
6024
6049
|
return /* @__PURE__ */ C(ae, { children: [
|
|
6025
6050
|
/* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
|
|
6026
6051
|
ve,
|
|
@@ -6028,8 +6053,8 @@ const Ah = (e) => {
|
|
|
6028
6053
|
header: X.ABOUT.TITLE_CLIENT,
|
|
6029
6054
|
className: "prose-dark dark:prose-lighter",
|
|
6030
6055
|
children: Zt(e, {
|
|
6031
|
-
[X.ABOUT.VERSION]: "8.
|
|
6032
|
-
[X.ABOUT.BUILD_TIMESTAMP]: "02/26/2025
|
|
6056
|
+
[X.ABOUT.VERSION]: "8.1.1",
|
|
6057
|
+
[X.ABOUT.BUILD_TIMESTAMP]: "02/26/2025 02:47 PM EST"
|
|
6033
6058
|
})
|
|
6034
6059
|
}
|
|
6035
6060
|
) }),
|
|
@@ -6040,7 +6065,7 @@ const Ah = (e) => {
|
|
|
6040
6065
|
className: "prose-dark dark:prose-lighter",
|
|
6041
6066
|
children: Zt(t, {
|
|
6042
6067
|
[X.ABOUT.VERSION]: s,
|
|
6043
|
-
[
|
|
6068
|
+
[pn(X.ABOUT.PROVIDER, o.length)]: /* @__PURE__ */ c(ae, { children: o.map((i) => /* @__PURE__ */ c("div", { className: "text-right", children: i }, i)) })
|
|
6044
6069
|
})
|
|
6045
6070
|
}
|
|
6046
6071
|
)
|
|
@@ -6048,7 +6073,7 @@ const Ah = (e) => {
|
|
|
6048
6073
|
}, Kh = ({
|
|
6049
6074
|
open: e,
|
|
6050
6075
|
onOpenChange: t
|
|
6051
|
-
}) => /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title:
|
|
6076
|
+
}) => /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: sl, children: /* @__PURE__ */ c(Wh, {}) }), Gh = ({
|
|
6052
6077
|
filteredHistory: e,
|
|
6053
6078
|
dispatch: t,
|
|
6054
6079
|
onOpenChange: r,
|
|
@@ -6060,13 +6085,13 @@ const Ah = (e) => {
|
|
|
6060
6085
|
timestamp: "",
|
|
6061
6086
|
message: ""
|
|
6062
6087
|
}), [l, d] = $(!1), [u, h] = $(
|
|
6063
|
-
|
|
6064
|
-
), { state: f, dispatch: m } = W(
|
|
6088
|
+
la + ca
|
|
6089
|
+
), { state: f, dispatch: m } = W(xn), {
|
|
6065
6090
|
state: { provider: g },
|
|
6066
6091
|
setChatId: y,
|
|
6067
6092
|
setInitialMessages: v
|
|
6068
6093
|
} = W(ie), { setInput: k } = dt(), [, T] = at({
|
|
6069
|
-
key: nt +
|
|
6094
|
+
key: nt + Vs,
|
|
6070
6095
|
initialValue: f.sortDirection
|
|
6071
6096
|
}), E = (w) => {
|
|
6072
6097
|
switch (f.sortDirection) {
|
|
@@ -6111,12 +6136,12 @@ const Ah = (e) => {
|
|
|
6111
6136
|
id: w.id
|
|
6112
6137
|
}
|
|
6113
6138
|
});
|
|
6114
|
-
V.status === 200 && (V.data.provider !== A && (await
|
|
6139
|
+
V.status === 200 && (V.data.provider !== A && (await Ms({
|
|
6115
6140
|
provider: V.data.provider,
|
|
6116
6141
|
accessToken: S,
|
|
6117
6142
|
username: B
|
|
6118
6143
|
}), I({
|
|
6119
|
-
type:
|
|
6144
|
+
type: vn,
|
|
6120
6145
|
payload: {
|
|
6121
6146
|
provider: V.data.provider
|
|
6122
6147
|
}
|
|
@@ -6129,7 +6154,7 @@ const Ah = (e) => {
|
|
|
6129
6154
|
} catch {
|
|
6130
6155
|
}
|
|
6131
6156
|
}, x = K((w) => {
|
|
6132
|
-
w[0].isIntersecting && h((R) => R +
|
|
6157
|
+
w[0].isIntersecting && h((R) => R + la);
|
|
6133
6158
|
}, []);
|
|
6134
6159
|
return L(() => {
|
|
6135
6160
|
const w = {
|
|
@@ -6139,7 +6164,7 @@ const Ah = (e) => {
|
|
|
6139
6164
|
o.current && I.observe(o.current);
|
|
6140
6165
|
}), /* @__PURE__ */ C(ae, { children: [
|
|
6141
6166
|
/* @__PURE__ */ C(
|
|
6142
|
-
|
|
6167
|
+
Rn,
|
|
6143
6168
|
{
|
|
6144
6169
|
showConfirmation: l,
|
|
6145
6170
|
setShowConfirmation: d,
|
|
@@ -6190,8 +6215,8 @@ const Ah = (e) => {
|
|
|
6190
6215
|
/* @__PURE__ */ c(qc, { children: e.slice(0, u).map((w, I) => {
|
|
6191
6216
|
var S, B;
|
|
6192
6217
|
const R = w.summary || (w.messages.length > 0 ? (S = w.messages[0]) == null ? void 0 : S.content : "");
|
|
6193
|
-
return ((B = w == null ? void 0 : w.messages) == null ? void 0 : B.length) > 0 ? /* @__PURE__ */ C(
|
|
6194
|
-
I === u -
|
|
6218
|
+
return ((B = w == null ? void 0 : w.messages) == null ? void 0 : B.length) > 0 ? /* @__PURE__ */ C(Sl, { children: [
|
|
6219
|
+
I === u - ca && /* @__PURE__ */ c("tr", { ref: o }),
|
|
6195
6220
|
/* @__PURE__ */ C(Er, { children: [
|
|
6196
6221
|
/* @__PURE__ */ c(me, { children: I + 1 }),
|
|
6197
6222
|
/* @__PURE__ */ c(
|
|
@@ -6221,8 +6246,8 @@ const Ah = (e) => {
|
|
|
6221
6246
|
className: "text-gray-400",
|
|
6222
6247
|
align: "center",
|
|
6223
6248
|
children: [
|
|
6224
|
-
w.model && w.model.startsWith("claude") && /* @__PURE__ */ c(
|
|
6225
|
-
w.model && w.model.startsWith("gpt") && /* @__PURE__ */ c(
|
|
6249
|
+
w.model && w.model.startsWith("claude") && /* @__PURE__ */ c(Hr, { size: "size-4 sm:size-5" }),
|
|
6250
|
+
w.model && w.model.startsWith("gpt") && /* @__PURE__ */ c(jr, { size: "size-4 sm:size-5" })
|
|
6226
6251
|
]
|
|
6227
6252
|
}
|
|
6228
6253
|
),
|
|
@@ -6245,7 +6270,7 @@ const Ah = (e) => {
|
|
|
6245
6270
|
g
|
|
6246
6271
|
);
|
|
6247
6272
|
},
|
|
6248
|
-
children: /* @__PURE__ */ c(
|
|
6273
|
+
children: /* @__PURE__ */ c(ec, { size: "size-3", monotone: !0 })
|
|
6249
6274
|
}
|
|
6250
6275
|
),
|
|
6251
6276
|
/* @__PURE__ */ c(
|
|
@@ -6262,14 +6287,14 @@ const Ah = (e) => {
|
|
|
6262
6287
|
message: w.messages.length > 0 ? (A = w.messages[0]) == null ? void 0 : A.content : ""
|
|
6263
6288
|
}, d(!l);
|
|
6264
6289
|
},
|
|
6265
|
-
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(
|
|
6290
|
+
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Wl, { size: "size-3", monotone: !0 }) })
|
|
6266
6291
|
}
|
|
6267
6292
|
)
|
|
6268
6293
|
] })
|
|
6269
6294
|
] })
|
|
6270
6295
|
] }, `${X.HISTORY.TITLE}-${w.id}-${I}`) : null;
|
|
6271
6296
|
}) }),
|
|
6272
|
-
/* @__PURE__ */ c(Jc, { children: /* @__PURE__ */ c(Er, { children: /* @__PURE__ */ c(me, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children:
|
|
6297
|
+
/* @__PURE__ */ c(Jc, { children: /* @__PURE__ */ c(Er, { children: /* @__PURE__ */ c(me, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: pn(
|
|
6273
6298
|
`${e.length} chat`,
|
|
6274
6299
|
e.length
|
|
6275
6300
|
) }) }) }) })
|
|
@@ -6282,7 +6307,7 @@ const Ah = (e) => {
|
|
|
6282
6307
|
const { getAccessToken: r, user: n } = de(), {
|
|
6283
6308
|
state: { lastStreamingTimestamp: a },
|
|
6284
6309
|
dispatch: s
|
|
6285
|
-
} = W(ie), { state: o, dispatch: i } = W(
|
|
6310
|
+
} = W(ie), { state: o, dispatch: i } = W(xn), { data: l, mutate: d } = ol({
|
|
6286
6311
|
keys: [
|
|
6287
6312
|
n == null ? void 0 : n.username,
|
|
6288
6313
|
o.searchString,
|
|
@@ -6291,7 +6316,7 @@ const Ah = (e) => {
|
|
|
6291
6316
|
],
|
|
6292
6317
|
getAccessToken: r
|
|
6293
6318
|
}), u = M(null), [, h] = at({
|
|
6294
|
-
key: nt +
|
|
6319
|
+
key: nt + Ps,
|
|
6295
6320
|
initialValue: o.searchString
|
|
6296
6321
|
}), [f, m] = $([]);
|
|
6297
6322
|
L(() => {
|
|
@@ -6299,17 +6324,17 @@ const Ah = (e) => {
|
|
|
6299
6324
|
}, [l]);
|
|
6300
6325
|
const g = async (k) => {
|
|
6301
6326
|
h(k), i({
|
|
6302
|
-
type:
|
|
6327
|
+
type: Ss,
|
|
6303
6328
|
payload: { searchString: k }
|
|
6304
6329
|
});
|
|
6305
|
-
}, y =
|
|
6330
|
+
}, y = cl((k) => {
|
|
6306
6331
|
g(k.target.value.trim());
|
|
6307
6332
|
}, 500);
|
|
6308
|
-
return /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title:
|
|
6333
|
+
return /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: il, children: /* @__PURE__ */ C(ae, { children: [
|
|
6309
6334
|
/* @__PURE__ */ c("form", { autoComplete: "off", onSubmit: async (k) => {
|
|
6310
6335
|
k.preventDefault();
|
|
6311
6336
|
}, children: /* @__PURE__ */ c(
|
|
6312
|
-
|
|
6337
|
+
ll,
|
|
6313
6338
|
{
|
|
6314
6339
|
autoCapitalize: "off",
|
|
6315
6340
|
autoComplete: "off",
|
|
@@ -6366,12 +6391,12 @@ const Ah = (e) => {
|
|
|
6366
6391
|
})
|
|
6367
6392
|
}
|
|
6368
6393
|
),
|
|
6369
|
-
a !==
|
|
6394
|
+
a !== dl.PASSKEY && !Fr() && /* @__PURE__ */ C(
|
|
6370
6395
|
ve,
|
|
6371
6396
|
{
|
|
6372
6397
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
6373
6398
|
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ C(ir, { columnGap: 3, alignVertical: "center", children: [
|
|
6374
|
-
/* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c(
|
|
6399
|
+
/* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c(da, { size: "size-8" }) }),
|
|
6375
6400
|
/* @__PURE__ */ c(Oe, { children: /* @__PURE__ */ c("div", { children: X.PREFERENCES.PASSKEY_TITLE }) })
|
|
6376
6401
|
] }) }),
|
|
6377
6402
|
children: [
|
|
@@ -6383,7 +6408,7 @@ const Ah = (e) => {
|
|
|
6383
6408
|
className: "mt-2",
|
|
6384
6409
|
onClick: n,
|
|
6385
6410
|
labelLeft: X.PREFERENCES.PASSKEY_BUTTON,
|
|
6386
|
-
children: /* @__PURE__ */ c(
|
|
6411
|
+
children: /* @__PURE__ */ c(da, { size: "size-5", monotone: !0 })
|
|
6387
6412
|
}
|
|
6388
6413
|
)
|
|
6389
6414
|
]
|
|
@@ -6395,8 +6420,8 @@ const Ah = (e) => {
|
|
|
6395
6420
|
header: X.MAIN_STATISTICS.TITLE,
|
|
6396
6421
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
6397
6422
|
children: Zt(o, {
|
|
6398
|
-
[
|
|
6399
|
-
[X.MAIN_STATISTICS.PROCESSING_TIME]:
|
|
6423
|
+
[pn(X.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
|
|
6424
|
+
[X.MAIN_STATISTICS.PROCESSING_TIME]: ul(
|
|
6400
6425
|
e.averageProcessingTimes
|
|
6401
6426
|
)
|
|
6402
6427
|
})
|
|
@@ -6411,11 +6436,11 @@ const Ah = (e) => {
|
|
|
6411
6436
|
data: a,
|
|
6412
6437
|
error: s,
|
|
6413
6438
|
isLoading: o
|
|
6414
|
-
} =
|
|
6439
|
+
} = hl({
|
|
6415
6440
|
keys: [n == null ? void 0 : n.username],
|
|
6416
6441
|
getAccessToken: r
|
|
6417
6442
|
});
|
|
6418
|
-
return s || o ? null : /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title:
|
|
6443
|
+
return s || o ? null : /* @__PURE__ */ c(Lt, { open: e, onOpenChange: t, title: fl, children: /* @__PURE__ */ c(Jh, { stats: a }) });
|
|
6419
6444
|
};
|
|
6420
6445
|
/*!
|
|
6421
6446
|
@versini/ui-textarea v3.0.17
|
|
@@ -6430,7 +6455,7 @@ try {
|
|
|
6430
6455
|
});
|
|
6431
6456
|
} catch {
|
|
6432
6457
|
}
|
|
6433
|
-
const
|
|
6458
|
+
const $o = "av-text-area", Xh = "av-text-area-wrapper", Mr = "av-text-area-helper-text", Zh = "av-text-area__control--right", Qh = "av-text-area__control--left";
|
|
6434
6459
|
function ef() {
|
|
6435
6460
|
const e = M(!1);
|
|
6436
6461
|
return L(() => (e.current = !0, () => {
|
|
@@ -6455,7 +6480,7 @@ const rf = {
|
|
|
6455
6480
|
bottom: 0,
|
|
6456
6481
|
right: 0
|
|
6457
6482
|
};
|
|
6458
|
-
function
|
|
6483
|
+
function Ga(e) {
|
|
6459
6484
|
const t = ef(), r = M(0), n = M(null), [a, s] = $(rf), o = ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
6460
6485
|
const l = i[0];
|
|
6461
6486
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -6496,7 +6521,7 @@ function af(e) {
|
|
|
6496
6521
|
return typeof r == "number" || typeof r == "string" ? `${n}${r}` : `${n}${t}`;
|
|
6497
6522
|
}
|
|
6498
6523
|
}
|
|
6499
|
-
const
|
|
6524
|
+
const Do = "SET_ANNOUNCEMENT", Fo = "CLEAR_ANNOUNCEMENT", sf = {
|
|
6500
6525
|
alert: null,
|
|
6501
6526
|
alertdialog: null,
|
|
6502
6527
|
log: "polite",
|
|
@@ -6506,12 +6531,12 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", sf = {
|
|
|
6506
6531
|
timer: "assertive"
|
|
6507
6532
|
}, of = (e, t) => {
|
|
6508
6533
|
switch (t == null ? void 0 : t.type) {
|
|
6509
|
-
case
|
|
6534
|
+
case Do:
|
|
6510
6535
|
return {
|
|
6511
6536
|
...e,
|
|
6512
6537
|
announcement: t.payload
|
|
6513
6538
|
};
|
|
6514
|
-
case
|
|
6539
|
+
case Fo:
|
|
6515
6540
|
return {
|
|
6516
6541
|
...e,
|
|
6517
6542
|
announcement: null
|
|
@@ -6524,9 +6549,9 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", sf = {
|
|
|
6524
6549
|
dispatch: t
|
|
6525
6550
|
}) => {
|
|
6526
6551
|
t({
|
|
6527
|
-
type:
|
|
6552
|
+
type: Fo
|
|
6528
6553
|
}), typeof e == "function" && e();
|
|
6529
|
-
},
|
|
6554
|
+
}, Ya = ({
|
|
6530
6555
|
children: e,
|
|
6531
6556
|
clearAnnouncementDelay: t,
|
|
6532
6557
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -6534,7 +6559,7 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", sf = {
|
|
|
6534
6559
|
dispatch: a
|
|
6535
6560
|
}) => {
|
|
6536
6561
|
clearTimeout(r.current), e !== null && a({
|
|
6537
|
-
type:
|
|
6562
|
+
type: Do,
|
|
6538
6563
|
payload: e
|
|
6539
6564
|
}), t && (r.current = setTimeout(
|
|
6540
6565
|
() => lf({
|
|
@@ -6552,13 +6577,13 @@ const Lo = "SET_ANNOUNCEMENT", $o = "CLEAR_ANNOUNCEMENT", sf = {
|
|
|
6552
6577
|
onAnnouncementClear: s,
|
|
6553
6578
|
dispatch: o
|
|
6554
6579
|
}) => {
|
|
6555
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
6580
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Ya, r, {
|
|
6556
6581
|
children: e,
|
|
6557
6582
|
clearAnnouncementDelay: n,
|
|
6558
6583
|
clearAnnouncementTimeoutRef: a,
|
|
6559
6584
|
onAnnouncementClear: s,
|
|
6560
6585
|
dispatch: o
|
|
6561
|
-
}) :
|
|
6586
|
+
}) : Ya({
|
|
6562
6587
|
children: e,
|
|
6563
6588
|
clearAnnouncementDelay: n,
|
|
6564
6589
|
clearAnnouncementTimeoutRef: a,
|
|
@@ -6727,7 +6752,7 @@ const uf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
6727
6752
|
Xh,
|
|
6728
6753
|
e
|
|
6729
6754
|
), h = r ? p(t) : p(
|
|
6730
|
-
|
|
6755
|
+
$o,
|
|
6731
6756
|
t,
|
|
6732
6757
|
uf(),
|
|
6733
6758
|
hf({ mode: i }),
|
|
@@ -6777,7 +6802,7 @@ const uf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
6777
6802
|
helperTextOffset: s,
|
|
6778
6803
|
scrollHeight: e
|
|
6779
6804
|
};
|
|
6780
|
-
},
|
|
6805
|
+
}, en = Y.forwardRef(
|
|
6781
6806
|
({
|
|
6782
6807
|
id: e,
|
|
6783
6808
|
name: t,
|
|
@@ -6803,7 +6828,7 @@ const uf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
6803
6828
|
...b
|
|
6804
6829
|
}, x) => {
|
|
6805
6830
|
var _;
|
|
6806
|
-
const w = M(null), I = tf([x, w]), [R, S] =
|
|
6831
|
+
const w = M(null), I = tf([x, w]), [R, S] = Ga(), [B, A] = Ga(), V = M(80), z = M(-25), P = M(null), D = M(30), U = M(null), j = af({ id: e, prefix: `${$o}-` }), [Ee, Ye] = $(0), [Fe, Je] = $(0), [qe, se] = $(
|
|
6807
6832
|
!!(!y && g)
|
|
6808
6833
|
), be = `${t} error, ${g}`, oe = yf({
|
|
6809
6834
|
className: s,
|
|
@@ -6944,7 +6969,7 @@ const uf = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
6944
6969
|
] });
|
|
6945
6970
|
}
|
|
6946
6971
|
);
|
|
6947
|
-
|
|
6972
|
+
en.displayName = "TextArea";
|
|
6948
6973
|
/*!
|
|
6949
6974
|
@versini/ui-toggle v3.0.10
|
|
6950
6975
|
© 2025 gizmette.com
|
|
@@ -7078,7 +7103,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7078
7103
|
}), [u, h] = $({
|
|
7079
7104
|
prompts: []
|
|
7080
7105
|
}), [f, m] = $(""), [g, y] = $(""), [v, k] = at({
|
|
7081
|
-
key: nt +
|
|
7106
|
+
key: nt + ml,
|
|
7082
7107
|
initialValue: !1
|
|
7083
7108
|
}), T = (_) => {
|
|
7084
7109
|
k(_);
|
|
@@ -7105,7 +7130,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7105
7130
|
loadingLocation: !0
|
|
7106
7131
|
}), y("...");
|
|
7107
7132
|
try {
|
|
7108
|
-
const _ = Date.now(), w = await
|
|
7133
|
+
const _ = Date.now(), w = await bl(), I = await _t({
|
|
7109
7134
|
accessToken: await r(),
|
|
7110
7135
|
type: It.GET_LOCATION,
|
|
7111
7136
|
params: {
|
|
@@ -7157,7 +7182,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7157
7182
|
{
|
|
7158
7183
|
open: e,
|
|
7159
7184
|
onOpenChange: b,
|
|
7160
|
-
title:
|
|
7185
|
+
title: pl,
|
|
7161
7186
|
footer: /* @__PURE__ */ C(
|
|
7162
7187
|
ir,
|
|
7163
7188
|
{
|
|
@@ -7220,11 +7245,11 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7220
7245
|
children: [
|
|
7221
7246
|
/* @__PURE__ */ C("p", { className: "text-sm", children: [
|
|
7222
7247
|
"What would you like ",
|
|
7223
|
-
/* @__PURE__ */ c("em", { children:
|
|
7248
|
+
/* @__PURE__ */ c("em", { children: gl }),
|
|
7224
7249
|
" to know about you to provide better responses?"
|
|
7225
7250
|
] }),
|
|
7226
7251
|
/* @__PURE__ */ c(
|
|
7227
|
-
|
|
7252
|
+
en,
|
|
7228
7253
|
{
|
|
7229
7254
|
mode: "alt-system",
|
|
7230
7255
|
autoCapitalize: "off",
|
|
@@ -7250,7 +7275,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7250
7275
|
children: [
|
|
7251
7276
|
/* @__PURE__ */ c("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
7252
7277
|
/* @__PURE__ */ c(
|
|
7253
|
-
|
|
7278
|
+
en,
|
|
7254
7279
|
{
|
|
7255
7280
|
mode: "alt-system",
|
|
7256
7281
|
name: "location",
|
|
@@ -7282,7 +7307,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7282
7307
|
header: X.SETTINGS_PROMPTS.TITLE,
|
|
7283
7308
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
7284
7309
|
children: [
|
|
7285
|
-
/* @__PURE__ */ c("p", { className: "text-sm", children:
|
|
7310
|
+
/* @__PURE__ */ c("p", { className: "text-sm", children: yl }),
|
|
7286
7311
|
u.prompts && u.prompts.slice(0, 3).map((_) => /* @__PURE__ */ C(
|
|
7287
7312
|
ve,
|
|
7288
7313
|
{
|
|
@@ -7359,15 +7384,15 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7359
7384
|
const { logout: t } = de(), [r, n] = $(!1), [a, s] = $(!1), [o, i] = $(!1), [l, d] = $(!1), [u, h] = $(!1);
|
|
7360
7385
|
return /* @__PURE__ */ C(ae, { children: [
|
|
7361
7386
|
/* @__PURE__ */ c(
|
|
7362
|
-
|
|
7387
|
+
Rn,
|
|
7363
7388
|
{
|
|
7364
7389
|
showConfirmation: u,
|
|
7365
7390
|
setShowConfirmation: h,
|
|
7366
7391
|
action: t,
|
|
7367
7392
|
customStrings: {
|
|
7368
|
-
confirmAction:
|
|
7393
|
+
confirmAction: ua,
|
|
7369
7394
|
cancelAction: "Cancel",
|
|
7370
|
-
title:
|
|
7395
|
+
title: ua
|
|
7371
7396
|
},
|
|
7372
7397
|
children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
|
|
7373
7398
|
}
|
|
@@ -7389,7 +7414,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7389
7414
|
{
|
|
7390
7415
|
mode: "dark",
|
|
7391
7416
|
focusMode: "light",
|
|
7392
|
-
trigger: /* @__PURE__ */ c(Te, { label: "Settings", children: /* @__PURE__ */ c(
|
|
7417
|
+
trigger: /* @__PURE__ */ c(Te, { label: "Settings", children: /* @__PURE__ */ c(nc, {}) }),
|
|
7393
7418
|
defaultPlacement: "bottom-end",
|
|
7394
7419
|
children: [
|
|
7395
7420
|
/* @__PURE__ */ c(
|
|
@@ -7399,7 +7424,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7399
7424
|
onClick: () => {
|
|
7400
7425
|
n(!r);
|
|
7401
7426
|
},
|
|
7402
|
-
icon: /* @__PURE__ */ c(
|
|
7427
|
+
icon: /* @__PURE__ */ c(Zl, {})
|
|
7403
7428
|
}
|
|
7404
7429
|
),
|
|
7405
7430
|
/* @__PURE__ */ c(
|
|
@@ -7409,7 +7434,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7409
7434
|
onClick: () => {
|
|
7410
7435
|
s(!a);
|
|
7411
7436
|
},
|
|
7412
|
-
icon: /* @__PURE__ */ c(
|
|
7437
|
+
icon: /* @__PURE__ */ c(ac, {})
|
|
7413
7438
|
}
|
|
7414
7439
|
),
|
|
7415
7440
|
/* @__PURE__ */ c(
|
|
@@ -7419,7 +7444,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7419
7444
|
onClick: () => {
|
|
7420
7445
|
i(!o);
|
|
7421
7446
|
},
|
|
7422
|
-
icon: /* @__PURE__ */ c(
|
|
7447
|
+
icon: /* @__PURE__ */ c(Yl, {})
|
|
7423
7448
|
}
|
|
7424
7449
|
),
|
|
7425
7450
|
/* @__PURE__ */ c(
|
|
@@ -7429,7 +7454,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7429
7454
|
onClick: () => {
|
|
7430
7455
|
d(!l);
|
|
7431
7456
|
},
|
|
7432
|
-
icon: /* @__PURE__ */ c(
|
|
7457
|
+
icon: /* @__PURE__ */ c(Jl, {})
|
|
7433
7458
|
}
|
|
7434
7459
|
),
|
|
7435
7460
|
!e && /* @__PURE__ */ C(ae, { children: [
|
|
@@ -7441,7 +7466,7 @@ const vf = "av-toggle", wf = () => p("peer", "h-6", "w-11", "rounded-full"), kf
|
|
|
7441
7466
|
onClick: () => {
|
|
7442
7467
|
h(!u);
|
|
7443
7468
|
},
|
|
7444
|
-
icon: /* @__PURE__ */ c("div", { className: "text-red-700", children: /* @__PURE__ */ c(
|
|
7469
|
+
icon: /* @__PURE__ */ c("div", { className: "text-red-700", children: /* @__PURE__ */ c(Ul, { monotone: !0 }) })
|
|
7445
7470
|
}
|
|
7446
7471
|
)
|
|
7447
7472
|
] })
|
|
@@ -7466,7 +7491,7 @@ try {
|
|
|
7466
7491
|
});
|
|
7467
7492
|
} catch {
|
|
7468
7493
|
}
|
|
7469
|
-
const Af = "av-bubble",
|
|
7494
|
+
const Af = "av-bubble", Ja = "av-button", br = "icon", zo = "button", tn = "link", Rf = ({
|
|
7470
7495
|
type: e,
|
|
7471
7496
|
size: t,
|
|
7472
7497
|
labelRight: r,
|
|
@@ -7476,8 +7501,8 @@ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
|
|
|
7476
7501
|
}) => {
|
|
7477
7502
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
7478
7503
|
switch (e) {
|
|
7479
|
-
case
|
|
7480
|
-
case
|
|
7504
|
+
case zo:
|
|
7505
|
+
case tn:
|
|
7481
7506
|
return p({
|
|
7482
7507
|
[o]: t === "small",
|
|
7483
7508
|
[i]: t === "medium",
|
|
@@ -7510,10 +7535,10 @@ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
|
|
|
7510
7535
|
}) => {
|
|
7511
7536
|
const a = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
|
7512
7537
|
switch (e) {
|
|
7513
|
-
case
|
|
7514
|
-
case
|
|
7538
|
+
case zo:
|
|
7539
|
+
case tn:
|
|
7515
7540
|
return p({
|
|
7516
|
-
"text-center": e ===
|
|
7541
|
+
"text-center": e === tn,
|
|
7517
7542
|
[a]: t === "small",
|
|
7518
7543
|
[s]: t === "medium",
|
|
7519
7544
|
[o]: t === "large"
|
|
@@ -7728,8 +7753,8 @@ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
|
|
|
7728
7753
|
align: g,
|
|
7729
7754
|
radius: y,
|
|
7730
7755
|
animated: v
|
|
7731
|
-
}) => (f || (f = "primary"), r ? p(
|
|
7732
|
-
|
|
7756
|
+
}) => (f || (f = "primary"), r ? p(Ja, t) : p(
|
|
7757
|
+
Ja,
|
|
7733
7758
|
Vf({
|
|
7734
7759
|
mode: n,
|
|
7735
7760
|
variant: f,
|
|
@@ -7762,7 +7787,7 @@ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
|
|
|
7762
7787
|
)), Hf = (e, t, r) => {
|
|
7763
7788
|
var n;
|
|
7764
7789
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
7765
|
-
},
|
|
7790
|
+
}, Uo = Y.forwardRef((e, t) => {
|
|
7766
7791
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
7767
7792
|
return /* @__PURE__ */ c(
|
|
7768
7793
|
"button",
|
|
@@ -7775,7 +7800,7 @@ const Af = "av-bubble", Ya = "av-button", br = "icon", Do = "button", en = "link
|
|
|
7775
7800
|
}
|
|
7776
7801
|
);
|
|
7777
7802
|
});
|
|
7778
|
-
|
|
7803
|
+
Uo.displayName = "BaseButton";
|
|
7779
7804
|
function jf() {
|
|
7780
7805
|
const e = M(!1);
|
|
7781
7806
|
return L(() => (e.current = !0, () => {
|
|
@@ -7825,7 +7850,7 @@ const Gf = {
|
|
|
7825
7850
|
// px-3 x 2
|
|
7826
7851
|
large: 16 * 2
|
|
7827
7852
|
// px-4 x 2
|
|
7828
|
-
}, Jf = 2,
|
|
7853
|
+
}, Jf = 2, Mn = Y.forwardRef(
|
|
7829
7854
|
({
|
|
7830
7855
|
children: e,
|
|
7831
7856
|
disabled: t = !1,
|
|
@@ -7881,7 +7906,7 @@ const Gf = {
|
|
|
7881
7906
|
h,
|
|
7882
7907
|
E
|
|
7883
7908
|
]), /* @__PURE__ */ C(
|
|
7884
|
-
|
|
7909
|
+
Uo,
|
|
7885
7910
|
{
|
|
7886
7911
|
ref: D,
|
|
7887
7912
|
className: x,
|
|
@@ -7891,7 +7916,7 @@ const Gf = {
|
|
|
7891
7916
|
...N,
|
|
7892
7917
|
children: [
|
|
7893
7918
|
/* @__PURE__ */ c(
|
|
7894
|
-
|
|
7919
|
+
qa,
|
|
7895
7920
|
{
|
|
7896
7921
|
label: m,
|
|
7897
7922
|
labelRef: S,
|
|
@@ -7901,7 +7926,7 @@ const Gf = {
|
|
|
7901
7926
|
),
|
|
7902
7927
|
/* @__PURE__ */ c("span", { ref: A, className: _, children: e }),
|
|
7903
7928
|
/* @__PURE__ */ c(
|
|
7904
|
-
|
|
7929
|
+
qa,
|
|
7905
7930
|
{
|
|
7906
7931
|
label: f,
|
|
7907
7932
|
labelRef: I,
|
|
@@ -7913,13 +7938,13 @@ const Gf = {
|
|
|
7913
7938
|
}
|
|
7914
7939
|
);
|
|
7915
7940
|
}
|
|
7916
|
-
),
|
|
7941
|
+
), qa = ({
|
|
7917
7942
|
labelRef: e,
|
|
7918
7943
|
labelClass: t,
|
|
7919
7944
|
label: r,
|
|
7920
7945
|
labelInnerClass: n
|
|
7921
7946
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
|
|
7922
|
-
|
|
7947
|
+
Mn.displayName = "ButtonIcon";
|
|
7923
7948
|
/*!
|
|
7924
7949
|
@versini/ui-button v4.2.8
|
|
7925
7950
|
© 2025 gizmette.com
|
|
@@ -7959,7 +7984,7 @@ const qf = Y.forwardRef(
|
|
|
7959
7984
|
}
|
|
7960
7985
|
) : "";
|
|
7961
7986
|
return /* @__PURE__ */ c("div", { className: o, children: /* @__PURE__ */ c(
|
|
7962
|
-
|
|
7987
|
+
Mn,
|
|
7963
7988
|
{
|
|
7964
7989
|
className: p("justify-center", r),
|
|
7965
7990
|
ref: s,
|
|
@@ -7972,7 +7997,7 @@ const qf = Y.forwardRef(
|
|
|
7972
7997
|
}
|
|
7973
7998
|
);
|
|
7974
7999
|
qf.displayName = "ButtonSort";
|
|
7975
|
-
const
|
|
8000
|
+
const Ho = ({
|
|
7976
8001
|
children: e,
|
|
7977
8002
|
fill: t,
|
|
7978
8003
|
viewBox: r,
|
|
@@ -8022,7 +8047,7 @@ const Xf = ({
|
|
|
8022
8047
|
monotone: n,
|
|
8023
8048
|
...a
|
|
8024
8049
|
}) => /* @__PURE__ */ C(
|
|
8025
|
-
|
|
8050
|
+
Ho,
|
|
8026
8051
|
{
|
|
8027
8052
|
defaultViewBox: "0 0 448 512",
|
|
8028
8053
|
size: "size-5",
|
|
@@ -8048,7 +8073,7 @@ const Xf = ({
|
|
|
8048
8073
|
monotone: n,
|
|
8049
8074
|
...a
|
|
8050
8075
|
}) => /* @__PURE__ */ c(
|
|
8051
|
-
|
|
8076
|
+
Ho,
|
|
8052
8077
|
{
|
|
8053
8078
|
defaultViewBox: "0 0 512 512",
|
|
8054
8079
|
size: "size-5",
|
|
@@ -8117,7 +8142,7 @@ const Qf = ({
|
|
|
8117
8142
|
footer: s,
|
|
8118
8143
|
copyButton: o
|
|
8119
8144
|
};
|
|
8120
|
-
},
|
|
8145
|
+
}, rn = ({
|
|
8121
8146
|
children: e,
|
|
8122
8147
|
kind: t = "left",
|
|
8123
8148
|
className: r,
|
|
@@ -8149,7 +8174,7 @@ const Qf = ({
|
|
|
8149
8174
|
a && a
|
|
8150
8175
|
] }),
|
|
8151
8176
|
f && /* @__PURE__ */ c("div", { className: h.copyButton, children: /* @__PURE__ */ c(
|
|
8152
|
-
|
|
8177
|
+
Mn,
|
|
8153
8178
|
{
|
|
8154
8179
|
noBorder: !0,
|
|
8155
8180
|
noBackground: !0,
|
|
@@ -8177,14 +8202,14 @@ try {
|
|
|
8177
8202
|
});
|
|
8178
8203
|
} catch {
|
|
8179
8204
|
}
|
|
8180
|
-
const
|
|
8205
|
+
const Xa = "av-spinner", Za = ({
|
|
8181
8206
|
spinnerRef: e,
|
|
8182
8207
|
mode: t = "system",
|
|
8183
8208
|
type: r = "circle",
|
|
8184
8209
|
className: n
|
|
8185
8210
|
}) => {
|
|
8186
8211
|
const a = r === "circle" ? p(
|
|
8187
|
-
|
|
8212
|
+
Xa,
|
|
8188
8213
|
"h-8 w-8",
|
|
8189
8214
|
"align-[-0.125em]",
|
|
8190
8215
|
"border-4",
|
|
@@ -8196,7 +8221,7 @@ const qa = "av-spinner", Xa = ({
|
|
|
8196
8221
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
8197
8222
|
},
|
|
8198
8223
|
n
|
|
8199
|
-
) : p(
|
|
8224
|
+
) : p(Xa, n), s = p("av-spinner__dot", {
|
|
8200
8225
|
"fill-copy-dark": t === "dark",
|
|
8201
8226
|
"fill-copy-accent": t === "light",
|
|
8202
8227
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
@@ -8210,7 +8235,7 @@ const qa = "av-spinner", Xa = ({
|
|
|
8210
8235
|
] }),
|
|
8211
8236
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
|
8212
8237
|
] });
|
|
8213
|
-
},
|
|
8238
|
+
}, Qa = "av-button", vr = "icon", Vn = "button", nn = "link", am = ({
|
|
8214
8239
|
type: e,
|
|
8215
8240
|
size: t,
|
|
8216
8241
|
labelRight: r,
|
|
@@ -8220,8 +8245,8 @@ const qa = "av-spinner", Xa = ({
|
|
|
8220
8245
|
}) => {
|
|
8221
8246
|
const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
8222
8247
|
switch (e) {
|
|
8223
|
-
case
|
|
8224
|
-
case
|
|
8248
|
+
case Vn:
|
|
8249
|
+
case nn:
|
|
8225
8250
|
return p({
|
|
8226
8251
|
[o]: t === "small",
|
|
8227
8252
|
[i]: t === "medium",
|
|
@@ -8254,10 +8279,10 @@ const qa = "av-spinner", Xa = ({
|
|
|
8254
8279
|
}) => {
|
|
8255
8280
|
const a = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
|
8256
8281
|
switch (e) {
|
|
8257
|
-
case
|
|
8258
|
-
case
|
|
8282
|
+
case Vn:
|
|
8283
|
+
case nn:
|
|
8259
8284
|
return p({
|
|
8260
|
-
"text-center": e ===
|
|
8285
|
+
"text-center": e === nn,
|
|
8261
8286
|
[a]: t === "small",
|
|
8262
8287
|
[s]: t === "medium",
|
|
8263
8288
|
[o]: t === "large"
|
|
@@ -8454,7 +8479,7 @@ const qa = "av-spinner", Xa = ({
|
|
|
8454
8479
|
animated: e
|
|
8455
8480
|
}) => p({
|
|
8456
8481
|
"transition-opacity duration-300 ease-in": e
|
|
8457
|
-
}),
|
|
8482
|
+
}), jo = ({
|
|
8458
8483
|
type: e,
|
|
8459
8484
|
className: t,
|
|
8460
8485
|
raw: r,
|
|
@@ -8472,8 +8497,8 @@ const qa = "av-spinner", Xa = ({
|
|
|
8472
8497
|
align: g,
|
|
8473
8498
|
radius: y,
|
|
8474
8499
|
animated: v
|
|
8475
|
-
}) => (f || (f = "primary"), r ? p(
|
|
8476
|
-
|
|
8500
|
+
}) => (f || (f = "primary"), r ? p(Qa, t) : p(
|
|
8501
|
+
Qa,
|
|
8477
8502
|
om({
|
|
8478
8503
|
mode: n,
|
|
8479
8504
|
variant: f,
|
|
@@ -8506,7 +8531,7 @@ const qa = "av-spinner", Xa = ({
|
|
|
8506
8531
|
)), pm = (e, t, r) => {
|
|
8507
8532
|
var n;
|
|
8508
8533
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
8509
|
-
},
|
|
8534
|
+
}, Pn = Y.forwardRef((e, t) => {
|
|
8510
8535
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
8511
8536
|
return /* @__PURE__ */ c(
|
|
8512
8537
|
"button",
|
|
@@ -8519,8 +8544,8 @@ const qa = "av-spinner", Xa = ({
|
|
|
8519
8544
|
}
|
|
8520
8545
|
);
|
|
8521
8546
|
});
|
|
8522
|
-
|
|
8523
|
-
const
|
|
8547
|
+
Pn.displayName = "BaseButton";
|
|
8548
|
+
const Wo = Y.forwardRef(
|
|
8524
8549
|
({
|
|
8525
8550
|
children: e,
|
|
8526
8551
|
disabled: t = !1,
|
|
@@ -8536,8 +8561,8 @@ const Ho = Y.forwardRef(
|
|
|
8536
8561
|
radius: h = "large",
|
|
8537
8562
|
...f
|
|
8538
8563
|
}, m) => {
|
|
8539
|
-
const g =
|
|
8540
|
-
type:
|
|
8564
|
+
const g = jo({
|
|
8565
|
+
type: Vn,
|
|
8541
8566
|
mode: r,
|
|
8542
8567
|
focusMode: n,
|
|
8543
8568
|
fullWidth: a,
|
|
@@ -8551,7 +8576,7 @@ const Ho = Y.forwardRef(
|
|
|
8551
8576
|
radius: h
|
|
8552
8577
|
});
|
|
8553
8578
|
return /* @__PURE__ */ c(
|
|
8554
|
-
|
|
8579
|
+
Pn,
|
|
8555
8580
|
{
|
|
8556
8581
|
ref: m,
|
|
8557
8582
|
className: g,
|
|
@@ -8562,7 +8587,7 @@ const Ho = Y.forwardRef(
|
|
|
8562
8587
|
);
|
|
8563
8588
|
}
|
|
8564
8589
|
);
|
|
8565
|
-
|
|
8590
|
+
Wo.displayName = "Button";
|
|
8566
8591
|
function gm() {
|
|
8567
8592
|
const e = M(!1);
|
|
8568
8593
|
return L(() => (e.current = !0, () => {
|
|
@@ -8612,7 +8637,7 @@ const vm = {
|
|
|
8612
8637
|
// px-3 x 2
|
|
8613
8638
|
large: 16 * 2
|
|
8614
8639
|
// px-4 x 2
|
|
8615
|
-
}, km = 2,
|
|
8640
|
+
}, km = 2, Ko = Y.forwardRef(
|
|
8616
8641
|
({
|
|
8617
8642
|
children: e,
|
|
8618
8643
|
disabled: t = !1,
|
|
@@ -8636,7 +8661,7 @@ const vm = {
|
|
|
8636
8661
|
animated: E = !1,
|
|
8637
8662
|
...N
|
|
8638
8663
|
}, b) => {
|
|
8639
|
-
const x =
|
|
8664
|
+
const x = jo({
|
|
8640
8665
|
type: vr,
|
|
8641
8666
|
mode: r,
|
|
8642
8667
|
focusMode: n,
|
|
@@ -8668,7 +8693,7 @@ const vm = {
|
|
|
8668
8693
|
h,
|
|
8669
8694
|
E
|
|
8670
8695
|
]), /* @__PURE__ */ C(
|
|
8671
|
-
|
|
8696
|
+
Pn,
|
|
8672
8697
|
{
|
|
8673
8698
|
ref: D,
|
|
8674
8699
|
className: x,
|
|
@@ -8678,7 +8703,7 @@ const vm = {
|
|
|
8678
8703
|
...N,
|
|
8679
8704
|
children: [
|
|
8680
8705
|
/* @__PURE__ */ c(
|
|
8681
|
-
|
|
8706
|
+
es,
|
|
8682
8707
|
{
|
|
8683
8708
|
label: m,
|
|
8684
8709
|
labelRef: S,
|
|
@@ -8688,7 +8713,7 @@ const vm = {
|
|
|
8688
8713
|
),
|
|
8689
8714
|
/* @__PURE__ */ c("span", { ref: A, className: _, children: e }),
|
|
8690
8715
|
/* @__PURE__ */ c(
|
|
8691
|
-
|
|
8716
|
+
es,
|
|
8692
8717
|
{
|
|
8693
8718
|
label: f,
|
|
8694
8719
|
labelRef: I,
|
|
@@ -8700,13 +8725,13 @@ const vm = {
|
|
|
8700
8725
|
}
|
|
8701
8726
|
);
|
|
8702
8727
|
}
|
|
8703
|
-
),
|
|
8728
|
+
), es = ({
|
|
8704
8729
|
labelRef: e,
|
|
8705
8730
|
labelClass: t,
|
|
8706
8731
|
label: r,
|
|
8707
8732
|
labelInnerClass: n
|
|
8708
8733
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: n, children: r }) });
|
|
8709
|
-
|
|
8734
|
+
Ko.displayName = "ButtonIcon";
|
|
8710
8735
|
/*!
|
|
8711
8736
|
@versini/ui-button v4.2.8
|
|
8712
8737
|
© 2025 gizmette.com
|
|
@@ -8746,7 +8771,7 @@ const xm = Y.forwardRef(
|
|
|
8746
8771
|
}
|
|
8747
8772
|
) : "";
|
|
8748
8773
|
return /* @__PURE__ */ c("div", { className: o, children: /* @__PURE__ */ c(
|
|
8749
|
-
|
|
8774
|
+
Ko,
|
|
8750
8775
|
{
|
|
8751
8776
|
className: p("justify-center", r),
|
|
8752
8777
|
ref: s,
|
|
@@ -8788,7 +8813,7 @@ const Tm = 200, _m = ({
|
|
|
8788
8813
|
return /* @__PURE__ */ C("span", { style: { wordBreak: "break-word" }, children: [
|
|
8789
8814
|
a ? e : o,
|
|
8790
8815
|
i && /* @__PURE__ */ c(
|
|
8791
|
-
|
|
8816
|
+
Wo,
|
|
8792
8817
|
{
|
|
8793
8818
|
mode: r,
|
|
8794
8819
|
focusMode: n,
|
|
@@ -8816,7 +8841,7 @@ try {
|
|
|
8816
8841
|
} catch {
|
|
8817
8842
|
}
|
|
8818
8843
|
const Em = ({ content: e }) => /* @__PURE__ */ c(
|
|
8819
|
-
|
|
8844
|
+
rn,
|
|
8820
8845
|
{
|
|
8821
8846
|
kind: "right",
|
|
8822
8847
|
copyToClipboard: e,
|
|
@@ -8849,11 +8874,11 @@ const wr = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
|
|
|
8849
8874
|
return n === 0 ? 1 : (r - e) / n;
|
|
8850
8875
|
};
|
|
8851
8876
|
// @__NO_SIDE_EFFECTS__
|
|
8852
|
-
function
|
|
8877
|
+
function Bn(e) {
|
|
8853
8878
|
let t;
|
|
8854
8879
|
return () => (t === void 0 && (t = e()), t);
|
|
8855
8880
|
}
|
|
8856
|
-
const Nm = /* @__PURE__ */
|
|
8881
|
+
const Nm = /* @__PURE__ */ Bn(() => window.ScrollTimeline !== void 0);
|
|
8857
8882
|
class Sm {
|
|
8858
8883
|
constructor(t) {
|
|
8859
8884
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
@@ -8924,13 +8949,13 @@ class Sm {
|
|
|
8924
8949
|
this.runAll("complete");
|
|
8925
8950
|
}
|
|
8926
8951
|
}
|
|
8927
|
-
class
|
|
8952
|
+
class Go extends Sm {
|
|
8928
8953
|
then(t, r) {
|
|
8929
8954
|
return Promise.all(this.animations).then(t).catch(r);
|
|
8930
8955
|
}
|
|
8931
8956
|
}
|
|
8932
8957
|
const xe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Ae = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, rr = 2e4;
|
|
8933
|
-
function
|
|
8958
|
+
function On(e) {
|
|
8934
8959
|
let t = 0;
|
|
8935
8960
|
const r = 50;
|
|
8936
8961
|
let n = e.next(t);
|
|
@@ -8938,20 +8963,20 @@ function Bn(e) {
|
|
|
8938
8963
|
t += r, n = e.next(t);
|
|
8939
8964
|
return t >= rr ? 1 / 0 : t;
|
|
8940
8965
|
}
|
|
8941
|
-
const
|
|
8966
|
+
const Yo = (e, t, r = 10) => {
|
|
8942
8967
|
let n = "";
|
|
8943
8968
|
const a = Math.max(Math.round(t / r), 2);
|
|
8944
8969
|
for (let s = 0; s < a; s++)
|
|
8945
8970
|
n += e(/* @__PURE__ */ wr(0, a - 1, s)) + ", ";
|
|
8946
8971
|
return `linear(${n.substring(0, n.length - 2)})`;
|
|
8947
8972
|
}, Ke = (e, t, r) => r > t ? t : r < e ? e : r;
|
|
8948
|
-
function
|
|
8973
|
+
function Jo(e, t) {
|
|
8949
8974
|
return t ? e * (1e3 / t) : 0;
|
|
8950
8975
|
}
|
|
8951
8976
|
const Am = 5;
|
|
8952
|
-
function
|
|
8977
|
+
function qo(e, t, r) {
|
|
8953
8978
|
const n = Math.max(t - Am, 0);
|
|
8954
|
-
return
|
|
8979
|
+
return Jo(r - e(n), t - n);
|
|
8955
8980
|
}
|
|
8956
8981
|
const G = {
|
|
8957
8982
|
// Default spring physics
|
|
@@ -8981,17 +9006,17 @@ const G = {
|
|
|
8981
9006
|
// in seconds
|
|
8982
9007
|
minDamping: 0.05,
|
|
8983
9008
|
maxDamping: 1
|
|
8984
|
-
},
|
|
9009
|
+
}, ts = 1e-3;
|
|
8985
9010
|
function Rm({ duration: e = G.duration, bounce: t = G.bounce, velocity: r = G.velocity, mass: n = G.mass }) {
|
|
8986
9011
|
let a, s;
|
|
8987
9012
|
$t(e <= /* @__PURE__ */ xe(G.maxDuration), "Spring duration must be 10 seconds or less");
|
|
8988
9013
|
let o = 1 - t;
|
|
8989
9014
|
o = Ke(G.minDamping, G.maxDamping, o), e = Ke(G.minDuration, G.maxDuration, /* @__PURE__ */ Ae(e)), o < 1 ? (a = (d) => {
|
|
8990
|
-
const u = d * o, h = u * e, f = u - r, m =
|
|
8991
|
-
return
|
|
9015
|
+
const u = d * o, h = u * e, f = u - r, m = an(d, o), g = Math.exp(-h);
|
|
9016
|
+
return ts - f / m * g;
|
|
8992
9017
|
}, s = (d) => {
|
|
8993
|
-
const h = d * o * e, f = h * r + r, m = Math.pow(o, 2) * Math.pow(d, 2) * e, g = Math.exp(-h), y =
|
|
8994
|
-
return (-a(d) +
|
|
9018
|
+
const h = d * o * e, f = h * r + r, m = Math.pow(o, 2) * Math.pow(d, 2) * e, g = Math.exp(-h), y = an(Math.pow(d, 2), o);
|
|
9019
|
+
return (-a(d) + ts > 0 ? -1 : 1) * ((f - m) * g) / y;
|
|
8995
9020
|
}) : (a = (d) => {
|
|
8996
9021
|
const u = Math.exp(-d * e), h = (d - r) * e + 1;
|
|
8997
9022
|
return -1e-3 + u * h;
|
|
@@ -9022,11 +9047,11 @@ function Vm(e, t, r) {
|
|
|
9022
9047
|
n = n - e(n) / t(n);
|
|
9023
9048
|
return n;
|
|
9024
9049
|
}
|
|
9025
|
-
function
|
|
9050
|
+
function an(e, t) {
|
|
9026
9051
|
return e * Math.sqrt(1 - t * t);
|
|
9027
9052
|
}
|
|
9028
9053
|
const Pm = ["duration", "bounce"], Bm = ["stiffness", "damping", "mass"];
|
|
9029
|
-
function
|
|
9054
|
+
function rs(e, t) {
|
|
9030
9055
|
return t.some((r) => e[r] !== void 0);
|
|
9031
9056
|
}
|
|
9032
9057
|
function Om(e) {
|
|
@@ -9038,7 +9063,7 @@ function Om(e) {
|
|
|
9038
9063
|
isResolvedFromDuration: !1,
|
|
9039
9064
|
...e
|
|
9040
9065
|
};
|
|
9041
|
-
if (!
|
|
9066
|
+
if (!rs(e, Bm) && rs(e, Pm))
|
|
9042
9067
|
if (e.visualDuration) {
|
|
9043
9068
|
const r = e.visualDuration, n = 2 * Math.PI / (r * 1.2), a = n * n, s = 2 * Ke(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(a);
|
|
9044
9069
|
t = {
|
|
@@ -9057,7 +9082,7 @@ function Om(e) {
|
|
|
9057
9082
|
}
|
|
9058
9083
|
return t;
|
|
9059
9084
|
}
|
|
9060
|
-
function
|
|
9085
|
+
function Ln(e = G.visualDuration, t = G.bounce) {
|
|
9061
9086
|
const r = typeof e != "object" ? {
|
|
9062
9087
|
visualDuration: e,
|
|
9063
9088
|
keyframes: [0, 1],
|
|
@@ -9071,7 +9096,7 @@ function On(e = G.visualDuration, t = G.bounce) {
|
|
|
9071
9096
|
n || (n = T ? G.restSpeed.granular : G.restSpeed.default), a || (a = T ? G.restDelta.granular : G.restDelta.default);
|
|
9072
9097
|
let E;
|
|
9073
9098
|
if (y < 1) {
|
|
9074
|
-
const b =
|
|
9099
|
+
const b = an(k, y);
|
|
9075
9100
|
E = (x) => {
|
|
9076
9101
|
const _ = Math.exp(-y * k * x);
|
|
9077
9102
|
return o - _ * ((g + y * k * v) / b * Math.sin(b * x) + v * Math.cos(b * x));
|
|
@@ -9093,21 +9118,21 @@ function On(e = G.visualDuration, t = G.bounce) {
|
|
|
9093
9118
|
i.done = b >= h;
|
|
9094
9119
|
else {
|
|
9095
9120
|
let _ = 0;
|
|
9096
|
-
y < 1 && (_ = b === 0 ? /* @__PURE__ */ xe(g) :
|
|
9121
|
+
y < 1 && (_ = b === 0 ? /* @__PURE__ */ xe(g) : qo(E, b, x));
|
|
9097
9122
|
const w = Math.abs(_) <= n, I = Math.abs(o - x) <= a;
|
|
9098
9123
|
i.done = w && I;
|
|
9099
9124
|
}
|
|
9100
9125
|
return i.value = i.done ? o : x, i;
|
|
9101
9126
|
},
|
|
9102
9127
|
toString: () => {
|
|
9103
|
-
const b = Math.min(
|
|
9128
|
+
const b = Math.min(On(N), rr), x = Yo((_) => N.next(b * _).value, b, 30);
|
|
9104
9129
|
return b + "ms " + x;
|
|
9105
9130
|
}
|
|
9106
9131
|
};
|
|
9107
9132
|
return N;
|
|
9108
9133
|
}
|
|
9109
9134
|
function Lm(e, t = 100, r) {
|
|
9110
|
-
const n = r({ ...e, keyframes: [0, t] }), a = Math.min(
|
|
9135
|
+
const n = r({ ...e, keyframes: [0, t] }), a = Math.min(On(n), rr);
|
|
9111
9136
|
return {
|
|
9112
9137
|
type: "keyframes",
|
|
9113
9138
|
ease: (s) => n.next(a * s).value / t,
|
|
@@ -9120,47 +9145,47 @@ function kr(e) {
|
|
|
9120
9145
|
const $m = (e, t, r) => {
|
|
9121
9146
|
const n = t - e;
|
|
9122
9147
|
return ((r - e) % n + n) % n + e;
|
|
9123
|
-
},
|
|
9124
|
-
function
|
|
9125
|
-
return
|
|
9148
|
+
}, Xo = (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
9149
|
+
function Zo(e, t) {
|
|
9150
|
+
return Xo(e) ? e[$m(0, e.length, t)] : e;
|
|
9126
9151
|
}
|
|
9127
9152
|
const Dt = (e, t, r) => e + (t - e) * r;
|
|
9128
|
-
function
|
|
9153
|
+
function Qo(e, t) {
|
|
9129
9154
|
const r = e[e.length - 1];
|
|
9130
9155
|
for (let n = 1; n <= t; n++) {
|
|
9131
9156
|
const a = /* @__PURE__ */ wr(0, t, n);
|
|
9132
9157
|
e.push(Dt(r, 1, a));
|
|
9133
9158
|
}
|
|
9134
9159
|
}
|
|
9135
|
-
function
|
|
9160
|
+
function ei(e) {
|
|
9136
9161
|
const t = [0];
|
|
9137
|
-
return
|
|
9162
|
+
return Qo(t, e.length - 1), t;
|
|
9138
9163
|
}
|
|
9139
9164
|
const ne = (e) => !!(e && e.getVelocity);
|
|
9140
|
-
function
|
|
9165
|
+
function $n(e) {
|
|
9141
9166
|
return typeof e == "object" && !Array.isArray(e);
|
|
9142
9167
|
}
|
|
9143
|
-
function
|
|
9144
|
-
return typeof e == "string" &&
|
|
9168
|
+
function ti(e, t, r, n) {
|
|
9169
|
+
return typeof e == "string" && $n(t) ? Cm(e, r, n) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
|
|
9145
9170
|
}
|
|
9146
9171
|
function Dm(e, t, r) {
|
|
9147
9172
|
return e * (t + 1);
|
|
9148
9173
|
}
|
|
9149
|
-
function
|
|
9174
|
+
function ns(e, t, r, n) {
|
|
9150
9175
|
var a;
|
|
9151
9176
|
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? r : (a = n.get(t)) !== null && a !== void 0 ? a : e;
|
|
9152
9177
|
}
|
|
9153
9178
|
function Fm(e, t) {
|
|
9154
9179
|
e.indexOf(t) === -1 && e.push(t);
|
|
9155
9180
|
}
|
|
9156
|
-
function
|
|
9181
|
+
function ri(e, t) {
|
|
9157
9182
|
const r = e.indexOf(t);
|
|
9158
9183
|
r > -1 && e.splice(r, 1);
|
|
9159
9184
|
}
|
|
9160
9185
|
function zm(e, t, r) {
|
|
9161
9186
|
for (let n = 0; n < e.length; n++) {
|
|
9162
9187
|
const a = e[n];
|
|
9163
|
-
a.at > t && a.at < r && (
|
|
9188
|
+
a.at > t && a.at < r && (ri(e, a), n--);
|
|
9164
9189
|
}
|
|
9165
9190
|
}
|
|
9166
9191
|
function Um(e, t, r, n, a, s) {
|
|
@@ -9169,7 +9194,7 @@ function Um(e, t, r, n, a, s) {
|
|
|
9169
9194
|
e.push({
|
|
9170
9195
|
value: t[o],
|
|
9171
9196
|
at: Dt(a, s, n[o]),
|
|
9172
|
-
easing:
|
|
9197
|
+
easing: Zo(r, o)
|
|
9173
9198
|
});
|
|
9174
9199
|
}
|
|
9175
9200
|
function Hm(e, t) {
|
|
@@ -9189,14 +9214,14 @@ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
|
|
|
9189
9214
|
d.set(g, h);
|
|
9190
9215
|
continue;
|
|
9191
9216
|
} else if (!Array.isArray(g)) {
|
|
9192
|
-
d.set(g.name,
|
|
9217
|
+
d.set(g.name, ns(h, g.at, u, d));
|
|
9193
9218
|
continue;
|
|
9194
9219
|
}
|
|
9195
9220
|
let [y, v, k = {}] = g;
|
|
9196
|
-
k.at !== void 0 && (h =
|
|
9221
|
+
k.at !== void 0 && (h = ns(h, k.at, u, d));
|
|
9197
9222
|
let T = 0;
|
|
9198
9223
|
const E = (N, b, x, _ = 0, w = 0) => {
|
|
9199
|
-
const I = Ym(N), { delay: R = 0, times: S =
|
|
9224
|
+
const I = Ym(N), { delay: R = 0, times: S = ei(I), type: B = "keyframes", repeat: A, repeatType: V, repeatDelay: z = 0, ...P } = b;
|
|
9200
9225
|
let { ease: D = t.ease || "easeOut", duration: U } = b;
|
|
9201
9226
|
const j = typeof R == "function" ? R(_, w) : R, Ee = I.length, Ye = kr(B) ? B : a == null ? void 0 : a[B];
|
|
9202
9227
|
if (Ee <= 2 && Ye) {
|
|
@@ -9214,7 +9239,7 @@ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
|
|
|
9214
9239
|
const Fe = h + j;
|
|
9215
9240
|
S.length === 1 && S[0] === 0 && (S[1] = 1);
|
|
9216
9241
|
const Je = S.length - I.length;
|
|
9217
|
-
if (Je > 0 &&
|
|
9242
|
+
if (Je > 0 && Qo(S, Je), I.length === 1 && I.unshift(null), A) {
|
|
9218
9243
|
De(A < Km, "Repeat count too high, must be less than 20"), U = Dm(U, A);
|
|
9219
9244
|
const se = [...I], be = [...S];
|
|
9220
9245
|
D = Array.isArray(D) ? [...D] : [D];
|
|
@@ -9222,7 +9247,7 @@ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
|
|
|
9222
9247
|
for (let te = 0; te < A; te++) {
|
|
9223
9248
|
I.push(...se);
|
|
9224
9249
|
for (let Ce = 0; Ce < se.length; Ce++)
|
|
9225
|
-
S.push(be[Ce] + (te + 1)), D.push(Ce === 0 ? "linear" :
|
|
9250
|
+
S.push(be[Ce] + (te + 1)), D.push(Ce === 0 ? "linear" : Zo(oe, Ce - 1));
|
|
9226
9251
|
}
|
|
9227
9252
|
Hm(S, A);
|
|
9228
9253
|
}
|
|
@@ -9230,15 +9255,15 @@ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
|
|
|
9230
9255
|
Um(x, I, D, S, Fe, qe), T = Math.max(j + U, T), f = Math.max(qe, f);
|
|
9231
9256
|
};
|
|
9232
9257
|
if (ne(y)) {
|
|
9233
|
-
const N =
|
|
9234
|
-
E(v, k,
|
|
9258
|
+
const N = as(y, i);
|
|
9259
|
+
E(v, k, ss("default", N));
|
|
9235
9260
|
} else {
|
|
9236
|
-
const N =
|
|
9261
|
+
const N = ti(y, v, n, l), b = N.length;
|
|
9237
9262
|
for (let x = 0; x < b; x++) {
|
|
9238
9263
|
v = v, k = k;
|
|
9239
|
-
const _ = N[x], w =
|
|
9264
|
+
const _ = N[x], w = as(_, i);
|
|
9240
9265
|
for (const I in v)
|
|
9241
|
-
E(v[I], Jm(k, I),
|
|
9266
|
+
E(v[I], Jm(k, I), ss(I, w), x, b);
|
|
9242
9267
|
}
|
|
9243
9268
|
}
|
|
9244
9269
|
u = h, h += T;
|
|
@@ -9267,10 +9292,10 @@ function Gm(e, { defaultTransition: t = {}, ...r } = {}, n, a) {
|
|
|
9267
9292
|
}
|
|
9268
9293
|
}), o;
|
|
9269
9294
|
}
|
|
9270
|
-
function
|
|
9295
|
+
function as(e, t) {
|
|
9271
9296
|
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
9272
9297
|
}
|
|
9273
|
-
function
|
|
9298
|
+
function ss(e, t) {
|
|
9274
9299
|
return t[e] || (t[e] = []), t[e];
|
|
9275
9300
|
}
|
|
9276
9301
|
function Ym(e) {
|
|
@@ -9283,7 +9308,7 @@ function Jm(e, t) {
|
|
|
9283
9308
|
} : { ...e };
|
|
9284
9309
|
}
|
|
9285
9310
|
const qm = (e) => typeof e == "number", Xm = (e) => e.every(qm), St = /* @__PURE__ */ new WeakMap();
|
|
9286
|
-
function
|
|
9311
|
+
function ni(e, t) {
|
|
9287
9312
|
return e ? e[t] || e.default || e : void 0;
|
|
9288
9313
|
}
|
|
9289
9314
|
const ht = [
|
|
@@ -9304,7 +9329,7 @@ const ht = [
|
|
|
9304
9329
|
"skew",
|
|
9305
9330
|
"skewX",
|
|
9306
9331
|
"skewY"
|
|
9307
|
-
], ft = new Set(ht),
|
|
9332
|
+
], ft = new Set(ht), ai = /* @__PURE__ */ new Set([
|
|
9308
9333
|
"width",
|
|
9309
9334
|
"height",
|
|
9310
9335
|
"top",
|
|
@@ -9388,7 +9413,7 @@ function np(e, t) {
|
|
|
9388
9413
|
o[Yt[T]].cancel(k);
|
|
9389
9414
|
}, state: a, steps: o };
|
|
9390
9415
|
}
|
|
9391
|
-
const { schedule: Ie, cancel:
|
|
9416
|
+
const { schedule: Ie, cancel: sn, state: nr, steps: M1 } = np(typeof requestAnimationFrame < "u" ? requestAnimationFrame : $e, !0);
|
|
9392
9417
|
let Xt;
|
|
9393
9418
|
function ap() {
|
|
9394
9419
|
Xt = void 0;
|
|
@@ -9399,12 +9424,12 @@ const Be = {
|
|
|
9399
9424
|
Xt = e, queueMicrotask(ap);
|
|
9400
9425
|
}
|
|
9401
9426
|
};
|
|
9402
|
-
class
|
|
9427
|
+
class si {
|
|
9403
9428
|
constructor() {
|
|
9404
9429
|
this.subscriptions = [];
|
|
9405
9430
|
}
|
|
9406
9431
|
add(t) {
|
|
9407
|
-
return Fm(this.subscriptions, t), () =>
|
|
9432
|
+
return Fm(this.subscriptions, t), () => ri(this.subscriptions, t);
|
|
9408
9433
|
}
|
|
9409
9434
|
notify(t, r, n) {
|
|
9410
9435
|
const a = this.subscriptions.length;
|
|
@@ -9424,11 +9449,11 @@ class ni {
|
|
|
9424
9449
|
this.subscriptions.length = 0;
|
|
9425
9450
|
}
|
|
9426
9451
|
}
|
|
9427
|
-
const
|
|
9428
|
-
function
|
|
9429
|
-
e ||
|
|
9452
|
+
const os = /* @__PURE__ */ new Set();
|
|
9453
|
+
function Dn(e, t, r) {
|
|
9454
|
+
e || os.has(t) || (console.warn(t), os.add(t));
|
|
9430
9455
|
}
|
|
9431
|
-
const
|
|
9456
|
+
const is = 30, sp = (e) => !isNaN(parseFloat(e));
|
|
9432
9457
|
class op {
|
|
9433
9458
|
/**
|
|
9434
9459
|
* @param init - The initiating value
|
|
@@ -9491,10 +9516,10 @@ class op {
|
|
|
9491
9516
|
* @deprecated
|
|
9492
9517
|
*/
|
|
9493
9518
|
onChange(t) {
|
|
9494
|
-
return process.env.NODE_ENV !== "production" &&
|
|
9519
|
+
return process.env.NODE_ENV !== "production" && Dn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
9495
9520
|
}
|
|
9496
9521
|
on(t, r) {
|
|
9497
|
-
this.events[t] || (this.events[t] = new
|
|
9522
|
+
this.events[t] || (this.events[t] = new si());
|
|
9498
9523
|
const n = this.events[t].add(r);
|
|
9499
9524
|
return t === "change" ? () => {
|
|
9500
9525
|
n(), Ie.read(() => {
|
|
@@ -9567,10 +9592,10 @@ class op {
|
|
|
9567
9592
|
*/
|
|
9568
9593
|
getVelocity() {
|
|
9569
9594
|
const t = Be.now();
|
|
9570
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt >
|
|
9595
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > is)
|
|
9571
9596
|
return 0;
|
|
9572
|
-
const r = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
9573
|
-
return
|
|
9597
|
+
const r = Math.min(this.updatedAt - this.prevUpdatedAt, is);
|
|
9598
|
+
return Jo(parseFloat(this.current) - parseFloat(this.prevFrameValue), r);
|
|
9574
9599
|
}
|
|
9575
9600
|
/**
|
|
9576
9601
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -9626,26 +9651,26 @@ class op {
|
|
|
9626
9651
|
function At(e, t) {
|
|
9627
9652
|
return new op(e, t);
|
|
9628
9653
|
}
|
|
9629
|
-
function
|
|
9654
|
+
function ls(e) {
|
|
9630
9655
|
const t = [{}, {}];
|
|
9631
9656
|
return e == null || e.values.forEach((r, n) => {
|
|
9632
9657
|
t[0][n] = r.get(), t[1][n] = r.getVelocity();
|
|
9633
9658
|
}), t;
|
|
9634
9659
|
}
|
|
9635
|
-
function
|
|
9660
|
+
function oi(e, t, r, n) {
|
|
9636
9661
|
if (typeof t == "function") {
|
|
9637
|
-
const [a, s] =
|
|
9662
|
+
const [a, s] = ls(n);
|
|
9638
9663
|
t = t(r !== void 0 ? r : e.custom, a, s);
|
|
9639
9664
|
}
|
|
9640
9665
|
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
9641
|
-
const [a, s] =
|
|
9666
|
+
const [a, s] = ls(n);
|
|
9642
9667
|
t = t(r !== void 0 ? r : e.custom, a, s);
|
|
9643
9668
|
}
|
|
9644
9669
|
return t;
|
|
9645
9670
|
}
|
|
9646
9671
|
function ip(e, t, r) {
|
|
9647
9672
|
const n = e.getProps();
|
|
9648
|
-
return
|
|
9673
|
+
return oi(n, t, n.custom, e);
|
|
9649
9674
|
}
|
|
9650
9675
|
function lp(e, t, r) {
|
|
9651
9676
|
e.hasValue(t) ? e.getValue(t).set(r) : e.addValue(t, At(r));
|
|
@@ -9667,18 +9692,18 @@ function up(e, t) {
|
|
|
9667
9692
|
if (dp(r))
|
|
9668
9693
|
return r.add(t);
|
|
9669
9694
|
}
|
|
9670
|
-
const
|
|
9695
|
+
const Fn = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), hp = "framerAppearId", fp = "data-" + Fn(hp);
|
|
9671
9696
|
function mp(e) {
|
|
9672
9697
|
return e.props[fp];
|
|
9673
9698
|
}
|
|
9674
|
-
function
|
|
9699
|
+
function cs(e, t) {
|
|
9675
9700
|
e.timeline = t, e.onfinish = null;
|
|
9676
9701
|
}
|
|
9677
|
-
const
|
|
9702
|
+
const zn = (e) => Array.isArray(e) && typeof e[0] == "number", pp = {
|
|
9678
9703
|
linearEasing: void 0
|
|
9679
9704
|
};
|
|
9680
9705
|
function gp(e, t) {
|
|
9681
|
-
const r = /* @__PURE__ */
|
|
9706
|
+
const r = /* @__PURE__ */ Bn(e);
|
|
9682
9707
|
return () => {
|
|
9683
9708
|
var n;
|
|
9684
9709
|
return (n = pp[t]) !== null && n !== void 0 ? n : r();
|
|
@@ -9692,10 +9717,10 @@ const ar = /* @__PURE__ */ gp(() => {
|
|
|
9692
9717
|
}
|
|
9693
9718
|
return !0;
|
|
9694
9719
|
}, "linearEasing");
|
|
9695
|
-
function
|
|
9696
|
-
return !!(typeof e == "function" && ar() || !e || typeof e == "string" && (e in
|
|
9720
|
+
function ii(e) {
|
|
9721
|
+
return !!(typeof e == "function" && ar() || !e || typeof e == "string" && (e in on || ar()) || zn(e) || Array.isArray(e) && e.every(ii));
|
|
9697
9722
|
}
|
|
9698
|
-
const wt = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`,
|
|
9723
|
+
const wt = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, on = {
|
|
9699
9724
|
linear: "linear",
|
|
9700
9725
|
ease: "ease",
|
|
9701
9726
|
easeIn: "ease-in",
|
|
@@ -9706,15 +9731,15 @@ const wt = ([e, t, r, n]) => `cubic-bezier(${e}, ${t}, ${r}, ${n})`, sn = {
|
|
|
9706
9731
|
backIn: /* @__PURE__ */ wt([0.31, 0.01, 0.66, -0.59]),
|
|
9707
9732
|
backOut: /* @__PURE__ */ wt([0.33, 1.53, 0.69, 0.99])
|
|
9708
9733
|
};
|
|
9709
|
-
function
|
|
9734
|
+
function li(e, t) {
|
|
9710
9735
|
if (e)
|
|
9711
|
-
return typeof e == "function" && ar() ?
|
|
9736
|
+
return typeof e == "function" && ar() ? Yo(e, t) : zn(e) ? wt(e) : Array.isArray(e) ? e.map((r) => li(r, t) || on.easeOut) : on[e];
|
|
9712
9737
|
}
|
|
9713
|
-
const
|
|
9738
|
+
const ci = (e, t, r) => (((1 - 3 * r + 3 * t) * e + (3 * r - 6 * t)) * e + 3 * t) * e, yp = 1e-7, bp = 12;
|
|
9714
9739
|
function vp(e, t, r, n, a) {
|
|
9715
9740
|
let s, o, i = 0;
|
|
9716
9741
|
do
|
|
9717
|
-
o = t + (r - t) / 2, s =
|
|
9742
|
+
o = t + (r - t) / 2, s = ci(o, n, a) - e, s > 0 ? r = o : t = o;
|
|
9718
9743
|
while (Math.abs(s) > yp && ++i < bp);
|
|
9719
9744
|
return o;
|
|
9720
9745
|
}
|
|
@@ -9722,11 +9747,11 @@ function Ft(e, t, r, n) {
|
|
|
9722
9747
|
if (e === t && r === n)
|
|
9723
9748
|
return $e;
|
|
9724
9749
|
const a = (s) => vp(s, 0, 1, e, r);
|
|
9725
|
-
return (s) => s === 0 || s === 1 ? s :
|
|
9750
|
+
return (s) => s === 0 || s === 1 ? s : ci(a(s), t, n);
|
|
9726
9751
|
}
|
|
9727
|
-
const
|
|
9752
|
+
const di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ui = (e) => (t) => 1 - e(1 - t), hi = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Un = /* @__PURE__ */ ui(hi), fi = /* @__PURE__ */ di(Un), mi = (e) => (e *= 2) < 1 ? 0.5 * Un(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Hn = (e) => 1 - Math.sin(Math.acos(e)), wp = ui(Hn), pi = di(Hn), gi = (e) => /^0[^.\s]+$/u.test(e);
|
|
9728
9753
|
function kp(e) {
|
|
9729
|
-
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" ||
|
|
9754
|
+
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || gi(e) : !0;
|
|
9730
9755
|
}
|
|
9731
9756
|
const mt = {
|
|
9732
9757
|
test: (e) => typeof e == "number",
|
|
@@ -9738,14 +9763,14 @@ const mt = {
|
|
|
9738
9763
|
}, Jt = {
|
|
9739
9764
|
...mt,
|
|
9740
9765
|
default: 1
|
|
9741
|
-
}, xt = (e) => Math.round(e * 1e5) / 1e5,
|
|
9766
|
+
}, xt = (e) => Math.round(e * 1e5) / 1e5, jn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
9742
9767
|
function xp(e) {
|
|
9743
9768
|
return e == null;
|
|
9744
9769
|
}
|
|
9745
|
-
const Tp = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,
|
|
9770
|
+
const Tp = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Wn = (e, t) => (r) => !!(typeof r == "string" && Tp.test(r) && r.startsWith(e) || t && !xp(r) && Object.prototype.hasOwnProperty.call(r, t)), yi = (e, t, r) => (n) => {
|
|
9746
9771
|
if (typeof n != "string")
|
|
9747
9772
|
return n;
|
|
9748
|
-
const [a, s, o, i] = n.match(
|
|
9773
|
+
const [a, s, o, i] = n.match(jn);
|
|
9749
9774
|
return {
|
|
9750
9775
|
[e]: parseFloat(a),
|
|
9751
9776
|
[t]: parseFloat(s),
|
|
@@ -9756,8 +9781,8 @@ const Tp = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
9756
9781
|
...mt,
|
|
9757
9782
|
transform: (e) => Math.round(_p(e))
|
|
9758
9783
|
}, Ue = {
|
|
9759
|
-
test: /* @__PURE__ */
|
|
9760
|
-
parse: /* @__PURE__ */
|
|
9784
|
+
test: /* @__PURE__ */ Wn("rgb", "red"),
|
|
9785
|
+
parse: /* @__PURE__ */ yi("red", "green", "blue"),
|
|
9761
9786
|
transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Br.transform(e) + ", " + Br.transform(t) + ", " + Br.transform(r) + ", " + xt(Rt.transform(n)) + ")"
|
|
9762
9787
|
};
|
|
9763
9788
|
function Ip(e) {
|
|
@@ -9769,32 +9794,32 @@ function Ip(e) {
|
|
|
9769
9794
|
alpha: a ? parseInt(a, 16) / 255 : 1
|
|
9770
9795
|
};
|
|
9771
9796
|
}
|
|
9772
|
-
const
|
|
9773
|
-
test: /* @__PURE__ */
|
|
9797
|
+
const ln = {
|
|
9798
|
+
test: /* @__PURE__ */ Wn("#"),
|
|
9774
9799
|
parse: Ip,
|
|
9775
9800
|
transform: Ue.transform
|
|
9776
9801
|
}, zt = (e) => ({
|
|
9777
9802
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
9778
9803
|
parse: parseFloat,
|
|
9779
9804
|
transform: (t) => `${t}${e}`
|
|
9780
|
-
}), Ve = /* @__PURE__ */ zt("deg"), rt = /* @__PURE__ */ zt("%"), O = /* @__PURE__ */ zt("px"), Ep = /* @__PURE__ */ zt("vh"), Cp = /* @__PURE__ */ zt("vw"),
|
|
9805
|
+
}), Ve = /* @__PURE__ */ zt("deg"), rt = /* @__PURE__ */ zt("%"), O = /* @__PURE__ */ zt("px"), Ep = /* @__PURE__ */ zt("vh"), Cp = /* @__PURE__ */ zt("vw"), ds = {
|
|
9781
9806
|
...rt,
|
|
9782
9807
|
parse: (e) => rt.parse(e) / 100,
|
|
9783
9808
|
transform: (e) => rt.transform(e * 100)
|
|
9784
9809
|
}, Ze = {
|
|
9785
|
-
test: /* @__PURE__ */
|
|
9786
|
-
parse: /* @__PURE__ */
|
|
9810
|
+
test: /* @__PURE__ */ Wn("hsl", "hue"),
|
|
9811
|
+
parse: /* @__PURE__ */ yi("hue", "saturation", "lightness"),
|
|
9787
9812
|
transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + rt.transform(xt(t)) + ", " + rt.transform(xt(r)) + ", " + xt(Rt.transform(n)) + ")"
|
|
9788
9813
|
}, re = {
|
|
9789
|
-
test: (e) => Ue.test(e) ||
|
|
9790
|
-
parse: (e) => Ue.test(e) ? Ue.parse(e) : Ze.test(e) ? Ze.parse(e) :
|
|
9814
|
+
test: (e) => Ue.test(e) || ln.test(e) || Ze.test(e),
|
|
9815
|
+
parse: (e) => Ue.test(e) ? Ue.parse(e) : Ze.test(e) ? Ze.parse(e) : ln.parse(e),
|
|
9791
9816
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ue.transform(e) : Ze.transform(e)
|
|
9792
9817
|
}, Np = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
9793
9818
|
function Sp(e) {
|
|
9794
9819
|
var t, r;
|
|
9795
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(
|
|
9820
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(jn)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(Np)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
|
|
9796
9821
|
}
|
|
9797
|
-
const
|
|
9822
|
+
const bi = "number", vi = "color", Ap = "var", Rp = "var(", us = "${}", Mp = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
9798
9823
|
function Mt(e) {
|
|
9799
9824
|
const t = e.toString(), r = [], n = {
|
|
9800
9825
|
color: [],
|
|
@@ -9802,47 +9827,47 @@ function Mt(e) {
|
|
|
9802
9827
|
var: []
|
|
9803
9828
|
}, a = [];
|
|
9804
9829
|
let s = 0;
|
|
9805
|
-
const i = t.replace(Mp, (l) => (re.test(l) ? (n.color.push(s), a.push(
|
|
9830
|
+
const i = t.replace(Mp, (l) => (re.test(l) ? (n.color.push(s), a.push(vi), r.push(re.parse(l))) : l.startsWith(Rp) ? (n.var.push(s), a.push(Ap), r.push(l)) : (n.number.push(s), a.push(bi), r.push(parseFloat(l))), ++s, us)).split(us);
|
|
9806
9831
|
return { values: r, split: i, indexes: n, types: a };
|
|
9807
9832
|
}
|
|
9808
|
-
function
|
|
9833
|
+
function wi(e) {
|
|
9809
9834
|
return Mt(e).values;
|
|
9810
9835
|
}
|
|
9811
|
-
function
|
|
9836
|
+
function ki(e) {
|
|
9812
9837
|
const { split: t, types: r } = Mt(e), n = t.length;
|
|
9813
9838
|
return (a) => {
|
|
9814
9839
|
let s = "";
|
|
9815
9840
|
for (let o = 0; o < n; o++)
|
|
9816
9841
|
if (s += t[o], a[o] !== void 0) {
|
|
9817
9842
|
const i = r[o];
|
|
9818
|
-
i ===
|
|
9843
|
+
i === bi ? s += xt(a[o]) : i === vi ? s += re.transform(a[o]) : s += a[o];
|
|
9819
9844
|
}
|
|
9820
9845
|
return s;
|
|
9821
9846
|
};
|
|
9822
9847
|
}
|
|
9823
9848
|
const Vp = (e) => typeof e == "number" ? 0 : e;
|
|
9824
9849
|
function Pp(e) {
|
|
9825
|
-
const t =
|
|
9826
|
-
return
|
|
9850
|
+
const t = wi(e);
|
|
9851
|
+
return ki(e)(t.map(Vp));
|
|
9827
9852
|
}
|
|
9828
9853
|
const pt = {
|
|
9829
9854
|
test: Sp,
|
|
9830
|
-
parse:
|
|
9831
|
-
createTransformer:
|
|
9855
|
+
parse: wi,
|
|
9856
|
+
createTransformer: ki,
|
|
9832
9857
|
getAnimatableNone: Pp
|
|
9833
9858
|
}, Bp = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
9834
9859
|
function Op(e) {
|
|
9835
9860
|
const [t, r] = e.slice(0, -1).split("(");
|
|
9836
9861
|
if (t === "drop-shadow")
|
|
9837
9862
|
return e;
|
|
9838
|
-
const [n] = r.match(
|
|
9863
|
+
const [n] = r.match(jn) || [];
|
|
9839
9864
|
if (!n)
|
|
9840
9865
|
return e;
|
|
9841
9866
|
const a = r.replace(n, "");
|
|
9842
9867
|
let s = Bp.has(t) ? 1 : 0;
|
|
9843
9868
|
return n !== r && (s *= 100), t + "(" + s + a + ")";
|
|
9844
9869
|
}
|
|
9845
|
-
const Lp = /\b([a-z-]*)\(.*?\)/gu,
|
|
9870
|
+
const Lp = /\b([a-z-]*)\(.*?\)/gu, cn = {
|
|
9846
9871
|
...pt,
|
|
9847
9872
|
getAnimatableNone: (e) => {
|
|
9848
9873
|
const t = e.match(Lp);
|
|
@@ -9906,23 +9931,23 @@ const Lp = /\b([a-z-]*)\(.*?\)/gu, ln = {
|
|
|
9906
9931
|
perspective: O,
|
|
9907
9932
|
transformPerspective: O,
|
|
9908
9933
|
opacity: Rt,
|
|
9909
|
-
originX:
|
|
9910
|
-
originY:
|
|
9934
|
+
originX: ds,
|
|
9935
|
+
originY: ds,
|
|
9911
9936
|
originZ: O
|
|
9912
|
-
},
|
|
9937
|
+
}, hs = {
|
|
9913
9938
|
...mt,
|
|
9914
9939
|
transform: Math.round
|
|
9915
|
-
},
|
|
9940
|
+
}, Kn = {
|
|
9916
9941
|
...$p,
|
|
9917
9942
|
...Dp,
|
|
9918
|
-
zIndex:
|
|
9943
|
+
zIndex: hs,
|
|
9919
9944
|
size: O,
|
|
9920
9945
|
// SVG
|
|
9921
9946
|
fillOpacity: Rt,
|
|
9922
9947
|
strokeOpacity: Rt,
|
|
9923
|
-
numOctaves:
|
|
9948
|
+
numOctaves: hs
|
|
9924
9949
|
}, Fp = {
|
|
9925
|
-
...
|
|
9950
|
+
...Kn,
|
|
9926
9951
|
// Color props
|
|
9927
9952
|
color: re,
|
|
9928
9953
|
backgroundColor: re,
|
|
@@ -9935,12 +9960,12 @@ const Lp = /\b([a-z-]*)\(.*?\)/gu, ln = {
|
|
|
9935
9960
|
borderRightColor: re,
|
|
9936
9961
|
borderBottomColor: re,
|
|
9937
9962
|
borderLeftColor: re,
|
|
9938
|
-
filter:
|
|
9939
|
-
WebkitFilter:
|
|
9940
|
-
},
|
|
9941
|
-
function
|
|
9942
|
-
let r =
|
|
9943
|
-
return r !==
|
|
9963
|
+
filter: cn,
|
|
9964
|
+
WebkitFilter: cn
|
|
9965
|
+
}, Gn = (e) => Fp[e];
|
|
9966
|
+
function xi(e, t) {
|
|
9967
|
+
let r = Gn(e);
|
|
9968
|
+
return r !== cn && (r = pt), r.getAnimatableNone ? r.getAnimatableNone(t) : void 0;
|
|
9944
9969
|
}
|
|
9945
9970
|
const zp = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
9946
9971
|
function Up(e, t, r) {
|
|
@@ -9951,17 +9976,17 @@ function Up(e, t, r) {
|
|
|
9951
9976
|
}
|
|
9952
9977
|
if (a && r)
|
|
9953
9978
|
for (const s of t)
|
|
9954
|
-
e[s] =
|
|
9979
|
+
e[s] = xi(r, a);
|
|
9955
9980
|
}
|
|
9956
|
-
const
|
|
9981
|
+
const fs = (e) => e === mt || e === O, ms = (e, t) => parseFloat(e.split(", ")[t]), ps = (e, t) => (r, { transform: n }) => {
|
|
9957
9982
|
if (n === "none" || !n)
|
|
9958
9983
|
return 0;
|
|
9959
9984
|
const a = n.match(/^matrix3d\((.+)\)$/u);
|
|
9960
9985
|
if (a)
|
|
9961
|
-
return
|
|
9986
|
+
return ms(a[1], t);
|
|
9962
9987
|
{
|
|
9963
9988
|
const s = n.match(/^matrix\((.+)\)$/u);
|
|
9964
|
-
return s ?
|
|
9989
|
+
return s ? ms(s[1], e) : 0;
|
|
9965
9990
|
}
|
|
9966
9991
|
}, Hp = /* @__PURE__ */ new Set(["x", "y", "z"]), jp = ht.filter((e) => !Hp.has(e));
|
|
9967
9992
|
function Wp(e) {
|
|
@@ -9980,15 +10005,15 @@ const lt = {
|
|
|
9980
10005
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
9981
10006
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
9982
10007
|
// Transform
|
|
9983
|
-
x:
|
|
9984
|
-
y:
|
|
10008
|
+
x: ps(4, 13),
|
|
10009
|
+
y: ps(5, 14)
|
|
9985
10010
|
};
|
|
9986
10011
|
lt.translateX = lt.x;
|
|
9987
10012
|
lt.translateY = lt.y;
|
|
9988
10013
|
const He = /* @__PURE__ */ new Set();
|
|
9989
|
-
let
|
|
9990
|
-
function
|
|
9991
|
-
if (
|
|
10014
|
+
let dn = !1, un = !1;
|
|
10015
|
+
function Ti() {
|
|
10016
|
+
if (un) {
|
|
9992
10017
|
const e = Array.from(He).filter((n) => n.needsMeasurement), t = new Set(e.map((n) => n.element)), r = /* @__PURE__ */ new Map();
|
|
9993
10018
|
t.forEach((n) => {
|
|
9994
10019
|
const a = Wp(n);
|
|
@@ -10004,22 +10029,22 @@ function ki() {
|
|
|
10004
10029
|
n.suspendedScrollY !== void 0 && window.scrollTo(0, n.suspendedScrollY);
|
|
10005
10030
|
});
|
|
10006
10031
|
}
|
|
10007
|
-
|
|
10032
|
+
un = !1, dn = !1, He.forEach((e) => e.complete()), He.clear();
|
|
10008
10033
|
}
|
|
10009
|
-
function
|
|
10034
|
+
function _i() {
|
|
10010
10035
|
He.forEach((e) => {
|
|
10011
|
-
e.readKeyframes(), e.needsMeasurement && (
|
|
10036
|
+
e.readKeyframes(), e.needsMeasurement && (un = !0);
|
|
10012
10037
|
});
|
|
10013
10038
|
}
|
|
10014
10039
|
function Kp() {
|
|
10015
|
-
|
|
10040
|
+
_i(), Ti();
|
|
10016
10041
|
}
|
|
10017
|
-
class
|
|
10042
|
+
class Yn {
|
|
10018
10043
|
constructor(t, r, n, a, s, o = !1) {
|
|
10019
10044
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = r, this.name = n, this.motionValue = a, this.element = s, this.isAsync = o;
|
|
10020
10045
|
}
|
|
10021
10046
|
scheduleResolve() {
|
|
10022
|
-
this.isScheduled = !0, this.isAsync ? (He.add(this),
|
|
10047
|
+
this.isScheduled = !0, this.isAsync ? (He.add(this), dn || (dn = !0, Ie.read(_i), Ie.resolveKeyframes(Ti))) : (this.readKeyframes(), this.complete());
|
|
10023
10048
|
}
|
|
10024
10049
|
readKeyframes() {
|
|
10025
10050
|
const { unresolvedKeyframes: t, name: r, element: n, motionValue: a } = this;
|
|
@@ -10055,7 +10080,7 @@ class Gn {
|
|
|
10055
10080
|
this.isComplete || this.scheduleResolve();
|
|
10056
10081
|
}
|
|
10057
10082
|
}
|
|
10058
|
-
const
|
|
10083
|
+
const Ii = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Ei = (e) => (t) => typeof t == "string" && t.startsWith(e), Ci = /* @__PURE__ */ Ei("--"), Gp = /* @__PURE__ */ Ei("var(--"), Jn = (e) => Gp(e) ? Yp.test(e.split("/*")[0].trim()) : !1, Yp = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Jp = (
|
|
10059
10084
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
10060
10085
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
10061
10086
|
);
|
|
@@ -10067,7 +10092,7 @@ function qp(e) {
|
|
|
10067
10092
|
return [`--${r ?? n}`, a];
|
|
10068
10093
|
}
|
|
10069
10094
|
const Xp = 4;
|
|
10070
|
-
function
|
|
10095
|
+
function Ni(e, t, r = 1) {
|
|
10071
10096
|
De(r <= Xp, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
10072
10097
|
const [n, a] = qp(e);
|
|
10073
10098
|
if (!n)
|
|
@@ -10075,15 +10100,15 @@ function Ei(e, t, r = 1) {
|
|
|
10075
10100
|
const s = window.getComputedStyle(t).getPropertyValue(n);
|
|
10076
10101
|
if (s) {
|
|
10077
10102
|
const o = s.trim();
|
|
10078
|
-
return
|
|
10103
|
+
return Ii(o) ? parseFloat(o) : o;
|
|
10079
10104
|
}
|
|
10080
|
-
return
|
|
10105
|
+
return Jn(a) ? Ni(a, t, r + 1) : a;
|
|
10081
10106
|
}
|
|
10082
|
-
const
|
|
10107
|
+
const Si = (e) => (t) => t.test(e), Zp = {
|
|
10083
10108
|
test: (e) => e === "auto",
|
|
10084
10109
|
parse: (e) => e
|
|
10085
|
-
},
|
|
10086
|
-
class
|
|
10110
|
+
}, Ai = [mt, O, rt, Ve, Cp, Ep, Zp], gs = (e) => Ai.find(Si(e));
|
|
10111
|
+
class Ri extends Yn {
|
|
10087
10112
|
constructor(t, r, n, a, s) {
|
|
10088
10113
|
super(t, r, n, a, s, !0);
|
|
10089
10114
|
}
|
|
@@ -10094,16 +10119,16 @@ class Si extends Gn {
|
|
|
10094
10119
|
super.readKeyframes();
|
|
10095
10120
|
for (let l = 0; l < t.length; l++) {
|
|
10096
10121
|
let d = t[l];
|
|
10097
|
-
if (typeof d == "string" && (d = d.trim(),
|
|
10098
|
-
const u =
|
|
10122
|
+
if (typeof d == "string" && (d = d.trim(), Jn(d))) {
|
|
10123
|
+
const u = Ni(d, r.current);
|
|
10099
10124
|
u !== void 0 && (t[l] = u), l === t.length - 1 && (this.finalKeyframe = d);
|
|
10100
10125
|
}
|
|
10101
10126
|
}
|
|
10102
|
-
if (this.resolveNoneKeyframes(), !
|
|
10127
|
+
if (this.resolveNoneKeyframes(), !ai.has(n) || t.length !== 2)
|
|
10103
10128
|
return;
|
|
10104
|
-
const [a, s] = t, o =
|
|
10129
|
+
const [a, s] = t, o = gs(a), i = gs(s);
|
|
10105
10130
|
if (o !== i)
|
|
10106
|
-
if (
|
|
10131
|
+
if (fs(o) && fs(i))
|
|
10107
10132
|
for (let l = 0; l < t.length; l++) {
|
|
10108
10133
|
const d = t[l];
|
|
10109
10134
|
typeof d == "string" && (t[l] = parseFloat(d));
|
|
@@ -10138,7 +10163,7 @@ class Si extends Gn {
|
|
|
10138
10163
|
}), this.resolveNoneKeyframes();
|
|
10139
10164
|
}
|
|
10140
10165
|
}
|
|
10141
|
-
const
|
|
10166
|
+
const ys = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
10142
10167
|
(pt.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
10143
10168
|
!e.startsWith("url("));
|
|
10144
10169
|
function Qp(e) {
|
|
@@ -10155,7 +10180,7 @@ function eg(e, t, r, n) {
|
|
|
10155
10180
|
return !1;
|
|
10156
10181
|
if (t === "display" || t === "visibility")
|
|
10157
10182
|
return !0;
|
|
10158
|
-
const s = e[e.length - 1], o =
|
|
10183
|
+
const s = e[e.length - 1], o = ys(a, t), i = ys(s, t);
|
|
10159
10184
|
return $t(o === i, `You are trying to animate ${t} from "${a}" to "${s}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${s} via the \`style\` property.`), !o || !i ? !1 : Qp(e) || (r === "spring" || kr(r)) && n;
|
|
10160
10185
|
}
|
|
10161
10186
|
const tg = (e) => e !== null;
|
|
@@ -10164,7 +10189,7 @@ function xr(e, { repeat: t, repeatType: r = "loop" }, n) {
|
|
|
10164
10189
|
return !s || n === void 0 ? a[s] : n;
|
|
10165
10190
|
}
|
|
10166
10191
|
const rg = 40;
|
|
10167
|
-
class
|
|
10192
|
+
class Mi {
|
|
10168
10193
|
constructor({ autoplay: t = !0, delay: r = 0, type: n = "keyframes", repeat: a = 0, repeatDelay: s = 0, repeatType: o = "loop", ...i }) {
|
|
10169
10194
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Be.now(), this.options = {
|
|
10170
10195
|
autoplay: t,
|
|
@@ -10263,32 +10288,32 @@ function sr(e, t) {
|
|
|
10263
10288
|
const Lr = (e, t, r) => {
|
|
10264
10289
|
const n = e * e, a = r * (t * t - n) + n;
|
|
10265
10290
|
return a < 0 ? 0 : Math.sqrt(a);
|
|
10266
|
-
}, ag = [
|
|
10267
|
-
function
|
|
10291
|
+
}, ag = [ln, Ue, Ze], sg = (e) => ag.find((t) => t.test(e));
|
|
10292
|
+
function bs(e) {
|
|
10268
10293
|
const t = sg(e);
|
|
10269
10294
|
if ($t(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
|
|
10270
10295
|
return !1;
|
|
10271
10296
|
let r = t.parse(e);
|
|
10272
10297
|
return t === Ze && (r = ng(r)), r;
|
|
10273
10298
|
}
|
|
10274
|
-
const
|
|
10275
|
-
const r =
|
|
10299
|
+
const vs = (e, t) => {
|
|
10300
|
+
const r = bs(e), n = bs(t);
|
|
10276
10301
|
if (!r || !n)
|
|
10277
10302
|
return sr(e, t);
|
|
10278
10303
|
const a = { ...r };
|
|
10279
10304
|
return (s) => (a.red = Lr(r.red, n.red, s), a.green = Lr(r.green, n.green, s), a.blue = Lr(r.blue, n.blue, s), a.alpha = Dt(r.alpha, n.alpha, s), Ue.transform(a));
|
|
10280
|
-
}, og = (e, t) => (r) => t(e(r)),
|
|
10305
|
+
}, og = (e, t) => (r) => t(e(r)), qn = (...e) => e.reduce(og), hn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
10281
10306
|
function ig(e, t) {
|
|
10282
|
-
return
|
|
10307
|
+
return hn.has(e) ? (r) => r <= 0 ? e : t : (r) => r >= 1 ? t : e;
|
|
10283
10308
|
}
|
|
10284
10309
|
function lg(e, t) {
|
|
10285
10310
|
return (r) => Dt(e, t, r);
|
|
10286
10311
|
}
|
|
10287
|
-
function
|
|
10288
|
-
return typeof e == "number" ? lg : typeof e == "string" ?
|
|
10312
|
+
function Xn(e) {
|
|
10313
|
+
return typeof e == "number" ? lg : typeof e == "string" ? Jn(e) ? sr : re.test(e) ? vs : ug : Array.isArray(e) ? Vi : typeof e == "object" ? re.test(e) ? vs : cg : sr;
|
|
10289
10314
|
}
|
|
10290
|
-
function
|
|
10291
|
-
const r = [...e], n = r.length, a = e.map((s, o) =>
|
|
10315
|
+
function Vi(e, t) {
|
|
10316
|
+
const r = [...e], n = r.length, a = e.map((s, o) => Xn(s)(s, t[o]));
|
|
10292
10317
|
return (s) => {
|
|
10293
10318
|
for (let o = 0; o < n; o++)
|
|
10294
10319
|
r[o] = a[o](s);
|
|
@@ -10298,7 +10323,7 @@ function Ri(e, t) {
|
|
|
10298
10323
|
function cg(e, t) {
|
|
10299
10324
|
const r = { ...e, ...t }, n = {};
|
|
10300
10325
|
for (const a in r)
|
|
10301
|
-
e[a] !== void 0 && t[a] !== void 0 && (n[a] =
|
|
10326
|
+
e[a] !== void 0 && t[a] !== void 0 && (n[a] = Xn(e[a])(e[a], t[a]));
|
|
10302
10327
|
return (a) => {
|
|
10303
10328
|
for (const s in n)
|
|
10304
10329
|
r[s] = n[s](a);
|
|
@@ -10316,12 +10341,12 @@ function dg(e, t) {
|
|
|
10316
10341
|
}
|
|
10317
10342
|
const ug = (e, t) => {
|
|
10318
10343
|
const r = pt.createTransformer(t), n = Mt(e), a = Mt(t);
|
|
10319
|
-
return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ?
|
|
10344
|
+
return n.indexes.var.length === a.indexes.var.length && n.indexes.color.length === a.indexes.color.length && n.indexes.number.length >= a.indexes.number.length ? hn.has(e) && !a.values.length || hn.has(t) && !n.values.length ? ig(e, t) : qn(Vi(dg(n, a), a.values), r) : ($t(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), sr(e, t));
|
|
10320
10345
|
};
|
|
10321
|
-
function
|
|
10322
|
-
return typeof e == "number" && typeof t == "number" && typeof r == "number" ? Dt(e, t, r) :
|
|
10346
|
+
function Pi(e, t, r) {
|
|
10347
|
+
return typeof e == "number" && typeof t == "number" && typeof r == "number" ? Dt(e, t, r) : Xn(e)(e, t);
|
|
10323
10348
|
}
|
|
10324
|
-
function
|
|
10349
|
+
function ws({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 325, bounceDamping: a = 10, bounceStiffness: s = 500, modifyTarget: o, min: i, max: l, restDelta: d = 0.5, restSpeed: u }) {
|
|
10325
10350
|
const h = e[0], f = {
|
|
10326
10351
|
done: !1,
|
|
10327
10352
|
value: h
|
|
@@ -10335,9 +10360,9 @@ function vs({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
|
|
|
10335
10360
|
};
|
|
10336
10361
|
let b, x;
|
|
10337
10362
|
const _ = (w) => {
|
|
10338
|
-
m(f.value) && (b = w, x =
|
|
10363
|
+
m(f.value) && (b = w, x = Ln({
|
|
10339
10364
|
keyframes: [f.value, g(f.value)],
|
|
10340
|
-
velocity:
|
|
10365
|
+
velocity: qo(E, w, f.value),
|
|
10341
10366
|
// TODO: This should be passing * 1000
|
|
10342
10367
|
damping: a,
|
|
10343
10368
|
stiffness: s,
|
|
@@ -10353,34 +10378,34 @@ function vs({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
|
|
|
10353
10378
|
}
|
|
10354
10379
|
};
|
|
10355
10380
|
}
|
|
10356
|
-
const hg = /* @__PURE__ */ Ft(0.42, 0, 1, 1), fg = /* @__PURE__ */ Ft(0, 0, 0.58, 1),
|
|
10381
|
+
const hg = /* @__PURE__ */ Ft(0.42, 0, 1, 1), fg = /* @__PURE__ */ Ft(0, 0, 0.58, 1), Bi = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), ks = {
|
|
10357
10382
|
linear: $e,
|
|
10358
10383
|
easeIn: hg,
|
|
10359
|
-
easeInOut:
|
|
10384
|
+
easeInOut: Bi,
|
|
10360
10385
|
easeOut: fg,
|
|
10361
|
-
circIn:
|
|
10362
|
-
circInOut:
|
|
10386
|
+
circIn: Hn,
|
|
10387
|
+
circInOut: pi,
|
|
10363
10388
|
circOut: wp,
|
|
10364
|
-
backIn:
|
|
10365
|
-
backInOut:
|
|
10366
|
-
backOut:
|
|
10367
|
-
anticipate:
|
|
10368
|
-
},
|
|
10369
|
-
if (
|
|
10389
|
+
backIn: Un,
|
|
10390
|
+
backInOut: fi,
|
|
10391
|
+
backOut: hi,
|
|
10392
|
+
anticipate: mi
|
|
10393
|
+
}, xs = (e) => {
|
|
10394
|
+
if (zn(e)) {
|
|
10370
10395
|
De(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
10371
10396
|
const [t, r, n, a] = e;
|
|
10372
10397
|
return Ft(t, r, n, a);
|
|
10373
10398
|
} else if (typeof e == "string")
|
|
10374
|
-
return De(
|
|
10399
|
+
return De(ks[e] !== void 0, `Invalid easing type '${e}'`), ks[e];
|
|
10375
10400
|
return e;
|
|
10376
10401
|
};
|
|
10377
10402
|
function mg(e, t, r) {
|
|
10378
|
-
const n = [], a = r ||
|
|
10403
|
+
const n = [], a = r || Pi, s = e.length - 1;
|
|
10379
10404
|
for (let o = 0; o < s; o++) {
|
|
10380
10405
|
let i = a(e[o], e[o + 1]);
|
|
10381
10406
|
if (t) {
|
|
10382
10407
|
const l = Array.isArray(t) ? t[o] || $e : t;
|
|
10383
|
-
i =
|
|
10408
|
+
i = qn(l, i);
|
|
10384
10409
|
}
|
|
10385
10410
|
n.push(i);
|
|
10386
10411
|
}
|
|
@@ -10410,16 +10435,16 @@ function gg(e, t) {
|
|
|
10410
10435
|
return e.map((r) => r * t);
|
|
10411
10436
|
}
|
|
10412
10437
|
function yg(e, t) {
|
|
10413
|
-
return e.map(() => t ||
|
|
10438
|
+
return e.map(() => t || Bi).splice(0, e.length - 1);
|
|
10414
10439
|
}
|
|
10415
10440
|
function Tt({ duration: e = 300, keyframes: t, times: r, ease: n = "easeInOut" }) {
|
|
10416
|
-
const a =
|
|
10441
|
+
const a = Xo(n) ? n.map(xs) : xs(n), s = {
|
|
10417
10442
|
done: !1,
|
|
10418
10443
|
value: t[0]
|
|
10419
10444
|
}, o = gg(
|
|
10420
10445
|
// Only use the provided offsets if they're the correct length
|
|
10421
10446
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
10422
|
-
r && r.length === t.length ? r :
|
|
10447
|
+
r && r.length === t.length ? r : ei(t),
|
|
10423
10448
|
e
|
|
10424
10449
|
), i = pg(o, t, {
|
|
10425
10450
|
ease: Array.isArray(a) ? a : yg(t, a)
|
|
@@ -10433,7 +10458,7 @@ const bg = (e) => {
|
|
|
10433
10458
|
const t = ({ timestamp: r }) => e(r);
|
|
10434
10459
|
return {
|
|
10435
10460
|
start: () => Ie.update(t, !0),
|
|
10436
|
-
stop: () =>
|
|
10461
|
+
stop: () => sn(t),
|
|
10437
10462
|
/**
|
|
10438
10463
|
* If we're processing this frame we can use the
|
|
10439
10464
|
* framelocked timestamp to keep things in sync.
|
|
@@ -10441,13 +10466,13 @@ const bg = (e) => {
|
|
|
10441
10466
|
now: () => nr.isProcessing ? nr.timestamp : Be.now()
|
|
10442
10467
|
};
|
|
10443
10468
|
}, vg = {
|
|
10444
|
-
decay:
|
|
10445
|
-
inertia:
|
|
10469
|
+
decay: ws,
|
|
10470
|
+
inertia: ws,
|
|
10446
10471
|
tween: Tt,
|
|
10447
10472
|
keyframes: Tt,
|
|
10448
|
-
spring:
|
|
10473
|
+
spring: Ln
|
|
10449
10474
|
}, wg = (e) => e / 100;
|
|
10450
|
-
class
|
|
10475
|
+
class Zn extends Mi {
|
|
10451
10476
|
constructor(t) {
|
|
10452
10477
|
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
10453
10478
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
@@ -10456,7 +10481,7 @@ class Xn extends Ai {
|
|
|
10456
10481
|
const { onStop: l } = this.options;
|
|
10457
10482
|
l && l();
|
|
10458
10483
|
};
|
|
10459
|
-
const { name: r, motionValue: n, element: a, keyframes: s } = this.options, o = (a == null ? void 0 : a.KeyframeResolver) ||
|
|
10484
|
+
const { name: r, motionValue: n, element: a, keyframes: s } = this.options, o = (a == null ? void 0 : a.KeyframeResolver) || Yn, i = (l, d) => this.onKeyframesResolved(l, d);
|
|
10460
10485
|
this.resolver = new o(s, i, r, n, a), this.resolver.scheduleResolve();
|
|
10461
10486
|
}
|
|
10462
10487
|
flatten() {
|
|
@@ -10465,13 +10490,13 @@ class Xn extends Ai {
|
|
|
10465
10490
|
initPlayback(t) {
|
|
10466
10491
|
const { type: r = "keyframes", repeat: n = 0, repeatDelay: a = 0, repeatType: s, velocity: o = 0 } = this.options, i = kr(r) ? r : vg[r] || Tt;
|
|
10467
10492
|
let l, d;
|
|
10468
|
-
process.env.NODE_ENV !== "production" && i !== Tt && De(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), i !== Tt && typeof t[0] != "number" && (l =
|
|
10493
|
+
process.env.NODE_ENV !== "production" && i !== Tt && De(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), i !== Tt && typeof t[0] != "number" && (l = qn(wg, Pi(t[0], t[1])), t = [0, 100]);
|
|
10469
10494
|
const u = i({ ...this.options, keyframes: t });
|
|
10470
10495
|
s === "mirror" && (d = i({
|
|
10471
10496
|
...this.options,
|
|
10472
10497
|
keyframes: [...t].reverse(),
|
|
10473
10498
|
velocity: -o
|
|
10474
|
-
})), u.calculatedDuration === null && (u.calculatedDuration =
|
|
10499
|
+
})), u.calculatedDuration === null && (u.calculatedDuration = On(u));
|
|
10475
10500
|
const { calculatedDuration: h } = u, f = h + a, m = f * (n + 1) - a;
|
|
10476
10501
|
return {
|
|
10477
10502
|
generator: u,
|
|
@@ -10582,7 +10607,7 @@ const kg = /* @__PURE__ */ new Set([
|
|
|
10582
10607
|
function xg(e, t, r, { delay: n = 0, duration: a = 300, repeat: s = 0, repeatType: o = "loop", ease: i = "easeInOut", times: l } = {}) {
|
|
10583
10608
|
const d = { [t]: r };
|
|
10584
10609
|
l && (d.offset = l);
|
|
10585
|
-
const u =
|
|
10610
|
+
const u = li(i, a);
|
|
10586
10611
|
return Array.isArray(u) && (d.easing = u), e.animate(d, {
|
|
10587
10612
|
delay: n,
|
|
10588
10613
|
duration: a,
|
|
@@ -10592,12 +10617,12 @@ function xg(e, t, r, { delay: n = 0, duration: a = 300, repeat: s = 0, repeatTyp
|
|
|
10592
10617
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
10593
10618
|
});
|
|
10594
10619
|
}
|
|
10595
|
-
const Tg = /* @__PURE__ */
|
|
10620
|
+
const Tg = /* @__PURE__ */ Bn(() => Object.hasOwnProperty.call(Element.prototype, "animate")), or = 10, _g = 2e4;
|
|
10596
10621
|
function Ig(e) {
|
|
10597
|
-
return kr(e.type) || e.type === "spring" || !
|
|
10622
|
+
return kr(e.type) || e.type === "spring" || !ii(e.ease);
|
|
10598
10623
|
}
|
|
10599
10624
|
function Eg(e, t) {
|
|
10600
|
-
const r = new
|
|
10625
|
+
const r = new Zn({
|
|
10601
10626
|
...t,
|
|
10602
10627
|
keyframes: e,
|
|
10603
10628
|
repeat: 0,
|
|
@@ -10616,30 +10641,30 @@ function Eg(e, t) {
|
|
|
10616
10641
|
ease: "linear"
|
|
10617
10642
|
};
|
|
10618
10643
|
}
|
|
10619
|
-
const
|
|
10620
|
-
anticipate:
|
|
10621
|
-
backInOut:
|
|
10622
|
-
circInOut:
|
|
10644
|
+
const Oi = {
|
|
10645
|
+
anticipate: mi,
|
|
10646
|
+
backInOut: fi,
|
|
10647
|
+
circInOut: pi
|
|
10623
10648
|
};
|
|
10624
10649
|
function Cg(e) {
|
|
10625
|
-
return e in
|
|
10650
|
+
return e in Oi;
|
|
10626
10651
|
}
|
|
10627
|
-
class
|
|
10652
|
+
class Ts extends Mi {
|
|
10628
10653
|
constructor(t) {
|
|
10629
10654
|
super(t);
|
|
10630
10655
|
const { name: r, motionValue: n, element: a, keyframes: s } = this.options;
|
|
10631
|
-
this.resolver = new
|
|
10656
|
+
this.resolver = new Ri(s, (o, i) => this.onKeyframesResolved(o, i), r, n, a), this.resolver.scheduleResolve();
|
|
10632
10657
|
}
|
|
10633
10658
|
initPlayback(t, r) {
|
|
10634
10659
|
let { duration: n = 300, times: a, ease: s, type: o, motionValue: i, name: l, startTime: d } = this.options;
|
|
10635
10660
|
if (!i.owner || !i.owner.current)
|
|
10636
10661
|
return !1;
|
|
10637
|
-
if (typeof s == "string" && ar() && Cg(s) && (s =
|
|
10662
|
+
if (typeof s == "string" && ar() && Cg(s) && (s = Oi[s]), Ig(this.options)) {
|
|
10638
10663
|
const { onComplete: h, onUpdate: f, motionValue: m, element: g, ...y } = this.options, v = Eg(t, y);
|
|
10639
10664
|
t = v.keyframes, t.length === 1 && (t[1] = t[0]), n = v.duration, a = v.times, s = v.ease, o = "keyframes";
|
|
10640
10665
|
}
|
|
10641
10666
|
const u = xg(i.owner.current, l, t, { ...this.options, duration: n, times: a, ease: s });
|
|
10642
|
-
return u.startTime = d ?? this.calcStartTime(), this.pendingTimeline ? (
|
|
10667
|
+
return u.startTime = d ?? this.calcStartTime(), this.pendingTimeline ? (cs(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
10643
10668
|
const { onComplete: h } = this.options;
|
|
10644
10669
|
i.set(xr(t, this.options, r)), h && h(), this.cancel(), this.resolveFinishedPromise();
|
|
10645
10670
|
}, {
|
|
@@ -10712,7 +10737,7 @@ class xs extends Ai {
|
|
|
10712
10737
|
if (!r)
|
|
10713
10738
|
return $e;
|
|
10714
10739
|
const { animation: n } = r;
|
|
10715
|
-
|
|
10740
|
+
cs(n, t);
|
|
10716
10741
|
}
|
|
10717
10742
|
return $e;
|
|
10718
10743
|
}
|
|
@@ -10743,7 +10768,7 @@ class xs extends Ai {
|
|
|
10743
10768
|
if (r.playState === "idle" || r.playState === "finished")
|
|
10744
10769
|
return;
|
|
10745
10770
|
if (this.time) {
|
|
10746
|
-
const { motionValue: d, onUpdate: u, onComplete: h, element: f, ...m } = this.options, g = new
|
|
10771
|
+
const { motionValue: d, onUpdate: u, onComplete: h, element: f, ...m } = this.options, g = new Zn({
|
|
10747
10772
|
...m,
|
|
10748
10773
|
keyframes: n,
|
|
10749
10774
|
duration: a,
|
|
@@ -10798,8 +10823,8 @@ const Ng = {
|
|
|
10798
10823
|
function Vg({ when: e, delay: t, delayChildren: r, staggerChildren: n, staggerDirection: a, repeat: s, repeatType: o, repeatDelay: i, from: l, elapsed: d, ...u }) {
|
|
10799
10824
|
return !!Object.keys(u).length;
|
|
10800
10825
|
}
|
|
10801
|
-
const
|
|
10802
|
-
const i =
|
|
10826
|
+
const Li = (e, t, r, n = {}, a, s) => (o) => {
|
|
10827
|
+
const i = ni(n, e) || {}, l = i.delay || n.delay || 0;
|
|
10803
10828
|
let { elapsed: d = 0 } = n;
|
|
10804
10829
|
d = d - /* @__PURE__ */ xe(l);
|
|
10805
10830
|
let u = {
|
|
@@ -10828,9 +10853,9 @@ const Bi = (e, t, r, n = {}, a, s) => (o) => {
|
|
|
10828
10853
|
if (f !== void 0)
|
|
10829
10854
|
return Ie.update(() => {
|
|
10830
10855
|
u.onUpdate(f), u.onComplete();
|
|
10831
|
-
}), new
|
|
10856
|
+
}), new Go([]);
|
|
10832
10857
|
}
|
|
10833
|
-
return !s &&
|
|
10858
|
+
return !s && Ts.supports(u) ? new Ts(u) : new Zn(u);
|
|
10834
10859
|
};
|
|
10835
10860
|
function Pg({ protectedKeys: e, needsAnimating: t }, r) {
|
|
10836
10861
|
const n = e.hasOwnProperty(r) && t[r] !== !0;
|
|
@@ -10847,7 +10872,7 @@ function Bg(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
|
|
|
10847
10872
|
continue;
|
|
10848
10873
|
const g = {
|
|
10849
10874
|
delay: r,
|
|
10850
|
-
...
|
|
10875
|
+
...ni(o || {}, h)
|
|
10851
10876
|
};
|
|
10852
10877
|
let y = !1;
|
|
10853
10878
|
if (window.MotionHandoffAnimation) {
|
|
@@ -10857,7 +10882,7 @@ function Bg(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
|
|
|
10857
10882
|
T !== null && (g.startTime = T, y = !0);
|
|
10858
10883
|
}
|
|
10859
10884
|
}
|
|
10860
|
-
up(e, h), f.start(
|
|
10885
|
+
up(e, h), f.start(Li(h, f, m, e.shouldReduceMotion && ai.has(h) ? { type: !1 } : g, e, y));
|
|
10861
10886
|
const v = f.animation;
|
|
10862
10887
|
v && d.push(v);
|
|
10863
10888
|
}
|
|
@@ -10870,10 +10895,10 @@ function Bg(e, t, { delay: r = 0, transitionOverride: n, type: a } = {}) {
|
|
|
10870
10895
|
function Og(e) {
|
|
10871
10896
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
10872
10897
|
}
|
|
10873
|
-
const
|
|
10874
|
-
x:
|
|
10875
|
-
y:
|
|
10876
|
-
}),
|
|
10898
|
+
const _s = () => ({ min: 0, max: 0 }), Qn = () => ({
|
|
10899
|
+
x: _s(),
|
|
10900
|
+
y: _s()
|
|
10901
|
+
}), Is = {
|
|
10877
10902
|
animation: [
|
|
10878
10903
|
"animate",
|
|
10879
10904
|
"variants",
|
|
@@ -10892,21 +10917,21 @@ const Ts = () => ({ min: 0, max: 0 }), Zn = () => ({
|
|
|
10892
10917
|
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
10893
10918
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
10894
10919
|
layout: ["layout", "layoutId"]
|
|
10895
|
-
},
|
|
10896
|
-
for (const e in
|
|
10897
|
-
|
|
10898
|
-
isEnabled: (t) =>
|
|
10920
|
+
}, fn = {};
|
|
10921
|
+
for (const e in Is)
|
|
10922
|
+
fn[e] = {
|
|
10923
|
+
isEnabled: (t) => Is[e].some((r) => !!t[r])
|
|
10899
10924
|
};
|
|
10900
|
-
const Lg = typeof window < "u",
|
|
10925
|
+
const Lg = typeof window < "u", mn = { current: null }, $i = { current: !1 };
|
|
10901
10926
|
function $g() {
|
|
10902
|
-
if (
|
|
10927
|
+
if ($i.current = !0, !!Lg)
|
|
10903
10928
|
if (window.matchMedia) {
|
|
10904
|
-
const e = window.matchMedia("(prefers-reduced-motion)"), t = () =>
|
|
10929
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => mn.current = e.matches;
|
|
10905
10930
|
e.addListener(t), t();
|
|
10906
10931
|
} else
|
|
10907
|
-
|
|
10932
|
+
mn.current = !1;
|
|
10908
10933
|
}
|
|
10909
|
-
const Dg = [...
|
|
10934
|
+
const Dg = [...Ai, re, pt], Fg = (e) => Dg.find(Si(e));
|
|
10910
10935
|
function zg(e) {
|
|
10911
10936
|
return e !== null && typeof e == "object" && typeof e.start == "function";
|
|
10912
10937
|
}
|
|
@@ -10922,17 +10947,17 @@ const Hg = [
|
|
|
10922
10947
|
"whileDrag",
|
|
10923
10948
|
"exit"
|
|
10924
10949
|
], jg = ["initial", ...Hg];
|
|
10925
|
-
function
|
|
10950
|
+
function Di(e) {
|
|
10926
10951
|
return zg(e.animate) || jg.some((t) => Ug(e[t]));
|
|
10927
10952
|
}
|
|
10928
10953
|
function Wg(e) {
|
|
10929
|
-
return !!(
|
|
10954
|
+
return !!(Di(e) || e.variants);
|
|
10930
10955
|
}
|
|
10931
10956
|
function Kg(e, t, r) {
|
|
10932
10957
|
for (const n in t) {
|
|
10933
10958
|
const a = t[n], s = r[n];
|
|
10934
10959
|
if (ne(a))
|
|
10935
|
-
e.addValue(n, a), process.env.NODE_ENV === "development" &&
|
|
10960
|
+
e.addValue(n, a), process.env.NODE_ENV === "development" && Dn(a.version === "12.4.7", `Attempting to mix Motion versions ${a.version} with 12.4.7 may not work as expected.`);
|
|
10936
10961
|
else if (ne(s))
|
|
10937
10962
|
e.addValue(n, At(a, { owner: e }));
|
|
10938
10963
|
else if (s !== a)
|
|
@@ -10948,7 +10973,7 @@ function Kg(e, t, r) {
|
|
|
10948
10973
|
t[n] === void 0 && e.removeValue(n);
|
|
10949
10974
|
return t;
|
|
10950
10975
|
}
|
|
10951
|
-
const
|
|
10976
|
+
const Es = [
|
|
10952
10977
|
"AnimationStart",
|
|
10953
10978
|
"AnimationComplete",
|
|
10954
10979
|
"Update",
|
|
@@ -10957,7 +10982,7 @@ const Is = [
|
|
|
10957
10982
|
"LayoutAnimationStart",
|
|
10958
10983
|
"LayoutAnimationComplete"
|
|
10959
10984
|
];
|
|
10960
|
-
class
|
|
10985
|
+
class Fi {
|
|
10961
10986
|
/**
|
|
10962
10987
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
10963
10988
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -10969,14 +10994,14 @@ class $i {
|
|
|
10969
10994
|
return {};
|
|
10970
10995
|
}
|
|
10971
10996
|
constructor({ parent: t, props: r, presenceContext: n, reducedMotionConfig: a, blockInitialAnimation: s, visualState: o }, i = {}) {
|
|
10972
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
10997
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Yn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
10973
10998
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
10974
10999
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
10975
11000
|
const m = Be.now();
|
|
10976
11001
|
this.renderScheduledAt < m && (this.renderScheduledAt = m, Ie.render(this.render, !1, !0));
|
|
10977
11002
|
};
|
|
10978
11003
|
const { latestValues: l, renderState: d, onUpdate: u } = o;
|
|
10979
|
-
this.onUpdate = u, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = r.initial ? { ...l } : {}, this.renderState = d, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = a, this.options = i, this.blockInitialAnimation = !!s, this.isControllingVariants =
|
|
11004
|
+
this.onUpdate = u, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = r.initial ? { ...l } : {}, this.renderState = d, this.parent = t, this.props = r, this.presenceContext = n, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = a, this.options = i, this.blockInitialAnimation = !!s, this.isControllingVariants = Di(r), this.isVariantNode = Wg(r), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
10980
11005
|
const { willChange: h, ...f } = this.scrapeMotionValuesFromProps(r, {}, this);
|
|
10981
11006
|
for (const m in f) {
|
|
10982
11007
|
const g = f[m];
|
|
@@ -10984,10 +11009,10 @@ class $i {
|
|
|
10984
11009
|
}
|
|
10985
11010
|
}
|
|
10986
11011
|
mount(t) {
|
|
10987
|
-
this.current = t, St.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)),
|
|
11012
|
+
this.current = t, St.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((r, n) => this.bindToMotionValue(n, r)), $i.current || $g(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : mn.current, process.env.NODE_ENV !== "production" && Dn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
10988
11013
|
}
|
|
10989
11014
|
unmount() {
|
|
10990
|
-
this.projection && this.projection.unmount(),
|
|
11015
|
+
this.projection && this.projection.unmount(), sn(this.notifyUpdate), sn(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
10991
11016
|
for (const t in this.events)
|
|
10992
11017
|
this.events[t].clear();
|
|
10993
11018
|
for (const t in this.features) {
|
|
@@ -11013,8 +11038,8 @@ class $i {
|
|
|
11013
11038
|
}
|
|
11014
11039
|
updateFeatures() {
|
|
11015
11040
|
let t = "animation";
|
|
11016
|
-
for (t in
|
|
11017
|
-
const r =
|
|
11041
|
+
for (t in fn) {
|
|
11042
|
+
const r = fn[t];
|
|
11018
11043
|
if (!r)
|
|
11019
11044
|
continue;
|
|
11020
11045
|
const { isEnabled: n, Feature: a } = r;
|
|
@@ -11033,7 +11058,7 @@ class $i {
|
|
|
11033
11058
|
* removed with a re-render to work.
|
|
11034
11059
|
*/
|
|
11035
11060
|
measureViewportBox() {
|
|
11036
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
11061
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Qn();
|
|
11037
11062
|
}
|
|
11038
11063
|
getStaticValue(t) {
|
|
11039
11064
|
return this.latestValues[t];
|
|
@@ -11047,8 +11072,8 @@ class $i {
|
|
|
11047
11072
|
*/
|
|
11048
11073
|
update(t, r) {
|
|
11049
11074
|
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = r;
|
|
11050
|
-
for (let n = 0; n <
|
|
11051
|
-
const a =
|
|
11075
|
+
for (let n = 0; n < Es.length; n++) {
|
|
11076
|
+
const a = Es[n];
|
|
11052
11077
|
this.propEventSubscriptions[a] && (this.propEventSubscriptions[a](), delete this.propEventSubscriptions[a]);
|
|
11053
11078
|
const s = "on" + a, o = t[s];
|
|
11054
11079
|
o && (this.propEventSubscriptions[a] = this.on(a, o));
|
|
@@ -11119,7 +11144,7 @@ class $i {
|
|
|
11119
11144
|
readValue(t, r) {
|
|
11120
11145
|
var n;
|
|
11121
11146
|
let a = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (n = this.getBaseTargetFromProps(this.props, t)) !== null && n !== void 0 ? n : this.readValueFromInstance(this.current, t, this.options);
|
|
11122
|
-
return a != null && (typeof a == "string" && (
|
|
11147
|
+
return a != null && (typeof a == "string" && (Ii(a) || gi(a)) ? a = parseFloat(a) : !Fg(a) && pt.test(r) && (a = xi(t, r)), this.setBaseTarget(t, ne(a) ? a.get() : a)), ne(a) ? a.get() : a;
|
|
11123
11148
|
}
|
|
11124
11149
|
/**
|
|
11125
11150
|
* Set the base target to later animate back to. This is currently
|
|
@@ -11137,7 +11162,7 @@ class $i {
|
|
|
11137
11162
|
const { initial: n } = this.props;
|
|
11138
11163
|
let a;
|
|
11139
11164
|
if (typeof n == "string" || typeof n == "object") {
|
|
11140
|
-
const o =
|
|
11165
|
+
const o = oi(this.props, n, (r = this.presenceContext) === null || r === void 0 ? void 0 : r.custom);
|
|
11141
11166
|
o && (a = o[t]);
|
|
11142
11167
|
}
|
|
11143
11168
|
if (n && a !== void 0)
|
|
@@ -11146,15 +11171,15 @@ class $i {
|
|
|
11146
11171
|
return s !== void 0 && !ne(s) ? s : this.initialValues[t] !== void 0 && a === void 0 ? void 0 : this.baseTarget[t];
|
|
11147
11172
|
}
|
|
11148
11173
|
on(t, r) {
|
|
11149
|
-
return this.events[t] || (this.events[t] = new
|
|
11174
|
+
return this.events[t] || (this.events[t] = new si()), this.events[t].add(r);
|
|
11150
11175
|
}
|
|
11151
11176
|
notify(t, ...r) {
|
|
11152
11177
|
this.events[t] && this.events[t].notify(...r);
|
|
11153
11178
|
}
|
|
11154
11179
|
}
|
|
11155
|
-
class
|
|
11180
|
+
class zi extends Fi {
|
|
11156
11181
|
constructor() {
|
|
11157
|
-
super(...arguments), this.KeyframeResolver =
|
|
11182
|
+
super(...arguments), this.KeyframeResolver = Ri;
|
|
11158
11183
|
}
|
|
11159
11184
|
sortInstanceNodePosition(t, r) {
|
|
11160
11185
|
return t.compareDocumentPosition(r) & 2 ? 1 : -1;
|
|
@@ -11173,7 +11198,7 @@ class Di extends $i {
|
|
|
11173
11198
|
}));
|
|
11174
11199
|
}
|
|
11175
11200
|
}
|
|
11176
|
-
const
|
|
11201
|
+
const Ui = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Gg = {
|
|
11177
11202
|
x: "translateX",
|
|
11178
11203
|
y: "translateY",
|
|
11179
11204
|
z: "translateZ",
|
|
@@ -11187,7 +11212,7 @@ function Jg(e, t, r) {
|
|
|
11187
11212
|
continue;
|
|
11188
11213
|
let l = !0;
|
|
11189
11214
|
if (typeof i == "number" ? l = i === (o.startsWith("scale") ? 1 : 0) : l = parseFloat(i) === 0, !l || r) {
|
|
11190
|
-
const d =
|
|
11215
|
+
const d = Ui(i, Kn[o]);
|
|
11191
11216
|
if (!l) {
|
|
11192
11217
|
a = !1;
|
|
11193
11218
|
const u = Gg[o] || o;
|
|
@@ -11198,7 +11223,7 @@ function Jg(e, t, r) {
|
|
|
11198
11223
|
}
|
|
11199
11224
|
return n = n.trim(), r ? n = r(t, a ? "" : n) : a && (n = "none"), n;
|
|
11200
11225
|
}
|
|
11201
|
-
function
|
|
11226
|
+
function Hi(e, t, r) {
|
|
11202
11227
|
const { style: n, vars: a, transformOrigin: s } = e;
|
|
11203
11228
|
let o = !1, i = !1;
|
|
11204
11229
|
for (const l in t) {
|
|
@@ -11206,11 +11231,11 @@ function zi(e, t, r) {
|
|
|
11206
11231
|
if (ft.has(l)) {
|
|
11207
11232
|
o = !0;
|
|
11208
11233
|
continue;
|
|
11209
|
-
} else if (
|
|
11234
|
+
} else if (Ci(l)) {
|
|
11210
11235
|
a[l] = d;
|
|
11211
11236
|
continue;
|
|
11212
11237
|
} else {
|
|
11213
|
-
const u =
|
|
11238
|
+
const u = Ui(d, Kn[l]);
|
|
11214
11239
|
l.startsWith("origin") ? (i = !0, s[l] = u) : n[l] = u;
|
|
11215
11240
|
}
|
|
11216
11241
|
}
|
|
@@ -11233,11 +11258,11 @@ function Zg(e, t, r = 1, n = 0, a = !0) {
|
|
|
11233
11258
|
const o = O.transform(t), i = O.transform(r);
|
|
11234
11259
|
e[s.array] = `${o} ${i}`;
|
|
11235
11260
|
}
|
|
11236
|
-
function
|
|
11261
|
+
function Cs(e, t, r) {
|
|
11237
11262
|
return typeof e == "string" ? e : O.transform(t + r * e);
|
|
11238
11263
|
}
|
|
11239
11264
|
function Qg(e, t, r) {
|
|
11240
|
-
const n =
|
|
11265
|
+
const n = Cs(t, e.x, e.width), a = Cs(r, e.y, e.height);
|
|
11241
11266
|
return `${n} ${a}`;
|
|
11242
11267
|
}
|
|
11243
11268
|
function e1(e, {
|
|
@@ -11252,7 +11277,7 @@ function e1(e, {
|
|
|
11252
11277
|
// This is object creation, which we try to avoid per-frame.
|
|
11253
11278
|
...d
|
|
11254
11279
|
}, u, h) {
|
|
11255
|
-
if (
|
|
11280
|
+
if (Hi(e, d, h), u) {
|
|
11256
11281
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
11257
11282
|
return;
|
|
11258
11283
|
}
|
|
@@ -11260,7 +11285,7 @@ function e1(e, {
|
|
|
11260
11285
|
const { attrs: f, style: m, dimensions: g } = e;
|
|
11261
11286
|
f.transform && (g && (m.transform = f.transform), delete f.transform), g && (a !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = Qg(g, a !== void 0 ? a : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (f.x = t), r !== void 0 && (f.y = r), n !== void 0 && (f.scale = n), o !== void 0 && Zg(f, o, i, l, !1);
|
|
11262
11287
|
}
|
|
11263
|
-
const
|
|
11288
|
+
const ji = /* @__PURE__ */ new Set([
|
|
11264
11289
|
"baseFrequency",
|
|
11265
11290
|
"diffuseConstant",
|
|
11266
11291
|
"kernelMatrix",
|
|
@@ -11297,21 +11322,21 @@ function r1(e, t) {
|
|
|
11297
11322
|
};
|
|
11298
11323
|
}
|
|
11299
11324
|
}
|
|
11300
|
-
function
|
|
11325
|
+
function Wi(e, { style: t, vars: r }, n, a) {
|
|
11301
11326
|
Object.assign(e.style, t, a && a.getProjectionStyles(n));
|
|
11302
11327
|
for (const s in r)
|
|
11303
11328
|
e.style.setProperty(s, r[s]);
|
|
11304
11329
|
}
|
|
11305
11330
|
function n1(e, t, r, n) {
|
|
11306
|
-
|
|
11331
|
+
Wi(e, t, void 0, n);
|
|
11307
11332
|
for (const a in t.attrs)
|
|
11308
|
-
e.setAttribute(
|
|
11333
|
+
e.setAttribute(ji.has(a) ? a : Fn(a), t.attrs[a]);
|
|
11309
11334
|
}
|
|
11310
11335
|
const a1 = {};
|
|
11311
11336
|
function s1(e, { layout: t, layoutId: r }) {
|
|
11312
11337
|
return ft.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!a1[e] || e === "opacity");
|
|
11313
11338
|
}
|
|
11314
|
-
function
|
|
11339
|
+
function Ki(e, t, r) {
|
|
11315
11340
|
var n;
|
|
11316
11341
|
const { style: a } = e, s = {};
|
|
11317
11342
|
for (const o in a)
|
|
@@ -11319,7 +11344,7 @@ function ji(e, t, r) {
|
|
|
11319
11344
|
return s;
|
|
11320
11345
|
}
|
|
11321
11346
|
function o1(e, t, r) {
|
|
11322
|
-
const n =
|
|
11347
|
+
const n = Ki(e, t, r);
|
|
11323
11348
|
for (const a in e)
|
|
11324
11349
|
if (ne(e[a]) || ne(t[a])) {
|
|
11325
11350
|
const s = ht.indexOf(a) !== -1 ? "attr" + a.charAt(0).toUpperCase() + a.substring(1) : a;
|
|
@@ -11327,9 +11352,9 @@ function o1(e, t, r) {
|
|
|
11327
11352
|
}
|
|
11328
11353
|
return n;
|
|
11329
11354
|
}
|
|
11330
|
-
class i1 extends
|
|
11355
|
+
class i1 extends zi {
|
|
11331
11356
|
constructor() {
|
|
11332
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
11357
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Qn, this.updateDimensions = () => {
|
|
11333
11358
|
this.current && !this.renderState.dimensions && r1(this.current, this.renderState);
|
|
11334
11359
|
};
|
|
11335
11360
|
}
|
|
@@ -11338,10 +11363,10 @@ class i1 extends Di {
|
|
|
11338
11363
|
}
|
|
11339
11364
|
readValueFromInstance(t, r) {
|
|
11340
11365
|
if (ft.has(r)) {
|
|
11341
|
-
const n =
|
|
11366
|
+
const n = Gn(r);
|
|
11342
11367
|
return n && n.default || 0;
|
|
11343
11368
|
}
|
|
11344
|
-
return r =
|
|
11369
|
+
return r = ji.has(r) ? r : Fn(r), t.getAttribute(r);
|
|
11345
11370
|
}
|
|
11346
11371
|
scrapeMotionValuesFromProps(t, r, n) {
|
|
11347
11372
|
return o1(t, r, n);
|
|
@@ -11382,16 +11407,16 @@ function d1(e, t) {
|
|
|
11382
11407
|
function u1(e) {
|
|
11383
11408
|
return window.getComputedStyle(e);
|
|
11384
11409
|
}
|
|
11385
|
-
class h1 extends
|
|
11410
|
+
class h1 extends zi {
|
|
11386
11411
|
constructor() {
|
|
11387
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
11412
|
+
super(...arguments), this.type = "html", this.renderInstance = Wi;
|
|
11388
11413
|
}
|
|
11389
11414
|
readValueFromInstance(t, r) {
|
|
11390
11415
|
if (ft.has(r)) {
|
|
11391
|
-
const n =
|
|
11416
|
+
const n = Gn(r);
|
|
11392
11417
|
return n && n.default || 0;
|
|
11393
11418
|
} else {
|
|
11394
|
-
const n = u1(t), a = (
|
|
11419
|
+
const n = u1(t), a = (Ci(r) ? n.getPropertyValue(r) : n[r]) || 0;
|
|
11395
11420
|
return typeof a == "string" ? a.trim() : a;
|
|
11396
11421
|
}
|
|
11397
11422
|
}
|
|
@@ -11399,16 +11424,16 @@ class h1 extends Di {
|
|
|
11399
11424
|
return d1(t, r);
|
|
11400
11425
|
}
|
|
11401
11426
|
build(t, r, n) {
|
|
11402
|
-
|
|
11427
|
+
Hi(t, r, n.transformTemplate);
|
|
11403
11428
|
}
|
|
11404
11429
|
scrapeMotionValuesFromProps(t, r, n) {
|
|
11405
|
-
return
|
|
11430
|
+
return Ki(t, r, n);
|
|
11406
11431
|
}
|
|
11407
11432
|
}
|
|
11408
11433
|
function f1(e, t) {
|
|
11409
11434
|
return e in t;
|
|
11410
11435
|
}
|
|
11411
|
-
class m1 extends
|
|
11436
|
+
class m1 extends Fi {
|
|
11412
11437
|
constructor() {
|
|
11413
11438
|
super(...arguments), this.type = "object";
|
|
11414
11439
|
}
|
|
@@ -11425,7 +11450,7 @@ class m1 extends $i {
|
|
|
11425
11450
|
delete r.output[t];
|
|
11426
11451
|
}
|
|
11427
11452
|
measureInstanceViewportBox() {
|
|
11428
|
-
return
|
|
11453
|
+
return Qn();
|
|
11429
11454
|
}
|
|
11430
11455
|
build(t, r) {
|
|
11431
11456
|
Object.assign(t.output, r);
|
|
@@ -11469,17 +11494,17 @@ function g1(e) {
|
|
|
11469
11494
|
}
|
|
11470
11495
|
function y1(e, t, r) {
|
|
11471
11496
|
const n = ne(e) ? e : At(e);
|
|
11472
|
-
return n.start(
|
|
11497
|
+
return n.start(Li("", n, t, r)), n.animation;
|
|
11473
11498
|
}
|
|
11474
11499
|
function b1(e, t) {
|
|
11475
|
-
return ne(e) || typeof e == "number" || typeof e == "string" &&
|
|
11500
|
+
return ne(e) || typeof e == "number" || typeof e == "string" && !$n(t);
|
|
11476
11501
|
}
|
|
11477
|
-
function
|
|
11502
|
+
function Gi(e, t, r, n) {
|
|
11478
11503
|
const a = [];
|
|
11479
11504
|
if (b1(e, t))
|
|
11480
|
-
a.push(y1(e,
|
|
11505
|
+
a.push(y1(e, $n(t) && t.default || t, r && (r.default || r)));
|
|
11481
11506
|
else {
|
|
11482
|
-
const s =
|
|
11507
|
+
const s = ti(e, t, n), o = s.length;
|
|
11483
11508
|
De(!!o, "No valid elements provided.");
|
|
11484
11509
|
for (let i = 0; i < o; i++) {
|
|
11485
11510
|
const l = s[i], d = l instanceof Element ? p1 : g1;
|
|
@@ -11492,8 +11517,8 @@ function Wi(e, t, r, n) {
|
|
|
11492
11517
|
}
|
|
11493
11518
|
function v1(e, t, r) {
|
|
11494
11519
|
const n = [];
|
|
11495
|
-
return Gm(e, t, r, { spring:
|
|
11496
|
-
n.push(...
|
|
11520
|
+
return Gm(e, t, r, { spring: Ln }).forEach(({ keyframes: s, transition: o }, i) => {
|
|
11521
|
+
n.push(...Gi(i, s, o));
|
|
11497
11522
|
}), n;
|
|
11498
11523
|
}
|
|
11499
11524
|
function w1(e) {
|
|
@@ -11502,7 +11527,7 @@ function w1(e) {
|
|
|
11502
11527
|
function k1(e) {
|
|
11503
11528
|
function t(r, n, a) {
|
|
11504
11529
|
let s = [];
|
|
11505
|
-
return w1(r) ? s = v1(r, n, e) : s =
|
|
11530
|
+
return w1(r) ? s = v1(r, n, e) : s = Gi(r, n, a, e), new Go(s);
|
|
11506
11531
|
}
|
|
11507
11532
|
return t;
|
|
11508
11533
|
}
|
|
@@ -11520,10 +11545,10 @@ function T1(e) {
|
|
|
11520
11545
|
return () => i.stop();
|
|
11521
11546
|
}, [n, e]), e.split($r).slice(0, t).join($r);
|
|
11522
11547
|
}
|
|
11523
|
-
const
|
|
11548
|
+
const Ns = Al(
|
|
11524
11549
|
() => import(
|
|
11525
11550
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
11526
|
-
"./ChatBubbleAssistant.
|
|
11551
|
+
"./ChatBubbleAssistant.BeefC-md.js"
|
|
11527
11552
|
).then((e) => e.ChatBubbleAssistant)
|
|
11528
11553
|
), _1 = Y.memo(
|
|
11529
11554
|
({
|
|
@@ -11535,20 +11560,20 @@ const Cs = Sl(
|
|
|
11535
11560
|
const {
|
|
11536
11561
|
state: { restoring: a }
|
|
11537
11562
|
} = W(ie), s = T1(t || "");
|
|
11538
|
-
return e ===
|
|
11539
|
-
|
|
11563
|
+
return e === vl && t ? /* @__PURE__ */ c(ma, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
|
|
11564
|
+
Ns,
|
|
11540
11565
|
{
|
|
11541
11566
|
content: a ? t : s,
|
|
11542
11567
|
annotations: r,
|
|
11543
11568
|
toolName: n
|
|
11544
11569
|
}
|
|
11545
|
-
) }) : e ===
|
|
11570
|
+
) }) : e === Ur && t ? /* @__PURE__ */ c(ma, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(Ns, { content: t, role: Ur }) }) : e === wl && t ? /* @__PURE__ */ c(Em, { content: t }) : null;
|
|
11546
11571
|
}
|
|
11547
11572
|
), I1 = () => {
|
|
11548
11573
|
const {
|
|
11549
11574
|
state: { loading: e }
|
|
11550
11575
|
} = W(ie), { messages: t } = dt();
|
|
11551
|
-
return e && (!t || t.length === 0) ? /* @__PURE__ */ c(
|
|
11576
|
+
return e && (!t || t.length === 0) ? /* @__PURE__ */ c(rn, { children: /* @__PURE__ */ c(Za, { type: "dots" }) }) : t && t.length > 0 ? /* @__PURE__ */ C("div", { className: "space-y-6 mt-2 @container", children: [
|
|
11552
11577
|
t && t.length > 0 && t.map((r, n) => {
|
|
11553
11578
|
let a = null;
|
|
11554
11579
|
const { role: s, content: o, messageId: i, annotations: l, toolInvocations: d } = r, u = i ? `${i}-${s}` : `${n}-${s}`;
|
|
@@ -11563,20 +11588,20 @@ const Cs = Sl(
|
|
|
11563
11588
|
u
|
|
11564
11589
|
) : null;
|
|
11565
11590
|
}),
|
|
11566
|
-
e && /* @__PURE__ */ c(
|
|
11591
|
+
e && /* @__PURE__ */ c(rn, { children: /* @__PURE__ */ c(Za, { type: "dots" }) })
|
|
11567
11592
|
] }) : null;
|
|
11568
11593
|
}, E1 = () => {
|
|
11569
11594
|
const { isAuthenticated: e } = de(), { ref: t, inViewport: r } = hc(), {
|
|
11570
11595
|
state: { footerPosition: n, footerHeight: a, footerOffset: s }
|
|
11571
|
-
} = W(
|
|
11596
|
+
} = W(_n), o = M(0), i = kl({
|
|
11572
11597
|
isAuthenticated: e,
|
|
11573
11598
|
extraClass: "rounded-b-md relative"
|
|
11574
11599
|
});
|
|
11575
11600
|
return L(() => {
|
|
11576
|
-
o.current = n === kt ? a + s +
|
|
11601
|
+
o.current = n === kt ? a + s + Bs + xl : 0;
|
|
11577
11602
|
}, [n, a, s]), /* @__PURE__ */ C(ae, { children: [
|
|
11578
11603
|
/* @__PURE__ */ C("div", { className: i, children: [
|
|
11579
|
-
/* @__PURE__ */ c(
|
|
11604
|
+
/* @__PURE__ */ c(Tl, {}),
|
|
11580
11605
|
/* @__PURE__ */ c(I1, {}),
|
|
11581
11606
|
/* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" })
|
|
11582
11607
|
] }),
|
|
@@ -11589,15 +11614,15 @@ const Cs = Sl(
|
|
|
11589
11614
|
)
|
|
11590
11615
|
] });
|
|
11591
11616
|
};
|
|
11592
|
-
function
|
|
11617
|
+
function Yi({
|
|
11593
11618
|
isComponent: e = !1,
|
|
11594
11619
|
headerHeight: t = 0
|
|
11595
11620
|
}) {
|
|
11596
|
-
const { user: r, getAccessToken: n } = de(), [a, s] = $(`${
|
|
11597
|
-
key: nt +
|
|
11621
|
+
const { user: r, getAccessToken: n } = de(), [a, s] = $(`${ha}px`), [o, i] = qs(), [l, d] = $(je()), [u, h] = $([]), [f] = at({
|
|
11622
|
+
key: nt + Ps,
|
|
11598
11623
|
initialValue: ""
|
|
11599
11624
|
}), [m] = at({
|
|
11600
|
-
key: nt +
|
|
11625
|
+
key: nt + Vs,
|
|
11601
11626
|
initialValue: we.ASC
|
|
11602
11627
|
}), [g, y] = bt(ad, {
|
|
11603
11628
|
footerPosition: "FOOTER_TOP",
|
|
@@ -11621,7 +11646,7 @@ function Ki({
|
|
|
11621
11646
|
lastStreamingTimestamp: 0,
|
|
11622
11647
|
lastResetTimestamp: 0
|
|
11623
11648
|
});
|
|
11624
|
-
|
|
11649
|
+
_l({
|
|
11625
11650
|
keys: [
|
|
11626
11651
|
r == null ? void 0 : r.username,
|
|
11627
11652
|
v.searchString,
|
|
@@ -11642,7 +11667,7 @@ function Ki({
|
|
|
11642
11667
|
}, 500);
|
|
11643
11668
|
}), L(() => {
|
|
11644
11669
|
x && x.provider && b({
|
|
11645
|
-
type:
|
|
11670
|
+
type: vn,
|
|
11646
11671
|
payload: {
|
|
11647
11672
|
provider: x.provider
|
|
11648
11673
|
}
|
|
@@ -11651,19 +11676,19 @@ function Ki({
|
|
|
11651
11676
|
if (g.footerPosition === "FOOTER_BOTTOM") {
|
|
11652
11677
|
const _ = `calc(${i.height}px + 20px)`;
|
|
11653
11678
|
s(
|
|
11654
|
-
`calc(100svh - ${t}px - ${_} - ${g.footerHeight}px - ${g.footerOffset}px - ${
|
|
11679
|
+
`calc(100svh - ${t}px - ${_} - ${g.footerHeight}px - ${g.footerOffset}px - ${Bs}px)`
|
|
11655
11680
|
);
|
|
11656
11681
|
} else
|
|
11657
|
-
s(`${
|
|
11682
|
+
s(`${ha}px`);
|
|
11658
11683
|
}, [g, i, t]), /* @__PURE__ */ c(
|
|
11659
|
-
|
|
11684
|
+
xn.Provider,
|
|
11660
11685
|
{
|
|
11661
11686
|
value: {
|
|
11662
11687
|
state: v,
|
|
11663
11688
|
dispatch: k
|
|
11664
11689
|
},
|
|
11665
|
-
children: /* @__PURE__ */ c(
|
|
11666
|
-
|
|
11690
|
+
children: /* @__PURE__ */ c(_n.Provider, { value: { state: g, dispatch: y }, children: /* @__PURE__ */ c(
|
|
11691
|
+
Tn.Provider,
|
|
11667
11692
|
{
|
|
11668
11693
|
value: { state: T, dispatch: E },
|
|
11669
11694
|
children: /* @__PURE__ */ c(
|
|
@@ -11680,7 +11705,7 @@ function Ki({
|
|
|
11680
11705
|
{
|
|
11681
11706
|
value: {
|
|
11682
11707
|
id: l,
|
|
11683
|
-
api: `${
|
|
11708
|
+
api: `${Il}/api/generate`,
|
|
11684
11709
|
initialMessages: u,
|
|
11685
11710
|
experimental_throttle: 300,
|
|
11686
11711
|
sendExtraMessageFields: !1,
|
|
@@ -11695,23 +11720,23 @@ function Ki({
|
|
|
11695
11720
|
},
|
|
11696
11721
|
children: [
|
|
11697
11722
|
/* @__PURE__ */ c(
|
|
11698
|
-
|
|
11723
|
+
ic,
|
|
11699
11724
|
{
|
|
11700
11725
|
ref: o,
|
|
11701
11726
|
noColors: !0,
|
|
11702
11727
|
noMargin: !0,
|
|
11703
11728
|
noPadding: !0,
|
|
11704
11729
|
noBorder: !0,
|
|
11705
|
-
className:
|
|
11730
|
+
className: fa({
|
|
11706
11731
|
extraClass: "mt-5"
|
|
11707
11732
|
}),
|
|
11708
11733
|
children: /* @__PURE__ */ c(Sf, { isComponent: e })
|
|
11709
11734
|
}
|
|
11710
11735
|
),
|
|
11711
11736
|
/* @__PURE__ */ c(
|
|
11712
|
-
|
|
11737
|
+
El,
|
|
11713
11738
|
{
|
|
11714
|
-
className:
|
|
11739
|
+
className: fa({
|
|
11715
11740
|
extraClass: "transition-all ease-in-out duration-500"
|
|
11716
11741
|
}),
|
|
11717
11742
|
noMargin: !0,
|
|
@@ -11733,12 +11758,12 @@ function Ki({
|
|
|
11733
11758
|
}
|
|
11734
11759
|
);
|
|
11735
11760
|
}
|
|
11736
|
-
|
|
11737
|
-
const V1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default:
|
|
11761
|
+
Yi.displayName = "App";
|
|
11762
|
+
const V1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Yi }, Symbol.toStringTag, { value: "Module" }));
|
|
11738
11763
|
export {
|
|
11739
11764
|
V1 as App,
|
|
11740
11765
|
ie as ChatContext,
|
|
11741
11766
|
at as E,
|
|
11742
|
-
|
|
11743
|
-
|
|
11767
|
+
rn as Re,
|
|
11768
|
+
Ks as getDefaultExportFromCjs
|
|
11744
11769
|
};
|