@versini/sassysaint 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.C6D9sIPY.js → App.CILpzJEh.js} +217 -217
- package/dist/chunks/{LazyHeader.p9mJYmhc.js → LazyHeader.YhIHsK0M.js} +19 -19
- package/dist/chunks/{LazyMarkdownWithExtra.CA6Eg_N6.js → LazyMarkdownWithExtra.BPTMdcU8.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.uUafovZf.js → LazyMessageAssistant.IDa3mLgE.js} +4 -4
- package/dist/chunks/{index.BcV6McvW.3HAbnzVE.js → index.BcV6McvW.U50izDOU.js} +1 -1
- package/dist/chunks/{index.t9wD3Z9D.js → index.eFSALEqy.js} +1638 -1625
- package/dist/chunks/{useLocalStorage.DagJSzA9.js → useLocalStorage.CsBq2ZMB.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as S, jsx as
|
|
2
|
-
import { O as
|
|
3
|
-
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
4
|
-
import pr, { useState as R, useEffect as
|
|
5
|
-
import
|
|
1
|
+
import { jsxs as S, jsx as n, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import { O as Be, s as Ve, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Wr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.eFSALEqy.js";
|
|
3
|
+
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.CsBq2ZMB.js";
|
|
4
|
+
import pr, { useState as R, useEffect as E, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
|
|
5
|
+
import g from "clsx";
|
|
6
6
|
const yr = ({
|
|
7
7
|
className: e,
|
|
8
8
|
viewBox: r,
|
|
9
9
|
spacing: o,
|
|
10
10
|
title: t,
|
|
11
11
|
monotone: s,
|
|
12
|
-
...
|
|
12
|
+
...a
|
|
13
13
|
}) => /* @__PURE__ */ S(
|
|
14
14
|
Ce,
|
|
15
15
|
{
|
|
@@ -19,16 +19,16 @@ const yr = ({
|
|
|
19
19
|
className: e,
|
|
20
20
|
spacing: o,
|
|
21
21
|
title: t || "Copied",
|
|
22
|
-
...
|
|
22
|
+
...a,
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ n(
|
|
25
25
|
"path",
|
|
26
26
|
{
|
|
27
27
|
opacity: "0.4",
|
|
28
28
|
d: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ n("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
), fr = ({
|
|
@@ -37,8 +37,8 @@ const yr = ({
|
|
|
37
37
|
spacing: o,
|
|
38
38
|
title: t,
|
|
39
39
|
monotone: s,
|
|
40
|
-
...
|
|
41
|
-
}) => /* @__PURE__ */
|
|
40
|
+
...a
|
|
41
|
+
}) => /* @__PURE__ */ n(
|
|
42
42
|
Ce,
|
|
43
43
|
{
|
|
44
44
|
defaultViewBox: "0 0 512 512",
|
|
@@ -47,18 +47,18 @@ const yr = ({
|
|
|
47
47
|
className: e,
|
|
48
48
|
spacing: o,
|
|
49
49
|
title: t || "Copy",
|
|
50
|
-
...
|
|
51
|
-
children: /* @__PURE__ */
|
|
50
|
+
...a,
|
|
51
|
+
children: /* @__PURE__ */ n("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
|
|
52
52
|
}
|
|
53
|
-
), hr = () => "p-4 sm:max-w-md md:max-w-2xl", xr = ({ kind: e }) =>
|
|
53
|
+
), hr = () => "p-4 sm:max-w-md md:max-w-2xl", xr = ({ kind: e }) => g({
|
|
54
54
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
55
55
|
"bg-surface-accent": e === "right"
|
|
56
|
-
}), br = ({ kind: e }) =>
|
|
56
|
+
}), br = ({ kind: e }) => g(
|
|
57
57
|
"prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
|
|
58
58
|
{
|
|
59
59
|
"text-copy-lighter": e === "right"
|
|
60
60
|
}
|
|
61
|
-
), kr = ({ kind: e }) =>
|
|
61
|
+
), kr = ({ kind: e }) => g("rounded-b-xl", {
|
|
62
62
|
"rounded-tr-xl": e === "left",
|
|
63
63
|
"rounded-tl-xl": e === "right"
|
|
64
64
|
}), Cr = ({
|
|
@@ -66,28 +66,28 @@ const yr = ({
|
|
|
66
66
|
className: r,
|
|
67
67
|
spacing: o
|
|
68
68
|
}) => {
|
|
69
|
-
const t =
|
|
69
|
+
const t = g(
|
|
70
70
|
r,
|
|
71
|
-
|
|
71
|
+
Ve,
|
|
72
72
|
"flex items-start",
|
|
73
73
|
De(o),
|
|
74
74
|
{
|
|
75
75
|
"flex-row-reverse": e === "right"
|
|
76
76
|
}
|
|
77
|
-
), s =
|
|
77
|
+
), s = g(
|
|
78
78
|
"flex flex-col empty:hidden",
|
|
79
79
|
hr(),
|
|
80
80
|
br({ kind: e }),
|
|
81
81
|
xr({ kind: e }),
|
|
82
82
|
kr({ kind: e })
|
|
83
|
-
),
|
|
83
|
+
), a = "pr-2 pt-1 text-end text-xs text-copy-light", l = g("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
84
84
|
"ml-2": e === "left",
|
|
85
85
|
"mr-2": e === "right"
|
|
86
86
|
});
|
|
87
87
|
return {
|
|
88
88
|
wrapper: t,
|
|
89
89
|
main: s,
|
|
90
|
-
footer:
|
|
90
|
+
footer: a,
|
|
91
91
|
copyButton: l
|
|
92
92
|
};
|
|
93
93
|
}, Tr = ({
|
|
@@ -96,43 +96,43 @@ const yr = ({
|
|
|
96
96
|
className: o,
|
|
97
97
|
footer: t,
|
|
98
98
|
rawFooter: s,
|
|
99
|
-
copyToClipboard:
|
|
99
|
+
copyToClipboard: a,
|
|
100
100
|
copyToClipboardFocusMode: l = "system",
|
|
101
|
-
copyToClipboardMode:
|
|
102
|
-
spacing:
|
|
101
|
+
copyToClipboardMode: h = "system",
|
|
102
|
+
spacing: c
|
|
103
103
|
}) => {
|
|
104
|
-
const [
|
|
105
|
-
i(!0), typeof
|
|
104
|
+
const [y, i] = R(!1), p = Cr({ kind: r, className: o, spacing: c }), b = !!a && (typeof a == "function" || typeof a == "string" || typeof e == "string"), T = () => {
|
|
105
|
+
i(!0), typeof a == "function" ? a(e) : typeof a == "string" ? navigator.clipboard.writeText(a) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
106
106
|
};
|
|
107
|
-
return
|
|
108
|
-
let
|
|
109
|
-
return
|
|
107
|
+
return E(() => {
|
|
108
|
+
let d;
|
|
109
|
+
return y && (d = window.setTimeout(() => {
|
|
110
110
|
i(!1);
|
|
111
111
|
}, 3e3)), () => {
|
|
112
|
-
clearTimeout(
|
|
112
|
+
clearTimeout(d);
|
|
113
113
|
};
|
|
114
|
-
}, [
|
|
114
|
+
}, [y]), /* @__PURE__ */ S("div", { className: p.wrapper, children: [
|
|
115
115
|
/* @__PURE__ */ S("div", { children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
t && Object.keys(t).map((
|
|
118
|
-
|
|
116
|
+
/* @__PURE__ */ n("div", { className: p.main, children: e }),
|
|
117
|
+
t && Object.keys(t).map((d) => t[d] ? /* @__PURE__ */ n("div", { className: "prose-p:m-0", children: /* @__PURE__ */ S("p", { className: p.footer, children: [
|
|
118
|
+
d,
|
|
119
119
|
": ",
|
|
120
|
-
t[
|
|
121
|
-
] }) }, `-${
|
|
120
|
+
t[d]
|
|
121
|
+
] }) }, `-${d}`) : null),
|
|
122
122
|
s && s
|
|
123
123
|
] }),
|
|
124
|
-
b && /* @__PURE__ */
|
|
125
|
-
|
|
124
|
+
b && /* @__PURE__ */ n("div", { className: p.copyButton, children: /* @__PURE__ */ n(
|
|
125
|
+
Be,
|
|
126
126
|
{
|
|
127
127
|
noBorder: !0,
|
|
128
128
|
noBackground: !0,
|
|
129
129
|
size: "small",
|
|
130
|
-
mode:
|
|
130
|
+
mode: h,
|
|
131
131
|
focusMode: l,
|
|
132
|
-
label:
|
|
133
|
-
onClick:
|
|
134
|
-
disabled:
|
|
135
|
-
children:
|
|
132
|
+
label: y ? "Copied to clipboard" : "Copy to clipboard",
|
|
133
|
+
onClick: T,
|
|
134
|
+
disabled: y,
|
|
135
|
+
children: y ? /* @__PURE__ */ n(yr, { className: "size-3" }) : /* @__PURE__ */ n(fr, { className: "size-3" })
|
|
136
136
|
}
|
|
137
137
|
) })
|
|
138
138
|
] });
|
|
@@ -144,31 +144,31 @@ function vr({
|
|
|
144
144
|
onChange: t = () => {
|
|
145
145
|
}
|
|
146
146
|
}) {
|
|
147
|
-
const [s,
|
|
147
|
+
const [s, a] = R(
|
|
148
148
|
r !== void 0 ? r : o
|
|
149
149
|
);
|
|
150
150
|
return e !== void 0 ? [e, t, !0] : [s, (l) => {
|
|
151
|
-
|
|
151
|
+
a(l), t == null || t(l);
|
|
152
152
|
}, !1];
|
|
153
153
|
}
|
|
154
154
|
const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Ar = ({
|
|
155
155
|
mode: e
|
|
156
|
-
}) =>
|
|
156
|
+
}) => g({
|
|
157
157
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
158
158
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
159
159
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
160
160
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
161
|
-
}),
|
|
161
|
+
}), Er = ({
|
|
162
162
|
focusMode: e
|
|
163
|
-
}) =>
|
|
163
|
+
}) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
164
164
|
"focus:outline-focus-dark": e === "dark",
|
|
165
165
|
"focus:outline-focus-light": e === "light",
|
|
166
166
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
167
167
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
168
|
-
}),
|
|
168
|
+
}), Nr = ({
|
|
169
169
|
noBorder: e,
|
|
170
170
|
error: r
|
|
171
|
-
}) =>
|
|
171
|
+
}) => g("border-2", {
|
|
172
172
|
"border-border-dark": !e && !r,
|
|
173
173
|
"focus:border-border-dark": !e && r,
|
|
174
174
|
"border-border-error-dark": !e && r,
|
|
@@ -182,16 +182,16 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
182
182
|
if (r)
|
|
183
183
|
return "";
|
|
184
184
|
if (e)
|
|
185
|
-
return
|
|
185
|
+
return g("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
186
186
|
if (!o)
|
|
187
|
-
return
|
|
187
|
+
return g("absolute px-2 cursor-text font-medium", {
|
|
188
188
|
"text-copy-medium": t === "dark",
|
|
189
189
|
"text-copy-dark": t === "light",
|
|
190
190
|
"text-copy-dark dark:text-copy-medium": t === "system",
|
|
191
191
|
"text-copy-medium dark:text-copy-dark": t === "alt-system"
|
|
192
192
|
});
|
|
193
193
|
if (o)
|
|
194
|
-
return
|
|
194
|
+
return g("absolute px-2 cursor-text font-medium", {
|
|
195
195
|
"text-copy-medium": t === "dark",
|
|
196
196
|
"text-copy-error-dark": t === "light",
|
|
197
197
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
@@ -206,19 +206,19 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
206
206
|
if (r)
|
|
207
207
|
return "";
|
|
208
208
|
if (t)
|
|
209
|
-
return
|
|
209
|
+
return g(
|
|
210
210
|
W,
|
|
211
211
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
212
212
|
);
|
|
213
213
|
if (!e)
|
|
214
|
-
return
|
|
214
|
+
return g(W, "absolute px-2 font-medium", {
|
|
215
215
|
"text-copy-medium": o === "dark",
|
|
216
216
|
"text-copy-dark": o === "light",
|
|
217
217
|
"text-copy-dark dark:text-copy-medium": o === "system",
|
|
218
218
|
"text-copy-medium dark:text-copy-dark": o === "alt-system"
|
|
219
219
|
});
|
|
220
220
|
if (e)
|
|
221
|
-
return
|
|
221
|
+
return g(W, "absolute px-2 font-medium", {
|
|
222
222
|
"text-copy-error-light": o === "dark",
|
|
223
223
|
"text-copy-error-dark": o === "light",
|
|
224
224
|
"text-copy-error-dark dark:text-copy-error-light": o === "system",
|
|
@@ -230,47 +230,47 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
230
230
|
raw: o,
|
|
231
231
|
focusMode: t,
|
|
232
232
|
disabled: s,
|
|
233
|
-
noBorder:
|
|
233
|
+
noBorder: a,
|
|
234
234
|
error: l,
|
|
235
|
-
spacing:
|
|
236
|
-
mode:
|
|
235
|
+
spacing: h,
|
|
236
|
+
mode: c
|
|
237
237
|
}) => {
|
|
238
|
-
const
|
|
238
|
+
const y = o ? e : g(
|
|
239
239
|
"relative flex w-full flex-col justify-center",
|
|
240
240
|
Fe,
|
|
241
241
|
e,
|
|
242
|
-
Pe(
|
|
243
|
-
), i = o ?
|
|
242
|
+
Pe(h)
|
|
243
|
+
), i = o ? g(r) : g(
|
|
244
244
|
ge,
|
|
245
245
|
r,
|
|
246
246
|
Sr(),
|
|
247
|
-
Ar({ mode:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
noBorder:
|
|
247
|
+
Ar({ mode: c }),
|
|
248
|
+
Er({ focusMode: t }),
|
|
249
|
+
Nr({
|
|
250
|
+
noBorder: a,
|
|
251
251
|
error: l
|
|
252
252
|
}),
|
|
253
253
|
{
|
|
254
254
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
255
255
|
}
|
|
256
|
-
),
|
|
256
|
+
), p = o ? void 0 : "sr-only", b = Or({
|
|
257
257
|
disabled: s,
|
|
258
258
|
raw: o,
|
|
259
259
|
error: l,
|
|
260
|
-
mode:
|
|
261
|
-
}),
|
|
260
|
+
mode: c
|
|
261
|
+
}), T = wr({
|
|
262
262
|
error: l,
|
|
263
263
|
raw: o,
|
|
264
|
-
mode:
|
|
264
|
+
mode: c,
|
|
265
265
|
disabled: s
|
|
266
|
-
}),
|
|
266
|
+
}), d = o ? void 0 : g(Ge, "absolute");
|
|
267
267
|
return {
|
|
268
|
-
wrapper:
|
|
268
|
+
wrapper: y,
|
|
269
269
|
textArea: i,
|
|
270
|
-
accessibleLabel:
|
|
270
|
+
accessibleLabel: p,
|
|
271
271
|
visibleLabel: b,
|
|
272
|
-
helperText:
|
|
273
|
-
rightElement:
|
|
272
|
+
helperText: T,
|
|
273
|
+
rightElement: d
|
|
274
274
|
};
|
|
275
275
|
}, Rr = ({
|
|
276
276
|
scrollHeight: e,
|
|
@@ -278,14 +278,14 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
278
278
|
currentLabelOffset: o = 0,
|
|
279
279
|
currentHelperTextOffset: t = 0
|
|
280
280
|
}) => {
|
|
281
|
-
let s,
|
|
281
|
+
let s, a;
|
|
282
282
|
if (e > 0 && e !== r) {
|
|
283
|
-
const l = e - r,
|
|
284
|
-
s = o + -1 * Math.sign(l) * (12 *
|
|
283
|
+
const l = e - r, h = Math.abs(l / 24);
|
|
284
|
+
s = o + -1 * Math.sign(l) * (12 * h), a = t + Math.sign(l) * (12 * h);
|
|
285
285
|
}
|
|
286
286
|
return {
|
|
287
287
|
labelOffset: s,
|
|
288
|
-
helperTextOffset:
|
|
288
|
+
helperTextOffset: a,
|
|
289
289
|
scrollHeight: e
|
|
290
290
|
};
|
|
291
291
|
}, Te = pr.forwardRef(
|
|
@@ -295,67 +295,67 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
295
295
|
label: o,
|
|
296
296
|
error: t = !1,
|
|
297
297
|
raw: s = !1,
|
|
298
|
-
className:
|
|
298
|
+
className: a,
|
|
299
299
|
textAreaClassName: l,
|
|
300
|
-
mode:
|
|
301
|
-
focusMode:
|
|
302
|
-
value:
|
|
300
|
+
mode: h = "system",
|
|
301
|
+
focusMode: c = "system",
|
|
302
|
+
value: y,
|
|
303
303
|
defaultValue: i,
|
|
304
|
-
disabled:
|
|
304
|
+
disabled: p = !1,
|
|
305
305
|
noBorder: b = !1,
|
|
306
|
-
labelId:
|
|
307
|
-
helperText:
|
|
308
|
-
helperTextOnFocus:
|
|
309
|
-
rightElement:
|
|
310
|
-
onChange:
|
|
311
|
-
onFocus:
|
|
312
|
-
onBlur:
|
|
306
|
+
labelId: T,
|
|
307
|
+
helperText: d = "",
|
|
308
|
+
helperTextOnFocus: N = !1,
|
|
309
|
+
rightElement: C,
|
|
310
|
+
onChange: m,
|
|
311
|
+
onFocus: u,
|
|
312
|
+
onBlur: B,
|
|
313
313
|
spacing: O,
|
|
314
314
|
...Se
|
|
315
315
|
}, Ae) => {
|
|
316
|
-
const v = x(null),
|
|
317
|
-
!!(!
|
|
318
|
-
), Le = `${r} error, ${
|
|
319
|
-
className:
|
|
316
|
+
const v = x(null), Ee = $e([Ae, v]), V = x(null), F = x(80), re = x(-25), M = x(null), te = x(30), P = x(null), I = ze({ id: e, prefix: `${ge}-` }), [Ne, Oe] = R(0), [we, oe] = R(
|
|
317
|
+
!!(!N && d)
|
|
318
|
+
), Le = `${r} error, ${d}`, w = Lr({
|
|
319
|
+
className: a,
|
|
320
320
|
textAreaClassName: l,
|
|
321
321
|
error: t,
|
|
322
322
|
raw: s,
|
|
323
|
-
focusMode:
|
|
324
|
-
disabled:
|
|
323
|
+
focusMode: c,
|
|
324
|
+
disabled: p,
|
|
325
325
|
noBorder: b,
|
|
326
326
|
spacing: O,
|
|
327
|
-
mode:
|
|
327
|
+
mode: h
|
|
328
328
|
}), [A, Re] = vr({
|
|
329
|
-
value:
|
|
329
|
+
value: y,
|
|
330
330
|
defaultValue: i,
|
|
331
|
-
onChange: (
|
|
332
|
-
|
|
331
|
+
onChange: (k) => {
|
|
332
|
+
m && m({
|
|
333
333
|
target: {
|
|
334
|
-
value:
|
|
334
|
+
value: k
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
}), Me = (
|
|
339
|
-
Re(
|
|
340
|
-
}, Ie = (
|
|
341
|
-
|
|
342
|
-
}, _e = (
|
|
343
|
-
|
|
338
|
+
}), Me = (k) => {
|
|
339
|
+
Re(k.target.value);
|
|
340
|
+
}, Ie = (k) => {
|
|
341
|
+
N && d && oe(!0), u && u(k);
|
|
342
|
+
}, _e = (k) => {
|
|
343
|
+
N && d && !A && oe(!1), B && B(k);
|
|
344
344
|
};
|
|
345
345
|
return D(() => {
|
|
346
|
-
!s &&
|
|
347
|
-
}, [
|
|
346
|
+
!s && C && V.current && V.current.offsetWidth > 0 && Oe(V.current.offsetWidth + 18 + 10);
|
|
347
|
+
}, [C, s]), D(() => {
|
|
348
348
|
s || v && v.current && A !== void 0 && (v.current.style.height = "inherit", v.current.style.height = v.current.scrollHeight + "px");
|
|
349
349
|
}, [A, s]), D(() => {
|
|
350
350
|
s || setTimeout(() => {
|
|
351
|
-
var
|
|
352
|
-
(
|
|
351
|
+
var k;
|
|
352
|
+
(k = M == null ? void 0 : M.current) == null || k.style.setProperty(
|
|
353
353
|
"--av-text-area-wrapper-transition",
|
|
354
354
|
A ? "none" : "all 0.2s ease-out"
|
|
355
355
|
);
|
|
356
356
|
}, 0);
|
|
357
357
|
}, [A, s]), D(() => {
|
|
358
|
-
var
|
|
358
|
+
var k, se;
|
|
359
359
|
if (!s && v && v.current && A !== void 0) {
|
|
360
360
|
const { labelOffset: G, helperTextOffset: j, scrollHeight: He } = Rr({
|
|
361
361
|
scrollHeight: v.current.scrollHeight,
|
|
@@ -363,7 +363,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
363
363
|
currentLabelOffset: re.current,
|
|
364
364
|
currentHelperTextOffset: te.current
|
|
365
365
|
});
|
|
366
|
-
G && (re.current = G, (
|
|
366
|
+
G && (re.current = G, (k = M == null ? void 0 : M.current) == null || k.style.setProperty(
|
|
367
367
|
"--av-text-area-label",
|
|
368
368
|
`${G}px`
|
|
369
369
|
)), j && (te.current = j, (se = P == null ? void 0 : P.current) == null || se.style.setProperty(
|
|
@@ -372,28 +372,28 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
372
372
|
)), F.current = He || F.current;
|
|
373
373
|
}
|
|
374
374
|
}, [A, s]), /* @__PURE__ */ S("div", { className: w.wrapper, children: [
|
|
375
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ n(
|
|
376
376
|
"label",
|
|
377
377
|
{
|
|
378
378
|
htmlFor: I,
|
|
379
|
-
id:
|
|
379
|
+
id: T,
|
|
380
380
|
className: w.accessibleLabel,
|
|
381
381
|
children: o
|
|
382
382
|
}
|
|
383
383
|
),
|
|
384
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ n(
|
|
385
385
|
"textarea",
|
|
386
386
|
{
|
|
387
|
-
ref:
|
|
387
|
+
ref: Ee,
|
|
388
388
|
id: I,
|
|
389
389
|
name: r,
|
|
390
|
-
disabled:
|
|
390
|
+
disabled: p,
|
|
391
391
|
placeholder: s ? void 0 : " ",
|
|
392
392
|
className: w.textArea,
|
|
393
393
|
rows: 1,
|
|
394
|
-
...
|
|
394
|
+
...d && { "aria-describedby": `${I}-helper` },
|
|
395
395
|
...t && { "aria-invalid": "true" },
|
|
396
|
-
...
|
|
396
|
+
...C && !s && { style: { paddingRight: Ne } },
|
|
397
397
|
value: A,
|
|
398
398
|
onChange: Me,
|
|
399
399
|
onFocus: Ie,
|
|
@@ -401,7 +401,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
401
401
|
...Se
|
|
402
402
|
}
|
|
403
403
|
),
|
|
404
|
-
!s && /* @__PURE__ */
|
|
404
|
+
!s && /* @__PURE__ */ n(
|
|
405
405
|
"label",
|
|
406
406
|
{
|
|
407
407
|
ref: M,
|
|
@@ -411,24 +411,24 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
411
411
|
children: o
|
|
412
412
|
}
|
|
413
413
|
),
|
|
414
|
-
we && /* @__PURE__ */
|
|
414
|
+
we && /* @__PURE__ */ n(
|
|
415
415
|
"div",
|
|
416
416
|
{
|
|
417
417
|
ref: P,
|
|
418
418
|
id: `${I}-helper`,
|
|
419
419
|
className: w.helperText,
|
|
420
|
-
children:
|
|
420
|
+
children: d
|
|
421
421
|
}
|
|
422
422
|
),
|
|
423
|
-
|
|
423
|
+
C && /* @__PURE__ */ n(
|
|
424
424
|
"div",
|
|
425
425
|
{
|
|
426
|
-
ref:
|
|
426
|
+
ref: V,
|
|
427
427
|
className: w.rightElement,
|
|
428
|
-
children:
|
|
428
|
+
children: C
|
|
429
429
|
}
|
|
430
430
|
),
|
|
431
|
-
t &&
|
|
431
|
+
t && d && /* @__PURE__ */ n(Ue, { politeness: "polite", clearAnnouncementDelay: 500, children: Le })
|
|
432
432
|
] });
|
|
433
433
|
}
|
|
434
434
|
);
|
|
@@ -456,38 +456,38 @@ function ee(e, r, o) {
|
|
|
456
456
|
var t = e.random || (e.rng || _r)();
|
|
457
457
|
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Mr(t);
|
|
458
458
|
}
|
|
459
|
-
const
|
|
460
|
-
const { dispatch: e, state: r } = Z(U), o = "mt-2 flex justify-center rounded-md", t = x(null), s = x(!1),
|
|
459
|
+
const Br = () => {
|
|
460
|
+
const { dispatch: e, state: r } = Z(U), o = "mt-2 flex justify-center rounded-md", t = x(null), s = x(!1), a = (l) => {
|
|
461
461
|
l.preventDefault(), e({
|
|
462
462
|
type: he
|
|
463
463
|
});
|
|
464
464
|
};
|
|
465
|
-
return
|
|
465
|
+
return E(() => {
|
|
466
466
|
(r == null ? void 0 : r.streaming) === !0 && !s.current && t.current && (s.current = !0, t.current.focus()), (r == null ? void 0 : r.streaming) === !1 && (s.current = !1);
|
|
467
|
-
}, [r]), ye(L, r) ? /* @__PURE__ */
|
|
467
|
+
}, [r]), ye(L, r) ? /* @__PURE__ */ n("div", { className: o, children: /* @__PURE__ */ n(
|
|
468
468
|
fe,
|
|
469
469
|
{
|
|
470
470
|
ref: t,
|
|
471
471
|
noBorder: !0,
|
|
472
|
-
onClick:
|
|
472
|
+
onClick: a,
|
|
473
473
|
mode: "dark",
|
|
474
474
|
focusMode: "light",
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, ue = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, ue = mr(() => import("./LazyMessageAssistant.IDa3mLgE.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
|
|
479
479
|
const { state: e } = Z(U);
|
|
480
480
|
return /* @__PURE__ */ S(me, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
482
|
-
const { role: t, content: s, name:
|
|
483
|
-
return (t === L || t === X) && s ? /* @__PURE__ */
|
|
482
|
+
const { role: t, content: s, name: a, processingTime: l } = r.message;
|
|
483
|
+
return (t === L || t === X) && s ? /* @__PURE__ */ n(ce, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(
|
|
484
484
|
ue,
|
|
485
485
|
{
|
|
486
|
-
name:
|
|
486
|
+
name: a,
|
|
487
487
|
processingTime: l,
|
|
488
488
|
children: s
|
|
489
489
|
}
|
|
490
|
-
) }, `${o}-${t}`) : t === Q && s ? /* @__PURE__ */
|
|
490
|
+
) }, `${o}-${t}`) : t === Q && s ? /* @__PURE__ */ n(
|
|
491
491
|
Tr,
|
|
492
492
|
{
|
|
493
493
|
kind: "right",
|
|
@@ -498,7 +498,7 @@ const Vr = () => {
|
|
|
498
498
|
`${o}-${t}`
|
|
499
499
|
) : null;
|
|
500
500
|
}),
|
|
501
|
-
ye(Q, e) && /* @__PURE__ */
|
|
501
|
+
ye(Q, e) && /* @__PURE__ */ n(ce, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(ue, { loading: !0 }) })
|
|
502
502
|
] });
|
|
503
503
|
}, z = (e, r) => {
|
|
504
504
|
e({
|
|
@@ -518,14 +518,14 @@ const Vr = () => {
|
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
}, Dr = () => {
|
|
521
|
-
const { state: e, dispatch: r } = Z(U), [o, t] = R(""), { getAccessToken: s, user:
|
|
521
|
+
const { state: e, dispatch: r } = Z(U), [o, t] = R(""), { getAccessToken: s, user: a } = K(), l = x(!1), h = x(null), c = x(
|
|
522
522
|
null
|
|
523
523
|
);
|
|
524
|
-
|
|
524
|
+
E(() => {
|
|
525
525
|
(async () => {
|
|
526
|
-
var
|
|
526
|
+
var p;
|
|
527
527
|
if (!e || e.messages.length === 0) {
|
|
528
|
-
(
|
|
528
|
+
(p = c == null ? void 0 : c.current) == null || p.cancel();
|
|
529
529
|
return;
|
|
530
530
|
}
|
|
531
531
|
const i = e.messages[e.messages.length - 1];
|
|
@@ -537,27 +537,27 @@ const Vr = () => {
|
|
|
537
537
|
data: {
|
|
538
538
|
messages: e.messages,
|
|
539
539
|
model: xe,
|
|
540
|
-
user: (
|
|
540
|
+
user: (a == null ? void 0 : a.username) || "",
|
|
541
541
|
id: e.id,
|
|
542
542
|
location: e.location,
|
|
543
543
|
usage: e.usage
|
|
544
544
|
}
|
|
545
545
|
});
|
|
546
546
|
if (b && b.ok) {
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
const
|
|
547
|
+
const T = ee();
|
|
548
|
+
c.current = b.body.getReader();
|
|
549
|
+
const d = new TextDecoder();
|
|
550
550
|
for (; ; ) {
|
|
551
551
|
z(r, !0);
|
|
552
|
-
const { done:
|
|
553
|
-
if (
|
|
552
|
+
const { done: N, value: C } = await c.current.read();
|
|
553
|
+
if (N) {
|
|
554
554
|
z(r, !1);
|
|
555
555
|
break;
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
if (
|
|
559
|
-
const
|
|
560
|
-
|
|
557
|
+
const m = d.decode(C, { stream: !0 }), u = m.indexOf(ae);
|
|
558
|
+
if (u !== -1) {
|
|
559
|
+
const B = m.substring(0, u), O = JSON.parse(
|
|
560
|
+
m.substring(u + ae.length)
|
|
561
561
|
);
|
|
562
562
|
r({
|
|
563
563
|
type: be,
|
|
@@ -569,9 +569,9 @@ const Vr = () => {
|
|
|
569
569
|
type: H,
|
|
570
570
|
payload: {
|
|
571
571
|
message: {
|
|
572
|
-
content:
|
|
572
|
+
content: B,
|
|
573
573
|
role: L,
|
|
574
|
-
messageId:
|
|
574
|
+
messageId: T,
|
|
575
575
|
processingTime: O.processingTime,
|
|
576
576
|
name: O.name
|
|
577
577
|
}
|
|
@@ -583,9 +583,9 @@ const Vr = () => {
|
|
|
583
583
|
type: H,
|
|
584
584
|
payload: {
|
|
585
585
|
message: {
|
|
586
|
-
content:
|
|
586
|
+
content: m,
|
|
587
587
|
role: L,
|
|
588
|
-
messageId:
|
|
588
|
+
messageId: T
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
});
|
|
@@ -597,7 +597,7 @@ const Vr = () => {
|
|
|
597
597
|
}
|
|
598
598
|
})();
|
|
599
599
|
}, [e == null ? void 0 : e.messages]);
|
|
600
|
-
const
|
|
600
|
+
const y = async (i) => {
|
|
601
601
|
i.preventDefault(), r({
|
|
602
602
|
type: H,
|
|
603
603
|
payload: {
|
|
@@ -608,14 +608,14 @@ const Vr = () => {
|
|
|
608
608
|
}
|
|
609
609
|
}), t("");
|
|
610
610
|
};
|
|
611
|
-
return
|
|
612
|
-
(e == null ? void 0 : e.streaming) === !1 && !l.current &&
|
|
613
|
-
}, [e]), /* @__PURE__ */
|
|
611
|
+
return E(() => {
|
|
612
|
+
(e == null ? void 0 : e.streaming) === !1 && !l.current && h.current && (l.current = !0, h.current.focus()), (e == null ? void 0 : e.streaming) === !0 && l.current === !0 && (l.current = !1);
|
|
613
|
+
}, [e]), /* @__PURE__ */ n("form", { className: "mt-2", onSubmit: y, children: /* @__PURE__ */ n(
|
|
614
614
|
Te,
|
|
615
615
|
{
|
|
616
616
|
mode: "dark",
|
|
617
617
|
focusMode: "light",
|
|
618
|
-
ref:
|
|
618
|
+
ref: h,
|
|
619
619
|
name: "chat-input",
|
|
620
620
|
label: Je,
|
|
621
621
|
helperText: "Press ENTER to add a new line",
|
|
@@ -623,7 +623,7 @@ const Vr = () => {
|
|
|
623
623
|
required: !0,
|
|
624
624
|
value: o,
|
|
625
625
|
onChange: (i) => t(i.target.value),
|
|
626
|
-
rightElement: /* @__PURE__ */
|
|
626
|
+
rightElement: /* @__PURE__ */ n(
|
|
627
627
|
fe,
|
|
628
628
|
{
|
|
629
629
|
disabled: e == null ? void 0 : e.streaming,
|
|
@@ -640,11 +640,11 @@ const Vr = () => {
|
|
|
640
640
|
const { isAuthenticated: e } = K(), r = Ke(e);
|
|
641
641
|
return /* @__PURE__ */ S(me, { children: [
|
|
642
642
|
/* @__PURE__ */ S("div", { className: r, children: [
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
643
|
+
/* @__PURE__ */ n(Ze, {}),
|
|
644
|
+
/* @__PURE__ */ n(Vr, {})
|
|
645
645
|
] }),
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ n(Br, {}),
|
|
647
|
+
/* @__PURE__ */ n(Dr, {})
|
|
648
648
|
] });
|
|
649
649
|
}, zr = (e, r) => (r == null ? void 0 : r.type) === er ? {
|
|
650
650
|
searchString: r.payload.searchString,
|
|
@@ -674,25 +674,25 @@ const Vr = () => {
|
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
676
|
if ((r == null ? void 0 : r.type) === H) {
|
|
677
|
-
const o = r.payload.message.role, t = r.payload.message.content, s = r.payload.message.name,
|
|
677
|
+
const o = r.payload.message.role, t = r.payload.message.content, s = r.payload.message.name, a = r.payload.message.processingTime, l = r.payload.message.messageId;
|
|
678
678
|
if (o !== "") {
|
|
679
|
-
const
|
|
679
|
+
const h = {
|
|
680
680
|
role: o,
|
|
681
681
|
content: t,
|
|
682
682
|
name: s,
|
|
683
|
-
processingTime:
|
|
683
|
+
processingTime: a,
|
|
684
684
|
messageId: l
|
|
685
685
|
};
|
|
686
686
|
if (o === L) {
|
|
687
|
-
const
|
|
688
|
-
(
|
|
687
|
+
const c = e.messages.findIndex(
|
|
688
|
+
(y) => y.message.messageId === l
|
|
689
689
|
);
|
|
690
|
-
if (
|
|
691
|
-
const
|
|
690
|
+
if (c !== -1) {
|
|
691
|
+
const y = e.messages.map((i, p) => p === c ? {
|
|
692
692
|
message: {
|
|
693
693
|
...i.message,
|
|
694
694
|
content: `${i.message.content}${t}`,
|
|
695
|
-
processingTime:
|
|
695
|
+
processingTime: a,
|
|
696
696
|
name: s
|
|
697
697
|
}
|
|
698
698
|
} : i);
|
|
@@ -702,7 +702,7 @@ const Vr = () => {
|
|
|
702
702
|
usage: e.usage,
|
|
703
703
|
location: e.location,
|
|
704
704
|
isComponent: e.isComponent,
|
|
705
|
-
messages:
|
|
705
|
+
messages: y
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
}
|
|
@@ -715,7 +715,7 @@ const Vr = () => {
|
|
|
715
715
|
messages: [
|
|
716
716
|
...e.messages,
|
|
717
717
|
{
|
|
718
|
-
message:
|
|
718
|
+
message: h
|
|
719
719
|
}
|
|
720
720
|
]
|
|
721
721
|
};
|
|
@@ -748,31 +748,31 @@ const Vr = () => {
|
|
|
748
748
|
} : e;
|
|
749
749
|
};
|
|
750
750
|
function ve({ isComponent: e = !1 }) {
|
|
751
|
-
const r = x(!1), o = x(!1), { isAuthenticated:
|
|
751
|
+
const r = x(!1), o = x(!1), t = x(!1), { isAuthenticated: s, getAccessToken: a } = K(), [l] = q({
|
|
752
752
|
key: Y + nr,
|
|
753
753
|
initialValue: ""
|
|
754
|
-
}), [
|
|
754
|
+
}), [h] = q({
|
|
755
755
|
key: Y + lr,
|
|
756
756
|
initialValue: ur.ASC
|
|
757
|
-
}), [c,
|
|
757
|
+
}), [c, y] = q({
|
|
758
758
|
key: Y + cr,
|
|
759
759
|
initialValue: { latitude: 0, longitude: 0, accuracy: 0 }
|
|
760
|
-
}), [
|
|
760
|
+
}), [i, p] = ie(Ur, {
|
|
761
761
|
id: ee(),
|
|
762
762
|
model: xe,
|
|
763
763
|
usage: 0,
|
|
764
764
|
messages: [],
|
|
765
765
|
isComponent: e
|
|
766
|
-
}), [
|
|
767
|
-
searchString:
|
|
766
|
+
}), [b, T] = ie(zr, {
|
|
767
|
+
searchString: l,
|
|
768
768
|
sortedCell: "timestamp",
|
|
769
|
-
sortDirection:
|
|
770
|
-
}), [
|
|
769
|
+
sortDirection: h
|
|
770
|
+
}), [d, N] = R({
|
|
771
771
|
version: "",
|
|
772
772
|
models: [],
|
|
773
773
|
plugins: []
|
|
774
|
-
}),
|
|
775
|
-
|
|
774
|
+
}), C = gr(() => {
|
|
775
|
+
p({
|
|
776
776
|
type: _,
|
|
777
777
|
payload: {
|
|
778
778
|
location: {
|
|
@@ -782,79 +782,79 @@ function ve({ isComponent: e = !1 }) {
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}, [c]);
|
|
785
|
-
return
|
|
786
|
-
|
|
785
|
+
return E(() => {
|
|
786
|
+
d.version !== "" || t.current || (async () => {
|
|
787
787
|
try {
|
|
788
|
-
|
|
788
|
+
t.current = !0;
|
|
789
789
|
const m = await ne({
|
|
790
|
-
accessToken: await
|
|
790
|
+
accessToken: await a(),
|
|
791
791
|
type: le.ABOUT
|
|
792
792
|
});
|
|
793
|
-
|
|
793
|
+
t.current = !1, m.status === 200 && N(m.data);
|
|
794
794
|
} catch {
|
|
795
795
|
}
|
|
796
796
|
})();
|
|
797
|
-
}, [
|
|
798
|
-
|
|
797
|
+
}, [d, a]), E(() => {
|
|
798
|
+
s && (r.current || ((!c || c.accuracy === 0) && (r.current = !0, (async () => {
|
|
799
799
|
const m = await or();
|
|
800
|
-
|
|
800
|
+
y(m), p({
|
|
801
801
|
type: _,
|
|
802
802
|
payload: {
|
|
803
803
|
location: m
|
|
804
804
|
}
|
|
805
805
|
});
|
|
806
|
-
})(), c && c.accuracy !== 0 && !
|
|
806
|
+
})()), c && c.accuracy !== 0 && !i.location && p({
|
|
807
807
|
type: _,
|
|
808
808
|
payload: {
|
|
809
809
|
location: c
|
|
810
810
|
}
|
|
811
|
-
}));
|
|
812
|
-
}, [
|
|
813
|
-
!
|
|
811
|
+
})));
|
|
812
|
+
}, [s, c, y, i.location]), E(() => {
|
|
813
|
+
!i.location || i.location.accuracy === 0 || i.location.city || o.current || (async () => {
|
|
814
814
|
var m;
|
|
815
|
-
|
|
815
|
+
o.current = !0;
|
|
816
816
|
try {
|
|
817
|
-
const
|
|
818
|
-
accessToken: await
|
|
817
|
+
const u = await ne({
|
|
818
|
+
accessToken: await a(),
|
|
819
819
|
type: le.GET_LOCATION,
|
|
820
820
|
params: {
|
|
821
821
|
latitude: c.latitude,
|
|
822
822
|
longitude: c.longitude
|
|
823
823
|
}
|
|
824
824
|
});
|
|
825
|
-
|
|
825
|
+
o.current = !1, u.status !== 200 || ((m = u == null ? void 0 : u.errors) == null ? void 0 : m.length) > 0 || !u.data || !u.data.city || !u.data.region || !u.data.country ? C() : p({
|
|
826
826
|
type: _,
|
|
827
827
|
payload: {
|
|
828
828
|
location: {
|
|
829
829
|
...c,
|
|
830
|
-
city:
|
|
831
|
-
region:
|
|
832
|
-
regionShort:
|
|
833
|
-
country:
|
|
834
|
-
countryShort:
|
|
830
|
+
city: u.data.city,
|
|
831
|
+
region: u.data.region,
|
|
832
|
+
regionShort: u.data.regionShort,
|
|
833
|
+
country: u.data.country,
|
|
834
|
+
countryShort: u.data.countryShort
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
837
|
});
|
|
838
838
|
} catch {
|
|
839
|
-
|
|
839
|
+
C();
|
|
840
840
|
}
|
|
841
841
|
})();
|
|
842
|
-
}, [
|
|
842
|
+
}, [i, c, a, C]), E(() => {
|
|
843
843
|
var m;
|
|
844
844
|
(m = document.getElementById("logo")) == null || m.classList.add("fadeOut"), setTimeout(() => {
|
|
845
|
-
var
|
|
846
|
-
(
|
|
845
|
+
var u;
|
|
846
|
+
(u = document.getElementById("root")) == null || u.classList.replace("app-hidden", "fadeIn");
|
|
847
847
|
}, 500);
|
|
848
|
-
}), /* @__PURE__ */
|
|
848
|
+
}), /* @__PURE__ */ n(U.Provider, { value: { state: i, dispatch: p, serverStats: d }, children: /* @__PURE__ */ S(
|
|
849
849
|
dr.Provider,
|
|
850
850
|
{
|
|
851
851
|
value: {
|
|
852
|
-
state:
|
|
853
|
-
dispatch:
|
|
852
|
+
state: b,
|
|
853
|
+
dispatch: T
|
|
854
854
|
},
|
|
855
855
|
children: [
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ n(sr, { children: /* @__PURE__ */ n($r, {}) }),
|
|
857
|
+
/* @__PURE__ */ n(ar, { serverStats: d })
|
|
858
858
|
]
|
|
859
859
|
}
|
|
860
860
|
) });
|