@gentiq/ui 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MessageEditor-HB-YJP7R.js → MessageEditor-PAl3Jjcu.js} +1 -1
- package/dist/{VoiceInput-B3e7emmb.js → VoiceInput-DX0ZCnIA.js} +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.es.js +749 -715
- package/dist/internal.d.ts +7 -6
- package/dist/internal.es.js +2 -2
- package/dist/{shared-BNCHeyvj.js → shared-MFlvTavE.js} +797 -786
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as
|
|
3
|
-
import { withDefaults as
|
|
2
|
+
import { jsx as n, jsxs as d, Fragment as R } from "react/jsx-runtime";
|
|
3
|
+
import { withDefaults as H, useServerConfig as De, createOptionsStore as pn, useOptionsStore as fn, useGentiqOptions as Te, useGentiqTranslation as k, References as et, useMessage as M, useGentiqLanguage as $, useToolApproval as gn, useFileUrl as hn, useChatReferencesActions as bn, useThreadView as Y, useThreadScope as xt, Thread as Ne, localizeError as vn, Message as X, ActionBar as J, getLocalizedErrorMessage as yt, Composer as G, useComposer as Pe, useGentiqUser as xn, useComposerVoice as wt, useGentiqStatus as yn, useGentiqFeature as wn, useComposerRoot as Nn, useGentiqEntitlement as kn } from "@gentiq/react";
|
|
4
4
|
import * as ke from "react";
|
|
5
|
-
import { useContext as le, useMemo as E, createContext as te, useSyncExternalStore as
|
|
6
|
-
import { QuoteIcon as Re, ChevronDownIcon as ne, BrainIcon as
|
|
7
|
-
import
|
|
8
|
-
import { defaultRemarkPlugins as
|
|
9
|
-
import { cjk as
|
|
10
|
-
import { getTextDirection as
|
|
11
|
-
import { getToolName as
|
|
5
|
+
import { useContext as le, useMemo as E, createContext as te, useSyncExternalStore as Cn, useEffect as T, useState as C, useRef as P, useLayoutEffect as _n, memo as fe, useCallback as ee, Component as Sn, Suspense as Ce, lazy as Me, Children as zn, forwardRef as In } from "react";
|
|
6
|
+
import { QuoteIcon as Re, ChevronDownIcon as ne, BrainIcon as Dn, XIcon as V, WrenchIcon as Tn, ImagePlusIcon as Pn, CodeIcon as Mn, DownloadIcon as de, GlobeIcon as Rn, XCircleIcon as Nt, CopyIcon as kt, BanIcon as An, CheckCircleIcon as En, ClockIcon as tt, ShieldQuestionIcon as On, CircleIcon as qn, FileIcon as Ct, ListChecksIcon as jn, ArrowUpIcon as _t, BookIcon as $n, ArrowDownIcon as Ln, CheckIcon as ce, RefreshCcwIcon as Fn, ThumbsUpIcon as Bn, ThumbsDownIcon as Un, PencilIcon as Hn, SquareIcon as Vn, AlertCircleIcon as Qn, RotateCwIcon as Wn, CameraOffIcon as Gn, Loader2Icon as St, RotateCcwIcon as Kn, SwitchCameraIcon as Jn, PlusIcon as Yn, FileTextIcon as Xn, ImagesIcon as Zn, CameraIcon as es, MicIcon as ts, Wrench as zt, RefreshCw as ns, ChevronUpIcon as ss } from "lucide-react";
|
|
7
|
+
import rs from "rehype-sanitize";
|
|
8
|
+
import { defaultRemarkPlugins as os, Streamdown as as, defaultRehypePlugins as Ae } from "streamdown";
|
|
9
|
+
import { cjk as is } from "@streamdown/cjk";
|
|
10
|
+
import { getTextDirection as L, resolveMessageId as ls, writeStored as cs, readStored as ds, isGentiqError as It, HIDDEN_PART_TYPES as us, messageText as ms, textOrKey as nt, createDateFormatter as ps } from "@gentiq/core";
|
|
11
|
+
import { getToolName as Dt, isToolUIPart as Tt } from "ai";
|
|
12
12
|
import * as Ee from "@radix-ui/react-collapsible";
|
|
13
13
|
import { toast as K } from "sonner";
|
|
14
|
-
import { Slot as
|
|
14
|
+
import { Slot as Pt } from "@radix-ui/react-slot";
|
|
15
15
|
import { cva as Oe } from "class-variance-authority";
|
|
16
16
|
import * as Z from "@radix-ui/react-tooltip";
|
|
17
|
-
import { flushSync as
|
|
17
|
+
import { flushSync as fs } from "react-dom";
|
|
18
18
|
import * as _ from "@radix-ui/react-dialog";
|
|
19
19
|
import * as ie from "@radix-ui/react-dropdown-menu";
|
|
20
20
|
import * as ae from "@radix-ui/react-scroll-area";
|
|
@@ -22,38 +22,38 @@ import * as me from "@radix-ui/react-hover-card";
|
|
|
22
22
|
import { useControllableState as st } from "@radix-ui/react-use-controllable-state";
|
|
23
23
|
import * as q from "@radix-ui/react-select";
|
|
24
24
|
import * as rt from "@radix-ui/react-checkbox";
|
|
25
|
-
import { clsx as
|
|
26
|
-
import { twMerge as
|
|
25
|
+
import { clsx as gs } from "clsx";
|
|
26
|
+
import { twMerge as hs } from "tailwind-merge";
|
|
27
27
|
function p(...e) {
|
|
28
|
-
return
|
|
28
|
+
return hs(gs(e));
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ha(e, t) {
|
|
31
31
|
return {
|
|
32
|
-
history:
|
|
33
|
-
welcome:
|
|
34
|
-
threadActions:
|
|
32
|
+
history: U(e.history, t.history),
|
|
33
|
+
welcome: U(e.welcome, t.welcome),
|
|
34
|
+
threadActions: U(e.threadActions, t.threadActions),
|
|
35
35
|
composer: e.composer && t.composer ? {
|
|
36
|
-
...
|
|
37
|
-
attachments:
|
|
38
|
-
references:
|
|
39
|
-
voice:
|
|
36
|
+
...H(e.composer, t.composer),
|
|
37
|
+
attachments: U(e.composer.attachments, t.composer.attachments),
|
|
38
|
+
references: U(e.composer.references, t.composer.references),
|
|
39
|
+
voice: U(e.composer.voice, t.composer.voice)
|
|
40
40
|
} : t.composer ?? e.composer,
|
|
41
41
|
disclaimer: t.disclaimer ?? e.disclaimer,
|
|
42
42
|
settings: e.settings && t.settings ? {
|
|
43
43
|
sections: {
|
|
44
|
-
profile:
|
|
45
|
-
account:
|
|
44
|
+
profile: U(e.settings.sections?.profile, t.settings.sections?.profile),
|
|
45
|
+
account: U(e.settings.sections?.account, t.settings.sections?.account)
|
|
46
46
|
}
|
|
47
47
|
} : t.settings ?? e.settings
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return e && t ?
|
|
50
|
+
function U(e, t) {
|
|
51
|
+
return e && t ? H(e, t) : t ?? e;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function bs(e, t) {
|
|
54
54
|
const { history: s, welcome: r, threadActions: o, composer: i, disclaimer: a, settings: l } = e;
|
|
55
55
|
return {
|
|
56
|
-
history:
|
|
56
|
+
history: H(
|
|
57
57
|
{ enabled: !0, showDelete: !0, showRename: !0, showShare: !0, showPin: !0 },
|
|
58
58
|
s,
|
|
59
59
|
{
|
|
@@ -64,28 +64,29 @@ function vs(e, t) {
|
|
|
64
64
|
showPin: t?.history_show_pin
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
welcome:
|
|
67
|
+
welcome: H({ icon: null }, r, {
|
|
68
68
|
greeting: typeof r?.greeting == "function" ? r.greeting : t?.welcome_greeting || r?.greeting,
|
|
69
69
|
subtitle: t?.welcome_subtitle || r?.subtitle
|
|
70
70
|
}),
|
|
71
|
-
threadActions:
|
|
71
|
+
threadActions: H(
|
|
72
72
|
{ feedback: !0, retry: !0, edit: !0 },
|
|
73
73
|
o,
|
|
74
74
|
{
|
|
75
75
|
feedback: t?.thread_actions_feedback,
|
|
76
|
-
retry: t?.thread_actions_retry
|
|
76
|
+
retry: t?.thread_actions_retry,
|
|
77
|
+
edit: t?.thread_actions_edit
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
80
|
composer: {
|
|
80
|
-
...
|
|
81
|
-
attachments:
|
|
81
|
+
...H({ maxLength: 1e4, collapseLines: 8 }, i),
|
|
82
|
+
attachments: H(
|
|
82
83
|
{ enabled: !0 },
|
|
83
84
|
i?.attachments,
|
|
84
85
|
{
|
|
85
86
|
enabled: t?.composer_attachments
|
|
86
87
|
}
|
|
87
88
|
),
|
|
88
|
-
references:
|
|
89
|
+
references: H(
|
|
89
90
|
{ enabled: !0, maxItems: 5, maxExcerptLength: 500 },
|
|
90
91
|
i?.references
|
|
91
92
|
),
|
|
@@ -99,12 +100,17 @@ function vs(e, t) {
|
|
|
99
100
|
disclaimer: t?.disclaimer || a,
|
|
100
101
|
settings: {
|
|
101
102
|
sections: {
|
|
102
|
-
|
|
103
|
+
general: be(
|
|
104
|
+
l?.sections?.general,
|
|
105
|
+
t?.settings_general_mode,
|
|
106
|
+
t?.settings_general_fields
|
|
107
|
+
),
|
|
108
|
+
profile: be(
|
|
103
109
|
l?.sections?.profile,
|
|
104
110
|
t?.settings_profile_mode,
|
|
105
111
|
t?.settings_profile_fields
|
|
106
112
|
),
|
|
107
|
-
account:
|
|
113
|
+
account: be(
|
|
108
114
|
l?.sections?.account,
|
|
109
115
|
t?.settings_account_mode,
|
|
110
116
|
t?.settings_account_fields
|
|
@@ -115,7 +121,7 @@ function vs(e, t) {
|
|
|
115
121
|
configured: e
|
|
116
122
|
};
|
|
117
123
|
}
|
|
118
|
-
function
|
|
124
|
+
function be(e, t, s) {
|
|
119
125
|
return {
|
|
120
126
|
...e,
|
|
121
127
|
mode: t || e?.mode,
|
|
@@ -123,10 +129,10 @@ function ot(e, t, s) {
|
|
|
123
129
|
fields: { ...e?.fields, ...s }
|
|
124
130
|
};
|
|
125
131
|
}
|
|
126
|
-
const
|
|
132
|
+
const vs = te(null);
|
|
127
133
|
function se(e) {
|
|
128
|
-
const t = le(
|
|
129
|
-
return
|
|
134
|
+
const t = le(vs), s = De(), r = E(() => pn(bs({}, s)), [s]);
|
|
135
|
+
return fn(t ?? r, e);
|
|
130
136
|
}
|
|
131
137
|
const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
132
138
|
"div",
|
|
@@ -159,51 +165,51 @@ const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
|
159
165
|
...r,
|
|
160
166
|
children: e
|
|
161
167
|
}
|
|
162
|
-
),
|
|
168
|
+
), xs = /(```[\s\S]*?(?:```|$)|~~~[\s\S]*?(?:~~~|$)|`+[^`\n]*`+)|\\\[([\s\S]+?)\\\]|\\\(([\s\S]+?)\\\)|\$\$([^$]+?)\$\$/g, ys = /\n[ \t]*\n/, ws = (e, t) => {
|
|
163
169
|
let s = 0;
|
|
164
170
|
for (; t - s > 0 && e[t - s - 1] === "\\"; ) s += 1;
|
|
165
171
|
return s % 2 === 0;
|
|
166
|
-
},
|
|
167
|
-
`${
|
|
172
|
+
}, Ns = /^[ \t]*\n[\s\S]*\n[ \t>]*$/, ks = /(?:^|[^\\])%/, ot = String.raw`(?:(?=\p{Script=Arabic})[\p{L}\p{M}])`, Cs = new RegExp(
|
|
173
|
+
`${ot}(?:[\\p{Script=Arabic}\\p{M}\\s\\u200c]*${ot})?`,
|
|
168
174
|
"gu"
|
|
169
|
-
),
|
|
170
|
-
`) && !
|
|
175
|
+
), _s = (e) => (e.includes(`
|
|
176
|
+
`) && !Ns.test(e) && !ks.test(e) ? e.replace(/[ \t]*\n[ \t]*/g, " ") : e).replace(Cs, (s) => `\\text{${s}}`), Ss = (e) => {
|
|
171
177
|
if (!e.includes("\\") && !e.includes("$$")) return e;
|
|
172
178
|
const t = (s, r, o, i, a, l) => {
|
|
173
179
|
if (r !== void 0) return s;
|
|
174
|
-
const
|
|
175
|
-
return !
|
|
180
|
+
const c = o ?? i ?? a ?? "";
|
|
181
|
+
return !c.trim() || ys.test(c) || !ws(e, l) ? s : `$$${_s(c)}$$`;
|
|
176
182
|
};
|
|
177
|
-
return e.replace(
|
|
178
|
-
},
|
|
183
|
+
return e.replace(xs, t);
|
|
184
|
+
}, Mt = (e) => e.type === "element", Rt = (e) => {
|
|
179
185
|
const t = e.properties?.className;
|
|
180
186
|
return Array.isArray(t) ? t.filter((s) => typeof s == "string") : typeof t == "string" ? t.split(/\s+/) : [];
|
|
181
|
-
},
|
|
182
|
-
if (!
|
|
183
|
-
const t = e.children.filter((r) => !
|
|
184
|
-
return t.length === 1 &&
|
|
185
|
-
},
|
|
186
|
-
e.properties = { ...e.properties, className: [...
|
|
187
|
-
},
|
|
187
|
+
}, zs = (e) => Mt(e) && e.tagName === "code" && Rt(e).includes("language-math"), Is = (e) => e.type === "text" && !e.value.trim(), Ds = (e) => {
|
|
188
|
+
if (!Mt(e) || e.tagName !== "p") return null;
|
|
189
|
+
const t = e.children.filter((r) => !Is(r)), [s] = t;
|
|
190
|
+
return t.length === 1 && zs(s) ? s : null;
|
|
191
|
+
}, Ts = (e) => {
|
|
192
|
+
e.properties = { ...e.properties, className: [...Rt(e), "math-display"] };
|
|
193
|
+
}, At = (e) => {
|
|
188
194
|
for (const t of e.children ?? []) {
|
|
189
|
-
const s =
|
|
195
|
+
const s = Ds(t);
|
|
190
196
|
if (s) {
|
|
191
|
-
|
|
197
|
+
Ts(s);
|
|
192
198
|
continue;
|
|
193
199
|
}
|
|
194
|
-
|
|
200
|
+
At(t);
|
|
195
201
|
}
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
},
|
|
202
|
+
}, Ps = () => (e) => {
|
|
203
|
+
At(e);
|
|
204
|
+
}, Ms = /* @__PURE__ */ new Set(["a", "code", "pre", "math", "svg", "style", "script", "textarea"]), Rs = (e) => e.type === "element", As = /* @__PURE__ */ new Set(["math", "math-inline", "math-display"]), Es = (e) => {
|
|
199
205
|
const t = e.properties?.className;
|
|
200
206
|
return (Array.isArray(t) ? t : typeof t == "string" ? [t] : []).some(
|
|
201
|
-
(r) => typeof r == "string" && (r.startsWith("katex") ||
|
|
207
|
+
(r) => typeof r == "string" && (r.startsWith("katex") || As.has(r))
|
|
202
208
|
);
|
|
203
|
-
},
|
|
209
|
+
}, Os = /(\s+)/, qs = (e) => {
|
|
204
210
|
if (!e.trim()) return null;
|
|
205
211
|
const t = [];
|
|
206
|
-
for (const s of e.split(
|
|
212
|
+
for (const s of e.split(Os))
|
|
207
213
|
if (s) {
|
|
208
214
|
if (!s.trim()) {
|
|
209
215
|
t.push({ type: "text", value: s });
|
|
@@ -217,14 +223,14 @@ const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
|
217
223
|
});
|
|
218
224
|
}
|
|
219
225
|
return t;
|
|
220
|
-
},
|
|
226
|
+
}, Et = (e) => {
|
|
221
227
|
const t = e.children;
|
|
222
228
|
if (!t?.length) return;
|
|
223
229
|
const s = [];
|
|
224
230
|
let r = !1;
|
|
225
231
|
for (const o of t) {
|
|
226
232
|
if (o.type === "text") {
|
|
227
|
-
const i =
|
|
233
|
+
const i = qs(o.value);
|
|
228
234
|
if (i) {
|
|
229
235
|
s.push(...i), r = !0;
|
|
230
236
|
continue;
|
|
@@ -232,16 +238,16 @@ const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
|
232
238
|
s.push(o);
|
|
233
239
|
continue;
|
|
234
240
|
}
|
|
235
|
-
if (
|
|
241
|
+
if (Rs(o) && (Ms.has(o.tagName) || Es(o))) {
|
|
236
242
|
s.push(o);
|
|
237
243
|
continue;
|
|
238
244
|
}
|
|
239
|
-
|
|
245
|
+
Et(o), s.push(o);
|
|
240
246
|
}
|
|
241
247
|
r && (e.children = s);
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
},
|
|
248
|
+
}, js = () => (e) => {
|
|
249
|
+
Et(e);
|
|
250
|
+
}, Ot = (e) => e.type === "element", $s = /* @__PURE__ */ new Set([
|
|
245
251
|
"p",
|
|
246
252
|
"h1",
|
|
247
253
|
"h2",
|
|
@@ -257,10 +263,10 @@ const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
|
257
263
|
"th",
|
|
258
264
|
"figcaption",
|
|
259
265
|
"summary"
|
|
260
|
-
]), Ls = /* @__PURE__ */ new Set(["pre", "code", "kbd", "samp", "var"]),
|
|
266
|
+
]), Ls = /* @__PURE__ */ new Set(["pre", "code", "kbd", "samp", "var"]), Fs = /* @__PURE__ */ new Set(["math", "svg", "style", "script", "textarea"]), at = (e) => e.type === "text" ? !!e.value.trim() : e.type === "element", qt = (e) => Ot(e) && e.tagName === "br", Bs = (e, t) => {
|
|
261
267
|
const s = [[]], r = (o) => s[s.length - 1].push(o);
|
|
262
268
|
for (const o of e) {
|
|
263
|
-
if (
|
|
269
|
+
if (qt(o)) {
|
|
264
270
|
s.push([]);
|
|
265
271
|
continue;
|
|
266
272
|
}
|
|
@@ -275,82 +281,82 @@ const qe = ({ className: e, from: t, ...s }) => /* @__PURE__ */ n(
|
|
|
275
281
|
r(o);
|
|
276
282
|
}
|
|
277
283
|
return s;
|
|
278
|
-
},
|
|
284
|
+
}, Us = (e) => {
|
|
279
285
|
const [t] = e;
|
|
280
286
|
if (t?.type !== "text") return e;
|
|
281
287
|
const s = t.value.replace(/^[^\S\n]*\n[^\S\n]*/, "");
|
|
282
288
|
return s === t.value ? e : s ? [{ type: "text", value: s }, ...e.slice(1)] : e.slice(1);
|
|
283
|
-
},
|
|
289
|
+
}, Hs = (e) => ({
|
|
284
290
|
type: "element",
|
|
285
291
|
tagName: "span",
|
|
286
292
|
properties: { className: ["gentiq-line"], dir: "auto" },
|
|
287
293
|
children: e
|
|
288
|
-
}),
|
|
294
|
+
}), it = () => ({
|
|
289
295
|
type: "element",
|
|
290
296
|
tagName: "br",
|
|
291
297
|
properties: {},
|
|
292
298
|
children: []
|
|
293
|
-
}),
|
|
294
|
-
const [s, ...r] =
|
|
299
|
+
}), Vs = (e, t) => {
|
|
300
|
+
const [s, ...r] = Bs(e.children, t).map(Us);
|
|
295
301
|
e.children = [
|
|
296
302
|
// An empty run is a blank line the author asked for; it keeps its break
|
|
297
303
|
// rather than collapsing into a zero-height box.
|
|
298
|
-
...s.some(
|
|
299
|
-
...r.map((o) => o.some(
|
|
304
|
+
...s.some(at) ? s : [it()],
|
|
305
|
+
...r.map((o) => o.some(at) ? Hs(o) : it())
|
|
300
306
|
];
|
|
301
|
-
},
|
|
302
|
-
(s) =>
|
|
307
|
+
}, Qs = (e, t) => e.some(
|
|
308
|
+
(s) => qt(s) || t && s.type === "text" && s.value.includes(`
|
|
303
309
|
`)
|
|
304
|
-
),
|
|
310
|
+
), jt = (e, t) => {
|
|
305
311
|
for (const s of e.children ?? [])
|
|
306
|
-
if (
|
|
312
|
+
if (Ot(s) && !Fs.has(s.tagName)) {
|
|
307
313
|
if (Ls.has(s.tagName)) {
|
|
308
314
|
s.properties = { ...s.properties, dir: "ltr" };
|
|
309
315
|
continue;
|
|
310
316
|
}
|
|
311
|
-
|
|
317
|
+
jt(s, t), $s.has(s.tagName) && (Qs(s.children, t) && Vs(s, t), s.properties = { ...s.properties, dir: "auto" });
|
|
312
318
|
}
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
},
|
|
316
|
-
let _e =
|
|
317
|
-
const Se = /* @__PURE__ */ new Set(),
|
|
319
|
+
}, Ws = (e = {}) => (t) => {
|
|
320
|
+
jt(t, e.preserveNewlines ?? !1);
|
|
321
|
+
}, Gs = { cjk: is };
|
|
322
|
+
let _e = Gs;
|
|
323
|
+
const Se = /* @__PURE__ */ new Set(), Ks = (e) => (Se.add(e), () => {
|
|
318
324
|
Se.delete(e);
|
|
319
|
-
}),
|
|
320
|
-
if (
|
|
325
|
+
}), lt = () => _e, ve = /* @__PURE__ */ new Map(), xe = (e) => {
|
|
326
|
+
if (ve.has(e)) return;
|
|
321
327
|
const t = e === "code" ? import("@streamdown/code").then(({ code: s }) => ({ code: s })) : e === "math" ? import("@streamdown/math").then(({ math: s }) => ({ math: s })) : import("@streamdown/mermaid").then(({ mermaid: s }) => ({ mermaid: s }));
|
|
322
|
-
|
|
328
|
+
ve.set(
|
|
323
329
|
e,
|
|
324
330
|
t.then((s) => {
|
|
325
331
|
_e = { ..._e, ...s };
|
|
326
332
|
for (const r of Se) r();
|
|
327
333
|
}).catch(() => {
|
|
328
|
-
|
|
334
|
+
ve.delete(e);
|
|
329
335
|
})
|
|
330
336
|
);
|
|
331
|
-
},
|
|
332
|
-
let
|
|
333
|
-
function
|
|
334
|
-
const t =
|
|
337
|
+
}, Js = "```", Ys = /```[ \t]*mermaid\b/;
|
|
338
|
+
let Xs = null;
|
|
339
|
+
function Zs(e) {
|
|
340
|
+
const t = Cn(Ks, lt, lt), s = e.includes(Js), r = s && Ys.test(e), o = e.includes("$$");
|
|
335
341
|
return T(() => {
|
|
336
|
-
s &&
|
|
342
|
+
s && xe("code");
|
|
337
343
|
}, [s]), T(() => {
|
|
338
|
-
r &&
|
|
344
|
+
r && xe("mermaid");
|
|
339
345
|
}, [r]), T(() => {
|
|
340
|
-
o && (
|
|
346
|
+
o && (xe("math"), Xs ??= import("katex/dist/katex.min.css").catch(() => {
|
|
341
347
|
}));
|
|
342
348
|
}, [o]), t;
|
|
343
349
|
}
|
|
344
|
-
const
|
|
345
|
-
const t =
|
|
350
|
+
const er = { linkMode: "text-only" }, tr = { enabled: !1 }, $e = (e) => {
|
|
351
|
+
const t = Ae[e];
|
|
346
352
|
return Array.isArray(t) ? t[1] ?? {} : {};
|
|
347
|
-
},
|
|
348
|
-
const s =
|
|
353
|
+
}, nr = (e, t) => {
|
|
354
|
+
const s = Ae[e];
|
|
349
355
|
return [Array.isArray(s) ? s[0] : s, { ...$e(e), ...t }];
|
|
350
|
-
},
|
|
356
|
+
}, sr = (e) => {
|
|
351
357
|
const t = $e("sanitize");
|
|
352
358
|
return [
|
|
353
|
-
|
|
359
|
+
rs,
|
|
354
360
|
{
|
|
355
361
|
...t,
|
|
356
362
|
protocols: {
|
|
@@ -359,15 +365,15 @@ const tr = { linkMode: "text-only" }, nr = { enabled: !1 }, $e = (e) => {
|
|
|
359
365
|
}
|
|
360
366
|
}
|
|
361
367
|
];
|
|
362
|
-
},
|
|
368
|
+
}, rr = (e, t, s) => {
|
|
363
369
|
const r = e.length ? {
|
|
364
370
|
// Sanitizing is what drops the href: its schema is an allow-list of
|
|
365
371
|
// schemes, and an unknown one leaves the link href-less.
|
|
366
|
-
sanitize:
|
|
372
|
+
sanitize: sr(e),
|
|
367
373
|
// Hardening runs a second, independent scheme check. Streamdown happens
|
|
368
374
|
// to configure it wide open today, but riding on that would mean a
|
|
369
375
|
// stricter upstream default silently blocking these links again.
|
|
370
|
-
harden:
|
|
376
|
+
harden: nr("harden", {
|
|
371
377
|
allowedProtocols: [
|
|
372
378
|
...$e("harden").allowedProtocols ?? [],
|
|
373
379
|
...e.map((o) => `${o}:`)
|
|
@@ -375,22 +381,22 @@ const tr = { linkMode: "text-only" }, nr = { enabled: !1 }, $e = (e) => {
|
|
|
375
381
|
})
|
|
376
382
|
} : {};
|
|
377
383
|
return [
|
|
378
|
-
...Object.entries(
|
|
384
|
+
...Object.entries(Ae).map(([o, i]) => r[o] ?? i),
|
|
379
385
|
// After sanitizing, which is what strips the marker it has to put back, and
|
|
380
386
|
// before KaTeX, which Streamdown appends after everything supplied here.
|
|
381
|
-
|
|
387
|
+
Ps,
|
|
382
388
|
// After sanitizing and hardening, which both strip a `dir` they were not
|
|
383
389
|
// configured to expect, and before the word spans, which are not blocks and
|
|
384
390
|
// would only be walked for nothing.
|
|
385
|
-
[
|
|
391
|
+
[Ws, { preserveNewlines: s }],
|
|
386
392
|
// Dead last, after sanitizing and hardening: the spans it adds are ours,
|
|
387
393
|
// not the model's, and neither pass should have an opinion about them.
|
|
388
|
-
...t ? [
|
|
394
|
+
...t ? [js] : []
|
|
389
395
|
];
|
|
390
|
-
},
|
|
396
|
+
}, ct = /* @__PURE__ */ new Map(), or = (e, t, s) => {
|
|
391
397
|
const r = `${t ? "w" : "-"}|${s ? "n" : "-"}|${e.join(",")}`;
|
|
392
|
-
let o =
|
|
393
|
-
return o || (o =
|
|
398
|
+
let o = ct.get(r);
|
|
399
|
+
return o || (o = rr(e, t, s), ct.set(r, o)), o;
|
|
394
400
|
}, ge = ({
|
|
395
401
|
className: e,
|
|
396
402
|
children: t,
|
|
@@ -400,13 +406,13 @@ const tr = { linkMode: "text-only" }, nr = { enabled: !1 }, $e = (e) => {
|
|
|
400
406
|
wordFade: i = !1,
|
|
401
407
|
mode: a = "static",
|
|
402
408
|
preserveNewlines: l = !1,
|
|
403
|
-
...
|
|
409
|
+
...c
|
|
404
410
|
}) => {
|
|
405
|
-
const u = typeof t == "string" ? t : "", m = E(() =>
|
|
406
|
-
() => s?.length ? [...Object.values(
|
|
411
|
+
const u = typeof t == "string" ? t : "", m = E(() => Ss(u), [u]), h = Zs(m), b = E(
|
|
412
|
+
() => s?.length ? [...Object.values(os), ...s] : void 0,
|
|
407
413
|
[s]
|
|
408
414
|
), g = o?.join(",") ?? "", f = E(() => {
|
|
409
|
-
const w =
|
|
415
|
+
const w = or(
|
|
410
416
|
g ? g.split(",") : [],
|
|
411
417
|
i,
|
|
412
418
|
l
|
|
@@ -417,14 +423,14 @@ const tr = { linkMode: "text-only" }, nr = { enabled: !1 }, $e = (e) => {
|
|
|
417
423
|
// `Streamdown` is itself memoized on `children`, so a settled message never
|
|
418
424
|
// re-renders this subtree — no outer `memo` needed here.
|
|
419
425
|
/* @__PURE__ */ n(
|
|
420
|
-
|
|
426
|
+
as,
|
|
421
427
|
{
|
|
422
428
|
className: p("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0 code-bg ", e),
|
|
423
429
|
mode: a,
|
|
424
430
|
plugins: h,
|
|
425
|
-
remend:
|
|
426
|
-
linkSafety:
|
|
427
|
-
...
|
|
431
|
+
remend: er,
|
|
432
|
+
linkSafety: tr,
|
|
433
|
+
...c,
|
|
428
434
|
remarkPlugins: b,
|
|
429
435
|
rehypePlugins: f,
|
|
430
436
|
children: typeof t == "string" ? m : t
|
|
@@ -433,21 +439,21 @@ const tr = { linkMode: "text-only" }, nr = { enabled: !1 }, $e = (e) => {
|
|
|
433
439
|
);
|
|
434
440
|
};
|
|
435
441
|
ge.displayName = "Response";
|
|
436
|
-
const
|
|
442
|
+
const $t = 40, Lt = 900, ar = 220, ir = 120, lr = 250, cr = 1e3, dt = 48, dr = (e, t) => {
|
|
437
443
|
if (t >= e.length) return e.length;
|
|
438
|
-
const s = Math.max(0, t -
|
|
444
|
+
const s = Math.max(0, t - dt);
|
|
439
445
|
for (let r = t; r > s; r--)
|
|
440
446
|
if (/\s/.test(e[r])) return r;
|
|
441
|
-
return t <
|
|
442
|
-
},
|
|
443
|
-
function
|
|
447
|
+
return t < dt ? 0 : t;
|
|
448
|
+
}, ur = 120, mr = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
449
|
+
function Ft(e, t, s = {}) {
|
|
444
450
|
const {
|
|
445
|
-
minCharsPerSecond: r =
|
|
451
|
+
minCharsPerSecond: r = $t,
|
|
446
452
|
maxCharsPerSecond: o = Lt,
|
|
447
453
|
enabled: i = !0
|
|
448
|
-
} = s, [a] = C(
|
|
449
|
-
() => t && e.length <=
|
|
450
|
-
), m = P(
|
|
454
|
+
} = s, [a] = C(mr), l = i && !a, [c, u] = C(
|
|
455
|
+
() => t && e.length <= ur ? Math.min(e.length, 1) : e.length
|
|
456
|
+
), m = P(c), h = P(0);
|
|
451
457
|
T(() => {
|
|
452
458
|
if (!l) {
|
|
453
459
|
m.current = e.length;
|
|
@@ -463,15 +469,15 @@ function Bt(e, t, s = {}) {
|
|
|
463
469
|
}
|
|
464
470
|
let g = 0, f = performance.now();
|
|
465
471
|
const w = t ? 0 : Math.min(
|
|
466
|
-
Math.max((e.length - m.current) /
|
|
472
|
+
Math.max((e.length - m.current) / ir * 1e3, r),
|
|
467
473
|
o
|
|
468
|
-
), x = Math.floor(o *
|
|
474
|
+
), x = Math.floor(o * cr / 1e3), y = (v) => {
|
|
469
475
|
g = 0;
|
|
470
|
-
const I = Math.min(v - f,
|
|
476
|
+
const I = Math.min(v - f, lr);
|
|
471
477
|
f = v, e.length - m.current > x && (m.current = e.length - x, h.current = 0);
|
|
472
478
|
const N = e.length - m.current;
|
|
473
479
|
if (N <= 0) return;
|
|
474
|
-
const S = (t ? Math.min(Math.max(N /
|
|
480
|
+
const S = (t ? Math.min(Math.max(N / ar * 1e3, r), o) : w) * I / 1e3 + h.current, O = Math.floor(S);
|
|
475
481
|
if (h.current = S - O, O > 0) {
|
|
476
482
|
const D = Math.min(e.length, m.current + O);
|
|
477
483
|
if (m.current = D, u(D), D >= e.length) return;
|
|
@@ -482,28 +488,28 @@ function Bt(e, t, s = {}) {
|
|
|
482
488
|
g && cancelAnimationFrame(g);
|
|
483
489
|
};
|
|
484
490
|
}, [e, t, l, r, o]);
|
|
485
|
-
const b = l &&
|
|
486
|
-
return [b ? e.slice(0,
|
|
491
|
+
const b = l && c < e.length;
|
|
492
|
+
return [b ? e.slice(0, dr(e, c)) : e, b];
|
|
487
493
|
}
|
|
488
|
-
function
|
|
494
|
+
function Bt() {
|
|
489
495
|
const t = Te((s) => s.app)?.smoothStreaming;
|
|
490
496
|
return E(() => {
|
|
491
497
|
const s = typeof t == "object" ? t : {};
|
|
492
498
|
return {
|
|
493
499
|
enabled: t !== !1,
|
|
494
|
-
minCharsPerSecond: s.minCharsPerSecond ??
|
|
500
|
+
minCharsPerSecond: s.minCharsPerSecond ?? $t,
|
|
495
501
|
maxCharsPerSecond: s.maxCharsPerSecond ?? Lt
|
|
496
502
|
};
|
|
497
503
|
}, [t]);
|
|
498
504
|
}
|
|
499
|
-
function
|
|
505
|
+
function pr({
|
|
500
506
|
showAction: e = !0,
|
|
501
507
|
className: t,
|
|
502
508
|
children: s,
|
|
503
509
|
...r
|
|
504
510
|
}) {
|
|
505
511
|
const { t: o } = k(["chat"]);
|
|
506
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ d(
|
|
507
513
|
et.Source,
|
|
508
514
|
{
|
|
509
515
|
className: `group/reference relative rounded-md transition-colors ${t ?? ""}`,
|
|
@@ -529,7 +535,7 @@ function ze({
|
|
|
529
535
|
streaming: s,
|
|
530
536
|
reference: r
|
|
531
537
|
}) {
|
|
532
|
-
const { textComponents: o, remarkPlugins: i, rehypePlugins: a, linkProtocols: l } =
|
|
538
|
+
const { textComponents: o, remarkPlugins: i, rehypePlugins: a, linkProtocols: l } = B(), c = se((x) => x.composer), u = Bt(), m = L(e), h = s && t === "assistant", [b] = Ft(e, h, u), g = P(!1);
|
|
533
539
|
h && (g.current = !0);
|
|
534
540
|
const f = g.current ? "streaming" : "static", w = t === "user" ? /* @__PURE__ */ n("div", { className: "whitespace-pre-wrap break-words", children: b.split(`
|
|
535
541
|
`).map((x, y) => /* @__PURE__ */ n("div", { dir: "auto", children: x || /* @__PURE__ */ n("br", {}) }, y)) }) : /* @__PURE__ */ n(
|
|
@@ -544,18 +550,18 @@ function ze({
|
|
|
544
550
|
children: b
|
|
545
551
|
}
|
|
546
552
|
);
|
|
547
|
-
return /* @__PURE__ */ n("div", { className: "group py-2 first:pt-4 animate-in-bubble", children: /* @__PURE__ */ n(qe, { from: t, children: /* @__PURE__ */ n(je, { dir: m, children: /* @__PURE__ */ n(
|
|
553
|
+
return /* @__PURE__ */ n("div", { className: "group py-2 first:pt-4 animate-in-bubble", children: /* @__PURE__ */ n(qe, { from: t, children: /* @__PURE__ */ n(je, { dir: m, children: /* @__PURE__ */ n(fr, { lines: t === "user" ? c?.collapseLines ?? 0 : 0, children: /* @__PURE__ */ n(pr, { showAction: !1, reference: r, children: w }) }) }) }) });
|
|
548
554
|
}
|
|
549
|
-
function
|
|
555
|
+
function fr({ lines: e, children: t }) {
|
|
550
556
|
const { t: s } = k(["chat"]), r = P(null), [o, i] = C(!1), [a, l] = C(!1);
|
|
551
|
-
return
|
|
557
|
+
return _n(() => {
|
|
552
558
|
const u = r.current;
|
|
553
559
|
if (!u || !e || a) return;
|
|
554
560
|
const m = u.firstElementChild, h = () => i((m?.offsetHeight ?? u.scrollHeight) > u.clientHeight + 1);
|
|
555
561
|
h();
|
|
556
562
|
const b = typeof ResizeObserver > "u" ? null : new ResizeObserver(h);
|
|
557
563
|
return b?.observe(u), m && b?.observe(m), () => b?.disconnect();
|
|
558
|
-
}, [e, a]), e ? /* @__PURE__ */
|
|
564
|
+
}, [e, a]), e ? /* @__PURE__ */ d(R, { children: [
|
|
559
565
|
/* @__PURE__ */ n(
|
|
560
566
|
"div",
|
|
561
567
|
{
|
|
@@ -590,12 +596,12 @@ function gr({ lines: e, children: t }) {
|
|
|
590
596
|
)
|
|
591
597
|
] }) : /* @__PURE__ */ n(R, { children: t });
|
|
592
598
|
}
|
|
593
|
-
function
|
|
599
|
+
function gr({ part: e, index: t }) {
|
|
594
600
|
const s = e.text;
|
|
595
|
-
return s.trim() ? /* @__PURE__ */ n(
|
|
601
|
+
return s.trim() ? /* @__PURE__ */ n(hr, { text: s, index: t, segment: "text" }) : null;
|
|
596
602
|
}
|
|
597
|
-
function
|
|
598
|
-
const { t: r } = k("chat"), o =
|
|
603
|
+
function hr({ text: e, index: t, segment: s }) {
|
|
604
|
+
const { t: r } = k("chat"), o = M((l) => l.message.id), i = M((l) => l.message.role), a = M((l) => l.isStreaming);
|
|
599
605
|
return /* @__PURE__ */ n(
|
|
600
606
|
ze,
|
|
601
607
|
{
|
|
@@ -614,21 +620,21 @@ function br({ text: e, index: t, segment: s }) {
|
|
|
614
620
|
}
|
|
615
621
|
);
|
|
616
622
|
}
|
|
617
|
-
function
|
|
623
|
+
function Le({ ...e }) {
|
|
618
624
|
return /* @__PURE__ */ n(Ee.Root, { "data-slot": "collapsible", ...e });
|
|
619
625
|
}
|
|
620
|
-
function
|
|
626
|
+
function Fe({ ...e }) {
|
|
621
627
|
return /* @__PURE__ */ n(Ee.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...e });
|
|
622
628
|
}
|
|
623
629
|
function Be({ ...e }) {
|
|
624
630
|
return /* @__PURE__ */ n(Ee.CollapsibleContent, { "data-slot": "collapsible-content", ...e });
|
|
625
631
|
}
|
|
626
|
-
const
|
|
627
|
-
const e = le(
|
|
632
|
+
const Ut = te(null), br = () => {
|
|
633
|
+
const e = le(Ut);
|
|
628
634
|
if (!e)
|
|
629
635
|
throw new Error("Reasoning components must be used within Reasoning");
|
|
630
636
|
return e;
|
|
631
|
-
},
|
|
637
|
+
}, vr = 1e3, xr = 1e3, Ht = fe(
|
|
632
638
|
({
|
|
633
639
|
className: e,
|
|
634
640
|
isStreaming: t = !1,
|
|
@@ -640,7 +646,7 @@ const Ht = te(null), vr = () => {
|
|
|
640
646
|
children: a,
|
|
641
647
|
...l
|
|
642
648
|
}) => {
|
|
643
|
-
const [
|
|
649
|
+
const [c, u] = st({
|
|
644
650
|
prop: s,
|
|
645
651
|
defaultProp: r,
|
|
646
652
|
onChange: o
|
|
@@ -649,46 +655,46 @@ const Ht = te(null), vr = () => {
|
|
|
649
655
|
defaultProp: 0
|
|
650
656
|
}), [b, g] = C(!1), [f, w] = C(null);
|
|
651
657
|
T(() => {
|
|
652
|
-
t ? f === null && w(Date.now()) : f !== null && (h(Math.ceil((Date.now() - f) /
|
|
658
|
+
t ? f === null && w(Date.now()) : f !== null && (h(Math.ceil((Date.now() - f) / xr)), w(null));
|
|
653
659
|
}, [t, f, h]), T(() => {
|
|
654
|
-
if (r && !t &&
|
|
660
|
+
if (r && !t && c && !b) {
|
|
655
661
|
const v = setTimeout(() => {
|
|
656
662
|
u(!1), g(!0);
|
|
657
|
-
},
|
|
663
|
+
}, vr);
|
|
658
664
|
return () => {
|
|
659
665
|
clearTimeout(v);
|
|
660
666
|
};
|
|
661
667
|
}
|
|
662
|
-
}, [t,
|
|
668
|
+
}, [t, c, r, u, b]);
|
|
663
669
|
const x = ee(
|
|
664
670
|
(v) => {
|
|
665
671
|
u(v);
|
|
666
672
|
},
|
|
667
673
|
[u]
|
|
668
674
|
), y = E(
|
|
669
|
-
() => ({ isStreaming: t, isOpen:
|
|
670
|
-
[t,
|
|
675
|
+
() => ({ isStreaming: t, isOpen: c, setIsOpen: u, duration: m }),
|
|
676
|
+
[t, c, u, m]
|
|
671
677
|
);
|
|
672
|
-
return /* @__PURE__ */ n(
|
|
673
|
-
|
|
678
|
+
return /* @__PURE__ */ n(Ut.Provider, { value: y, children: /* @__PURE__ */ n(
|
|
679
|
+
Le,
|
|
674
680
|
{
|
|
675
681
|
className: p("not-prose mb-4", e),
|
|
676
682
|
onOpenChange: x,
|
|
677
|
-
open:
|
|
683
|
+
open: c,
|
|
678
684
|
...l,
|
|
679
685
|
children: a
|
|
680
686
|
}
|
|
681
687
|
) });
|
|
682
688
|
}
|
|
683
|
-
),
|
|
684
|
-
const { isStreaming: r, isOpen: o, duration: i } =
|
|
689
|
+
), Vt = fe(({ className: e, children: t, ...s }) => {
|
|
690
|
+
const { isStreaming: r, isOpen: o, duration: i } = br(), { t: a } = k(["chat"]);
|
|
685
691
|
return /* @__PURE__ */ n(
|
|
686
|
-
|
|
692
|
+
Fe,
|
|
687
693
|
{
|
|
688
694
|
className: p("flex items-center gap-2 text-muted-foreground text-sm", e),
|
|
689
695
|
...s,
|
|
690
|
-
children: t ?? /* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */ n(
|
|
696
|
+
children: t ?? /* @__PURE__ */ d(R, { children: [
|
|
697
|
+
/* @__PURE__ */ n(Dn, { className: "size-4" }),
|
|
692
698
|
r ? /* @__PURE__ */ n("p", { children: a("thinking") }) : i > 0 ? /* @__PURE__ */ n("p", { children: a("thought_for", { count: i }) }) : /* @__PURE__ */ n("p", { children: a("thought") }),
|
|
693
699
|
/* @__PURE__ */ n(
|
|
694
700
|
ne,
|
|
@@ -702,7 +708,7 @@ const Ht = te(null), vr = () => {
|
|
|
702
708
|
] })
|
|
703
709
|
}
|
|
704
710
|
);
|
|
705
|
-
}),
|
|
711
|
+
}), Qt = fe(
|
|
706
712
|
({ className: e, children: t, wordFade: s, mode: r, ...o }) => /* @__PURE__ */ n(
|
|
707
713
|
Be,
|
|
708
714
|
{
|
|
@@ -716,19 +722,19 @@ const Ht = te(null), vr = () => {
|
|
|
716
722
|
}
|
|
717
723
|
)
|
|
718
724
|
);
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
function
|
|
723
|
-
const t =
|
|
725
|
+
Ht.displayName = "Reasoning";
|
|
726
|
+
Vt.displayName = "ReasoningTrigger";
|
|
727
|
+
Qt.displayName = "ReasoningContent";
|
|
728
|
+
function yr({ part: e }) {
|
|
729
|
+
const t = M((u) => u.isStreaming), { dir: s } = $(), r = Bt(), o = L(e.text), i = e.state === "streaming" && t, [a] = Ft(e.text, i, r), l = P(!1);
|
|
724
730
|
i && (l.current = !0);
|
|
725
|
-
const
|
|
726
|
-
return e.text.trim() ? /* @__PURE__ */
|
|
727
|
-
/* @__PURE__ */ n(
|
|
728
|
-
/* @__PURE__ */ n(
|
|
731
|
+
const c = l.current ? "streaming" : "static";
|
|
732
|
+
return e.text.trim() ? /* @__PURE__ */ d(Ht, { className: "w-full animate-in-bubble", dir: s, isStreaming: i, children: [
|
|
733
|
+
/* @__PURE__ */ n(Vt, {}),
|
|
734
|
+
/* @__PURE__ */ n(Qt, { dir: o, wordFade: l.current, mode: c, children: a })
|
|
729
735
|
] }) : null;
|
|
730
736
|
}
|
|
731
|
-
function
|
|
737
|
+
function Wt(e) {
|
|
732
738
|
const [t, s] = C(!1), r = P(void 0);
|
|
733
739
|
T(() => () => clearTimeout(r.current), []);
|
|
734
740
|
const o = ee(() => {
|
|
@@ -736,7 +742,7 @@ function Gt(e) {
|
|
|
736
742
|
}, [e]);
|
|
737
743
|
return [t, o];
|
|
738
744
|
}
|
|
739
|
-
const
|
|
745
|
+
const wr = Oe(
|
|
740
746
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
741
747
|
{
|
|
742
748
|
variants: {
|
|
@@ -752,15 +758,15 @@ const Nr = Oe(
|
|
|
752
758
|
}
|
|
753
759
|
}
|
|
754
760
|
);
|
|
755
|
-
function
|
|
761
|
+
function Nr({
|
|
756
762
|
className: e,
|
|
757
763
|
variant: t,
|
|
758
764
|
asChild: s = !1,
|
|
759
765
|
...r
|
|
760
766
|
}) {
|
|
761
|
-
return /* @__PURE__ */ n(s ?
|
|
767
|
+
return /* @__PURE__ */ n(s ? Pt : "span", { "data-slot": "badge", className: p(wr({ variant: t }), e), ...r });
|
|
762
768
|
}
|
|
763
|
-
const
|
|
769
|
+
const kr = Oe(
|
|
764
770
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
765
771
|
{
|
|
766
772
|
variants: {
|
|
@@ -785,33 +791,33 @@ const Cr = Oe(
|
|
|
785
791
|
}
|
|
786
792
|
}
|
|
787
793
|
);
|
|
788
|
-
function
|
|
794
|
+
function F({
|
|
789
795
|
className: e,
|
|
790
796
|
variant: t,
|
|
791
797
|
size: s,
|
|
792
798
|
asChild: r = !1,
|
|
793
799
|
...o
|
|
794
800
|
}) {
|
|
795
|
-
return /* @__PURE__ */ n(r ?
|
|
801
|
+
return /* @__PURE__ */ n(r ? Pt : "button", { "data-slot": "button", className: p(kr({ variant: t, size: s, className: e })), ...o });
|
|
796
802
|
}
|
|
797
|
-
const
|
|
798
|
-
function
|
|
799
|
-
return le(
|
|
803
|
+
const Cr = te(null);
|
|
804
|
+
function Q() {
|
|
805
|
+
return le(Cr);
|
|
800
806
|
}
|
|
801
|
-
function
|
|
807
|
+
function _r({ ...e }) {
|
|
802
808
|
return /* @__PURE__ */ n(_.Root, { "data-slot": "dialog", ...e });
|
|
803
809
|
}
|
|
804
|
-
function
|
|
810
|
+
function Sr({ ...e }) {
|
|
805
811
|
return /* @__PURE__ */ n(_.Trigger, { "data-slot": "dialog-trigger", ...e });
|
|
806
812
|
}
|
|
807
|
-
function
|
|
808
|
-
const t =
|
|
813
|
+
function zr({ ...e }) {
|
|
814
|
+
const t = Q();
|
|
809
815
|
return /* @__PURE__ */ n(_.Portal, { "data-slot": "dialog-portal", container: t, ...e });
|
|
810
816
|
}
|
|
811
|
-
function
|
|
817
|
+
function Va({ ...e }) {
|
|
812
818
|
return /* @__PURE__ */ n(_.Close, { "data-slot": "dialog-close", ...e });
|
|
813
819
|
}
|
|
814
|
-
function
|
|
820
|
+
function Ir({ className: e, ...t }) {
|
|
815
821
|
return /* @__PURE__ */ n(
|
|
816
822
|
_.Overlay,
|
|
817
823
|
{
|
|
@@ -824,15 +830,15 @@ function Dr({ className: e, ...t }) {
|
|
|
824
830
|
}
|
|
825
831
|
);
|
|
826
832
|
}
|
|
827
|
-
function
|
|
833
|
+
function Dr({
|
|
828
834
|
className: e,
|
|
829
835
|
children: t,
|
|
830
836
|
showCloseButton: s = !0,
|
|
831
837
|
...r
|
|
832
838
|
}) {
|
|
833
|
-
return /* @__PURE__ */
|
|
834
|
-
/* @__PURE__ */ n(
|
|
835
|
-
/* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ d(zr, { "data-slot": "dialog-portal", children: [
|
|
840
|
+
/* @__PURE__ */ n(Ir, {}),
|
|
841
|
+
/* @__PURE__ */ d(
|
|
836
842
|
_.Content,
|
|
837
843
|
{
|
|
838
844
|
"data-slot": "dialog-content",
|
|
@@ -843,14 +849,14 @@ function Tr({
|
|
|
843
849
|
...r,
|
|
844
850
|
children: [
|
|
845
851
|
t,
|
|
846
|
-
s && /* @__PURE__ */
|
|
852
|
+
s && /* @__PURE__ */ d(
|
|
847
853
|
_.Close,
|
|
848
854
|
{
|
|
849
855
|
"data-slot": "dialog-close",
|
|
850
856
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 end-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
851
857
|
children: [
|
|
852
|
-
/* @__PURE__ */ n(
|
|
853
|
-
/* @__PURE__ */ n(
|
|
858
|
+
/* @__PURE__ */ n(V, {}),
|
|
859
|
+
/* @__PURE__ */ n(Mr, {})
|
|
854
860
|
]
|
|
855
861
|
}
|
|
856
862
|
)
|
|
@@ -859,7 +865,7 @@ function Tr({
|
|
|
859
865
|
)
|
|
860
866
|
] });
|
|
861
867
|
}
|
|
862
|
-
function
|
|
868
|
+
function Tr({ className: e, ...t }) {
|
|
863
869
|
return /* @__PURE__ */ n(
|
|
864
870
|
"div",
|
|
865
871
|
{
|
|
@@ -869,7 +875,7 @@ function Pr({ className: e, ...t }) {
|
|
|
869
875
|
}
|
|
870
876
|
);
|
|
871
877
|
}
|
|
872
|
-
function
|
|
878
|
+
function Qa({ className: e, ...t }) {
|
|
873
879
|
return /* @__PURE__ */ n(
|
|
874
880
|
"div",
|
|
875
881
|
{
|
|
@@ -879,7 +885,7 @@ function Ga({ className: e, ...t }) {
|
|
|
879
885
|
}
|
|
880
886
|
);
|
|
881
887
|
}
|
|
882
|
-
function
|
|
888
|
+
function Pr({ className: e, ...t }) {
|
|
883
889
|
return /* @__PURE__ */ n(
|
|
884
890
|
_.Title,
|
|
885
891
|
{
|
|
@@ -889,7 +895,7 @@ function Ar({ className: e, ...t }) {
|
|
|
889
895
|
}
|
|
890
896
|
);
|
|
891
897
|
}
|
|
892
|
-
function
|
|
898
|
+
function Wa({ className: e, ...t }) {
|
|
893
899
|
return /* @__PURE__ */ n(
|
|
894
900
|
_.Description,
|
|
895
901
|
{
|
|
@@ -899,11 +905,11 @@ function Ka({ className: e, ...t }) {
|
|
|
899
905
|
}
|
|
900
906
|
);
|
|
901
907
|
}
|
|
902
|
-
function
|
|
908
|
+
function Mr() {
|
|
903
909
|
const { t: e } = k("common");
|
|
904
910
|
return /* @__PURE__ */ n("span", { className: "sr-only", children: e("close") });
|
|
905
911
|
}
|
|
906
|
-
const
|
|
912
|
+
const Rr = te({
|
|
907
913
|
code: ""
|
|
908
914
|
}), Ie = fe(function({
|
|
909
915
|
code: t,
|
|
@@ -911,7 +917,7 @@ const Mr = te({
|
|
|
911
917
|
children: r,
|
|
912
918
|
...o
|
|
913
919
|
}) {
|
|
914
|
-
return /* @__PURE__ */ n(
|
|
920
|
+
return /* @__PURE__ */ n(Rr.Provider, { value: { code: t }, children: /* @__PURE__ */ d(
|
|
915
921
|
"div",
|
|
916
922
|
{
|
|
917
923
|
className: p(
|
|
@@ -927,15 +933,15 @@ const Mr = te({
|
|
|
927
933
|
}
|
|
928
934
|
) });
|
|
929
935
|
});
|
|
930
|
-
function
|
|
936
|
+
function Ar(e, t = "size-4") {
|
|
931
937
|
return {
|
|
932
|
-
web_search: /* @__PURE__ */ n(
|
|
938
|
+
web_search: /* @__PURE__ */ n(Rn, { className: t }),
|
|
933
939
|
web_fetch: /* @__PURE__ */ n(de, { className: t }),
|
|
934
|
-
code_execution: /* @__PURE__ */ n(
|
|
935
|
-
image_generation: /* @__PURE__ */ n(
|
|
936
|
-
}[e] ?? /* @__PURE__ */ n(
|
|
940
|
+
code_execution: /* @__PURE__ */ n(Mn, { className: t }),
|
|
941
|
+
image_generation: /* @__PURE__ */ n(Pn, { className: t })
|
|
942
|
+
}[e] ?? /* @__PURE__ */ n(Tn, { className: t });
|
|
937
943
|
}
|
|
938
|
-
const
|
|
944
|
+
const Er = ({ className: e, ...t }) => /* @__PURE__ */ n(Le, { className: p("not-prose mb-4 w-full rounded-md border", e), ...t }), Or = ({ status: e }) => {
|
|
939
945
|
const { t } = k(["tools_ui"]), s = {
|
|
940
946
|
"input-streaming": t("pending"),
|
|
941
947
|
"input-available": t("running"),
|
|
@@ -945,36 +951,36 @@ const Or = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
945
951
|
"output-error": t("error"),
|
|
946
952
|
"output-denied": t("denied")
|
|
947
953
|
};
|
|
948
|
-
return /* @__PURE__ */
|
|
954
|
+
return /* @__PURE__ */ d(Nr, { className: "gap-1.5 rounded-full text-xs", variant: "secondary", children: [
|
|
949
955
|
{
|
|
950
|
-
"input-streaming": /* @__PURE__ */ n(
|
|
956
|
+
"input-streaming": /* @__PURE__ */ n(qn, { className: "size-4" }),
|
|
951
957
|
"input-available": /* @__PURE__ */ n(tt, { className: "size-4 animate-pulse" }),
|
|
952
|
-
"approval-requested": /* @__PURE__ */ n(
|
|
958
|
+
"approval-requested": /* @__PURE__ */ n(On, { className: "size-4 text-warning" }),
|
|
953
959
|
"approval-responded": /* @__PURE__ */ n(tt, { className: "size-4 animate-pulse" }),
|
|
954
|
-
"output-available": /* @__PURE__ */ n(
|
|
955
|
-
"output-error": /* @__PURE__ */ n(
|
|
956
|
-
"output-denied": /* @__PURE__ */ n(
|
|
960
|
+
"output-available": /* @__PURE__ */ n(En, { className: "size-4 text-success" }),
|
|
961
|
+
"output-error": /* @__PURE__ */ n(Nt, { className: "size-4 text-destructive" }),
|
|
962
|
+
"output-denied": /* @__PURE__ */ n(An, { className: "size-4 text-destructive" })
|
|
957
963
|
}[e],
|
|
958
964
|
s[e]
|
|
959
965
|
] });
|
|
960
|
-
},
|
|
961
|
-
const i = r || (t.startsWith("tool-") ? t.slice(5) : t), a =
|
|
962
|
-
return /* @__PURE__ */
|
|
963
|
-
|
|
966
|
+
}, qr = ({ className: e, type: t, state: s, toolName: r, ...o }) => {
|
|
967
|
+
const i = r || (t.startsWith("tool-") ? t.slice(5) : t), a = Ar(i, "size-4 text-muted-foreground");
|
|
968
|
+
return /* @__PURE__ */ d(
|
|
969
|
+
Fe,
|
|
964
970
|
{
|
|
965
971
|
className: p("flex w-full items-center justify-between gap-4 p-3", e),
|
|
966
972
|
...o,
|
|
967
973
|
children: [
|
|
968
|
-
/* @__PURE__ */
|
|
974
|
+
/* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
|
|
969
975
|
a,
|
|
970
976
|
/* @__PURE__ */ n("span", { className: "font-medium text-sm", children: i }),
|
|
971
|
-
/* @__PURE__ */ n(
|
|
977
|
+
/* @__PURE__ */ n(Or, { status: s })
|
|
972
978
|
] }),
|
|
973
979
|
/* @__PURE__ */ n(ne, { className: "size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180" })
|
|
974
980
|
]
|
|
975
981
|
}
|
|
976
982
|
);
|
|
977
|
-
},
|
|
983
|
+
}, jr = ({ className: e, ...t }) => /* @__PURE__ */ n(
|
|
978
984
|
Be,
|
|
979
985
|
{
|
|
980
986
|
className: p(
|
|
@@ -983,7 +989,7 @@ const Or = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
983
989
|
),
|
|
984
990
|
...t
|
|
985
991
|
}
|
|
986
|
-
),
|
|
992
|
+
), Gt = (e) => {
|
|
987
993
|
if (typeof e == "string")
|
|
988
994
|
try {
|
|
989
995
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
@@ -991,14 +997,14 @@ const Or = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
991
997
|
return e;
|
|
992
998
|
}
|
|
993
999
|
return JSON.stringify(e, null, 2);
|
|
994
|
-
},
|
|
995
|
-
const { t: o } = k(["tools_ui"]), i = E(() =>
|
|
996
|
-
return /* @__PURE__ */
|
|
1000
|
+
}, $r = ({ className: e, input: t, state: s, ...r }) => {
|
|
1001
|
+
const { t: o } = k(["tools_ui"]), i = E(() => Gt(t), [t]), a = s === "input-streaming";
|
|
1002
|
+
return /* @__PURE__ */ d("div", { className: p("space-y-2 overflow-hidden p-4", e), ...r, children: [
|
|
997
1003
|
/* @__PURE__ */ n("h4", { className: "font-medium text-muted-foreground text-xs uppercase tracking-wide", children: o("parameters") }),
|
|
998
1004
|
/* @__PURE__ */ n("div", { className: "rounded-md bg-muted/50", children: a ? /* @__PURE__ */ n("pre", { className: "overflow-x-auto p-4 font-mono text-sm whitespace-pre-wrap", dir: "ltr", children: i }) : /* @__PURE__ */ n(Ie, { code: i }) })
|
|
999
1005
|
] });
|
|
1000
1006
|
}, Lr = ({ className: e, output: t, errorText: s, ...r }) => {
|
|
1001
|
-
const { t: o } = k(["tools_ui"]), [i, a] =
|
|
1007
|
+
const { t: o } = k(["tools_ui"]), [i, a] = Wt(2e3), l = E(() => {
|
|
1002
1008
|
if (typeof t == "string")
|
|
1003
1009
|
try {
|
|
1004
1010
|
return JSON.stringify(JSON.parse(t), null, 2);
|
|
@@ -1009,24 +1015,24 @@ const Or = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
1009
1015
|
}, [t]);
|
|
1010
1016
|
if (!(t || s))
|
|
1011
1017
|
return null;
|
|
1012
|
-
const
|
|
1018
|
+
const c = () => {
|
|
1013
1019
|
s && navigator.clipboard.writeText(s).then(() => {
|
|
1014
1020
|
a();
|
|
1015
1021
|
});
|
|
1016
1022
|
}, u = () => typeof t == "string" ? l === null ? /* @__PURE__ */ n("div", { className: "p-4 text-sm whitespace-pre-wrap", dir: "ltr", children: t }) : /* @__PURE__ */ n(Ie, { code: l }) : typeof t == "object" && t !== null && !("$$typeof" in t) ? /* @__PURE__ */ n(Ie, { code: l ?? "" }) : t;
|
|
1017
|
-
return /* @__PURE__ */
|
|
1023
|
+
return /* @__PURE__ */ d("div", { className: p("space-y-2 p-4", e), ...r, children: [
|
|
1018
1024
|
/* @__PURE__ */ n("h4", { className: "font-medium text-muted-foreground text-xs uppercase tracking-wide", children: o(s ? "error" : "result") }),
|
|
1019
|
-
s && /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ n(
|
|
1021
|
-
/* @__PURE__ */ n(
|
|
1025
|
+
s && /* @__PURE__ */ d(_r, { children: [
|
|
1026
|
+
/* @__PURE__ */ n(Sr, { asChild: !0, children: /* @__PURE__ */ d(F, { variant: "destructive", size: "sm", children: [
|
|
1027
|
+
/* @__PURE__ */ n(Nt, { className: "me-1.5 size-4" }),
|
|
1022
1028
|
o("view_error")
|
|
1023
1029
|
] }) }),
|
|
1024
|
-
/* @__PURE__ */
|
|
1025
|
-
/* @__PURE__ */ n(
|
|
1026
|
-
/* @__PURE__ */
|
|
1027
|
-
/* @__PURE__ */ n("div", { className: "max-h-96 overflow-auto rounded-md bg-destructive/10 p-4 text-destructive text-sm", children: /* @__PURE__ */ n("pre", { className: "whitespace-pre-wrap break-words", children:
|
|
1028
|
-
/* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */ n(
|
|
1030
|
+
/* @__PURE__ */ d(Dr, { className: "max-w-2xl", children: [
|
|
1031
|
+
/* @__PURE__ */ n(Tr, { children: /* @__PURE__ */ n(Pr, { className: "text-destructive", children: o("tool_error") }) }),
|
|
1032
|
+
/* @__PURE__ */ d("div", { className: "space-y-4", children: [
|
|
1033
|
+
/* @__PURE__ */ n("div", { className: "max-h-96 overflow-auto rounded-md bg-destructive/10 p-4 text-destructive text-sm", children: /* @__PURE__ */ n("pre", { className: "whitespace-pre-wrap break-words", children: Gt(s) }) }),
|
|
1034
|
+
/* @__PURE__ */ d(F, { variant: "outline", size: "sm", onClick: c, children: [
|
|
1035
|
+
/* @__PURE__ */ n(kt, { className: "me-1.5 size-4" }),
|
|
1030
1036
|
o(i ? "copied" : "copy_error")
|
|
1031
1037
|
] })
|
|
1032
1038
|
] })
|
|
@@ -1035,11 +1041,11 @@ const Or = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
1035
1041
|
t && !s && /* @__PURE__ */ n("div", { className: "overflow-x-auto rounded-md bg-muted/50 text-foreground text-xs [&_table]:w-full line-clamp-[20]", children: /* @__PURE__ */ n("div", { children: u() }) })
|
|
1036
1042
|
] });
|
|
1037
1043
|
};
|
|
1038
|
-
function
|
|
1039
|
-
const { t } = k(["tools_ui"]), s =
|
|
1044
|
+
function Fr({ part: e }) {
|
|
1045
|
+
const { t } = k(["tools_ui"]), s = gn(e);
|
|
1040
1046
|
if (!s.isPending) return null;
|
|
1041
|
-
const r = t("approval_prompt", { tool:
|
|
1042
|
-
return /* @__PURE__ */
|
|
1047
|
+
const r = t("approval_prompt", { tool: Dt(e) });
|
|
1048
|
+
return /* @__PURE__ */ d(
|
|
1043
1049
|
"div",
|
|
1044
1050
|
{
|
|
1045
1051
|
role: "group",
|
|
@@ -1048,7 +1054,7 @@ function Br({ part: e }) {
|
|
|
1048
1054
|
children: [
|
|
1049
1055
|
/* @__PURE__ */ n("p", { className: "me-auto text-sm text-muted-foreground", children: r }),
|
|
1050
1056
|
/* @__PURE__ */ n(
|
|
1051
|
-
|
|
1057
|
+
F,
|
|
1052
1058
|
{
|
|
1053
1059
|
size: "sm",
|
|
1054
1060
|
variant: "outline",
|
|
@@ -1059,31 +1065,31 @@ function Br({ part: e }) {
|
|
|
1059
1065
|
children: t("deny")
|
|
1060
1066
|
}
|
|
1061
1067
|
),
|
|
1062
|
-
/* @__PURE__ */ n(
|
|
1068
|
+
/* @__PURE__ */ n(F, { size: "sm", disabled: !s.canRespond, onClick: () => {
|
|
1063
1069
|
s.approve();
|
|
1064
1070
|
}, children: t("approve") })
|
|
1065
1071
|
]
|
|
1066
1072
|
}
|
|
1067
1073
|
);
|
|
1068
1074
|
}
|
|
1069
|
-
function
|
|
1075
|
+
function Br({ part: e }) {
|
|
1070
1076
|
const t = Te((r) => r.app.showToolDetails ?? !0), s = e.state === "approval-requested";
|
|
1071
|
-
return !t && !s ? null : /* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */ n(
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */ n(
|
|
1077
|
+
return !t && !s ? null : /* @__PURE__ */ d(Er, { className: "animate-in-bubble", defaultOpen: s, children: [
|
|
1078
|
+
/* @__PURE__ */ n(qr, { type: e.type, state: e.state, toolName: Dt(e) }),
|
|
1079
|
+
/* @__PURE__ */ d(jr, { children: [
|
|
1080
|
+
/* @__PURE__ */ n($r, { input: e.input, state: e.state }),
|
|
1075
1081
|
(e.state === "output-available" || e.state === "output-error") && /* @__PURE__ */ n(Lr, { errorText: e.errorText, output: e.output })
|
|
1076
1082
|
] }),
|
|
1077
|
-
/* @__PURE__ */ n(
|
|
1083
|
+
/* @__PURE__ */ n(Fr, { part: e })
|
|
1078
1084
|
] });
|
|
1079
1085
|
}
|
|
1080
|
-
function
|
|
1081
|
-
const t =
|
|
1082
|
-
if (
|
|
1086
|
+
function Ur({ part: e }) {
|
|
1087
|
+
const t = M((c) => c.message.role), { t: s } = k(["chat", "admin"]), r = e, o = hn(e), i = r.mediaType.startsWith("image/"), a = r.filename ?? "file", l = (c) => {
|
|
1088
|
+
if (c.preventDefault(), !o) return;
|
|
1083
1089
|
const u = document.createElement("a");
|
|
1084
1090
|
u.href = o, u.download = a, document.body.appendChild(u), u.click(), document.body.removeChild(u);
|
|
1085
1091
|
};
|
|
1086
|
-
return /* @__PURE__ */ n("div", { className: "py-2 animate-in-bubble", children: /* @__PURE__ */ n(qe, { from: t, children: /* @__PURE__ */ n(je, { isPlain: !0, children: i ? /* @__PURE__ */
|
|
1092
|
+
return /* @__PURE__ */ n("div", { className: "py-2 animate-in-bubble", children: /* @__PURE__ */ n(qe, { from: t, children: /* @__PURE__ */ n(je, { isPlain: !0, children: i ? /* @__PURE__ */ d("div", { className: "group relative max-w-[280px] rounded-xl overflow-hidden border border-border/5 transition-all duration-300 hover:border-primary/30", children: [
|
|
1087
1093
|
/* @__PURE__ */ n(
|
|
1088
1094
|
"img",
|
|
1089
1095
|
{
|
|
@@ -1092,7 +1098,7 @@ function Hr({ part: e }) {
|
|
|
1092
1098
|
className: "max-h-[280px] w-full rounded-xl object-cover"
|
|
1093
1099
|
}
|
|
1094
1100
|
),
|
|
1095
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ d("div", { className: "absolute inset-x-0 bottom-0 p-3 bg-black/60 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity flex items-center justify-between", children: [
|
|
1096
1102
|
/* @__PURE__ */ n("span", { className: "text-xs text-white truncate max-w-[150px] font-medium", children: a }),
|
|
1097
1103
|
/* @__PURE__ */ n(
|
|
1098
1104
|
"button",
|
|
@@ -1112,9 +1118,9 @@ function Hr({ part: e }) {
|
|
|
1112
1118
|
children: /* @__PURE__ */ n(de, { className: "size-4" })
|
|
1113
1119
|
}
|
|
1114
1120
|
) })
|
|
1115
|
-
] }) : /* @__PURE__ */ n("div", { className: "flex flex-col gap-1.5", children: /* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */ n("div", { className: "p-2.5 rounded-lg bg-background/50 border border-border/10 group-hover:border-primary/20 group-hover:text-primary transition-colors", children: /* @__PURE__ */ n(
|
|
1117
|
-
/* @__PURE__ */
|
|
1121
|
+
] }) : /* @__PURE__ */ n("div", { className: "flex flex-col gap-1.5", children: /* @__PURE__ */ d("div", { className: "group inline-flex items-center gap-3 rounded-xl p-3 text-sm transition-all duration-300 bg-secondary/10 border border-border/5 hover:border-primary/30 hover:bg-secondary/20", children: [
|
|
1122
|
+
/* @__PURE__ */ n("div", { className: "p-2.5 rounded-lg bg-background/50 border border-border/10 group-hover:border-primary/20 group-hover:text-primary transition-colors", children: /* @__PURE__ */ n(Ct, { className: "size-4 shrink-0" }) }),
|
|
1123
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col min-w-0 me-4", children: [
|
|
1118
1124
|
/* @__PURE__ */ n("span", { className: "truncate max-w-[180px] font-semibold text-foreground/90 leading-none mb-1 group-hover:text-foreground transition-colors", children: a }),
|
|
1119
1125
|
r.mediaType && /* @__PURE__ */ n("span", { className: "text-xs text-muted-foreground uppercase font-bold tracking-widest opacity-60", children: r.mediaType.split("/").pop() })
|
|
1120
1126
|
] }),
|
|
@@ -1129,9 +1135,9 @@ function Hr({ part: e }) {
|
|
|
1129
1135
|
)
|
|
1130
1136
|
] }) }) }) }) });
|
|
1131
1137
|
}
|
|
1132
|
-
function
|
|
1133
|
-
const t =
|
|
1134
|
-
return /* @__PURE__ */ n("div", { className: p("my-1.5 flex", t === "user" && "justify-end"), children: /* @__PURE__ */
|
|
1138
|
+
function Hr({ part: e }) {
|
|
1139
|
+
const t = M((u) => u.message.role), { t: s } = k(["chat"]), { focusReference: r } = bn(), [o, i] = Wt(1200), a = e.data, l = a.excerpt || a.label || s("source_unavailable"), c = a.label && a.label !== l ? a.label : s("referenced_context");
|
|
1140
|
+
return /* @__PURE__ */ n("div", { className: p("my-1.5 flex", t === "user" && "justify-end"), children: /* @__PURE__ */ d(
|
|
1135
1141
|
"button",
|
|
1136
1142
|
{
|
|
1137
1143
|
type: "button",
|
|
@@ -1142,7 +1148,7 @@ function Vr({ part: e }) {
|
|
|
1142
1148
|
onClick: () => {
|
|
1143
1149
|
r(a) || i();
|
|
1144
1150
|
},
|
|
1145
|
-
title:
|
|
1151
|
+
title: c,
|
|
1146
1152
|
children: [
|
|
1147
1153
|
/* @__PURE__ */ n(Re, { className: "mt-0.5 size-3.5 shrink-0 opacity-70" }),
|
|
1148
1154
|
/* @__PURE__ */ n("span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n("span", { className: "line-clamp-2 opacity-85", dir: "auto", children: l }) })
|
|
@@ -1154,30 +1160,30 @@ function Ue(e) {
|
|
|
1154
1160
|
const { input: t } = e, s = typeof t?.question == "string" ? t.question.trim() : "", r = (Array.isArray(t?.choices) ? t.choices : []).filter((o) => typeof o == "string").map((o) => o.trim()).filter(Boolean).map((o) => ({ label: o }));
|
|
1155
1161
|
return !s || r.length === 0 && e.state !== "input-streaming" ? null : { question: s, choices: r, allowCustom: t?.allow_custom !== !1 };
|
|
1156
1162
|
}
|
|
1157
|
-
function
|
|
1163
|
+
function Vr(e) {
|
|
1158
1164
|
return e.type === "tool-ask_user";
|
|
1159
1165
|
}
|
|
1160
|
-
function
|
|
1166
|
+
function Kt(e, { streaming: t = !1 } = {}) {
|
|
1161
1167
|
return e?.parts.find(
|
|
1162
|
-
(s) =>
|
|
1168
|
+
(s) => Vr(s) && (s.state === "input-available" || t && s.state === "input-streaming")
|
|
1163
1169
|
);
|
|
1164
1170
|
}
|
|
1165
|
-
const
|
|
1166
|
-
function
|
|
1167
|
-
const t =
|
|
1171
|
+
const Jt = (e) => e.replace(/\s+/g, " ").trim().toLowerCase().replace(/[?!.:؟،]+$/, ""), ut = /* @__PURE__ */ new WeakMap();
|
|
1172
|
+
function Qr(e) {
|
|
1173
|
+
const t = ut.get(e);
|
|
1168
1174
|
if (t !== void 0) return t;
|
|
1169
|
-
const s = e.parts.flatMap((o) => o.type === "text" ? [o.text] : []).join(" "), r =
|
|
1170
|
-
return
|
|
1175
|
+
const s = e.parts.flatMap((o) => o.type === "text" ? [o.text] : []).join(" "), r = Jt(s);
|
|
1176
|
+
return ut.set(e, r), r;
|
|
1171
1177
|
}
|
|
1172
|
-
function
|
|
1173
|
-
const s =
|
|
1174
|
-
return s ? e ?
|
|
1178
|
+
function Yt(e, t) {
|
|
1179
|
+
const s = Jt(t.question);
|
|
1180
|
+
return s ? e ? Qr(e).includes(s) : !1 : !0;
|
|
1175
1181
|
}
|
|
1176
|
-
function
|
|
1182
|
+
function Wr(e) {
|
|
1177
1183
|
const { readonly: t, lastMessage: s, isFinished: r, status: o } = e;
|
|
1178
1184
|
return !t && !!s && !!r && o === "ready";
|
|
1179
1185
|
}
|
|
1180
|
-
function
|
|
1186
|
+
function Xt({
|
|
1181
1187
|
choices: e,
|
|
1182
1188
|
selected: t,
|
|
1183
1189
|
disabled: s,
|
|
@@ -1190,7 +1196,7 @@ function Zt({
|
|
|
1190
1196
|
{
|
|
1191
1197
|
type: "button",
|
|
1192
1198
|
disabled: s,
|
|
1193
|
-
dir:
|
|
1199
|
+
dir: L(a.label, r),
|
|
1194
1200
|
onClick: () => o(a.label),
|
|
1195
1201
|
className: p(
|
|
1196
1202
|
"w-full rounded-full px-3 py-2.5 text-start text-sm leading-snug",
|
|
@@ -1208,7 +1214,7 @@ function Zt({
|
|
|
1208
1214
|
a.label
|
|
1209
1215
|
)) });
|
|
1210
1216
|
}
|
|
1211
|
-
function
|
|
1217
|
+
function Gr({
|
|
1212
1218
|
part: e,
|
|
1213
1219
|
message: t,
|
|
1214
1220
|
disabled: s,
|
|
@@ -1216,9 +1222,9 @@ function Kr({
|
|
|
1216
1222
|
onReopen: o,
|
|
1217
1223
|
onAnswer: i
|
|
1218
1224
|
}) {
|
|
1219
|
-
const { t: a } = k(["chat"]), { dir: l } = $(), { textComponents:
|
|
1225
|
+
const { t: a } = k(["chat"]), { dir: l } = $(), { textComponents: c, remarkPlugins: u, rehypePlugins: m, linkProtocols: h } = B(), b = E(() => Ue(e), [e]), [g, f] = C(""), [w, x] = C(null), [y, v] = C(!1);
|
|
1220
1226
|
if (!b) return null;
|
|
1221
|
-
const I = !s && !!i, N = !I || y || w !== null, z = !
|
|
1227
|
+
const I = !s && !!i, N = !I || y || w !== null, z = !Yt(t, b), S = L(b.question, l);
|
|
1222
1228
|
if (!z && !I && !r) return null;
|
|
1223
1229
|
const O = async (j) => {
|
|
1224
1230
|
const W = j.trim();
|
|
@@ -1235,11 +1241,11 @@ function Kr({
|
|
|
1235
1241
|
}, D = (j) => {
|
|
1236
1242
|
j.preventDefault(), O(g);
|
|
1237
1243
|
};
|
|
1238
|
-
return /* @__PURE__ */
|
|
1244
|
+
return /* @__PURE__ */ d("div", { className: "group py-2 first:pt-4 animate-in-bubble", children: [
|
|
1239
1245
|
z && /* @__PURE__ */ n(qe, { from: t.role, children: /* @__PURE__ */ n(je, { dir: S, children: /* @__PURE__ */ n(
|
|
1240
1246
|
ge,
|
|
1241
1247
|
{
|
|
1242
|
-
components:
|
|
1248
|
+
components: c,
|
|
1243
1249
|
remarkPlugins: u,
|
|
1244
1250
|
rehypePlugins: m,
|
|
1245
1251
|
linkProtocols: h,
|
|
@@ -1251,7 +1257,7 @@ function Kr({
|
|
|
1251
1257
|
{
|
|
1252
1258
|
className: p("flex w-full justify-start", z && "mt-2.5"),
|
|
1253
1259
|
dir: S,
|
|
1254
|
-
children: /* @__PURE__ */
|
|
1260
|
+
children: /* @__PURE__ */ d(
|
|
1255
1261
|
"button",
|
|
1256
1262
|
{
|
|
1257
1263
|
type: "button",
|
|
@@ -1259,16 +1265,16 @@ function Kr({
|
|
|
1259
1265
|
disabled: !o,
|
|
1260
1266
|
className: "inline-flex max-w-full items-center gap-2 rounded-full border border-border/60 px-3 py-1.5 text-start text-xs text-muted-foreground outline-none transition-colors hover:border-border hover:bg-foreground/[0.04] hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 disabled:cursor-default disabled:hover:border-border/60 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",
|
|
1261
1267
|
children: [
|
|
1262
|
-
/* @__PURE__ */ n(
|
|
1268
|
+
/* @__PURE__ */ n(jn, { className: "size-3.5 shrink-0" }),
|
|
1263
1269
|
/* @__PURE__ */ n("span", { className: "truncate", children: a("choice_dismissed") })
|
|
1264
1270
|
]
|
|
1265
1271
|
}
|
|
1266
1272
|
)
|
|
1267
1273
|
}
|
|
1268
1274
|
),
|
|
1269
|
-
I && !r && /* @__PURE__ */
|
|
1275
|
+
I && !r && /* @__PURE__ */ d("div", { className: p("max-w-xl", z && "mt-2.5"), dir: S, children: [
|
|
1270
1276
|
/* @__PURE__ */ n(
|
|
1271
|
-
|
|
1277
|
+
Xt,
|
|
1272
1278
|
{
|
|
1273
1279
|
choices: b.choices,
|
|
1274
1280
|
selected: w,
|
|
@@ -1279,13 +1285,13 @@ function Kr({
|
|
|
1279
1285
|
}
|
|
1280
1286
|
}
|
|
1281
1287
|
),
|
|
1282
|
-
b.allowCustom && /* @__PURE__ */
|
|
1288
|
+
b.allowCustom && /* @__PURE__ */ d("form", { onSubmit: D, className: "mt-1.5 flex items-center gap-1.5", children: [
|
|
1283
1289
|
/* @__PURE__ */ n(
|
|
1284
1290
|
"input",
|
|
1285
1291
|
{
|
|
1286
1292
|
value: g,
|
|
1287
1293
|
disabled: N,
|
|
1288
|
-
dir:
|
|
1294
|
+
dir: L(g || a("choice_other_placeholder"), S),
|
|
1289
1295
|
onChange: (j) => f(j.target.value),
|
|
1290
1296
|
placeholder: a("choice_other_placeholder"),
|
|
1291
1297
|
className: "h-11 min-w-0 flex-1 rounded-full bg-transparent px-3 text-start text-sm outline-none transition-colors placeholder:text-muted-foreground/60 hover:bg-foreground/[0.04] focus-visible:bg-foreground/[0.06] disabled:cursor-not-allowed disabled:opacity-55"
|
|
@@ -1299,16 +1305,16 @@ function Kr({
|
|
|
1299
1305
|
className: "flex size-11 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground transition hover:bg-primary/90 focus-visible:ring-2 focus-visible:ring-ring/40 disabled:opacity-35",
|
|
1300
1306
|
"aria-label": a("choice_send_answer"),
|
|
1301
1307
|
title: a("choice_send_answer"),
|
|
1302
|
-
children: /* @__PURE__ */ n(
|
|
1308
|
+
children: /* @__PURE__ */ n(_t, { className: "size-4" })
|
|
1303
1309
|
}
|
|
1304
1310
|
)
|
|
1305
1311
|
] })
|
|
1306
1312
|
] })
|
|
1307
1313
|
] });
|
|
1308
1314
|
}
|
|
1309
|
-
const
|
|
1310
|
-
function
|
|
1311
|
-
const t =
|
|
1315
|
+
const Zt = "dismissed-choice-questions";
|
|
1316
|
+
function Kr(e) {
|
|
1317
|
+
const t = ds(e, Zt);
|
|
1312
1318
|
if (!t) return [];
|
|
1313
1319
|
try {
|
|
1314
1320
|
const s = JSON.parse(t);
|
|
@@ -1317,7 +1323,7 @@ function Jr(e) {
|
|
|
1317
1323
|
return [];
|
|
1318
1324
|
}
|
|
1319
1325
|
}
|
|
1320
|
-
const
|
|
1326
|
+
const Jr = {
|
|
1321
1327
|
question: null,
|
|
1322
1328
|
messageId: null,
|
|
1323
1329
|
disabled: !0,
|
|
@@ -1329,8 +1335,8 @@ const Yr = {
|
|
|
1329
1335
|
dockHeight: 0,
|
|
1330
1336
|
reportDockHeight: () => {
|
|
1331
1337
|
}
|
|
1332
|
-
},
|
|
1333
|
-
function
|
|
1338
|
+
}, en = te(null);
|
|
1339
|
+
function Ga({
|
|
1334
1340
|
message: e,
|
|
1335
1341
|
disabled: t = !1,
|
|
1336
1342
|
readonly: s = !1,
|
|
@@ -1338,9 +1344,9 @@ function Ja({
|
|
|
1338
1344
|
onAnswer: o,
|
|
1339
1345
|
children: i
|
|
1340
1346
|
}) {
|
|
1341
|
-
const [a, l] = C(0),
|
|
1347
|
+
const [a, l] = C(0), c = s || e?.role !== "assistant" ? void 0 : Kt(e, { streaming: t }), u = E(() => c ? Ue(c) : null, [c]), m = c?.toolCallId, h = ee((I) => {
|
|
1342
1348
|
l((N) => Math.abs(N - I) < 1 ? N : I);
|
|
1343
|
-
}, []), b = u ? e?.id ?? null : null, g = u && e ?
|
|
1349
|
+
}, []), b = u ? e?.id ?? null : null, g = u && e ? ls(e) : null, [f, w] = C(() => Kr(r)), x = g !== null && f.includes(g), y = ee(
|
|
1344
1350
|
(I) => {
|
|
1345
1351
|
g && w((N) => {
|
|
1346
1352
|
const z = N.filter((S) => S !== g);
|
|
@@ -1350,7 +1356,7 @@ function Ja({
|
|
|
1350
1356
|
[g]
|
|
1351
1357
|
);
|
|
1352
1358
|
T(() => {
|
|
1353
|
-
|
|
1359
|
+
cs(r, Zt, JSON.stringify(f));
|
|
1354
1360
|
}, [r, f]);
|
|
1355
1361
|
const v = E(
|
|
1356
1362
|
() => ({
|
|
@@ -1377,18 +1383,18 @@ function Ja({
|
|
|
1377
1383
|
h
|
|
1378
1384
|
]
|
|
1379
1385
|
);
|
|
1380
|
-
return /* @__PURE__ */ n(
|
|
1386
|
+
return /* @__PURE__ */ n(en.Provider, { value: v, children: i });
|
|
1381
1387
|
}
|
|
1382
1388
|
function he() {
|
|
1383
|
-
return le(
|
|
1389
|
+
return le(en) ?? Jr;
|
|
1384
1390
|
}
|
|
1385
1391
|
function He(e) {
|
|
1386
|
-
const t =
|
|
1392
|
+
const t = M((f) => f.message), s = M((f) => f.isLast), r = M((f) => f.isStreaming), o = Y((f) => f.status), { readonly: i, actions: a } = xt(), l = ee(
|
|
1387
1393
|
(f) => {
|
|
1388
1394
|
e && a?.addToolOutput({ toolCallId: e, output: { answer: f } });
|
|
1389
1395
|
},
|
|
1390
1396
|
[a, e]
|
|
1391
|
-
),
|
|
1397
|
+
), c = ee((f) => {
|
|
1392
1398
|
a?.send({ text: f });
|
|
1393
1399
|
}, [a]), { messageId: u, dismissed: m, setDismissed: h } = he(), b = u === t.id, g = s && !r && t.role === "assistant";
|
|
1394
1400
|
return {
|
|
@@ -1400,17 +1406,17 @@ function He(e) {
|
|
|
1400
1406
|
docked: b && !m,
|
|
1401
1407
|
dismissedHere: b && m,
|
|
1402
1408
|
reopen: () => h(!1),
|
|
1403
|
-
answerable:
|
|
1409
|
+
answerable: Wr({ readonly: i, lastMessage: s, isFinished: g, status: o }),
|
|
1404
1410
|
answer: l,
|
|
1405
|
-
sendText:
|
|
1411
|
+
sendText: c
|
|
1406
1412
|
};
|
|
1407
1413
|
}
|
|
1408
|
-
function
|
|
1414
|
+
function Yr({
|
|
1409
1415
|
part: e,
|
|
1410
1416
|
question: t,
|
|
1411
1417
|
index: s
|
|
1412
1418
|
}) {
|
|
1413
|
-
const { t: r } = k("chat"), { ChoiceQuestionPart: o } =
|
|
1419
|
+
const { t: r } = k("chat"), { ChoiceQuestionPart: o } = B(), { message: i, answerable: a, dismissedHere: l, reopen: c, answer: u } = He(
|
|
1414
1420
|
e.toolCallId
|
|
1415
1421
|
);
|
|
1416
1422
|
if (a && e.state === "input-available")
|
|
@@ -1421,13 +1427,13 @@ function Xr({
|
|
|
1421
1427
|
message: i,
|
|
1422
1428
|
disabled: !1,
|
|
1423
1429
|
dismissed: l,
|
|
1424
|
-
onReopen: l ?
|
|
1430
|
+
onReopen: l ? c : void 0,
|
|
1425
1431
|
onAnswer: u
|
|
1426
1432
|
}
|
|
1427
1433
|
);
|
|
1428
1434
|
const m = e.state === "output-available" ? e.output?.answer : void 0;
|
|
1429
|
-
return /* @__PURE__ */
|
|
1430
|
-
!
|
|
1435
|
+
return /* @__PURE__ */ d(R, { children: [
|
|
1436
|
+
!Yt(i, t) && /* @__PURE__ */ n(
|
|
1431
1437
|
ze,
|
|
1432
1438
|
{
|
|
1433
1439
|
text: t.question,
|
|
@@ -1463,11 +1469,11 @@ function Xr({
|
|
|
1463
1469
|
)
|
|
1464
1470
|
] });
|
|
1465
1471
|
}
|
|
1466
|
-
function
|
|
1472
|
+
function Xr({ part: e, index: t }) {
|
|
1467
1473
|
const { docked: s } = He(e.toolCallId);
|
|
1468
1474
|
if (s && (e.state === "input-available" || e.state === "input-streaming")) return null;
|
|
1469
1475
|
const r = Ue(e);
|
|
1470
|
-
return r ? /* @__PURE__ */ n(
|
|
1476
|
+
return r ? /* @__PURE__ */ n(Yr, { part: e, question: r, index: t }) : null;
|
|
1471
1477
|
}
|
|
1472
1478
|
function ue(e) {
|
|
1473
1479
|
if (Array.isArray(e)) return ue(e[0]);
|
|
@@ -1487,26 +1493,26 @@ function ue(e) {
|
|
|
1487
1493
|
}).slice(0, 3);
|
|
1488
1494
|
return r.length > 0 ? { suggestions: r } : null;
|
|
1489
1495
|
}
|
|
1490
|
-
function
|
|
1491
|
-
const { FollowUpSuggestions: t } =
|
|
1496
|
+
function Zr({ part: e }) {
|
|
1497
|
+
const { FollowUpSuggestions: t } = B(), s = M(
|
|
1492
1498
|
(m) => m.message.parts.find((h) => h.type === "tool-suggest_follow_ups") === e
|
|
1493
|
-
), { message: r, isLast: o, isFinished: i, status: a, readonly: l, sendText:
|
|
1494
|
-
if (!s || r.role !== "assistant" || !o || !i || a !== "ready" || l ||
|
|
1499
|
+
), { message: r, isLast: o, isFinished: i, status: a, readonly: l, sendText: c } = He();
|
|
1500
|
+
if (!s || r.role !== "assistant" || !o || !i || a !== "ready" || l || Kt(r) !== void 0)
|
|
1495
1501
|
return null;
|
|
1496
1502
|
const u = ue(e.input);
|
|
1497
|
-
return u ? /* @__PURE__ */ n(t, { suggestions: u.suggestions, onSelect:
|
|
1503
|
+
return u ? /* @__PURE__ */ n(t, { suggestions: u.suggestions, onSelect: c }) : null;
|
|
1498
1504
|
}
|
|
1499
|
-
const
|
|
1500
|
-
text:
|
|
1501
|
-
reasoning:
|
|
1502
|
-
file:
|
|
1503
|
-
tool:
|
|
1505
|
+
const eo = {
|
|
1506
|
+
text: gr,
|
|
1507
|
+
reasoning: yr,
|
|
1508
|
+
file: Ur,
|
|
1509
|
+
tool: Br,
|
|
1504
1510
|
"source-url": null,
|
|
1505
1511
|
"source-document": null,
|
|
1506
|
-
"data-reference":
|
|
1507
|
-
"tool-ask_user":
|
|
1508
|
-
"tool-suggest_follow_ups":
|
|
1509
|
-
},
|
|
1512
|
+
"data-reference": Hr,
|
|
1513
|
+
"tool-ask_user": Xr,
|
|
1514
|
+
"tool-suggest_follow_ups": Zr
|
|
1515
|
+
}, to = () => /* @__PURE__ */ n(R, { children: [0, 1, 2].map((e) => /* @__PURE__ */ n(
|
|
1510
1516
|
"span",
|
|
1511
1517
|
{
|
|
1512
1518
|
className: "gentiq-loader-dot size-2 rounded-full bg-primary/70",
|
|
@@ -1516,28 +1522,19 @@ const to = {
|
|
|
1516
1522
|
}
|
|
1517
1523
|
},
|
|
1518
1524
|
e
|
|
1519
|
-
)) }),
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
cross: () => /* @__PURE__ */ n("span", { className: "gentiq-loader-cross", children: xe(2) }),
|
|
1523
|
-
comet: () => /* @__PURE__ */ n("span", { className: "gentiq-loader-comet" }),
|
|
1524
|
-
aurora: () => /* @__PURE__ */ n("span", { className: "gentiq-loader-aurora", children: xe(3) })
|
|
1525
|
-
}, ye = ({ className: e, variant: t, ...s }) => {
|
|
1526
|
-
const r = Te((a) => a.theme), o = t ?? r?.loader ?? "dots", i = o === "dots" ? void 0 : so[o];
|
|
1527
|
-
return /* @__PURE__ */ c(
|
|
1525
|
+
)) }), ye = ({ className: e, variant: t, ...s }) => {
|
|
1526
|
+
const o = B().Loader;
|
|
1527
|
+
return o ? /* @__PURE__ */ n(o, { className: e, variant: t, ...s }) : /* @__PURE__ */ n(
|
|
1528
1528
|
"div",
|
|
1529
1529
|
{
|
|
1530
|
-
"data-gentiq-loader":
|
|
1530
|
+
"data-gentiq-loader": "dots",
|
|
1531
1531
|
className: p("flex items-center gap-1.5 px-1 py-3", e),
|
|
1532
1532
|
...s,
|
|
1533
|
-
children:
|
|
1534
|
-
i && /* @__PURE__ */ n(i, {}),
|
|
1535
|
-
/* @__PURE__ */ n(no, {})
|
|
1536
|
-
]
|
|
1533
|
+
children: /* @__PURE__ */ n(to, {})
|
|
1537
1534
|
}
|
|
1538
1535
|
);
|
|
1539
1536
|
};
|
|
1540
|
-
class pe extends
|
|
1537
|
+
class pe extends Sn {
|
|
1541
1538
|
state = { error: null };
|
|
1542
1539
|
static getDerivedStateFromError(t) {
|
|
1543
1540
|
return { error: t };
|
|
@@ -1558,20 +1555,20 @@ class pe extends zn {
|
|
|
1558
1555
|
const { error: t } = this.state;
|
|
1559
1556
|
if (!t) return this.props.children;
|
|
1560
1557
|
const { fallback: s } = this.props;
|
|
1561
|
-
return s !== void 0 ? typeof s == "function" ? s(t, this.reset) : s : /* @__PURE__ */ n("div", { className: "my-2 rounded-lg border border-destructive/20 bg-destructive/5 px-3 py-2 text-xs text-destructive/80", children: t.message || /* @__PURE__ */ n(
|
|
1558
|
+
return s !== void 0 ? typeof s == "function" ? s(t, this.reset) : s : /* @__PURE__ */ n("div", { className: "my-2 rounded-lg border border-destructive/20 bg-destructive/5 px-3 py-2 text-xs text-destructive/80", children: t.message || /* @__PURE__ */ n(no, {}) });
|
|
1562
1559
|
}
|
|
1563
1560
|
}
|
|
1564
|
-
function
|
|
1561
|
+
function no() {
|
|
1565
1562
|
const { t: e } = k("chat");
|
|
1566
1563
|
return e("render_error");
|
|
1567
1564
|
}
|
|
1568
|
-
const
|
|
1565
|
+
const so = ({ className: e, ...t }) => /* @__PURE__ */ n(Le, { className: p("not-prose mb-4 text-primary text-xs", e), ...t }), ro = ({ className: e, count: t, children: s, ...r }) => {
|
|
1569
1566
|
const { t: o } = k(["chat"]);
|
|
1570
|
-
return /* @__PURE__ */ n(
|
|
1567
|
+
return /* @__PURE__ */ n(Fe, { className: p("flex items-center gap-2", e), ...r, children: s ?? /* @__PURE__ */ d(R, { children: [
|
|
1571
1568
|
/* @__PURE__ */ n("p", { className: "font-medium", children: o("used_sources", { count: t }) }),
|
|
1572
1569
|
/* @__PURE__ */ n(ne, { className: "h-4 w-4" })
|
|
1573
1570
|
] }) });
|
|
1574
|
-
},
|
|
1571
|
+
}, oo = ({ className: e, ...t }) => /* @__PURE__ */ n(
|
|
1575
1572
|
Be,
|
|
1576
1573
|
{
|
|
1577
1574
|
className: p(
|
|
@@ -1581,11 +1578,11 @@ const oo = ({ className: e, ...t }) => /* @__PURE__ */ n(Fe, { className: p("not
|
|
|
1581
1578
|
),
|
|
1582
1579
|
...t
|
|
1583
1580
|
}
|
|
1584
|
-
),
|
|
1585
|
-
/* @__PURE__ */ n(
|
|
1581
|
+
), ao = ({ href: e, title: t, children: s, ...r }) => /* @__PURE__ */ n("a", { className: "flex items-center gap-2", href: e, rel: "noreferrer", target: "_blank", ...r, children: s ?? /* @__PURE__ */ d(R, { children: [
|
|
1582
|
+
/* @__PURE__ */ n($n, { className: "h-4 w-4" }),
|
|
1586
1583
|
/* @__PURE__ */ n("span", { className: "block font-medium", children: t })
|
|
1587
1584
|
] }) });
|
|
1588
|
-
function
|
|
1585
|
+
function io() {
|
|
1589
1586
|
const { t: e } = k(["chat"]);
|
|
1590
1587
|
return /* @__PURE__ */ n(
|
|
1591
1588
|
Ne.ScrollToBottom,
|
|
@@ -1596,7 +1593,7 @@ function co() {
|
|
|
1596
1593
|
}
|
|
1597
1594
|
);
|
|
1598
1595
|
}
|
|
1599
|
-
const
|
|
1596
|
+
const lo = (e) => us.includes(e.type) ? !1 : e.type === "text" || e.type === "reasoning" ? e.text.trim().length > 0 : e.type === "file" ? !0 : Tt(e), co = ({
|
|
1600
1597
|
latestProgress: e,
|
|
1601
1598
|
parts: t,
|
|
1602
1599
|
isFinished: s
|
|
@@ -1605,9 +1602,9 @@ const uo = (e) => ms.includes(e.type) ? !1 : e.type === "text" || e.type === "re
|
|
|
1605
1602
|
if (!o) return null;
|
|
1606
1603
|
const i = t.lastIndexOf(e), a = t.slice(i + 1), l = a.some(
|
|
1607
1604
|
(g) => g.type === "text" && g.text.trim().length > 0 || g.type === "tool-ask_user"
|
|
1608
|
-
),
|
|
1609
|
-
if (!(u ? !l && !s : !l && !
|
|
1610
|
-
const h = r === "error", b =
|
|
1605
|
+
), c = a.some(Tt), u = r === "running";
|
|
1606
|
+
if (!(u ? !l && !s : !l && !c)) return null;
|
|
1607
|
+
const h = r === "error", b = L(o);
|
|
1611
1608
|
return /* @__PURE__ */ n(
|
|
1612
1609
|
"div",
|
|
1613
1610
|
{
|
|
@@ -1615,7 +1612,7 @@ const uo = (e) => ms.includes(e.type) ? !1 : e.type === "text" || e.type === "re
|
|
|
1615
1612
|
"flex w-full py-3 mx-auto max-w-4xl px-4 md:px-0 animate-in-bubble",
|
|
1616
1613
|
b === "rtl" ? "justify-end" : "justify-start"
|
|
1617
1614
|
),
|
|
1618
|
-
children: /* @__PURE__ */
|
|
1615
|
+
children: /* @__PURE__ */ d(
|
|
1619
1616
|
"div",
|
|
1620
1617
|
{
|
|
1621
1618
|
className: p(
|
|
@@ -1624,53 +1621,53 @@ const uo = (e) => ms.includes(e.type) ? !1 : e.type === "text" || e.type === "re
|
|
|
1624
1621
|
),
|
|
1625
1622
|
dir: b,
|
|
1626
1623
|
children: [
|
|
1627
|
-
u ? /* @__PURE__ */ n("div", { className: "size-4 animate-spin rounded-full border-2 border-primary border-e-transparent shrink-0" }) : h ? /* @__PURE__ */ n(
|
|
1624
|
+
u ? /* @__PURE__ */ n("div", { className: "size-4 animate-spin rounded-full border-2 border-primary border-e-transparent shrink-0" }) : h ? /* @__PURE__ */ n(V, { className: "size-4 text-destructive shrink-0" }) : /* @__PURE__ */ n(ce, { className: "size-4 text-success shrink-0" }),
|
|
1628
1625
|
/* @__PURE__ */ n("span", { className: p("font-medium", u && "animate-pulse"), children: o })
|
|
1629
1626
|
]
|
|
1630
1627
|
}
|
|
1631
1628
|
)
|
|
1632
1629
|
}
|
|
1633
1630
|
);
|
|
1634
|
-
},
|
|
1635
|
-
() => import("./MessageEditor-
|
|
1636
|
-
),
|
|
1637
|
-
function
|
|
1638
|
-
const e =
|
|
1639
|
-
return /* @__PURE__ */
|
|
1631
|
+
}, uo = Me(
|
|
1632
|
+
() => import("./MessageEditor-PAl3Jjcu.js").then((e) => ({ default: e.MessageEditor }))
|
|
1633
|
+
), mo = { UserMessage: po, AssistantMessage: go };
|
|
1634
|
+
function po() {
|
|
1635
|
+
const e = M((o) => o.message.id), t = M((o) => o.isEditing), { MessageActions: s } = B(), r = se((o) => o.threadActions);
|
|
1636
|
+
return /* @__PURE__ */ d(
|
|
1640
1637
|
X.Root,
|
|
1641
1638
|
{
|
|
1642
1639
|
"data-gentiq-message-id": e,
|
|
1643
1640
|
"data-gentiq-message-role": "user",
|
|
1644
1641
|
className: "group/message",
|
|
1645
1642
|
children: [
|
|
1646
|
-
t ? /* @__PURE__ */
|
|
1647
|
-
/* @__PURE__ */ n(X.Parts, { components:
|
|
1648
|
-
/* @__PURE__ */ n(
|
|
1643
|
+
t ? /* @__PURE__ */ d(Ce, { fallback: /* @__PURE__ */ n(X.Parts, {}), children: [
|
|
1644
|
+
/* @__PURE__ */ n(X.Parts, { components: fo }),
|
|
1645
|
+
/* @__PURE__ */ n(uo, {})
|
|
1649
1646
|
] }) : /* @__PURE__ */ n(X.Parts, {}),
|
|
1650
1647
|
/* @__PURE__ */ n(s, { retry: !1, feedback: !1, edit: r.edit })
|
|
1651
1648
|
]
|
|
1652
1649
|
}
|
|
1653
1650
|
);
|
|
1654
1651
|
}
|
|
1655
|
-
const
|
|
1656
|
-
function
|
|
1657
|
-
const e =
|
|
1652
|
+
const fo = { text: null };
|
|
1653
|
+
function go() {
|
|
1654
|
+
const e = M((a) => a.message.id), t = M((a) => a.message.parts), { MessageActions: s } = B(), r = se((a) => a.threadActions), { sourceUrls: o, hasText: i } = E(
|
|
1658
1655
|
() => ({
|
|
1659
1656
|
sourceUrls: t.flatMap((a) => a.type === "source-url" ? [a.url] : []),
|
|
1660
|
-
hasText:
|
|
1657
|
+
hasText: ms({ parts: t }).length > 0
|
|
1661
1658
|
}),
|
|
1662
1659
|
[t]
|
|
1663
1660
|
);
|
|
1664
|
-
return /* @__PURE__ */
|
|
1661
|
+
return /* @__PURE__ */ d(
|
|
1665
1662
|
X.Root,
|
|
1666
1663
|
{
|
|
1667
1664
|
"data-gentiq-message-id": e,
|
|
1668
1665
|
"data-gentiq-message-role": "assistant",
|
|
1669
1666
|
className: "group/message",
|
|
1670
1667
|
children: [
|
|
1671
|
-
o.length > 0 && /* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */ n(
|
|
1673
|
-
o.map((a, l) => /* @__PURE__ */ n(
|
|
1668
|
+
o.length > 0 && /* @__PURE__ */ d(so, { children: [
|
|
1669
|
+
/* @__PURE__ */ n(ro, { count: o.length }),
|
|
1670
|
+
o.map((a, l) => /* @__PURE__ */ n(oo, { children: /* @__PURE__ */ n(ao, { href: a, title: a }) }, `${e}-source-${l}`))
|
|
1674
1671
|
] }),
|
|
1675
1672
|
/* @__PURE__ */ n(X.Parts, {}),
|
|
1676
1673
|
i && /* @__PURE__ */ n(
|
|
@@ -1685,17 +1682,17 @@ function bo() {
|
|
|
1685
1682
|
}
|
|
1686
1683
|
);
|
|
1687
1684
|
}
|
|
1688
|
-
function
|
|
1689
|
-
const { t } = k(["chat", "errors"]), { ChatError: s } =
|
|
1690
|
-
() => l === void 0 ? null :
|
|
1685
|
+
function ho({ className: e }) {
|
|
1686
|
+
const { t } = k(["chat", "errors"]), { ChatError: s } = B(), { actions: r } = xt(), o = Y((v) => v.messages), i = Y((v) => v.status), a = Y((v) => v.isLoadingHistory), l = Y((v) => v.error), c = E(
|
|
1687
|
+
() => l === void 0 ? null : vn(l, t),
|
|
1691
1688
|
[l, t]
|
|
1692
|
-
), { dockHeight: u } = he(), m = `calc(var(--gentiq-composer-inset, calc(6.5rem + ${u}px)) + 1.5rem)`, h = a, b = Y((v) => v.earlier.status), g = r?.loadEarlier, f = o[o.length - 1], w = f?.role === "assistant" && (i === "ready" || f.parts.some((v) => v.type === "data-chat-finished")), x = !h && (i === "submitted" || i === "streaming" && !(f?.role === "assistant" && f.parts.some(
|
|
1689
|
+
), { dockHeight: u } = he(), m = `calc(var(--gentiq-composer-inset, calc(6.5rem + ${u}px)) + 1.5rem)`, h = a, b = Y((v) => v.earlier.status), g = r?.loadEarlier, f = o[o.length - 1], w = f?.role === "assistant" && (i === "ready" || f.parts.some((v) => v.type === "data-chat-finished")), x = !h && (i === "submitted" || i === "streaming" && !(f?.role === "assistant" && f.parts.some(lo)));
|
|
1693
1690
|
let y;
|
|
1694
1691
|
if (f?.role === "assistant")
|
|
1695
1692
|
for (const v of f.parts)
|
|
1696
1693
|
v.type === "data-progress-update" && (y = v);
|
|
1697
|
-
return /* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1694
|
+
return /* @__PURE__ */ d("div", { className: p("relative min-h-0 flex-1 overflow-hidden", e), children: [
|
|
1695
|
+
/* @__PURE__ */ d(
|
|
1699
1696
|
Ne.Viewport,
|
|
1700
1697
|
{
|
|
1701
1698
|
scrollClassName: "custom-scrollbar",
|
|
@@ -1704,9 +1701,9 @@ function vo({ className: e }) {
|
|
|
1704
1701
|
"aria-busy": h,
|
|
1705
1702
|
dir: "ltr",
|
|
1706
1703
|
children: [
|
|
1707
|
-
/* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(Ne.Messages, { components:
|
|
1704
|
+
/* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(Ne.Messages, { components: mo }) }),
|
|
1708
1705
|
y && /* @__PURE__ */ n(
|
|
1709
|
-
|
|
1706
|
+
co,
|
|
1710
1707
|
{
|
|
1711
1708
|
latestProgress: y,
|
|
1712
1709
|
parts: f.parts,
|
|
@@ -1714,7 +1711,7 @@ function vo({ className: e }) {
|
|
|
1714
1711
|
}
|
|
1715
1712
|
),
|
|
1716
1713
|
x && /* @__PURE__ */ n("div", { className: "animate-in-bubble", children: /* @__PURE__ */ n(ye, {}) }),
|
|
1717
|
-
i === "error" &&
|
|
1714
|
+
i === "error" && c && /* @__PURE__ */ n("div", { className: "mx-auto max-w-4xl w-full px-4 my-3 animate-in-bubble", children: /* @__PURE__ */ n(s, { error: c, code: It(c) ? c.code : void 0 }) })
|
|
1718
1715
|
]
|
|
1719
1716
|
}
|
|
1720
1717
|
),
|
|
@@ -1738,14 +1735,14 @@ function vo({ className: e }) {
|
|
|
1738
1735
|
children: /* @__PURE__ */ n(ye, { className: "animate-in fade-in duration-300" })
|
|
1739
1736
|
}
|
|
1740
1737
|
),
|
|
1741
|
-
!h && /* @__PURE__ */ n(
|
|
1738
|
+
!h && /* @__PURE__ */ n(io, {})
|
|
1742
1739
|
] });
|
|
1743
1740
|
}
|
|
1744
|
-
function
|
|
1741
|
+
function bo({ delayDuration: e = 400, ...t }) {
|
|
1745
1742
|
return /* @__PURE__ */ n(Z.Provider, { "data-slot": "tooltip-provider", delayDuration: e, ...t });
|
|
1746
1743
|
}
|
|
1747
1744
|
function Ve({ ...e }) {
|
|
1748
|
-
return /* @__PURE__ */ n(
|
|
1745
|
+
return /* @__PURE__ */ n(bo, { children: /* @__PURE__ */ n(Z.Root, { "data-slot": "tooltip", ...e }) });
|
|
1749
1746
|
}
|
|
1750
1747
|
function Qe({ ...e }) {
|
|
1751
1748
|
return /* @__PURE__ */ n(Z.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
@@ -1756,8 +1753,8 @@ function We({
|
|
|
1756
1753
|
children: s,
|
|
1757
1754
|
...r
|
|
1758
1755
|
}) {
|
|
1759
|
-
const o =
|
|
1760
|
-
return /* @__PURE__ */ n(Z.Portal, { container: o, children: /* @__PURE__ */
|
|
1756
|
+
const o = Q();
|
|
1757
|
+
return /* @__PURE__ */ n(Z.Portal, { container: o, children: /* @__PURE__ */ d(
|
|
1761
1758
|
Z.Content,
|
|
1762
1759
|
{
|
|
1763
1760
|
"data-slot": "tooltip-content",
|
|
@@ -1774,26 +1771,26 @@ function We({
|
|
|
1774
1771
|
}
|
|
1775
1772
|
) });
|
|
1776
1773
|
}
|
|
1777
|
-
const
|
|
1778
|
-
function
|
|
1779
|
-
const { t: r } = k(["chat", "errors"]), o =
|
|
1780
|
-
l(!0), clearTimeout(
|
|
1774
|
+
const vo = 2e3, xo = "size-7 rounded-lg p-1 text-muted-foreground hover:bg-accent/70 hover:text-foreground disabled:opacity-40";
|
|
1775
|
+
function yo({ retry: e, feedback: t, edit: s }) {
|
|
1776
|
+
const { t: r } = k(["chat", "errors"]), o = M((m) => m.message.role === "user"), i = (m) => K.error(yt(m, r)), [a, l] = C(!1), c = P(void 0), u = () => {
|
|
1777
|
+
l(!0), clearTimeout(c.current), c.current = setTimeout(() => l(!1), vo);
|
|
1781
1778
|
};
|
|
1782
|
-
return /* @__PURE__ */
|
|
1779
|
+
return /* @__PURE__ */ d(
|
|
1783
1780
|
J.Root,
|
|
1784
1781
|
{
|
|
1785
1782
|
"aria-label": r("message_actions"),
|
|
1786
1783
|
className: `mt-1 flex items-center gap-0.5 group-data-[editing]/message:hidden ${o ? "justify-end" : "ms-0.5"}`,
|
|
1787
1784
|
children: [
|
|
1788
|
-
e && /* @__PURE__ */ n(oe, { label: r("retry"), children: /* @__PURE__ */ n(J.Reload, { "aria-label": r("retry"), children: /* @__PURE__ */ n(
|
|
1789
|
-
t && /* @__PURE__ */
|
|
1785
|
+
e && /* @__PURE__ */ n(oe, { label: r("retry"), children: /* @__PURE__ */ n(J.Reload, { "aria-label": r("retry"), children: /* @__PURE__ */ n(Fn, { className: "size-4" }) }) }),
|
|
1786
|
+
t && /* @__PURE__ */ d(R, { children: [
|
|
1790
1787
|
/* @__PURE__ */ n(oe, { label: r("like"), children: /* @__PURE__ */ n(
|
|
1791
1788
|
J.FeedbackPositive,
|
|
1792
1789
|
{
|
|
1793
1790
|
"aria-label": r("like"),
|
|
1794
1791
|
onError: i,
|
|
1795
1792
|
className: "data-[active]:text-primary",
|
|
1796
|
-
children: /* @__PURE__ */ n(
|
|
1793
|
+
children: /* @__PURE__ */ n(Bn, { className: "size-4" })
|
|
1797
1794
|
}
|
|
1798
1795
|
) }),
|
|
1799
1796
|
/* @__PURE__ */ n(oe, { label: r("dislike"), children: /* @__PURE__ */ n(
|
|
@@ -1802,12 +1799,12 @@ function No({ retry: e, feedback: t, edit: s }) {
|
|
|
1802
1799
|
"aria-label": r("dislike"),
|
|
1803
1800
|
onError: i,
|
|
1804
1801
|
className: "data-[active]:text-destructive",
|
|
1805
|
-
children: /* @__PURE__ */ n(
|
|
1802
|
+
children: /* @__PURE__ */ n(Un, { className: "size-4" })
|
|
1806
1803
|
}
|
|
1807
1804
|
) })
|
|
1808
1805
|
] }),
|
|
1809
|
-
s && /* @__PURE__ */ n(oe, { label: r("edit_message"), children: /* @__PURE__ */ n(J.Edit, { "aria-label": r("edit_message"), children: /* @__PURE__ */ n(
|
|
1810
|
-
/* @__PURE__ */ n(oe, { label: r("copy"), children: /* @__PURE__ */
|
|
1806
|
+
s && /* @__PURE__ */ n(oe, { label: r("edit_message"), children: /* @__PURE__ */ n(J.Edit, { "aria-label": r("edit_message"), children: /* @__PURE__ */ n(Hn, { className: "size-4" }) }) }),
|
|
1807
|
+
/* @__PURE__ */ n(oe, { label: r("copy"), children: /* @__PURE__ */ d(
|
|
1811
1808
|
J.Copy,
|
|
1812
1809
|
{
|
|
1813
1810
|
"aria-label": r("copy"),
|
|
@@ -1815,7 +1812,7 @@ function No({ retry: e, feedback: t, edit: s }) {
|
|
|
1815
1812
|
onError: () => K.error(r("copy_failed")),
|
|
1816
1813
|
className: "group/copy",
|
|
1817
1814
|
children: [
|
|
1818
|
-
/* @__PURE__ */ n(
|
|
1815
|
+
/* @__PURE__ */ n(kt, { className: "size-4 group-data-[copied]/copy:hidden" }),
|
|
1819
1816
|
/* @__PURE__ */ n(ce, { className: "hidden size-4 group-data-[copied]/copy:block" })
|
|
1820
1817
|
]
|
|
1821
1818
|
}
|
|
@@ -1826,12 +1823,12 @@ function No({ retry: e, feedback: t, edit: s }) {
|
|
|
1826
1823
|
);
|
|
1827
1824
|
}
|
|
1828
1825
|
function oe({ label: e, children: t }) {
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1826
|
+
return /* @__PURE__ */ d(Ve, { children: [
|
|
1827
|
+
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(F, { variant: "ghost", size: "sm", className: xo, asChild: !0, children: t }) }),
|
|
1831
1828
|
/* @__PURE__ */ n(We, { children: e })
|
|
1832
1829
|
] });
|
|
1833
1830
|
}
|
|
1834
|
-
const
|
|
1831
|
+
const wo = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg-transparent w-full", children: /* @__PURE__ */ n(
|
|
1835
1832
|
G.Root,
|
|
1836
1833
|
{
|
|
1837
1834
|
className: p(
|
|
@@ -1846,10 +1843,10 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1846
1843
|
),
|
|
1847
1844
|
...t
|
|
1848
1845
|
}
|
|
1849
|
-
) }),
|
|
1846
|
+
) }), No = In(
|
|
1850
1847
|
function({ className: t, placeholder: s, ...r }, o) {
|
|
1851
|
-
const { dir: i } = $(), a = Pe().draft, l =
|
|
1852
|
-
return /* @__PURE__ */
|
|
1848
|
+
const { dir: i } = $(), a = Pe().draft, l = L(a, i), c = `${a || s || ""} `;
|
|
1849
|
+
return /* @__PURE__ */ d("div", { className: "grid min-w-0 flex-1", children: [
|
|
1853
1850
|
/* @__PURE__ */ n(
|
|
1854
1851
|
"div",
|
|
1855
1852
|
{
|
|
@@ -1859,7 +1856,7 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1859
1856
|
"invisible col-start-1 row-start-1 max-h-[6lh] overflow-hidden",
|
|
1860
1857
|
"whitespace-pre-wrap break-words px-2 py-2.5 text-base"
|
|
1861
1858
|
),
|
|
1862
|
-
children:
|
|
1859
|
+
children: c
|
|
1863
1860
|
}
|
|
1864
1861
|
),
|
|
1865
1862
|
/* @__PURE__ */ n(
|
|
@@ -1884,15 +1881,15 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1884
1881
|
)
|
|
1885
1882
|
] });
|
|
1886
1883
|
}
|
|
1887
|
-
),
|
|
1884
|
+
), ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: p("flex shrink-0 items-center gap-1.5 pb-1", e), ...t }), Co = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: p("flex items-center gap-0.5", e), ...t }), tn = ({
|
|
1888
1885
|
variant: e = "ghost",
|
|
1889
1886
|
className: t,
|
|
1890
1887
|
size: s,
|
|
1891
1888
|
...r
|
|
1892
1889
|
}) => {
|
|
1893
|
-
const o = s ??
|
|
1890
|
+
const o = s ?? zn.count(r.children) > 1 ? "default" : "icon";
|
|
1894
1891
|
return /* @__PURE__ */ n(
|
|
1895
|
-
|
|
1892
|
+
F,
|
|
1896
1893
|
{
|
|
1897
1894
|
className: p(
|
|
1898
1895
|
"shrink-0 gap-1.5 rounded-xl",
|
|
@@ -1908,7 +1905,7 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1908
1905
|
...r
|
|
1909
1906
|
}
|
|
1910
1907
|
);
|
|
1911
|
-
},
|
|
1908
|
+
}, mt = ({
|
|
1912
1909
|
className: e,
|
|
1913
1910
|
variant: t = "default",
|
|
1914
1911
|
size: s = "icon",
|
|
@@ -1917,11 +1914,11 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1917
1914
|
...i
|
|
1918
1915
|
}) => {
|
|
1919
1916
|
const { t: a } = k("chat");
|
|
1920
|
-
let l = /* @__PURE__ */ n(
|
|
1921
|
-
return r === "submitted" || r === "streaming" ? (l = /* @__PURE__ */ n(
|
|
1922
|
-
|
|
1917
|
+
let l = /* @__PURE__ */ n(_t, { className: "size-4" }), c = a("send_message");
|
|
1918
|
+
return r === "submitted" || r === "streaming" ? (l = /* @__PURE__ */ n(Vn, { className: "size-3.5 fill-current" }), c = a("stop_generation")) : r === "error" && (l = /* @__PURE__ */ n(V, { className: "size-4" }), c = a("send_failed")), /* @__PURE__ */ n(
|
|
1919
|
+
F,
|
|
1923
1920
|
{
|
|
1924
|
-
"aria-label":
|
|
1921
|
+
"aria-label": c,
|
|
1925
1922
|
className: p(
|
|
1926
1923
|
"shrink-0 rounded-lg size-9",
|
|
1927
1924
|
"bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -1938,7 +1935,7 @@ const ko = ({ className: e, ...t }) => /* @__PURE__ */ n("div", { className: "bg
|
|
|
1938
1935
|
}
|
|
1939
1936
|
);
|
|
1940
1937
|
}, we = 768;
|
|
1941
|
-
function
|
|
1938
|
+
function _o() {
|
|
1942
1939
|
const [e, t] = ke.useState(void 0);
|
|
1943
1940
|
return ke.useEffect(() => {
|
|
1944
1941
|
const s = window.matchMedia(`(max-width: ${we - 1}px)`), r = () => {
|
|
@@ -1949,9 +1946,9 @@ function zo() {
|
|
|
1949
1946
|
};
|
|
1950
1947
|
}, []), !!e;
|
|
1951
1948
|
}
|
|
1952
|
-
function
|
|
1953
|
-
const { t: r } = k(["chat", "errors"]), { file: o, status: i, progress: a, error: l, retryable:
|
|
1954
|
-
return /* @__PURE__ */
|
|
1949
|
+
function So({ entry: e, onRemove: t, onRetry: s }) {
|
|
1950
|
+
const { t: r } = k(["chat", "errors"]), { file: o, status: i, progress: a, error: l, retryable: c } = e, u = zo(o.type.startsWith("image/") ? o : null), m = i === "failed";
|
|
1951
|
+
return /* @__PURE__ */ d(
|
|
1955
1952
|
"div",
|
|
1956
1953
|
{
|
|
1957
1954
|
className: `flex max-w-full items-center gap-2 rounded-xl border bg-muted/60 py-1.5 ps-2.5 pe-1.5 text-sm ${m ? "border-destructive/50" : "border-border/60"}`,
|
|
@@ -1964,8 +1961,8 @@ function Io({ entry: e, onRemove: t, onRetry: s }) {
|
|
|
1964
1961
|
alt: o.name,
|
|
1965
1962
|
className: "size-7 shrink-0 rounded-lg object-cover ring-1 ring-border/50"
|
|
1966
1963
|
}
|
|
1967
|
-
) : /* @__PURE__ */ n(
|
|
1968
|
-
/* @__PURE__ */
|
|
1964
|
+
) : /* @__PURE__ */ n(Ct, { className: "size-3.5 shrink-0 text-muted-foreground", "aria-hidden": !0 }),
|
|
1965
|
+
/* @__PURE__ */ d("span", { className: "flex min-w-0 flex-col", children: [
|
|
1969
1966
|
/* @__PURE__ */ n("span", { className: "max-w-[120px] truncate text-xs font-medium text-foreground/80", dir: "auto", children: o.name }),
|
|
1970
1967
|
i === "uploading" && /* @__PURE__ */ n(
|
|
1971
1968
|
"span",
|
|
@@ -1985,19 +1982,19 @@ function Io({ entry: e, onRemove: t, onRetry: s }) {
|
|
|
1985
1982
|
)
|
|
1986
1983
|
}
|
|
1987
1984
|
),
|
|
1988
|
-
m && /* @__PURE__ */
|
|
1989
|
-
/* @__PURE__ */ n(
|
|
1990
|
-
/* @__PURE__ */ n("span", { className: "max-w-[180px] truncate", title:
|
|
1985
|
+
m && /* @__PURE__ */ d("span", { className: "flex items-center gap-1 text-xs text-destructive", role: "alert", children: [
|
|
1986
|
+
/* @__PURE__ */ n(Qn, { className: "size-3 shrink-0", "aria-hidden": !0 }),
|
|
1987
|
+
/* @__PURE__ */ n("span", { className: "max-w-[180px] truncate", title: pt(l, r), children: pt(l, r) })
|
|
1991
1988
|
] })
|
|
1992
1989
|
] }),
|
|
1993
|
-
m &&
|
|
1990
|
+
m && c && /* @__PURE__ */ n(
|
|
1994
1991
|
"button",
|
|
1995
1992
|
{
|
|
1996
1993
|
type: "button",
|
|
1997
1994
|
onClick: s,
|
|
1998
1995
|
className: "flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1999
1996
|
"aria-label": r("retry_upload", { name: o.name }),
|
|
2000
|
-
children: /* @__PURE__ */ n(
|
|
1997
|
+
children: /* @__PURE__ */ n(Wn, { className: "size-3.5", "aria-hidden": !0 })
|
|
2001
1998
|
}
|
|
2002
1999
|
),
|
|
2003
2000
|
/* @__PURE__ */ n(
|
|
@@ -2007,17 +2004,17 @@ function Io({ entry: e, onRemove: t, onRetry: s }) {
|
|
|
2007
2004
|
onClick: t,
|
|
2008
2005
|
className: "flex size-6 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-destructive/15 hover:text-destructive focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2009
2006
|
"aria-label": `${r("remove_file")}: ${o.name}`,
|
|
2010
|
-
children: /* @__PURE__ */ n(
|
|
2007
|
+
children: /* @__PURE__ */ n(V, { className: "size-3", "aria-hidden": !0 })
|
|
2011
2008
|
}
|
|
2012
2009
|
)
|
|
2013
2010
|
]
|
|
2014
2011
|
}
|
|
2015
2012
|
);
|
|
2016
2013
|
}
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
2014
|
+
function pt(e, t) {
|
|
2015
|
+
return It(e) ? yt(e, t) : t("upload_failed");
|
|
2019
2016
|
}
|
|
2020
|
-
function
|
|
2017
|
+
function zo(e) {
|
|
2021
2018
|
const [t, s] = C();
|
|
2022
2019
|
return T(() => {
|
|
2023
2020
|
if (!e) return;
|
|
@@ -2027,15 +2024,15 @@ function Do(e) {
|
|
|
2027
2024
|
};
|
|
2028
2025
|
}, [e]), t;
|
|
2029
2026
|
}
|
|
2030
|
-
function
|
|
2027
|
+
function Io({ reference: e, remove: t, focus: s }) {
|
|
2031
2028
|
const { t: r } = k(["chat"]);
|
|
2032
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ d(
|
|
2033
2030
|
"div",
|
|
2034
2031
|
{
|
|
2035
2032
|
className: "group/reference-chip flex min-w-0 max-w-[min(100%,260px)] items-center gap-2 rounded-lg border border-primary/15 bg-primary/8 px-2.5 py-1.5 text-start text-xs shadow-sm transition hover:bg-primary/12",
|
|
2036
2033
|
title: e.excerpt,
|
|
2037
2034
|
children: [
|
|
2038
|
-
/* @__PURE__ */
|
|
2035
|
+
/* @__PURE__ */ d(
|
|
2039
2036
|
"button",
|
|
2040
2037
|
{
|
|
2041
2038
|
type: "button",
|
|
@@ -2057,32 +2054,32 @@ function To({ reference: e, remove: t, focus: s }) {
|
|
|
2057
2054
|
className: "ms-0.5 flex size-4 shrink-0 items-center justify-center rounded-full text-muted-foreground/60 transition hover:bg-destructive/15 hover:text-destructive",
|
|
2058
2055
|
"aria-label": `${r("remove_reference")}: ${e.excerpt}`,
|
|
2059
2056
|
title: r("remove_reference"),
|
|
2060
|
-
children: /* @__PURE__ */ n(
|
|
2057
|
+
children: /* @__PURE__ */ n(V, { className: "size-2.5" })
|
|
2061
2058
|
}
|
|
2062
2059
|
)
|
|
2063
2060
|
]
|
|
2064
2061
|
}
|
|
2065
2062
|
);
|
|
2066
2063
|
}
|
|
2067
|
-
const
|
|
2068
|
-
function
|
|
2064
|
+
const ft = ["byte", "kilobyte", "megabyte", "gigabyte"];
|
|
2065
|
+
function Do(e, t) {
|
|
2069
2066
|
let s = e, r = 0;
|
|
2070
|
-
for (; s >= 1024 && r <
|
|
2067
|
+
for (; s >= 1024 && r < ft.length - 1; )
|
|
2071
2068
|
s /= 1024, r += 1;
|
|
2072
2069
|
return new Intl.NumberFormat(t, {
|
|
2073
2070
|
style: "unit",
|
|
2074
|
-
unit:
|
|
2071
|
+
unit: ft[r],
|
|
2075
2072
|
unitDisplay: "short",
|
|
2076
2073
|
maximumFractionDigits: r === 0 ? 0 : 1
|
|
2077
2074
|
}).format(s);
|
|
2078
2075
|
}
|
|
2079
|
-
function
|
|
2076
|
+
function To(e, { t, language: s, maxSize: r }) {
|
|
2080
2077
|
for (const { file: o, reason: i } of e)
|
|
2081
2078
|
i === "unsupported_type" ? K.error(t("chat:file_type_not_supported", { name: o.name })) : i === "too_large" && r !== void 0 && K.error(
|
|
2082
|
-
t("chat:file_too_large", { name: o.name, size:
|
|
2079
|
+
t("chat:file_too_large", { name: o.name, size: Do(r, s) })
|
|
2083
2080
|
);
|
|
2084
2081
|
}
|
|
2085
|
-
const
|
|
2082
|
+
const Po = {
|
|
2086
2083
|
mic_denied: "chat:voice_mic_denied",
|
|
2087
2084
|
mic_missing: "chat:voice_mic_missing",
|
|
2088
2085
|
mic_error: "chat:voice_mic_error",
|
|
@@ -2091,15 +2088,15 @@ const Ro = {
|
|
|
2091
2088
|
failed: "chat:voice_failed"
|
|
2092
2089
|
};
|
|
2093
2090
|
function Mo(e, t) {
|
|
2094
|
-
const s = t(
|
|
2091
|
+
const s = t(Po[e.kind]);
|
|
2095
2092
|
e.kind === "failed" ? K.error(s, { action: { label: t("chat:voice_retry"), onClick: e.retry } }) : e.kind === "no_speech" || e.kind === "time_limit" ? K(s) : K.error(s);
|
|
2096
2093
|
}
|
|
2097
|
-
function
|
|
2094
|
+
function nn({
|
|
2098
2095
|
enabled: e = !0
|
|
2099
2096
|
} = {}) {
|
|
2100
|
-
const { t, i18n: s } = k(["chat"]), { dir: r } = $(), o = se((y) => y.welcome), i = typeof o?.greeting == "function", a = typeof o?.typingPrompts == "function", { user: l, firstName:
|
|
2097
|
+
const { t, i18n: s } = k(["chat"]), { dir: r } = $(), o = se((y) => y.welcome), i = typeof o?.greeting == "function", a = typeof o?.typingPrompts == "function", { user: l, firstName: c, isLoading: u } = xn({
|
|
2101
2098
|
enabled: e && (i || a)
|
|
2102
|
-
}), m = o?.typingPrompts, h = typeof m == "function" ? m({ user: l, firstName:
|
|
2099
|
+
}), m = o?.typingPrompts, h = typeof m == "function" ? m({ user: l, firstName: c, isLoading: u, t }) : m, b = t("welcome.typing_prompts", { returnObjects: !0, defaultValue: [] }), g = (h ? h.map((y) => t(y)) : Array.isArray(b) ? b : []).filter((y) => typeof y == "string" && y !== ""), f = o?.greeting, w = typeof f == "function" ? f({ user: l, firstName: c, isLoading: u, t }) : f ? nt(f, t, s, ["chat"]) : t("welcome.title"), x = o?.subtitle ? nt(o.subtitle, t, s, ["chat"]) : null;
|
|
2103
2100
|
return {
|
|
2104
2101
|
title: w,
|
|
2105
2102
|
subtitle: x,
|
|
@@ -2108,50 +2105,50 @@ function sn({
|
|
|
2108
2105
|
icon: o?.icon
|
|
2109
2106
|
};
|
|
2110
2107
|
}
|
|
2111
|
-
const
|
|
2112
|
-
function
|
|
2113
|
-
const { typingSpeed: s = 20, deletingSpeed: r = 15, pauseMs: o = 2e3, startDelayMs: i = 250 } = t, a = e.join("\0"), [l,
|
|
2108
|
+
const Ro = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
2109
|
+
function Ao(e, t = {}) {
|
|
2110
|
+
const { typingSpeed: s = 20, deletingSpeed: r = 15, pauseMs: o = 2e3, startDelayMs: i = 250 } = t, a = e.join("\0"), [l, c] = C(""), u = P(e);
|
|
2114
2111
|
return u.current = e, T(() => {
|
|
2115
2112
|
const m = u.current;
|
|
2116
2113
|
if (m.length === 0) {
|
|
2117
|
-
|
|
2114
|
+
c("");
|
|
2118
2115
|
return;
|
|
2119
2116
|
}
|
|
2120
2117
|
let h, b = 0, g = "typing", f = 0;
|
|
2121
|
-
if (
|
|
2122
|
-
|
|
2118
|
+
if (Ro()) {
|
|
2119
|
+
c(m[0]);
|
|
2123
2120
|
const y = setInterval(() => {
|
|
2124
|
-
b = (b + 1) % m.length,
|
|
2121
|
+
b = (b + 1) % m.length, c(m[b]);
|
|
2125
2122
|
}, o);
|
|
2126
2123
|
return () => clearInterval(y);
|
|
2127
2124
|
}
|
|
2128
2125
|
const x = () => {
|
|
2129
2126
|
const y = m[b];
|
|
2130
2127
|
if (g === "typing") {
|
|
2131
|
-
f++,
|
|
2128
|
+
f++, c(y.slice(0, f)), f >= y.length ? (g = "pausing", h = setTimeout(x, o)) : h = setTimeout(x, s);
|
|
2132
2129
|
return;
|
|
2133
2130
|
}
|
|
2134
2131
|
if (g === "pausing") {
|
|
2135
2132
|
g = "deleting", h = setTimeout(x, r);
|
|
2136
2133
|
return;
|
|
2137
2134
|
}
|
|
2138
|
-
f--,
|
|
2135
|
+
f--, c(y.slice(0, Math.max(f, 0))), f <= 0 ? (g = "typing", b = (b + 1) % m.length, h = setTimeout(x, s)) : h = setTimeout(x, r);
|
|
2139
2136
|
};
|
|
2140
|
-
return
|
|
2137
|
+
return c(""), h = setTimeout(x, i), () => clearTimeout(h);
|
|
2141
2138
|
}, [a, s, r, o, i]), l;
|
|
2142
2139
|
}
|
|
2143
|
-
function
|
|
2140
|
+
function Eo({ ...e }) {
|
|
2144
2141
|
return /* @__PURE__ */ n(ie.Root, { "data-slot": "dropdown-menu", ...e });
|
|
2145
2142
|
}
|
|
2146
|
-
function
|
|
2143
|
+
function Oo({ ...e }) {
|
|
2147
2144
|
return /* @__PURE__ */ n(ie.Trigger, { "data-slot": "dropdown-menu-trigger", ...e });
|
|
2148
2145
|
}
|
|
2149
|
-
function
|
|
2146
|
+
function qo({
|
|
2150
2147
|
className: e,
|
|
2151
2148
|
sideOffset: t = 4,
|
|
2152
2149
|
...s
|
|
2153
2150
|
}) {
|
|
2154
|
-
const r =
|
|
2151
|
+
const r = Q();
|
|
2155
2152
|
return /* @__PURE__ */ n(ie.Portal, { container: r, children: /* @__PURE__ */ n(
|
|
2156
2153
|
ie.Content,
|
|
2157
2154
|
{
|
|
@@ -2165,7 +2162,7 @@ function $o({
|
|
|
2165
2162
|
}
|
|
2166
2163
|
) });
|
|
2167
2164
|
}
|
|
2168
|
-
function
|
|
2165
|
+
function jo({
|
|
2169
2166
|
className: e,
|
|
2170
2167
|
inset: t,
|
|
2171
2168
|
variant: s = "default",
|
|
@@ -2185,9 +2182,9 @@ function Fo({
|
|
|
2185
2182
|
}
|
|
2186
2183
|
);
|
|
2187
2184
|
}
|
|
2188
|
-
function
|
|
2189
|
-
const r =
|
|
2190
|
-
return /* @__PURE__ */ n(_.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */
|
|
2185
|
+
function $o({ open: e, onOpenChange: t, onCapture: s }) {
|
|
2186
|
+
const r = Q();
|
|
2187
|
+
return /* @__PURE__ */ n(_.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ d(_.Portal, { container: r, children: [
|
|
2191
2188
|
/* @__PURE__ */ n(_.Overlay, { className: "fixed inset-0 z-50 bg-black/60 backdrop-blur-sm data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0" }),
|
|
2192
2189
|
/* @__PURE__ */ n(
|
|
2193
2190
|
_.Content,
|
|
@@ -2198,7 +2195,7 @@ function Lo({ open: e, onOpenChange: t, onCapture: s }) {
|
|
|
2198
2195
|
},
|
|
2199
2196
|
className: "fixed inset-0 z-50 m-auto h-fit w-[calc(100%-2rem)] max-w-2xl overflow-hidden rounded-3xl bg-black shadow-2xl ring-1 ring-white/10 outline-none duration-200 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
2200
2197
|
children: /* @__PURE__ */ n(
|
|
2201
|
-
|
|
2198
|
+
Lo,
|
|
2202
2199
|
{
|
|
2203
2200
|
onKeep: (o) => {
|
|
2204
2201
|
s(o), t(!1);
|
|
@@ -2209,9 +2206,9 @@ function Lo({ open: e, onOpenChange: t, onCapture: s }) {
|
|
|
2209
2206
|
)
|
|
2210
2207
|
] }) });
|
|
2211
2208
|
}
|
|
2212
|
-
const
|
|
2213
|
-
function
|
|
2214
|
-
const { t } = k("chat"), s = P(null), [r, o] = C(), [i, a] = C(null), [l,
|
|
2209
|
+
const gt = "grid size-10 place-items-center rounded-full bg-white/12 text-white backdrop-blur-md transition hover:bg-white/20 active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60", ht = "flex h-10 items-center gap-2 rounded-full px-4 text-sm font-medium transition active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60";
|
|
2210
|
+
function Lo({ onKeep: e }) {
|
|
2211
|
+
const { t } = k("chat"), s = P(null), [r, o] = C(), [i, a] = C(null), [l, c] = C([]), [u, m] = C(!1), [h, b] = C(!1), [g, f] = C(null);
|
|
2215
2212
|
T(() => {
|
|
2216
2213
|
let N = !1, z = null;
|
|
2217
2214
|
return navigator.mediaDevices.getUserMedia({
|
|
@@ -2228,7 +2225,7 @@ function Bo({ onKeep: e }) {
|
|
|
2228
2225
|
}
|
|
2229
2226
|
z = S, a(S);
|
|
2230
2227
|
const O = await navigator.mediaDevices.enumerateDevices();
|
|
2231
|
-
N ||
|
|
2228
|
+
N || c(O.filter((D) => D.kind === "videoinput").map((D) => D.deviceId));
|
|
2232
2229
|
}).catch(() => {
|
|
2233
2230
|
N || b(!0);
|
|
2234
2231
|
}), () => {
|
|
@@ -2256,7 +2253,7 @@ function Bo({ onKeep: e }) {
|
|
|
2256
2253
|
const N = (/* @__PURE__ */ new Date()).toISOString().slice(0, 19).replace(/[-:]/g, "").replace("T", "-");
|
|
2257
2254
|
e(new File([g.blob], `photo-${N}.jpg`, { type: "image/jpeg" }));
|
|
2258
2255
|
};
|
|
2259
|
-
return /* @__PURE__ */
|
|
2256
|
+
return /* @__PURE__ */ d("div", { className: "relative aspect-[3/4] max-h-[80dvh] w-full sm:aspect-video", children: [
|
|
2260
2257
|
/* @__PURE__ */ n(
|
|
2261
2258
|
"video",
|
|
2262
2259
|
{
|
|
@@ -2280,38 +2277,38 @@ function Bo({ onKeep: e }) {
|
|
|
2280
2277
|
className: "absolute inset-0 size-full object-cover animate-in fade-in-0 zoom-in-[1.02] duration-200"
|
|
2281
2278
|
}
|
|
2282
2279
|
),
|
|
2283
|
-
h ? /* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */ n("span", { className: "grid size-14 place-items-center rounded-full bg-white/10", children: /* @__PURE__ */ n(
|
|
2280
|
+
h ? /* @__PURE__ */ d("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-4 px-8 text-center", children: [
|
|
2281
|
+
/* @__PURE__ */ n("span", { className: "grid size-14 place-items-center rounded-full bg-white/10", children: /* @__PURE__ */ n(Gn, { className: "size-6 text-white/80" }) }),
|
|
2285
2282
|
/* @__PURE__ */ n("p", { className: "max-w-xs text-sm leading-relaxed text-white/70", children: t("camera_error") })
|
|
2286
|
-
] }) : !u && /* @__PURE__ */ n("div", { className: "absolute inset-0 grid place-items-center", children: /* @__PURE__ */ n(
|
|
2287
|
-
/* @__PURE__ */
|
|
2283
|
+
] }) : !u && /* @__PURE__ */ n("div", { className: "absolute inset-0 grid place-items-center", children: /* @__PURE__ */ n(St, { className: "size-6 animate-spin text-white/50" }) }),
|
|
2284
|
+
/* @__PURE__ */ d("div", { className: "absolute inset-x-0 top-0 flex items-center justify-between gap-4 bg-gradient-to-b from-black/55 to-transparent px-4 pt-4 pb-10", children: [
|
|
2288
2285
|
/* @__PURE__ */ n(_.Title, { className: "ps-1 text-sm font-medium text-white/90", children: t("camera_title") }),
|
|
2289
|
-
/* @__PURE__ */ n(_.Close, { className:
|
|
2286
|
+
/* @__PURE__ */ n(_.Close, { className: gt, "aria-label": t("camera_close"), children: /* @__PURE__ */ n(V, { className: "size-4.5" }) })
|
|
2290
2287
|
] }),
|
|
2291
|
-
!h && /* @__PURE__ */ n("div", { className: "absolute inset-x-0 bottom-0 grid grid-cols-[1fr_auto_1fr] items-center gap-4 bg-gradient-to-t from-black/65 to-transparent px-5 pt-14 pb-5", children: g ? /* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2288
|
+
!h && /* @__PURE__ */ n("div", { className: "absolute inset-x-0 bottom-0 grid grid-cols-[1fr_auto_1fr] items-center gap-4 bg-gradient-to-t from-black/65 to-transparent px-5 pt-14 pb-5", children: g ? /* @__PURE__ */ d(R, { children: [
|
|
2289
|
+
/* @__PURE__ */ d(
|
|
2293
2290
|
"button",
|
|
2294
2291
|
{
|
|
2295
2292
|
type: "button",
|
|
2296
2293
|
onClick: () => f(null),
|
|
2297
2294
|
className: p(
|
|
2298
|
-
|
|
2295
|
+
ht,
|
|
2299
2296
|
"justify-self-start bg-white/12 text-white backdrop-blur-md hover:bg-white/20"
|
|
2300
2297
|
),
|
|
2301
2298
|
children: [
|
|
2302
|
-
/* @__PURE__ */ n(
|
|
2299
|
+
/* @__PURE__ */ n(Kn, { className: "size-4" }),
|
|
2303
2300
|
t("camera_retake")
|
|
2304
2301
|
]
|
|
2305
2302
|
}
|
|
2306
2303
|
),
|
|
2307
2304
|
/* @__PURE__ */ n("span", {}),
|
|
2308
|
-
/* @__PURE__ */
|
|
2305
|
+
/* @__PURE__ */ d(
|
|
2309
2306
|
"button",
|
|
2310
2307
|
{
|
|
2311
2308
|
type: "button",
|
|
2312
2309
|
onClick: I,
|
|
2313
2310
|
className: p(
|
|
2314
|
-
|
|
2311
|
+
ht,
|
|
2315
2312
|
"justify-self-end bg-white text-black shadow-lg hover:bg-white/90"
|
|
2316
2313
|
),
|
|
2317
2314
|
children: [
|
|
@@ -2320,7 +2317,7 @@ function Bo({ onKeep: e }) {
|
|
|
2320
2317
|
]
|
|
2321
2318
|
}
|
|
2322
2319
|
)
|
|
2323
|
-
] }) : /* @__PURE__ */
|
|
2320
|
+
] }) : /* @__PURE__ */ d(R, { children: [
|
|
2324
2321
|
/* @__PURE__ */ n("span", {}),
|
|
2325
2322
|
/* @__PURE__ */ n(
|
|
2326
2323
|
"button",
|
|
@@ -2340,41 +2337,41 @@ function Bo({ onKeep: e }) {
|
|
|
2340
2337
|
onClick: y,
|
|
2341
2338
|
disabled: !u,
|
|
2342
2339
|
"aria-label": t("camera_switch"),
|
|
2343
|
-
className: p(
|
|
2344
|
-
children: /* @__PURE__ */ n(
|
|
2340
|
+
className: p(gt, "size-11 justify-self-end disabled:opacity-40"),
|
|
2341
|
+
children: /* @__PURE__ */ n(Jn, { className: "size-5" })
|
|
2345
2342
|
}
|
|
2346
2343
|
) : /* @__PURE__ */ n("span", {})
|
|
2347
2344
|
] }) })
|
|
2348
2345
|
] });
|
|
2349
2346
|
}
|
|
2350
|
-
const
|
|
2347
|
+
const sn = {
|
|
2351
2348
|
camera: {
|
|
2352
|
-
icon:
|
|
2349
|
+
icon: es,
|
|
2353
2350
|
label: "attach_camera"
|
|
2354
2351
|
},
|
|
2355
2352
|
gallery: {
|
|
2356
|
-
icon:
|
|
2353
|
+
icon: Zn,
|
|
2357
2354
|
label: "attach_gallery"
|
|
2358
2355
|
},
|
|
2359
2356
|
files: {
|
|
2360
|
-
icon:
|
|
2357
|
+
icon: Xn,
|
|
2361
2358
|
label: "attach_files"
|
|
2362
2359
|
}
|
|
2363
2360
|
};
|
|
2364
|
-
function
|
|
2361
|
+
function Fo() {
|
|
2365
2362
|
return window.matchMedia("(pointer: coarse)").matches ? "native" : "mediaDevices" in navigator ? "webcam" : null;
|
|
2366
2363
|
}
|
|
2367
|
-
function
|
|
2368
|
-
const { t: r } = k("chat"), { dir: o } = $(), [i, a] = C(!1), [l,
|
|
2364
|
+
function Bo({ disabled: e, addFiles: t, isMobile: s }) {
|
|
2365
|
+
const { t: r } = k("chat"), { dir: o } = $(), [i, a] = C(!1), [l, c] = C(!1), [u] = C(Fo), m = {
|
|
2369
2366
|
camera: P(null),
|
|
2370
2367
|
gallery: P(null),
|
|
2371
2368
|
files: P(null)
|
|
2372
2369
|
}, h = De()?.attachments.types ?? [], b = h.filter((v) => v.startsWith("image/")), g = b.length ? [...u ? ["camera"] : [], "gallery", "files"] : ["files"], f = (v) => {
|
|
2373
|
-
v === "camera" && u === "webcam" ?
|
|
2370
|
+
v === "camera" && u === "webcam" ? c(!0) : m[v].current?.click();
|
|
2374
2371
|
}, w = (v) => {
|
|
2375
2372
|
v.target.files && t(Array.from(v.target.files)), v.target.value = "";
|
|
2376
2373
|
}, x = r("attach"), y = /* @__PURE__ */ n(
|
|
2377
|
-
|
|
2374
|
+
tn,
|
|
2378
2375
|
{
|
|
2379
2376
|
variant: "ghost",
|
|
2380
2377
|
disabled: e,
|
|
@@ -2382,7 +2379,7 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2382
2379
|
onClick: g.length === 1 ? () => f("files") : s ? () => a(!0) : void 0,
|
|
2383
2380
|
className: p(i && "bg-accent/60 text-foreground transition-colors active:scale-100"),
|
|
2384
2381
|
children: /* @__PURE__ */ n(
|
|
2385
|
-
|
|
2382
|
+
Yn,
|
|
2386
2383
|
{
|
|
2387
2384
|
className: p(
|
|
2388
2385
|
"size-6 transition-transform duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]",
|
|
@@ -2392,7 +2389,7 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2392
2389
|
)
|
|
2393
2390
|
}
|
|
2394
2391
|
);
|
|
2395
|
-
return /* @__PURE__ */
|
|
2392
|
+
return /* @__PURE__ */ d(R, { children: [
|
|
2396
2393
|
/* @__PURE__ */ n(
|
|
2397
2394
|
"input",
|
|
2398
2395
|
{
|
|
@@ -2426,13 +2423,13 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2426
2423
|
className: "hidden"
|
|
2427
2424
|
}
|
|
2428
2425
|
),
|
|
2429
|
-
g.length === 1 ? /* @__PURE__ */
|
|
2426
|
+
g.length === 1 ? /* @__PURE__ */ d(Ve, { children: [
|
|
2430
2427
|
/* @__PURE__ */ n(Qe, { asChild: !0, children: y }),
|
|
2431
2428
|
/* @__PURE__ */ n(We, { children: x })
|
|
2432
|
-
] }) : s ? /* @__PURE__ */
|
|
2429
|
+
] }) : s ? /* @__PURE__ */ d(R, { children: [
|
|
2433
2430
|
y,
|
|
2434
2431
|
/* @__PURE__ */ n(
|
|
2435
|
-
|
|
2432
|
+
Uo,
|
|
2436
2433
|
{
|
|
2437
2434
|
open: i,
|
|
2438
2435
|
onOpenChange: a,
|
|
@@ -2448,10 +2445,10 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2448
2445
|
// page unclickable once both have closed. Given the language's direction
|
|
2449
2446
|
// because Radix doesn't read the document's: it would lay the menu out
|
|
2450
2447
|
// left-to-right, and `align="start"` would hug the left edge in RTL too.
|
|
2451
|
-
/* @__PURE__ */
|
|
2452
|
-
/* @__PURE__ */ n(
|
|
2448
|
+
/* @__PURE__ */ d(Eo, { dir: o, modal: !1, open: i, onOpenChange: a, children: [
|
|
2449
|
+
/* @__PURE__ */ n(Oo, { asChild: !0, children: y }),
|
|
2453
2450
|
/* @__PURE__ */ n(
|
|
2454
|
-
|
|
2451
|
+
qo,
|
|
2455
2452
|
{
|
|
2456
2453
|
side: "bottom",
|
|
2457
2454
|
align: "start",
|
|
@@ -2459,9 +2456,9 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2459
2456
|
className: "min-w-0 rounded-2xl border-border/60 bg-popover p-1.5 shadow-xl",
|
|
2460
2457
|
onCloseAutoFocus: (v) => l && v.preventDefault(),
|
|
2461
2458
|
children: g.map((v) => {
|
|
2462
|
-
const { icon: I, label: N } =
|
|
2463
|
-
return /* @__PURE__ */
|
|
2464
|
-
|
|
2459
|
+
const { icon: I, label: N } = sn[v];
|
|
2460
|
+
return /* @__PURE__ */ d(
|
|
2461
|
+
jo,
|
|
2465
2462
|
{
|
|
2466
2463
|
onSelect: () => f(v),
|
|
2467
2464
|
className: "cursor-pointer gap-3 rounded-xl py-1.5 ps-1.5 pe-4 font-medium",
|
|
@@ -2478,18 +2475,18 @@ function Ho({ disabled: e, addFiles: t, isMobile: s }) {
|
|
|
2478
2475
|
] })
|
|
2479
2476
|
),
|
|
2480
2477
|
u === "webcam" && /* @__PURE__ */ n(
|
|
2481
|
-
|
|
2478
|
+
$o,
|
|
2482
2479
|
{
|
|
2483
2480
|
open: l,
|
|
2484
|
-
onOpenChange:
|
|
2481
|
+
onOpenChange: c,
|
|
2485
2482
|
onCapture: (v) => t([v])
|
|
2486
2483
|
}
|
|
2487
2484
|
)
|
|
2488
2485
|
] });
|
|
2489
2486
|
}
|
|
2490
|
-
function
|
|
2491
|
-
const i =
|
|
2492
|
-
return /* @__PURE__ */ n(_.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */
|
|
2487
|
+
function Uo({ open: e, onOpenChange: t, title: s, sources: r, onPick: o }) {
|
|
2488
|
+
const i = Q();
|
|
2489
|
+
return /* @__PURE__ */ n(_.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ d(_.Portal, { container: i, children: [
|
|
2493
2490
|
/* @__PURE__ */ n(_.Overlay, { className: "fixed inset-0 z-50 bg-overlay data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0" }),
|
|
2494
2491
|
/* @__PURE__ */ n(
|
|
2495
2492
|
_.Content,
|
|
@@ -2497,27 +2494,27 @@ function Vo({ open: e, onOpenChange: t, title: s, sources: r, onPick: o }) {
|
|
|
2497
2494
|
"aria-describedby": void 0,
|
|
2498
2495
|
onOpenAutoFocus: (a) => a.preventDefault(),
|
|
2499
2496
|
className: "fixed inset-x-0 bottom-0 z-50 outline-none duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom",
|
|
2500
|
-
children: /* @__PURE__ */ n(
|
|
2497
|
+
children: /* @__PURE__ */ n(Vo, { title: s, onDismiss: () => t(!1), children: /* @__PURE__ */ n("div", { className: p("grid gap-3", r.length === 3 ? "grid-cols-3" : "grid-cols-2"), children: r.map((a, l) => /* @__PURE__ */ n(Qo, { source: a, index: l, onPick: o }, a)) }) })
|
|
2501
2498
|
}
|
|
2502
2499
|
)
|
|
2503
2500
|
] }) });
|
|
2504
2501
|
}
|
|
2505
|
-
const
|
|
2506
|
-
function
|
|
2502
|
+
const Ho = 72;
|
|
2503
|
+
function Vo({
|
|
2507
2504
|
title: e,
|
|
2508
2505
|
onDismiss: t,
|
|
2509
2506
|
children: s
|
|
2510
2507
|
}) {
|
|
2511
|
-
const [r, o] = C(0), [i, a] = C(!1), l = P(0),
|
|
2508
|
+
const [r, o] = C(0), [i, a] = C(!1), l = P(0), c = (h) => {
|
|
2512
2509
|
l.current = h.clientY, a(!0), h.currentTarget.setPointerCapture(h.pointerId);
|
|
2513
2510
|
}, u = (h) => {
|
|
2514
2511
|
if (!i) return;
|
|
2515
2512
|
const b = h.clientY - l.current;
|
|
2516
2513
|
o(b > 0 ? b : -Math.sqrt(-b) * 2);
|
|
2517
2514
|
}, m = () => {
|
|
2518
|
-
a(!1), r >
|
|
2515
|
+
a(!1), r > Ho ? t() : o(0);
|
|
2519
2516
|
};
|
|
2520
|
-
return /* @__PURE__ */
|
|
2517
|
+
return /* @__PURE__ */ d(
|
|
2521
2518
|
"div",
|
|
2522
2519
|
{
|
|
2523
2520
|
className: "mx-auto w-full max-w-lg rounded-t-[1.75rem] border border-b-0 border-border/60 bg-popover px-4 pb-[max(1.25rem,env(safe-area-inset-bottom))] shadow-[0_-12px_48px_-16px_rgb(0_0_0/0.3)]",
|
|
@@ -2526,11 +2523,11 @@ function Wo({
|
|
|
2526
2523
|
transition: i ? "none" : "transform 250ms cubic-bezier(0.32,0.72,0,1)"
|
|
2527
2524
|
},
|
|
2528
2525
|
children: [
|
|
2529
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ d(
|
|
2530
2527
|
"div",
|
|
2531
2528
|
{
|
|
2532
2529
|
className: "cursor-grab touch-none pt-2.5 pb-5 select-none active:cursor-grabbing",
|
|
2533
|
-
onPointerDown:
|
|
2530
|
+
onPointerDown: c,
|
|
2534
2531
|
onPointerMove: u,
|
|
2535
2532
|
onPointerUp: m,
|
|
2536
2533
|
onPointerCancel: m,
|
|
@@ -2545,13 +2542,13 @@ function Wo({
|
|
|
2545
2542
|
}
|
|
2546
2543
|
);
|
|
2547
2544
|
}
|
|
2548
|
-
function
|
|
2545
|
+
function Qo({
|
|
2549
2546
|
source: e,
|
|
2550
2547
|
index: t,
|
|
2551
2548
|
onPick: s
|
|
2552
2549
|
}) {
|
|
2553
|
-
const { t: r } = k("chat"), { icon: o, label: i } =
|
|
2554
|
-
return /* @__PURE__ */
|
|
2550
|
+
const { t: r } = k("chat"), { icon: o, label: i } = sn[e];
|
|
2551
|
+
return /* @__PURE__ */ d(
|
|
2555
2552
|
"button",
|
|
2556
2553
|
{
|
|
2557
2554
|
type: "button",
|
|
@@ -2569,19 +2566,19 @@ function Go({
|
|
|
2569
2566
|
}
|
|
2570
2567
|
);
|
|
2571
2568
|
}
|
|
2572
|
-
function
|
|
2573
|
-
const { t: e } = k("chat"), t =
|
|
2574
|
-
return /* @__PURE__ */
|
|
2575
|
-
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(G.Voice, { asChild: !0, children: /* @__PURE__ */ n(
|
|
2569
|
+
function Wo() {
|
|
2570
|
+
const { t: e } = k("chat"), t = wt().status === "starting", s = e("voice_dictate");
|
|
2571
|
+
return /* @__PURE__ */ d(Ve, { children: [
|
|
2572
|
+
/* @__PURE__ */ n(Qe, { asChild: !0, children: /* @__PURE__ */ n(G.Voice, { asChild: !0, children: /* @__PURE__ */ n(tn, { "aria-label": s, children: t ? /* @__PURE__ */ n(St, { className: "size-5 animate-spin" }) : /* @__PURE__ */ n(ts, { className: "size-5" }) }) }) }),
|
|
2576
2573
|
/* @__PURE__ */ n(We, { children: s })
|
|
2577
2574
|
] });
|
|
2578
2575
|
}
|
|
2579
|
-
const
|
|
2580
|
-
() => import("./VoiceInput-
|
|
2581
|
-
),
|
|
2582
|
-
() => import("./VoiceInput-
|
|
2576
|
+
const Go = Me(
|
|
2577
|
+
() => import("./VoiceInput-DX0ZCnIA.js").then((e) => ({ default: e.VoiceRecordingBar }))
|
|
2578
|
+
), Ko = Me(
|
|
2579
|
+
() => import("./VoiceInput-DX0ZCnIA.js").then((e) => ({ default: e.VoiceRecordingControls }))
|
|
2583
2580
|
);
|
|
2584
|
-
function
|
|
2581
|
+
function Jo({
|
|
2585
2582
|
onSend: e,
|
|
2586
2583
|
status: t,
|
|
2587
2584
|
isErrorVisible: s,
|
|
@@ -2589,31 +2586,31 @@ function Xo({
|
|
|
2589
2586
|
newChat: o,
|
|
2590
2587
|
className: i
|
|
2591
2588
|
}) {
|
|
2592
|
-
const { t: a, i18n: l } = k(["chat", "maintenance"]),
|
|
2589
|
+
const { t: a, i18n: l } = k(["chat", "maintenance"]), c = se((A) => A.composer), u = De(), { ChoiceQuestionDock: m, ComposerFooter: h, composerTools: b } = B(), { blocksChat: g } = yn(), {
|
|
2593
2590
|
question: f,
|
|
2594
2591
|
disabled: w,
|
|
2595
2592
|
dismissed: x,
|
|
2596
2593
|
setDismissed: y,
|
|
2597
2594
|
answer: v
|
|
2598
|
-
} = he(), I = x ? null : f, { typingMessages: N } =
|
|
2599
|
-
() => [...b ?? []].sort((
|
|
2595
|
+
} = he(), I = x ? null : f, { typingMessages: N } = nn({ enabled: !!o }), z = Ao(o ? N : []), S = !!o && N.length > 0, O = c?.placeholder ? a(c.placeholder) : a("input_placeholder"), D = g ? a("maintenance:composer_placeholder") : I?.allowCustom !== !1 && I ? a("choice_custom_placeholder") : S ? z : O, j = _o(), W = t === "streaming" || t === "submitted", ln = wn("voice_input", { enabled: !!c?.voice?.enabled }), cn = !!c?.voice?.enabled && ln === !0, Ke = u?.attachments, Je = (c?.attachments?.enabled ?? !1) && !!Ke, dn = E(
|
|
2596
|
+
() => [...b ?? []].sort((A, re) => (A.order ?? 0) - (re.order ?? 0)),
|
|
2600
2597
|
[b]
|
|
2601
|
-
), { draft:
|
|
2598
|
+
), { draft: un, setDraft: mn, isClosed: Ye } = Pe(), Xe = P(null), Ze = {
|
|
2602
2599
|
newChat: !!o,
|
|
2603
2600
|
threadId: r,
|
|
2604
2601
|
status: t,
|
|
2605
2602
|
disabled: W || Ye,
|
|
2606
|
-
draft:
|
|
2607
|
-
send: (
|
|
2608
|
-
W || Ye || !
|
|
2603
|
+
draft: un,
|
|
2604
|
+
send: (A) => {
|
|
2605
|
+
W || Ye || !A.trim() || e({ text: A });
|
|
2609
2606
|
},
|
|
2610
|
-
setDraft: (
|
|
2611
|
-
|
|
2607
|
+
setDraft: (A) => {
|
|
2608
|
+
fs(() => mn(A));
|
|
2612
2609
|
const re = Xe.current;
|
|
2613
|
-
re && (re.focus(), re.setSelectionRange(
|
|
2610
|
+
re && (re.focus(), re.setSelectionRange(A.length, A.length));
|
|
2614
2611
|
}
|
|
2615
2612
|
};
|
|
2616
|
-
return /* @__PURE__ */ n("div", { className: p("shrink-0 px-4 pb-5 pt-2 md:px-6 md:pb-6 w-full", i), children: /* @__PURE__ */
|
|
2613
|
+
return /* @__PURE__ */ n("div", { className: p("shrink-0 px-4 pb-5 pt-2 md:px-6 md:pb-6 w-full", i), children: /* @__PURE__ */ d("div", { className: "max-w-[50rem] mx-auto w-full", children: [
|
|
2617
2614
|
I && /* @__PURE__ */ n(
|
|
2618
2615
|
m,
|
|
2619
2616
|
{
|
|
@@ -2624,20 +2621,20 @@ function Xo({
|
|
|
2624
2621
|
}
|
|
2625
2622
|
),
|
|
2626
2623
|
/* @__PURE__ */ n("div", { className: "relative z-10", children: /* @__PURE__ */ n(
|
|
2627
|
-
|
|
2624
|
+
wo,
|
|
2628
2625
|
{
|
|
2629
2626
|
className: "relative",
|
|
2630
2627
|
onSend: e,
|
|
2631
2628
|
allowFiles: Je,
|
|
2632
|
-
maxVoiceDuration:
|
|
2633
|
-
onFilesRejected: (
|
|
2629
|
+
maxVoiceDuration: c?.voice?.maxDuration,
|
|
2630
|
+
onFilesRejected: (A) => To(A, {
|
|
2634
2631
|
t: a,
|
|
2635
2632
|
language: l.language,
|
|
2636
2633
|
maxSize: Ke?.max_size
|
|
2637
2634
|
}),
|
|
2638
|
-
onVoiceNotice: (
|
|
2635
|
+
onVoiceNotice: (A) => Mo(A, a),
|
|
2639
2636
|
children: /* @__PURE__ */ n(
|
|
2640
|
-
|
|
2637
|
+
Yo,
|
|
2641
2638
|
{
|
|
2642
2639
|
textareaRef: Xe,
|
|
2643
2640
|
slotProps: Ze,
|
|
@@ -2645,8 +2642,8 @@ function Xo({
|
|
|
2645
2642
|
placeholder: D,
|
|
2646
2643
|
isMobile: j,
|
|
2647
2644
|
attachEnabled: Je,
|
|
2648
|
-
voiceEnabled:
|
|
2649
|
-
tools:
|
|
2645
|
+
voiceEnabled: cn,
|
|
2646
|
+
tools: dn
|
|
2650
2647
|
}
|
|
2651
2648
|
)
|
|
2652
2649
|
}
|
|
@@ -2654,7 +2651,7 @@ function Xo({
|
|
|
2654
2651
|
h && /* @__PURE__ */ n(pe, { fallback: null, resetKeys: [r], children: /* @__PURE__ */ n(h, { ...Ze }) })
|
|
2655
2652
|
] }) });
|
|
2656
2653
|
}
|
|
2657
|
-
function
|
|
2654
|
+
function Yo({
|
|
2658
2655
|
textareaRef: e,
|
|
2659
2656
|
slotProps: t,
|
|
2660
2657
|
isErrorVisible: s,
|
|
@@ -2664,7 +2661,7 @@ function Zo({
|
|
|
2664
2661
|
voiceEnabled: a,
|
|
2665
2662
|
tools: l
|
|
2666
2663
|
}) {
|
|
2667
|
-
const { t:
|
|
2664
|
+
const { t: c, i18n: u } = k(["chat"]), m = se((D) => D.composer?.maxLength), { draft: h, files: b, references: g, isBusy: f } = Pe(), { addFiles: w, dragging: x } = Nn(), y = wt(), { threadId: v, status: I } = t, N = !!m && h.length >= m * 0.9;
|
|
2668
2665
|
T(() => {
|
|
2669
2666
|
o || e.current?.focus();
|
|
2670
2667
|
}, [v, o, e]);
|
|
@@ -2673,33 +2670,33 @@ function Zo({
|
|
|
2673
2670
|
z > S.current && !o && e.current?.focus(), S.current = z;
|
|
2674
2671
|
}, [z, o, e]);
|
|
2675
2672
|
const O = { ...t, isMobile: o, addFiles: w };
|
|
2676
|
-
return /* @__PURE__ */
|
|
2673
|
+
return /* @__PURE__ */ d(R, { children: [
|
|
2677
2674
|
x && /* @__PURE__ */ n(
|
|
2678
2675
|
"div",
|
|
2679
2676
|
{
|
|
2680
2677
|
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center rounded-lg border-2 border-dashed border-primary bg-background/90 text-sm font-medium text-foreground",
|
|
2681
2678
|
"aria-hidden": !0,
|
|
2682
|
-
children:
|
|
2679
|
+
children: c("drop_files")
|
|
2683
2680
|
}
|
|
2684
2681
|
),
|
|
2685
2682
|
i && !y.active && // Matches the toolbar's bottom padding, so the + lines up with the send button.
|
|
2686
|
-
/* @__PURE__ */ n("div", { className: "-ms-1 -me-1 flex shrink-0 items-center pb-1", children: /* @__PURE__ */ n(pe, { fallback: null, resetKeys: [v], children: /* @__PURE__ */ n(
|
|
2687
|
-
/* @__PURE__ */
|
|
2688
|
-
g.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2 px-2 pt-2", children: /* @__PURE__ */ n(G.References, { component:
|
|
2689
|
-
b.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2 px-2 pt-2", children: /* @__PURE__ */ n(G.Attachments, { component:
|
|
2690
|
-
y.active ? /* @__PURE__ */ n(Ce, { fallback: null, children: /* @__PURE__ */ n(
|
|
2691
|
-
|
|
2683
|
+
/* @__PURE__ */ n("div", { className: "-ms-1 -me-1 flex shrink-0 items-center pb-1", children: /* @__PURE__ */ n(pe, { fallback: null, resetKeys: [v], children: /* @__PURE__ */ n(Bo, { ...O }) }) }),
|
|
2684
|
+
/* @__PURE__ */ d("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
2685
|
+
g.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2 px-2 pt-2", children: /* @__PURE__ */ n(G.References, { component: Io }) }),
|
|
2686
|
+
b.length > 0 && /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2 px-2 pt-2", children: /* @__PURE__ */ n(G.Attachments, { component: Xo }) }),
|
|
2687
|
+
y.active ? /* @__PURE__ */ n(Ce, { fallback: null, children: /* @__PURE__ */ n(Go, {}) }) : /* @__PURE__ */ n(
|
|
2688
|
+
No,
|
|
2692
2689
|
{
|
|
2693
2690
|
ref: e,
|
|
2694
2691
|
autoFocus: !o,
|
|
2695
2692
|
placeholder: r,
|
|
2696
2693
|
maxLength: m,
|
|
2697
|
-
"aria-label":
|
|
2694
|
+
"aria-label": c("input_placeholder")
|
|
2698
2695
|
}
|
|
2699
2696
|
)
|
|
2700
2697
|
] }),
|
|
2701
|
-
/* @__PURE__ */ n(
|
|
2702
|
-
N && /* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ n(ko, { children: y.active ? /* @__PURE__ */ n(Ce, { fallback: null, children: /* @__PURE__ */ n(Ko, {}) }) : /* @__PURE__ */ d(R, { children: [
|
|
2699
|
+
N && /* @__PURE__ */ d(
|
|
2703
2700
|
"span",
|
|
2704
2701
|
{
|
|
2705
2702
|
className: p(
|
|
@@ -2714,30 +2711,30 @@ function Zo({
|
|
|
2714
2711
|
]
|
|
2715
2712
|
}
|
|
2716
2713
|
),
|
|
2717
|
-
/* @__PURE__ */
|
|
2714
|
+
/* @__PURE__ */ d(Co, { children: [
|
|
2718
2715
|
l.map(({ id: D, component: j }) => (
|
|
2719
2716
|
// Contained so a throwing tool can't take the composer or the other tools with it.
|
|
2720
2717
|
/* @__PURE__ */ n(pe, { fallback: null, resetKeys: [v], children: /* @__PURE__ */ n(j, { ...O }) }, D)
|
|
2721
2718
|
)),
|
|
2722
|
-
a && /* @__PURE__ */ n(
|
|
2719
|
+
a && /* @__PURE__ */ n(Wo, {})
|
|
2723
2720
|
] }),
|
|
2724
|
-
f ? /* @__PURE__ */ n(G.Stop, { asChild: !0, children: /* @__PURE__ */ n(
|
|
2721
|
+
f ? /* @__PURE__ */ n(G.Stop, { asChild: !0, children: /* @__PURE__ */ n(mt, { status: I === "submitted" ? "submitted" : "streaming" }) }) : /* @__PURE__ */ n(G.Send, { asChild: !0, children: /* @__PURE__ */ n(mt, { status: s ? "error" : "ready" }) })
|
|
2725
2722
|
] }) })
|
|
2726
2723
|
] });
|
|
2727
2724
|
}
|
|
2728
|
-
function
|
|
2729
|
-
return /* @__PURE__ */ n(
|
|
2725
|
+
function Xo({ file: e, remove: t, retry: s }) {
|
|
2726
|
+
return /* @__PURE__ */ n(So, { entry: e, onRemove: t, onRetry: s });
|
|
2730
2727
|
}
|
|
2731
|
-
const
|
|
2732
|
-
const { title: t, subtitle: s, isRtl: r, icon: o } =
|
|
2733
|
-
return /* @__PURE__ */
|
|
2728
|
+
const Zo = (e) => {
|
|
2729
|
+
const { title: t, subtitle: s, isRtl: r, icon: o } = nn();
|
|
2730
|
+
return /* @__PURE__ */ d(
|
|
2734
2731
|
"div",
|
|
2735
2732
|
{
|
|
2736
2733
|
dir: r ? "rtl" : "ltr",
|
|
2737
2734
|
className: "flex flex-col items-center text-center px-6 animate-in fade-in duration-700 ease-out",
|
|
2738
2735
|
children: [
|
|
2739
2736
|
o && /* @__PURE__ */ n("div", { className: "mb-8 flex items-center justify-center", children: /* @__PURE__ */ n("div", { className: "size-12 md:size-16 rounded-xl bg-secondary flex items-center justify-center border border-border", children: typeof o == "function" ? /* @__PURE__ */ n(o, { className: "size-6 md:size-8 text-primary opacity-80" }) : o }) }),
|
|
2740
|
-
(t || s) && /* @__PURE__ */
|
|
2737
|
+
(t || s) && /* @__PURE__ */ d("div", { className: "space-y-3 max-w-xl mx-auto", children: [
|
|
2741
2738
|
t && /* @__PURE__ */ n("h1", { className: "text-2xl md:text-3xl font-black tracking-tight leading-tight text-foreground", children: t }),
|
|
2742
2739
|
s && /* @__PURE__ */ n("p", { className: "text-muted-foreground text-base md:text-lg font-medium max-w-md mx-auto leading-relaxed opacity-85 dark:opacity-70", children: s })
|
|
2743
2740
|
] })
|
|
@@ -2745,16 +2742,16 @@ const ta = (e) => {
|
|
|
2745
2742
|
}
|
|
2746
2743
|
);
|
|
2747
2744
|
};
|
|
2748
|
-
function
|
|
2745
|
+
function ea({
|
|
2749
2746
|
question: e,
|
|
2750
2747
|
disabled: t,
|
|
2751
2748
|
onDismiss: s,
|
|
2752
2749
|
onAnswer: r,
|
|
2753
2750
|
className: o
|
|
2754
2751
|
}) {
|
|
2755
|
-
const { t: i } = k(["chat"]), { dir: a } = $(), { reportDockHeight: l } = he(),
|
|
2752
|
+
const { t: i } = k(["chat"]), { dir: a } = $(), { reportDockHeight: l } = he(), c = P(null), [u, m] = C(null);
|
|
2756
2753
|
T(() => {
|
|
2757
|
-
const f =
|
|
2754
|
+
const f = c.current;
|
|
2758
2755
|
if (!f) return;
|
|
2759
2756
|
const w = () => l(f.offsetHeight);
|
|
2760
2757
|
w();
|
|
@@ -2763,7 +2760,7 @@ function na({
|
|
|
2763
2760
|
x?.disconnect(), l(0);
|
|
2764
2761
|
};
|
|
2765
2762
|
}, [l]);
|
|
2766
|
-
const h =
|
|
2763
|
+
const h = L(e.question, a), b = t || !r || u !== null, g = async (f) => {
|
|
2767
2764
|
if (!b) {
|
|
2768
2765
|
m(f);
|
|
2769
2766
|
try {
|
|
@@ -2773,10 +2770,10 @@ function na({
|
|
|
2773
2770
|
}
|
|
2774
2771
|
}
|
|
2775
2772
|
};
|
|
2776
|
-
return /* @__PURE__ */
|
|
2773
|
+
return /* @__PURE__ */ d(
|
|
2777
2774
|
"div",
|
|
2778
2775
|
{
|
|
2779
|
-
ref:
|
|
2776
|
+
ref: c,
|
|
2780
2777
|
dir: h,
|
|
2781
2778
|
className: p(
|
|
2782
2779
|
// `-mb-3` slides the bottom edge under the composer, which paints over
|
|
@@ -2785,7 +2782,7 @@ function na({
|
|
|
2785
2782
|
o
|
|
2786
2783
|
),
|
|
2787
2784
|
children: [
|
|
2788
|
-
/* @__PURE__ */
|
|
2785
|
+
/* @__PURE__ */ d("div", { className: "flex items-start gap-2 px-3", children: [
|
|
2789
2786
|
/* @__PURE__ */ n("p", { className: "min-w-0 flex-1 text-base leading-snug text-foreground", children: e.question }),
|
|
2790
2787
|
s && /* @__PURE__ */ n(
|
|
2791
2788
|
"button",
|
|
@@ -2795,12 +2792,12 @@ function na({
|
|
|
2795
2792
|
"aria-label": i("choice_dismiss"),
|
|
2796
2793
|
title: i("choice_dismiss"),
|
|
2797
2794
|
className: "-me-1 -mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground/70 outline-none transition-colors hover:bg-foreground/[0.06] hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/40",
|
|
2798
|
-
children: /* @__PURE__ */ n(
|
|
2795
|
+
children: /* @__PURE__ */ n(V, { className: "size-4" })
|
|
2799
2796
|
}
|
|
2800
2797
|
)
|
|
2801
2798
|
] }),
|
|
2802
2799
|
/* @__PURE__ */ n(
|
|
2803
|
-
|
|
2800
|
+
Xt,
|
|
2804
2801
|
{
|
|
2805
2802
|
choices: e.choices,
|
|
2806
2803
|
selected: u,
|
|
@@ -2816,8 +2813,8 @@ function na({
|
|
|
2816
2813
|
}
|
|
2817
2814
|
);
|
|
2818
2815
|
}
|
|
2819
|
-
function
|
|
2820
|
-
return /* @__PURE__ */
|
|
2816
|
+
function ta({ className: e, children: t, ...s }) {
|
|
2817
|
+
return /* @__PURE__ */ d(ae.Root, { "data-slot": "scroll-area", className: p("relative", e), ...s, children: [
|
|
2821
2818
|
/* @__PURE__ */ n(
|
|
2822
2819
|
ae.Viewport,
|
|
2823
2820
|
{
|
|
@@ -2826,11 +2823,11 @@ function sa({ className: e, children: t, ...s }) {
|
|
|
2826
2823
|
children: t
|
|
2827
2824
|
}
|
|
2828
2825
|
),
|
|
2829
|
-
/* @__PURE__ */ n(
|
|
2826
|
+
/* @__PURE__ */ n(rn, {}),
|
|
2830
2827
|
/* @__PURE__ */ n(ae.Corner, {})
|
|
2831
2828
|
] });
|
|
2832
2829
|
}
|
|
2833
|
-
function
|
|
2830
|
+
function rn({
|
|
2834
2831
|
className: e,
|
|
2835
2832
|
orientation: t = "vertical",
|
|
2836
2833
|
...s
|
|
@@ -2857,13 +2854,13 @@ function on({
|
|
|
2857
2854
|
}
|
|
2858
2855
|
);
|
|
2859
2856
|
}
|
|
2860
|
-
const
|
|
2857
|
+
const na = ({ className: e, children: t, ...s }) => {
|
|
2861
2858
|
const { dir: r } = $();
|
|
2862
|
-
return /* @__PURE__ */
|
|
2859
|
+
return /* @__PURE__ */ d(ta, { className: "w-full overflow-x-auto whitespace-nowrap", dir: r, ...s, children: [
|
|
2863
2860
|
/* @__PURE__ */ n("div", { className: p("flex w-max flex-nowrap items-center gap-2", e), children: t }),
|
|
2864
|
-
/* @__PURE__ */ n(
|
|
2861
|
+
/* @__PURE__ */ n(rn, { className: "hidden", orientation: "horizontal" })
|
|
2865
2862
|
] });
|
|
2866
|
-
},
|
|
2863
|
+
}, sa = ({
|
|
2867
2864
|
suggestion: e,
|
|
2868
2865
|
onClick: t,
|
|
2869
2866
|
className: s,
|
|
@@ -2876,7 +2873,7 @@ const ra = ({ className: e, children: t, ...s }) => {
|
|
|
2876
2873
|
t?.(e);
|
|
2877
2874
|
};
|
|
2878
2875
|
return /* @__PURE__ */ n(
|
|
2879
|
-
|
|
2876
|
+
F,
|
|
2880
2877
|
{
|
|
2881
2878
|
className: p("cursor-pointer rounded-full px-4", s),
|
|
2882
2879
|
onClick: l,
|
|
@@ -2888,55 +2885,69 @@ const ra = ({ className: e, children: t, ...s }) => {
|
|
|
2888
2885
|
}
|
|
2889
2886
|
);
|
|
2890
2887
|
};
|
|
2891
|
-
function
|
|
2888
|
+
function ra({
|
|
2892
2889
|
suggestions: e,
|
|
2893
2890
|
disabled: t = !1,
|
|
2894
2891
|
onSelect: s,
|
|
2895
2892
|
className: r
|
|
2896
2893
|
}) {
|
|
2897
|
-
const { t: o } = k("chat"), [i, a] = C(!1), l = async (
|
|
2894
|
+
const { t: o } = k("chat"), [i, a] = C(!1), l = async (c) => {
|
|
2898
2895
|
if (!(t || i || !s)) {
|
|
2899
2896
|
a(!0);
|
|
2900
2897
|
try {
|
|
2901
|
-
await s(
|
|
2898
|
+
await s(c);
|
|
2902
2899
|
} catch {
|
|
2903
2900
|
a(!1);
|
|
2904
2901
|
}
|
|
2905
2902
|
}
|
|
2906
2903
|
};
|
|
2907
|
-
return /* @__PURE__ */ n("div", { className: p("mx-auto w-full max-w-4xl py-2", r), children: /* @__PURE__ */ n(
|
|
2908
|
-
|
|
2904
|
+
return /* @__PURE__ */ n("div", { className: p("mx-auto w-full max-w-4xl py-2", r), children: /* @__PURE__ */ n(na, { className: "pb-1", "aria-label": o("follow_up_suggestions"), children: e.map((c) => /* @__PURE__ */ n(
|
|
2905
|
+
sa,
|
|
2909
2906
|
{
|
|
2910
|
-
suggestion:
|
|
2907
|
+
suggestion: c,
|
|
2911
2908
|
onClick: (u) => {
|
|
2912
2909
|
l(u);
|
|
2913
2910
|
},
|
|
2914
2911
|
disabled: t || i || !s,
|
|
2915
|
-
dir:
|
|
2912
|
+
dir: L(c),
|
|
2916
2913
|
className: "max-w-[min(32rem,80vw)] shrink-0"
|
|
2917
2914
|
},
|
|
2918
|
-
|
|
2915
|
+
c
|
|
2919
2916
|
)) }) });
|
|
2920
2917
|
}
|
|
2921
|
-
function
|
|
2922
|
-
const { t } = k(["chat"]),
|
|
2923
|
-
return /* @__PURE__ */
|
|
2918
|
+
function oa({ error: e, code: t }) {
|
|
2919
|
+
const { t: s, i18n: r } = k(["chat", "quota"]), o = Te((c) => c.app.showToolDetails ?? !0), i = $().dir === "rtl", a = e.details, l = o && a && (t === "quota_exceeded" || a.limit !== void 0 || a.resets_at !== void 0);
|
|
2920
|
+
return /* @__PURE__ */ d(
|
|
2924
2921
|
"div",
|
|
2925
2922
|
{
|
|
2926
|
-
className: "flex w-full
|
|
2927
|
-
dir:
|
|
2923
|
+
className: "flex flex-col w-full gap-2 px-4 py-3.5 rounded-xl bg-destructive/8 border border-destructive/15 border-s-2 border-s-destructive/60",
|
|
2924
|
+
dir: i ? "rtl" : "ltr",
|
|
2928
2925
|
children: [
|
|
2929
|
-
/* @__PURE__ */
|
|
2930
|
-
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
|
|
2933
|
-
|
|
2926
|
+
/* @__PURE__ */ d("div", { className: "flex w-full items-start gap-3", children: [
|
|
2927
|
+
/* @__PURE__ */ n("div", { className: "size-1.5 rounded-full bg-destructive mt-2 shrink-0" }),
|
|
2928
|
+
/* @__PURE__ */ d("div", { className: "text-sm text-destructive/90 leading-relaxed flex-1 text-start", children: [
|
|
2929
|
+
/* @__PURE__ */ n("span", { className: "font-semibold", children: s("error") }),
|
|
2930
|
+
" ",
|
|
2931
|
+
e.message
|
|
2932
|
+
] })
|
|
2933
|
+
] }),
|
|
2934
|
+
l && /* @__PURE__ */ d("div", { className: "mt-1 ps-4.5 pt-2 border-t border-destructive/10 text-xs text-muted-foreground flex flex-wrap gap-x-4 gap-y-1", children: [
|
|
2935
|
+
typeof a.limit == "number" && /* @__PURE__ */ n("span", { children: s("quota:left", {
|
|
2936
|
+
amount: Math.max(0, a.limit - (a.used ?? a.limit)),
|
|
2937
|
+
total: a.limit
|
|
2938
|
+
}) }),
|
|
2939
|
+
a.window?.per && /* @__PURE__ */ n("span", { children: s(`quota:window.per_${a.window.per}`, {
|
|
2940
|
+
defaultValue: a.window.per
|
|
2941
|
+
}) }),
|
|
2942
|
+
a.resets_at && /* @__PURE__ */ n("span", { children: s("quota:resets_at", {
|
|
2943
|
+
datetime: new Date(a.resets_at).toLocaleString(r.language)
|
|
2944
|
+
}) })
|
|
2934
2945
|
] })
|
|
2935
2946
|
]
|
|
2936
2947
|
}
|
|
2937
2948
|
);
|
|
2938
2949
|
}
|
|
2939
|
-
const
|
|
2950
|
+
const Ka = ["messages", "tokens", "model_requests", "cost"], Ja = [
|
|
2940
2951
|
"minute",
|
|
2941
2952
|
"hour",
|
|
2942
2953
|
"day",
|
|
@@ -2944,27 +2955,27 @@ const Ya = ["messages", "tokens", "model_requests", "cost"], Xa = [
|
|
|
2944
2955
|
"month",
|
|
2945
2956
|
"subscription"
|
|
2946
2957
|
];
|
|
2947
|
-
function
|
|
2958
|
+
function aa(e, t) {
|
|
2948
2959
|
return e(`quota:meters.${t}`, { defaultValue: t.replace(/_/g, " ") });
|
|
2949
2960
|
}
|
|
2950
|
-
function
|
|
2961
|
+
function Ya(e, t, s) {
|
|
2951
2962
|
return e === "cost" ? new Intl.NumberFormat(s, { maximumFractionDigits: 4 }).format(t / 1e6) : e === "tokens" && t >= 1e4 ? new Intl.NumberFormat(s, {
|
|
2952
2963
|
notation: "compact",
|
|
2953
2964
|
maximumFractionDigits: 1
|
|
2954
2965
|
}).format(t) : new Intl.NumberFormat(s).format(t);
|
|
2955
2966
|
}
|
|
2956
|
-
function
|
|
2967
|
+
function bt(e, t) {
|
|
2957
2968
|
if (t.per === "subscription") return e("quota:window.whole_plan");
|
|
2958
2969
|
const s = t.every ?? 1;
|
|
2959
2970
|
return s === 1 ? e(`quota:window.per_${t.per}`) : e("quota:window.every", { count: s, unit: e(`quota:units.${t.per}`) });
|
|
2960
2971
|
}
|
|
2961
|
-
function
|
|
2972
|
+
function Xa(e, t) {
|
|
2962
2973
|
return t ? e(`quota:duration.${t.per}`, { count: t.every ?? 1 }) : e("quota:duration.until_canceled");
|
|
2963
2974
|
}
|
|
2964
|
-
function
|
|
2975
|
+
function ia(e, t) {
|
|
2965
2976
|
if (!e) return "";
|
|
2966
2977
|
const s = new Date(e);
|
|
2967
|
-
return Number.isNaN(s.getTime()) ? e :
|
|
2978
|
+
return Number.isNaN(s.getTime()) ? e : ps(t, {
|
|
2968
2979
|
year: "numeric",
|
|
2969
2980
|
month: "short",
|
|
2970
2981
|
day: "numeric",
|
|
@@ -2972,7 +2983,7 @@ function ca(e, t) {
|
|
|
2972
2983
|
minute: "2-digit"
|
|
2973
2984
|
}).format(s);
|
|
2974
2985
|
}
|
|
2975
|
-
function
|
|
2986
|
+
function la(e) {
|
|
2976
2987
|
let t = null, s = 1 / 0;
|
|
2977
2988
|
for (const r of e) {
|
|
2978
2989
|
const o = Ge(r.remaining, r.amount);
|
|
@@ -2983,29 +2994,29 @@ function da(e) {
|
|
|
2983
2994
|
function Ge(e, t) {
|
|
2984
2995
|
return t <= 0 ? 0 : Math.max(0, Math.min(100, e / t * 100));
|
|
2985
2996
|
}
|
|
2986
|
-
function
|
|
2997
|
+
function on(e, t) {
|
|
2987
2998
|
let s = Math.round(e);
|
|
2988
2999
|
return e > 0 && s === 0 && (s = 1), e < 100 && s === 100 && (s = 99), new Intl.NumberFormat(t, { style: "percent" }).format(s / 100);
|
|
2989
3000
|
}
|
|
2990
|
-
function
|
|
3001
|
+
function an(e) {
|
|
2991
3002
|
return e > 60 ? "bg-success" : e > 20 ? "bg-warning" : "bg-destructive";
|
|
2992
3003
|
}
|
|
2993
|
-
function
|
|
3004
|
+
function ca(e) {
|
|
2994
3005
|
return e > 60 ? "border-success/70" : e > 20 ? "border-warning/70" : "border-destructive/70";
|
|
2995
3006
|
}
|
|
2996
|
-
function
|
|
3007
|
+
function da({ ...e }) {
|
|
2997
3008
|
return /* @__PURE__ */ n(me.Root, { "data-slot": "hover-card", ...e });
|
|
2998
3009
|
}
|
|
2999
|
-
function
|
|
3010
|
+
function ua({ ...e }) {
|
|
3000
3011
|
return /* @__PURE__ */ n(me.Trigger, { "data-slot": "hover-card-trigger", ...e });
|
|
3001
3012
|
}
|
|
3002
|
-
function
|
|
3013
|
+
function ma({
|
|
3003
3014
|
className: e,
|
|
3004
3015
|
align: t = "center",
|
|
3005
3016
|
sideOffset: s = 4,
|
|
3006
3017
|
...r
|
|
3007
3018
|
}) {
|
|
3008
|
-
const o =
|
|
3019
|
+
const o = Q();
|
|
3009
3020
|
return /* @__PURE__ */ n(me.Portal, { "data-slot": "hover-card-portal", container: o, children: /* @__PURE__ */ n(
|
|
3010
3021
|
me.Content,
|
|
3011
3022
|
{
|
|
@@ -3020,55 +3031,55 @@ function fa({
|
|
|
3020
3031
|
}
|
|
3021
3032
|
) });
|
|
3022
3033
|
}
|
|
3023
|
-
function
|
|
3034
|
+
function vt({ label: e, remaining: t, amount: s }) {
|
|
3024
3035
|
const { t: r, i18n: o } = k(["quota"]), i = Ge(t, s);
|
|
3025
|
-
return /* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3036
|
+
return /* @__PURE__ */ d("div", { className: "space-y-1", children: [
|
|
3037
|
+
/* @__PURE__ */ d("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
3027
3038
|
/* @__PURE__ */ n("span", { className: "truncate text-foreground/80", children: e }),
|
|
3028
|
-
/* @__PURE__ */ n("span", { className: "shrink-0 tabular-nums font-medium text-foreground", children: r("quota:percent_left", { percent:
|
|
3039
|
+
/* @__PURE__ */ n("span", { className: "shrink-0 tabular-nums font-medium text-foreground", children: r("quota:percent_left", { percent: on(i, o.language) }) })
|
|
3029
3040
|
] }),
|
|
3030
3041
|
/* @__PURE__ */ n("div", { className: "h-1 w-full rounded-full bg-muted overflow-hidden", children: /* @__PURE__ */ n(
|
|
3031
3042
|
"div",
|
|
3032
3043
|
{
|
|
3033
|
-
className: p("h-full rounded-full transition-all duration-700",
|
|
3044
|
+
className: p("h-full rounded-full transition-all duration-700", an(i)),
|
|
3034
3045
|
style: { width: `${i}%` }
|
|
3035
3046
|
}
|
|
3036
3047
|
) })
|
|
3037
3048
|
] });
|
|
3038
3049
|
}
|
|
3039
|
-
function
|
|
3040
|
-
const { t: s, i18n: r } = k(["quota"]), { data: o } =
|
|
3050
|
+
function pa({ className: e, details: t = !0 }) {
|
|
3051
|
+
const { t: s, i18n: r } = k(["quota"]), { data: o } = kn(), [i, a] = C(!1);
|
|
3041
3052
|
if (!o) return null;
|
|
3042
|
-
let l,
|
|
3053
|
+
let l, c, u;
|
|
3043
3054
|
if (o.kind === "plan") {
|
|
3044
|
-
const x =
|
|
3055
|
+
const x = la(o.windows);
|
|
3045
3056
|
if (!x) return null;
|
|
3046
|
-
({ remaining: l, amount:
|
|
3057
|
+
({ remaining: l, amount: c } = x), u = `${aa(s, x.meter)} ${bt(s, x)}`;
|
|
3047
3058
|
} else if (o.kind === "credits" && o.credits)
|
|
3048
|
-
({ remaining: l } = o.credits),
|
|
3059
|
+
({ remaining: l } = o.credits), c = o.credits.granted, u = s("quota:credits");
|
|
3049
3060
|
else
|
|
3050
3061
|
return null;
|
|
3051
|
-
const m = Ge(l,
|
|
3062
|
+
const m = Ge(l, c), h = o.kind === "credits" ? s("quota:credits") : o.plan?.name ?? s("quota:plan"), b = on(m, r.language), g = l <= 0, f = p(
|
|
3052
3063
|
"flex items-center gap-2 h-8 ps-2.5 pe-3 rounded-full border text-xs font-medium tabular-nums transition-colors",
|
|
3053
3064
|
g ? "border-destructive/40 bg-destructive/10 text-destructive" : "border-border/60 bg-background/40 text-muted-foreground",
|
|
3054
3065
|
e
|
|
3055
|
-
), w = /* @__PURE__ */
|
|
3066
|
+
), w = /* @__PURE__ */ d(R, { children: [
|
|
3056
3067
|
/* @__PURE__ */ n(
|
|
3057
3068
|
"span",
|
|
3058
3069
|
{
|
|
3059
3070
|
className: p(
|
|
3060
3071
|
"block h-2 w-8 md:w-12 rounded-full border overflow-hidden bg-muted/40 transition-colors duration-700",
|
|
3061
|
-
|
|
3072
|
+
ca(m)
|
|
3062
3073
|
),
|
|
3063
3074
|
role: "meter",
|
|
3064
3075
|
"aria-label": s("quota:usage_label", { label: u, percent: b }),
|
|
3065
3076
|
"aria-valuemin": 0,
|
|
3066
|
-
"aria-valuemax":
|
|
3077
|
+
"aria-valuemax": c,
|
|
3067
3078
|
"aria-valuenow": l,
|
|
3068
3079
|
children: /* @__PURE__ */ n(
|
|
3069
3080
|
"span",
|
|
3070
3081
|
{
|
|
3071
|
-
className: p("block h-full transition-all duration-700",
|
|
3082
|
+
className: p("block h-full transition-all duration-700", an(m)),
|
|
3072
3083
|
style: { width: `${m}%` }
|
|
3073
3084
|
}
|
|
3074
3085
|
)
|
|
@@ -3076,8 +3087,8 @@ function ga({ className: e, details: t = !0 }) {
|
|
|
3076
3087
|
),
|
|
3077
3088
|
/* @__PURE__ */ n("span", { "aria-hidden": !0, children: b })
|
|
3078
3089
|
] });
|
|
3079
|
-
return t ? /* @__PURE__ */
|
|
3080
|
-
/* @__PURE__ */ n(
|
|
3090
|
+
return t ? /* @__PURE__ */ d(da, { open: i, onOpenChange: a, openDelay: 150, closeDelay: 100, children: [
|
|
3091
|
+
/* @__PURE__ */ n(ua, { asChild: !0, children: /* @__PURE__ */ n(
|
|
3081
3092
|
"button",
|
|
3082
3093
|
{
|
|
3083
3094
|
type: "button",
|
|
@@ -3089,24 +3100,24 @@ function ga({ className: e, details: t = !0 }) {
|
|
|
3089
3100
|
children: w
|
|
3090
3101
|
}
|
|
3091
3102
|
) }),
|
|
3092
|
-
/* @__PURE__ */
|
|
3093
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ d(ma, { align: "end", sideOffset: 6, className: "w-64 p-3 text-xs space-y-3", children: [
|
|
3104
|
+
/* @__PURE__ */ d("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
3094
3105
|
/* @__PURE__ */ n("span", { className: "font-semibold text-foreground truncate", children: h }),
|
|
3095
|
-
o.ends_at && /* @__PURE__ */ n("span", { className: "shrink-0 text-xs text-muted-foreground", children: s("quota:ends_at", { datetime:
|
|
3106
|
+
o.ends_at && /* @__PURE__ */ n("span", { className: "shrink-0 text-xs text-muted-foreground", children: s("quota:ends_at", { datetime: ia(o.ends_at, r.language) }) })
|
|
3096
3107
|
] }),
|
|
3097
3108
|
o.kind === "plan" ? o.windows.map((x) => /* @__PURE__ */ n(
|
|
3098
|
-
|
|
3109
|
+
vt,
|
|
3099
3110
|
{
|
|
3100
|
-
label:
|
|
3111
|
+
label: bt(s, x),
|
|
3101
3112
|
amount: x.amount,
|
|
3102
3113
|
remaining: x.remaining
|
|
3103
3114
|
},
|
|
3104
3115
|
x.key
|
|
3105
|
-
)) : o.credits && /* @__PURE__ */ n(
|
|
3116
|
+
)) : o.credits && /* @__PURE__ */ n(vt, { amount: o.credits.granted, remaining: o.credits.remaining })
|
|
3106
3117
|
] })
|
|
3107
3118
|
] }) : /* @__PURE__ */ n("div", { className: f, children: w });
|
|
3108
3119
|
}
|
|
3109
|
-
function
|
|
3120
|
+
function fa({ title: e, message: t, endsAt: s }) {
|
|
3110
3121
|
const { t: r } = k(["maintenance"]), o = $().dir === "rtl";
|
|
3111
3122
|
return /* @__PURE__ */ n(
|
|
3112
3123
|
"div",
|
|
@@ -3115,13 +3126,13 @@ function ha({ title: e, message: t, endsAt: s }) {
|
|
|
3115
3126
|
"aria-live": "polite",
|
|
3116
3127
|
dir: o ? "rtl" : "ltr",
|
|
3117
3128
|
className: "shrink-0 border-b border-warning/30 bg-warning/10 px-4 py-2.5",
|
|
3118
|
-
children: /* @__PURE__ */
|
|
3119
|
-
/* @__PURE__ */ n(
|
|
3120
|
-
/* @__PURE__ */
|
|
3129
|
+
children: /* @__PURE__ */ d("div", { className: "mx-auto flex max-w-[50rem] items-start gap-2.5", children: [
|
|
3130
|
+
/* @__PURE__ */ n(zt, { className: "mt-0.5 size-4 shrink-0 text-warning" }),
|
|
3131
|
+
/* @__PURE__ */ d("p", { className: "min-w-0 flex-1 text-sm leading-relaxed text-warning", children: [
|
|
3121
3132
|
/* @__PURE__ */ n("span", { className: "font-semibold", children: e }),
|
|
3122
3133
|
/* @__PURE__ */ n("span", { "aria-hidden": !0, className: "mx-1.5 opacity-50", children: "·" }),
|
|
3123
3134
|
/* @__PURE__ */ n("span", { children: t }),
|
|
3124
|
-
s && /* @__PURE__ */
|
|
3135
|
+
s && /* @__PURE__ */ d("span", { className: "text-warning/80", children: [
|
|
3125
3136
|
" ",
|
|
3126
3137
|
r("maintenance:until", { datetime: s })
|
|
3127
3138
|
] })
|
|
@@ -3130,7 +3141,7 @@ function ha({ title: e, message: t, endsAt: s }) {
|
|
|
3130
3141
|
}
|
|
3131
3142
|
);
|
|
3132
3143
|
}
|
|
3133
|
-
function
|
|
3144
|
+
function ga({ title: e, message: t, endsAt: s, refresh: r }) {
|
|
3134
3145
|
const { t: o } = k(["maintenance"]), i = $().dir === "rtl";
|
|
3135
3146
|
return /* @__PURE__ */ n(
|
|
3136
3147
|
"div",
|
|
@@ -3139,34 +3150,34 @@ function ba({ title: e, message: t, endsAt: s, refresh: r }) {
|
|
|
3139
3150
|
"aria-live": "polite",
|
|
3140
3151
|
dir: i ? "rtl" : "ltr",
|
|
3141
3152
|
className: "flex min-h-dvh w-full flex-1 items-center justify-center bg-background px-6",
|
|
3142
|
-
children: /* @__PURE__ */
|
|
3143
|
-
/* @__PURE__ */ n("div", { className: "flex size-14 items-center justify-center rounded-2xl border border-warning/30 bg-warning/10", children: /* @__PURE__ */ n(
|
|
3153
|
+
children: /* @__PURE__ */ d("div", { className: "flex max-w-md flex-col items-center gap-4 text-center", children: [
|
|
3154
|
+
/* @__PURE__ */ n("div", { className: "flex size-14 items-center justify-center rounded-2xl border border-warning/30 bg-warning/10", children: /* @__PURE__ */ n(zt, { className: "size-6 text-warning" }) }),
|
|
3144
3155
|
/* @__PURE__ */ n("h1", { className: "text-xl font-semibold text-foreground", children: e }),
|
|
3145
3156
|
/* @__PURE__ */ n("p", { className: "text-sm leading-relaxed text-muted-foreground", children: t }),
|
|
3146
3157
|
s && /* @__PURE__ */ n("p", { className: "text-xs text-muted-foreground/80", children: o("maintenance:until", { datetime: s }) }),
|
|
3147
|
-
/* @__PURE__ */
|
|
3148
|
-
/* @__PURE__ */ n(
|
|
3158
|
+
/* @__PURE__ */ d(F, { variant: "outline", size: "sm", onClick: r, className: "mt-2 gap-2", children: [
|
|
3159
|
+
/* @__PURE__ */ n(ns, { className: "size-3.5" }),
|
|
3149
3160
|
o("maintenance:retry")
|
|
3150
3161
|
] })
|
|
3151
3162
|
] })
|
|
3152
3163
|
}
|
|
3153
3164
|
);
|
|
3154
3165
|
}
|
|
3155
|
-
const
|
|
3156
|
-
MessageList:
|
|
3157
|
-
MessageActions:
|
|
3158
|
-
PromptInput:
|
|
3159
|
-
WelcomeScreen:
|
|
3160
|
-
parts:
|
|
3161
|
-
ChoiceQuestionPart:
|
|
3162
|
-
ChoiceQuestionDock:
|
|
3163
|
-
FollowUpSuggestions:
|
|
3164
|
-
ChatError:
|
|
3165
|
-
UsageMeter:
|
|
3166
|
-
MaintenanceBanner:
|
|
3167
|
-
MaintenanceScreen:
|
|
3166
|
+
const ha = {
|
|
3167
|
+
MessageList: ho,
|
|
3168
|
+
MessageActions: yo,
|
|
3169
|
+
PromptInput: Jo,
|
|
3170
|
+
WelcomeScreen: Zo,
|
|
3171
|
+
parts: eo,
|
|
3172
|
+
ChoiceQuestionPart: Gr,
|
|
3173
|
+
ChoiceQuestionDock: ea,
|
|
3174
|
+
FollowUpSuggestions: ra,
|
|
3175
|
+
ChatError: oa,
|
|
3176
|
+
UsageMeter: pa,
|
|
3177
|
+
MaintenanceBanner: fa,
|
|
3178
|
+
MaintenanceScreen: ga
|
|
3168
3179
|
};
|
|
3169
|
-
function
|
|
3180
|
+
function Za(e, t) {
|
|
3170
3181
|
if (!t) return e;
|
|
3171
3182
|
const s = { ...e };
|
|
3172
3183
|
for (const [r, o] of Object.entries(t))
|
|
@@ -3177,23 +3188,23 @@ function ti(e, t) {
|
|
|
3177
3188
|
referenceAdapters: t.referenceAdapters ? { ...e.referenceAdapters, ...t.referenceAdapters } : e.referenceAdapters
|
|
3178
3189
|
};
|
|
3179
3190
|
}
|
|
3180
|
-
const
|
|
3181
|
-
function
|
|
3182
|
-
return le(
|
|
3191
|
+
const ba = te(ha);
|
|
3192
|
+
function B() {
|
|
3193
|
+
return le(ba);
|
|
3183
3194
|
}
|
|
3184
|
-
function
|
|
3195
|
+
function ei({ ...e }) {
|
|
3185
3196
|
return /* @__PURE__ */ n(q.Root, { "data-slot": "select", ...e });
|
|
3186
3197
|
}
|
|
3187
|
-
function
|
|
3198
|
+
function ti({ ...e }) {
|
|
3188
3199
|
return /* @__PURE__ */ n(q.Value, { "data-slot": "select-value", ...e });
|
|
3189
3200
|
}
|
|
3190
|
-
function
|
|
3201
|
+
function ni({
|
|
3191
3202
|
className: e,
|
|
3192
3203
|
size: t = "default",
|
|
3193
3204
|
children: s,
|
|
3194
3205
|
...r
|
|
3195
3206
|
}) {
|
|
3196
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ d(
|
|
3197
3208
|
q.Trigger,
|
|
3198
3209
|
{
|
|
3199
3210
|
"data-slot": "select-trigger",
|
|
@@ -3213,14 +3224,14 @@ function ri({
|
|
|
3213
3224
|
}
|
|
3214
3225
|
);
|
|
3215
3226
|
}
|
|
3216
|
-
function
|
|
3227
|
+
function si({
|
|
3217
3228
|
className: e,
|
|
3218
3229
|
children: t,
|
|
3219
3230
|
position: s = "popper",
|
|
3220
3231
|
...r
|
|
3221
3232
|
}) {
|
|
3222
|
-
const o =
|
|
3223
|
-
return /* @__PURE__ */ n(q.Portal, { container: o, children: /* @__PURE__ */
|
|
3233
|
+
const o = Q();
|
|
3234
|
+
return /* @__PURE__ */ n(q.Portal, { container: o, children: /* @__PURE__ */ d(
|
|
3224
3235
|
q.Content,
|
|
3225
3236
|
{
|
|
3226
3237
|
"data-slot": "select-content",
|
|
@@ -3232,7 +3243,7 @@ function oi({
|
|
|
3232
3243
|
position: s,
|
|
3233
3244
|
...r,
|
|
3234
3245
|
children: [
|
|
3235
|
-
/* @__PURE__ */ n(
|
|
3246
|
+
/* @__PURE__ */ n(va, {}),
|
|
3236
3247
|
/* @__PURE__ */ n(
|
|
3237
3248
|
q.Viewport,
|
|
3238
3249
|
{
|
|
@@ -3243,13 +3254,13 @@ function oi({
|
|
|
3243
3254
|
children: t
|
|
3244
3255
|
}
|
|
3245
3256
|
),
|
|
3246
|
-
/* @__PURE__ */ n(
|
|
3257
|
+
/* @__PURE__ */ n(xa, {})
|
|
3247
3258
|
]
|
|
3248
3259
|
}
|
|
3249
3260
|
) });
|
|
3250
3261
|
}
|
|
3251
|
-
function
|
|
3252
|
-
return /* @__PURE__ */
|
|
3262
|
+
function ri({ className: e, children: t, ...s }) {
|
|
3263
|
+
return /* @__PURE__ */ d(
|
|
3253
3264
|
q.Item,
|
|
3254
3265
|
{
|
|
3255
3266
|
"data-slot": "select-item",
|
|
@@ -3265,18 +3276,18 @@ function ai({ className: e, children: t, ...s }) {
|
|
|
3265
3276
|
}
|
|
3266
3277
|
);
|
|
3267
3278
|
}
|
|
3268
|
-
function
|
|
3279
|
+
function va({ className: e, ...t }) {
|
|
3269
3280
|
return /* @__PURE__ */ n(
|
|
3270
3281
|
q.ScrollUpButton,
|
|
3271
3282
|
{
|
|
3272
3283
|
"data-slot": "select-scroll-up-button",
|
|
3273
3284
|
className: p("flex cursor-default items-center justify-center py-1", e),
|
|
3274
3285
|
...t,
|
|
3275
|
-
children: /* @__PURE__ */ n(
|
|
3286
|
+
children: /* @__PURE__ */ n(ss, { className: "size-4" })
|
|
3276
3287
|
}
|
|
3277
3288
|
);
|
|
3278
3289
|
}
|
|
3279
|
-
function
|
|
3290
|
+
function xa({
|
|
3280
3291
|
className: e,
|
|
3281
3292
|
...t
|
|
3282
3293
|
}) {
|
|
@@ -3290,7 +3301,7 @@ function wa({
|
|
|
3290
3301
|
}
|
|
3291
3302
|
);
|
|
3292
3303
|
}
|
|
3293
|
-
function
|
|
3304
|
+
function oi({ className: e, ...t }) {
|
|
3294
3305
|
return /* @__PURE__ */ n(
|
|
3295
3306
|
rt.Root,
|
|
3296
3307
|
{
|
|
@@ -3311,18 +3322,18 @@ function ii({ className: e, ...t }) {
|
|
|
3311
3322
|
}
|
|
3312
3323
|
);
|
|
3313
3324
|
}
|
|
3314
|
-
const
|
|
3325
|
+
const ya = Oe(
|
|
3315
3326
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
3316
|
-
),
|
|
3327
|
+
), wa = ke.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n(
|
|
3317
3328
|
"label",
|
|
3318
3329
|
{
|
|
3319
3330
|
ref: s,
|
|
3320
|
-
className: p(
|
|
3331
|
+
className: p(ya(), e),
|
|
3321
3332
|
...t
|
|
3322
3333
|
}
|
|
3323
3334
|
));
|
|
3324
|
-
|
|
3325
|
-
function
|
|
3335
|
+
wa.displayName = "Label";
|
|
3336
|
+
function ai({ className: e, type: t, ...s }) {
|
|
3326
3337
|
return /* @__PURE__ */ n(
|
|
3327
3338
|
"input",
|
|
3328
3339
|
{
|
|
@@ -3338,14 +3349,14 @@ function li({ className: e, type: t, ...s }) {
|
|
|
3338
3349
|
}
|
|
3339
3350
|
);
|
|
3340
3351
|
}
|
|
3341
|
-
function
|
|
3352
|
+
function ii({ ...e }) {
|
|
3342
3353
|
return /* @__PURE__ */ n(_.Root, { "data-slot": "sheet", ...e });
|
|
3343
3354
|
}
|
|
3344
|
-
function
|
|
3345
|
-
const t =
|
|
3355
|
+
function Na({ ...e }) {
|
|
3356
|
+
const t = Q();
|
|
3346
3357
|
return /* @__PURE__ */ n(_.Portal, { "data-slot": "sheet-portal", container: t, ...e });
|
|
3347
3358
|
}
|
|
3348
|
-
function
|
|
3359
|
+
function ka({ className: e, ...t }) {
|
|
3349
3360
|
return /* @__PURE__ */ n(
|
|
3350
3361
|
_.Overlay,
|
|
3351
3362
|
{
|
|
@@ -3358,15 +3369,15 @@ function _a({ className: e, ...t }) {
|
|
|
3358
3369
|
}
|
|
3359
3370
|
);
|
|
3360
3371
|
}
|
|
3361
|
-
function
|
|
3372
|
+
function li({
|
|
3362
3373
|
className: e,
|
|
3363
3374
|
children: t,
|
|
3364
3375
|
side: s = "end",
|
|
3365
3376
|
...r
|
|
3366
3377
|
}) {
|
|
3367
|
-
return /* @__PURE__ */
|
|
3368
|
-
/* @__PURE__ */ n(
|
|
3369
|
-
/* @__PURE__ */
|
|
3378
|
+
return /* @__PURE__ */ d(Na, { children: [
|
|
3379
|
+
/* @__PURE__ */ n(ka, {}),
|
|
3380
|
+
/* @__PURE__ */ d(
|
|
3370
3381
|
_.Content,
|
|
3371
3382
|
{
|
|
3372
3383
|
"data-slot": "sheet-content",
|
|
@@ -3381,19 +3392,19 @@ function di({
|
|
|
3381
3392
|
...r,
|
|
3382
3393
|
children: [
|
|
3383
3394
|
t,
|
|
3384
|
-
/* @__PURE__ */
|
|
3385
|
-
/* @__PURE__ */ n(
|
|
3386
|
-
/* @__PURE__ */ n(
|
|
3395
|
+
/* @__PURE__ */ d(_.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 end-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
3396
|
+
/* @__PURE__ */ n(V, { className: "size-4" }),
|
|
3397
|
+
/* @__PURE__ */ n(Ca, {})
|
|
3387
3398
|
] })
|
|
3388
3399
|
]
|
|
3389
3400
|
}
|
|
3390
3401
|
)
|
|
3391
3402
|
] });
|
|
3392
3403
|
}
|
|
3393
|
-
function
|
|
3404
|
+
function ci({ className: e, ...t }) {
|
|
3394
3405
|
return /* @__PURE__ */ n("div", { "data-slot": "sheet-header", className: p("flex flex-col gap-1.5 p-4", e), ...t });
|
|
3395
3406
|
}
|
|
3396
|
-
function
|
|
3407
|
+
function di({ className: e, ...t }) {
|
|
3397
3408
|
return /* @__PURE__ */ n(
|
|
3398
3409
|
_.Title,
|
|
3399
3410
|
{
|
|
@@ -3403,7 +3414,7 @@ function mi({ className: e, ...t }) {
|
|
|
3403
3414
|
}
|
|
3404
3415
|
);
|
|
3405
3416
|
}
|
|
3406
|
-
function
|
|
3417
|
+
function ui({ className: e, ...t }) {
|
|
3407
3418
|
return /* @__PURE__ */ n(
|
|
3408
3419
|
_.Description,
|
|
3409
3420
|
{
|
|
@@ -3413,93 +3424,93 @@ function pi({ className: e, ...t }) {
|
|
|
3413
3424
|
}
|
|
3414
3425
|
);
|
|
3415
3426
|
}
|
|
3416
|
-
function
|
|
3427
|
+
function Ca() {
|
|
3417
3428
|
const { t: e } = k("common");
|
|
3418
3429
|
return /* @__PURE__ */ n("span", { className: "sr-only", children: e("close") });
|
|
3419
3430
|
}
|
|
3420
|
-
const za = "data:image/svg+xml,%3csvg%20version='1.2'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201280%201280'%20width='500'%20height='500'%3e%3cstyle%3e%20.s0%20{%20opacity:%201;fill:%20%2317535d%20}%20.s1%20{%20opacity:%20.99;fill:%20%23fab185%20}%20%3c/style%3e%3cg%20id='gentiq%20(7)'%3e%3cpath%20id='Path%201'%20fill-rule='evenodd'%20class='s0'%20d='m616.5%2012.22c19.25-0.09%2038.15%200.29%2042%200.84%203.85%200.54%2011.73%201.43%2017.5%201.98%205.77%200.55%2016.35%201.85%2023.5%202.91%207.15%201.05%2016.6%202.62%2021%203.49%204.4%200.88%209.8%202.02%2012%202.53%202.2%200.52%207.15%201.65%2011%202.5%203.85%200.86%208.58%202%2010.5%202.54%201.92%200.54%207.77%202.15%2013%203.6%205.23%201.44%2016.02%204.77%2024%207.4%207.98%202.63%2017.65%205.99%2021.5%207.48%203.85%201.48%2011.95%204.74%2018%207.24%206.05%202.5%2014.6%206.16%2019%208.14%204.4%201.98%2013.4%206.35%2020%209.72%206.6%203.36%2014.48%207.47%2017.5%209.11%203.02%201.65%2011.35%206.5%2018.5%2010.77%207.15%204.27%2018.17%2011.2%2024.49%2015.4%206.32%204.2%2012.17%208.16%2013%208.82%200.83%200.65%207.36%205.55%2014.51%2010.88%207.15%205.33%2013.23%209.97%2013.5%2010.31%200.27%200.34%202.73%202.42%205.45%204.62%202.72%202.2%205.43%204.45%206.02%205%200.59%200.55%204.89%204.35%209.55%208.45%204.67%204.1%2015.04%2014%2023.05%2022%208.02%208%2018.22%2018.6%2022.67%2023.55%204.46%204.95%2011.4%2013.07%2015.43%2018.04%204.03%204.97%2011.43%2014.42%2016.43%2021%205.01%206.58%2012.65%2017.36%2016.97%2023.96%204.33%206.6%208.56%2013.15%209.4%2014.57%200.84%201.41%204.08%206.81%207.19%2012%203.11%205.18%207.29%2012.36%209.29%2015.93%202%203.57%207.6%2014.6%2012.44%2024.5%204.84%209.9%2010.51%2022.05%2012.6%2027%202.08%204.95%204.36%2010.35%205.07%2012%200.71%201.65%202.26%205.48%203.44%208.5%201.19%203.02%204.44%2012.25%207.22%2020.5%202.79%208.25%205.42%2016.35%205.84%2018%200.43%201.65%201.72%206.15%202.87%2010%201.15%203.85%203.86%2014.43%206.03%2023.5%202.16%209.07%204.38%2019.2%204.94%2022.5%200.56%203.3%201.5%208.7%202.1%2012%200.59%203.3%201.68%2010.05%202.43%2015%200.74%204.95%201.85%2013.27%202.47%2018.5%200.61%205.23%201.56%2018.95%202.11%2030.5%200.55%2011.55%200.99%2034.61%200.99%2051.25%200%2019.16-0.37%2030.43-1%2030.75-0.55%200.27-1%202.64-1.01%205.25%200%202.61-0.43%207.45-0.96%2010.75-0.52%203.3-1.7%2011.17-2.62%2017.5-0.92%206.33-2.02%2013.52-2.44%2016-0.43%202.48-1.29%207.42-1.93%2011-0.63%203.58-2.7%2013.02-4.6%2021-1.9%207.98-3.93%2016.3-4.51%2018.5-0.58%202.2-2.41%208.5-4.05%2014-1.64%205.5-4.8%2015.4-7.01%2022-2.21%206.6-4.39%2012.9-4.85%2014-0.46%201.1-2.22%205.71-3.92%2010.25-1.71%204.54-3.44%208.24-3.85%208.22-0.41-0.02-2.55-1.5-4.75-3.29-2.2-1.8-6.25-4.85-9-6.79-2.75-1.94-9.95-6.45-16-10.03-6.05-3.58-14.83-8.34-19.5-10.57-4.67-2.23-10.64-5.01-13.25-6.18-2.61-1.16-8.91-3.51-14-5.21-5.09-1.71-10.71-3.51-12.5-4-1.79-0.5-4.94-1.38-7-1.96-2.06-0.58-6.9-1.73-10.75-2.54-3.85-0.82-9.47-1.94-12.5-2.48-3.02-0.54-10.9-1.64-17.5-2.44-6.6-0.81-18.52-1.46-26.5-1.45-7.98%200-20.13%200.68-27%201.5-6.88%200.81-13.85%201.75-15.5%202.08-1.65%200.32-7.27%201.43-12.5%202.47-5.23%201.04-12.65%202.83-16.5%203.98-3.85%201.16-9.02%202.67-11.5%203.38-2.48%200.7-9.45%203.31-15.5%205.8-6.05%202.49-14.6%206.3-19%208.46-4.4%202.17-12.05%206.39-17%209.38-4.95%203-13.5%208.66-19%2012.58-5.5%203.92-12.7%209.48-16%2012.36-3.3%202.88-8.88%207.99-12.41%2011.36-3.52%203.36-9.6%209.72-13.5%2014.12-3.9%204.4-7.32%208.23-7.59%208.5-0.27%200.27-2.09%202.52-4.04%205-1.94%202.48-4.39%205.85-5.43%207.5-1.04%201.65-2.38%203.47-2.96%204.05-0.59%200.58-3.12%204.4-5.63%208.5-2.5%204.1-5.89%209.7-7.53%2012.45-1.63%202.75-4.16%207.48-5.61%2010.5-1.45%203.02-4.03%208.42-5.73%2012-1.71%203.58-3.1%206.95-3.09%207.5%200%200.55-0.69%202.35-1.54%204-0.85%201.65-2.83%206.83-4.39%2011.5-1.56%204.67-4.24%2014.12-5.95%2021-1.71%206.87-4.01%2019.25-5.1%2027.5-1.42%2010.7-1.99%2020.73-1.99%2035%200%2014.2%200.58%2024.35%201.98%2035%201.09%208.25%203.53%2021.08%205.43%2028.5%201.9%207.42%204.63%2016.87%206.07%2021%201.44%204.12%203.03%208.4%203.54%209.5%200.5%201.1%201.87%204.47%203.03%207.5%201.16%203.03%204.23%209.78%206.82%2015%202.59%205.22%205.48%2010.62%206.42%2012%200.94%201.37%201.73%202.72%201.74%203%200.01%200.28-1.91%201.07-4.26%201.77-2.35%200.7-8.55%202.17-13.78%203.28-5.23%201.11-11.98%202.47-15%203.03-3.02%200.55-7.75%201.43-10.5%201.95-2.75%200.52-10.63%201.65-17.5%202.53-6.88%200.87-16.33%202-21%202.5-4.67%200.5-17.27%201.4-28%202.01-11.32%200.65-29.56%200.85-43.5%200.48-13.2-0.35-27.83-1.06-32.5-1.57-4.67-0.52-14.8-1.66-22.5-2.54-7.7-0.88-17.6-2.21-22-2.95-4.4-0.75-14.98-2.78-23.5-4.5-8.52-1.73-18.88-4.05-23-5.15-4.13-1.1-10.2-2.68-13.5-3.51-3.3-0.83-10.27-2.86-15.5-4.51-5.23-1.65-12.88-4.1-17-5.45-4.13-1.35-8.4-2.85-9.5-3.33-1.1-0.47-6.5-2.54-12-4.6-5.5-2.05-11.8-4.52-14-5.49-2.2-0.97-8.73-3.88-14.5-6.47-5.77-2.59-15.45-7.18-21.5-10.21-6.05-3.02-14.38-7.3-18.5-9.51-4.13-2.2-7.95-4.36-8.5-4.78-0.55-0.42-3.25-2.02-6-3.54-2.75-1.52-12.65-7.69-22-13.71-9.35-6.02-23.75-16.02-32-22.22-8.25-6.21-16.78-12.8-18.96-14.65-2.18-1.85-8.68-7.41-14.44-12.36-5.77-4.95-17.28-15.75-25.58-24-8.3-8.25-17.33-17.48-20.07-20.5-2.74-3.02-7.71-8.65-11.05-12.5-3.34-3.85-9.97-11.95-14.75-18-4.77-6.05-9.02-11.45-9.44-12-0.42-0.55-3.51-4.83-6.87-9.5-3.36-4.67-8.78-12.55-12.05-17.5-3.26-4.95-8.45-13.05-11.52-18-3.07-4.95-8.47-14.17-11.99-20.5-3.53-6.33-9.38-17.58-13-25-3.63-7.42-7.59-15.75-8.8-18.5-1.21-2.75-3.22-7.25-4.45-10-1.24-2.75-2.6-6.13-3.02-7.5-0.43-1.38-1.6-4.3-2.61-6.5-1.01-2.2-3.68-9.17-5.94-15.5-2.27-6.33-4.71-13.3-5.43-15.5-0.73-2.2-2.52-8.05-3.99-13-1.46-4.95-3.06-10.13-3.55-11.5-0.49-1.38-2.5-9.25-4.47-17.5-1.98-8.25-4.02-16.8-4.54-19-0.52-2.2-1.42-6.7-2-10-0.58-3.3-1.67-9.6-2.42-14-0.75-4.4-1.83-11.6-2.41-16-0.58-4.4-1.54-12.5-2.13-18-0.59-5.5-1.51-10.11-2.05-10.25-0.6-0.16-0.97-11.89-0.96-31%200-16.91%200.44-39.3%200.97-49.75%200.53-10.45%201.45-23.73%202.03-29.5%200.59-5.77%201.55-14.1%202.13-18.5%200.58-4.4%201.67-11.6%202.42-16%200.75-4.4%201.84-10.7%202.42-14%200.58-3.3%201.48-7.8%202-10%200.52-2.2%202.56-10.75%204.54-19%201.97-8.25%203.98-16.13%204.47-17.5%200.48-1.38%201.84-5.88%203.02-10%201.18-4.13%204.4-14.02%207.15-22%202.75-7.98%205.36-15.4%205.81-16.5%200.44-1.1%201.97-4.7%203.39-8%201.43-3.3%202.6-6.34%202.61-6.75%200.02-0.41%201.2-3.34%202.64-6.5%201.43-3.16%203.3-7.32%204.15-9.25%200.86-1.93%204.59-9.8%208.3-17.5%203.71-7.7%209.76-19.4%2013.45-26%203.68-6.6%209.22-16.05%2012.3-21%203.08-4.95%208.58-13.5%2012.22-19%203.64-5.5%207.72-11.57%209.05-13.5%201.34-1.93%204.43-6.2%206.87-9.5%202.43-3.3%207.79-10.28%2011.91-15.5%204.11-5.22%2010.67-13.1%2014.56-17.5%203.89-4.4%209.08-10.25%2011.53-13%202.44-2.75%2010.77-11.3%2018.5-19.01%207.73-7.7%2019.23-18.52%2025.55-24.04%206.32-5.51%2015.1-12.94%2019.5-16.49%204.4-3.56%2010.02-7.96%2012.5-9.77%202.48-1.82%207.43-5.45%2011-8.06%203.57-2.62%209.43-6.72%2013-9.11%203.57-2.39%208.3-5.57%2010.5-7.06%202.2-1.49%209.85-6.21%2017-10.48%207.15-4.28%2015.48-9.13%2018.5-10.78%203.02-1.66%2010.92-5.75%2017.53-9.1%206.62-3.36%2015.17-7.53%2019-9.27%203.84-1.75%2010.12-4.52%2013.97-6.17%203.85-1.66%2012.4-5.11%2019-7.67%206.6-2.56%2018.64-6.87%2026.75-9.58%208.11-2.7%2016.44-5.33%2018.5-5.85%202.06-0.52%207.12-1.9%2011.25-3.06%204.12-1.17%2010.43-2.8%2014-3.63%203.57-0.84%208.07-1.88%2010-2.32%201.93-0.45%207.1-1.54%2011.5-2.42%204.4-0.89%2010.25-2.05%2013-2.58%202.75-0.53%207.25-1.24%2010-1.57%202.75-0.34%207.25-1.02%2010-1.52%202.75-0.5%2010.4-1.45%2017-2.1%206.6-0.65%2016.95-1.48%2023-1.84%206.05-0.36%2026.75-0.72%2046-0.8zm-42.29%20288.46c-6.99%200.78-16.76%202.31-21.71%203.4-4.95%201.09-11.48%202.67-14.5%203.51-3.02%200.84-7.98%202.24-11%203.12-3.02%200.88-10.45%203.5-16.5%205.83-6.05%202.33-14.82%206-19.5%208.16-4.68%202.15-12.77%206.32-18%209.26-5.23%202.94-13.32%207.87-18%2010.95-4.68%203.09-11.2%207.62-14.5%2010.08-3.3%202.45-8.93%206.92-12.5%209.92-3.57%203.01-12.15%2011.12-19.05%2018.03-6.9%206.91-15.61%2016.38-19.34%2021.06-3.73%204.68-10.49%2014.13-15.01%2021-4.53%206.88-9.98%2015.65-12.11%2019.5-2.13%203.85-5.64%2010.6-7.79%2015-2.15%204.4-5.5%2011.82-7.43%2016.5-1.94%204.68-4.38%2011.2-5.43%2014.5-1.06%203.3-3.22%2010.5-4.81%2016-1.59%205.5-3.42%2012.7-4.06%2016-0.64%203.3-1.58%208.25-2.08%2011-0.5%202.75-1.58%209.95-2.39%2016-0.95%207.05-1.49%2019.36-1.49%2034.25-0.01%2012.79%200.45%2026.51%201.02%2030.5%200.56%203.99%201.5%2010.17%202.07%2013.75%200.58%203.58%201.73%209.88%202.57%2014%200.84%204.13%202.88%2012.23%204.53%2018%201.65%205.77%204.12%2013.88%205.5%2018%201.37%204.13%202.84%207.95%203.27%208.5%200.42%200.55%201.68%203.48%202.79%206.5%201.11%203.02%203.79%209.1%205.94%2013.5%202.15%204.4%205.66%2011.15%207.78%2015%202.13%203.85%207.59%2012.63%2012.14%2019.5%204.54%206.88%2011.3%2016.33%2015.02%2021%203.73%204.67%2012.09%2013.9%2018.58%2020.5%206.5%206.6%2014.62%2014.29%2018.05%2017.09%203.43%202.8%2010.05%207.98%2014.73%2011.51%204.68%203.53%2012.1%208.74%2016.5%2011.58%204.4%202.83%2010.02%206.3%2012.5%207.7%202.48%201.4%209.45%204.99%2015.5%207.97%206.05%202.98%2013.25%206.42%2016%207.65%202.75%201.23%2012.2%204.61%2021%207.5%208.8%202.9%2021.62%206.44%2028.5%207.89%206.87%201.44%2014.52%203.04%2017%203.55%202.48%200.51%2013.27%201.48%2024%202.15%2015.34%200.97%2023.66%200.97%2039%200.01%2010.73-0.67%2021.3-1.6%2023.5-2.08%202.2-0.47%206.7-1.37%2010-1.99%203.3-0.63%208.92-1.82%2012.5-2.66%203.58-0.84%2010.1-2.58%2014.5-3.87%204.4-1.29%2012.27-3.89%2017.5-5.78%205.23-1.89%2011.51-4.29%2013.96-5.33%202.46-1.04%2010.33-4.84%2017.5-8.44%207.17-3.61%2018.21-9.87%2024.54-13.92%206.33-4.04%2012.68-8.3%2014.12-9.44%201.45-1.15%203.87-2.99%205.39-4.09%201.53-1.1%203.56-2.67%204.52-3.5%200.97-0.83%204.51-3.75%207.88-6.5%203.37-2.75%2011.85-10.86%2018.86-18.02%207-7.16%2016.15-17.51%2020.34-23%204.19-5.49%2010.3-14.03%2013.6-18.98%203.29-4.95%207.48-11.7%209.3-15%201.83-3.3%205.43-10.27%208.02-15.5%202.58-5.23%205.41-11.08%206.28-13%200.88-1.92%202.57-5.98%203.75-9%201.18-3.02%203.02-8.2%204.08-11.5%201.07-3.3%203.22-10.5%204.78-16%201.56-5.5%203.34-12.02%203.96-14.5%200.61-2.48%201.6-7.42%202.18-11%200.59-3.58%201.51-9.65%202.04-13.5%200.54-3.85%201.34-13.98%201.79-22.5%200.44-8.52%200.44-22.25%200-30.5-0.45-8.25-1.25-18.15-1.79-22-0.53-3.85-1.46-9.92-2.05-13.5-0.59-3.58-2.01-10.33-3.14-15-1.14-4.67-2.44-9.62-2.89-11-0.45-1.37-1.84-5.87-3.08-10-1.24-4.12-3.56-10.87-5.15-15-1.59-4.12-3.6-9.07-4.47-11-0.87-1.93-3.71-7.77-6.31-13-2.59-5.23-5.55-11.07-6.56-13-1.01-1.93-3.99-6.87-6.62-11-2.63-4.12-7.45-11.32-10.7-16-3.25-4.68-9.5-12.77-13.89-18-4.39-5.23-13.1-14.45-19.36-20.5-6.26-6.05-15.21-14.06-19.88-17.8-4.68-3.74-10.92-8.47-13.88-10.5-2.96-2.04-9.26-6.13-14-9.1-4.74-2.97-13.12-7.77-18.62-10.66-5.5-2.89-14.5-7.13-20-9.42-5.5-2.28-10.9-4.56-12-5.06-1.1-0.49-6.05-2.24-11-3.88-4.95-1.65-11.02-3.49-13.5-4.09-2.48-0.6-9.23-2.16-15-3.47-5.77-1.3-15.9-3.11-22.5-4.02-6.81-0.93-20.87-1.79-32.5-1.97-11.27-0.17-22.66-0.08-25.29%200.21-2.63%200.29-10.51%201.16-17.5%201.94z'/%3e%3cpath%20id='Path%202'%20class='s1'%20d='m953.5%20831.1c-2.75%200.49-7.7%201.38-11%201.99-3.3%200.61-8.48%201.77-11.5%202.57-3.02%200.81-9.33%202.84-14%204.52-4.67%201.68-13%205.31-18.5%208.06-5.5%202.75-12.48%206.61-15.5%208.58-3.02%201.97-8.2%205.61-11.5%208.08-3.3%202.47-9.33%207.44-13.39%2011.05-4.07%203.6-10.64%2010.38-14.61%2015.05-3.96%204.67-10.02%2012.77-13.46%2018-3.44%205.22-7.84%2012.65-9.78%2016.5-1.94%203.85-5.1%2011.05-7.02%2016-1.92%204.95-4.35%2011.92-5.39%2015.5-1.04%203.58-2.57%209.65-3.39%2013.5-0.83%203.85-2%2013.3-2.61%2021-0.81%2010.28-0.8%2017.79%200.02%2028.25%200.62%207.84%202.22%2018.86%203.55%2024.5%201.33%205.64%203.42%2013.17%204.65%2016.75%201.22%203.58%204%2010.55%206.17%2015.5%202.17%204.95%206.32%2013.05%209.22%2018%202.91%204.95%207.71%2012.22%2010.66%2016.15%202.96%203.94%208.08%2010.19%2011.38%2013.89%203.3%203.7%2010.05%2010.13%2015%2014.28%204.95%204.15%2013.05%2010.21%2018%2013.47%204.95%203.25%2011.92%207.4%2015.5%209.2%203.58%201.81%2010.55%204.92%2015.5%206.91%204.95%201.99%2012.83%204.69%2017.5%206%204.67%201.3%209.85%202.69%2011.5%203.07%201.65%200.39%206.83%201.33%2011.5%202.1%205.11%200.84%2015.89%201.4%2027%201.4%2010.17%200%2020.08-0.41%2022-0.92%201.92-0.5%206.2-1.45%209.5-2.1%203.3-0.65%2010.27-2.42%2015.5-3.93%205.22-1.5%2013.55-4.41%2018.5-6.46%204.95-2.05%2013.05-5.96%2018-8.68%204.95-2.73%2013.5-8.3%2019-12.39%205.5-4.08%2013.97-11.38%2018.82-16.21%204.86-4.83%2012.1-13.06%2016.09-18.28%203.99-5.22%209.09-12.65%2011.32-16.5%202.23-3.85%205.93-10.83%208.21-15.5%202.28-4.67%205.68-13.22%207.55-19%201.87-5.78%203.86-12.3%204.41-14.5%200.55-2.2%201.7-8.39%202.55-13.75%200.98-6.14%201.55-16.31%201.54-27.5%200-12.91-0.53-20.88-1.94-29.25-1.06-6.33-3.1-15.33-4.52-20-1.43-4.67-3.03-9.29-3.56-10.25-0.53-0.96-0.97-2.2-0.97-2.75%200-0.55-0.86-2.91-1.92-5.25-1.06-2.34-2.98-6.5-4.28-9.25-1.29-2.75-4.32-8.38-6.72-12.5-2.41-4.13-5.99-9.75-7.98-12.5-1.98-2.75-4.5-6.1-5.6-7.45-1.1-1.35-4.03-4.71-6.5-7.48-2.47-2.76-5.63-6.17-7-7.56-1.38-1.39-5.65-5.28-9.5-8.64-3.85-3.36-11.5-9.16-17-12.89-5.5-3.73-14.3-8.85-19.55-11.38-5.26-2.53-10.88-5.15-12.5-5.82-1.62-0.68-6.33-2.39-10.45-3.8-4.13-1.42-10.65-3.26-14.5-4.09-3.85-0.84-10.83-2.16-15.5-2.94-5.29-0.88-15.11-1.38-26-1.32-9.63%200.05-19.75%200.49-22.5%200.97z'/%3e%3c/g%3e%3c/svg%3e", fi = za;
|
|
3431
|
+
const _a = "data:image/svg+xml,%3csvg%20version='1.2'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201280%201280'%20width='500'%20height='500'%3e%3cstyle%3e%20.s0%20{%20opacity:%201;fill:%20%2317535d%20}%20.s1%20{%20opacity:%20.99;fill:%20%23fab185%20}%20%3c/style%3e%3cg%20id='gentiq%20(7)'%3e%3cpath%20id='Path%201'%20fill-rule='evenodd'%20class='s0'%20d='m616.5%2012.22c19.25-0.09%2038.15%200.29%2042%200.84%203.85%200.54%2011.73%201.43%2017.5%201.98%205.77%200.55%2016.35%201.85%2023.5%202.91%207.15%201.05%2016.6%202.62%2021%203.49%204.4%200.88%209.8%202.02%2012%202.53%202.2%200.52%207.15%201.65%2011%202.5%203.85%200.86%208.58%202%2010.5%202.54%201.92%200.54%207.77%202.15%2013%203.6%205.23%201.44%2016.02%204.77%2024%207.4%207.98%202.63%2017.65%205.99%2021.5%207.48%203.85%201.48%2011.95%204.74%2018%207.24%206.05%202.5%2014.6%206.16%2019%208.14%204.4%201.98%2013.4%206.35%2020%209.72%206.6%203.36%2014.48%207.47%2017.5%209.11%203.02%201.65%2011.35%206.5%2018.5%2010.77%207.15%204.27%2018.17%2011.2%2024.49%2015.4%206.32%204.2%2012.17%208.16%2013%208.82%200.83%200.65%207.36%205.55%2014.51%2010.88%207.15%205.33%2013.23%209.97%2013.5%2010.31%200.27%200.34%202.73%202.42%205.45%204.62%202.72%202.2%205.43%204.45%206.02%205%200.59%200.55%204.89%204.35%209.55%208.45%204.67%204.1%2015.04%2014%2023.05%2022%208.02%208%2018.22%2018.6%2022.67%2023.55%204.46%204.95%2011.4%2013.07%2015.43%2018.04%204.03%204.97%2011.43%2014.42%2016.43%2021%205.01%206.58%2012.65%2017.36%2016.97%2023.96%204.33%206.6%208.56%2013.15%209.4%2014.57%200.84%201.41%204.08%206.81%207.19%2012%203.11%205.18%207.29%2012.36%209.29%2015.93%202%203.57%207.6%2014.6%2012.44%2024.5%204.84%209.9%2010.51%2022.05%2012.6%2027%202.08%204.95%204.36%2010.35%205.07%2012%200.71%201.65%202.26%205.48%203.44%208.5%201.19%203.02%204.44%2012.25%207.22%2020.5%202.79%208.25%205.42%2016.35%205.84%2018%200.43%201.65%201.72%206.15%202.87%2010%201.15%203.85%203.86%2014.43%206.03%2023.5%202.16%209.07%204.38%2019.2%204.94%2022.5%200.56%203.3%201.5%208.7%202.1%2012%200.59%203.3%201.68%2010.05%202.43%2015%200.74%204.95%201.85%2013.27%202.47%2018.5%200.61%205.23%201.56%2018.95%202.11%2030.5%200.55%2011.55%200.99%2034.61%200.99%2051.25%200%2019.16-0.37%2030.43-1%2030.75-0.55%200.27-1%202.64-1.01%205.25%200%202.61-0.43%207.45-0.96%2010.75-0.52%203.3-1.7%2011.17-2.62%2017.5-0.92%206.33-2.02%2013.52-2.44%2016-0.43%202.48-1.29%207.42-1.93%2011-0.63%203.58-2.7%2013.02-4.6%2021-1.9%207.98-3.93%2016.3-4.51%2018.5-0.58%202.2-2.41%208.5-4.05%2014-1.64%205.5-4.8%2015.4-7.01%2022-2.21%206.6-4.39%2012.9-4.85%2014-0.46%201.1-2.22%205.71-3.92%2010.25-1.71%204.54-3.44%208.24-3.85%208.22-0.41-0.02-2.55-1.5-4.75-3.29-2.2-1.8-6.25-4.85-9-6.79-2.75-1.94-9.95-6.45-16-10.03-6.05-3.58-14.83-8.34-19.5-10.57-4.67-2.23-10.64-5.01-13.25-6.18-2.61-1.16-8.91-3.51-14-5.21-5.09-1.71-10.71-3.51-12.5-4-1.79-0.5-4.94-1.38-7-1.96-2.06-0.58-6.9-1.73-10.75-2.54-3.85-0.82-9.47-1.94-12.5-2.48-3.02-0.54-10.9-1.64-17.5-2.44-6.6-0.81-18.52-1.46-26.5-1.45-7.98%200-20.13%200.68-27%201.5-6.88%200.81-13.85%201.75-15.5%202.08-1.65%200.32-7.27%201.43-12.5%202.47-5.23%201.04-12.65%202.83-16.5%203.98-3.85%201.16-9.02%202.67-11.5%203.38-2.48%200.7-9.45%203.31-15.5%205.8-6.05%202.49-14.6%206.3-19%208.46-4.4%202.17-12.05%206.39-17%209.38-4.95%203-13.5%208.66-19%2012.58-5.5%203.92-12.7%209.48-16%2012.36-3.3%202.88-8.88%207.99-12.41%2011.36-3.52%203.36-9.6%209.72-13.5%2014.12-3.9%204.4-7.32%208.23-7.59%208.5-0.27%200.27-2.09%202.52-4.04%205-1.94%202.48-4.39%205.85-5.43%207.5-1.04%201.65-2.38%203.47-2.96%204.05-0.59%200.58-3.12%204.4-5.63%208.5-2.5%204.1-5.89%209.7-7.53%2012.45-1.63%202.75-4.16%207.48-5.61%2010.5-1.45%203.02-4.03%208.42-5.73%2012-1.71%203.58-3.1%206.95-3.09%207.5%200%200.55-0.69%202.35-1.54%204-0.85%201.65-2.83%206.83-4.39%2011.5-1.56%204.67-4.24%2014.12-5.95%2021-1.71%206.87-4.01%2019.25-5.1%2027.5-1.42%2010.7-1.99%2020.73-1.99%2035%200%2014.2%200.58%2024.35%201.98%2035%201.09%208.25%203.53%2021.08%205.43%2028.5%201.9%207.42%204.63%2016.87%206.07%2021%201.44%204.12%203.03%208.4%203.54%209.5%200.5%201.1%201.87%204.47%203.03%207.5%201.16%203.03%204.23%209.78%206.82%2015%202.59%205.22%205.48%2010.62%206.42%2012%200.94%201.37%201.73%202.72%201.74%203%200.01%200.28-1.91%201.07-4.26%201.77-2.35%200.7-8.55%202.17-13.78%203.28-5.23%201.11-11.98%202.47-15%203.03-3.02%200.55-7.75%201.43-10.5%201.95-2.75%200.52-10.63%201.65-17.5%202.53-6.88%200.87-16.33%202-21%202.5-4.67%200.5-17.27%201.4-28%202.01-11.32%200.65-29.56%200.85-43.5%200.48-13.2-0.35-27.83-1.06-32.5-1.57-4.67-0.52-14.8-1.66-22.5-2.54-7.7-0.88-17.6-2.21-22-2.95-4.4-0.75-14.98-2.78-23.5-4.5-8.52-1.73-18.88-4.05-23-5.15-4.13-1.1-10.2-2.68-13.5-3.51-3.3-0.83-10.27-2.86-15.5-4.51-5.23-1.65-12.88-4.1-17-5.45-4.13-1.35-8.4-2.85-9.5-3.33-1.1-0.47-6.5-2.54-12-4.6-5.5-2.05-11.8-4.52-14-5.49-2.2-0.97-8.73-3.88-14.5-6.47-5.77-2.59-15.45-7.18-21.5-10.21-6.05-3.02-14.38-7.3-18.5-9.51-4.13-2.2-7.95-4.36-8.5-4.78-0.55-0.42-3.25-2.02-6-3.54-2.75-1.52-12.65-7.69-22-13.71-9.35-6.02-23.75-16.02-32-22.22-8.25-6.21-16.78-12.8-18.96-14.65-2.18-1.85-8.68-7.41-14.44-12.36-5.77-4.95-17.28-15.75-25.58-24-8.3-8.25-17.33-17.48-20.07-20.5-2.74-3.02-7.71-8.65-11.05-12.5-3.34-3.85-9.97-11.95-14.75-18-4.77-6.05-9.02-11.45-9.44-12-0.42-0.55-3.51-4.83-6.87-9.5-3.36-4.67-8.78-12.55-12.05-17.5-3.26-4.95-8.45-13.05-11.52-18-3.07-4.95-8.47-14.17-11.99-20.5-3.53-6.33-9.38-17.58-13-25-3.63-7.42-7.59-15.75-8.8-18.5-1.21-2.75-3.22-7.25-4.45-10-1.24-2.75-2.6-6.13-3.02-7.5-0.43-1.38-1.6-4.3-2.61-6.5-1.01-2.2-3.68-9.17-5.94-15.5-2.27-6.33-4.71-13.3-5.43-15.5-0.73-2.2-2.52-8.05-3.99-13-1.46-4.95-3.06-10.13-3.55-11.5-0.49-1.38-2.5-9.25-4.47-17.5-1.98-8.25-4.02-16.8-4.54-19-0.52-2.2-1.42-6.7-2-10-0.58-3.3-1.67-9.6-2.42-14-0.75-4.4-1.83-11.6-2.41-16-0.58-4.4-1.54-12.5-2.13-18-0.59-5.5-1.51-10.11-2.05-10.25-0.6-0.16-0.97-11.89-0.96-31%200-16.91%200.44-39.3%200.97-49.75%200.53-10.45%201.45-23.73%202.03-29.5%200.59-5.77%201.55-14.1%202.13-18.5%200.58-4.4%201.67-11.6%202.42-16%200.75-4.4%201.84-10.7%202.42-14%200.58-3.3%201.48-7.8%202-10%200.52-2.2%202.56-10.75%204.54-19%201.97-8.25%203.98-16.13%204.47-17.5%200.48-1.38%201.84-5.88%203.02-10%201.18-4.13%204.4-14.02%207.15-22%202.75-7.98%205.36-15.4%205.81-16.5%200.44-1.1%201.97-4.7%203.39-8%201.43-3.3%202.6-6.34%202.61-6.75%200.02-0.41%201.2-3.34%202.64-6.5%201.43-3.16%203.3-7.32%204.15-9.25%200.86-1.93%204.59-9.8%208.3-17.5%203.71-7.7%209.76-19.4%2013.45-26%203.68-6.6%209.22-16.05%2012.3-21%203.08-4.95%208.58-13.5%2012.22-19%203.64-5.5%207.72-11.57%209.05-13.5%201.34-1.93%204.43-6.2%206.87-9.5%202.43-3.3%207.79-10.28%2011.91-15.5%204.11-5.22%2010.67-13.1%2014.56-17.5%203.89-4.4%209.08-10.25%2011.53-13%202.44-2.75%2010.77-11.3%2018.5-19.01%207.73-7.7%2019.23-18.52%2025.55-24.04%206.32-5.51%2015.1-12.94%2019.5-16.49%204.4-3.56%2010.02-7.96%2012.5-9.77%202.48-1.82%207.43-5.45%2011-8.06%203.57-2.62%209.43-6.72%2013-9.11%203.57-2.39%208.3-5.57%2010.5-7.06%202.2-1.49%209.85-6.21%2017-10.48%207.15-4.28%2015.48-9.13%2018.5-10.78%203.02-1.66%2010.92-5.75%2017.53-9.1%206.62-3.36%2015.17-7.53%2019-9.27%203.84-1.75%2010.12-4.52%2013.97-6.17%203.85-1.66%2012.4-5.11%2019-7.67%206.6-2.56%2018.64-6.87%2026.75-9.58%208.11-2.7%2016.44-5.33%2018.5-5.85%202.06-0.52%207.12-1.9%2011.25-3.06%204.12-1.17%2010.43-2.8%2014-3.63%203.57-0.84%208.07-1.88%2010-2.32%201.93-0.45%207.1-1.54%2011.5-2.42%204.4-0.89%2010.25-2.05%2013-2.58%202.75-0.53%207.25-1.24%2010-1.57%202.75-0.34%207.25-1.02%2010-1.52%202.75-0.5%2010.4-1.45%2017-2.1%206.6-0.65%2016.95-1.48%2023-1.84%206.05-0.36%2026.75-0.72%2046-0.8zm-42.29%20288.46c-6.99%200.78-16.76%202.31-21.71%203.4-4.95%201.09-11.48%202.67-14.5%203.51-3.02%200.84-7.98%202.24-11%203.12-3.02%200.88-10.45%203.5-16.5%205.83-6.05%202.33-14.82%206-19.5%208.16-4.68%202.15-12.77%206.32-18%209.26-5.23%202.94-13.32%207.87-18%2010.95-4.68%203.09-11.2%207.62-14.5%2010.08-3.3%202.45-8.93%206.92-12.5%209.92-3.57%203.01-12.15%2011.12-19.05%2018.03-6.9%206.91-15.61%2016.38-19.34%2021.06-3.73%204.68-10.49%2014.13-15.01%2021-4.53%206.88-9.98%2015.65-12.11%2019.5-2.13%203.85-5.64%2010.6-7.79%2015-2.15%204.4-5.5%2011.82-7.43%2016.5-1.94%204.68-4.38%2011.2-5.43%2014.5-1.06%203.3-3.22%2010.5-4.81%2016-1.59%205.5-3.42%2012.7-4.06%2016-0.64%203.3-1.58%208.25-2.08%2011-0.5%202.75-1.58%209.95-2.39%2016-0.95%207.05-1.49%2019.36-1.49%2034.25-0.01%2012.79%200.45%2026.51%201.02%2030.5%200.56%203.99%201.5%2010.17%202.07%2013.75%200.58%203.58%201.73%209.88%202.57%2014%200.84%204.13%202.88%2012.23%204.53%2018%201.65%205.77%204.12%2013.88%205.5%2018%201.37%204.13%202.84%207.95%203.27%208.5%200.42%200.55%201.68%203.48%202.79%206.5%201.11%203.02%203.79%209.1%205.94%2013.5%202.15%204.4%205.66%2011.15%207.78%2015%202.13%203.85%207.59%2012.63%2012.14%2019.5%204.54%206.88%2011.3%2016.33%2015.02%2021%203.73%204.67%2012.09%2013.9%2018.58%2020.5%206.5%206.6%2014.62%2014.29%2018.05%2017.09%203.43%202.8%2010.05%207.98%2014.73%2011.51%204.68%203.53%2012.1%208.74%2016.5%2011.58%204.4%202.83%2010.02%206.3%2012.5%207.7%202.48%201.4%209.45%204.99%2015.5%207.97%206.05%202.98%2013.25%206.42%2016%207.65%202.75%201.23%2012.2%204.61%2021%207.5%208.8%202.9%2021.62%206.44%2028.5%207.89%206.87%201.44%2014.52%203.04%2017%203.55%202.48%200.51%2013.27%201.48%2024%202.15%2015.34%200.97%2023.66%200.97%2039%200.01%2010.73-0.67%2021.3-1.6%2023.5-2.08%202.2-0.47%206.7-1.37%2010-1.99%203.3-0.63%208.92-1.82%2012.5-2.66%203.58-0.84%2010.1-2.58%2014.5-3.87%204.4-1.29%2012.27-3.89%2017.5-5.78%205.23-1.89%2011.51-4.29%2013.96-5.33%202.46-1.04%2010.33-4.84%2017.5-8.44%207.17-3.61%2018.21-9.87%2024.54-13.92%206.33-4.04%2012.68-8.3%2014.12-9.44%201.45-1.15%203.87-2.99%205.39-4.09%201.53-1.1%203.56-2.67%204.52-3.5%200.97-0.83%204.51-3.75%207.88-6.5%203.37-2.75%2011.85-10.86%2018.86-18.02%207-7.16%2016.15-17.51%2020.34-23%204.19-5.49%2010.3-14.03%2013.6-18.98%203.29-4.95%207.48-11.7%209.3-15%201.83-3.3%205.43-10.27%208.02-15.5%202.58-5.23%205.41-11.08%206.28-13%200.88-1.92%202.57-5.98%203.75-9%201.18-3.02%203.02-8.2%204.08-11.5%201.07-3.3%203.22-10.5%204.78-16%201.56-5.5%203.34-12.02%203.96-14.5%200.61-2.48%201.6-7.42%202.18-11%200.59-3.58%201.51-9.65%202.04-13.5%200.54-3.85%201.34-13.98%201.79-22.5%200.44-8.52%200.44-22.25%200-30.5-0.45-8.25-1.25-18.15-1.79-22-0.53-3.85-1.46-9.92-2.05-13.5-0.59-3.58-2.01-10.33-3.14-15-1.14-4.67-2.44-9.62-2.89-11-0.45-1.37-1.84-5.87-3.08-10-1.24-4.12-3.56-10.87-5.15-15-1.59-4.12-3.6-9.07-4.47-11-0.87-1.93-3.71-7.77-6.31-13-2.59-5.23-5.55-11.07-6.56-13-1.01-1.93-3.99-6.87-6.62-11-2.63-4.12-7.45-11.32-10.7-16-3.25-4.68-9.5-12.77-13.89-18-4.39-5.23-13.1-14.45-19.36-20.5-6.26-6.05-15.21-14.06-19.88-17.8-4.68-3.74-10.92-8.47-13.88-10.5-2.96-2.04-9.26-6.13-14-9.1-4.74-2.97-13.12-7.77-18.62-10.66-5.5-2.89-14.5-7.13-20-9.42-5.5-2.28-10.9-4.56-12-5.06-1.1-0.49-6.05-2.24-11-3.88-4.95-1.65-11.02-3.49-13.5-4.09-2.48-0.6-9.23-2.16-15-3.47-5.77-1.3-15.9-3.11-22.5-4.02-6.81-0.93-20.87-1.79-32.5-1.97-11.27-0.17-22.66-0.08-25.29%200.21-2.63%200.29-10.51%201.16-17.5%201.94z'/%3e%3cpath%20id='Path%202'%20class='s1'%20d='m953.5%20831.1c-2.75%200.49-7.7%201.38-11%201.99-3.3%200.61-8.48%201.77-11.5%202.57-3.02%200.81-9.33%202.84-14%204.52-4.67%201.68-13%205.31-18.5%208.06-5.5%202.75-12.48%206.61-15.5%208.58-3.02%201.97-8.2%205.61-11.5%208.08-3.3%202.47-9.33%207.44-13.39%2011.05-4.07%203.6-10.64%2010.38-14.61%2015.05-3.96%204.67-10.02%2012.77-13.46%2018-3.44%205.22-7.84%2012.65-9.78%2016.5-1.94%203.85-5.1%2011.05-7.02%2016-1.92%204.95-4.35%2011.92-5.39%2015.5-1.04%203.58-2.57%209.65-3.39%2013.5-0.83%203.85-2%2013.3-2.61%2021-0.81%2010.28-0.8%2017.79%200.02%2028.25%200.62%207.84%202.22%2018.86%203.55%2024.5%201.33%205.64%203.42%2013.17%204.65%2016.75%201.22%203.58%204%2010.55%206.17%2015.5%202.17%204.95%206.32%2013.05%209.22%2018%202.91%204.95%207.71%2012.22%2010.66%2016.15%202.96%203.94%208.08%2010.19%2011.38%2013.89%203.3%203.7%2010.05%2010.13%2015%2014.28%204.95%204.15%2013.05%2010.21%2018%2013.47%204.95%203.25%2011.92%207.4%2015.5%209.2%203.58%201.81%2010.55%204.92%2015.5%206.91%204.95%201.99%2012.83%204.69%2017.5%206%204.67%201.3%209.85%202.69%2011.5%203.07%201.65%200.39%206.83%201.33%2011.5%202.1%205.11%200.84%2015.89%201.4%2027%201.4%2010.17%200%2020.08-0.41%2022-0.92%201.92-0.5%206.2-1.45%209.5-2.1%203.3-0.65%2010.27-2.42%2015.5-3.93%205.22-1.5%2013.55-4.41%2018.5-6.46%204.95-2.05%2013.05-5.96%2018-8.68%204.95-2.73%2013.5-8.3%2019-12.39%205.5-4.08%2013.97-11.38%2018.82-16.21%204.86-4.83%2012.1-13.06%2016.09-18.28%203.99-5.22%209.09-12.65%2011.32-16.5%202.23-3.85%205.93-10.83%208.21-15.5%202.28-4.67%205.68-13.22%207.55-19%201.87-5.78%203.86-12.3%204.41-14.5%200.55-2.2%201.7-8.39%202.55-13.75%200.98-6.14%201.55-16.31%201.54-27.5%200-12.91-0.53-20.88-1.94-29.25-1.06-6.33-3.1-15.33-4.52-20-1.43-4.67-3.03-9.29-3.56-10.25-0.53-0.96-0.97-2.2-0.97-2.75%200-0.55-0.86-2.91-1.92-5.25-1.06-2.34-2.98-6.5-4.28-9.25-1.29-2.75-4.32-8.38-6.72-12.5-2.41-4.13-5.99-9.75-7.98-12.5-1.98-2.75-4.5-6.1-5.6-7.45-1.1-1.35-4.03-4.71-6.5-7.48-2.47-2.76-5.63-6.17-7-7.56-1.38-1.39-5.65-5.28-9.5-8.64-3.85-3.36-11.5-9.16-17-12.89-5.5-3.73-14.3-8.85-19.55-11.38-5.26-2.53-10.88-5.15-12.5-5.82-1.62-0.68-6.33-2.39-10.45-3.8-4.13-1.42-10.65-3.26-14.5-4.09-3.85-0.84-10.83-2.16-15.5-2.94-5.29-0.88-15.11-1.38-26-1.32-9.63%200.05-19.75%200.49-22.5%200.97z'/%3e%3c/g%3e%3c/svg%3e", mi = _a;
|
|
3421
3432
|
export {
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3433
|
+
ea as $,
|
|
3434
|
+
ia as A,
|
|
3435
|
+
F as B,
|
|
3436
|
+
Ga as C,
|
|
3437
|
+
bt as D,
|
|
3427
3438
|
pe as E,
|
|
3428
3439
|
Ge as F,
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3440
|
+
_r as G,
|
|
3441
|
+
Sr as H,
|
|
3442
|
+
ai as I,
|
|
3443
|
+
Dr as J,
|
|
3444
|
+
mi as K,
|
|
3445
|
+
wa as L,
|
|
3435
3446
|
ye as M,
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3447
|
+
Tr as N,
|
|
3448
|
+
Pr as O,
|
|
3449
|
+
Cr as P,
|
|
3450
|
+
Wa as Q,
|
|
3451
|
+
pr as R,
|
|
3452
|
+
ba as S,
|
|
3453
|
+
bo as T,
|
|
3454
|
+
vs as U,
|
|
3455
|
+
Qa as V,
|
|
3456
|
+
Eo as W,
|
|
3457
|
+
Oo as X,
|
|
3458
|
+
qo as Y,
|
|
3459
|
+
jo as Z,
|
|
3460
|
+
oa as _,
|
|
3461
|
+
Za as a,
|
|
3462
|
+
Gr as a0,
|
|
3463
|
+
Ur as a1,
|
|
3464
|
+
ra as a2,
|
|
3465
|
+
fa as a3,
|
|
3466
|
+
ga as a4,
|
|
3467
|
+
yo as a5,
|
|
3468
|
+
ho as a6,
|
|
3469
|
+
Jo as a7,
|
|
3470
|
+
tn as a8,
|
|
3471
|
+
yr as a9,
|
|
3472
|
+
Hr as aa,
|
|
3473
|
+
sa as ab,
|
|
3474
|
+
na as ac,
|
|
3475
|
+
gr as ad,
|
|
3476
|
+
Br as ae,
|
|
3477
|
+
pa as af,
|
|
3478
|
+
Zo as ag,
|
|
3468
3479
|
he as ah,
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3480
|
+
Bt as ai,
|
|
3481
|
+
Ft as aj,
|
|
3482
|
+
Ka as ak,
|
|
3483
|
+
Nr as al,
|
|
3484
|
+
Le as am,
|
|
3474
3485
|
Be as an,
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3486
|
+
Fe as ao,
|
|
3487
|
+
Va as ap,
|
|
3488
|
+
Ja as aq,
|
|
3489
|
+
Xa as ar,
|
|
3490
|
+
mt as as,
|
|
3491
|
+
Q as b,
|
|
3481
3492
|
p as c,
|
|
3482
3493
|
se as d,
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3494
|
+
eo as e,
|
|
3495
|
+
ei as f,
|
|
3496
|
+
ni as g,
|
|
3497
|
+
ti as h,
|
|
3498
|
+
si as i,
|
|
3499
|
+
ri as j,
|
|
3500
|
+
oi as k,
|
|
3501
|
+
_o as l,
|
|
3502
|
+
Ha as m,
|
|
3503
|
+
ii as n,
|
|
3504
|
+
li as o,
|
|
3505
|
+
ci as p,
|
|
3506
|
+
di as q,
|
|
3507
|
+
bs as r,
|
|
3508
|
+
ui as s,
|
|
3498
3509
|
Ve as t,
|
|
3499
|
-
|
|
3510
|
+
B as u,
|
|
3500
3511
|
Qe as v,
|
|
3501
3512
|
We as w,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3513
|
+
aa as x,
|
|
3514
|
+
Ya as y,
|
|
3515
|
+
an as z
|
|
3505
3516
|
};
|