@versini/sassysaint 8.47.0 → 8.47.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.BEFkfDbw.js → AboutChangelog.DF-VOodQ.js} +2 -2
- package/dist/chunks/{AboutEntry.COf0szTU.js → AboutEntry.DalvRJPu.js} +5 -5
- package/dist/chunks/{App.D5cZDwje.js → App.DEd7989C.js} +2241 -2318
- package/dist/chunks/{Chart.B1R22nbJ.js → Chart.CwLSpgTZ.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.B9tlf_JH.js → ChatBubbleAssistant.BwKFUhwE.js} +4 -4
- package/dist/chunks/{ChatHistoryTable.CJfAtX8B.js → ChatHistoryTable.4Y-wEval.js} +2 -2
- package/dist/chunks/{HistoryEntry.BbDPEPVY.js → HistoryEntry.02EkbV2r.js} +14 -14
- package/dist/chunks/{LNWAZHJI.C8sP3-rc.js → LNWAZHJI.BgaLMWwH.js} +1 -1
- package/dist/chunks/{ProfileEntry.BUTgNPlp.js → ProfileEntry.I9Ny-iUl.js} +2 -2
- package/dist/chunks/{SettingsEntry.DGB3xOzh.js → SettingsEntry.BUz1K73x.js} +117 -120
- package/dist/chunks/{UsageEntry.Bu5CcqG2.js → UsageEntry.Co_C4_Ly.js} +3 -3
- package/dist/chunks/{index.DHJP8zY7.js → index.3SzBYAWU.js} +1 -1
- package/dist/chunks/{index.BqV1_7Z2.js → index.Br3926F8.js} +3 -3
- package/dist/chunks/{index.Cfb0MIIn.js → index.CGGECapX.js} +1 -1
- package/dist/chunks/{index.BIMh7ysv.js → index.Cq0SkuUt.js} +1 -1
- package/dist/chunks/{index.yZ_0qNLI.js → index.DMM94EvH.js} +771 -824
- package/dist/chunks/{index.D9C8rL2L.js → index.Dd6KinX5.js} +1 -1
- package/dist/chunks/{index.DzixovoY.js → index.fBJffIIV.js} +2 -2
- package/dist/chunks/{useMarkdown.BNxkjyeo.js → useMarkdown.WuFAc7Zw.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as m, jsxs as Y, Fragment as Nn } from "react/jsx-runtime";
|
2
|
-
import * as
|
3
|
-
import me, { createContext as xr, useReducer as Pn, useCallback as ne, useRef as ee, useEffect as Z, useSyncExternalStore as ii, useContext as
|
2
|
+
import * as U from "react";
|
3
|
+
import me, { createContext as xr, useReducer as Pn, useCallback as ne, useRef as ee, useEffect as Z, useSyncExternalStore as ii, useContext as Kt, useState as fe, useMemo as kt, useId as ai, useLayoutEffect as Rt, Suspense as oi, lazy as ci } from "react";
|
4
4
|
import g from "clsx";
|
5
5
|
var ot = class {
|
6
6
|
constructor() {
|
@@ -49,7 +49,7 @@ function Jr(e, t) {
|
|
49
49
|
if (n) {
|
50
50
|
if (t.queryHash !== $r(o, t.options))
|
51
51
|
return !1;
|
52
|
-
} else if (!
|
52
|
+
} else if (!Ye(t.queryKey, o))
|
53
53
|
return !1;
|
54
54
|
}
|
55
55
|
if (r !== "all") {
|
@@ -65,24 +65,24 @@ function zr(e, t) {
|
|
65
65
|
if (!t.options.mutationKey)
|
66
66
|
return !1;
|
67
67
|
if (r) {
|
68
|
-
if (
|
68
|
+
if (ze(t.options.mutationKey) !== ze(i))
|
69
69
|
return !1;
|
70
|
-
} else if (!
|
70
|
+
} else if (!Ye(t.options.mutationKey, i))
|
71
71
|
return !1;
|
72
72
|
}
|
73
73
|
return !(n && t.state.status !== n || s && !s(t));
|
74
74
|
}
|
75
75
|
function $r(e, t) {
|
76
|
-
return (t?.queryKeyHashFn ||
|
76
|
+
return (t?.queryKeyHashFn || ze)(e);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function ze(e) {
|
79
79
|
return JSON.stringify(
|
80
80
|
e,
|
81
81
|
(t, r) => yr(r) ? Object.keys(r).sort().reduce((n, s) => (n[s] = r[s], n), {}) : r
|
82
82
|
);
|
83
83
|
}
|
84
|
-
function
|
85
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) =>
|
84
|
+
function Ye(e, t) {
|
85
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => Ye(e[r], t[r])) : !1;
|
86
86
|
}
|
87
87
|
function hr(e, t) {
|
88
88
|
if (e === t)
|
@@ -228,7 +228,7 @@ var yi = class extends ot {
|
|
228
228
|
isOnline() {
|
229
229
|
return this.#t;
|
230
230
|
}
|
231
|
-
},
|
231
|
+
}, Xe = new mi();
|
232
232
|
function pr() {
|
233
233
|
let e, t;
|
234
234
|
const r = new Promise((s, i) => {
|
@@ -255,7 +255,7 @@ function pi(e) {
|
|
255
255
|
return Math.min(1e3 * 2 ** e, 3e4);
|
256
256
|
}
|
257
257
|
function Dn(e) {
|
258
|
-
return (e ?? "online") === "online" ?
|
258
|
+
return (e ?? "online") === "online" ? Xe.isOnline() : !0;
|
259
259
|
}
|
260
260
|
var gr = class extends Error {
|
261
261
|
constructor(e) {
|
@@ -273,7 +273,7 @@ function Ln(e) {
|
|
273
273
|
t = !0;
|
274
274
|
}, c = () => {
|
275
275
|
t = !1;
|
276
|
-
}, d = () => Dr.isFocused() && (e.networkMode === "always" ||
|
276
|
+
}, d = () => Dr.isFocused() && (e.networkMode === "always" || Xe.isOnline()) && e.canRun(), u = () => Dn(e.networkMode) && e.canRun(), l = (p) => {
|
277
277
|
i() || (n?.(), s.resolve(p));
|
278
278
|
}, h = (p) => {
|
279
279
|
i() || (n?.(), s.reject(p));
|
@@ -377,7 +377,7 @@ function bi() {
|
|
377
377
|
}
|
378
378
|
};
|
379
379
|
}
|
380
|
-
var
|
380
|
+
var j = bi(), Mn = class {
|
381
381
|
#t;
|
382
382
|
destroy() {
|
383
383
|
this.clearGcTimeout();
|
@@ -651,7 +651,7 @@ var W = bi(), Mn = class {
|
|
651
651
|
};
|
652
652
|
}
|
653
653
|
};
|
654
|
-
this.state = t(this.state),
|
654
|
+
this.state = t(this.state), j.batch(() => {
|
655
655
|
this.observers.forEach((r) => {
|
656
656
|
r.onQueryUpdate();
|
657
657
|
}), this.#r.notify({ query: this, type: "updated", action: e });
|
@@ -714,7 +714,7 @@ var vi = class extends ot {
|
|
714
714
|
t && (e.destroy(), t === e && this.#t.delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
715
715
|
}
|
716
716
|
clear() {
|
717
|
-
|
717
|
+
j.batch(() => {
|
718
718
|
this.getAll().forEach((e) => {
|
719
719
|
this.remove(e);
|
720
720
|
});
|
@@ -737,21 +737,21 @@ var vi = class extends ot {
|
|
737
737
|
return Object.keys(e).length > 0 ? t.filter((r) => Jr(e, r)) : t;
|
738
738
|
}
|
739
739
|
notify(e) {
|
740
|
-
|
740
|
+
j.batch(() => {
|
741
741
|
this.listeners.forEach((t) => {
|
742
742
|
t(e);
|
743
743
|
});
|
744
744
|
});
|
745
745
|
}
|
746
746
|
onFocus() {
|
747
|
-
|
747
|
+
j.batch(() => {
|
748
748
|
this.getAll().forEach((e) => {
|
749
749
|
e.onFocus();
|
750
750
|
});
|
751
751
|
});
|
752
752
|
}
|
753
753
|
onOnline() {
|
754
|
-
|
754
|
+
j.batch(() => {
|
755
755
|
this.getAll().forEach((e) => {
|
756
756
|
e.onOnline();
|
757
757
|
});
|
@@ -923,7 +923,7 @@ var vi = class extends ot {
|
|
923
923
|
};
|
924
924
|
}
|
925
925
|
};
|
926
|
-
this.state = t(this.state),
|
926
|
+
this.state = t(this.state), j.batch(() => {
|
927
927
|
this.#t.forEach((r) => {
|
928
928
|
r.onMutationUpdate(e);
|
929
929
|
}), this.#e.notify({
|
@@ -1001,7 +1001,7 @@ var Ai = class extends ot {
|
|
1001
1001
|
return typeof t == "string" ? this.#e.get(t)?.find((n) => n !== e && n.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
1002
1002
|
}
|
1003
1003
|
clear() {
|
1004
|
-
|
1004
|
+
j.batch(() => {
|
1005
1005
|
this.#t.forEach((e) => {
|
1006
1006
|
this.notify({ type: "removed", mutation: e });
|
1007
1007
|
}), this.#t.clear(), this.#e.clear();
|
@@ -1020,7 +1020,7 @@ var Ai = class extends ot {
|
|
1020
1020
|
return this.getAll().filter((t) => zr(e, t));
|
1021
1021
|
}
|
1022
1022
|
notify(e) {
|
1023
|
-
|
1023
|
+
j.batch(() => {
|
1024
1024
|
this.listeners.forEach((t) => {
|
1025
1025
|
t(e);
|
1026
1026
|
});
|
@@ -1028,7 +1028,7 @@ var Ai = class extends ot {
|
|
1028
1028
|
}
|
1029
1029
|
resumePausedMutations() {
|
1030
1030
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
1031
|
-
return
|
1031
|
+
return j.batch(
|
1032
1032
|
() => Promise.all(
|
1033
1033
|
e.map((t) => t.continue().catch(X))
|
1034
1034
|
)
|
@@ -1058,14 +1058,14 @@ function Zr(e) {
|
|
1058
1058
|
if (p == null && y.pages.length)
|
1059
1059
|
return Promise.resolve(y);
|
1060
1060
|
const A = (() => {
|
1061
|
-
const
|
1061
|
+
const K = {
|
1062
1062
|
client: t.client,
|
1063
1063
|
queryKey: t.queryKey,
|
1064
1064
|
pageParam: p,
|
1065
1065
|
direction: b ? "backward" : "forward",
|
1066
1066
|
meta: t.options.meta
|
1067
1067
|
};
|
1068
|
-
return l(
|
1068
|
+
return l(K), K;
|
1069
1069
|
})(), v = await h(A), { maxPages: I } = t.options, N = b ? hi : di;
|
1070
1070
|
return {
|
1071
1071
|
pages: N(y.pages, v, I),
|
@@ -1129,7 +1129,7 @@ var ki = class {
|
|
1129
1129
|
mount() {
|
1130
1130
|
this.#o++, this.#o === 1 && (this.#a = Dr.subscribe(async (e) => {
|
1131
1131
|
e && (await this.resumePausedMutations(), this.#t.onFocus());
|
1132
|
-
}), this.#i =
|
1132
|
+
}), this.#i = Xe.subscribe(async (e) => {
|
1133
1133
|
e && (await this.resumePausedMutations(), this.#t.onOnline());
|
1134
1134
|
}));
|
1135
1135
|
}
|
@@ -1171,7 +1171,7 @@ var ki = class {
|
|
1171
1171
|
return this.#t.build(this, n).setData(o, { ...r, manual: !0 });
|
1172
1172
|
}
|
1173
1173
|
setQueriesData(e, t, r) {
|
1174
|
-
return
|
1174
|
+
return j.batch(
|
1175
1175
|
() => this.#t.findAll(e).map(({ queryKey: n }) => [
|
1176
1176
|
n,
|
1177
1177
|
this.setQueryData(n, t, r)
|
@@ -1186,7 +1186,7 @@ var ki = class {
|
|
1186
1186
|
}
|
1187
1187
|
removeQueries(e) {
|
1188
1188
|
const t = this.#t;
|
1189
|
-
|
1189
|
+
j.batch(() => {
|
1190
1190
|
t.findAll(e).forEach((r) => {
|
1191
1191
|
t.remove(r);
|
1192
1192
|
});
|
@@ -1194,7 +1194,7 @@ var ki = class {
|
|
1194
1194
|
}
|
1195
1195
|
resetQueries(e, t) {
|
1196
1196
|
const r = this.#t;
|
1197
|
-
return
|
1197
|
+
return j.batch(() => (r.findAll(e).forEach((n) => {
|
1198
1198
|
n.reset();
|
1199
1199
|
}), this.refetchQueries(
|
1200
1200
|
{
|
@@ -1205,13 +1205,13 @@ var ki = class {
|
|
1205
1205
|
)));
|
1206
1206
|
}
|
1207
1207
|
cancelQueries(e, t = {}) {
|
1208
|
-
const r = { revert: !0, ...t }, n =
|
1208
|
+
const r = { revert: !0, ...t }, n = j.batch(
|
1209
1209
|
() => this.#t.findAll(e).map((s) => s.cancel(r))
|
1210
1210
|
);
|
1211
1211
|
return Promise.all(n).then(X).catch(X);
|
1212
1212
|
}
|
1213
1213
|
invalidateQueries(e, t = {}) {
|
1214
|
-
return
|
1214
|
+
return j.batch(() => (this.#t.findAll(e).forEach((r) => {
|
1215
1215
|
r.invalidate();
|
1216
1216
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
|
1217
1217
|
{
|
@@ -1225,7 +1225,7 @@ var ki = class {
|
|
1225
1225
|
const r = {
|
1226
1226
|
...t,
|
1227
1227
|
cancelRefetch: t.cancelRefetch ?? !0
|
1228
|
-
}, n =
|
1228
|
+
}, n = j.batch(
|
1229
1229
|
() => this.#t.findAll(e).filter((s) => !s.isDisabled() && !s.isStatic()).map((s) => {
|
1230
1230
|
let i = s.fetch(void 0, r);
|
1231
1231
|
return r.throwOnError || (i = i.catch(X)), s.state.fetchStatus === "paused" ? Promise.resolve() : i;
|
@@ -1254,7 +1254,7 @@ var ki = class {
|
|
1254
1254
|
return e.behavior = Zr(e.pages), this.ensureQueryData(e);
|
1255
1255
|
}
|
1256
1256
|
resumePausedMutations() {
|
1257
|
-
return
|
1257
|
+
return Xe.isOnline() ? this.#e.resumePausedMutations() : Promise.resolve();
|
1258
1258
|
}
|
1259
1259
|
getQueryCache() {
|
1260
1260
|
return this.#t;
|
@@ -1269,7 +1269,7 @@ var ki = class {
|
|
1269
1269
|
this.#r = e;
|
1270
1270
|
}
|
1271
1271
|
setQueryDefaults(e, t) {
|
1272
|
-
this.#n.set(
|
1272
|
+
this.#n.set(ze(e), {
|
1273
1273
|
queryKey: e,
|
1274
1274
|
defaultOptions: t
|
1275
1275
|
});
|
@@ -1277,11 +1277,11 @@ var ki = class {
|
|
1277
1277
|
getQueryDefaults(e) {
|
1278
1278
|
const t = [...this.#n.values()], r = {};
|
1279
1279
|
return t.forEach((n) => {
|
1280
|
-
|
1280
|
+
Ye(e, n.queryKey) && Object.assign(r, n.defaultOptions);
|
1281
1281
|
}), r;
|
1282
1282
|
}
|
1283
1283
|
setMutationDefaults(e, t) {
|
1284
|
-
this.#s.set(
|
1284
|
+
this.#s.set(ze(e), {
|
1285
1285
|
mutationKey: e,
|
1286
1286
|
defaultOptions: t
|
1287
1287
|
});
|
@@ -1289,7 +1289,7 @@ var ki = class {
|
|
1289
1289
|
getMutationDefaults(e) {
|
1290
1290
|
const t = [...this.#s.values()], r = {};
|
1291
1291
|
return t.forEach((n) => {
|
1292
|
-
|
1292
|
+
Ye(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
1293
1293
|
}), r;
|
1294
1294
|
}
|
1295
1295
|
defaultQueryOptions(e) {
|
@@ -1387,7 +1387,7 @@ var ki = class {
|
|
1387
1387
|
}
|
1388
1388
|
getOptimisticResult(e) {
|
1389
1389
|
const t = this.#t.getQueryCache().build(this.#t, e), r = this.createResult(t, e);
|
1390
|
-
return
|
1390
|
+
return Oi(this, r) && (this.#n = r, this.#o = this.options, this.#s = this.#e.state), r;
|
1391
1391
|
}
|
1392
1392
|
getCurrentResult() {
|
1393
1393
|
return this.#n;
|
@@ -1464,7 +1464,7 @@ var ki = class {
|
|
1464
1464
|
const r = this.#e, n = this.options, s = this.#n, i = this.#s, o = this.#o, c = e !== r ? e.state : this.#r, { state: d } = e;
|
1465
1465
|
let u = { ...d }, l = !1, h;
|
1466
1466
|
if (t._optimisticResults) {
|
1467
|
-
const
|
1467
|
+
const O = this.hasListeners(), S = !O && tn(e, t), w = O && rn(e, r, t, n);
|
1468
1468
|
(S || w) && (u = {
|
1469
1469
|
...u,
|
1470
1470
|
...Un(d.data, e.options)
|
@@ -1474,13 +1474,13 @@ var ki = class {
|
|
1474
1474
|
h = u.data;
|
1475
1475
|
let b = !1;
|
1476
1476
|
if (t.placeholderData !== void 0 && h === void 0 && p === "pending") {
|
1477
|
-
let
|
1478
|
-
s?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (
|
1477
|
+
let O;
|
1478
|
+
s?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (O = s.data, b = !0) : O = typeof t.placeholderData == "function" ? t.placeholderData(
|
1479
1479
|
this.#d?.state.data,
|
1480
1480
|
this.#d
|
1481
|
-
) : t.placeholderData,
|
1481
|
+
) : t.placeholderData, O !== void 0 && (p = "success", h = mr(
|
1482
1482
|
s?.data,
|
1483
|
-
|
1483
|
+
O,
|
1484
1484
|
t
|
1485
1485
|
), l = !0);
|
1486
1486
|
}
|
@@ -1490,8 +1490,8 @@ var ki = class {
|
|
1490
1490
|
else
|
1491
1491
|
try {
|
1492
1492
|
this.#f = t.select, h = t.select(h), h = mr(s?.data, h, t), this.#u = h, this.#i = null;
|
1493
|
-
} catch (
|
1494
|
-
this.#i =
|
1493
|
+
} catch (O) {
|
1494
|
+
this.#i = O;
|
1495
1495
|
}
|
1496
1496
|
this.#i && (f = this.#i, h = this.#u, y = Date.now(), p = "error");
|
1497
1497
|
const E = u.fetchStatus === "fetching", A = p === "pending", v = p === "error", I = A && E, N = h !== void 0, x = {
|
@@ -1523,15 +1523,15 @@ var ki = class {
|
|
1523
1523
|
isEnabled: te(t.enabled, e) !== !1
|
1524
1524
|
};
|
1525
1525
|
if (this.options.experimental_prefetchInRender) {
|
1526
|
-
const
|
1527
|
-
x.status === "error" ?
|
1526
|
+
const O = (_) => {
|
1527
|
+
x.status === "error" ? _.reject(x.error) : x.data !== void 0 && _.resolve(x.data);
|
1528
1528
|
}, S = () => {
|
1529
|
-
const
|
1530
|
-
_
|
1529
|
+
const _ = this.#a = x.promise = pr();
|
1530
|
+
O(_);
|
1531
1531
|
}, w = this.#a;
|
1532
1532
|
switch (w.status) {
|
1533
1533
|
case "pending":
|
1534
|
-
e.queryHash === r.queryHash &&
|
1534
|
+
e.queryHash === r.queryHash && O(w);
|
1535
1535
|
break;
|
1536
1536
|
case "fulfilled":
|
1537
1537
|
(x.status === "error" || x.data !== w.value) && S();
|
@@ -1575,7 +1575,7 @@ var ki = class {
|
|
1575
1575
|
this.updateResult(), this.hasListeners() && this.#w();
|
1576
1576
|
}
|
1577
1577
|
#T(e) {
|
1578
|
-
|
1578
|
+
j.batch(() => {
|
1579
1579
|
e.listeners && this.listeners.forEach((t) => {
|
1580
1580
|
t(this.#n);
|
1581
1581
|
}), this.#t.getQueryCache().notify({
|
@@ -1604,24 +1604,24 @@ function rn(e, t, r, n) {
|
|
1604
1604
|
function Lr(e, t) {
|
1605
1605
|
return te(t.enabled, e) !== !1 && e.isStaleByTime(Ee(t.staleTime, e));
|
1606
1606
|
}
|
1607
|
-
function
|
1607
|
+
function Oi(e, t) {
|
1608
1608
|
return !fr(e.getCurrentResult(), t);
|
1609
1609
|
}
|
1610
|
-
var Fn =
|
1610
|
+
var Fn = U.createContext(
|
1611
1611
|
void 0
|
1612
|
-
),
|
1613
|
-
const t =
|
1612
|
+
), Hn = (e) => {
|
1613
|
+
const t = U.useContext(Fn);
|
1614
1614
|
if (e)
|
1615
1615
|
return e;
|
1616
1616
|
if (!t)
|
1617
1617
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
1618
1618
|
return t;
|
1619
|
-
},
|
1619
|
+
}, _i = ({
|
1620
1620
|
client: e,
|
1621
1621
|
children: t
|
1622
|
-
}) => (
|
1622
|
+
}) => (U.useEffect(() => (e.mount(), () => {
|
1623
1623
|
e.unmount();
|
1624
|
-
}), [e]), /* @__PURE__ */ m(Fn.Provider, { value: e, children: t })), Ni =
|
1624
|
+
}), [e]), /* @__PURE__ */ m(Fn.Provider, { value: e, children: t })), Ni = U.createContext(!1), Pi = () => U.useContext(Ni);
|
1625
1625
|
function xi() {
|
1626
1626
|
let e = !1;
|
1627
1627
|
return {
|
@@ -1634,10 +1634,10 @@ function xi() {
|
|
1634
1634
|
isReset: () => e
|
1635
1635
|
};
|
1636
1636
|
}
|
1637
|
-
var $i =
|
1637
|
+
var $i = U.createContext(xi()), Di = () => U.useContext($i), Li = (e, t) => {
|
1638
1638
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
1639
1639
|
}, Mi = (e) => {
|
1640
|
-
|
1640
|
+
U.useEffect(() => {
|
1641
1641
|
e.clearReset();
|
1642
1642
|
}, [e]);
|
1643
1643
|
}, Ui = ({
|
@@ -1651,7 +1651,7 @@ var $i = F.createContext(xi()), Di = () => F.useContext($i), Li = (e, t) => {
|
|
1651
1651
|
const t = (n) => n === "static" ? n : Math.max(n ?? 1e3, 1e3), r = e.staleTime;
|
1652
1652
|
e.staleTime = typeof r == "function" ? (...n) => t(r(...n)) : t(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3));
|
1653
1653
|
}
|
1654
|
-
},
|
1654
|
+
}, Hi = (e, t) => e.isLoading && e.isFetching && !t, Ki = (e, t) => e?.suspense && t.isPending, nn = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
1655
1655
|
r.clearReset();
|
1656
1656
|
});
|
1657
1657
|
function Bi(e, t, r) {
|
@@ -1659,31 +1659,31 @@ function Bi(e, t, r) {
|
|
1659
1659
|
throw new Error(
|
1660
1660
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
1661
1661
|
);
|
1662
|
-
const n = Pi(), s = Di(), i =
|
1662
|
+
const n = Pi(), s = Di(), i = Hn(r), o = i.defaultQueryOptions(e);
|
1663
1663
|
i.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
1664
1664
|
o
|
1665
1665
|
), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
|
1666
1666
|
`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
1667
1667
|
)), o._optimisticResults = n ? "isRestoring" : "optimistic", Fi(o), Li(o, s), Mi(s);
|
1668
|
-
const a = !i.getQueryCache().get(o.queryHash), [c] =
|
1668
|
+
const a = !i.getQueryCache().get(o.queryHash), [c] = U.useState(
|
1669
1669
|
() => new t(
|
1670
1670
|
i,
|
1671
1671
|
o
|
1672
1672
|
)
|
1673
1673
|
), d = c.getOptimisticResult(o), u = !n && e.subscribed !== !1;
|
1674
|
-
if (
|
1675
|
-
|
1674
|
+
if (U.useSyncExternalStore(
|
1675
|
+
U.useCallback(
|
1676
1676
|
(l) => {
|
1677
|
-
const h = u ? c.subscribe(
|
1677
|
+
const h = u ? c.subscribe(j.batchCalls(l)) : X;
|
1678
1678
|
return c.updateResult(), h;
|
1679
1679
|
},
|
1680
1680
|
[c, u]
|
1681
1681
|
),
|
1682
1682
|
() => c.getCurrentResult(),
|
1683
1683
|
() => c.getCurrentResult()
|
1684
|
-
),
|
1684
|
+
), U.useEffect(() => {
|
1685
1685
|
c.setOptions(o);
|
1686
|
-
}, [o, c]),
|
1686
|
+
}, [o, c]), Ki(o, d))
|
1687
1687
|
throw nn(o, c, s);
|
1688
1688
|
if (Ui({
|
1689
1689
|
result: d,
|
@@ -1696,7 +1696,7 @@ function Bi(e, t, r) {
|
|
1696
1696
|
return i.getDefaultOptions().queries?._experimental_afterQuery?.(
|
1697
1697
|
o,
|
1698
1698
|
d
|
1699
|
-
), o.experimental_prefetchInRender && !Ie &&
|
1699
|
+
), o.experimental_prefetchInRender && !Ie && Hi(d, n) && (a ? (
|
1700
1700
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
1701
1701
|
nn(o, c, s)
|
1702
1702
|
) : (
|
@@ -1706,10 +1706,10 @@ function Bi(e, t, r) {
|
|
1706
1706
|
c.updateResult();
|
1707
1707
|
}), o.notifyOnChangeProps ? d : c.trackResult(d);
|
1708
1708
|
}
|
1709
|
-
function
|
1709
|
+
function Ke(e, t) {
|
1710
1710
|
return Bi(e, Ri, t);
|
1711
1711
|
}
|
1712
|
-
var Gi = (e, t) => e === t,
|
1712
|
+
var Gi = (e, t) => e === t, Ot = Symbol("solid-proxy"), Kn = typeof Proxy == "function", _t = {
|
1713
1713
|
equals: Gi
|
1714
1714
|
}, Bn = Jn, pe = 1, Nt = 2, Gn = {
|
1715
1715
|
owned: null,
|
@@ -1723,7 +1723,7 @@ function Te(e, t) {
|
|
1723
1723
|
cleanups: null,
|
1724
1724
|
context: i ? i.context : null,
|
1725
1725
|
owner: i
|
1726
|
-
}, a = s ? e : () => e(() => Q(() =>
|
1726
|
+
}, a = s ? e : () => e(() => Q(() => et(o)));
|
1727
1727
|
C = o, D = null;
|
1728
1728
|
try {
|
1729
1729
|
return ce(a, !0);
|
@@ -1732,7 +1732,7 @@ function Te(e, t) {
|
|
1732
1732
|
}
|
1733
1733
|
}
|
1734
1734
|
function z(e, t) {
|
1735
|
-
t = t ? Object.assign({},
|
1735
|
+
t = t ? Object.assign({}, _t, t) : _t;
|
1736
1736
|
const r = {
|
1737
1737
|
value: e,
|
1738
1738
|
observers: null,
|
@@ -1743,21 +1743,21 @@ function z(e, t) {
|
|
1743
1743
|
}
|
1744
1744
|
function Vi(e, t, r) {
|
1745
1745
|
const n = Gt(e, t, !0, pe);
|
1746
|
-
|
1746
|
+
Be(n);
|
1747
1747
|
}
|
1748
1748
|
function Ae(e, t, r) {
|
1749
1749
|
const n = Gt(e, t, !1, pe);
|
1750
|
-
|
1750
|
+
Be(n);
|
1751
1751
|
}
|
1752
1752
|
function Vn(e, t, r) {
|
1753
1753
|
Bn = Zi;
|
1754
1754
|
const n = Gt(e, t, !1, pe);
|
1755
|
-
(!r || !r.render) && (n.user = !0), ye ? ye.push(n) :
|
1755
|
+
(!r || !r.render) && (n.user = !0), ye ? ye.push(n) : Be(n);
|
1756
1756
|
}
|
1757
1757
|
function H(e, t, r) {
|
1758
|
-
r = r ? Object.assign({},
|
1758
|
+
r = r ? Object.assign({}, _t, r) : _t;
|
1759
1759
|
const n = Gt(e, t, !0, 0);
|
1760
|
-
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0,
|
1760
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Be(n), Wn.bind(n);
|
1761
1761
|
}
|
1762
1762
|
function qi(e) {
|
1763
1763
|
return e && typeof e == "object" && "then" in e;
|
@@ -1769,19 +1769,19 @@ function ji(e, t, r) {
|
|
1769
1769
|
const l = /* @__PURE__ */ new Set(), [h, f] = (i.storage || z)(i.initialValue), [y, p] = z(void 0), [b, E] = z(void 0, {
|
1770
1770
|
equals: !1
|
1771
1771
|
}), [A, v] = z(d ? "ready" : "unresolved");
|
1772
|
-
function I(S, w,
|
1772
|
+
function I(S, w, _, T) {
|
1773
1773
|
return o === S && (o = null, T !== void 0 && (d = !0), (S === a || w === a) && i.onHydrated && queueMicrotask(() => i.onHydrated(T, {
|
1774
1774
|
value: w
|
1775
|
-
})), a = Jt, N(w,
|
1775
|
+
})), a = Jt, N(w, _)), w;
|
1776
1776
|
}
|
1777
1777
|
function N(S, w) {
|
1778
1778
|
ce(() => {
|
1779
1779
|
w === void 0 && f(() => S), v(w !== void 0 ? "errored" : d ? "ready" : "unresolved"), p(w);
|
1780
|
-
for (const
|
1780
|
+
for (const _ of l.keys()) _.decrement();
|
1781
1781
|
l.clear();
|
1782
1782
|
}, !1);
|
1783
1783
|
}
|
1784
|
-
function
|
1784
|
+
function K() {
|
1785
1785
|
const S = h(), w = y();
|
1786
1786
|
if (w !== void 0 && !o) throw w;
|
1787
1787
|
return S;
|
@@ -1794,27 +1794,27 @@ function ji(e, t, r) {
|
|
1794
1794
|
I(o, Q(h));
|
1795
1795
|
return;
|
1796
1796
|
}
|
1797
|
-
let
|
1797
|
+
let _;
|
1798
1798
|
const T = a !== Jt ? a : Q(() => {
|
1799
1799
|
try {
|
1800
1800
|
return s(w, {
|
1801
1801
|
value: h(),
|
1802
1802
|
refetching: S
|
1803
1803
|
});
|
1804
|
-
} catch (
|
1805
|
-
|
1804
|
+
} catch (F) {
|
1805
|
+
_ = F;
|
1806
1806
|
}
|
1807
1807
|
});
|
1808
|
-
if (
|
1809
|
-
I(o, void 0, vt(
|
1808
|
+
if (_ !== void 0) {
|
1809
|
+
I(o, void 0, vt(_), w);
|
1810
1810
|
return;
|
1811
1811
|
} else if (!qi(T))
|
1812
1812
|
return I(o, T, void 0, w), T;
|
1813
1813
|
return o = T, "v" in T ? (T.s === 1 ? I(o, T.v, void 0, w) : I(o, void 0, vt(T.v), w), T) : (c = !0, queueMicrotask(() => c = !1), ce(() => {
|
1814
1814
|
v(d ? "refreshing" : "pending"), E();
|
1815
|
-
}, !1), T.then((
|
1815
|
+
}, !1), T.then((F) => I(T, F, void 0, w), (F) => I(T, void 0, vt(F), w)));
|
1816
1816
|
}
|
1817
|
-
Object.defineProperties(
|
1817
|
+
Object.defineProperties(K, {
|
1818
1818
|
state: {
|
1819
1819
|
get: () => A()
|
1820
1820
|
},
|
@@ -1829,20 +1829,20 @@ function ji(e, t, r) {
|
|
1829
1829
|
},
|
1830
1830
|
latest: {
|
1831
1831
|
get() {
|
1832
|
-
if (!d) return
|
1832
|
+
if (!d) return K();
|
1833
1833
|
const S = y();
|
1834
1834
|
if (S && !o) throw S;
|
1835
1835
|
return h();
|
1836
1836
|
}
|
1837
1837
|
}
|
1838
1838
|
});
|
1839
|
-
let
|
1840
|
-
return u ? Vi(() => (
|
1841
|
-
refetch: (S) => qn(
|
1839
|
+
let O = C;
|
1840
|
+
return u ? Vi(() => (O = C, x(!1))) : x(!1), [K, {
|
1841
|
+
refetch: (S) => qn(O, () => x(S)),
|
1842
1842
|
mutate: f
|
1843
1843
|
}];
|
1844
1844
|
}
|
1845
|
-
function
|
1845
|
+
function Uu(e) {
|
1846
1846
|
return ce(e, !1);
|
1847
1847
|
}
|
1848
1848
|
function Q(e) {
|
@@ -1855,7 +1855,7 @@ function Q(e) {
|
|
1855
1855
|
D = t;
|
1856
1856
|
}
|
1857
1857
|
}
|
1858
|
-
function
|
1858
|
+
function Fu(e, t, r) {
|
1859
1859
|
const n = Array.isArray(e);
|
1860
1860
|
let s, i = r && r.defer;
|
1861
1861
|
return (o) => {
|
@@ -1873,7 +1873,7 @@ function Bu(e, t, r) {
|
|
1873
1873
|
function Wi(e) {
|
1874
1874
|
Vn(() => Q(e));
|
1875
1875
|
}
|
1876
|
-
function
|
1876
|
+
function Ze(e) {
|
1877
1877
|
return C === null || (C.cleanups === null ? C.cleanups = [e] : C.cleanups.push(e)), e;
|
1878
1878
|
}
|
1879
1879
|
function Qi() {
|
@@ -1898,11 +1898,11 @@ function Ji(e) {
|
|
1898
1898
|
return ce(e, !1), D = C = null, n ? n.done : void 0;
|
1899
1899
|
});
|
1900
1900
|
}
|
1901
|
-
var [zi,
|
1902
|
-
function
|
1901
|
+
var [zi, Hu] = /* @__PURE__ */ z(!1);
|
1902
|
+
function Ku() {
|
1903
1903
|
return [zi, Ji];
|
1904
1904
|
}
|
1905
|
-
function
|
1905
|
+
function Bu(e, t) {
|
1906
1906
|
const r = Symbol("context");
|
1907
1907
|
return {
|
1908
1908
|
id: r,
|
@@ -1910,7 +1910,7 @@ function qu(e, t) {
|
|
1910
1910
|
defaultValue: e
|
1911
1911
|
};
|
1912
1912
|
}
|
1913
|
-
function
|
1913
|
+
function Gu(e) {
|
1914
1914
|
let t;
|
1915
1915
|
return C && C.context && (t = C.context[e.id]) !== void 0 ? t : e.defaultValue;
|
1916
1916
|
}
|
@@ -1923,7 +1923,7 @@ function jn(e) {
|
|
1923
1923
|
}
|
1924
1924
|
function Wn() {
|
1925
1925
|
if (this.sources && this.state)
|
1926
|
-
if (this.state === pe)
|
1926
|
+
if (this.state === pe) Be(this);
|
1927
1927
|
else {
|
1928
1928
|
const e = J;
|
1929
1929
|
J = null, ce(() => xt(this), !1), J = e;
|
@@ -1945,9 +1945,9 @@ function Qn(e, t, r) {
|
|
1945
1945
|
throw J = [], new Error();
|
1946
1946
|
}, !1)), t;
|
1947
1947
|
}
|
1948
|
-
function
|
1948
|
+
function Be(e) {
|
1949
1949
|
if (!e.fn) return;
|
1950
|
-
|
1950
|
+
et(e);
|
1951
1951
|
const t = Bt;
|
1952
1952
|
Yi(e, e.value, t);
|
1953
1953
|
}
|
@@ -1958,7 +1958,7 @@ function Yi(e, t, r) {
|
|
1958
1958
|
try {
|
1959
1959
|
n = e.fn(t);
|
1960
1960
|
} catch (o) {
|
1961
|
-
return e.pure && (e.state = pe, e.owned && e.owned.forEach(
|
1961
|
+
return e.pure && (e.state = pe, e.owned && e.owned.forEach(et), e.owned = null), e.updatedAt = r + 1, Mr(o);
|
1962
1962
|
} finally {
|
1963
1963
|
D = i, C = s;
|
1964
1964
|
}
|
@@ -1989,7 +1989,7 @@ function Pt(e) {
|
|
1989
1989
|
e.state && t.push(e);
|
1990
1990
|
for (let r = t.length - 1; r >= 0; r--)
|
1991
1991
|
if (e = t[r], e.state === pe)
|
1992
|
-
|
1992
|
+
Be(e);
|
1993
1993
|
else if (e.state === Nt) {
|
1994
1994
|
const n = J;
|
1995
1995
|
J = null, ce(() => xt(e, t[0]), !1), J = n;
|
@@ -2038,7 +2038,7 @@ function zn(e) {
|
|
2038
2038
|
r.state || (r.state = Nt, r.pure ? J.push(r) : ye.push(r), r.observers && zn(r));
|
2039
2039
|
}
|
2040
2040
|
}
|
2041
|
-
function
|
2041
|
+
function et(e) {
|
2042
2042
|
let t;
|
2043
2043
|
if (e.sources)
|
2044
2044
|
for (; e.sources.length; ) {
|
@@ -2049,11 +2049,11 @@ function tt(e) {
|
|
2049
2049
|
}
|
2050
2050
|
}
|
2051
2051
|
if (e.tOwned) {
|
2052
|
-
for (t = e.tOwned.length - 1; t >= 0; t--)
|
2052
|
+
for (t = e.tOwned.length - 1; t >= 0; t--) et(e.tOwned[t]);
|
2053
2053
|
delete e.tOwned;
|
2054
2054
|
}
|
2055
2055
|
if (e.owned) {
|
2056
|
-
for (t = e.owned.length - 1; t >= 0; t--)
|
2056
|
+
for (t = e.owned.length - 1; t >= 0; t--) et(e.owned[t]);
|
2057
2057
|
e.owned = null;
|
2058
2058
|
}
|
2059
2059
|
if (e.cleanups) {
|
@@ -2097,12 +2097,12 @@ function $t(e) {
|
|
2097
2097
|
}
|
2098
2098
|
function ta(e, t, r = {}) {
|
2099
2099
|
let n = [], s = [], i = [], o = 0, a = t.length > 1 ? [] : null;
|
2100
|
-
return
|
2100
|
+
return Ze(() => $t(i)), () => {
|
2101
2101
|
let c = e() || [], d = c.length, u, l;
|
2102
2102
|
return Q(() => {
|
2103
2103
|
let f, y, p, b, E, A, v, I, N;
|
2104
2104
|
if (d === 0)
|
2105
|
-
o !== 0 && ($t(i), i = [], n = [], s = [], o = 0, a && (a = [])), r.fallback && (n = [Er], s[0] = Te((
|
2105
|
+
o !== 0 && ($t(i), i = [], n = [], s = [], o = 0, a && (a = [])), r.fallback && (n = [Er], s[0] = Te((K) => (i[0] = K, r.fallback())), o = 1);
|
2106
2106
|
else if (o === 0) {
|
2107
2107
|
for (s = new Array(d), l = 0; l < d; l++)
|
2108
2108
|
n[l] = c[l], s[l] = Te(h);
|
@@ -2132,7 +2132,7 @@ function ta(e, t, r = {}) {
|
|
2132
2132
|
}
|
2133
2133
|
function ra(e, t, r = {}) {
|
2134
2134
|
let n = [], s = [], i = [], o = [], a = 0, c;
|
2135
|
-
return
|
2135
|
+
return Ze(() => $t(i)), () => {
|
2136
2136
|
const d = e() || [], u = d.length;
|
2137
2137
|
return Q(() => {
|
2138
2138
|
if (u === 0)
|
@@ -2158,10 +2158,10 @@ function ut() {
|
|
2158
2158
|
}
|
2159
2159
|
var vr = {
|
2160
2160
|
get(e, t, r) {
|
2161
|
-
return t ===
|
2161
|
+
return t === Ot ? r : e.get(t);
|
2162
2162
|
},
|
2163
2163
|
has(e, t) {
|
2164
|
-
return t ===
|
2164
|
+
return t === Ot ? !0 : e.has(t);
|
2165
2165
|
},
|
2166
2166
|
set: ut,
|
2167
2167
|
deleteProperty: ut,
|
@@ -2193,9 +2193,9 @@ function ia(...e) {
|
|
2193
2193
|
let t = !1;
|
2194
2194
|
for (let o = 0; o < e.length; o++) {
|
2195
2195
|
const a = e[o];
|
2196
|
-
t = t || !!a &&
|
2196
|
+
t = t || !!a && Ot in a, e[o] = typeof a == "function" ? (t = !0, H(a)) : a;
|
2197
2197
|
}
|
2198
|
-
if (
|
2198
|
+
if (Kn && t)
|
2199
2199
|
return new Proxy({
|
2200
2200
|
get(o) {
|
2201
2201
|
for (let a = e.length - 1; a >= 0; a--) {
|
@@ -2243,7 +2243,7 @@ function ia(...e) {
|
|
2243
2243
|
return s;
|
2244
2244
|
}
|
2245
2245
|
function aa(e, ...t) {
|
2246
|
-
if (
|
2246
|
+
if (Kn && Ot in e) {
|
2247
2247
|
const s = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((o) => new Proxy({
|
2248
2248
|
get(a) {
|
2249
2249
|
return o.includes(a) ? e[a] : void 0;
|
@@ -2290,23 +2290,23 @@ function oa(e) {
|
|
2290
2290
|
return n.preload = () => r || ((r = e()).then((s) => t = () => s.default), r), n;
|
2291
2291
|
}
|
2292
2292
|
var ca = 0;
|
2293
|
-
function
|
2293
|
+
function Vu() {
|
2294
2294
|
return `cl-${ca++}`;
|
2295
2295
|
}
|
2296
2296
|
var Yn = (e) => `Stale read from <${e}>.`;
|
2297
|
-
function
|
2297
|
+
function qu(e) {
|
2298
2298
|
const t = "fallback" in e && {
|
2299
2299
|
fallback: () => e.fallback
|
2300
2300
|
};
|
2301
2301
|
return H(ta(() => e.each, e.children, t || void 0));
|
2302
2302
|
}
|
2303
|
-
function
|
2303
|
+
function ju(e) {
|
2304
2304
|
const t = "fallback" in e && {
|
2305
2305
|
fallback: () => e.fallback
|
2306
2306
|
};
|
2307
2307
|
return H(ra(() => e.each, e.children, t || void 0));
|
2308
2308
|
}
|
2309
|
-
function
|
2309
|
+
function Wu(e) {
|
2310
2310
|
const t = e.keyed, r = H(() => e.when, void 0, void 0), n = t ? r : H(r, void 0, {
|
2311
2311
|
equals: (s, i) => !s == !i
|
2312
2312
|
});
|
@@ -2322,7 +2322,7 @@ function zu(e) {
|
|
2322
2322
|
return e.fallback;
|
2323
2323
|
}, void 0, void 0);
|
2324
2324
|
}
|
2325
|
-
function
|
2325
|
+
function Qu(e) {
|
2326
2326
|
const t = jn(() => e.children), r = H(() => {
|
2327
2327
|
const n = t(), s = Array.isArray(n) ? n : [n];
|
2328
2328
|
let i = () => {
|
@@ -2345,7 +2345,7 @@ function Yu(e) {
|
|
2345
2345
|
})) : a;
|
2346
2346
|
}, void 0, void 0);
|
2347
2347
|
}
|
2348
|
-
function
|
2348
|
+
function Ju(e) {
|
2349
2349
|
return e;
|
2350
2350
|
}
|
2351
2351
|
var la = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], ua = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...la]), da = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), ha = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
@@ -2465,7 +2465,7 @@ var ma = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextme
|
|
2465
2465
|
]), ga = {
|
2466
2466
|
xlink: "http://www.w3.org/1999/xlink",
|
2467
2467
|
xml: "http://www.w3.org/XML/1998/namespace"
|
2468
|
-
},
|
2468
|
+
}, zu = (e) => H(() => e());
|
2469
2469
|
function ba(e, t, r) {
|
2470
2470
|
let n = r.length, s = t.length, i = n, o = 0, a = 0, c = t[s - 1].nextSibling, d = null;
|
2471
2471
|
for (; o < s || a < i; ) {
|
@@ -2505,7 +2505,7 @@ function ba(e, t, r) {
|
|
2505
2505
|
}
|
2506
2506
|
}
|
2507
2507
|
}
|
2508
|
-
var
|
2508
|
+
var je = "_$DX_DELEGATE";
|
2509
2509
|
function wa(e, t, r, n = {}) {
|
2510
2510
|
let s;
|
2511
2511
|
return Te((i) => {
|
@@ -2514,7 +2514,7 @@ function wa(e, t, r, n = {}) {
|
|
2514
2514
|
s(), t.textContent = "";
|
2515
2515
|
};
|
2516
2516
|
}
|
2517
|
-
function
|
2517
|
+
function Yu(e, t, r, n) {
|
2518
2518
|
let s;
|
2519
2519
|
const i = () => {
|
2520
2520
|
const a = document.createElement("template");
|
@@ -2523,16 +2523,16 @@ function ed(e, t, r, n) {
|
|
2523
2523
|
return o.cloneNode = o, o;
|
2524
2524
|
}
|
2525
2525
|
function Ea(e, t = window.document) {
|
2526
|
-
const r = t[
|
2526
|
+
const r = t[je] || (t[je] = /* @__PURE__ */ new Set());
|
2527
2527
|
for (let n = 0, s = e.length; n < s; n++) {
|
2528
2528
|
const i = e[n];
|
2529
2529
|
r.has(i) || (r.add(i), t.addEventListener(i, Xn));
|
2530
2530
|
}
|
2531
2531
|
}
|
2532
|
-
function
|
2533
|
-
if (e[
|
2534
|
-
for (let t of e[
|
2535
|
-
delete e[
|
2532
|
+
function Xu(e = window.document) {
|
2533
|
+
if (e[je]) {
|
2534
|
+
for (let t of e[je].keys()) e.removeEventListener(t, Xn);
|
2535
|
+
delete e[je];
|
2536
2536
|
}
|
2537
2537
|
}
|
2538
2538
|
function Sr(e, t, r) {
|
@@ -2582,16 +2582,16 @@ function ka(e, t, r) {
|
|
2582
2582
|
}
|
2583
2583
|
function Ra(e, t = {}, r, n) {
|
2584
2584
|
const s = {};
|
2585
|
-
return n || Ae(() => s.children =
|
2585
|
+
return n || Ae(() => s.children = tt(e, t.children, s.children)), Ae(() => typeof t.ref == "function" && Ca(t.ref, e)), Ae(() => Oa(e, t, r, !0, s, !0)), s;
|
2586
2586
|
}
|
2587
2587
|
function Ca(e, t, r) {
|
2588
2588
|
return Q(() => e(t, r));
|
2589
2589
|
}
|
2590
2590
|
function Tr(e, t, r, n) {
|
2591
|
-
if (r !== void 0 && !n && (n = []), typeof t != "function") return
|
2592
|
-
Ae((s) =>
|
2591
|
+
if (r !== void 0 && !n && (n = []), typeof t != "function") return tt(e, t, n, r);
|
2592
|
+
Ae((s) => tt(e, t(), s, r), n);
|
2593
2593
|
}
|
2594
|
-
function
|
2594
|
+
function Oa(e, t, r, n, s = {}, i = !1) {
|
2595
2595
|
t || (t = {});
|
2596
2596
|
for (const o in s)
|
2597
2597
|
if (!(o in t)) {
|
@@ -2605,7 +2605,7 @@ function _a(e, t, r, n, s = {}, i = !1) {
|
|
2605
2605
|
s[o] = an(e, o, a, s[o], r, i, t);
|
2606
2606
|
}
|
2607
2607
|
}
|
2608
|
-
function
|
2608
|
+
function _a(e) {
|
2609
2609
|
return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
|
2610
2610
|
}
|
2611
2611
|
function sn(e, t, r) {
|
@@ -2637,7 +2637,7 @@ function an(e, t, r, n, s, i, o) {
|
|
2637
2637
|
else if (t.slice(0, 5) === "bool:")
|
2638
2638
|
Sa(e, t.slice(5), r);
|
2639
2639
|
else if ((l = t.slice(0, 5) === "prop:") || (d = da.has(t)) || !s && ((u = ya(t, e.tagName)) || (c = ua.has(t))) || (a = e.nodeName.includes("-") || "is" in o))
|
2640
|
-
l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? Ta(e, r) : a && !c && !d ? e[
|
2640
|
+
l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? Ta(e, r) : a && !c && !d ? e[_a(t)] = r : e[u || t] = r;
|
2641
2641
|
else {
|
2642
2642
|
const h = s && t.indexOf(":") > -1 && ga[t.split(":")[0]];
|
2643
2643
|
h ? va(e, h, t, r) : Sr(e, ha[t] || t, r);
|
@@ -2678,7 +2678,7 @@ function Xn(e) {
|
|
2678
2678
|
} else a();
|
2679
2679
|
i(n);
|
2680
2680
|
}
|
2681
|
-
function
|
2681
|
+
function tt(e, t, r, n, s) {
|
2682
2682
|
for (; typeof r == "function"; ) r = r();
|
2683
2683
|
if (t === r) return r;
|
2684
2684
|
const i = typeof t, o = n !== void 0;
|
@@ -2687,30 +2687,30 @@ function rt(e, t, r, n, s) {
|
|
2687
2687
|
return r;
|
2688
2688
|
if (o) {
|
2689
2689
|
let a = r[0];
|
2690
|
-
a && a.nodeType === 3 ? a.data !== t && (a.data = t) : a = document.createTextNode(t), r =
|
2690
|
+
a && a.nodeType === 3 ? a.data !== t && (a.data = t) : a = document.createTextNode(t), r = _e(e, r, n, a);
|
2691
2691
|
} else
|
2692
2692
|
r !== "" && typeof r == "string" ? r = e.firstChild.data = t : r = e.textContent = t;
|
2693
2693
|
} else if (t == null || i === "boolean")
|
2694
|
-
r =
|
2694
|
+
r = _e(e, r, n);
|
2695
2695
|
else {
|
2696
2696
|
if (i === "function")
|
2697
2697
|
return Ae(() => {
|
2698
2698
|
let a = t();
|
2699
2699
|
for (; typeof a == "function"; ) a = a();
|
2700
|
-
r =
|
2700
|
+
r = tt(e, a, r, n);
|
2701
2701
|
}), () => r;
|
2702
2702
|
if (Array.isArray(t)) {
|
2703
2703
|
const a = [], c = r && Array.isArray(r);
|
2704
2704
|
if (Ar(a, t, r, s))
|
2705
|
-
return Ae(() => r =
|
2705
|
+
return Ae(() => r = tt(e, a, r, n, !0)), () => r;
|
2706
2706
|
if (a.length === 0) {
|
2707
|
-
if (r =
|
2708
|
-
} else c ? r.length === 0 ? on(e, a, n) : ba(e, r, a) : (r &&
|
2707
|
+
if (r = _e(e, r, n), o) return r;
|
2708
|
+
} else c ? r.length === 0 ? on(e, a, n) : ba(e, r, a) : (r && _e(e), on(e, a));
|
2709
2709
|
r = a;
|
2710
2710
|
} else if (t.nodeType) {
|
2711
2711
|
if (Array.isArray(r)) {
|
2712
|
-
if (o) return r =
|
2713
|
-
|
2712
|
+
if (o) return r = _e(e, r, n, t);
|
2713
|
+
_e(e, r, null, t);
|
2714
2714
|
} else r == null || r === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
2715
2715
|
r = t;
|
2716
2716
|
}
|
@@ -2741,7 +2741,7 @@ function Ar(e, t, r, n) {
|
|
2741
2741
|
function on(e, t, r = null) {
|
2742
2742
|
for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
|
2743
2743
|
}
|
2744
|
-
function
|
2744
|
+
function _e(e, t, r, n) {
|
2745
2745
|
if (r === void 0) return e.textContent = "";
|
2746
2746
|
const s = n || document.createTextNode("");
|
2747
2747
|
if (t.length) {
|
@@ -2760,7 +2760,7 @@ var Na = "http://www.w3.org/2000/svg";
|
|
2760
2760
|
function Zn(e, t = !1) {
|
2761
2761
|
return t ? document.createElementNS(Na, e) : document.createElement(e);
|
2762
2762
|
}
|
2763
|
-
function
|
2763
|
+
function Zu(e) {
|
2764
2764
|
const {
|
2765
2765
|
useShadow: t
|
2766
2766
|
} = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = Qi();
|
@@ -2770,7 +2770,7 @@ function rd(e) {
|
|
2770
2770
|
const o = n();
|
2771
2771
|
if (o instanceof HTMLHeadElement) {
|
2772
2772
|
const [a, c] = z(!1), d = () => c(!0);
|
2773
|
-
Te((u) => Tr(o, () => a() ? u() : i(), null)),
|
2773
|
+
Te((u) => Tr(o, () => a() ? u() : i(), null)), Ze(d);
|
2774
2774
|
} else {
|
2775
2775
|
const a = Zn(e.isSVG ? "g" : "div", e.isSVG), c = t && a.attachShadow ? a.attachShadow({
|
2776
2776
|
mode: "open"
|
@@ -2780,7 +2780,7 @@ function rd(e) {
|
|
2780
2780
|
return r.parentNode;
|
2781
2781
|
},
|
2782
2782
|
configurable: !0
|
2783
|
-
}), Tr(c, i), o.appendChild(a), e.ref && e.ref(a),
|
2783
|
+
}), Tr(c, i), o.appendChild(a), e.ref && e.ref(a), Ze(() => o.removeChild(a));
|
2784
2784
|
}
|
2785
2785
|
}, void 0, {
|
2786
2786
|
render: !0
|
@@ -2799,7 +2799,7 @@ function Pa(e, t) {
|
|
2799
2799
|
}
|
2800
2800
|
});
|
2801
2801
|
}
|
2802
|
-
function
|
2802
|
+
function ed(e) {
|
2803
2803
|
const [, t] = aa(e, ["component"]);
|
2804
2804
|
return Pa(() => e.component, t);
|
2805
2805
|
}
|
@@ -2891,7 +2891,7 @@ var Ma = class {
|
|
2891
2891
|
findByName(e) {
|
2892
2892
|
return this.transfomers[e];
|
2893
2893
|
}
|
2894
|
-
}, Ua = (e) => Object.prototype.toString.call(e).slice(8, -1), ts = (e) => typeof e > "u", Fa = (e) => e === null,
|
2894
|
+
}, Ua = (e) => Object.prototype.toString.call(e).slice(8, -1), ts = (e) => typeof e > "u", Fa = (e) => e === null, rt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Ir = (e) => rt(e) && Object.keys(e).length === 0, ve = (e) => Array.isArray(e), Ha = (e) => typeof e == "string", Ka = (e) => typeof e == "number" && !isNaN(e), Ba = (e) => typeof e == "boolean", Ga = (e) => e instanceof RegExp, nt = (e) => e instanceof Map, st = (e) => e instanceof Set, rs = (e) => Ua(e) === "Symbol", Va = (e) => e instanceof Date && !isNaN(e.valueOf()), qa = (e) => e instanceof Error, ln = (e) => typeof e == "number" && isNaN(e), ja = (e) => Ba(e) || Fa(e) || ts(e) || Ka(e) || Ha(e) || rs(e), Wa = (e) => typeof e == "bigint", Qa = (e) => e === 1 / 0 || e === -1 / 0, Ja = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), za = (e) => e instanceof URL, ns = (e) => e.replace(/\./g, "\\."), Yt = (e) => e.map(String).map(ns).join("."), We = (e) => {
|
2895
2895
|
const t = [];
|
2896
2896
|
let r = "";
|
2897
2897
|
for (let s = 0; s < e.length; s++) {
|
@@ -2941,14 +2941,14 @@ var ss = [
|
|
2941
2941
|
return new RegExp(t, r);
|
2942
2942
|
}),
|
2943
2943
|
se(
|
2944
|
-
|
2944
|
+
st,
|
2945
2945
|
"set",
|
2946
2946
|
// (sets only exist in es6+)
|
2947
2947
|
// eslint-disable-next-line es5/no-es6-methods
|
2948
2948
|
(e) => [...e.values()],
|
2949
2949
|
(e) => new Set(e)
|
2950
2950
|
),
|
2951
|
-
se(
|
2951
|
+
se(nt, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
2952
2952
|
se((e) => ln(e) || Qa(e), "number", (e) => ln(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
2953
2953
|
se((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
2954
2954
|
se(za, "URL", (e) => e.toString(), (e) => new URL(e))
|
@@ -3060,9 +3060,9 @@ var eo = (e, t) => {
|
|
3060
3060
|
ds(t);
|
3061
3061
|
for (let r = 0; r < t.length; r++) {
|
3062
3062
|
const n = t[r];
|
3063
|
-
if (
|
3063
|
+
if (st(e))
|
3064
3064
|
e = Me(e, +n);
|
3065
|
-
else if (
|
3065
|
+
else if (nt(e)) {
|
3066
3066
|
const s = +n, i = +t[++r] == 0 ? "key" : "value", o = Me(e, s);
|
3067
3067
|
switch (i) {
|
3068
3068
|
case "key":
|
@@ -3085,12 +3085,12 @@ var eo = (e, t) => {
|
|
3085
3085
|
if (ve(n)) {
|
3086
3086
|
const a = +o;
|
3087
3087
|
n = n[a];
|
3088
|
-
} else if (
|
3088
|
+
} else if (rt(n))
|
3089
3089
|
n = n[o];
|
3090
|
-
else if (
|
3090
|
+
else if (st(n)) {
|
3091
3091
|
const a = +o;
|
3092
3092
|
n = Me(n, a);
|
3093
|
-
} else if (
|
3093
|
+
} else if (nt(n)) {
|
3094
3094
|
if (i === t.length - 2)
|
3095
3095
|
break;
|
3096
3096
|
const c = +o, d = +t[++i] == 0 ? "key" : "value", u = Me(n, c);
|
@@ -3105,11 +3105,11 @@ var eo = (e, t) => {
|
|
3105
3105
|
}
|
3106
3106
|
}
|
3107
3107
|
const s = t[t.length - 1];
|
3108
|
-
if (ve(n) ? n[+s] = r(n[+s]) :
|
3108
|
+
if (ve(n) ? n[+s] = r(n[+s]) : rt(n) && (n[s] = r(n[s])), st(n)) {
|
3109
3109
|
const i = Me(n, +s), o = r(i);
|
3110
3110
|
i !== o && (n.delete(i), n.add(o));
|
3111
3111
|
}
|
3112
|
-
if (
|
3112
|
+
if (nt(n)) {
|
3113
3113
|
const i = +t[t.length - 2], o = Me(n, i);
|
3114
3114
|
switch (+s == 0 ? "key" : "value") {
|
3115
3115
|
case "key": {
|
@@ -3129,12 +3129,12 @@ function Rr(e, t, r = []) {
|
|
3129
3129
|
if (!e)
|
3130
3130
|
return;
|
3131
3131
|
if (!ve(e)) {
|
3132
|
-
Fe(e, (i, o) => Rr(i, t, [...r, ...
|
3132
|
+
Fe(e, (i, o) => Rr(i, t, [...r, ...We(o)]));
|
3133
3133
|
return;
|
3134
3134
|
}
|
3135
3135
|
const [n, s] = e;
|
3136
3136
|
s && Fe(s, (i, o) => {
|
3137
|
-
Rr(i, t, [...r, ...
|
3137
|
+
Rr(i, t, [...r, ...We(o)]);
|
3138
3138
|
}), t(n, r);
|
3139
3139
|
}
|
3140
3140
|
function to(e, t, r) {
|
@@ -3144,21 +3144,21 @@ function to(e, t, r) {
|
|
3144
3144
|
}
|
3145
3145
|
function ro(e, t) {
|
3146
3146
|
function r(n, s) {
|
3147
|
-
const i = eo(e,
|
3148
|
-
n.map(
|
3147
|
+
const i = eo(e, We(s));
|
3148
|
+
n.map(We).forEach((o) => {
|
3149
3149
|
e = kr(e, o, () => i);
|
3150
3150
|
});
|
3151
3151
|
}
|
3152
3152
|
if (ve(t)) {
|
3153
3153
|
const [n, s] = t;
|
3154
3154
|
n.forEach((i) => {
|
3155
|
-
e = kr(e,
|
3155
|
+
e = kr(e, We(i), () => e);
|
3156
3156
|
}), s && Fe(s, r);
|
3157
3157
|
} else
|
3158
3158
|
Fe(t, r);
|
3159
3159
|
return e;
|
3160
3160
|
}
|
3161
|
-
var no = (e, t) =>
|
3161
|
+
var no = (e, t) => rt(e) || ve(e) || nt(e) || st(e) || os(e, t);
|
3162
3162
|
function so(e, t, r) {
|
3163
3163
|
const n = r.get(e);
|
3164
3164
|
n ? n.push(t) : r.set(e, [t]);
|
@@ -3202,7 +3202,7 @@ var hs = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
3202
3202
|
if (y === "__proto__" || y === "constructor" || y === "prototype")
|
3203
3203
|
throw new Error(`Detected property ${y}. This is a prototype pollution risk, please remove it from your object.`);
|
3204
3204
|
const p = hs(f, t, r, n, [...s, y], [...i, e], o);
|
3205
|
-
u[y] = p.transformedValue, ve(p.annotations) ? l[y] = p.annotations :
|
3205
|
+
u[y] = p.transformedValue, ve(p.annotations) ? l[y] = p.annotations : rt(p.annotations) && Fe(p.annotations, (b, E) => {
|
3206
3206
|
l[ns(y) + "." + E] = b;
|
3207
3207
|
});
|
3208
3208
|
});
|
@@ -3306,42 +3306,42 @@ P.registerClass = P.defaultInstance.registerClass.bind(P.defaultInstance);
|
|
3306
3306
|
P.registerSymbol = P.defaultInstance.registerSymbol.bind(P.defaultInstance);
|
3307
3307
|
P.registerCustom = P.defaultInstance.registerCustom.bind(P.defaultInstance);
|
3308
3308
|
P.allowErrorProps = P.defaultInstance.allowErrorProps.bind(P.defaultInstance);
|
3309
|
-
var co = P.serialize,
|
3310
|
-
function
|
3309
|
+
var co = P.serialize, td = P.stringify;
|
3310
|
+
function rd(e) {
|
3311
3311
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
3312
3312
|
}
|
3313
|
-
function
|
3313
|
+
function nd(e, t) {
|
3314
3314
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
3315
3315
|
}
|
3316
|
-
function
|
3316
|
+
function sd({
|
3317
3317
|
queryState: e,
|
3318
3318
|
observerCount: t,
|
3319
3319
|
isStale: r
|
3320
3320
|
}) {
|
3321
3321
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
|
3322
3322
|
}
|
3323
|
-
function
|
3323
|
+
function id({
|
3324
3324
|
status: e,
|
3325
3325
|
isPaused: t
|
3326
3326
|
}) {
|
3327
3327
|
return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
|
3328
3328
|
}
|
3329
|
-
function
|
3329
|
+
function ad(e) {
|
3330
3330
|
return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
|
3331
3331
|
}
|
3332
|
-
var
|
3332
|
+
var od = (e, t = !1) => {
|
3333
3333
|
const {
|
3334
3334
|
json: r
|
3335
3335
|
} = co(e);
|
3336
3336
|
return JSON.stringify(r, null, t ? 2 : void 0);
|
3337
|
-
}, dt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, lo = (e, t) => e.queryHash.localeCompare(t.queryHash), ys = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, uo = (e, t) => dt(e) === dt(t) ? ys(e, t) : dt(e) > dt(t) ? 1 : -1,
|
3337
|
+
}, dt = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, lo = (e, t) => e.queryHash.localeCompare(t.queryHash), ys = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, uo = (e, t) => dt(e) === dt(t) ? ys(e, t) : dt(e) > dt(t) ? 1 : -1, cd = {
|
3338
3338
|
status: uo,
|
3339
3339
|
"query hash": lo,
|
3340
3340
|
"last updated": ys
|
3341
|
-
}, ht = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, ms = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, ho = (e, t) => ht(e) === ht(t) ? ms(e, t) : ht(e) > ht(t) ? 1 : -1,
|
3341
|
+
}, ht = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, ms = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, ho = (e, t) => ht(e) === ht(t) ? ms(e, t) : ht(e) > ht(t) ? 1 : -1, ld = {
|
3342
3342
|
status: ho,
|
3343
3343
|
"last updated": ms
|
3344
|
-
},
|
3344
|
+
}, ud = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), dd = () => {
|
3345
3345
|
const [e, t] = z("dark");
|
3346
3346
|
return Wi(() => {
|
3347
3347
|
const r = window.matchMedia("(prefers-color-scheme: dark)");
|
@@ -3349,7 +3349,7 @@ var ud = (e, t = !1) => {
|
|
3349
3349
|
const n = (s) => {
|
3350
3350
|
t(s.matches ? "dark" : "light");
|
3351
3351
|
};
|
3352
|
-
r.addEventListener("change", n),
|
3352
|
+
r.addEventListener("change", n), Ze(() => r.removeEventListener("change", n));
|
3353
3353
|
}), e;
|
3354
3354
|
}, ft = (e, t, r) => {
|
3355
3355
|
if (t.length === 0)
|
@@ -3467,7 +3467,7 @@ var ud = (e, t = !1) => {
|
|
3467
3467
|
const t = wa(() => {
|
3468
3468
|
const r = this, [n] = this.#i, [s] = this.#f, [i] = this.#u, [o] = this.#d, [a] = this.#h, [c] = this.#t;
|
3469
3469
|
let d;
|
3470
|
-
return this.#c ? d = this.#c : (d = oa(() => import("./LNWAZHJI.
|
3470
|
+
return this.#c ? d = this.#c : (d = oa(() => import("./LNWAZHJI.BgaLMWwH.js")), this.#c = d), fo(this.#o, this.#a), na(d, ia({
|
3471
3471
|
get queryFlavor() {
|
3472
3472
|
return r.#r;
|
3473
3473
|
},
|
@@ -3510,7 +3510,7 @@ var ud = (e, t = !1) => {
|
|
3510
3510
|
}
|
3511
3511
|
};
|
3512
3512
|
function mo(e) {
|
3513
|
-
const t =
|
3513
|
+
const t = Hn(e.client), r = U.useRef(null), {
|
3514
3514
|
buttonPosition: n,
|
3515
3515
|
position: s,
|
3516
3516
|
initialIsOpen: i,
|
@@ -3518,12 +3518,12 @@ function mo(e) {
|
|
3518
3518
|
styleNonce: a,
|
3519
3519
|
shadowDOMTarget: c,
|
3520
3520
|
hideDisabledQueries: d
|
3521
|
-
} = e, [u] =
|
3521
|
+
} = e, [u] = U.useState(
|
3522
3522
|
new yo({
|
3523
3523
|
client: t,
|
3524
3524
|
queryFlavor: "React Query",
|
3525
3525
|
version: "5",
|
3526
|
-
onlineManager:
|
3526
|
+
onlineManager: Xe,
|
3527
3527
|
buttonPosition: n,
|
3528
3528
|
position: s,
|
3529
3529
|
initialIsOpen: i,
|
@@ -3533,17 +3533,17 @@ function mo(e) {
|
|
3533
3533
|
hideDisabledQueries: d
|
3534
3534
|
})
|
3535
3535
|
);
|
3536
|
-
return
|
3536
|
+
return U.useEffect(() => {
|
3537
3537
|
u.setClient(t);
|
3538
|
-
}, [t, u]),
|
3538
|
+
}, [t, u]), U.useEffect(() => {
|
3539
3539
|
n && u.setButtonPosition(n);
|
3540
|
-
}, [n, u]),
|
3540
|
+
}, [n, u]), U.useEffect(() => {
|
3541
3541
|
s && u.setPosition(s);
|
3542
|
-
}, [s, u]),
|
3542
|
+
}, [s, u]), U.useEffect(() => {
|
3543
3543
|
u.setInitialIsOpen(i || !1);
|
3544
|
-
}, [i, u]),
|
3544
|
+
}, [i, u]), U.useEffect(() => {
|
3545
3545
|
u.setErrorTypes(o || []);
|
3546
|
-
}, [o, u]),
|
3546
|
+
}, [o, u]), U.useEffect(() => (r.current && u.mount(r.current), () => {
|
3547
3547
|
u.unmount();
|
3548
3548
|
}), [u]), /* @__PURE__ */ m("div", { dir: "ltr", className: "tsqd-parent-container", ref: r });
|
3549
3549
|
}
|
@@ -3563,21 +3563,19 @@ try {
|
|
3563
3563
|
});
|
3564
3564
|
} catch {
|
3565
3565
|
}
|
3566
|
-
const
|
3566
|
+
const Qe = {
|
3567
3567
|
CODE: "code",
|
3568
3568
|
REFRESH_TOKEN: "refresh_token",
|
3569
3569
|
PASSKEY: "passkey"
|
3570
3570
|
}, ps = {
|
3571
3571
|
CLIENT_ID: "X-Auth-ClientId"
|
3572
|
-
},
|
3572
|
+
}, W = {
|
3573
3573
|
ALG: "RS256",
|
3574
3574
|
USER_ID_KEY: "sub",
|
3575
3575
|
USERNAME_KEY: "username",
|
3576
3576
|
EMAIL_KEY: "email",
|
3577
3577
|
NONCE_KEY: "_nonce",
|
3578
3578
|
AUTH_TYPE_KEY: "auth_type",
|
3579
|
-
SCOPES_KEY: "scopes",
|
3580
|
-
SCOPE_KEY: "scope",
|
3581
3579
|
ISSUER: "gizmette.com"
|
3582
3580
|
}, go = `-----BEGIN PUBLIC KEY-----
|
3583
3581
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
@@ -3592,7 +3590,7 @@ awIDAQAB
|
|
3592
3590
|
LOGOUT: "logout",
|
3593
3591
|
LOGIN: "login",
|
3594
3592
|
REFRESH: "refresh"
|
3595
|
-
}, mt = new TextEncoder(),
|
3593
|
+
}, mt = new TextEncoder(), He = new TextDecoder();
|
3596
3594
|
function bo(...e) {
|
3597
3595
|
const t = e.reduce((s, { length: i }) => s + i, 0), r = new Uint8Array(t);
|
3598
3596
|
let n = 0;
|
@@ -3608,13 +3606,13 @@ function gs(e) {
|
|
3608
3606
|
r[n] = t.charCodeAt(n);
|
3609
3607
|
return r;
|
3610
3608
|
}
|
3611
|
-
function
|
3609
|
+
function Je(e) {
|
3612
3610
|
if (Uint8Array.fromBase64)
|
3613
|
-
return Uint8Array.fromBase64(typeof e == "string" ? e :
|
3611
|
+
return Uint8Array.fromBase64(typeof e == "string" ? e : He.decode(e), {
|
3614
3612
|
alphabet: "base64url"
|
3615
3613
|
});
|
3616
3614
|
let t = e;
|
3617
|
-
t instanceof Uint8Array && (t =
|
3615
|
+
t instanceof Uint8Array && (t = He.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
3618
3616
|
try {
|
3619
3617
|
return gs(t);
|
3620
3618
|
} catch {
|
@@ -3652,7 +3650,7 @@ let ke = class extends Error {
|
|
3652
3650
|
static code = "ERR_JOSE_NOT_SUPPORTED";
|
3653
3651
|
code = "ERR_JOSE_NOT_SUPPORTED";
|
3654
3652
|
};
|
3655
|
-
class
|
3653
|
+
class V extends ke {
|
3656
3654
|
static code = "ERR_JWS_INVALID";
|
3657
3655
|
code = "ERR_JWS_INVALID";
|
3658
3656
|
}
|
@@ -3791,7 +3789,7 @@ const Ss = (e) => Es(e) || vs(e), Io = (...e) => {
|
|
3791
3789
|
function ko(e) {
|
3792
3790
|
return typeof e == "object" && e !== null;
|
3793
3791
|
}
|
3794
|
-
const
|
3792
|
+
const it = (e) => {
|
3795
3793
|
if (!ko(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
3796
3794
|
return !1;
|
3797
3795
|
if (Object.getPrototypeOf(e) === null)
|
@@ -3829,18 +3827,18 @@ const at = (e) => {
|
|
3829
3827
|
}, Ts = (e, t) => {
|
3830
3828
|
const r = e.data.subarray(e.pos, e.pos + t);
|
3831
3829
|
return e.pos += t, r;
|
3832
|
-
},
|
3830
|
+
}, Oo = (e) => {
|
3833
3831
|
Lt(e, 6, "Expected algorithm OID");
|
3834
3832
|
const t = Dt(e);
|
3835
3833
|
return Ts(e, t);
|
3836
3834
|
};
|
3837
|
-
function
|
3835
|
+
function _o(e) {
|
3838
3836
|
Lt(e, 48, "Invalid SPKI structure"), Dt(e), Lt(e, 48, "Expected algorithm identifier");
|
3839
3837
|
const t = Dt(e);
|
3840
3838
|
return { algIdStart: e.pos, algIdLength: t };
|
3841
3839
|
}
|
3842
3840
|
const No = (e) => {
|
3843
|
-
const t =
|
3841
|
+
const t = Oo(e);
|
3844
3842
|
if (Zt(t, [43, 101, 110]))
|
3845
3843
|
return "X25519";
|
3846
3844
|
if (!Zt(t, [42, 134, 72, 206, 61, 2, 1]))
|
@@ -3915,7 +3913,7 @@ const No = (e) => {
|
|
3915
3913
|
let s = r;
|
3916
3914
|
return t?.startsWith?.("ECDH-ES") && (s ||= {}, s.getNamedCurve = (i) => {
|
3917
3915
|
const o = Co(i);
|
3918
|
-
return
|
3916
|
+
return _o(o), No(o);
|
3919
3917
|
}), Po("spki", n, t, s);
|
3920
3918
|
};
|
3921
3919
|
function Do(e) {
|
@@ -4039,12 +4037,12 @@ const Uo = (e, t, r, n, s) => {
|
|
4039
4037
|
return new Set(t);
|
4040
4038
|
};
|
4041
4039
|
function Ur(e) {
|
4042
|
-
return
|
4040
|
+
return it(e) && typeof e.kty == "string";
|
4043
4041
|
}
|
4044
|
-
function
|
4042
|
+
function Ho(e) {
|
4045
4043
|
return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
|
4046
4044
|
}
|
4047
|
-
function
|
4045
|
+
function Ko(e) {
|
4048
4046
|
return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
|
4049
4047
|
}
|
4050
4048
|
function Bo(e) {
|
@@ -4171,9 +4169,9 @@ const fn = async (e, t, r, n = !1) => {
|
|
4171
4169
|
return fn(e, r, t);
|
4172
4170
|
}
|
4173
4171
|
if (Ur(e))
|
4174
|
-
return e.k ?
|
4172
|
+
return e.k ? Je(e.k) : fn(e, e, t, !0);
|
4175
4173
|
throw new Error("unreachable");
|
4176
|
-
}, Le = (e) => e?.[Symbol.toStringTag],
|
4174
|
+
}, Le = (e) => e?.[Symbol.toStringTag], Or = (e, t, r) => {
|
4177
4175
|
if (t.use !== void 0) {
|
4178
4176
|
let n;
|
4179
4177
|
switch (r) {
|
@@ -4219,7 +4217,7 @@ const fn = async (e, t, r, n = !1) => {
|
|
4219
4217
|
}, qo = (e, t, r) => {
|
4220
4218
|
if (!(t instanceof Uint8Array)) {
|
4221
4219
|
if (Ur(t)) {
|
4222
|
-
if (Bo(t) &&
|
4220
|
+
if (Bo(t) && Or(e, t, r))
|
4223
4221
|
return;
|
4224
4222
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
4225
4223
|
}
|
@@ -4233,12 +4231,12 @@ const fn = async (e, t, r, n = !1) => {
|
|
4233
4231
|
switch (r) {
|
4234
4232
|
case "decrypt":
|
4235
4233
|
case "sign":
|
4236
|
-
if (
|
4234
|
+
if (Ho(t) && Or(e, t, r))
|
4237
4235
|
return;
|
4238
4236
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
4239
4237
|
case "encrypt":
|
4240
4238
|
case "verify":
|
4241
|
-
if (
|
4239
|
+
if (Ko(t) && Or(e, t, r))
|
4242
4240
|
return;
|
4243
4241
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
4244
4242
|
}
|
@@ -4309,54 +4307,54 @@ const fn = async (e, t, r, n = !1) => {
|
|
4309
4307
|
}
|
4310
4308
|
};
|
4311
4309
|
async function Yo(e, t, r) {
|
4312
|
-
if (!
|
4313
|
-
throw new
|
4310
|
+
if (!it(e))
|
4311
|
+
throw new V("Flattened JWS must be an object");
|
4314
4312
|
if (e.protected === void 0 && e.header === void 0)
|
4315
|
-
throw new
|
4313
|
+
throw new V('Flattened JWS must have either of the "protected" or "header" members');
|
4316
4314
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
4317
|
-
throw new
|
4315
|
+
throw new V("JWS Protected Header incorrect type");
|
4318
4316
|
if (e.payload === void 0)
|
4319
|
-
throw new
|
4317
|
+
throw new V("JWS Payload missing");
|
4320
4318
|
if (typeof e.signature != "string")
|
4321
|
-
throw new
|
4322
|
-
if (e.header !== void 0 && !
|
4323
|
-
throw new
|
4319
|
+
throw new V("JWS Signature missing or incorrect type");
|
4320
|
+
if (e.header !== void 0 && !it(e.header))
|
4321
|
+
throw new V("JWS Unprotected Header incorrect type");
|
4324
4322
|
let n = {};
|
4325
4323
|
if (e.protected)
|
4326
4324
|
try {
|
4327
|
-
const p =
|
4328
|
-
n = JSON.parse(
|
4325
|
+
const p = Je(e.protected);
|
4326
|
+
n = JSON.parse(He.decode(p));
|
4329
4327
|
} catch {
|
4330
|
-
throw new
|
4328
|
+
throw new V("JWS Protected Header is invalid");
|
4331
4329
|
}
|
4332
4330
|
if (!Io(n, e.header))
|
4333
|
-
throw new
|
4331
|
+
throw new V("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
4334
4332
|
const s = {
|
4335
4333
|
...n,
|
4336
4334
|
...e.header
|
4337
|
-
}, i = Uo(
|
4335
|
+
}, i = Uo(V, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, n, s);
|
4338
4336
|
let o = !0;
|
4339
4337
|
if (i.has("b64") && (o = n.b64, typeof o != "boolean"))
|
4340
|
-
throw new
|
4338
|
+
throw new V('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
4341
4339
|
const { alg: a } = s;
|
4342
4340
|
if (typeof a != "string" || !a)
|
4343
|
-
throw new
|
4341
|
+
throw new V('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
4344
4342
|
const c = r && Fo("algorithms", r.algorithms);
|
4345
4343
|
if (c && !c.has(a))
|
4346
4344
|
throw new wo('"alg" (Algorithm) Header Parameter value not allowed');
|
4347
4345
|
if (o) {
|
4348
4346
|
if (typeof e.payload != "string")
|
4349
|
-
throw new
|
4347
|
+
throw new V("JWS Payload must be a string");
|
4350
4348
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
4351
|
-
throw new
|
4349
|
+
throw new V("JWS Payload must be a string or an Uint8Array instance");
|
4352
4350
|
let d = !1;
|
4353
4351
|
typeof t == "function" && (t = await t(n, e), d = !0), Wo(a, t, "verify");
|
4354
4352
|
const u = bo(mt.encode(e.protected ?? ""), mt.encode("."), typeof e.payload == "string" ? mt.encode(e.payload) : e.payload);
|
4355
4353
|
let l;
|
4356
4354
|
try {
|
4357
|
-
l =
|
4355
|
+
l = Je(e.signature);
|
4358
4356
|
} catch {
|
4359
|
-
throw new
|
4357
|
+
throw new V("Failed to base64url decode the signature");
|
4360
4358
|
}
|
4361
4359
|
const h = await Vo(t, a);
|
4362
4360
|
if (!await zo(a, h, l, u))
|
@@ -4364,20 +4362,20 @@ async function Yo(e, t, r) {
|
|
4364
4362
|
let f;
|
4365
4363
|
if (o)
|
4366
4364
|
try {
|
4367
|
-
f =
|
4365
|
+
f = Je(e.payload);
|
4368
4366
|
} catch {
|
4369
|
-
throw new
|
4367
|
+
throw new V("Failed to base64url decode the payload");
|
4370
4368
|
}
|
4371
4369
|
else typeof e.payload == "string" ? f = mt.encode(e.payload) : f = e.payload;
|
4372
4370
|
const y = { payload: f };
|
4373
4371
|
return e.protected !== void 0 && (y.protectedHeader = n), e.header !== void 0 && (y.unprotectedHeader = e.header), d ? { ...y, key: h } : y;
|
4374
4372
|
}
|
4375
4373
|
async function Xo(e, t, r) {
|
4376
|
-
if (e instanceof Uint8Array && (e =
|
4377
|
-
throw new
|
4374
|
+
if (e instanceof Uint8Array && (e = He.decode(e)), typeof e != "string")
|
4375
|
+
throw new V("Compact JWS must be a string or Uint8Array");
|
4378
4376
|
const { 0: n, 1: s, 2: i, length: o } = e.split(".");
|
4379
4377
|
if (o !== 3)
|
4380
|
-
throw new
|
4378
|
+
throw new V("Invalid Compact JWS");
|
4381
4379
|
const a = await Yo({ payload: s, protected: n, signature: i }, t, r), c = { payload: a.payload, protectedHeader: a.protectedHeader };
|
4382
4380
|
return typeof t == "function" ? { ...c, key: a.key } : c;
|
4383
4381
|
}
|
@@ -4428,10 +4426,10 @@ const Zo = (e) => Math.floor(e.getTime() / 1e3), As = 60, Is = As * 60, Fr = Is
|
|
4428
4426
|
function sc(e, t, r = {}) {
|
4429
4427
|
let n;
|
4430
4428
|
try {
|
4431
|
-
n = JSON.parse(
|
4429
|
+
n = JSON.parse(He.decode(t));
|
4432
4430
|
} catch {
|
4433
4431
|
}
|
4434
|
-
if (!
|
4432
|
+
if (!it(n))
|
4435
4433
|
throw new ue("JWT Claims Set must be a top-level JSON object");
|
4436
4434
|
const { typ: s } = r;
|
4437
4435
|
if (s && (typeof e.typ != "string" || mn(e.typ) !== mn(s)))
|
@@ -4504,25 +4502,25 @@ function ac(e) {
|
|
4504
4502
|
throw new ue("JWTs must contain a payload");
|
4505
4503
|
let n;
|
4506
4504
|
try {
|
4507
|
-
n =
|
4505
|
+
n = Je(t);
|
4508
4506
|
} catch {
|
4509
4507
|
throw new ue("Failed to base64url decode the payload");
|
4510
4508
|
}
|
4511
4509
|
let s;
|
4512
4510
|
try {
|
4513
|
-
s = JSON.parse(
|
4511
|
+
s = JSON.parse(He.decode(n));
|
4514
4512
|
} catch {
|
4515
4513
|
throw new ue("Failed to parse the decoded payload as JSON");
|
4516
4514
|
}
|
4517
|
-
if (!
|
4515
|
+
if (!it(s))
|
4518
4516
|
throw new ue("Invalid JWT Claims Set");
|
4519
4517
|
return s;
|
4520
4518
|
}
|
4521
|
-
const
|
4519
|
+
const at = async (e) => {
|
4522
4520
|
try {
|
4523
|
-
const t =
|
4521
|
+
const t = W.ALG, r = await Mo(go, t);
|
4524
4522
|
return await ic(e, r, {
|
4525
|
-
issuer:
|
4523
|
+
issuer: W.ISSUER
|
4526
4524
|
});
|
4527
4525
|
} catch {
|
4528
4526
|
return;
|
@@ -4533,11 +4531,11 @@ const He = async (e) => {
|
|
4533
4531
|
} catch {
|
4534
4532
|
return;
|
4535
4533
|
}
|
4536
|
-
},
|
4534
|
+
}, B = [];
|
4537
4535
|
for (let e = 0; e < 256; ++e)
|
4538
|
-
|
4536
|
+
B.push((e + 256).toString(16).slice(1));
|
4539
4537
|
function cc(e, t = 0) {
|
4540
|
-
return (
|
4538
|
+
return (B[e[t + 0]] + B[e[t + 1]] + B[e[t + 2]] + B[e[t + 3]] + "-" + B[e[t + 4]] + B[e[t + 5]] + "-" + B[e[t + 6]] + B[e[t + 7]] + "-" + B[e[t + 8]] + B[e[t + 9]] + "-" + B[e[t + 10]] + B[e[t + 11]] + B[e[t + 12]] + B[e[t + 13]] + B[e[t + 14]] + B[e[t + 15]]).toLowerCase();
|
4541
4539
|
}
|
4542
4540
|
let er;
|
4543
4541
|
const lc = new Uint8Array(16);
|
@@ -4577,21 +4575,7 @@ async function mc(e) {
|
|
4577
4575
|
code_challenge: n
|
4578
4576
|
};
|
4579
4577
|
}
|
4580
|
-
const
|
4581
|
-
const r = await He(e);
|
4582
|
-
if (!r || !r.payload)
|
4583
|
-
return !1;
|
4584
|
-
let n = [];
|
4585
|
-
if (Array.isArray(r.payload[M.SCOPES_KEY]))
|
4586
|
-
n = r.payload[M.SCOPES_KEY];
|
4587
|
-
else if (typeof r.payload[M.SCOPE_KEY] == "string")
|
4588
|
-
n = r.payload[M.SCOPE_KEY].split(" ").filter((s) => s.trim() !== "");
|
4589
|
-
else
|
4590
|
-
return !1;
|
4591
|
-
return Array.isArray(t) ? t.every((s) => n.includes(s)) : Object.keys(t).some(
|
4592
|
-
(s) => t[s].every((i) => n.includes(i))
|
4593
|
-
);
|
4594
|
-
}, ks = xr(null);
|
4578
|
+
const ks = xr(null);
|
4595
4579
|
var pc = Object.defineProperty, gc = (e, t, r) => t in e ? pc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tr = (e, t, r) => gc(e, typeof t != "symbol" ? t + "" : t, r);
|
4596
4580
|
/*!
|
4597
4581
|
@versini/auth-provider v8.0.5
|
@@ -4619,7 +4603,7 @@ function Mt(e) {
|
|
4619
4603
|
o[a] = s.charCodeAt(a);
|
4620
4604
|
return i;
|
4621
4605
|
}
|
4622
|
-
function
|
4606
|
+
function Hr() {
|
4623
4607
|
return bc.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
4624
4608
|
}
|
4625
4609
|
const bc = {
|
@@ -4644,7 +4628,7 @@ function Cs(e) {
|
|
4644
4628
|
e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
|
4645
4629
|
);
|
4646
4630
|
}
|
4647
|
-
let
|
4631
|
+
let q = class extends Error {
|
4648
4632
|
constructor({ message: t, code: r, cause: n, name: s }) {
|
4649
4633
|
super(t, { cause: n }), Object.defineProperty(this, "code", {
|
4650
4634
|
enumerable: !0,
|
@@ -4660,14 +4644,14 @@ function wc({ error: e, options: t }) {
|
|
4660
4644
|
throw Error("options was missing required publicKey property");
|
4661
4645
|
if (e.name === "AbortError") {
|
4662
4646
|
if (t.signal instanceof AbortSignal)
|
4663
|
-
return new
|
4647
|
+
return new q({
|
4664
4648
|
message: "Registration ceremony was sent an abort signal",
|
4665
4649
|
code: "ERROR_CEREMONY_ABORTED",
|
4666
4650
|
cause: e
|
4667
4651
|
});
|
4668
4652
|
} else if (e.name === "ConstraintError") {
|
4669
4653
|
if (r.authenticatorSelection?.requireResidentKey === !0)
|
4670
|
-
return new
|
4654
|
+
return new q({
|
4671
4655
|
message: "Discoverable credentials were required but no available authenticator supported it",
|
4672
4656
|
code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
|
4673
4657
|
cause: e
|
@@ -4676,36 +4660,36 @@ function wc({ error: e, options: t }) {
|
|
4676
4660
|
// @ts-ignore: `mediation` doesn't yet exist on CredentialCreationOptions but it's possible as of Sept 2024
|
4677
4661
|
t.mediation === "conditional" && r.authenticatorSelection?.userVerification === "required"
|
4678
4662
|
)
|
4679
|
-
return new
|
4663
|
+
return new q({
|
4680
4664
|
message: "User verification was required during automatic registration but it could not be performed",
|
4681
4665
|
code: "ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",
|
4682
4666
|
cause: e
|
4683
4667
|
});
|
4684
4668
|
if (r.authenticatorSelection?.userVerification === "required")
|
4685
|
-
return new
|
4669
|
+
return new q({
|
4686
4670
|
message: "User verification was required but no available authenticator supported it",
|
4687
4671
|
code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
|
4688
4672
|
cause: e
|
4689
4673
|
});
|
4690
4674
|
} else {
|
4691
4675
|
if (e.name === "InvalidStateError")
|
4692
|
-
return new
|
4676
|
+
return new q({
|
4693
4677
|
message: "The authenticator was previously registered",
|
4694
4678
|
code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
|
4695
4679
|
cause: e
|
4696
4680
|
});
|
4697
4681
|
if (e.name === "NotAllowedError")
|
4698
|
-
return new
|
4682
|
+
return new q({
|
4699
4683
|
message: e.message,
|
4700
4684
|
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
4701
4685
|
cause: e
|
4702
4686
|
});
|
4703
4687
|
if (e.name === "NotSupportedError")
|
4704
|
-
return r.pubKeyCredParams.filter((n) => n.type === "public-key").length === 0 ? new
|
4688
|
+
return r.pubKeyCredParams.filter((n) => n.type === "public-key").length === 0 ? new q({
|
4705
4689
|
message: 'No entry in pubKeyCredParams was of type "public-key"',
|
4706
4690
|
code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
|
4707
4691
|
cause: e
|
4708
|
-
}) : new
|
4692
|
+
}) : new q({
|
4709
4693
|
message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
|
4710
4694
|
code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
|
4711
4695
|
cause: e
|
@@ -4714,25 +4698,25 @@ function wc({ error: e, options: t }) {
|
|
4714
4698
|
const n = globalThis.location.hostname;
|
4715
4699
|
if (Cs(n)) {
|
4716
4700
|
if (r.rp.id !== n)
|
4717
|
-
return new
|
4701
|
+
return new q({
|
4718
4702
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
4719
4703
|
code: "ERROR_INVALID_RP_ID",
|
4720
4704
|
cause: e
|
4721
4705
|
});
|
4722
|
-
} else return new
|
4706
|
+
} else return new q({
|
4723
4707
|
message: `${globalThis.location.hostname} is an invalid domain`,
|
4724
4708
|
code: "ERROR_INVALID_DOMAIN",
|
4725
4709
|
cause: e
|
4726
4710
|
});
|
4727
4711
|
} else if (e.name === "TypeError") {
|
4728
4712
|
if (r.user.id.byteLength < 1 || r.user.id.byteLength > 64)
|
4729
|
-
return new
|
4713
|
+
return new q({
|
4730
4714
|
message: "User ID was not between 1 and 64 characters",
|
4731
4715
|
code: "ERROR_INVALID_USER_ID_LENGTH",
|
4732
4716
|
cause: e
|
4733
4717
|
});
|
4734
4718
|
} else if (e.name === "UnknownError")
|
4735
|
-
return new
|
4719
|
+
return new q({
|
4736
4720
|
message: "The authenticator was unable to process the specified options, or could not create a new credential",
|
4737
4721
|
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
4738
4722
|
cause: e
|
@@ -4764,15 +4748,15 @@ class Ec {
|
|
4764
4748
|
}
|
4765
4749
|
}
|
4766
4750
|
}
|
4767
|
-
const
|
4768
|
-
function
|
4751
|
+
const Os = new Ec(), vc = ["cross-platform", "platform"];
|
4752
|
+
function _s(e) {
|
4769
4753
|
if (e && !(vc.indexOf(e) < 0))
|
4770
4754
|
return e;
|
4771
4755
|
}
|
4772
4756
|
async function Sc(e) {
|
4773
4757
|
!e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
4774
4758
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
4775
|
-
if (!
|
4759
|
+
if (!Hr())
|
4776
4760
|
throw new Error("WebAuthn is not supported in this browser");
|
4777
4761
|
const n = {
|
4778
4762
|
...t,
|
@@ -4783,7 +4767,7 @@ async function Sc(e) {
|
|
4783
4767
|
},
|
4784
4768
|
excludeCredentials: t.excludeCredentials?.map(Rs)
|
4785
4769
|
}, s = {};
|
4786
|
-
r && (s.mediation = "conditional"), s.publicKey = n, s.signal =
|
4770
|
+
r && (s.mediation = "conditional"), s.publicKey = n, s.signal = Os.createNewAbortSignal();
|
4787
4771
|
let i;
|
4788
4772
|
try {
|
4789
4773
|
i = await navigator.credentials.create(s);
|
@@ -4830,7 +4814,7 @@ async function Sc(e) {
|
|
4830
4814
|
},
|
4831
4815
|
type: d,
|
4832
4816
|
clientExtensionResults: i.getClientExtensionResults(),
|
4833
|
-
authenticatorAttachment:
|
4817
|
+
authenticatorAttachment: _s(i.authenticatorAttachment)
|
4834
4818
|
};
|
4835
4819
|
}
|
4836
4820
|
function rr(e, t) {
|
@@ -4838,7 +4822,7 @@ function rr(e, t) {
|
|
4838
4822
|
`, t);
|
4839
4823
|
}
|
4840
4824
|
function Tc() {
|
4841
|
-
if (!
|
4825
|
+
if (!Hr())
|
4842
4826
|
return nr.stubThis(new Promise((t) => t(!1)));
|
4843
4827
|
const e = globalThis.PublicKeyCredential;
|
4844
4828
|
return e?.isConditionalMediationAvailable === void 0 ? nr.stubThis(new Promise((t) => t(!1))) : nr.stubThis(e.isConditionalMediationAvailable());
|
@@ -4852,14 +4836,14 @@ function Ac({ error: e, options: t }) {
|
|
4852
4836
|
throw Error("options was missing required publicKey property");
|
4853
4837
|
if (e.name === "AbortError") {
|
4854
4838
|
if (t.signal instanceof AbortSignal)
|
4855
|
-
return new
|
4839
|
+
return new q({
|
4856
4840
|
message: "Authentication ceremony was sent an abort signal",
|
4857
4841
|
code: "ERROR_CEREMONY_ABORTED",
|
4858
4842
|
cause: e
|
4859
4843
|
});
|
4860
4844
|
} else {
|
4861
4845
|
if (e.name === "NotAllowedError")
|
4862
|
-
return new
|
4846
|
+
return new q({
|
4863
4847
|
message: e.message,
|
4864
4848
|
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
4865
4849
|
cause: e
|
@@ -4868,18 +4852,18 @@ function Ac({ error: e, options: t }) {
|
|
4868
4852
|
const n = globalThis.location.hostname;
|
4869
4853
|
if (Cs(n)) {
|
4870
4854
|
if (r.rpId !== n)
|
4871
|
-
return new
|
4855
|
+
return new q({
|
4872
4856
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
4873
4857
|
code: "ERROR_INVALID_RP_ID",
|
4874
4858
|
cause: e
|
4875
4859
|
});
|
4876
|
-
} else return new
|
4860
|
+
} else return new q({
|
4877
4861
|
message: `${globalThis.location.hostname} is an invalid domain`,
|
4878
4862
|
code: "ERROR_INVALID_DOMAIN",
|
4879
4863
|
cause: e
|
4880
4864
|
});
|
4881
4865
|
} else if (e.name === "UnknownError")
|
4882
|
-
return new
|
4866
|
+
return new q({
|
4883
4867
|
message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
|
4884
4868
|
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
4885
4869
|
cause: e
|
@@ -4890,7 +4874,7 @@ function Ac({ error: e, options: t }) {
|
|
4890
4874
|
async function Ic(e) {
|
4891
4875
|
!e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
4892
4876
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = e;
|
4893
|
-
if (!
|
4877
|
+
if (!Hr())
|
4894
4878
|
throw new Error("WebAuthn is not supported in this browser");
|
4895
4879
|
let s;
|
4896
4880
|
t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(Rs));
|
@@ -4906,7 +4890,7 @@ async function Ic(e) {
|
|
4906
4890
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
4907
4891
|
o.mediation = "conditional", i.allowCredentials = [];
|
4908
4892
|
}
|
4909
|
-
o.publicKey = i, o.signal =
|
4893
|
+
o.publicKey = i, o.signal = Os.createNewAbortSignal();
|
4910
4894
|
let a;
|
4911
4895
|
try {
|
4912
4896
|
a = await navigator.credentials.get(o);
|
@@ -4928,7 +4912,7 @@ async function Ic(e) {
|
|
4928
4912
|
},
|
4929
4913
|
type: l,
|
4930
4914
|
clientExtensionResults: a.getClientExtensionResults(),
|
4931
|
-
authenticatorAttachment:
|
4915
|
+
authenticatorAttachment: _s(a.authenticatorAttachment)
|
4932
4916
|
};
|
4933
4917
|
}
|
4934
4918
|
function Ns(e, t) {
|
@@ -4969,33 +4953,33 @@ function pt({
|
|
4969
4953
|
}
|
4970
4954
|
}, [e, t]), [r ? JSON.parse(r) : null, n, s, i];
|
4971
4955
|
}
|
4972
|
-
const
|
4956
|
+
const G = [];
|
4973
4957
|
for (let e = 0; e < 256; ++e)
|
4974
|
-
|
4958
|
+
G.push((e + 256).toString(16).slice(1));
|
4975
4959
|
function Cc(e, t = 0) {
|
4976
|
-
return (
|
4960
|
+
return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
|
4977
4961
|
}
|
4978
4962
|
let sr;
|
4979
|
-
const
|
4980
|
-
function
|
4963
|
+
const Oc = new Uint8Array(16);
|
4964
|
+
function _c() {
|
4981
4965
|
if (!sr) {
|
4982
4966
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
4983
4967
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
4984
4968
|
sr = crypto.getRandomValues.bind(crypto);
|
4985
4969
|
}
|
4986
|
-
return sr(
|
4970
|
+
return sr(Oc);
|
4987
4971
|
}
|
4988
4972
|
const Nc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), vn = { randomUUID: Nc };
|
4989
4973
|
function ir(e, t, r) {
|
4990
4974
|
if (vn.randomUUID && !e)
|
4991
4975
|
return vn.randomUUID();
|
4992
4976
|
e = e || {};
|
4993
|
-
const n = e.random ?? e.rng?.() ??
|
4977
|
+
const n = e.random ?? e.rng?.() ?? _c();
|
4994
4978
|
if (n.length < 16)
|
4995
4979
|
throw new Error("Random bytes length must be >= 16");
|
4996
4980
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Cc(n);
|
4997
4981
|
}
|
4998
|
-
const Pe = "Your session has expired. For your security, please log in again to continue.", Pc = "Your session has been successfully terminated.", ar = "Login failed. Please try again.", xc = "Error getting access token, please re-authenticate.", $c = "You forgot to wrap your component in <AuthProvider>.", gt = "@@auth@@",
|
4982
|
+
const Pe = "Your session has expired. For your security, please log in again to continue.", Pc = "Your session has been successfully terminated.", ar = "Login failed. Please try again.", xc = "Error getting access token, please re-authenticate.", $c = "You forgot to wrap your component in <AuthProvider>.", gt = "@@auth@@", qe = "LOADING", Tt = "LOGIN", Ps = "LOGOUT", ct = "success", le = "failure", xs = "include", $s = "POST", Ds = "application/json", bt = {
|
4999
4983
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
5000
4984
|
$clientId: String!,
|
5001
4985
|
$username: String!,
|
@@ -5160,7 +5144,7 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5160
5144
|
}, Mc = (e) => {
|
5161
5145
|
try {
|
5162
5146
|
const t = oc(e);
|
5163
|
-
return t ? t[
|
5147
|
+
return t ? t[W.USER_ID_KEY] : "";
|
5164
5148
|
} catch {
|
5165
5149
|
return "";
|
5166
5150
|
}
|
@@ -5218,13 +5202,13 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5218
5202
|
domain: c,
|
5219
5203
|
ua: d
|
5220
5204
|
}
|
5221
|
-
}), h = await
|
5222
|
-
return h && h.payload[
|
5205
|
+
}), h = await at(l?.data?.idToken);
|
5206
|
+
return h && h.payload[W.USER_ID_KEY] !== "" && h.payload[W.NONCE_KEY] === n ? {
|
5223
5207
|
idToken: l.data.idToken,
|
5224
5208
|
accessToken: l.data.accessToken,
|
5225
5209
|
refreshToken: l.data.refreshToken,
|
5226
|
-
userId: h.payload[
|
5227
|
-
email: h.payload[
|
5210
|
+
userId: h.payload[W.USER_ID_KEY],
|
5211
|
+
email: h.payload[W.EMAIL_KEY],
|
5228
5212
|
status: !0
|
5229
5213
|
} : {
|
5230
5214
|
status: !1
|
@@ -5234,7 +5218,7 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5234
5218
|
status: !1
|
5235
5219
|
};
|
5236
5220
|
}
|
5237
|
-
},
|
5221
|
+
}, Hc = async ({
|
5238
5222
|
nonce: e,
|
5239
5223
|
clientId: t,
|
5240
5224
|
code_challenge: r,
|
@@ -5246,7 +5230,7 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5246
5230
|
type: qt.CODE,
|
5247
5231
|
clientId: t,
|
5248
5232
|
params: {
|
5249
|
-
type:
|
5233
|
+
type: Qe.CODE,
|
5250
5234
|
nonce: e,
|
5251
5235
|
code_challenge: r
|
5252
5236
|
}
|
@@ -5264,7 +5248,7 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5264
5248
|
data: ""
|
5265
5249
|
};
|
5266
5250
|
}
|
5267
|
-
},
|
5251
|
+
}, Kc = async ({
|
5268
5252
|
clientId: e,
|
5269
5253
|
userId: t,
|
5270
5254
|
nonce: r,
|
@@ -5279,18 +5263,18 @@ const Pe = "Your session has expired. For your security, please log in again to
|
|
5279
5263
|
type: qt.REFRESH,
|
5280
5264
|
clientId: e,
|
5281
5265
|
params: {
|
5282
|
-
type:
|
5266
|
+
type: Qe.REFRESH_TOKEN,
|
5283
5267
|
userId: t,
|
5284
5268
|
nonce: r,
|
5285
5269
|
refreshToken: n,
|
5286
5270
|
accessToken: s,
|
5287
5271
|
domain: i
|
5288
5272
|
}
|
5289
|
-
}), c = await
|
5290
|
-
return c && c.payload[
|
5273
|
+
}), c = await at(a?.data?.accessToken);
|
5274
|
+
return c && c.payload[W.USER_ID_KEY] !== "" && c.payload[W.NONCE_KEY] === r ? {
|
5291
5275
|
accessToken: a.data.accessToken,
|
5292
5276
|
refreshToken: a.data.refreshToken,
|
5293
|
-
userId: c.payload[
|
5277
|
+
userId: c.payload[W.USER_ID_KEY],
|
5294
5278
|
status: !0
|
5295
5279
|
} : {
|
5296
5280
|
status: !1
|
@@ -5332,9 +5316,9 @@ class Bc {
|
|
5332
5316
|
nonce: s,
|
5333
5317
|
domain: i
|
5334
5318
|
}) {
|
5335
|
-
const o = await
|
5336
|
-
if (o && o.payload[
|
5337
|
-
const a = await
|
5319
|
+
const o = await at(this.refreshToken);
|
5320
|
+
if (o && o.payload[W.USER_ID_KEY] !== "") {
|
5321
|
+
const a = await Kc({
|
5338
5322
|
endpoint: t,
|
5339
5323
|
clientId: r,
|
5340
5324
|
userId: n,
|
@@ -5370,7 +5354,7 @@ const De = () => {
|
|
5370
5354
|
logoutReason: "",
|
5371
5355
|
authenticationType: ""
|
5372
5356
|
}), Gc = () => ({
|
5373
|
-
...
|
5357
|
+
...Kt(Ms)
|
5374
5358
|
}), Vc = (e) => ne(
|
5375
5359
|
(...t) => {
|
5376
5360
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
@@ -5380,7 +5364,7 @@ const De = () => {
|
|
5380
5364
|
state: Ls,
|
5381
5365
|
dispatch: () => {
|
5382
5366
|
}
|
5383
|
-
}), jc = (e, t) => t?.type ===
|
5367
|
+
}), jc = (e, t) => t?.type === qe ? {
|
5384
5368
|
...e,
|
5385
5369
|
isLoading: t.payload.isLoading
|
5386
5370
|
} : t?.type === Tt ? {
|
@@ -5421,7 +5405,7 @@ const De = () => {
|
|
5421
5405
|
}
|
5422
5406
|
), [v, I, , N] = pt({
|
5423
5407
|
key: `${gt}::${r}::@@nonce@@`
|
5424
|
-
}),
|
5408
|
+
}), K = new Bc(f, b), x = ne(() => {
|
5425
5409
|
c("removeLocalStorage: removing local storage"), h(), p(), A(), N();
|
5426
5410
|
}, [
|
5427
5411
|
p,
|
@@ -5429,7 +5413,7 @@ const De = () => {
|
|
5429
5413
|
N,
|
5430
5414
|
A,
|
5431
5415
|
c
|
5432
|
-
]),
|
5416
|
+
]), O = ne(
|
5433
5417
|
(k) => {
|
5434
5418
|
c(
|
5435
5419
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
@@ -5439,7 +5423,7 @@ const De = () => {
|
|
5439
5423
|
payload: {
|
5440
5424
|
logoutReason: k || Pe
|
5441
5425
|
}
|
5442
|
-
}), x(), a({ type:
|
5426
|
+
}), x(), a({ type: qe, payload: { isLoading: !1 } });
|
5443
5427
|
},
|
5444
5428
|
[x, c]
|
5445
5429
|
), S = ne(
|
@@ -5454,14 +5438,14 @@ const De = () => {
|
|
5454
5438
|
domain: n,
|
5455
5439
|
idToken: u,
|
5456
5440
|
endpoint: i
|
5457
|
-
}),
|
5441
|
+
}), O(k || Pe);
|
5458
5442
|
},
|
5459
5443
|
[
|
5460
5444
|
u,
|
5461
5445
|
o,
|
5462
5446
|
r,
|
5463
5447
|
n,
|
5464
|
-
|
5448
|
+
O,
|
5465
5449
|
c,
|
5466
5450
|
i
|
5467
5451
|
]
|
@@ -5470,15 +5454,15 @@ const De = () => {
|
|
5470
5454
|
if (!d.current)
|
5471
5455
|
return o.isLoading && u !== null ? (async () => {
|
5472
5456
|
try {
|
5473
|
-
const k = await
|
5474
|
-
k && k.payload[
|
5457
|
+
const k = await at(u);
|
5458
|
+
k && k.payload[W.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), a({
|
5475
5459
|
type: Tt,
|
5476
5460
|
payload: {
|
5477
|
-
authenticationType: k.payload[
|
5461
|
+
authenticationType: k.payload[W.AUTH_TYPE_KEY],
|
5478
5462
|
user: {
|
5479
|
-
userId: k.payload[
|
5480
|
-
username: k.payload[
|
5481
|
-
email: k.payload[
|
5463
|
+
userId: k.payload[W.USER_ID_KEY],
|
5464
|
+
username: k.payload[W.USERNAME_KEY],
|
5465
|
+
email: k.payload[W.EMAIL_KEY]
|
5482
5466
|
}
|
5483
5467
|
}
|
5484
5468
|
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await S(Pe));
|
@@ -5487,48 +5471,48 @@ const De = () => {
|
|
5487
5471
|
"useEffect: exception validating JWT, invalidating and logging out"
|
5488
5472
|
), await S(Pe);
|
5489
5473
|
}
|
5490
|
-
})() : (c("useEffect: setting the loading state to false"), a({ type:
|
5474
|
+
})() : (c("useEffect: setting the loading state to false"), a({ type: qe, payload: { isLoading: !1 } })), () => {
|
5491
5475
|
d.current = !0;
|
5492
5476
|
};
|
5493
5477
|
}, [o.isLoading, u, S, c]);
|
5494
5478
|
const w = async (k, $) => {
|
5495
|
-
a({ type:
|
5479
|
+
a({ type: qe, payload: { isLoading: !0 } }), x();
|
5496
5480
|
const R = ir();
|
5497
5481
|
I(R), c("login: Logging in with password");
|
5498
|
-
const { code_verifier: be, code_challenge: we } = await mc(), Qr = await
|
5482
|
+
const { code_verifier: be, code_challenge: we } = await mc(), Qr = await Hc({
|
5499
5483
|
endpoint: i,
|
5500
5484
|
nonce: R,
|
5501
5485
|
clientId: r,
|
5502
5486
|
code_challenge: we
|
5503
5487
|
});
|
5504
5488
|
if (Qr.status) {
|
5505
|
-
const
|
5489
|
+
const Oe = await Fc({
|
5506
5490
|
endpoint: i,
|
5507
5491
|
username: k,
|
5508
5492
|
password: $,
|
5509
5493
|
clientId: r,
|
5510
5494
|
sessionExpiration: t,
|
5511
5495
|
nonce: R,
|
5512
|
-
type:
|
5496
|
+
type: Qe.CODE,
|
5513
5497
|
code: Qr.data,
|
5514
5498
|
code_verifier: be,
|
5515
5499
|
domain: n,
|
5516
5500
|
ua: navigator.userAgent
|
5517
5501
|
});
|
5518
|
-
return
|
5502
|
+
return Oe.status ? (l(Oe.idToken), y(Oe.accessToken), E(Oe.refreshToken), a({
|
5519
5503
|
type: Tt,
|
5520
5504
|
payload: {
|
5521
|
-
authenticationType:
|
5505
|
+
authenticationType: Qe.CODE,
|
5522
5506
|
user: {
|
5523
|
-
userId:
|
5507
|
+
userId: Oe.userId,
|
5524
5508
|
username: k,
|
5525
|
-
email:
|
5509
|
+
email: Oe.email
|
5526
5510
|
}
|
5527
5511
|
}
|
5528
|
-
}), !0) : (
|
5512
|
+
}), !0) : (O(ar), !1);
|
5529
5513
|
}
|
5530
5514
|
return !1;
|
5531
|
-
},
|
5515
|
+
}, _ = async (k) => {
|
5532
5516
|
k?.preventDefault(), await S(Pc);
|
5533
5517
|
}, T = async () => {
|
5534
5518
|
const { isAuthenticated: k, user: $ } = o;
|
@@ -5536,12 +5520,12 @@ const De = () => {
|
|
5536
5520
|
if (k && $ && $.userId) {
|
5537
5521
|
if (f) {
|
5538
5522
|
c("getAccessToken");
|
5539
|
-
const be = await
|
5540
|
-
if (be && be.payload[
|
5523
|
+
const be = await at(f);
|
5524
|
+
if (be && be.payload[W.USER_ID_KEY] !== "")
|
5541
5525
|
return f;
|
5542
5526
|
}
|
5543
5527
|
c("getAccessToken: invalid access token, trying to refresh it");
|
5544
|
-
const R = await
|
5528
|
+
const R = await K.refreshtoken({
|
5545
5529
|
endpoint: i,
|
5546
5530
|
clientId: r,
|
5547
5531
|
userId: $.userId,
|
@@ -5560,7 +5544,7 @@ const De = () => {
|
|
5560
5544
|
"getAccessToken: exception occurred, invalidating and logging out"
|
5561
5545
|
), await S(xc), "";
|
5562
5546
|
}
|
5563
|
-
},
|
5547
|
+
}, F = () => o.isAuthenticated && u ? u : "", ge = async () => {
|
5564
5548
|
const { user: k } = o;
|
5565
5549
|
let $ = await $e({
|
5566
5550
|
endpoint: i,
|
@@ -5606,7 +5590,7 @@ const De = () => {
|
|
5606
5590
|
}
|
5607
5591
|
return !1;
|
5608
5592
|
}, Ce = async () => {
|
5609
|
-
a({ type:
|
5593
|
+
a({ type: qe, payload: { isLoading: !0 } }), x();
|
5610
5594
|
const k = ir();
|
5611
5595
|
I(k), c("loginWithPasskey");
|
5612
5596
|
const $ = ir();
|
@@ -5642,14 +5626,14 @@ const De = () => {
|
|
5642
5626
|
}), R.data.status === ct ? (l(R.data.idToken), y(R.data.accessToken), E(R.data.refreshToken), a({
|
5643
5627
|
type: Tt,
|
5644
5628
|
payload: {
|
5645
|
-
authenticationType:
|
5629
|
+
authenticationType: Qe.PASSKEY,
|
5646
5630
|
user: {
|
5647
5631
|
userId: R.data.userId,
|
5648
5632
|
username: R.data.username,
|
5649
5633
|
email: R.data.email
|
5650
5634
|
}
|
5651
5635
|
}
|
5652
|
-
}), !0) : (
|
5636
|
+
}), !0) : (O(ar), !1);
|
5653
5637
|
} catch {
|
5654
5638
|
return await $e({
|
5655
5639
|
endpoint: i,
|
@@ -5664,7 +5648,7 @@ const De = () => {
|
|
5664
5648
|
domain: n,
|
5665
5649
|
sessionExpiration: t
|
5666
5650
|
}
|
5667
|
-
}),
|
5651
|
+
}), O(ar), !1;
|
5668
5652
|
}
|
5669
5653
|
return !1;
|
5670
5654
|
};
|
@@ -5674,9 +5658,9 @@ const De = () => {
|
|
5674
5658
|
value: {
|
5675
5659
|
...o,
|
5676
5660
|
login: w,
|
5677
|
-
logout:
|
5661
|
+
logout: _,
|
5678
5662
|
getAccessToken: T,
|
5679
|
-
getIdToken:
|
5663
|
+
getIdToken: F,
|
5680
5664
|
registeringForPasskey: ge,
|
5681
5665
|
loginWithPasskey: Ce
|
5682
5666
|
},
|
@@ -5698,34 +5682,34 @@ try {
|
|
5698
5682
|
} catch {
|
5699
5683
|
}
|
5700
5684
|
const Us = () => {
|
5701
|
-
const e =
|
5685
|
+
const e = Kt(ks);
|
5702
5686
|
if (!e)
|
5703
5687
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
5704
5688
|
return e;
|
5705
|
-
},
|
5689
|
+
}, wd = "I'm having trouble right now. Please try again later.", Ed = "action-search", vd = "action-sort", Sd = "action-toggle-prompt", Td = "action-reset-prompt", Fs = "sassy-saint-", Ad = "search", Id = "sort", kd = "sort-timestamp", Rd = "sort-token-usage", Cd = "private-disclosure", Od = "reasoning-disclosure", Hs = "service-worker", Tn = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", _d = 10, Nd = 30, Pd = "av-prompt", xd = "av-prompt-editable", $d = "size-5 sm:size-4", Dd = 30, Ld = 15, Md = 130, Ud = 16, Fd = 24, Hd = 76;
|
5706
5690
|
let or = null, de = !1;
|
5707
5691
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
5708
5692
|
de && (de = !1, window.location.reload());
|
5709
5693
|
});
|
5710
|
-
function
|
5694
|
+
function Kr() {
|
5711
5695
|
return "serviceWorker" in navigator;
|
5712
5696
|
}
|
5713
|
-
function
|
5697
|
+
function _r() {
|
5714
5698
|
const e = localStorage.getItem(
|
5715
|
-
Fs +
|
5699
|
+
Fs + Hs
|
5716
5700
|
);
|
5717
5701
|
return e === null ? !1 : e === "true";
|
5718
5702
|
}
|
5719
5703
|
function Qc(e) {
|
5720
5704
|
localStorage.setItem(
|
5721
|
-
Fs +
|
5705
|
+
Fs + Hs,
|
5722
5706
|
e.toString()
|
5723
5707
|
);
|
5724
5708
|
}
|
5725
|
-
async function
|
5726
|
-
if (!
|
5709
|
+
async function Ks() {
|
5710
|
+
if (!_r())
|
5727
5711
|
return !1;
|
5728
|
-
if (!
|
5712
|
+
if (!Kr())
|
5729
5713
|
return console.warn("[SW] Service workers not supported"), !1;
|
5730
5714
|
try {
|
5731
5715
|
return or = await navigator.serviceWorker.register("/sw.js", {
|
@@ -5743,7 +5727,7 @@ async function Hs() {
|
|
5743
5727
|
}
|
5744
5728
|
}
|
5745
5729
|
async function Jc() {
|
5746
|
-
if (!
|
5730
|
+
if (!Kr())
|
5747
5731
|
return !1;
|
5748
5732
|
try {
|
5749
5733
|
const e = await navigator.serviceWorker.getRegistration();
|
@@ -5752,19 +5736,19 @@ async function Jc() {
|
|
5752
5736
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
5753
5737
|
}
|
5754
5738
|
}
|
5755
|
-
async function
|
5739
|
+
async function Kd(e) {
|
5756
5740
|
if (Qc(e), e) {
|
5757
5741
|
de = !0;
|
5758
5742
|
try {
|
5759
5743
|
sessionStorage.setItem("sw-toggle-pending", "enabled");
|
5760
5744
|
} catch {
|
5761
5745
|
}
|
5762
|
-
await
|
5746
|
+
await Ks(), navigator.serviceWorker.controller && de && (de = !1, window.location.reload());
|
5763
5747
|
try {
|
5764
5748
|
navigator.serviceWorker.ready.then(() => {
|
5765
|
-
de &&
|
5749
|
+
de && _r() && (de = !1, window.location.reload());
|
5766
5750
|
}), setTimeout(() => {
|
5767
|
-
de &&
|
5751
|
+
de && _r() && (de = !1, window.location.reload());
|
5768
5752
|
}, 3e3);
|
5769
5753
|
} catch {
|
5770
5754
|
}
|
@@ -5774,7 +5758,7 @@ async function qd(e) {
|
|
5774
5758
|
} catch {
|
5775
5759
|
}
|
5776
5760
|
try {
|
5777
|
-
|
5761
|
+
Kr() && await zc();
|
5778
5762
|
} catch (t) {
|
5779
5763
|
console.warn("[SW] Failed to invalidate cache:", t);
|
5780
5764
|
}
|
@@ -5807,7 +5791,7 @@ async function zc() {
|
|
5807
5791
|
function cr() {
|
5808
5792
|
return "unknown";
|
5809
5793
|
}
|
5810
|
-
async function
|
5794
|
+
async function Bd(e = {}) {
|
5811
5795
|
const { urlLimitPerCache: t } = e;
|
5812
5796
|
if (!("caches" in window))
|
5813
5797
|
return { version: cr(), caches: [], totalItems: 0 };
|
@@ -5834,7 +5818,7 @@ async function jd(e = {}) {
|
|
5834
5818
|
return console.warn("[SW] getCacheInfo failed:", r), { version: cr(), caches: [], totalItems: 0 };
|
5835
5819
|
}
|
5836
5820
|
}
|
5837
|
-
const
|
5821
|
+
const Gd = "user", Vd = "assistant", qd = "data", Bs = "OpenAI", Yc = "Anthropic", Xc = "Google", Zc = "Perplexity", jd = Bs, el = "claude-sonnet-4", tl = "claude-3", rl = "gpt-", nl = "o3", sl = "o4", il = "gemini", al = "sonar", ol = {
|
5838
5822
|
[Yc]: [
|
5839
5823
|
el,
|
5840
5824
|
tl
|
@@ -5846,27 +5830,29 @@ const Wd = "user", Qd = "assistant", Jd = "data", Bs = "OpenAI", Yc = "Anthropic
|
|
5846
5830
|
],
|
5847
5831
|
[Xc]: [il],
|
5848
5832
|
[Zc]: [al]
|
5849
|
-
},
|
5833
|
+
}, Wd = "x-callisto-chat-id", Qd = (e) => {
|
5850
5834
|
for (const [t, r] of Object.entries(
|
5851
5835
|
ol
|
5852
5836
|
))
|
5853
5837
|
if (r.some((n) => e.startsWith(n)))
|
5854
5838
|
return t;
|
5855
5839
|
return null;
|
5856
|
-
},
|
5857
|
-
REASONING: cl
|
5858
|
-
}, rh = {
|
5840
|
+
}, Jd = "timestamp", zd = "tokenUsage", L = "Callisto", Yd = {
|
5859
5841
|
TOOL: {
|
5860
5842
|
MEMORIES: "getUserMemories"
|
5843
|
+
},
|
5844
|
+
ADDON: {
|
5845
|
+
ATTACHMENTS: "addon:attachments",
|
5846
|
+
REASONING: "addon:reasoning"
|
5861
5847
|
}
|
5862
5848
|
};
|
5863
|
-
function
|
5849
|
+
function cl(e) {
|
5864
5850
|
return e ? new Set(e) : null;
|
5865
5851
|
}
|
5866
|
-
function
|
5852
|
+
function ll(e, t, r) {
|
5867
5853
|
if (!t || Array.isArray(t) && t.length === 0)
|
5868
5854
|
return !0;
|
5869
|
-
const n = e instanceof Set ? e :
|
5855
|
+
const n = e instanceof Set ? e : cl(e);
|
5870
5856
|
return !n || n.size === 0 ? !1 : typeof t == "string" ? n.has(t) : r?.any === !0 ? t.some((s) => n.has(s)) : t.every((s) => n.has(s));
|
5871
5857
|
}
|
5872
5858
|
const re = {
|
@@ -6057,12 +6043,12 @@ const re = {
|
|
6057
6043
|
schema: re.GET_USAGE,
|
6058
6044
|
method: "usage"
|
6059
6045
|
}
|
6060
|
-
},
|
6046
|
+
}, ul = process.env.PUBLIC_SASSY_API_SERVER_URL, Ut = async ({
|
6061
6047
|
query: e,
|
6062
6048
|
data: t,
|
6063
6049
|
headers: r = {},
|
6064
6050
|
...n
|
6065
|
-
}) => await fetch(`${
|
6051
|
+
}) => await fetch(`${ul}/graphql`, {
|
6066
6052
|
method: "POST",
|
6067
6053
|
credentials: "include",
|
6068
6054
|
headers: {
|
@@ -6075,7 +6061,7 @@ const re = {
|
|
6075
6061
|
variables: t
|
6076
6062
|
}),
|
6077
6063
|
...n
|
6078
|
-
}),
|
6064
|
+
}), dl = async (e) => {
|
6079
6065
|
const t = e.type?.data ? e.type.data(e.params) : e.params;
|
6080
6066
|
try {
|
6081
6067
|
let r;
|
@@ -6105,13 +6091,13 @@ const re = {
|
|
6105
6091
|
} catch (r) {
|
6106
6092
|
return console.error(r), { status: 500, data: [] };
|
6107
6093
|
}
|
6108
|
-
},
|
6094
|
+
}, Xd = async ({
|
6109
6095
|
provider: e,
|
6110
6096
|
accessToken: t,
|
6111
6097
|
username: r
|
6112
6098
|
}) => {
|
6113
6099
|
try {
|
6114
|
-
await
|
6100
|
+
await dl({
|
6115
6101
|
accessToken: t,
|
6116
6102
|
type: Re.SET_USER_PREFERENCES,
|
6117
6103
|
params: {
|
@@ -6121,65 +6107,65 @@ const re = {
|
|
6121
6107
|
});
|
6122
6108
|
} catch {
|
6123
6109
|
}
|
6124
|
-
},
|
6110
|
+
}, Ge = {
|
6125
6111
|
CHATS: "chats",
|
6126
6112
|
CHATS_STATS: "chatsStats",
|
6127
6113
|
CAPABILITIES: "capabilities",
|
6128
6114
|
CHANGELOGS: "changelogs",
|
6129
6115
|
PREFERENCES: "preferences",
|
6130
6116
|
USAGE: "usage"
|
6131
|
-
},
|
6132
|
-
queryKey: [
|
6133
|
-
queryFn: async () => await
|
6117
|
+
}, Zd = () => Ke({
|
6118
|
+
queryKey: [Ge.CAPABILITIES],
|
6119
|
+
queryFn: async () => await Ve({
|
6134
6120
|
type: Re.GET_SERVER_CAPABILITIES,
|
6135
6121
|
noAuth: !0
|
6136
6122
|
})
|
6137
|
-
}),
|
6138
|
-
queryKey: [
|
6139
|
-
queryFn: async () => await
|
6123
|
+
}), eh = () => Ke({
|
6124
|
+
queryKey: [Ge.CHANGELOGS],
|
6125
|
+
queryFn: async () => await Ve({
|
6140
6126
|
type: Re.GET_CHANGELOGS,
|
6141
6127
|
noAuth: !0,
|
6142
6128
|
params: {
|
6143
6129
|
client: !0
|
6144
6130
|
}
|
6145
6131
|
})
|
6146
|
-
}),
|
6132
|
+
}), hl = ({
|
6147
6133
|
user: e,
|
6148
6134
|
getAccessToken: t
|
6149
|
-
}) =>
|
6150
|
-
queryKey: [
|
6151
|
-
queryFn: async () => await
|
6135
|
+
}) => Ke({
|
6136
|
+
queryKey: [Ge.PREFERENCES, e],
|
6137
|
+
queryFn: async () => await Ve({
|
6152
6138
|
params: {
|
6153
6139
|
user: e
|
6154
6140
|
},
|
6155
6141
|
type: Re.GET_USER_PREFERENCES,
|
6156
6142
|
getAccessToken: t
|
6157
6143
|
})
|
6158
|
-
}),
|
6144
|
+
}), th = ({
|
6159
6145
|
user: e,
|
6160
6146
|
getAccessToken: t
|
6161
|
-
}) =>
|
6162
|
-
queryKey: [
|
6163
|
-
queryFn: async () => await
|
6147
|
+
}) => Ke({
|
6148
|
+
queryKey: [Ge.CHATS_STATS, e],
|
6149
|
+
queryFn: async () => await Ve({
|
6164
6150
|
params: {
|
6165
6151
|
user: e
|
6166
6152
|
},
|
6167
6153
|
type: Re.GET_CHATS_STATS,
|
6168
6154
|
getAccessToken: t
|
6169
6155
|
})
|
6170
|
-
}),
|
6156
|
+
}), rh = ({
|
6171
6157
|
user: e,
|
6172
6158
|
searchString: t,
|
6173
6159
|
sortDirection: r,
|
6174
6160
|
sortedCell: n,
|
6175
6161
|
getAccessToken: s,
|
6176
6162
|
enabled: i = !0
|
6177
|
-
}) =>
|
6163
|
+
}) => Ke({
|
6178
6164
|
enabled: i,
|
6179
6165
|
staleTime: 60 * 1e3,
|
6180
6166
|
// 1 minute
|
6181
|
-
queryKey: [
|
6182
|
-
queryFn: async () => await
|
6167
|
+
queryKey: [Ge.CHATS, e, t, r, n],
|
6168
|
+
queryFn: async () => await Ve({
|
6183
6169
|
params: {
|
6184
6170
|
user: e,
|
6185
6171
|
searchString: t,
|
@@ -6191,16 +6177,16 @@ const re = {
|
|
6191
6177
|
type: Re.GET_CHATS,
|
6192
6178
|
getAccessToken: s
|
6193
6179
|
})
|
6194
|
-
}),
|
6180
|
+
}), nh = ({
|
6195
6181
|
user: e,
|
6196
6182
|
month: t,
|
6197
6183
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
6198
6184
|
getAccessToken: n,
|
6199
6185
|
enabled: s = !0
|
6200
|
-
}) =>
|
6186
|
+
}) => Ke({
|
6201
6187
|
enabled: s,
|
6202
|
-
queryKey: [
|
6203
|
-
queryFn: async () => await
|
6188
|
+
queryKey: [Ge.USAGE, e, t, r],
|
6189
|
+
queryFn: async () => await Ve({
|
6204
6190
|
params: {
|
6205
6191
|
user: e,
|
6206
6192
|
month: t,
|
@@ -6209,7 +6195,7 @@ const re = {
|
|
6209
6195
|
type: Re.GET_USAGE,
|
6210
6196
|
getAccessToken: n
|
6211
6197
|
})
|
6212
|
-
}),
|
6198
|
+
}), Ve = async ({
|
6213
6199
|
params: e,
|
6214
6200
|
type: t,
|
6215
6201
|
noAuth: r,
|
@@ -6251,7 +6237,7 @@ const re = {
|
|
6251
6237
|
capabilities: /* @__PURE__ */ new Set(),
|
6252
6238
|
version: null,
|
6253
6239
|
status: "idle"
|
6254
|
-
},
|
6240
|
+
}, fl = ({
|
6255
6241
|
user: e,
|
6256
6242
|
getAccessToken: t,
|
6257
6243
|
children: r
|
@@ -6280,7 +6266,7 @@ const re = {
|
|
6280
6266
|
Z(() => {
|
6281
6267
|
n.status === "idle" && o();
|
6282
6268
|
}, [o, n.status]);
|
6283
|
-
const a =
|
6269
|
+
const a = hl({ user: e, getAccessToken: t });
|
6284
6270
|
Z(() => {
|
6285
6271
|
a.isLoading && n.status === "idle" && s((l) => ({ ...l, status: "loading" }));
|
6286
6272
|
}, [a.isLoading, n.status]), Z(() => {
|
@@ -6336,7 +6322,7 @@ const re = {
|
|
6336
6322
|
}, [i]), u = kt(
|
6337
6323
|
() => ({
|
6338
6324
|
...n,
|
6339
|
-
check: (l, h) => n.status !== "ready" ? !1 :
|
6325
|
+
check: (l, h) => n.status !== "ready" ? !1 : ll(n.capabilities, l, { any: h?.any }),
|
6340
6326
|
loadFromProfile: c,
|
6341
6327
|
reset: d
|
6342
6328
|
}),
|
@@ -6344,14 +6330,14 @@ const re = {
|
|
6344
6330
|
);
|
6345
6331
|
return /* @__PURE__ */ m(Gs.Provider, { value: u, children: r });
|
6346
6332
|
};
|
6347
|
-
function
|
6348
|
-
const e =
|
6333
|
+
function sh() {
|
6334
|
+
const e = Kt(Gs);
|
6349
6335
|
if (!e)
|
6350
6336
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
6351
6337
|
return e;
|
6352
6338
|
}
|
6353
6339
|
const In = (e) => Number.isFinite(e) ? e : 0;
|
6354
|
-
function
|
6340
|
+
function yl(e) {
|
6355
6341
|
return {
|
6356
6342
|
days: Math.trunc(e / 864e5),
|
6357
6343
|
hours: Math.trunc(e / 36e5 % 24),
|
@@ -6362,7 +6348,7 @@ function ml(e) {
|
|
6362
6348
|
nanoseconds: Math.trunc(In(e * 1e6) % 1e3)
|
6363
6349
|
};
|
6364
6350
|
}
|
6365
|
-
function
|
6351
|
+
function ml(e) {
|
6366
6352
|
return {
|
6367
6353
|
days: e / 86400000n,
|
6368
6354
|
hours: e / 3600000n % 24n,
|
@@ -6373,20 +6359,20 @@ function pl(e) {
|
|
6373
6359
|
nanoseconds: 0n
|
6374
6360
|
};
|
6375
6361
|
}
|
6376
|
-
function
|
6362
|
+
function pl(e) {
|
6377
6363
|
switch (typeof e) {
|
6378
6364
|
case "number": {
|
6379
6365
|
if (Number.isFinite(e))
|
6380
|
-
return
|
6366
|
+
return yl(e);
|
6381
6367
|
break;
|
6382
6368
|
}
|
6383
6369
|
case "bigint":
|
6384
|
-
return
|
6370
|
+
return ml(e);
|
6385
6371
|
}
|
6386
6372
|
throw new TypeError("Expected a finite number or bigint");
|
6387
6373
|
}
|
6388
|
-
const
|
6389
|
-
function
|
6374
|
+
const gl = (e) => e === 0 || e === 0n, bl = (e, t) => t === 1 || t === 1n ? e : `${e}s`, wl = 1e-7, El = 24n * 60n * 60n * 1000n;
|
6375
|
+
function vl(e, t) {
|
6390
6376
|
const r = typeof e == "bigint";
|
6391
6377
|
if (!r && !Number.isFinite(e))
|
6392
6378
|
throw new TypeError("Expected a finite number or bigint");
|
@@ -6395,18 +6381,18 @@ function Sl(e, t) {
|
|
6395
6381
|
e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
|
6396
6382
|
let s = [];
|
6397
6383
|
const i = (u, l) => {
|
6398
|
-
const h = Math.floor(u * 10 ** l +
|
6384
|
+
const h = Math.floor(u * 10 ** l + wl);
|
6399
6385
|
return (Math.round(h) / 10 ** l).toFixed(l);
|
6400
6386
|
}, o = (u, l, h, f) => {
|
6401
|
-
if (!((s.length === 0 || !t.colonNotation) &&
|
6387
|
+
if (!((s.length === 0 || !t.colonNotation) && gl(u) && !(t.colonNotation && h === "m"))) {
|
6402
6388
|
if (f ??= String(u), t.colonNotation) {
|
6403
6389
|
const y = f.includes(".") ? f.split(".")[0].length : f.length, p = s.length > 0 ? 2 : 1;
|
6404
6390
|
f = "0".repeat(Math.max(0, p - y)) + f;
|
6405
6391
|
} else
|
6406
|
-
f += t.verbose ? " " +
|
6392
|
+
f += t.verbose ? " " + bl(l, u) : h;
|
6407
6393
|
s.push(f);
|
6408
6394
|
}
|
6409
|
-
}, a =
|
6395
|
+
}, a = pl(e), c = BigInt(a.days);
|
6410
6396
|
if (t.hideYearAndDays ? o(BigInt(c) * 24n + BigInt(a.hours), "hour", "h") : (t.hideYear ? o(c, "day", "d") : (o(c / 365n, "year", "y"), o(c % 365n, "day", "d")), o(Number(a.hours), "hour", "h")), o(Number(a.minutes), "minute", "m"), !t.hideSeconds)
|
6411
6397
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
6412
6398
|
const u = Number(a.seconds), l = Number(a.milliseconds), h = Number(a.microseconds), f = Number(a.nanoseconds);
|
@@ -6422,7 +6408,7 @@ function Sl(e, t) {
|
|
6422
6408
|
);
|
6423
6409
|
}
|
6424
6410
|
} else {
|
6425
|
-
const u = (r ? Number(e %
|
6411
|
+
const u = (r ? Number(e % El) : e) / 1e3 % 60, l = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, h = i(u, l), f = t.keepDecimalsOnWholeSeconds ? h : h.replace(/\.0+$/, "");
|
6426
6412
|
o(Number.parseFloat(f), "second", "s", f);
|
6427
6413
|
}
|
6428
6414
|
if (s.length === 0)
|
@@ -6438,17 +6424,17 @@ const Vs = process.env.NODE_ENV === "production", Br = !Vs, qs = Br ? "gizmette.
|
|
6438
6424
|
min: s,
|
6439
6425
|
sec: i
|
6440
6426
|
};
|
6441
|
-
},
|
6427
|
+
}, Sl = (e) => {
|
6442
6428
|
if (!e && e !== 0)
|
6443
6429
|
return "N/A";
|
6444
6430
|
const t = Gr(e, !1);
|
6445
6431
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
6446
|
-
},
|
6432
|
+
}, Tl = (e) => {
|
6447
6433
|
if (!e && e !== 0)
|
6448
6434
|
return "N/A";
|
6449
6435
|
const t = Gr(e, !0);
|
6450
6436
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
6451
|
-
},
|
6437
|
+
}, Al = async () => {
|
6452
6438
|
const e = {
|
6453
6439
|
/**
|
6454
6440
|
* A boolean value that indicates the application would like to receive the
|
@@ -6491,18 +6477,18 @@ const Vs = process.env.NODE_ENV === "production", Br = !Vs, qs = Br ? "gizmette.
|
|
6491
6477
|
e
|
6492
6478
|
);
|
6493
6479
|
});
|
6494
|
-
},
|
6480
|
+
}, Il = (e) => window.btoa(
|
6495
6481
|
encodeURIComponent(e).replace(
|
6496
6482
|
/%([0-9A-F]{2})/g,
|
6497
6483
|
function(r, n) {
|
6498
6484
|
return String.fromCharCode(+`0x${n}`);
|
6499
6485
|
}
|
6500
6486
|
)
|
6501
|
-
),
|
6487
|
+
), kl = (e) => decodeURIComponent(
|
6502
6488
|
window.atob(e).split("").map(function(t) {
|
6503
6489
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
6504
6490
|
}).join("")
|
6505
|
-
),
|
6491
|
+
), Rl = (e, t, r) => t ? Object.keys(t).map((n) => /* @__PURE__ */ m("dl", { className: "my-0", children: /* @__PURE__ */ Y("div", { className: "flex items-center justify-between", children: [
|
6506
6492
|
/* @__PURE__ */ m(
|
6507
6493
|
"dt",
|
6508
6494
|
{
|
@@ -6524,7 +6510,7 @@ const Vs = process.env.NODE_ENV === "production", Br = !Vs, qs = Br ? "gizmette.
|
|
6524
6510
|
}
|
6525
6511
|
)
|
6526
6512
|
] }) }, `${e}-${n}`)) : null;
|
6527
|
-
function
|
6513
|
+
function Cl({
|
6528
6514
|
data: e,
|
6529
6515
|
formatter: t = (r) => r
|
6530
6516
|
}) {
|
@@ -6536,12 +6522,12 @@ function _l({
|
|
6536
6522
|
);
|
6537
6523
|
return t(n ? n / r.length : 0);
|
6538
6524
|
}
|
6539
|
-
const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e,
|
6525
|
+
const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, _l = new Intl.NumberFormat("en", {
|
6540
6526
|
style: "decimal",
|
6541
6527
|
signDisplay: "never",
|
6542
6528
|
minimumFractionDigits: 0,
|
6543
6529
|
maximumFractionDigits: 0
|
6544
|
-
}),
|
6530
|
+
}), Nl = (e) => e > 0 ? vl(e, {
|
6545
6531
|
secondsDecimalDigits: 2,
|
6546
6532
|
unitCount: 2
|
6547
6533
|
}) : "N/A", js = ({
|
@@ -6555,18 +6541,24 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6555
6541
|
t
|
6556
6542
|
), Ws = ({
|
6557
6543
|
extraClass: e
|
6558
|
-
} = {}) => g(
|
6544
|
+
} = {}) => g(
|
6545
|
+
"flex flex-col",
|
6546
|
+
"w-full md:mx-auto md:max-w-4xl",
|
6547
|
+
"sm:px-5 px-2",
|
6548
|
+
"transition-all ease-in-out duration-500",
|
6549
|
+
e
|
6550
|
+
), Pl = (e, t) => t === 1 ? e : `${e}s`, xl = (e, t) => {
|
6559
6551
|
let r;
|
6560
6552
|
return (...n) => {
|
6561
6553
|
window.clearTimeout(r), r = window.setTimeout(() => e(...n), t);
|
6562
6554
|
};
|
6563
|
-
}, Qs = () => !!window?.__VERSINI_CALLISTO_TAURI__, Js = () => window.innerWidth < 403,
|
6555
|
+
}, Qs = () => !!window?.__VERSINI_CALLISTO_TAURI__, Js = () => window.innerWidth < 403, $l = () => {
|
6564
6556
|
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Js(), n = navigator.maxTouchPoints > 1;
|
6565
6557
|
return e && t && r && n;
|
6566
|
-
},
|
6558
|
+
}, Dl = (e) => {
|
6567
6559
|
const t = e.replace(/([A-Z])/g, " $1");
|
6568
6560
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
6569
|
-
},
|
6561
|
+
}, Ll = ({
|
6570
6562
|
autoClose: e = 3e3,
|
6571
6563
|
containerId: t,
|
6572
6564
|
position: r = "top-center",
|
@@ -6590,7 +6582,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6590
6582
|
theme: c,
|
6591
6583
|
transition: d,
|
6592
6584
|
icon: u
|
6593
|
-
}),
|
6585
|
+
}), ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: qs, convertCamelCaseToReadable: Dl, convertDDToDMS: Gr, convertLatitudeToDMS: Sl, convertLongitudeToDMS: Tl, debounce: xl, durationFormatter: Nl, extractAverage: Cl, getCurrentGeoLocation: Al, getLayoutPaddingClass: Ws, getMessageContaintWrapperClass: js, isDev: Br, isLastMessageFromRole: Ol, isProbablyMobile: Js, isProbablyiPhone: $l, isProd: Vs, isTauri: Qs, numberFormatter: _l, obfuscate: Il, pluralize: Pl, renderDataAsList: Rl, toastOptions: Ll, unObfuscate: kl }, Symbol.toStringTag, { value: "Module" })), kn = "av-button", Wt = "icon", Vr = "button", Nr = "link", Ml = ({
|
6594
6586
|
type: e,
|
6595
6587
|
size: t,
|
6596
6588
|
labelRight: r,
|
@@ -6626,7 +6618,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6626
6618
|
"h-12": t === "large" && i && (r || n)
|
6627
6619
|
});
|
6628
6620
|
}
|
6629
|
-
},
|
6621
|
+
}, Ul = ({
|
6630
6622
|
type: e,
|
6631
6623
|
size: t,
|
6632
6624
|
labelRight: r,
|
@@ -6649,7 +6641,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6649
6641
|
[o]: t === "large" && (r || n)
|
6650
6642
|
});
|
6651
6643
|
}
|
6652
|
-
},
|
6644
|
+
}, Fl = ({
|
6653
6645
|
mode: e,
|
6654
6646
|
noBackground: t,
|
6655
6647
|
truncate: r,
|
@@ -6715,13 +6707,13 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6715
6707
|
if (r === "selected")
|
6716
6708
|
return "bg-action-selected-dark";
|
6717
6709
|
}
|
6718
|
-
},
|
6710
|
+
}, Kl = ({
|
6719
6711
|
radius: e
|
6720
6712
|
}) => g({
|
6721
6713
|
"rounded-full": e === "large",
|
6722
6714
|
"rounded-md": e === "medium",
|
6723
6715
|
"rounded-xs": e === "small"
|
6724
|
-
}),
|
6716
|
+
}), Bl = ({
|
6725
6717
|
mode: e,
|
6726
6718
|
disabled: t,
|
6727
6719
|
variant: r
|
@@ -6759,7 +6751,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6759
6751
|
});
|
6760
6752
|
if (r === "selected")
|
6761
6753
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
6762
|
-
},
|
6754
|
+
}, Gl = ({
|
6763
6755
|
mode: e,
|
6764
6756
|
disabled: t,
|
6765
6757
|
variant: r
|
@@ -6797,7 +6789,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6797
6789
|
});
|
6798
6790
|
if (r === "selected")
|
6799
6791
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
6800
|
-
},
|
6792
|
+
}, Vl = ({
|
6801
6793
|
mode: e,
|
6802
6794
|
noBorder: t,
|
6803
6795
|
variant: r
|
@@ -6827,14 +6819,14 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6827
6819
|
});
|
6828
6820
|
if (r === "selected")
|
6829
6821
|
return "border border-border-selected-dark";
|
6830
|
-
},
|
6822
|
+
}, ql = ({
|
6831
6823
|
focusMode: e
|
6832
6824
|
}) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
6833
6825
|
"focus:outline-focus-dark": e === "dark",
|
6834
6826
|
"focus:outline-focus-light": e === "light",
|
6835
6827
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
6836
6828
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
6837
|
-
}),
|
6829
|
+
}), jl = ({
|
6838
6830
|
mode: e,
|
6839
6831
|
raw: t,
|
6840
6832
|
iconClassName: r,
|
@@ -6861,7 +6853,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6861
6853
|
} : n === "selected" && (s = {
|
6862
6854
|
"text-copy-lighter": !0
|
6863
6855
|
}), g(s, r);
|
6864
|
-
},
|
6856
|
+
}, Wl = ({
|
6865
6857
|
animated: e
|
6866
6858
|
}) => g({
|
6867
6859
|
"transition-opacity duration-300 ease-in-out": e
|
@@ -6885,15 +6877,15 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6885
6877
|
animated: b
|
6886
6878
|
}) => (h || (h = "primary"), r ? g(kn, t) : g(
|
6887
6879
|
kn,
|
6888
|
-
|
6880
|
+
Fl({
|
6889
6881
|
mode: n,
|
6890
6882
|
variant: h,
|
6891
6883
|
noBackground: l,
|
6892
6884
|
truncate: f
|
6893
6885
|
}),
|
6894
6886
|
Hl({ mode: n, noBackground: l, variant: h }),
|
6895
|
-
|
6896
|
-
|
6887
|
+
Kl({ radius: p }),
|
6888
|
+
Ml({
|
6897
6889
|
type: e,
|
6898
6890
|
size: a,
|
6899
6891
|
labelRight: d,
|
@@ -6901,11 +6893,11 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6901
6893
|
align: y,
|
6902
6894
|
animated: b
|
6903
6895
|
}),
|
6904
|
-
|
6905
|
-
|
6906
|
-
|
6896
|
+
Ul({ type: e, size: a, labelRight: d, labelLeft: u }),
|
6897
|
+
Vl({ mode: n, variant: h, noBorder: c }),
|
6898
|
+
ql({ focusMode: s }),
|
6899
|
+
Bl({ mode: n, variant: h, disabled: i }),
|
6907
6900
|
Gl({ mode: n, variant: h, disabled: i }),
|
6908
|
-
Vl({ mode: n, variant: h, disabled: i }),
|
6909
6901
|
{
|
6910
6902
|
"w-full": o,
|
6911
6903
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
@@ -6914,7 +6906,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6914
6906
|
"transition-[width] duration-300 ease-in": e === Wt && b
|
6915
6907
|
}),
|
6916
6908
|
t
|
6917
|
-
)),
|
6909
|
+
)), Ql = (e, t, r) => {
|
6918
6910
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
6919
6911
|
}, qr = me.forwardRef((e, t) => {
|
6920
6912
|
const { onClick: r, noInternalClick: n = !1, ...s } = e;
|
@@ -6923,7 +6915,7 @@ const Ol = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
6923
6915
|
{
|
6924
6916
|
ref: t,
|
6925
6917
|
onClick: (i) => {
|
6926
|
-
|
6918
|
+
Ql(i, n, r);
|
6927
6919
|
},
|
6928
6920
|
...s
|
6929
6921
|
}
|
@@ -6973,7 +6965,7 @@ const Ys = me.forwardRef(
|
|
6973
6965
|
}
|
6974
6966
|
);
|
6975
6967
|
Ys.displayName = "Button";
|
6976
|
-
function
|
6968
|
+
function Jl() {
|
6977
6969
|
const e = ee(!1);
|
6978
6970
|
return Z(() => (e.current = !0, () => {
|
6979
6971
|
e.current = !1;
|
@@ -6987,7 +6979,7 @@ function Xs(e) {
|
|
6987
6979
|
});
|
6988
6980
|
}, [...e]);
|
6989
6981
|
}
|
6990
|
-
const
|
6982
|
+
const zl = {
|
6991
6983
|
x: 0,
|
6992
6984
|
y: 0,
|
6993
6985
|
width: 0,
|
@@ -6998,7 +6990,7 @@ const Yl = {
|
|
6998
6990
|
right: 0
|
6999
6991
|
};
|
7000
6992
|
function At(e) {
|
7001
|
-
const t =
|
6993
|
+
const t = Jl(), r = ee(0), n = ee(null), [s, i] = fe(zl), o = kt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((a) => {
|
7002
6994
|
const c = a[0];
|
7003
6995
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
7004
6996
|
n.current && t() && i(c.contentRect);
|
@@ -7026,14 +7018,14 @@ const wt = {
|
|
7026
7018
|
// w-8
|
7027
7019
|
large: 48
|
7028
7020
|
// w-12
|
7029
|
-
},
|
7021
|
+
}, Yl = {
|
7030
7022
|
small: 16,
|
7031
7023
|
// px-2 x 2
|
7032
7024
|
medium: 24,
|
7033
7025
|
// px-3 x 2
|
7034
7026
|
large: 32
|
7035
7027
|
// px-4 x 2
|
7036
|
-
},
|
7028
|
+
}, Xl = 2, Zl = 300, Ft = me.forwardRef(
|
7037
7029
|
({
|
7038
7030
|
children: e,
|
7039
7031
|
disabled: t = !1,
|
@@ -7057,7 +7049,7 @@ const wt = {
|
|
7057
7049
|
animated: v = !1,
|
7058
7050
|
...I
|
7059
7051
|
}, N) => {
|
7060
|
-
const
|
7052
|
+
const K = zs({
|
7061
7053
|
type: Wt,
|
7062
7054
|
mode: r,
|
7063
7055
|
focusMode: n,
|
@@ -7074,21 +7066,21 @@ const wt = {
|
|
7074
7066
|
radius: b,
|
7075
7067
|
variant: E,
|
7076
7068
|
animated: v
|
7077
|
-
}), x =
|
7069
|
+
}), x = jl({ mode: r, raw: a, iconClassName: A, variant: E }), O = Wl({ animated: v }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, _] = At(), [T, F] = At(), [ge, Ce] = At(), k = ee(0), $ = ee(null), R = ee(null), be = Xs([N, $]);
|
7078
7070
|
return Rt(() => {
|
7079
|
-
ge && ge.current && v && (k.current = Ce.width +
|
7071
|
+
ge && ge.current && v && (k.current = Ce.width + Yl[l] + (c ? 0 : Xl), $.current && !$.current.style.width && ($.current.style.width = `${wt[l]}px`));
|
7080
7072
|
}, [Ce, ge, l, c, v]), Rt(() => {
|
7081
7073
|
if ($ && $.current && v) {
|
7082
7074
|
let we = wt[l];
|
7083
|
-
h && w &&
|
7075
|
+
h && w && _.width > 0 ? we = _.width + k.current : f && T && F.width > 0 && (we = F.width + k.current), R.current && clearTimeout(R.current), we !== parseInt($.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), $.current.style.width = `${we}px`, we > wt[l] && (R.current = setTimeout(() => {
|
7084
7076
|
w.current && h && (w.current.style.opacity = "1"), T.current && f && (T.current.style.opacity = "1"), R.current = null;
|
7085
|
-
},
|
7077
|
+
}, Zl * 0.8))), we === wt[l] && (w.current && (w.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"));
|
7086
7078
|
}
|
7087
7079
|
}, [
|
7088
|
-
|
7080
|
+
_,
|
7089
7081
|
h,
|
7090
7082
|
w,
|
7091
|
-
|
7083
|
+
F,
|
7092
7084
|
f,
|
7093
7085
|
T,
|
7094
7086
|
l,
|
@@ -7099,7 +7091,7 @@ const wt = {
|
|
7099
7091
|
qr,
|
7100
7092
|
{
|
7101
7093
|
ref: be,
|
7102
|
-
className:
|
7094
|
+
className: K,
|
7103
7095
|
disabled: t,
|
7104
7096
|
type: o,
|
7105
7097
|
"aria-label": d || u,
|
@@ -7110,7 +7102,7 @@ const wt = {
|
|
7110
7102
|
{
|
7111
7103
|
label: f,
|
7112
7104
|
labelRef: T,
|
7113
|
-
labelClass:
|
7105
|
+
labelClass: O,
|
7114
7106
|
labelInnerClass: "pr-2",
|
7115
7107
|
initiallyHidden: v
|
7116
7108
|
}
|
@@ -7121,7 +7113,7 @@ const wt = {
|
|
7121
7113
|
{
|
7122
7114
|
label: h,
|
7123
7115
|
labelRef: w,
|
7124
|
-
labelClass:
|
7116
|
+
labelClass: O,
|
7125
7117
|
labelInnerClass: "pl-2",
|
7126
7118
|
initiallyHidden: v
|
7127
7119
|
}
|
@@ -7159,7 +7151,7 @@ try {
|
|
7159
7151
|
});
|
7160
7152
|
} catch {
|
7161
7153
|
}
|
7162
|
-
const
|
7154
|
+
const eu = me.forwardRef(
|
7163
7155
|
({
|
7164
7156
|
children: e,
|
7165
7157
|
mode: t = "system",
|
@@ -7199,8 +7191,8 @@ const tu = me.forwardRef(
|
|
7199
7191
|
) });
|
7200
7192
|
}
|
7201
7193
|
);
|
7202
|
-
|
7203
|
-
const It = "av-card",
|
7194
|
+
eu.displayName = "ButtonSort";
|
7195
|
+
const It = "av-card", tu = ({
|
7204
7196
|
className: e,
|
7205
7197
|
headerClassName: t,
|
7206
7198
|
bodyClassName: r,
|
@@ -7240,7 +7232,7 @@ const It = "av-card", ru = ({
|
|
7240
7232
|
footer: u
|
7241
7233
|
};
|
7242
7234
|
};
|
7243
|
-
function
|
7235
|
+
function ru({
|
7244
7236
|
id: e,
|
7245
7237
|
content: t,
|
7246
7238
|
userAriaLabelledby: r,
|
@@ -7248,7 +7240,7 @@ function nu({
|
|
7248
7240
|
}) {
|
7249
7241
|
return typeof t == "string" ? /* @__PURE__ */ m("h2", { id: e, className: n, children: t }) : r ? /* @__PURE__ */ m("div", { className: n, children: t }) : t ? /* @__PURE__ */ m("div", { className: n, id: e, children: t }) : null;
|
7250
7242
|
}
|
7251
|
-
const
|
7243
|
+
const nu = ({
|
7252
7244
|
header: e,
|
7253
7245
|
headerClassName: t,
|
7254
7246
|
footer: r,
|
@@ -7263,7 +7255,7 @@ const su = ({
|
|
7263
7255
|
...l
|
7264
7256
|
}) => {
|
7265
7257
|
let h = null, f = null;
|
7266
|
-
const y = typeof e == "string", p = Zs(It), b =
|
7258
|
+
const y = typeof e == "string", p = Zs(It), b = tu({
|
7267
7259
|
className: i,
|
7268
7260
|
headerClassName: t,
|
7269
7261
|
bodyClassName: o,
|
@@ -7282,7 +7274,7 @@ const su = ({
|
|
7282
7274
|
...l,
|
7283
7275
|
children: [
|
7284
7276
|
/* @__PURE__ */ m(
|
7285
|
-
|
7277
|
+
ru,
|
7286
7278
|
{
|
7287
7279
|
...h && { id: h },
|
7288
7280
|
content: e,
|
@@ -7352,7 +7344,7 @@ try {
|
|
7352
7344
|
});
|
7353
7345
|
} catch {
|
7354
7346
|
}
|
7355
|
-
const
|
7347
|
+
const su = ({
|
7356
7348
|
className: e,
|
7357
7349
|
viewBox: t,
|
7358
7350
|
title: r,
|
@@ -7369,7 +7361,7 @@ const iu = ({
|
|
7369
7361
|
...s,
|
7370
7362
|
children: /* @__PURE__ */ m("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
|
7371
7363
|
}
|
7372
|
-
),
|
7364
|
+
), iu = ({
|
7373
7365
|
className: e,
|
7374
7366
|
viewBox: t,
|
7375
7367
|
title: r,
|
@@ -7395,7 +7387,7 @@ const iu = ({
|
|
7395
7387
|
/* @__PURE__ */ m("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
|
7396
7388
|
]
|
7397
7389
|
}
|
7398
|
-
),
|
7390
|
+
), au = ({
|
7399
7391
|
className: e,
|
7400
7392
|
viewBox: t,
|
7401
7393
|
title: r,
|
@@ -7431,7 +7423,7 @@ const iu = ({
|
|
7431
7423
|
]
|
7432
7424
|
}
|
7433
7425
|
);
|
7434
|
-
},
|
7426
|
+
}, ou = ({
|
7435
7427
|
className: e,
|
7436
7428
|
viewBox: t,
|
7437
7429
|
title: r,
|
@@ -7471,42 +7463,10 @@ try {
|
|
7471
7463
|
});
|
7472
7464
|
} catch {
|
7473
7465
|
}
|
7474
|
-
const
|
7475
|
-
children: e,
|
7476
|
-
className: t,
|
7477
|
-
raw: r = !1,
|
7478
|
-
noMargin: n = !1,
|
7479
|
-
noPadding: s = !1,
|
7480
|
-
...i
|
7481
|
-
}) => {
|
7482
|
-
const o = g(
|
7483
|
-
lu,
|
7484
|
-
{
|
7485
|
-
"mt-2 sm:mt-3": !r && !n,
|
7486
|
-
"p-2": !r && !s,
|
7487
|
-
"flex w-full flex-col md:mx-auto md:max-w-4xl": !r
|
7488
|
-
},
|
7489
|
-
t
|
7490
|
-
);
|
7491
|
-
return /* @__PURE__ */ m("main", { className: o, ...i, children: e });
|
7492
|
-
};
|
7493
|
-
/*!
|
7494
|
-
@versini/ui-main v5.0.1
|
7495
|
-
© 2025 gizmette.com
|
7496
|
-
*/
|
7497
|
-
try {
|
7498
|
-
window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
|
7499
|
-
version: "5.0.1",
|
7500
|
-
buildTime: "09/01/2025 04:02 PM EDT",
|
7501
|
-
homepage: "https://github.com/aversini/ui-components",
|
7502
|
-
license: "MIT"
|
7503
|
-
});
|
7504
|
-
} catch {
|
7505
|
-
}
|
7506
|
-
const du = "av-flexgrid", Et = "av-flexgrid-item", Kt = 0.25, Pr = me.createContext({
|
7466
|
+
const cu = "av-flexgrid", Et = "av-flexgrid-item", Ht = 0.25, Pr = me.createContext({
|
7507
7467
|
columnGap: 0,
|
7508
7468
|
rowGap: 0
|
7509
|
-
}),
|
7469
|
+
}), lu = ({
|
7510
7470
|
children: e,
|
7511
7471
|
className: t,
|
7512
7472
|
columnGap: r = 1,
|
@@ -7529,10 +7489,10 @@ const du = "av-flexgrid", Et = "av-flexgrid-item", Kt = 0.25, Pr = me.createCont
|
|
7529
7489
|
* by the columnGap and rowGap that will be applied
|
7530
7490
|
* to all FlexgridItems (see context and paddings).
|
7531
7491
|
*/
|
7532
|
-
marginLeft: r * -1 *
|
7533
|
-
marginTop: n * -1 *
|
7492
|
+
marginLeft: r * -1 * Ht + "rem",
|
7493
|
+
marginTop: n * -1 * Ht + "rem"
|
7534
7494
|
}, l = g(
|
7535
|
-
|
7495
|
+
cu,
|
7536
7496
|
"box-border flex flex-wrap"
|
7537
7497
|
), h = { columnGap: r, rowGap: n };
|
7538
7498
|
return t ? /* @__PURE__ */ m("div", { className: t, children: /* @__PURE__ */ m("div", { className: l, style: u, ...d, children: /* @__PURE__ */ m(Pr.Provider, { value: h, children: e }) }) }) : /* @__PURE__ */ m("div", { className: l, style: u, ...d, children: /* @__PURE__ */ m(Pr.Provider, { value: h, children: e }) });
|
@@ -7609,7 +7569,7 @@ const du = "av-flexgrid", Et = "av-flexgrid-item", Kt = 0.25, Pr = me.createCont
|
|
7609
7569
|
"lg:basis-full": e === 12 && t === "lg",
|
7610
7570
|
"xl:basis-full": e === 12 && t === "xl",
|
7611
7571
|
"2xl:basis-full": e === 12 && t === "2xl"
|
7612
|
-
}),
|
7572
|
+
}), uu = ({
|
7613
7573
|
className: e,
|
7614
7574
|
span: t
|
7615
7575
|
}) => {
|
@@ -7638,10 +7598,10 @@ const du = "av-flexgrid", Et = "av-flexgrid-item", Kt = 0.25, Pr = me.createCont
|
|
7638
7598
|
span: r,
|
7639
7599
|
...n
|
7640
7600
|
}) => {
|
7641
|
-
const { columnGap: s, rowGap: i } =
|
7642
|
-
paddingLeft: s *
|
7643
|
-
paddingTop: i *
|
7644
|
-
}, a =
|
7601
|
+
const { columnGap: s, rowGap: i } = Kt(Pr), o = {
|
7602
|
+
paddingLeft: s * Ht + "rem",
|
7603
|
+
paddingTop: i * Ht + "rem"
|
7604
|
+
}, a = uu({
|
7645
7605
|
className: t,
|
7646
7606
|
span: r
|
7647
7607
|
});
|
@@ -7660,7 +7620,7 @@ try {
|
|
7660
7620
|
});
|
7661
7621
|
} catch {
|
7662
7622
|
}
|
7663
|
-
const ei = "SET_ANNOUNCEMENT", ti = "CLEAR_ANNOUNCEMENT",
|
7623
|
+
const ei = "SET_ANNOUNCEMENT", ti = "CLEAR_ANNOUNCEMENT", du = {
|
7664
7624
|
alert: null,
|
7665
7625
|
alertdialog: null,
|
7666
7626
|
log: "polite",
|
@@ -7668,7 +7628,7 @@ const ei = "SET_ANNOUNCEMENT", ti = "CLEAR_ANNOUNCEMENT", yu = {
|
|
7668
7628
|
progressbar: null,
|
7669
7629
|
status: "polite",
|
7670
7630
|
timer: "assertive"
|
7671
|
-
},
|
7631
|
+
}, hu = (e, t) => {
|
7672
7632
|
switch (t?.type) {
|
7673
7633
|
case ei:
|
7674
7634
|
return {
|
@@ -7683,7 +7643,7 @@ const ei = "SET_ANNOUNCEMENT", ti = "CLEAR_ANNOUNCEMENT", yu = {
|
|
7683
7643
|
default:
|
7684
7644
|
return e;
|
7685
7645
|
}
|
7686
|
-
},
|
7646
|
+
}, fu = ({
|
7687
7647
|
onAnnouncementClear: e,
|
7688
7648
|
dispatch: t
|
7689
7649
|
}) => {
|
@@ -7701,13 +7661,13 @@ const ei = "SET_ANNOUNCEMENT", ti = "CLEAR_ANNOUNCEMENT", yu = {
|
|
7701
7661
|
type: ei,
|
7702
7662
|
payload: e
|
7703
7663
|
}), t && (r.current = setTimeout(
|
7704
|
-
() =>
|
7664
|
+
() => fu({
|
7705
7665
|
onAnnouncementClear: n,
|
7706
7666
|
dispatch: s
|
7707
7667
|
}),
|
7708
7668
|
t
|
7709
7669
|
));
|
7710
|
-
},
|
7670
|
+
}, yu = ({
|
7711
7671
|
children: e,
|
7712
7672
|
announcementTimeoutRef: t,
|
7713
7673
|
announcementDelay: r,
|
@@ -7741,12 +7701,12 @@ function ri({
|
|
7741
7701
|
visible: a,
|
7742
7702
|
...c
|
7743
7703
|
}) {
|
7744
|
-
const d = ee(null), u = ee(null), [l, h] = Pn(
|
7704
|
+
const d = ee(null), u = ee(null), [l, h] = Pn(hu, {
|
7745
7705
|
announcement: null
|
7746
7706
|
});
|
7747
7707
|
let f = r;
|
7748
|
-
typeof f > "u" && (f = n ?
|
7749
|
-
|
7708
|
+
typeof f > "u" && (f = n ? du[n] : "assertive"), Z(() => {
|
7709
|
+
yu({
|
7750
7710
|
announcementTimeoutRef: d,
|
7751
7711
|
announcementDelay: s,
|
7752
7712
|
children: e,
|
@@ -7788,21 +7748,21 @@ try {
|
|
7788
7748
|
});
|
7789
7749
|
} catch {
|
7790
7750
|
}
|
7791
|
-
const ni = "av-text-input",
|
7751
|
+
const ni = "av-text-input", mu = "av-text-input-wrapper", ur = "av-text-input-helper-text", pu = ({
|
7792
7752
|
mode: e
|
7793
7753
|
}) => g({
|
7794
7754
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
7795
7755
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
7796
7756
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
7797
7757
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
7798
|
-
}),
|
7758
|
+
}), gu = ({
|
7799
7759
|
focusMode: e
|
7800
7760
|
}) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
|
7801
7761
|
"focus:outline-focus-dark": e === "dark",
|
7802
7762
|
"focus:outline-focus-light": e === "light",
|
7803
7763
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
7804
7764
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
7805
|
-
}),
|
7765
|
+
}), bu = ({
|
7806
7766
|
noBorder: e,
|
7807
7767
|
error: t
|
7808
7768
|
}) => g("border-2", {
|
@@ -7810,7 +7770,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7810
7770
|
"focus:border-border-dark": !e && t,
|
7811
7771
|
"border-border-error-dark": !e && t,
|
7812
7772
|
"border-transparent": e
|
7813
|
-
}),
|
7773
|
+
}), wu = ({
|
7814
7774
|
disabled: e,
|
7815
7775
|
raw: t,
|
7816
7776
|
error: r,
|
@@ -7834,7 +7794,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7834
7794
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": n === "system",
|
7835
7795
|
"text-copy-lighter dark:text-copy-error-dark": n === "alt-system"
|
7836
7796
|
});
|
7837
|
-
},
|
7797
|
+
}, Eu = ({
|
7838
7798
|
error: e,
|
7839
7799
|
raw: t,
|
7840
7800
|
mode: r,
|
@@ -7861,7 +7821,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7861
7821
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
7862
7822
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
7863
7823
|
});
|
7864
|
-
},
|
7824
|
+
}, vu = ({
|
7865
7825
|
className: e,
|
7866
7826
|
inputClassName: t,
|
7867
7827
|
raw: r,
|
@@ -7875,7 +7835,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7875
7835
|
}) => {
|
7876
7836
|
const u = r ? e : g(
|
7877
7837
|
"relative flex w-full flex-col justify-center",
|
7878
|
-
|
7838
|
+
mu,
|
7879
7839
|
e
|
7880
7840
|
);
|
7881
7841
|
let l = "";
|
@@ -7900,19 +7860,19 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7900
7860
|
ni,
|
7901
7861
|
l,
|
7902
7862
|
"rounded-md text-base px-4",
|
7903
|
-
|
7904
|
-
|
7905
|
-
|
7863
|
+
pu({ mode: o }),
|
7864
|
+
gu({ focusMode: a }),
|
7865
|
+
bu({ noBorder: s, error: i }),
|
7906
7866
|
{
|
7907
7867
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
7908
7868
|
},
|
7909
7869
|
t
|
7910
|
-
), f = r ? void 0 : "sr-only", y =
|
7870
|
+
), f = r ? void 0 : "sr-only", y = wu({
|
7911
7871
|
disabled: n,
|
7912
7872
|
raw: r,
|
7913
7873
|
error: i,
|
7914
7874
|
mode: o
|
7915
|
-
}), p =
|
7875
|
+
}), p = Eu({
|
7916
7876
|
error: i,
|
7917
7877
|
raw: r,
|
7918
7878
|
mode: o,
|
@@ -7948,13 +7908,13 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7948
7908
|
size: E = "md",
|
7949
7909
|
...A
|
7950
7910
|
}, v) => {
|
7951
|
-
const [I, N] = At(), [
|
7911
|
+
const [I, N] = At(), [K, x] = fe(0), O = Zs({ id: e, prefix: `${ni}-` }), S = `${t} error, ${y}`, w = ee(null), _ = ee(null), T = {
|
7952
7912
|
xs: { label: "-25px", helperText: "30px" },
|
7953
7913
|
sm: { label: "-29px", helperText: "34px" },
|
7954
7914
|
md: { label: "-33px", helperText: "38px" },
|
7955
7915
|
lg: { label: "-15px", helperText: "22px" },
|
7956
7916
|
xl: { label: "-19px", helperText: "25px" }
|
7957
|
-
},
|
7917
|
+
}, F = vu({
|
7958
7918
|
className: i,
|
7959
7919
|
inputClassName: o,
|
7960
7920
|
error: n,
|
@@ -7970,17 +7930,17 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7970
7930
|
N && N.width && x(N.width + 18 + 10);
|
7971
7931
|
}, [N]), Rt(() => {
|
7972
7932
|
const { label: ge, helperText: Ce } = T[E];
|
7973
|
-
w?.current?.style.setProperty("--av-text-input-label", ge),
|
7933
|
+
w?.current?.style.setProperty("--av-text-input-label", ge), _?.current?.style.setProperty(
|
7974
7934
|
"--av-text-input-helper-text",
|
7975
7935
|
Ce
|
7976
7936
|
);
|
7977
|
-
}, [E]), /* @__PURE__ */ Y("div", { className:
|
7937
|
+
}, [E]), /* @__PURE__ */ Y("div", { className: F.wrapper, children: [
|
7978
7938
|
/* @__PURE__ */ m(
|
7979
7939
|
"label",
|
7980
7940
|
{
|
7981
|
-
htmlFor:
|
7941
|
+
htmlFor: O,
|
7982
7942
|
id: l,
|
7983
|
-
className:
|
7943
|
+
className: F.accessibleLabel,
|
7984
7944
|
children: r
|
7985
7945
|
}
|
7986
7946
|
),
|
@@ -7988,15 +7948,15 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
7988
7948
|
"input",
|
7989
7949
|
{
|
7990
7950
|
ref: v,
|
7991
|
-
id:
|
7951
|
+
id: O,
|
7992
7952
|
name: t,
|
7993
7953
|
type: f,
|
7994
7954
|
disabled: d,
|
7995
7955
|
placeholder: s ? void 0 : " ",
|
7996
|
-
className:
|
7997
|
-
...y && { "aria-describedby": `${
|
7956
|
+
className: F.input,
|
7957
|
+
...y && { "aria-describedby": `${O}-helper` },
|
7998
7958
|
...n && { "aria-invalid": "true" },
|
7999
|
-
...p && !s && { style: { paddingRight:
|
7959
|
+
...p && !s && { style: { paddingRight: K } },
|
8000
7960
|
...A
|
8001
7961
|
}
|
8002
7962
|
),
|
@@ -8005,17 +7965,17 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
8005
7965
|
{
|
8006
7966
|
ref: w,
|
8007
7967
|
"aria-hidden": !0,
|
8008
|
-
htmlFor:
|
8009
|
-
className:
|
7968
|
+
htmlFor: O,
|
7969
|
+
className: F.visibleLabel,
|
8010
7970
|
children: r
|
8011
7971
|
}
|
8012
7972
|
),
|
8013
7973
|
y && /* @__PURE__ */ m(
|
8014
7974
|
"div",
|
8015
7975
|
{
|
8016
|
-
ref:
|
8017
|
-
id: `${
|
8018
|
-
className:
|
7976
|
+
ref: _,
|
7977
|
+
id: `${O}-helper`,
|
7978
|
+
className: F.helperText,
|
8019
7979
|
children: y
|
8020
7980
|
}
|
8021
7981
|
),
|
@@ -8023,7 +7983,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
8023
7983
|
"div",
|
8024
7984
|
{
|
8025
7985
|
ref: I,
|
8026
|
-
className:
|
7986
|
+
className: F.rightElement,
|
8027
7987
|
children: p
|
8028
7988
|
}
|
8029
7989
|
),
|
@@ -8032,7 +7992,7 @@ const ni = "av-text-input", bu = "av-text-input-wrapper", ur = "av-text-input-he
|
|
8032
7992
|
}
|
8033
7993
|
);
|
8034
7994
|
jr.displayName = "TextInput";
|
8035
|
-
const
|
7995
|
+
const Su = 500, Tu = 5e3, Au = 2e4, si = me.forwardRef(
|
8036
7996
|
({
|
8037
7997
|
name: e,
|
8038
7998
|
disabled: t,
|
@@ -8052,28 +8012,28 @@ const Iu = 500, ku = 5e3, Ru = 2e4, si = me.forwardRef(
|
|
8052
8012
|
}), b = ee(!0), E = ee(null), A = ee(null), v = Xs([l, A]), I = h ? "Show" : "Hide", N = () => {
|
8053
8013
|
E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
|
8054
8014
|
b.current = !0, f(!0), p({
|
8055
|
-
announcementTimeout:
|
8015
|
+
announcementTimeout: Tu,
|
8056
8016
|
politeness: "polite",
|
8057
8017
|
message: `${r} hiding characters`
|
8058
8018
|
}), s && s(!0);
|
8059
|
-
},
|
8060
|
-
},
|
8061
|
-
|
8019
|
+
}, Au));
|
8020
|
+
}, K = (_) => {
|
8021
|
+
_.preventDefault();
|
8062
8022
|
const T = !b.current;
|
8063
8023
|
b.current = T, N(), f(T), p({
|
8064
|
-
announcementTimeout:
|
8024
|
+
announcementTimeout: Su,
|
8065
8025
|
politeness: "assertive",
|
8066
8026
|
message: T ? "Characters hidden" : "Characters showing"
|
8067
8027
|
}), s && s(T);
|
8068
|
-
}, x = (
|
8069
|
-
const { relatedTarget: T } =
|
8028
|
+
}, x = (_) => {
|
8029
|
+
const { relatedTarget: T } = _;
|
8070
8030
|
A.current?.parentElement?.contains(T) || c && c();
|
8071
|
-
},
|
8072
|
-
N(), o && o(
|
8073
|
-
}, S = (
|
8074
|
-
N(), a && a(
|
8075
|
-
}, w = (
|
8076
|
-
N(), i && i(
|
8031
|
+
}, O = (_) => {
|
8032
|
+
N(), o && o(_), x(_);
|
8033
|
+
}, S = (_) => {
|
8034
|
+
N(), a && a(_);
|
8035
|
+
}, w = (_) => {
|
8036
|
+
N(), i && i(_);
|
8077
8037
|
};
|
8078
8038
|
return Z(() => () => {
|
8079
8039
|
E.current && clearTimeout(E.current);
|
@@ -8087,13 +8047,13 @@ const Iu = 500, ku = 5e3, Ru = 2e4, si = me.forwardRef(
|
|
8087
8047
|
labelHidden: n,
|
8088
8048
|
type: h ? "password" : "text",
|
8089
8049
|
disabled: t,
|
8090
|
-
onBlur:
|
8050
|
+
onBlur: O,
|
8091
8051
|
onFocus: S,
|
8092
8052
|
onChange: w,
|
8093
8053
|
rightElement: me.cloneElement(d, {
|
8094
8054
|
ref: l,
|
8095
8055
|
label: I,
|
8096
|
-
onClick:
|
8056
|
+
onClick: K,
|
8097
8057
|
onBlur: x,
|
8098
8058
|
disabled: t
|
8099
8059
|
}),
|
@@ -8126,40 +8086,40 @@ try {
|
|
8126
8086
|
});
|
8127
8087
|
} catch {
|
8128
8088
|
}
|
8129
|
-
const
|
8130
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
8131
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
8132
|
-
`Sometimes, ${L} just makes stuff up. ${
|
8133
|
-
`${L} may invent facts on the fly. ${
|
8134
|
-
`${L} may be confidently wrong. ${
|
8135
|
-
`Occasionally, ${L} bluffs. ${
|
8136
|
-
`${L} is not always reality-based. ${
|
8137
|
-
`Sometimes, ${L} freestyles the truth. ${
|
8138
|
-
`${L}'s answers may vary from reality. ${
|
8139
|
-
`Sometimes, ${L} hallucinates. ${
|
8140
|
-
`Occasionally, ${L} imagines. ${
|
8141
|
-
`${L} may make things up. ${
|
8142
|
-
`${L} gets creative sometimes. ${
|
8143
|
-
`${L} isn't always right. ${
|
8144
|
-
`${L} can be mistaken. ${
|
8145
|
-
`Sometimes, ${L} guesses. ${
|
8146
|
-
`Sometimes, ${L} invents. ${
|
8147
|
-
`${L} may get it wrong. ${
|
8148
|
-
`${L} might fetch the wrong stick. ${
|
8149
|
-
`Sometimes, ${L} howls at the moon. ${
|
8150
|
-
`${L} may dig up imaginary bones. ${
|
8151
|
-
`${L} may sniff out nonsense. ${
|
8152
|
-
],
|
8089
|
+
const Iu = "ASK! ME! ANYTHING!", ku = "Log in", Ru = "Sign in with a Passkey", ah = "Log out", Cu = "Password", oh = "Usage", ch = "Profile", lh = "Settings", uh = "Chat history", dh = "About", Wr = "Type your message here.", hh = Wr, fh = `${Wr}
|
8090
|
+
Press Enter to send it or Shift+Enter for new line.`, yh = `${Wr}
|
8091
|
+
Press Ctrl+Enter to send it or Enter for new line.`, mh = "{{clipboard}}", M = "Review important details.", ph = [
|
8092
|
+
`Sometimes, ${L} just makes stuff up. ${M}`,
|
8093
|
+
`${L} may invent facts on the fly. ${M}`,
|
8094
|
+
`${L} may be confidently wrong. ${M}`,
|
8095
|
+
`Occasionally, ${L} bluffs. ${M}`,
|
8096
|
+
`${L} is not always reality-based. ${M}`,
|
8097
|
+
`Sometimes, ${L} freestyles the truth. ${M}`,
|
8098
|
+
`${L}'s answers may vary from reality. ${M}`,
|
8099
|
+
`Sometimes, ${L} hallucinates. ${M}`,
|
8100
|
+
`Occasionally, ${L} imagines. ${M}`,
|
8101
|
+
`${L} may make things up. ${M}`,
|
8102
|
+
`${L} gets creative sometimes. ${M}`,
|
8103
|
+
`${L} isn't always right. ${M}`,
|
8104
|
+
`${L} can be mistaken. ${M}`,
|
8105
|
+
`Sometimes, ${L} guesses. ${M}`,
|
8106
|
+
`Sometimes, ${L} invents. ${M}`,
|
8107
|
+
`${L} may get it wrong. ${M}`,
|
8108
|
+
`${L} might fetch the wrong stick. ${M}`,
|
8109
|
+
`Sometimes, ${L} howls at the moon. ${M}`,
|
8110
|
+
`${L} may dig up imaginary bones. ${M}`,
|
8111
|
+
`${L} may sniff out nonsense. ${M}`
|
8112
|
+
], gh = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", bh = "Default provider set to", wh = "Chat successfully deleted!", Eh = "Chat successfully saved!", vh = "Caching enabled. Assets are now stored locally.", Sh = "Caching disabled. Local asset cache cleared.", Th = "av-sassy", Ah = {
|
8153
8113
|
0: ["January", "February", "March"],
|
8154
8114
|
3: ["April", "May", "June"],
|
8155
8115
|
6: ["July", "August", "September"],
|
8156
8116
|
9: ["October", "November", "December"]
|
8157
|
-
},
|
8117
|
+
}, Ih = {
|
8158
8118
|
0: ["Jan", "Feb", "Mar"],
|
8159
8119
|
3: ["Apr", "May", "Jun"],
|
8160
8120
|
6: ["Jul", "Aug", "Sep"],
|
8161
8121
|
9: ["Oct", "Nov", "Dec"]
|
8162
|
-
},
|
8122
|
+
}, kh = {
|
8163
8123
|
PREFERENCES: {
|
8164
8124
|
TITLE: "User profile",
|
8165
8125
|
NAME: "Name",
|
@@ -8199,7 +8159,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Eh = "{{clipboard}}", U = "
|
|
8199
8159
|
SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
|
8200
8160
|
USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Callisto will remember your previous interactions and use them to provide more relevant responses."
|
8201
8161
|
}
|
8202
|
-
},
|
8162
|
+
}, Ou = ({ className: e }) => /* @__PURE__ */ Y(
|
8203
8163
|
"div",
|
8204
8164
|
{
|
8205
8165
|
className: g(
|
@@ -8207,14 +8167,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Eh = "{{clipboard}}", U = "
|
|
8207
8167
|
"flex items-center justify-center text-slate-300"
|
8208
8168
|
),
|
8209
8169
|
children: [
|
8210
|
-
/* @__PURE__ */ m("div", { className: "basis-1/4", children: /* @__PURE__ */ m(
|
8170
|
+
/* @__PURE__ */ m("div", { className: "basis-1/4", children: /* @__PURE__ */ m(su, {}) }),
|
8211
8171
|
/* @__PURE__ */ Y("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
8212
8172
|
/* @__PURE__ */ m("h1", { children: L }),
|
8213
|
-
/* @__PURE__ */ m("h2", { children:
|
8173
|
+
/* @__PURE__ */ m("h2", { children: Iu })
|
8214
8174
|
] })
|
8215
8175
|
]
|
8216
8176
|
}
|
8217
|
-
),
|
8177
|
+
), _u = () => {
|
8218
8178
|
const { login: e, logoutReason: t, loginWithPasskey: r } = Us(), [n, s] = fe(""), [i, o] = fe(""), [a, c] = fe(!0), [d, u] = fe({
|
8219
8179
|
username: "",
|
8220
8180
|
password: ""
|
@@ -8227,136 +8187,126 @@ Press Ctrl+Enter to send it or Enter for new line.`, Eh = "{{clipboard}}", U = "
|
|
8227
8187
|
}, 500);
|
8228
8188
|
}), Z(() => {
|
8229
8189
|
t && o(t);
|
8230
|
-
}, [t]), /* @__PURE__ */ Y(
|
8231
|
-
|
8232
|
-
|
8233
|
-
|
8234
|
-
|
8235
|
-
|
8236
|
-
|
8237
|
-
|
8238
|
-
|
8239
|
-
|
8240
|
-
|
8241
|
-
|
8242
|
-
|
8243
|
-
|
8244
|
-
|
8245
|
-
|
8246
|
-
|
8247
|
-
|
8248
|
-
|
8249
|
-
|
8250
|
-
|
8251
|
-
|
8190
|
+
}, [t]), /* @__PURE__ */ Y("main", { className: Ws({ extraClass: "mt-5" }), children: [
|
8191
|
+
/* @__PURE__ */ m(
|
8192
|
+
"div",
|
8193
|
+
{
|
8194
|
+
className: js({
|
8195
|
+
extraClass: "rounded-md pb-10"
|
8196
|
+
}),
|
8197
|
+
children: /* @__PURE__ */ m(Ou, {})
|
8198
|
+
}
|
8199
|
+
),
|
8200
|
+
/* @__PURE__ */ m("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ m(lu, { alignHorizontal: "center", children: /* @__PURE__ */ m(Se, { span: 6, children: /* @__PURE__ */ Y(nu, { mode: "dark", children: [
|
8201
|
+
/* @__PURE__ */ m(Se, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ m("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
|
8202
|
+
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m(
|
8203
|
+
jr,
|
8204
|
+
{
|
8205
|
+
className: "mt-7",
|
8206
|
+
required: !0,
|
8207
|
+
autoCapitalize: "off",
|
8208
|
+
autoComplete: "off",
|
8209
|
+
autoCorrect: "off",
|
8210
|
+
mode: "dark",
|
8211
|
+
focusMode: "light",
|
8212
|
+
name: "username",
|
8213
|
+
label: "Username",
|
8214
|
+
onChange: (h) => {
|
8215
|
+
u({
|
8216
|
+
...d,
|
8217
|
+
username: h.target.value
|
8218
|
+
}), s("");
|
8219
|
+
},
|
8220
|
+
error: n !== ""
|
8221
|
+
}
|
8222
|
+
) }),
|
8223
|
+
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m(
|
8224
|
+
si,
|
8225
|
+
{
|
8226
|
+
className: "mt-7",
|
8227
|
+
required: !0,
|
8228
|
+
autoCapitalize: "off",
|
8229
|
+
autoComplete: "off",
|
8230
|
+
autoCorrect: "off",
|
8231
|
+
mode: "dark",
|
8232
|
+
focusMode: "light",
|
8233
|
+
name: "password",
|
8234
|
+
label: Cu,
|
8235
|
+
rightElement: /* @__PURE__ */ m(
|
8236
|
+
Ft,
|
8252
8237
|
{
|
8253
|
-
className: "mt-7",
|
8254
|
-
required: !0,
|
8255
|
-
autoCapitalize: "off",
|
8256
|
-
autoComplete: "off",
|
8257
|
-
autoCorrect: "off",
|
8258
|
-
mode: "dark",
|
8259
8238
|
focusMode: "light",
|
8260
|
-
name: "username",
|
8261
|
-
label: "Username",
|
8262
|
-
onChange: (h) => {
|
8263
|
-
u({
|
8264
|
-
...d,
|
8265
|
-
username: h.target.value
|
8266
|
-
}), s("");
|
8267
|
-
},
|
8268
|
-
error: n !== ""
|
8269
|
-
}
|
8270
|
-
) }),
|
8271
|
-
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m(
|
8272
|
-
si,
|
8273
|
-
{
|
8274
|
-
className: "mt-7",
|
8275
|
-
required: !0,
|
8276
|
-
autoCapitalize: "off",
|
8277
|
-
autoComplete: "off",
|
8278
|
-
autoCorrect: "off",
|
8279
8239
|
mode: "dark",
|
8280
|
-
|
8281
|
-
|
8282
|
-
label: Nu,
|
8283
|
-
rightElement: /* @__PURE__ */ m(
|
8284
|
-
Ft,
|
8285
|
-
{
|
8286
|
-
focusMode: "light",
|
8287
|
-
mode: "dark",
|
8288
|
-
label: a ? "Show" : "Hide",
|
8289
|
-
children: a ? /* @__PURE__ */ m(cu, {}) : /* @__PURE__ */ m(au, {})
|
8290
|
-
}
|
8291
|
-
),
|
8292
|
-
onMaskChange: c,
|
8293
|
-
onChange: (h) => {
|
8294
|
-
u({
|
8295
|
-
...d,
|
8296
|
-
password: h.target.value
|
8297
|
-
}), s("");
|
8298
|
-
},
|
8299
|
-
error: n !== "",
|
8300
|
-
helperText: n
|
8240
|
+
label: a ? "Show" : "Hide",
|
8241
|
+
children: a ? /* @__PURE__ */ m(ou, {}) : /* @__PURE__ */ m(iu, {})
|
8301
8242
|
}
|
8302
|
-
)
|
8303
|
-
|
8304
|
-
|
8305
|
-
{
|
8306
|
-
|
8307
|
-
|
8308
|
-
|
8309
|
-
|
8310
|
-
|
8311
|
-
|
8312
|
-
|
8313
|
-
|
8314
|
-
|
8315
|
-
|
8316
|
-
|
8317
|
-
|
8318
|
-
|
8319
|
-
|
8320
|
-
|
8321
|
-
|
8322
|
-
|
8323
|
-
|
8324
|
-
|
8325
|
-
|
8326
|
-
|
8327
|
-
|
8328
|
-
|
8329
|
-
|
8330
|
-
|
8331
|
-
|
8332
|
-
|
8333
|
-
|
8334
|
-
|
8335
|
-
|
8243
|
+
),
|
8244
|
+
onMaskChange: c,
|
8245
|
+
onChange: (h) => {
|
8246
|
+
u({
|
8247
|
+
...d,
|
8248
|
+
password: h.target.value
|
8249
|
+
}), s("");
|
8250
|
+
},
|
8251
|
+
error: n !== "",
|
8252
|
+
helperText: n
|
8253
|
+
}
|
8254
|
+
) }),
|
8255
|
+
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m(
|
8256
|
+
Ys,
|
8257
|
+
{
|
8258
|
+
mode: "dark",
|
8259
|
+
focusMode: "light",
|
8260
|
+
fullWidth: !0,
|
8261
|
+
noBorder: !0,
|
8262
|
+
type: "submit",
|
8263
|
+
className: "mt-7",
|
8264
|
+
children: ku
|
8265
|
+
}
|
8266
|
+
) }),
|
8267
|
+
!Qs() && /* @__PURE__ */ Y(Nn, { children: [
|
8268
|
+
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
8269
|
+
/* @__PURE__ */ m(Se, { span: 12, children: /* @__PURE__ */ m(
|
8270
|
+
Ft,
|
8271
|
+
{
|
8272
|
+
variant: "selected",
|
8273
|
+
mode: "dark",
|
8274
|
+
focusMode: "light",
|
8275
|
+
fullWidth: !0,
|
8276
|
+
className: "mb-4",
|
8277
|
+
labelRight: Ru,
|
8278
|
+
onClick: r,
|
8279
|
+
children: /* @__PURE__ */ m(au, { size: "size-7" })
|
8280
|
+
}
|
8281
|
+
) })
|
8282
|
+
] })
|
8283
|
+
] }) }) }) })
|
8284
|
+
] });
|
8285
|
+
}, Nu = new URL(document.location.href).searchParams, On = !!Nu.get("debug") || !1, Pu = ci(() => import(
|
8336
8286
|
/* webpackChunkName: "LazyApp" */
|
8337
|
-
"./App.
|
8338
|
-
).then((e) => e.App)),
|
8287
|
+
"./App.DEd7989C.js"
|
8288
|
+
).then((e) => e.App)), xu = new ki(), _n = ({
|
8339
8289
|
isComponent: e,
|
8340
8290
|
headerHeight: t
|
8341
8291
|
}) => {
|
8342
8292
|
const { isAuthenticated: r, isLoading: n, user: s, getAccessToken: i } = Us();
|
8343
|
-
return n ? /* @__PURE__ */ m("div", {}) : r ? /* @__PURE__ */ m(oi, { fallback: /* @__PURE__ */ m("div", {}), children: /* @__PURE__ */ Y(
|
8293
|
+
return n ? /* @__PURE__ */ m("div", {}) : r ? /* @__PURE__ */ m(oi, { fallback: /* @__PURE__ */ m("div", {}), children: /* @__PURE__ */ Y(_i, { client: xu, children: [
|
8344
8294
|
/* @__PURE__ */ m(po, {}),
|
8345
8295
|
/* @__PURE__ */ m(
|
8346
|
-
|
8296
|
+
fl,
|
8347
8297
|
{
|
8348
8298
|
user: s?.username,
|
8349
8299
|
getAccessToken: i,
|
8350
|
-
children: /* @__PURE__ */ m(
|
8300
|
+
children: /* @__PURE__ */ m(Pu, { isComponent: e, headerHeight: t })
|
8351
8301
|
}
|
8352
8302
|
)
|
8353
|
-
] }) }) : /* @__PURE__ */ m(
|
8354
|
-
},
|
8303
|
+
] }) }) : /* @__PURE__ */ m(_u, {});
|
8304
|
+
}, $u = ({
|
8355
8305
|
isComponent: e = !1,
|
8356
8306
|
headerHeight: t = 0,
|
8357
8307
|
domain: r = qs
|
8358
8308
|
}) => (Z(() => {
|
8359
|
-
e ||
|
8309
|
+
e || Ks().catch((n) => {
|
8360
8310
|
console.error("[SW] Failed to register service worker:", n);
|
8361
8311
|
});
|
8362
8312
|
}, [e]), Br ? /* @__PURE__ */ m(
|
@@ -8364,12 +8314,12 @@ Press Ctrl+Enter to send it or Enter for new line.`, Eh = "{{clipboard}}", U = "
|
|
8364
8314
|
{
|
8365
8315
|
clientId: Tn,
|
8366
8316
|
domain: r,
|
8367
|
-
debug:
|
8317
|
+
debug: On,
|
8368
8318
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
8369
|
-
children: /* @__PURE__ */ m(
|
8319
|
+
children: /* @__PURE__ */ m(_n, { isComponent: e, headerHeight: t })
|
8370
8320
|
}
|
8371
|
-
) : /* @__PURE__ */ m(Sn, { clientId: Tn, domain: r, debug:
|
8372
|
-
|
8321
|
+
) : /* @__PURE__ */ m(Sn, { clientId: Tn, domain: r, debug: On, children: /* @__PURE__ */ m(_n, { isComponent: e, headerHeight: t }) })), Rh = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ m(
|
8322
|
+
$u,
|
8373
8323
|
{
|
8374
8324
|
isComponent: !0,
|
8375
8325
|
domain: e,
|
@@ -8377,158 +8327,155 @@ Press Ctrl+Enter to send it or Enter for new line.`, Eh = "{{clipboard}}", U = "
|
|
8377
8327
|
}
|
8378
8328
|
);
|
8379
8329
|
export {
|
8380
|
-
|
8381
|
-
|
8382
|
-
|
8383
|
-
|
8384
|
-
|
8385
|
-
|
8386
|
-
|
8330
|
+
dh as ABOUT_TITLE,
|
8331
|
+
Td as ACTION_RESET_PROMPT,
|
8332
|
+
Ed as ACTION_SEARCH,
|
8333
|
+
vd as ACTION_SORT,
|
8334
|
+
Sd as ACTION_TOGGLE_PROMPT,
|
8335
|
+
Th as APP_CLASSNAME,
|
8336
|
+
Jd as Ae,
|
8387
8337
|
Ys as C,
|
8388
|
-
|
8389
|
-
|
8390
|
-
|
8391
|
-
|
8338
|
+
kh as CARDS,
|
8339
|
+
mh as CLIPBOARD_PROMPT,
|
8340
|
+
$d as DEFAULT_ICON_ACTION_SIZE,
|
8341
|
+
ed as Dynamic,
|
8392
8342
|
Yc as E,
|
8393
|
-
|
8394
|
-
|
8395
|
-
|
8396
|
-
|
8343
|
+
wd as ERROR_MESSAGE,
|
8344
|
+
Wd as Ee,
|
8345
|
+
ph as FOOTER_DISCLAIMERS,
|
8346
|
+
qu as For,
|
8347
|
+
uh as HISTORY_TITLE,
|
8397
8348
|
Qt as I,
|
8398
|
-
|
8399
|
-
|
8400
|
-
|
8401
|
-
|
8402
|
-
|
8403
|
-
|
8404
|
-
|
8405
|
-
|
8406
|
-
|
8407
|
-
|
8349
|
+
Nd as INFINITE_SCROLL_LIMIT,
|
8350
|
+
_d as INFINITE_SCROLL_THRESHOLD,
|
8351
|
+
Ud as INPUT_BOTTOM_OFFSET,
|
8352
|
+
Hd as INPUT_BOTTOM_OFFSET_EXTRA,
|
8353
|
+
Fd as INPUT_BOTTOM_OFFSET_IPHONE,
|
8354
|
+
yh as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
8355
|
+
fh as INPUT_PLACEHOLDER_TEXT_ENTER,
|
8356
|
+
hh as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
8357
|
+
ju as Index,
|
8358
|
+
lu as L,
|
8408
8359
|
Fs as LOCAL_STORAGE_PREFIX,
|
8409
|
-
|
8410
|
-
|
8411
|
-
|
8412
|
-
|
8413
|
-
|
8414
|
-
|
8415
|
-
|
8416
|
-
|
8417
|
-
|
8418
|
-
|
8419
|
-
|
8420
|
-
|
8421
|
-
|
8422
|
-
|
8423
|
-
|
8424
|
-
su as S,
|
8360
|
+
Cd as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
8361
|
+
Od as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
8362
|
+
Ad as LOCAL_STORAGE_SEARCH,
|
8363
|
+
Id as LOCAL_STORAGE_SORT,
|
8364
|
+
kd as LOCAL_STORAGE_SORT_TIMESTAMP,
|
8365
|
+
Rd as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
8366
|
+
ah as LOG_OUT,
|
8367
|
+
Ou as Logo,
|
8368
|
+
Ju as Match,
|
8369
|
+
ch as PROFILE_TITLE,
|
8370
|
+
gh as PROMPTS_DESCRIPTION,
|
8371
|
+
Pd as PROMPT_CLASSNAME,
|
8372
|
+
xd as PROMPT_EDITABLE_AREA_CLASSNAME,
|
8373
|
+
Zu as Portal,
|
8374
|
+
nu as S,
|
8425
8375
|
Re as SERVICE_TYPES,
|
8426
|
-
|
8427
|
-
|
8428
|
-
|
8429
|
-
|
8430
|
-
|
8431
|
-
|
8432
|
-
|
8433
|
-
|
8434
|
-
|
8435
|
-
|
8436
|
-
|
8437
|
-
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8376
|
+
lh as SETTINGS_TITLE,
|
8377
|
+
Rh as SassySaint,
|
8378
|
+
Wu as Show,
|
8379
|
+
Qu as Switch,
|
8380
|
+
Sh as TOAST_CACHE_DISABLED,
|
8381
|
+
vh as TOAST_CACHE_ENABLED,
|
8382
|
+
wh as TOAST_CHAT_DELETED,
|
8383
|
+
Eh as TOAST_CHAT_SAVED,
|
8384
|
+
bh as TOAST_PROVIDER_CHANGED,
|
8385
|
+
Ah as TRIMESTERS,
|
8386
|
+
Ih as TRIMESTERS_SHORT,
|
8387
|
+
Ld as UI_BUTTON_SCROLL_BUFFER,
|
8388
|
+
Md as UI_DEFAULT_MAIN_HEIGHT,
|
8389
|
+
Dd as UI_FOOTER_BUFFER,
|
8390
|
+
oh as USAGE_TITLE,
|
8441
8391
|
jr as Y,
|
8442
|
-
|
8392
|
+
Gd as a,
|
8443
8393
|
Aa as addEventListener,
|
8444
|
-
|
8445
|
-
|
8446
|
-
|
8394
|
+
eu as b,
|
8395
|
+
Uu as batch,
|
8396
|
+
Vd as c,
|
8447
8397
|
Ta as className,
|
8448
|
-
|
8449
|
-
|
8450
|
-
|
8398
|
+
Xu as clearDelegatedEvents,
|
8399
|
+
Dl as convertCamelCaseToReadable,
|
8400
|
+
ud as convertRemToPixels,
|
8451
8401
|
na as createComponent,
|
8452
8402
|
Vi as createComputed,
|
8453
|
-
|
8403
|
+
Bu as createContext,
|
8454
8404
|
Vn as createEffect,
|
8455
8405
|
H as createMemo,
|
8456
8406
|
Ae as createRenderEffect,
|
8457
8407
|
Te as createRoot,
|
8458
8408
|
z as createSignal,
|
8459
|
-
|
8409
|
+
Vu as createUniqueId,
|
8460
8410
|
L as de,
|
8461
|
-
|
8411
|
+
xl as debounce,
|
8462
8412
|
Ea as delegateEvents,
|
8463
8413
|
yt as deleteNestedDataByPath,
|
8464
|
-
|
8465
|
-
|
8466
|
-
|
8467
|
-
|
8468
|
-
Ws as getMainPaddingClass,
|
8414
|
+
od as displayValue,
|
8415
|
+
Bd as getCacheInfo,
|
8416
|
+
Al as getCurrentGeoLocation,
|
8417
|
+
Ws as getLayoutPaddingClass,
|
8469
8418
|
js as getMessageContaintWrapperClass,
|
8470
|
-
|
8471
|
-
|
8472
|
-
|
8473
|
-
|
8474
|
-
|
8475
|
-
|
8419
|
+
id as getMutationStatusColor,
|
8420
|
+
dd as getPreferredColorScheme,
|
8421
|
+
sd as getQueryStatusColor,
|
8422
|
+
ad as getQueryStatusColorByLabel,
|
8423
|
+
rd as getQueryStatusLabel,
|
8424
|
+
nd as getSidedProp,
|
8476
8425
|
At as h,
|
8477
|
-
|
8478
|
-
vd as ht,
|
8426
|
+
Kd as handleServiceWorkerToggle,
|
8479
8427
|
Zs as i,
|
8480
8428
|
Bs as i$1,
|
8481
8429
|
Tr as insert,
|
8482
8430
|
Js as isProbablyMobile,
|
8483
|
-
|
8484
|
-
|
8431
|
+
$l as isProbablyiPhone,
|
8432
|
+
_r as isServiceWorkerEnabled,
|
8485
8433
|
Qs as isTauri,
|
8486
|
-
|
8434
|
+
Qe as it,
|
8487
8435
|
Se as j,
|
8488
|
-
|
8489
|
-
|
8436
|
+
au as l,
|
8437
|
+
zu as memo,
|
8490
8438
|
ia as mergeProps,
|
8491
|
-
|
8492
|
-
|
8439
|
+
dl as mutateCall,
|
8440
|
+
ld as mutationSortFns,
|
8493
8441
|
Us as n,
|
8494
|
-
|
8442
|
+
qd as ne,
|
8443
|
+
_l as numberFormatter,
|
8495
8444
|
Xs as o,
|
8496
|
-
|
8497
|
-
|
8498
|
-
|
8499
|
-
et as onCleanup,
|
8445
|
+
Il as obfuscate,
|
8446
|
+
Fu as on,
|
8447
|
+
Ze as onCleanup,
|
8500
8448
|
Wi as onMount,
|
8501
|
-
|
8502
|
-
|
8503
|
-
|
8504
|
-
|
8505
|
-
Cl as renderDataAsList,
|
8449
|
+
Yd as pe,
|
8450
|
+
Pl as pluralize,
|
8451
|
+
jd as re,
|
8452
|
+
Rl as renderDataAsList,
|
8506
8453
|
co as serialize,
|
8507
|
-
|
8454
|
+
ul as serverUrl,
|
8508
8455
|
Sr as setAttribute,
|
8509
|
-
|
8510
|
-
|
8456
|
+
Xd as setNewProvider,
|
8457
|
+
cd as sortFns,
|
8511
8458
|
aa as splitProps,
|
8512
8459
|
Ra as spread,
|
8513
|
-
|
8460
|
+
td as stringify,
|
8514
8461
|
Ft as te,
|
8515
|
-
|
8516
|
-
|
8517
|
-
|
8462
|
+
Yu as template,
|
8463
|
+
zd as ue,
|
8464
|
+
kl as unObfuscate,
|
8518
8465
|
Q as untrack,
|
8519
8466
|
ft as updateNestedDataByPath,
|
8520
8467
|
Ca as use,
|
8521
|
-
|
8522
|
-
|
8523
|
-
|
8524
|
-
|
8525
|
-
|
8526
|
-
|
8527
|
-
|
8528
|
-
|
8529
|
-
|
8530
|
-
|
8468
|
+
eh as useChangelogs,
|
8469
|
+
rh as useChatsHistory,
|
8470
|
+
nh as useChatsUsage,
|
8471
|
+
Gu as useContext,
|
8472
|
+
sh as useEntitlements,
|
8473
|
+
Zd as useServerCapabilities,
|
8474
|
+
Ku as useTransition,
|
8475
|
+
th as useUserChatStats,
|
8476
|
+
hl as useUserPreferences,
|
8477
|
+
ih as utilities,
|
8531
8478
|
ri as x,
|
8532
8479
|
Xc as y,
|
8533
|
-
|
8480
|
+
Qd as ye
|
8534
8481
|
};
|