@versini/sassysaint 8.26.3 → 8.27.0
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.7ueKzWyF.js → AboutChangelog.C1FUYrQH.js} +2 -2
- package/dist/chunks/{AboutEntry.DhljBqVO.js → AboutEntry.DYw63Smf.js} +5 -5
- package/dist/chunks/{App.9D7tAP-W.js → App.CLsRrqnB.js} +279 -272
- package/dist/chunks/{Chart.DA3KPOhe.js → Chart.C76TkuUt.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DUDmGgnN.js → ChatBubbleAssistant.AQlDoZAW.js} +3 -3
- package/dist/chunks/{HistoryEntry.C92fhlNu.js → HistoryEntry.Cqle-uCR.js} +2 -2
- package/dist/chunks/{I3HPI4QX.DUpsHxtP.js → I3HPI4QX.B69lq-LG.js} +1 -1
- package/dist/chunks/{ProfileEntry.Bmyl_deB.js → ProfileEntry.Cb5Y7hl8.js} +2 -2
- package/dist/chunks/{SettingsEntry.CO4vgrKR.js → SettingsEntry.gGlNbDNL.js} +2 -2
- package/dist/chunks/{UsageEntry.BGyXJHmv.js → UsageEntry.Dgiz9VvB.js} +3 -3
- package/dist/chunks/{index.ClAz6-Y-.js → index.Bi1LXgwR.js} +3 -3
- package/dist/chunks/{index.DqNRauDV.js → index.CHVzaxdH.js} +1 -1
- package/dist/chunks/{index.CMwAtVjF.js → index.Clys7w0D.js} +1 -1
- package/dist/chunks/{index.CZXC4tuS.js → index.DdIh58Wu.js} +2 -2
- package/dist/chunks/{index.Dkj1FYyK.js → index.DeXqR0YT.js} +1 -1
- package/dist/chunks/{index.1NVu-BYL.js → index.DkMqkMUz.js} +275 -277
- package/dist/chunks/{useMarkdown.B-P_2-Ze.js → useMarkdown.GTRBn-s8.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 +4 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as y, jsxs as J, Fragment as yr } from "react/jsx-runtime";
|
2
2
|
import * as ee from "react";
|
3
|
-
import de, { createContext as
|
3
|
+
import de, { createContext as on, useReducer as cn, useCallback as le, useRef as B, useEffect as X, useSyncExternalStore as Ns, useContext as pr, useLayoutEffect as mt, useState as ce, useMemo as It, useId as ln, Suspense as Ps, lazy as xs } from "react";
|
4
4
|
import g from "clsx";
|
5
5
|
var kt = class {
|
6
6
|
constructor() {
|
@@ -36,7 +36,7 @@ function Yt(e, t) {
|
|
36
36
|
function Ls(e, t) {
|
37
37
|
return typeof e == "function" ? e(t) : e;
|
38
38
|
}
|
39
|
-
function
|
39
|
+
function Cr(e, t) {
|
40
40
|
const {
|
41
41
|
type: r = "all",
|
42
42
|
exact: n,
|
@@ -59,7 +59,7 @@ function Nr(e, t) {
|
|
59
59
|
}
|
60
60
|
return !(typeof o == "boolean" && t.isStale() !== o || s && s !== t.state.fetchStatus || i && !i(t));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function Nr(e, t) {
|
63
63
|
const { exact: r, status: n, predicate: s, mutationKey: i } = e;
|
64
64
|
if (i) {
|
65
65
|
if (!t.options.mutationKey)
|
@@ -87,7 +87,7 @@ function He(e, t) {
|
|
87
87
|
function Xt(e, t) {
|
88
88
|
if (e === t)
|
89
89
|
return e;
|
90
|
-
const r =
|
90
|
+
const r = Pr(e) && Pr(t);
|
91
91
|
if (r || Zt(e) && Zt(t)) {
|
92
92
|
const n = r ? e : Object.keys(e), s = n.length, i = r ? t : Object.keys(t), a = i.length, o = r ? [] : {}, c = new Set(n);
|
93
93
|
let u = 0;
|
@@ -107,19 +107,19 @@ function Gl(e, t) {
|
|
107
107
|
return !1;
|
108
108
|
return !0;
|
109
109
|
}
|
110
|
-
function
|
110
|
+
function Pr(e) {
|
111
111
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
112
112
|
}
|
113
113
|
function Zt(e) {
|
114
|
-
if (!
|
114
|
+
if (!xr(e))
|
115
115
|
return !1;
|
116
116
|
const t = e.constructor;
|
117
117
|
if (t === void 0)
|
118
118
|
return !0;
|
119
119
|
const r = t.prototype;
|
120
|
-
return !(!
|
120
|
+
return !(!xr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
121
121
|
}
|
122
|
-
function
|
122
|
+
function xr(e) {
|
123
123
|
return Object.prototype.toString.call(e) === "[object Object]";
|
124
124
|
}
|
125
125
|
function Us(e) {
|
@@ -152,7 +152,7 @@ function Hs(e, t, r = 0) {
|
|
152
152
|
return r && n.length > r ? n.slice(0, -1) : n;
|
153
153
|
}
|
154
154
|
var yt = Symbol();
|
155
|
-
function
|
155
|
+
function un(e, t) {
|
156
156
|
return process.env.NODE_ENV !== "production" && e.queryFn === yt && console.error(
|
157
157
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
158
158
|
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === yt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
@@ -197,7 +197,7 @@ var Bs = class extends kt {
|
|
197
197
|
isFocused() {
|
198
198
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
199
199
|
}
|
200
|
-
},
|
200
|
+
}, dn = new Bs(), Vs = class extends kt {
|
201
201
|
#e = !0;
|
202
202
|
#t;
|
203
203
|
#r;
|
@@ -254,26 +254,26 @@ function Ws() {
|
|
254
254
|
function js(e) {
|
255
255
|
return Math.min(1e3 * 2 ** e, 3e4);
|
256
256
|
}
|
257
|
-
function
|
257
|
+
function fn(e) {
|
258
258
|
return (e ?? "online") === "online" ? Be.isOnline() : !0;
|
259
259
|
}
|
260
|
-
var
|
260
|
+
var hn = class extends Error {
|
261
261
|
constructor(e) {
|
262
262
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
263
263
|
}
|
264
264
|
};
|
265
265
|
function $t(e) {
|
266
|
-
return e instanceof
|
266
|
+
return e instanceof hn;
|
267
267
|
}
|
268
|
-
function
|
268
|
+
function mn(e) {
|
269
269
|
let t = !1, r = 0, n = !1, s;
|
270
270
|
const i = Ws(), a = (p) => {
|
271
|
-
n || (f(new
|
271
|
+
n || (f(new hn(p)), e.abort?.());
|
272
272
|
}, o = () => {
|
273
273
|
t = !0;
|
274
274
|
}, c = () => {
|
275
275
|
t = !1;
|
276
|
-
}, u = () =>
|
276
|
+
}, u = () => dn.isFocused() && (e.networkMode === "always" || Be.isOnline()) && e.canRun(), d = () => fn(e.networkMode) && e.canRun(), l = (p) => {
|
277
277
|
n || (n = !0, e.onSuccess?.(p), s?.(), i.resolve(p));
|
278
278
|
}, f = (p) => {
|
279
279
|
n || (n = !0, e.onError?.(p), s?.(), i.reject(p));
|
@@ -376,7 +376,7 @@ function qs() {
|
|
376
376
|
}
|
377
377
|
};
|
378
378
|
}
|
379
|
-
var q = qs(),
|
379
|
+
var q = qs(), yn = class {
|
380
380
|
#e;
|
381
381
|
destroy() {
|
382
382
|
this.clearGcTimeout();
|
@@ -395,7 +395,7 @@ var q = qs(), pn = class {
|
|
395
395
|
clearGcTimeout() {
|
396
396
|
this.#e && (clearTimeout(this.#e), this.#e = void 0);
|
397
397
|
}
|
398
|
-
}, Js = class extends
|
398
|
+
}, Js = class extends yn {
|
399
399
|
#e;
|
400
400
|
#t;
|
401
401
|
#r;
|
@@ -499,7 +499,7 @@ var q = qs(), pn = class {
|
|
499
499
|
get: () => (this.#a = !0, r.signal)
|
500
500
|
});
|
501
501
|
}, s = () => {
|
502
|
-
const c =
|
502
|
+
const c = un(this.options, t), d = (() => {
|
503
503
|
const l = {
|
504
504
|
client: this.#s,
|
505
505
|
queryKey: this.queryKey,
|
@@ -537,7 +537,7 @@ var q = qs(), pn = class {
|
|
537
537
|
this
|
538
538
|
)), this.scheduleGc();
|
539
539
|
};
|
540
|
-
return this.#n =
|
540
|
+
return this.#n = mn({
|
541
541
|
initialPromise: t?.initialPromise,
|
542
542
|
fn: a.fetchFn,
|
543
543
|
abort: r.abort.bind(r),
|
@@ -651,7 +651,7 @@ function zs(e, t) {
|
|
651
651
|
return {
|
652
652
|
fetchFailureCount: 0,
|
653
653
|
fetchFailureReason: null,
|
654
|
-
fetchStatus:
|
654
|
+
fetchStatus: fn(t.networkMode) ? "fetching" : "paused",
|
655
655
|
...e === void 0 && {
|
656
656
|
error: null,
|
657
657
|
status: "pending"
|
@@ -718,12 +718,12 @@ var Ys = class extends kt {
|
|
718
718
|
find(e) {
|
719
719
|
const t = { exact: !0, ...e };
|
720
720
|
return this.getAll().find(
|
721
|
-
(r) =>
|
721
|
+
(r) => Cr(t, r)
|
722
722
|
);
|
723
723
|
}
|
724
724
|
findAll(e = {}) {
|
725
725
|
const t = this.getAll();
|
726
|
-
return Object.keys(e).length > 0 ? t.filter((r) =>
|
726
|
+
return Object.keys(e).length > 0 ? t.filter((r) => Cr(e, r)) : t;
|
727
727
|
}
|
728
728
|
notify(e) {
|
729
729
|
q.batch(() => {
|
@@ -746,7 +746,7 @@ var Ys = class extends kt {
|
|
746
746
|
});
|
747
747
|
});
|
748
748
|
}
|
749
|
-
}, Xs = class extends
|
749
|
+
}, Xs = class extends yn {
|
750
750
|
#e;
|
751
751
|
#t;
|
752
752
|
#r;
|
@@ -784,7 +784,7 @@ var Ys = class extends kt {
|
|
784
784
|
const t = () => {
|
785
785
|
this.#s({ type: "continue" });
|
786
786
|
};
|
787
|
-
this.#r =
|
787
|
+
this.#r = mn({
|
788
788
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
789
789
|
onFail: (s, i) => {
|
790
790
|
this.#s({ type: "failed", failureCount: s, error: i });
|
@@ -1002,11 +1002,11 @@ var ei = class extends kt {
|
|
1002
1002
|
find(e) {
|
1003
1003
|
const t = { exact: !0, ...e };
|
1004
1004
|
return this.getAll().find(
|
1005
|
-
(r) =>
|
1005
|
+
(r) => Nr(t, r)
|
1006
1006
|
);
|
1007
1007
|
}
|
1008
1008
|
findAll(e = {}) {
|
1009
|
-
return this.getAll().filter((t) =>
|
1009
|
+
return this.getAll().filter((t) => Nr(e, t));
|
1010
1010
|
}
|
1011
1011
|
notify(e) {
|
1012
1012
|
q.batch(() => {
|
@@ -1027,7 +1027,7 @@ var ei = class extends kt {
|
|
1027
1027
|
function Xe(e) {
|
1028
1028
|
return e.options.scope?.id;
|
1029
1029
|
}
|
1030
|
-
function
|
1030
|
+
function Dr(e) {
|
1031
1031
|
return {
|
1032
1032
|
onFetch: (t, r) => {
|
1033
1033
|
const n = t.options, s = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
|
@@ -1041,7 +1041,7 @@ function $r(e) {
|
|
1041
1041
|
d = !0;
|
1042
1042
|
}), t.signal)
|
1043
1043
|
});
|
1044
|
-
}, f =
|
1044
|
+
}, f = un(t.options, t.fetchOptions), h = async (m, p, b) => {
|
1045
1045
|
if (d)
|
1046
1046
|
return Promise.reject();
|
1047
1047
|
if (p == null && m.pages.length)
|
@@ -1062,7 +1062,7 @@ function $r(e) {
|
|
1062
1062
|
};
|
1063
1063
|
};
|
1064
1064
|
if (s && i.length) {
|
1065
|
-
const m = s === "backward", p = m ? ti :
|
1065
|
+
const m = s === "backward", p = m ? ti : $r, b = {
|
1066
1066
|
pages: i,
|
1067
1067
|
pageParams: a
|
1068
1068
|
}, w = p(n, b);
|
@@ -1070,7 +1070,7 @@ function $r(e) {
|
|
1070
1070
|
} else {
|
1071
1071
|
const m = e ?? i.length;
|
1072
1072
|
do {
|
1073
|
-
const p = c === 0 ? a[0] ?? n.initialPageParam :
|
1073
|
+
const p = c === 0 ? a[0] ?? n.initialPageParam : $r(n, o);
|
1074
1074
|
if (c > 0 && p == null)
|
1075
1075
|
break;
|
1076
1076
|
o = await h(o, p), c++;
|
@@ -1091,7 +1091,7 @@ function $r(e) {
|
|
1091
1091
|
}
|
1092
1092
|
};
|
1093
1093
|
}
|
1094
|
-
function
|
1094
|
+
function $r(e, { pages: t, pageParams: r }) {
|
1095
1095
|
const n = t.length - 1;
|
1096
1096
|
return t.length > 0 ? e.getNextPageParam(
|
1097
1097
|
t[n],
|
@@ -1116,7 +1116,7 @@ var ri = class {
|
|
1116
1116
|
this.#e = e.queryCache || new Ys(), this.#t = e.mutationCache || new ei(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map(), this.#o = 0;
|
1117
1117
|
}
|
1118
1118
|
mount() {
|
1119
|
-
this.#o++, this.#o === 1 && (this.#a =
|
1119
|
+
this.#o++, this.#o === 1 && (this.#a = dn.subscribe(async (e) => {
|
1120
1120
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
1121
1121
|
}), this.#i = Be.subscribe(async (e) => {
|
1122
1122
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
@@ -1234,13 +1234,13 @@ var ri = class {
|
|
1234
1234
|
return this.fetchQuery(e).then(te).catch(te);
|
1235
1235
|
}
|
1236
1236
|
fetchInfiniteQuery(e) {
|
1237
|
-
return e.behavior =
|
1237
|
+
return e.behavior = Dr(e.pages), this.fetchQuery(e);
|
1238
1238
|
}
|
1239
1239
|
prefetchInfiniteQuery(e) {
|
1240
1240
|
return this.fetchInfiniteQuery(e).then(te).catch(te);
|
1241
1241
|
}
|
1242
1242
|
ensureInfiniteQueryData(e) {
|
1243
|
-
return e.behavior =
|
1243
|
+
return e.behavior = Dr(e.pages), this.ensureQueryData(e);
|
1244
1244
|
}
|
1245
1245
|
resumePausedMutations() {
|
1246
1246
|
return Be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
@@ -1306,10 +1306,10 @@ var ri = class {
|
|
1306
1306
|
clear() {
|
1307
1307
|
this.#e.clear(), this.#t.clear();
|
1308
1308
|
}
|
1309
|
-
},
|
1309
|
+
}, pn = ee.createContext(
|
1310
1310
|
void 0
|
1311
1311
|
), ni = (e) => {
|
1312
|
-
const t = ee.useContext(
|
1312
|
+
const t = ee.useContext(pn);
|
1313
1313
|
if (e)
|
1314
1314
|
return e;
|
1315
1315
|
if (!t)
|
@@ -1320,16 +1320,16 @@ var ri = class {
|
|
1320
1320
|
children: t
|
1321
1321
|
}) => (ee.useEffect(() => (e.mount(), () => {
|
1322
1322
|
e.unmount();
|
1323
|
-
}), [e]), /* @__PURE__ */ y(
|
1323
|
+
}), [e]), /* @__PURE__ */ y(pn.Provider, { value: e, children: t })), ii = (e, t) => e === t, pt = Symbol("solid-proxy"), gn = typeof Proxy == "function", gt = {
|
1324
1324
|
equals: ii
|
1325
|
-
},
|
1325
|
+
}, bn = An, fe = 1, bt = 2, wn = {
|
1326
1326
|
owned: null,
|
1327
1327
|
cleanups: null,
|
1328
1328
|
context: null,
|
1329
1329
|
owner: null
|
1330
1330
|
}, Mt = {}, O = null, x = null, j = null, ue = null, Rt = 0;
|
1331
1331
|
function Ee(e, t) {
|
1332
|
-
const r = x, n = O, s = e.length === 0, i = t === void 0 ? n : t, a = s ?
|
1332
|
+
const r = x, n = O, s = e.length === 0, i = t === void 0 ? n : t, a = s ? wn : {
|
1333
1333
|
owned: null,
|
1334
1334
|
cleanups: null,
|
1335
1335
|
context: i ? i.context : null,
|
@@ -1349,8 +1349,8 @@ function Q(e, t) {
|
|
1349
1349
|
observers: null,
|
1350
1350
|
observerSlots: null,
|
1351
1351
|
comparator: t.equals || void 0
|
1352
|
-
}, n = (s) => (typeof s == "function" && (s = s(r.value)),
|
1353
|
-
return [
|
1352
|
+
}, n = (s) => (typeof s == "function" && (s = s(r.value)), Tn(r, s));
|
1353
|
+
return [Sn.bind(r), n];
|
1354
1354
|
}
|
1355
1355
|
function ai(e, t, r) {
|
1356
1356
|
const n = _t(e, t, !0, fe);
|
@@ -1360,15 +1360,15 @@ function Se(e, t, r) {
|
|
1360
1360
|
const n = _t(e, t, !1, fe);
|
1361
1361
|
xe(n);
|
1362
1362
|
}
|
1363
|
-
function
|
1364
|
-
|
1363
|
+
function vn(e, t, r) {
|
1364
|
+
bn = pi;
|
1365
1365
|
const n = _t(e, t, !1, fe);
|
1366
1366
|
(!r || !r.render) && (n.user = !0), ue ? ue.push(n) : xe(n);
|
1367
1367
|
}
|
1368
1368
|
function H(e, t, r) {
|
1369
1369
|
r = r ? Object.assign({}, gt, r) : gt;
|
1370
1370
|
const n = _t(e, t, !0, 0);
|
1371
|
-
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, xe(n),
|
1371
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, xe(n), Sn.bind(n);
|
1372
1372
|
}
|
1373
1373
|
function oi(e) {
|
1374
1374
|
return e && typeof e == "object" && "then" in e;
|
@@ -1478,7 +1478,7 @@ function zl(e, t, r) {
|
|
1478
1478
|
};
|
1479
1479
|
}
|
1480
1480
|
function li(e) {
|
1481
|
-
|
1481
|
+
vn(() => V(e));
|
1482
1482
|
}
|
1483
1483
|
function Ve(e) {
|
1484
1484
|
return O === null || (O.cleanups === null ? O.cleanups = [e] : O.cleanups.push(e)), e;
|
@@ -1521,14 +1521,14 @@ function Zl(e) {
|
|
1521
1521
|
let t;
|
1522
1522
|
return O && O.context && (t = O.context[e.id]) !== void 0 ? t : e.defaultValue;
|
1523
1523
|
}
|
1524
|
-
function
|
1524
|
+
function En(e) {
|
1525
1525
|
const t = H(e), r = H(() => tr(t()));
|
1526
1526
|
return r.toArray = () => {
|
1527
1527
|
const n = r();
|
1528
1528
|
return Array.isArray(n) ? n : n != null ? [n] : [];
|
1529
1529
|
}, r;
|
1530
1530
|
}
|
1531
|
-
function
|
1531
|
+
function Sn() {
|
1532
1532
|
if (this.sources && this.state)
|
1533
1533
|
if (this.state === fe) xe(this);
|
1534
1534
|
else {
|
@@ -1541,12 +1541,12 @@ function Tn() {
|
|
1541
1541
|
}
|
1542
1542
|
return this.value;
|
1543
1543
|
}
|
1544
|
-
function
|
1544
|
+
function Tn(e, t, r) {
|
1545
1545
|
let n = e.value;
|
1546
1546
|
return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && ie(() => {
|
1547
1547
|
for (let s = 0; s < e.observers.length; s += 1) {
|
1548
1548
|
const i = e.observers[s];
|
1549
|
-
i.state || (i.pure ? j.push(i) : ue.push(i), i.observers &&
|
1549
|
+
i.state || (i.pure ? j.push(i) : ue.push(i), i.observers && In(i)), i.state = fe;
|
1550
1550
|
}
|
1551
1551
|
if (j.length > 1e6)
|
1552
1552
|
throw j = [], new Error();
|
@@ -1573,7 +1573,7 @@ function mi(e, t, r) {
|
|
1573
1573
|
} finally {
|
1574
1574
|
x = i, O = s;
|
1575
1575
|
}
|
1576
|
-
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ?
|
1576
|
+
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Tn(e, n) : e.value = n, e.updatedAt = r);
|
1577
1577
|
}
|
1578
1578
|
function _t(e, t, r, n = fe, s) {
|
1579
1579
|
const i = {
|
@@ -1589,7 +1589,7 @@ function _t(e, t, r, n = fe, s) {
|
|
1589
1589
|
context: O ? O.context : null,
|
1590
1590
|
pure: r
|
1591
1591
|
};
|
1592
|
-
return O === null || O !==
|
1592
|
+
return O === null || O !== wn && (O.owned ? O.owned.push(i) : O.owned = [i]), i;
|
1593
1593
|
}
|
1594
1594
|
function wt(e) {
|
1595
1595
|
if (e.state === 0) return;
|
@@ -1618,11 +1618,11 @@ function ie(e, t) {
|
|
1618
1618
|
}
|
1619
1619
|
}
|
1620
1620
|
function yi(e) {
|
1621
|
-
if (j && (
|
1621
|
+
if (j && (An(j), j = null), e) return;
|
1622
1622
|
const t = ue;
|
1623
|
-
ue = null, t.length && ie(() =>
|
1623
|
+
ue = null, t.length && ie(() => bn(t), !1);
|
1624
1624
|
}
|
1625
|
-
function
|
1625
|
+
function An(e) {
|
1626
1626
|
for (let t = 0; t < e.length; t++) wt(e[t]);
|
1627
1627
|
}
|
1628
1628
|
function pi(e) {
|
@@ -1643,10 +1643,10 @@ function vt(e, t) {
|
|
1643
1643
|
}
|
1644
1644
|
}
|
1645
1645
|
}
|
1646
|
-
function
|
1646
|
+
function In(e) {
|
1647
1647
|
for (let t = 0; t < e.observers.length; t += 1) {
|
1648
1648
|
const r = e.observers[t];
|
1649
|
-
r.state || (r.state = bt, r.pure ? j.push(r) : ue.push(r), r.observers &&
|
1649
|
+
r.state || (r.state = bt, r.pure ? j.push(r) : ue.push(r), r.observers && In(r));
|
1650
1650
|
}
|
1651
1651
|
}
|
1652
1652
|
function We(e) {
|
@@ -1700,7 +1700,7 @@ function gi(e, t) {
|
|
1700
1700
|
() => s = V(() => (O.context = {
|
1701
1701
|
...O.context,
|
1702
1702
|
[e]: n.value
|
1703
|
-
},
|
1703
|
+
}, En(() => n.children))),
|
1704
1704
|
void 0
|
1705
1705
|
), s;
|
1706
1706
|
};
|
@@ -1809,7 +1809,7 @@ function Si(...e) {
|
|
1809
1809
|
const o = e[a];
|
1810
1810
|
t = t || !!o && pt in o, e[a] = typeof o == "function" ? (t = !0, H(o)) : o;
|
1811
1811
|
}
|
1812
|
-
if (
|
1812
|
+
if (gn && t)
|
1813
1813
|
return new Proxy(
|
1814
1814
|
{
|
1815
1815
|
get(a) {
|
@@ -1861,7 +1861,7 @@ function Si(...e) {
|
|
1861
1861
|
return s;
|
1862
1862
|
}
|
1863
1863
|
function Ti(e, ...t) {
|
1864
|
-
if (
|
1864
|
+
if (gn && pt in e) {
|
1865
1865
|
const s = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((a) => new Proxy(
|
1866
1866
|
{
|
1867
1867
|
get(o) {
|
@@ -1921,7 +1921,7 @@ var Ii = 0;
|
|
1921
1921
|
function eu() {
|
1922
1922
|
return `cl-${Ii++}`;
|
1923
1923
|
}
|
1924
|
-
var
|
1924
|
+
var kn = (e) => `Stale read from <${e}>.`;
|
1925
1925
|
function tu(e) {
|
1926
1926
|
const t = "fallback" in e && {
|
1927
1927
|
fallback: () => e.fallback
|
@@ -1946,7 +1946,7 @@ function nu(e) {
|
|
1946
1946
|
return typeof i == "function" && i.length > 0 ? V(
|
1947
1947
|
() => i(
|
1948
1948
|
t ? s : () => {
|
1949
|
-
if (!V(n)) throw
|
1949
|
+
if (!V(n)) throw kn("Show");
|
1950
1950
|
return r();
|
1951
1951
|
}
|
1952
1952
|
)
|
@@ -1959,7 +1959,7 @@ function nu(e) {
|
|
1959
1959
|
);
|
1960
1960
|
}
|
1961
1961
|
function su(e) {
|
1962
|
-
const t =
|
1962
|
+
const t = En(() => e.children), r = H(() => {
|
1963
1963
|
const n = t(), s = Array.isArray(n) ? n : [n];
|
1964
1964
|
let i = () => {
|
1965
1965
|
};
|
@@ -1983,7 +1983,7 @@ function su(e) {
|
|
1983
1983
|
return typeof o == "function" && o.length > 0 ? V(
|
1984
1984
|
() => o(
|
1985
1985
|
a.keyed ? i() : () => {
|
1986
|
-
if (V(r)()?.[0] !== s) throw
|
1986
|
+
if (V(r)()?.[0] !== s) throw kn("Match");
|
1987
1987
|
return i();
|
1988
1988
|
}
|
1989
1989
|
)
|
@@ -2233,12 +2233,12 @@ function Li(e, t = window.document) {
|
|
2233
2233
|
const r = t[Me] || (t[Me] = /* @__PURE__ */ new Set());
|
2234
2234
|
for (let n = 0, s = e.length; n < s; n++) {
|
2235
2235
|
const i = e[n];
|
2236
|
-
r.has(i) || (r.add(i), t.addEventListener(i,
|
2236
|
+
r.has(i) || (r.add(i), t.addEventListener(i, On));
|
2237
2237
|
}
|
2238
2238
|
}
|
2239
2239
|
function ou(e = window.document) {
|
2240
2240
|
if (e[Me]) {
|
2241
|
-
for (let t of e[Me].keys()) e.removeEventListener(t,
|
2241
|
+
for (let t of e[Me].keys()) e.removeEventListener(t, On);
|
2242
2242
|
delete e[Me];
|
2243
2243
|
}
|
2244
2244
|
}
|
@@ -2267,11 +2267,11 @@ function Bi(e, t, r = {}) {
|
|
2267
2267
|
let i, a;
|
2268
2268
|
for (i = 0, a = s.length; i < a; i++) {
|
2269
2269
|
const o = s[i];
|
2270
|
-
!o || o === "undefined" || t[o] || (
|
2270
|
+
!o || o === "undefined" || t[o] || (Mr(e, o, !1), delete r[o]);
|
2271
2271
|
}
|
2272
2272
|
for (i = 0, a = n.length; i < a; i++) {
|
2273
2273
|
const o = n[i], c = !!t[o];
|
2274
|
-
!o || o === "undefined" || r[o] === c || !c || (
|
2274
|
+
!o || o === "undefined" || r[o] === c || !c || (Mr(e, o, !0), r[o] = c);
|
2275
2275
|
}
|
2276
2276
|
return r;
|
2277
2277
|
}
|
@@ -2305,24 +2305,24 @@ function Gi(e, t, r, n, s = {}, i = !1) {
|
|
2305
2305
|
for (const a in s)
|
2306
2306
|
if (!(a in t)) {
|
2307
2307
|
if (a === "children") continue;
|
2308
|
-
s[a] =
|
2308
|
+
s[a] = Lr(e, a, null, s[a], r, i, t);
|
2309
2309
|
}
|
2310
2310
|
for (const a in t) {
|
2311
2311
|
if (a === "children")
|
2312
2312
|
continue;
|
2313
2313
|
const o = t[a];
|
2314
|
-
s[a] =
|
2314
|
+
s[a] = Lr(e, a, o, s[a], r, i, t);
|
2315
2315
|
}
|
2316
2316
|
}
|
2317
2317
|
function qi(e) {
|
2318
2318
|
return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
|
2319
2319
|
}
|
2320
|
-
function
|
2320
|
+
function Mr(e, t, r) {
|
2321
2321
|
const n = t.trim().split(/\s+/);
|
2322
2322
|
for (let s = 0, i = n.length; s < i; s++)
|
2323
2323
|
e.classList.toggle(n[s], r);
|
2324
2324
|
}
|
2325
|
-
function
|
2325
|
+
function Lr(e, t, r, n, s, i, a) {
|
2326
2326
|
let o, c, u, d, l;
|
2327
2327
|
if (t === "style") return Vi(e, r, n);
|
2328
2328
|
if (t === "classList") return Bi(e, r, n);
|
@@ -2354,7 +2354,7 @@ function Ur(e, t, r, n, s, i, a) {
|
|
2354
2354
|
}
|
2355
2355
|
return r;
|
2356
2356
|
}
|
2357
|
-
function
|
2357
|
+
function On(e) {
|
2358
2358
|
let t = e.target;
|
2359
2359
|
const r = `$$${e.type}`, n = e.target, s = e.currentTarget, i = (c) => Object.defineProperty(e, "target", {
|
2360
2360
|
configurable: !0,
|
@@ -2415,7 +2415,7 @@ function je(e, t, r, n, s) {
|
|
2415
2415
|
return Se(() => r = je(e, o, r, n, !0)), () => r;
|
2416
2416
|
if (o.length === 0) {
|
2417
2417
|
if (r = Ae(e, r, n), a) return r;
|
2418
|
-
} else c ? r.length === 0 ?
|
2418
|
+
} else c ? r.length === 0 ? Ur(e, o, n) : $i(e, r, o) : (r && Ae(e), Ur(e, o));
|
2419
2419
|
r = o;
|
2420
2420
|
} else if (t.nodeType) {
|
2421
2421
|
if (Array.isArray(r)) {
|
@@ -2452,7 +2452,7 @@ function ar(e, t, r, n) {
|
|
2452
2452
|
}
|
2453
2453
|
return s;
|
2454
2454
|
}
|
2455
|
-
function
|
2455
|
+
function Ur(e, t, r = null) {
|
2456
2456
|
for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
|
2457
2457
|
}
|
2458
2458
|
function Ae(e, t, r, n) {
|
@@ -2471,13 +2471,13 @@ function Ae(e, t, r, n) {
|
|
2471
2471
|
return [s];
|
2472
2472
|
}
|
2473
2473
|
var Ji = "http://www.w3.org/2000/svg";
|
2474
|
-
function
|
2474
|
+
function Rn(e, t = !1) {
|
2475
2475
|
return t ? document.createElementNS(Ji, e) : document.createElement(e);
|
2476
2476
|
}
|
2477
2477
|
function cu(e) {
|
2478
2478
|
const { useShadow: t } = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = ui();
|
2479
2479
|
let i;
|
2480
|
-
return
|
2480
|
+
return vn(
|
2481
2481
|
() => {
|
2482
2482
|
i || (i = di(s, () => H(() => e.children)));
|
2483
2483
|
const a = n();
|
@@ -2485,7 +2485,7 @@ function cu(e) {
|
|
2485
2485
|
const [o, c] = Q(!1), u = () => c(!0);
|
2486
2486
|
Ee((d) => ir(a, () => o() ? d() : i(), null)), Ve(u);
|
2487
2487
|
} else {
|
2488
|
-
const o =
|
2488
|
+
const o = Rn(e.isSVG ? "g" : "div", e.isSVG), c = t && o.attachShadow ? o.attachShadow({
|
2489
2489
|
mode: "open"
|
2490
2490
|
}) : o;
|
2491
2491
|
Object.defineProperty(o, "_$host", {
|
@@ -2510,7 +2510,7 @@ function zi(e, t) {
|
|
2510
2510
|
case "function":
|
2511
2511
|
return V(() => n(t));
|
2512
2512
|
case "string":
|
2513
|
-
const s = xi.has(n), i =
|
2513
|
+
const s = xi.has(n), i = Rn(n, s);
|
2514
2514
|
return Wi(i, t, s), i;
|
2515
2515
|
}
|
2516
2516
|
});
|
@@ -2535,7 +2535,7 @@ var Qi = class {
|
|
2535
2535
|
clear() {
|
2536
2536
|
this.keyToValue.clear(), this.valueToKey.clear();
|
2537
2537
|
}
|
2538
|
-
},
|
2538
|
+
}, _n = class {
|
2539
2539
|
constructor(e) {
|
2540
2540
|
this.generateIdentifier = e, this.kv = new Qi();
|
2541
2541
|
}
|
@@ -2551,7 +2551,7 @@ var Qi = class {
|
|
2551
2551
|
getValue(e) {
|
2552
2552
|
return this.kv.getByKey(e);
|
2553
2553
|
}
|
2554
|
-
}, Yi = class extends
|
2554
|
+
}, Yi = class extends _n {
|
2555
2555
|
constructor() {
|
2556
2556
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
2557
2557
|
}
|
@@ -2587,7 +2587,7 @@ function Ne(e, t) {
|
|
2587
2587
|
function ut(e, t) {
|
2588
2588
|
return e.indexOf(t) !== -1;
|
2589
2589
|
}
|
2590
|
-
function
|
2590
|
+
function Fr(e, t) {
|
2591
2591
|
for (let r = 0; r < e.length; r++) {
|
2592
2592
|
const n = e[r];
|
2593
2593
|
if (t(n))
|
@@ -2607,7 +2607,7 @@ var ea = class {
|
|
2607
2607
|
findByName(e) {
|
2608
2608
|
return this.transfomers[e];
|
2609
2609
|
}
|
2610
|
-
}, ta = (e) => Object.prototype.toString.call(e).slice(8, -1),
|
2610
|
+
}, ta = (e) => Object.prototype.toString.call(e).slice(8, -1), Cn = (e) => typeof e > "u", ra = (e) => e === null, Ge = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, or = (e) => Ge(e) && Object.keys(e).length === 0, ge = (e) => Array.isArray(e), na = (e) => typeof e == "string", sa = (e) => typeof e == "number" && !isNaN(e), ia = (e) => typeof e == "boolean", aa = (e) => e instanceof RegExp, qe = (e) => e instanceof Map, Je = (e) => e instanceof Set, Nn = (e) => ta(e) === "Symbol", oa = (e) => e instanceof Date && !isNaN(e.valueOf()), ca = (e) => e instanceof Error, Kr = (e) => typeof e == "number" && isNaN(e), la = (e) => ia(e) || ra(e) || Cn(e) || sa(e) || na(e) || Nn(e), ua = (e) => typeof e == "bigint", da = (e) => e === 1 / 0 || e === -1 / 0, fa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ha = (e) => e instanceof URL, Pn = (e) => e.replace(/\./g, "\\."), Ut = (e) => e.map(String).map(Pn).join("."), Le = (e) => {
|
2611
2611
|
const t = [];
|
2612
2612
|
let r = "";
|
2613
2613
|
for (let s = 0; s < e.length; s++) {
|
@@ -2633,8 +2633,8 @@ function re(e, t, r, n) {
|
|
2633
2633
|
untransform: n
|
2634
2634
|
};
|
2635
2635
|
}
|
2636
|
-
var
|
2637
|
-
re(
|
2636
|
+
var xn = [
|
2637
|
+
re(Cn, "undefined", () => null, () => {
|
2638
2638
|
}),
|
2639
2639
|
re(ua, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
|
2640
2640
|
re(oa, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
@@ -2665,7 +2665,7 @@ var Dn = [
|
|
2665
2665
|
(e) => new Set(e)
|
2666
2666
|
),
|
2667
2667
|
re(qe, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
2668
|
-
re((e) =>
|
2668
|
+
re((e) => Kr(e) || da(e), "number", (e) => Kr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
2669
2669
|
re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
2670
2670
|
re(ha, "URL", (e) => e.toString(), (e) => new URL(e))
|
2671
2671
|
];
|
@@ -2677,7 +2677,7 @@ function Ct(e, t, r, n) {
|
|
2677
2677
|
untransform: n
|
2678
2678
|
};
|
2679
2679
|
}
|
2680
|
-
var
|
2680
|
+
var Dn = Ct((e, t) => Nn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
|
2681
2681
|
const n = r.symbolRegistry.getValue(t[1]);
|
2682
2682
|
if (!n)
|
2683
2683
|
throw new Error("Trying to deserialize unknown symbol");
|
@@ -2692,16 +2692,16 @@ var $n = Ct((e, t) => Pn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
2692
2692
|
Float32Array,
|
2693
2693
|
Float64Array,
|
2694
2694
|
Uint8ClampedArray
|
2695
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
2695
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), $n = Ct(fa, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
2696
2696
|
const r = ma[t[1]];
|
2697
2697
|
if (!r)
|
2698
2698
|
throw new Error("Trying to deserialize unknown typed array");
|
2699
2699
|
return new r(e);
|
2700
2700
|
});
|
2701
|
-
function
|
2701
|
+
function Mn(e, t) {
|
2702
2702
|
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
2703
2703
|
}
|
2704
|
-
var
|
2704
|
+
var Ln = Ct(Mn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
2705
2705
|
const r = t.classRegistry.getAllowedProps(e.constructor);
|
2706
2706
|
if (!r)
|
2707
2707
|
return { ...e };
|
@@ -2714,44 +2714,44 @@ var Un = Ct(Ln, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
2714
2714
|
if (!n)
|
2715
2715
|
throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
|
2716
2716
|
return Object.assign(Object.create(n.prototype), e);
|
2717
|
-
}),
|
2717
|
+
}), Un = Ct((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
|
2718
2718
|
const n = r.customTransformerRegistry.findByName(t[1]);
|
2719
2719
|
if (!n)
|
2720
2720
|
throw new Error("Trying to deserialize unknown custom value");
|
2721
2721
|
return n.deserialize(e);
|
2722
|
-
}), ya = [
|
2723
|
-
const r =
|
2722
|
+
}), ya = [Ln, Dn, Un, $n], Hr = (e, t) => {
|
2723
|
+
const r = Fr(ya, (s) => s.isApplicable(e, t));
|
2724
2724
|
if (r)
|
2725
2725
|
return {
|
2726
2726
|
value: r.transform(e, t),
|
2727
2727
|
type: r.annotation(e, t)
|
2728
2728
|
};
|
2729
|
-
const n =
|
2729
|
+
const n = Fr(xn, (s) => s.isApplicable(e, t));
|
2730
2730
|
if (n)
|
2731
2731
|
return {
|
2732
2732
|
value: n.transform(e, t),
|
2733
2733
|
type: n.annotation
|
2734
2734
|
};
|
2735
|
-
},
|
2736
|
-
|
2737
|
-
|
2735
|
+
}, Fn = {};
|
2736
|
+
xn.forEach((e) => {
|
2737
|
+
Fn[e.annotation] = e;
|
2738
2738
|
});
|
2739
2739
|
var pa = (e, t, r) => {
|
2740
2740
|
if (ge(t))
|
2741
2741
|
switch (t[0]) {
|
2742
2742
|
case "symbol":
|
2743
|
-
return
|
2743
|
+
return Dn.untransform(e, t, r);
|
2744
2744
|
case "class":
|
2745
|
-
return
|
2745
|
+
return Ln.untransform(e, t, r);
|
2746
2746
|
case "custom":
|
2747
|
-
return
|
2747
|
+
return Un.untransform(e, t, r);
|
2748
2748
|
case "typed-array":
|
2749
|
-
return
|
2749
|
+
return $n.untransform(e, t, r);
|
2750
2750
|
default:
|
2751
2751
|
throw new Error("Unknown transformation: " + t);
|
2752
2752
|
}
|
2753
2753
|
else {
|
2754
|
-
const n =
|
2754
|
+
const n = Fn[t];
|
2755
2755
|
if (!n)
|
2756
2756
|
throw new Error("Unknown transformation: " + t);
|
2757
2757
|
return n.untransform(e, r);
|
@@ -2762,7 +2762,7 @@ var pa = (e, t, r) => {
|
|
2762
2762
|
r.next(), t--;
|
2763
2763
|
return r.next().value;
|
2764
2764
|
};
|
2765
|
-
function
|
2765
|
+
function Kn(e) {
|
2766
2766
|
if (ut(e, "__proto__"))
|
2767
2767
|
throw new Error("__proto__ is not allowed as a property");
|
2768
2768
|
if (ut(e, "prototype"))
|
@@ -2771,7 +2771,7 @@ function Hn(e) {
|
|
2771
2771
|
throw new Error("constructor is not allowed as a property");
|
2772
2772
|
}
|
2773
2773
|
var ga = (e, t) => {
|
2774
|
-
|
2774
|
+
Kn(t);
|
2775
2775
|
for (let r = 0; r < t.length; r++) {
|
2776
2776
|
const n = t[r];
|
2777
2777
|
if (Je(e))
|
@@ -2791,7 +2791,7 @@ var ga = (e, t) => {
|
|
2791
2791
|
}
|
2792
2792
|
return e;
|
2793
2793
|
}, cr = (e, t, r) => {
|
2794
|
-
if (
|
2794
|
+
if (Kn(t), t.length === 0)
|
2795
2795
|
return r(e);
|
2796
2796
|
let n = e;
|
2797
2797
|
for (let i = 0; i < t.length - 1; i++) {
|
@@ -2872,7 +2872,7 @@ function wa(e, t) {
|
|
2872
2872
|
Ne(t, r);
|
2873
2873
|
return e;
|
2874
2874
|
}
|
2875
|
-
var va = (e, t) => Ge(e) || ge(e) || qe(e) || Je(e) ||
|
2875
|
+
var va = (e, t) => Ge(e) || ge(e) || qe(e) || Je(e) || Mn(e, t);
|
2876
2876
|
function Ea(e, t, r) {
|
2877
2877
|
const n = r.get(e);
|
2878
2878
|
n ? n.push(t) : r.set(e, [t]);
|
@@ -2888,7 +2888,7 @@ function Sa(e, t) {
|
|
2888
2888
|
i.length === 0 ? n = a.map(Ut) : r[Ut(i)] = a.map(Ut);
|
2889
2889
|
}), n ? or(r) ? [n] : [n, r] : or(r) ? void 0 : r;
|
2890
2890
|
}
|
2891
|
-
var
|
2891
|
+
var Hn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
2892
2892
|
const o = la(e);
|
2893
2893
|
if (!o) {
|
2894
2894
|
Ea(e, s, t);
|
@@ -2899,7 +2899,7 @@ var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
2899
2899
|
} : h;
|
2900
2900
|
}
|
2901
2901
|
if (!va(e, r)) {
|
2902
|
-
const h =
|
2902
|
+
const h = Hr(e, r), m = h ? {
|
2903
2903
|
transformedValue: h.value,
|
2904
2904
|
annotations: [h.type]
|
2905
2905
|
} : {
|
@@ -2911,13 +2911,13 @@ var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
2911
2911
|
return {
|
2912
2912
|
transformedValue: null
|
2913
2913
|
};
|
2914
|
-
const c =
|
2914
|
+
const c = Hr(e, r), u = c?.value ?? e, d = ge(u) ? [] : {}, l = {};
|
2915
2915
|
Ne(u, (h, m) => {
|
2916
2916
|
if (m === "__proto__" || m === "constructor" || m === "prototype")
|
2917
2917
|
throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
|
2918
|
-
const p =
|
2918
|
+
const p = Hn(h, t, r, n, [...s, m], [...i, e], a);
|
2919
2919
|
d[m] = p.transformedValue, ge(p.annotations) ? l[m] = p.annotations : Ge(p.annotations) && Ne(p.annotations, (b, w) => {
|
2920
|
-
l[
|
2920
|
+
l[Pn(m) + "." + w] = b;
|
2921
2921
|
});
|
2922
2922
|
});
|
2923
2923
|
const f = or(l) ? {
|
@@ -2929,14 +2929,14 @@ var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
2929
2929
|
};
|
2930
2930
|
return o || a.set(e, f), f;
|
2931
2931
|
};
|
2932
|
-
function
|
2932
|
+
function Bn(e) {
|
2933
2933
|
return Object.prototype.toString.call(e).slice(8, -1);
|
2934
2934
|
}
|
2935
|
-
function
|
2936
|
-
return
|
2935
|
+
function Br(e) {
|
2936
|
+
return Bn(e) === "Array";
|
2937
2937
|
}
|
2938
2938
|
function Ta(e) {
|
2939
|
-
if (
|
2939
|
+
if (Bn(e) !== "Object")
|
2940
2940
|
return !1;
|
2941
2941
|
const t = Object.getPrototypeOf(e);
|
2942
2942
|
return !!t && t.constructor === Object && t === Object.prototype;
|
@@ -2951,13 +2951,13 @@ function Aa(e, t, r, n, s) {
|
|
2951
2951
|
});
|
2952
2952
|
}
|
2953
2953
|
function ur(e, t = {}) {
|
2954
|
-
if (
|
2954
|
+
if (Br(e))
|
2955
2955
|
return e.map((s) => ur(s, t));
|
2956
2956
|
if (!Ta(e))
|
2957
2957
|
return e;
|
2958
2958
|
const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
|
2959
2959
|
return [...r, ...n].reduce((s, i) => {
|
2960
|
-
if (
|
2960
|
+
if (Br(t.props) && !t.props.includes(i))
|
2961
2961
|
return s;
|
2962
2962
|
const a = e[i], o = ur(a, t);
|
2963
2963
|
return Aa(s, i, o, e, t.nonenumerable), s;
|
@@ -2968,10 +2968,10 @@ var N = class {
|
|
2968
2968
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
2969
2969
|
*/
|
2970
2970
|
constructor({ dedupe: e = !1 } = {}) {
|
2971
|
-
this.classRegistry = new Yi(), this.symbolRegistry = new
|
2971
|
+
this.classRegistry = new Yi(), this.symbolRegistry = new _n((t) => t.description ?? ""), this.customTransformerRegistry = new ea(), this.allowedErrorProps = [], this.dedupe = e;
|
2972
2972
|
}
|
2973
2973
|
serialize(e) {
|
2974
|
-
const t = /* @__PURE__ */ new Map(), r =
|
2974
|
+
const t = /* @__PURE__ */ new Map(), r = Hn(e, t, this, this.dedupe), n = {
|
2975
2975
|
json: r.transformedValue
|
2976
2976
|
};
|
2977
2977
|
r.annotations && (n.meta = {
|
@@ -3048,13 +3048,13 @@ var pu = (e, t = !1) => {
|
|
3048
3048
|
json: r
|
3049
3049
|
} = Ia(e);
|
3050
3050
|
return JSON.stringify(r, null, t ? 2 : void 0);
|
3051
|
-
}, et = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ka = (e, t) => e.queryHash.localeCompare(t.queryHash),
|
3051
|
+
}, et = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ka = (e, t) => e.queryHash.localeCompare(t.queryHash), Vn = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Oa = (e, t) => et(e) === et(t) ? Vn(e, t) : et(e) > et(t) ? 1 : -1, gu = {
|
3052
3052
|
status: Oa,
|
3053
3053
|
"query hash": ka,
|
3054
|
-
"last updated":
|
3055
|
-
}, tt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3,
|
3054
|
+
"last updated": Vn
|
3055
|
+
}, tt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Wn = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Ra = (e, t) => tt(e) === tt(t) ? Wn(e, t) : tt(e) > tt(t) ? 1 : -1, bu = {
|
3056
3056
|
status: Ra,
|
3057
|
-
"last updated":
|
3057
|
+
"last updated": Wn
|
3058
3058
|
}, wu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), vu = () => {
|
3059
3059
|
const [e, t] = Q("dark");
|
3060
3060
|
return li(() => {
|
@@ -3179,7 +3179,7 @@ var pu = (e, t = !1) => {
|
|
3179
3179
|
const t = Mi(() => {
|
3180
3180
|
const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [a] = this.#u, [o] = this.#e;
|
3181
3181
|
let c;
|
3182
|
-
return this.#d ? c = this.#d : (c = Ai(() => import("./I3HPI4QX.
|
3182
|
+
return this.#d ? c = this.#d : (c = Ai(() => import("./I3HPI4QX.B69lq-LG.js")), this.#d = c), _a(this.#o, this.#a), vi(c, Si({
|
3183
3183
|
get queryFlavor() {
|
3184
3184
|
return r.#r;
|
3185
3185
|
},
|
@@ -3274,7 +3274,7 @@ const Ue = {
|
|
3274
3274
|
CODE: "code",
|
3275
3275
|
REFRESH_TOKEN: "refresh_token",
|
3276
3276
|
PASSKEY: "passkey"
|
3277
|
-
},
|
3277
|
+
}, jn = {
|
3278
3278
|
CLIENT_ID: "X-Auth-ClientId"
|
3279
3279
|
}, K = {
|
3280
3280
|
ALG: "RS256",
|
@@ -3345,12 +3345,12 @@ let dr = class extends be {
|
|
3345
3345
|
}
|
3346
3346
|
};
|
3347
3347
|
D(dr, "code", "ERR_JWT_EXPIRED");
|
3348
|
-
let
|
3348
|
+
let Gn = class extends be {
|
3349
3349
|
constructor() {
|
3350
3350
|
super(...arguments), D(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
3351
3351
|
}
|
3352
3352
|
};
|
3353
|
-
D(
|
3353
|
+
D(Gn, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
3354
3354
|
let ye = class extends be {
|
3355
3355
|
constructor() {
|
3356
3356
|
super(...arguments), D(this, "code", "ERR_JOSE_NOT_SUPPORTED");
|
@@ -3369,12 +3369,12 @@ let ne = class extends be {
|
|
3369
3369
|
}
|
3370
3370
|
};
|
3371
3371
|
D(ne, "code", "ERR_JWT_INVALID");
|
3372
|
-
let
|
3372
|
+
let qn = class extends be {
|
3373
3373
|
constructor(t = "signature verification failed", r) {
|
3374
3374
|
super(t, r), D(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
3375
3375
|
}
|
3376
3376
|
};
|
3377
|
-
D(
|
3377
|
+
D(qn, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
|
3378
3378
|
function oe(e, t = "algorithm.name") {
|
3379
3379
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
3380
3380
|
}
|
@@ -3453,7 +3453,7 @@ function Ka(e, t, r) {
|
|
3453
3453
|
}
|
3454
3454
|
Fa(e, r);
|
3455
3455
|
}
|
3456
|
-
function
|
3456
|
+
function Jn(e, t, ...r) {
|
3457
3457
|
var n;
|
3458
3458
|
if (r = r.filter(Boolean), r.length > 2) {
|
3459
3459
|
const s = r.pop();
|
@@ -3461,17 +3461,17 @@ function zn(e, t, ...r) {
|
|
3461
3461
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
3462
3462
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (n = t.constructor) != null && n.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
3463
3463
|
}
|
3464
|
-
const Ha = (e, ...t) =>
|
3465
|
-
function
|
3466
|
-
return
|
3464
|
+
const Ha = (e, ...t) => Jn("Key must be ", e, ...t);
|
3465
|
+
function zn(e, t, ...r) {
|
3466
|
+
return Jn(`Key for the ${e} algorithm must be `, t, ...r);
|
3467
3467
|
}
|
3468
|
-
function
|
3468
|
+
function Qn(e) {
|
3469
3469
|
return e?.[Symbol.toStringTag] === "CryptoKey";
|
3470
3470
|
}
|
3471
|
-
function
|
3471
|
+
function Yn(e) {
|
3472
3472
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
3473
3473
|
}
|
3474
|
-
const
|
3474
|
+
const Xn = (e) => Qn(e) || Yn(e), Ba = (...e) => {
|
3475
3475
|
const t = e.filter(Boolean);
|
3476
3476
|
if (t.length === 0 || t.length === 1)
|
3477
3477
|
return !0;
|
@@ -3696,7 +3696,7 @@ function to(e) {
|
|
3696
3696
|
return e.kty === "oct" && typeof e.k == "string";
|
3697
3697
|
}
|
3698
3698
|
let pe;
|
3699
|
-
const
|
3699
|
+
const Vr = async (e, t, r, n = !1) => {
|
3700
3700
|
pe || (pe = /* @__PURE__ */ new WeakMap());
|
3701
3701
|
let s = pe.get(e);
|
3702
3702
|
if (s != null && s[r])
|
@@ -3790,9 +3790,9 @@ const Wr = async (e, t, r, n = !1) => {
|
|
3790
3790
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
3791
3791
|
return n ? n[t] = a : pe.set(e, { [t]: a }), a;
|
3792
3792
|
}, no = async (e, t) => {
|
3793
|
-
if (e instanceof Uint8Array ||
|
3793
|
+
if (e instanceof Uint8Array || Qn(e))
|
3794
3794
|
return e;
|
3795
|
-
if (
|
3795
|
+
if (Yn(e)) {
|
3796
3796
|
if (e.type === "secret")
|
3797
3797
|
return e.export();
|
3798
3798
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
@@ -3803,10 +3803,10 @@ const Wr = async (e, t, r, n = !1) => {
|
|
3803
3803
|
throw n;
|
3804
3804
|
}
|
3805
3805
|
let r = e.export({ format: "jwk" });
|
3806
|
-
return
|
3806
|
+
return Vr(e, r, t);
|
3807
3807
|
}
|
3808
3808
|
if (wr(e))
|
3809
|
-
return e.k ? Fe(e.k) :
|
3809
|
+
return e.k ? Fe(e.k) : Vr(e, e, t, !0);
|
3810
3810
|
throw new Error("unreachable");
|
3811
3811
|
}, _e = (e) => e?.[Symbol.toStringTag], fr = (e, t, r) => {
|
3812
3812
|
var n, s;
|
@@ -3859,8 +3859,8 @@ const Wr = async (e, t, r, n = !1) => {
|
|
3859
3859
|
return;
|
3860
3860
|
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');
|
3861
3861
|
}
|
3862
|
-
if (!
|
3863
|
-
throw new TypeError(
|
3862
|
+
if (!Xn(t))
|
3863
|
+
throw new TypeError(zn(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
|
3864
3864
|
if (t.type !== "secret")
|
3865
3865
|
throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
|
3866
3866
|
}
|
@@ -3878,8 +3878,8 @@ const Wr = async (e, t, r, n = !1) => {
|
|
3878
3878
|
return;
|
3879
3879
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
3880
3880
|
}
|
3881
|
-
if (!
|
3882
|
-
throw new TypeError(
|
3881
|
+
if (!Xn(t))
|
3882
|
+
throw new TypeError(zn(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
3883
3883
|
if (t.type === "secret")
|
3884
3884
|
throw new TypeError(`${_e(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
3885
3885
|
if (t.type === "public")
|
@@ -3975,7 +3975,7 @@ async function uo(e, t, r) {
|
|
3975
3975
|
throw new M('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
3976
3976
|
const c = r && Xa("algorithms", r.algorithms);
|
3977
3977
|
if (c && !c.has(o))
|
3978
|
-
throw new
|
3978
|
+
throw new Gn('"alg" (Algorithm) Header Parameter value not allowed');
|
3979
3979
|
if (a) {
|
3980
3980
|
if (typeof e.payload != "string")
|
3981
3981
|
throw new M("JWS Payload must be a string");
|
@@ -3992,7 +3992,7 @@ async function uo(e, t, r) {
|
|
3992
3992
|
}
|
3993
3993
|
const f = await no(t, o);
|
3994
3994
|
if (!await lo(o, f, l, d))
|
3995
|
-
throw new
|
3995
|
+
throw new qn();
|
3996
3996
|
let h;
|
3997
3997
|
if (a)
|
3998
3998
|
try {
|
@@ -4013,7 +4013,7 @@ async function fo(e, t, r) {
|
|
4013
4013
|
const o = await uo({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
|
4014
4014
|
return typeof t == "function" ? { ...c, key: o.key } : c;
|
4015
4015
|
}
|
4016
|
-
const ho = (e) => Math.floor(e.getTime() / 1e3),
|
4016
|
+
const ho = (e) => Math.floor(e.getTime() / 1e3), Zn = 60, es = Zn * 60, vr = es * 24, mo = vr * 7, yo = vr * 365.25, po = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Wr = (e) => {
|
4017
4017
|
const t = po.exec(e);
|
4018
4018
|
if (!t || t[4] && t[1])
|
4019
4019
|
throw new TypeError("Invalid time period format");
|
@@ -4032,14 +4032,14 @@ const ho = (e) => Math.floor(e.getTime() / 1e3), es = 60, ts = es * 60, vr = ts
|
|
4032
4032
|
case "min":
|
4033
4033
|
case "mins":
|
4034
4034
|
case "m":
|
4035
|
-
s = Math.round(r *
|
4035
|
+
s = Math.round(r * Zn);
|
4036
4036
|
break;
|
4037
4037
|
case "hour":
|
4038
4038
|
case "hours":
|
4039
4039
|
case "hr":
|
4040
4040
|
case "hrs":
|
4041
4041
|
case "h":
|
4042
|
-
s = Math.round(r *
|
4042
|
+
s = Math.round(r * es);
|
4043
4043
|
break;
|
4044
4044
|
case "day":
|
4045
4045
|
case "days":
|
@@ -4056,7 +4056,7 @@ const ho = (e) => Math.floor(e.getTime() / 1e3), es = 60, ts = es * 60, vr = ts
|
|
4056
4056
|
break;
|
4057
4057
|
}
|
4058
4058
|
return t[1] === "-" || t[4] === "ago" ? -s : s;
|
4059
|
-
},
|
4059
|
+
}, jr = (e) => e.toLowerCase().replace(/^application\//, ""), go = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
4060
4060
|
function bo(e, t, r = {}) {
|
4061
4061
|
let n;
|
4062
4062
|
try {
|
@@ -4066,7 +4066,7 @@ function bo(e, t, r = {}) {
|
|
4066
4066
|
if (!ze(n))
|
4067
4067
|
throw new ne("JWT Claims Set must be a top-level JSON object");
|
4068
4068
|
const { typ: s } = r;
|
4069
|
-
if (s && (typeof e.typ != "string" ||
|
4069
|
+
if (s && (typeof e.typ != "string" || jr(e.typ) !== jr(s)))
|
4070
4070
|
throw new Z('unexpected "typ" JWT header value', n, "typ", "check_failed");
|
4071
4071
|
const { requiredClaims: i = [], issuer: a, subject: o, audience: c, maxTokenAge: u } = r, d = [...i];
|
4072
4072
|
u !== void 0 && d.push("iat"), c !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), a !== void 0 && d.push("iss");
|
@@ -4082,7 +4082,7 @@ function bo(e, t, r = {}) {
|
|
4082
4082
|
let l;
|
4083
4083
|
switch (typeof r.clockTolerance) {
|
4084
4084
|
case "string":
|
4085
|
-
l =
|
4085
|
+
l = Wr(r.clockTolerance);
|
4086
4086
|
break;
|
4087
4087
|
case "number":
|
4088
4088
|
l = r.clockTolerance;
|
@@ -4109,7 +4109,7 @@ function bo(e, t, r = {}) {
|
|
4109
4109
|
throw new dr('"exp" claim timestamp check failed', n, "exp", "check_failed");
|
4110
4110
|
}
|
4111
4111
|
if (u) {
|
4112
|
-
const m = h - n.iat, p = typeof u == "number" ? u :
|
4112
|
+
const m = h - n.iat, p = typeof u == "number" ? u : Wr(u);
|
4113
4113
|
if (m - l > p)
|
4114
4114
|
throw new dr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
|
4115
4115
|
if (m < 0 - l)
|
@@ -4182,26 +4182,26 @@ function Ao() {
|
|
4182
4182
|
}
|
4183
4183
|
return Kt(To);
|
4184
4184
|
}
|
4185
|
-
const Io = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
4186
|
-
function
|
4185
|
+
const Io = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Gr = { randomUUID: Io };
|
4186
|
+
function qr(e, t, r) {
|
4187
4187
|
var n;
|
4188
|
-
if (
|
4189
|
-
return
|
4188
|
+
if (Gr.randomUUID && !e)
|
4189
|
+
return Gr.randomUUID();
|
4190
4190
|
e = e || {};
|
4191
4191
|
const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Ao();
|
4192
4192
|
if (s.length < 16)
|
4193
4193
|
throw new Error("Random bytes length must be >= 16");
|
4194
4194
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, So(s);
|
4195
4195
|
}
|
4196
|
-
const
|
4196
|
+
const Jr = globalThis.crypto, ko = (e) => `${qr()}${qr()}`.slice(0, e), Oo = (e) => btoa(
|
4197
4197
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
4198
4198
|
);
|
4199
4199
|
async function Ro(e) {
|
4200
|
-
if (!
|
4200
|
+
if (!Jr.subtle)
|
4201
4201
|
throw new Error(
|
4202
4202
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
4203
4203
|
);
|
4204
|
-
const t = new TextEncoder().encode(e), r = await
|
4204
|
+
const t = new TextEncoder().encode(e), r = await Jr.subtle.digest("SHA-256", t);
|
4205
4205
|
return Oo(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
4206
4206
|
}
|
4207
4207
|
async function _o(e) {
|
@@ -4211,7 +4211,7 @@ async function _o(e) {
|
|
4211
4211
|
code_challenge: r
|
4212
4212
|
};
|
4213
4213
|
}
|
4214
|
-
const
|
4214
|
+
const ts = on(null);
|
4215
4215
|
var Co = Object.defineProperty, No = (e, t, r) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t, r) => No(e, typeof t != "symbol" ? t + "" : t, r);
|
4216
4216
|
/*!
|
4217
4217
|
@versini/auth-provider v8.0.4
|
@@ -4245,7 +4245,7 @@ function Er() {
|
|
4245
4245
|
const Po = {
|
4246
4246
|
stubThis: (e) => e
|
4247
4247
|
};
|
4248
|
-
function
|
4248
|
+
function rs(e) {
|
4249
4249
|
const { id: t } = e;
|
4250
4250
|
return {
|
4251
4251
|
...e,
|
@@ -4258,7 +4258,7 @@ function ns(e) {
|
|
4258
4258
|
transports: e.transports
|
4259
4259
|
};
|
4260
4260
|
}
|
4261
|
-
function
|
4261
|
+
function ns(e) {
|
4262
4262
|
return (
|
4263
4263
|
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
4264
4264
|
e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
|
@@ -4332,7 +4332,7 @@ function xo({ error: e, options: t }) {
|
|
4332
4332
|
});
|
4333
4333
|
if (e.name === "SecurityError") {
|
4334
4334
|
const n = globalThis.location.hostname;
|
4335
|
-
if (
|
4335
|
+
if (ns(n)) {
|
4336
4336
|
if (r.rp.id !== n)
|
4337
4337
|
return new F({
|
4338
4338
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
@@ -4384,8 +4384,8 @@ class Do {
|
|
4384
4384
|
}
|
4385
4385
|
}
|
4386
4386
|
}
|
4387
|
-
const
|
4388
|
-
function
|
4387
|
+
const ss = new Do(), $o = ["cross-platform", "platform"];
|
4388
|
+
function is(e) {
|
4389
4389
|
if (e && !($o.indexOf(e) < 0))
|
4390
4390
|
return e;
|
4391
4391
|
}
|
@@ -4401,9 +4401,9 @@ async function Mo(e) {
|
|
4401
4401
|
...t.user,
|
4402
4402
|
id: St(t.user.id)
|
4403
4403
|
},
|
4404
|
-
excludeCredentials: t.excludeCredentials?.map(
|
4404
|
+
excludeCredentials: t.excludeCredentials?.map(rs)
|
4405
4405
|
}, s = {};
|
4406
|
-
r && (s.mediation = "conditional"), s.publicKey = n, s.signal =
|
4406
|
+
r && (s.mediation = "conditional"), s.publicKey = n, s.signal = ss.createNewAbortSignal();
|
4407
4407
|
let i;
|
4408
4408
|
try {
|
4409
4409
|
i = await navigator.credentials.create(s);
|
@@ -4450,7 +4450,7 @@ async function Mo(e) {
|
|
4450
4450
|
},
|
4451
4451
|
type: u,
|
4452
4452
|
clientExtensionResults: i.getClientExtensionResults(),
|
4453
|
-
authenticatorAttachment:
|
4453
|
+
authenticatorAttachment: is(i.authenticatorAttachment)
|
4454
4454
|
};
|
4455
4455
|
}
|
4456
4456
|
function Bt(e, t) {
|
@@ -4486,7 +4486,7 @@ function Uo({ error: e, options: t }) {
|
|
4486
4486
|
});
|
4487
4487
|
if (e.name === "SecurityError") {
|
4488
4488
|
const n = globalThis.location.hostname;
|
4489
|
-
if (
|
4489
|
+
if (ns(n)) {
|
4490
4490
|
if (r.rpId !== n)
|
4491
4491
|
return new F({
|
4492
4492
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
@@ -4513,7 +4513,7 @@ async function Fo(e) {
|
|
4513
4513
|
if (!Er())
|
4514
4514
|
throw new Error("WebAuthn is not supported in this browser");
|
4515
4515
|
let s;
|
4516
|
-
t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(
|
4516
|
+
t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(rs));
|
4517
4517
|
const i = {
|
4518
4518
|
...t,
|
4519
4519
|
challenge: St(t.challenge),
|
@@ -4526,7 +4526,7 @@ async function Fo(e) {
|
|
4526
4526
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
4527
4527
|
a.mediation = "conditional", i.allowCredentials = [];
|
4528
4528
|
}
|
4529
|
-
a.publicKey = i, a.signal =
|
4529
|
+
a.publicKey = i, a.signal = ss.createNewAbortSignal();
|
4530
4530
|
let o;
|
4531
4531
|
try {
|
4532
4532
|
o = await navigator.credentials.get(a);
|
@@ -4548,29 +4548,29 @@ async function Fo(e) {
|
|
4548
4548
|
},
|
4549
4549
|
type: l,
|
4550
4550
|
clientExtensionResults: o.getClientExtensionResults(),
|
4551
|
-
authenticatorAttachment:
|
4551
|
+
authenticatorAttachment: is(o.authenticatorAttachment)
|
4552
4552
|
};
|
4553
4553
|
}
|
4554
|
-
function
|
4554
|
+
function as(e, t) {
|
4555
4555
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
4556
4556
|
}
|
4557
|
-
const
|
4557
|
+
const zr = (e, t) => {
|
4558
4558
|
const r = JSON.stringify(
|
4559
4559
|
typeof t == "function" ? t() : t
|
4560
4560
|
);
|
4561
|
-
window.localStorage.setItem(e, r),
|
4561
|
+
window.localStorage.setItem(e, r), as(e, r);
|
4562
4562
|
}, Ko = (e) => {
|
4563
|
-
window.localStorage.removeItem(e),
|
4564
|
-
},
|
4563
|
+
window.localStorage.removeItem(e), as(e, null);
|
4564
|
+
}, Qr = (e) => window.localStorage.getItem(e), Ho = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
4565
4565
|
function it({
|
4566
4566
|
key: e,
|
4567
4567
|
initialValue: t
|
4568
4568
|
}) {
|
4569
|
-
const r = Ns(Ho, () =>
|
4569
|
+
const r = Ns(Ho, () => Qr(e)), n = le(
|
4570
4570
|
(a) => {
|
4571
4571
|
try {
|
4572
4572
|
const o = typeof a == "function" ? a(JSON.parse(r)) : a;
|
4573
|
-
o == null ? Ko(e) :
|
4573
|
+
o == null ? Ko(e) : zr(e, o);
|
4574
4574
|
} catch (o) {
|
4575
4575
|
console.warn(o);
|
4576
4576
|
}
|
@@ -4583,7 +4583,7 @@ function it({
|
|
4583
4583
|
}, [n]);
|
4584
4584
|
return X(() => {
|
4585
4585
|
try {
|
4586
|
-
|
4586
|
+
Qr(e) === null && typeof t < "u" && zr(e, t);
|
4587
4587
|
} catch (a) {
|
4588
4588
|
console.warn(a);
|
4589
4589
|
}
|
@@ -4605,17 +4605,17 @@ function Wo() {
|
|
4605
4605
|
}
|
4606
4606
|
return Wt(Vo);
|
4607
4607
|
}
|
4608
|
-
const jo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
4608
|
+
const jo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: jo };
|
4609
4609
|
function jt(e, t, r) {
|
4610
|
-
if (
|
4611
|
-
return
|
4610
|
+
if (Yr.randomUUID && !e)
|
4611
|
+
return Yr.randomUUID();
|
4612
4612
|
e = e || {};
|
4613
4613
|
const n = e.random ?? e.rng?.() ?? Wo();
|
4614
4614
|
if (n.length < 16)
|
4615
4615
|
throw new Error("Random bytes length must be >= 16");
|
4616
4616
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Bo(n);
|
4617
4617
|
}
|
4618
|
-
const Ie = "Your session has expired. For your security, please log in again to continue.", Go = "Your session has been successfully terminated.", Gt = "Login failed. Please try again.", qo = "Error getting access token, please re-authenticate.", Jo = "You forgot to wrap your component in <AuthProvider>.", at = "@@auth@@", $e = "LOADING", ft = "LOGIN",
|
4618
|
+
const Ie = "Your session has expired. For your security, please log in again to continue.", Go = "Your session has been successfully terminated.", Gt = "Login failed. Please try again.", qo = "Error getting access token, please re-authenticate.", Jo = "You forgot to wrap your component in <AuthProvider>.", at = "@@auth@@", $e = "LOADING", ft = "LOGIN", os = "LOGOUT", Ye = "success", ae = "failure", cs = "include", ls = "POST", us = "application/json", ot = {
|
4619
4619
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
4620
4620
|
$clientId: String!,
|
4621
4621
|
$username: String!,
|
@@ -4722,12 +4722,12 @@ const Ie = "Your session has expired. For your security, please log in again to
|
|
4722
4722
|
}) => {
|
4723
4723
|
try {
|
4724
4724
|
const i = `Bearer ${e}`, a = await fetch(`${s}/graphql`, {
|
4725
|
-
credentials:
|
4726
|
-
method:
|
4725
|
+
credentials: cs,
|
4726
|
+
method: ls,
|
4727
4727
|
headers: {
|
4728
4728
|
authorization: i,
|
4729
|
-
"Content-Type":
|
4730
|
-
[
|
4729
|
+
"Content-Type": us,
|
4730
|
+
[jn.CLIENT_ID]: `${r}`
|
4731
4731
|
},
|
4732
4732
|
body: JSON.stringify({
|
4733
4733
|
query: t.schema,
|
@@ -4752,11 +4752,11 @@ const Ie = "Your session has expired. For your security, please log in again to
|
|
4752
4752
|
}) => {
|
4753
4753
|
try {
|
4754
4754
|
const s = await fetch(`${n}/${e}`, {
|
4755
|
-
credentials:
|
4756
|
-
method:
|
4755
|
+
credentials: cs,
|
4756
|
+
method: ls,
|
4757
4757
|
headers: {
|
4758
|
-
"Content-Type":
|
4759
|
-
[
|
4758
|
+
"Content-Type": us,
|
4759
|
+
[jn.CLIENT_ID]: `${t}`
|
4760
4760
|
},
|
4761
4761
|
body: JSON.stringify(r)
|
4762
4762
|
});
|
@@ -4770,7 +4770,7 @@ const Ie = "Your session has expired. For your security, please log in again to
|
|
4770
4770
|
} catch (s) {
|
4771
4771
|
return console.error(s), { status: ae, data: [] };
|
4772
4772
|
}
|
4773
|
-
}, zo = process.env.NODE_ENV === "production", Qo = !zo,
|
4773
|
+
}, zo = process.env.NODE_ENV === "production", Qo = !zo, ds = {
|
4774
4774
|
isLoading: !0,
|
4775
4775
|
isAuthenticated: !1,
|
4776
4776
|
user: void 0,
|
@@ -4978,7 +4978,7 @@ class rc {
|
|
4978
4978
|
}
|
4979
4979
|
const Re = () => {
|
4980
4980
|
throw new Error(Jo);
|
4981
|
-
},
|
4981
|
+
}, fs = on({
|
4982
4982
|
isAuthenticated: !1,
|
4983
4983
|
isLoading: !1,
|
4984
4984
|
login: Re,
|
@@ -4990,14 +4990,14 @@ const Re = () => {
|
|
4990
4990
|
logoutReason: "",
|
4991
4991
|
authenticationType: ""
|
4992
4992
|
}), nc = () => ({
|
4993
|
-
...pr(
|
4993
|
+
...pr(fs)
|
4994
4994
|
}), sc = (e) => le(
|
4995
4995
|
(...t) => {
|
4996
4996
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
4997
4997
|
},
|
4998
4998
|
[e]
|
4999
4999
|
), ic = de.createContext({
|
5000
|
-
state:
|
5000
|
+
state: ds,
|
5001
5001
|
dispatch: () => {
|
5002
5002
|
}
|
5003
5003
|
}), ac = (e, t) => t?.type === $e ? {
|
@@ -5010,7 +5010,7 @@ const Re = () => {
|
|
5010
5010
|
user: t.payload.user,
|
5011
5011
|
authenticationType: t.payload.authenticationType,
|
5012
5012
|
logoutReason: ""
|
5013
|
-
} : t?.type ===
|
5013
|
+
} : t?.type === os ? {
|
5014
5014
|
...e,
|
5015
5015
|
isLoading: !1,
|
5016
5016
|
isAuthenticated: !1,
|
@@ -5019,8 +5019,8 @@ const Re = () => {
|
|
5019
5019
|
logoutReason: t.payload.logoutReason
|
5020
5020
|
} : e, oc = ({ children: e }) => {
|
5021
5021
|
const t = nc();
|
5022
|
-
return /* @__PURE__ */ y(
|
5023
|
-
},
|
5022
|
+
return /* @__PURE__ */ y(ts.Provider, { value: t, children: e });
|
5023
|
+
}, Xr = ({
|
5024
5024
|
children: e,
|
5025
5025
|
sessionExpiration: t,
|
5026
5026
|
clientId: r,
|
@@ -5028,8 +5028,8 @@ const Re = () => {
|
|
5028
5028
|
debug: s = !1,
|
5029
5029
|
endpoint: i = Qo ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
|
5030
5030
|
}) => {
|
5031
|
-
const [a, o] =
|
5032
|
-
...
|
5031
|
+
const [a, o] = cn(ac, {
|
5032
|
+
...ds,
|
5033
5033
|
debug: s
|
5034
5034
|
}), c = sc(s), u = B(!1), [d, l, , f] = it({
|
5035
5035
|
key: `${at}::${r}::@@user@@`
|
@@ -5055,7 +5055,7 @@ const Re = () => {
|
|
5055
5055
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
5056
5056
|
v
|
5057
5057
|
), o({
|
5058
|
-
type:
|
5058
|
+
type: os,
|
5059
5059
|
payload: {
|
5060
5060
|
logoutReason: v || Ie
|
5061
5061
|
}
|
@@ -5115,13 +5115,13 @@ const Re = () => {
|
|
5115
5115
|
o({ type: $e, payload: { isLoading: !0 } }), G();
|
5116
5116
|
const A = jt();
|
5117
5117
|
R(A), c("login: Logging in with password");
|
5118
|
-
const { code_verifier: he, code_challenge: me } = await _o(),
|
5118
|
+
const { code_verifier: he, code_challenge: me } = await _o(), _r = await ec({
|
5119
5119
|
endpoint: i,
|
5120
5120
|
nonce: A,
|
5121
5121
|
clientId: r,
|
5122
5122
|
code_challenge: me
|
5123
5123
|
});
|
5124
|
-
if (
|
5124
|
+
if (_r.status) {
|
5125
5125
|
const Te = await Zo({
|
5126
5126
|
endpoint: i,
|
5127
5127
|
username: v,
|
@@ -5130,7 +5130,7 @@ const Re = () => {
|
|
5130
5130
|
sessionExpiration: t,
|
5131
5131
|
nonce: A,
|
5132
5132
|
type: Ue.CODE,
|
5133
|
-
code:
|
5133
|
+
code: _r.data,
|
5134
5134
|
code_verifier: he,
|
5135
5135
|
domain: n,
|
5136
5136
|
ua: navigator.userAgent
|
@@ -5289,7 +5289,7 @@ const Re = () => {
|
|
5289
5289
|
return !1;
|
5290
5290
|
};
|
5291
5291
|
return /* @__PURE__ */ y(ic.Provider, { value: { state: a, dispatch: o }, children: /* @__PURE__ */ y(
|
5292
|
-
|
5292
|
+
fs.Provider,
|
5293
5293
|
{
|
5294
5294
|
value: {
|
5295
5295
|
...a,
|
@@ -5317,29 +5317,29 @@ try {
|
|
5317
5317
|
});
|
5318
5318
|
} catch {
|
5319
5319
|
}
|
5320
|
-
const
|
5321
|
-
const e = pr(
|
5320
|
+
const hs = () => {
|
5321
|
+
const e = pr(ts);
|
5322
5322
|
if (!e)
|
5323
5323
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
5324
5324
|
return e;
|
5325
|
-
}, Cu = "data", Nu = "I'm having trouble right now. Please try again later.", Pu = "action-search", xu = "action-sort", Du = "action-toggle-prompt", $u = "action-reset-prompt",
|
5325
|
+
}, Cu = "data", Nu = "I'm having trouble right now. Please try again later.", Pu = "action-search", xu = "action-sort", Du = "action-toggle-prompt", $u = "action-reset-prompt", ms = "sassy-saint-", Mu = "details", Lu = "search", Uu = "sort", Fu = "private-disclosure", Ku = "reasoning-disclosure", ys = "service-worker", Zr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Hu = 10, Bu = 30, Vu = "av-prompt", Wu = "av-prompt-editable", ju = "size-5 sm:size-4", Gu = 30, qu = 10, Ju = 130, zu = 16, Qu = 76;
|
5326
5326
|
let qt = null;
|
5327
5327
|
function Sr() {
|
5328
5328
|
return "serviceWorker" in navigator;
|
5329
5329
|
}
|
5330
5330
|
function cc() {
|
5331
5331
|
const e = localStorage.getItem(
|
5332
|
-
|
5332
|
+
ms + ys
|
5333
5333
|
);
|
5334
5334
|
return e === null ? !1 : e === "true";
|
5335
5335
|
}
|
5336
5336
|
function lc(e) {
|
5337
5337
|
localStorage.setItem(
|
5338
|
-
|
5338
|
+
ms + ys,
|
5339
5339
|
e.toString()
|
5340
5340
|
);
|
5341
5341
|
}
|
5342
|
-
async function
|
5342
|
+
async function ps() {
|
5343
5343
|
if (!cc() || !fc())
|
5344
5344
|
return !1;
|
5345
5345
|
if (!Sr())
|
@@ -5373,7 +5373,7 @@ async function uc() {
|
|
5373
5373
|
}
|
5374
5374
|
async function Yu(e) {
|
5375
5375
|
if (lc(e), e)
|
5376
|
-
await
|
5376
|
+
await ps();
|
5377
5377
|
else {
|
5378
5378
|
try {
|
5379
5379
|
Sr() && await dc();
|
@@ -5409,7 +5409,7 @@ async function dc() {
|
|
5409
5409
|
function fc() {
|
5410
5410
|
return !!(window.matchMedia && window.matchMedia("(display-mode: standalone)").matches);
|
5411
5411
|
}
|
5412
|
-
const
|
5412
|
+
const en = (e) => Number.isFinite(e) ? e : 0;
|
5413
5413
|
function hc(e) {
|
5414
5414
|
return {
|
5415
5415
|
days: Math.trunc(e / 864e5),
|
@@ -5417,8 +5417,8 @@ function hc(e) {
|
|
5417
5417
|
minutes: Math.trunc(e / 6e4 % 60),
|
5418
5418
|
seconds: Math.trunc(e / 1e3 % 60),
|
5419
5419
|
milliseconds: Math.trunc(e % 1e3),
|
5420
|
-
microseconds: Math.trunc(
|
5421
|
-
nanoseconds: Math.trunc(
|
5420
|
+
microseconds: Math.trunc(en(e * 1e3) % 1e3),
|
5421
|
+
nanoseconds: Math.trunc(en(e * 1e6) % 1e3)
|
5422
5422
|
};
|
5423
5423
|
}
|
5424
5424
|
function mc(e) {
|
@@ -5489,7 +5489,7 @@ function vc(e, t) {
|
|
5489
5489
|
const u = t.colonNotation ? ":" : " ";
|
5490
5490
|
return typeof t.unitCount == "number" && (s = s.slice(0, Math.max(t.unitCount, 1))), n + s.join(u);
|
5491
5491
|
}
|
5492
|
-
const
|
5492
|
+
const gs = process.env.NODE_ENV === "production", Tr = !gs, bs = Tr ? "gizmette.local.com" : "gizmette.com", Ar = (e, t) => {
|
5493
5493
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", n = 0 | Math.abs(e), s = 0 | Math.abs(e) * 60 % 60, i = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
5494
5494
|
return {
|
5495
5495
|
dir: r,
|
@@ -5608,7 +5608,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5608
5608
|
}), Cc = (e) => e > 0 ? vc(e, {
|
5609
5609
|
secondsDecimalDigits: 2,
|
5610
5610
|
unitCount: 2
|
5611
|
-
}) : "N/A",
|
5611
|
+
}) : "N/A", ws = ({
|
5612
5612
|
isAuthenticated: e,
|
5613
5613
|
extraClass: t
|
5614
5614
|
}) => g(
|
@@ -5617,15 +5617,15 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5617
5617
|
"flex-1 overflow-y-auto",
|
5618
5618
|
e ? "pt-0" : "pt-10",
|
5619
5619
|
t
|
5620
|
-
),
|
5620
|
+
), vs = ({
|
5621
5621
|
extraClass: e
|
5622
5622
|
} = {}) => g("px-2 sm:px-0", e), Nc = (e, t) => t === 1 ? e : `${e}s`, Pc = (e, t) => {
|
5623
5623
|
let r;
|
5624
5624
|
return (...n) => {
|
5625
5625
|
window.clearTimeout(r), r = window.setTimeout(() => e(...n), t);
|
5626
5626
|
};
|
5627
|
-
},
|
5628
|
-
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r =
|
5627
|
+
}, Es = () => !!window?.__VERSINI_CALLISTO_ELECTRON__, Ss = () => window.innerWidth < 403, xc = () => {
|
5628
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ss(), n = navigator.maxTouchPoints > 1;
|
5629
5629
|
return e && t && r && n;
|
5630
5630
|
}, Dc = (e) => {
|
5631
5631
|
const t = e.replace(/([A-Z])/g, " $1");
|
@@ -5654,7 +5654,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5654
5654
|
theme: c,
|
5655
5655
|
transition: u,
|
5656
5656
|
icon: d
|
5657
|
-
}), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN:
|
5657
|
+
}), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: bs, convertCamelCaseToReadable: Dc, convertDDToDMS: Ar, convertLatitudeToDMS: Ec, convertLongitudeToDMS: Sc, debounce: Pc, durationFormatter: Cc, extractAverage: Oc, getCurrentGeoLocation: Tc, getMainPaddingClass: vs, getMessageContaintWrapperClass: ws, isDev: Tr, isElectron: Es, isLastMessageFromRole: Rc, isProbablyMobile: Ss, isProbablyiPhone: xc, isProd: gs, numberFormatter: _c, obfuscate: Ac, pluralize: Nc, renderDataAsList: kc, toastOptions: $c, unObfuscate: Ic }, Symbol.toStringTag, { value: "Module" })), tn = "av-button", xt = "icon", Ir = "button", hr = "link", Mc = ({
|
5658
5658
|
type: e,
|
5659
5659
|
size: t,
|
5660
5660
|
labelRight: r,
|
@@ -5664,7 +5664,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5664
5664
|
}) => {
|
5665
5665
|
const a = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
5666
5666
|
switch (e) {
|
5667
|
-
case
|
5667
|
+
case Ir:
|
5668
5668
|
case hr:
|
5669
5669
|
return g({
|
5670
5670
|
[a]: t === "small",
|
@@ -5698,7 +5698,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5698
5698
|
}) => {
|
5699
5699
|
const s = "text-sm font-medium", i = "text-base font-medium", a = "text-lg font-medium";
|
5700
5700
|
switch (e) {
|
5701
|
-
case
|
5701
|
+
case Ir:
|
5702
5702
|
case hr:
|
5703
5703
|
return g({
|
5704
5704
|
"text-center": e === hr,
|
@@ -5916,8 +5916,8 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5916
5916
|
align: m,
|
5917
5917
|
radius: p,
|
5918
5918
|
animated: b
|
5919
|
-
}) => (f || (f = "primary"), r ? g(
|
5920
|
-
|
5919
|
+
}) => (f || (f = "primary"), r ? g(tn, t) : g(
|
5920
|
+
tn,
|
5921
5921
|
Uc({
|
5922
5922
|
mode: n,
|
5923
5923
|
variant: f,
|
@@ -5950,7 +5950,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5950
5950
|
)), qc = (e, t, r) => {
|
5951
5951
|
var n;
|
5952
5952
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e?.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
5953
|
-
},
|
5953
|
+
}, kr = de.forwardRef((e, t) => {
|
5954
5954
|
const { onClick: r, noInternalClick: n = !1, ...s } = e;
|
5955
5955
|
return /* @__PURE__ */ y(
|
5956
5956
|
"button",
|
@@ -5963,7 +5963,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5963
5963
|
}
|
5964
5964
|
);
|
5965
5965
|
});
|
5966
|
-
|
5966
|
+
kr.displayName = "BaseButton";
|
5967
5967
|
const As = de.forwardRef(
|
5968
5968
|
({
|
5969
5969
|
children: e,
|
@@ -5981,7 +5981,7 @@ const As = de.forwardRef(
|
|
5981
5981
|
...f
|
5982
5982
|
}, h) => {
|
5983
5983
|
const m = Ts({
|
5984
|
-
type:
|
5984
|
+
type: Ir,
|
5985
5985
|
mode: r,
|
5986
5986
|
focusMode: n,
|
5987
5987
|
fullWidth: s,
|
@@ -5995,7 +5995,7 @@ const As = de.forwardRef(
|
|
5995
5995
|
radius: l
|
5996
5996
|
});
|
5997
5997
|
return /* @__PURE__ */ y(
|
5998
|
-
|
5998
|
+
kr,
|
5999
5999
|
{
|
6000
6000
|
ref: h,
|
6001
6001
|
className: m,
|
@@ -6119,7 +6119,7 @@ const ct = {
|
|
6119
6119
|
]), X(() => () => {
|
6120
6120
|
A.current && clearTimeout(A.current);
|
6121
6121
|
}, []), /* @__PURE__ */ y(
|
6122
|
-
|
6122
|
+
kr,
|
6123
6123
|
{
|
6124
6124
|
ref: he,
|
6125
6125
|
className: W,
|
@@ -6129,7 +6129,7 @@ const ct = {
|
|
6129
6129
|
...R,
|
6130
6130
|
children: /* @__PURE__ */ J("div", { className: S, children: [
|
6131
6131
|
/* @__PURE__ */ y(
|
6132
|
-
|
6132
|
+
rn,
|
6133
6133
|
{
|
6134
6134
|
label: h,
|
6135
6135
|
labelRef: $,
|
@@ -6140,7 +6140,7 @@ const ct = {
|
|
6140
6140
|
),
|
6141
6141
|
/* @__PURE__ */ y("span", { ref: Y, className: G, children: e }),
|
6142
6142
|
/* @__PURE__ */ y(
|
6143
|
-
|
6143
|
+
rn,
|
6144
6144
|
{
|
6145
6145
|
label: f,
|
6146
6146
|
labelRef: T,
|
@@ -6153,7 +6153,7 @@ const ct = {
|
|
6153
6153
|
}
|
6154
6154
|
);
|
6155
6155
|
}
|
6156
|
-
),
|
6156
|
+
), rn = ({
|
6157
6157
|
labelRef: e,
|
6158
6158
|
labelClass: t,
|
6159
6159
|
label: r,
|
@@ -6223,7 +6223,7 @@ const el = de.forwardRef(
|
|
6223
6223
|
el.displayName = "ButtonSort";
|
6224
6224
|
const ht = "av-card";
|
6225
6225
|
function tl(e) {
|
6226
|
-
const t =
|
6226
|
+
const t = ln();
|
6227
6227
|
return `${e}${t}`;
|
6228
6228
|
}
|
6229
6229
|
const rl = ({
|
@@ -6715,7 +6715,7 @@ function gl(e) {
|
|
6715
6715
|
}), [a, e]), [n, s];
|
6716
6716
|
}
|
6717
6717
|
function bl(e) {
|
6718
|
-
const t =
|
6718
|
+
const t = ln();
|
6719
6719
|
if (!e)
|
6720
6720
|
return t;
|
6721
6721
|
if (typeof e == "number" || typeof e == "string")
|
@@ -6755,7 +6755,7 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
|
|
6755
6755
|
t({
|
6756
6756
|
type: Os
|
6757
6757
|
}), typeof e == "function" && e();
|
6758
|
-
},
|
6758
|
+
}, nn = ({
|
6759
6759
|
children: e,
|
6760
6760
|
clearAnnouncementDelay: t,
|
6761
6761
|
clearAnnouncementTimeoutRef: r,
|
@@ -6781,13 +6781,13 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
|
|
6781
6781
|
onAnnouncementClear: i,
|
6782
6782
|
dispatch: a
|
6783
6783
|
}) => {
|
6784
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
6784
|
+
clearTimeout(t.current), r ? t.current = setTimeout(nn, r, {
|
6785
6785
|
children: e,
|
6786
6786
|
clearAnnouncementDelay: n,
|
6787
6787
|
clearAnnouncementTimeoutRef: s,
|
6788
6788
|
onAnnouncementClear: i,
|
6789
6789
|
dispatch: a
|
6790
|
-
}) :
|
6790
|
+
}) : nn({
|
6791
6791
|
children: e,
|
6792
6792
|
clearAnnouncementDelay: n,
|
6793
6793
|
clearAnnouncementTimeoutRef: s,
|
@@ -6806,7 +6806,7 @@ function Rs({
|
|
6806
6806
|
visible: o,
|
6807
6807
|
...c
|
6808
6808
|
}) {
|
6809
|
-
const u = B(null), d = B(null), [l, f] =
|
6809
|
+
const u = B(null), d = B(null), [l, f] = cn(vl, {
|
6810
6810
|
announcement: null
|
6811
6811
|
});
|
6812
6812
|
let h = r;
|
@@ -6991,7 +6991,7 @@ const Tl = ({
|
|
6991
6991
|
helperText: p,
|
6992
6992
|
rightElement: b
|
6993
6993
|
};
|
6994
|
-
},
|
6994
|
+
}, Or = de.forwardRef(
|
6995
6995
|
({
|
6996
6996
|
id: e,
|
6997
6997
|
name: t,
|
@@ -7097,7 +7097,7 @@ const Tl = ({
|
|
7097
7097
|
] });
|
7098
7098
|
}
|
7099
7099
|
);
|
7100
|
-
|
7100
|
+
Or.displayName = "TextInput";
|
7101
7101
|
function _l(e) {
|
7102
7102
|
return It(() => e.every((t) => t == null) ? () => {
|
7103
7103
|
} : (t) => {
|
@@ -7154,7 +7154,7 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
|
|
7154
7154
|
w.current && clearTimeout(w.current);
|
7155
7155
|
}, []), /* @__PURE__ */ J(yr, { children: [
|
7156
7156
|
/* @__PURE__ */ y(
|
7157
|
-
|
7157
|
+
Or,
|
7158
7158
|
{
|
7159
7159
|
ref: E,
|
7160
7160
|
name: e,
|
@@ -7201,8 +7201,8 @@ try {
|
|
7201
7201
|
});
|
7202
7202
|
} catch {
|
7203
7203
|
}
|
7204
|
-
const xl = "ASK! ME! ANYTHING!", Cs = "Callisto", Dl = "Log in", $l = "Sign in with a Passkey", Zu = "Log out", Ml = "Password", ed = "Usage", td = "Profile", rd = "Settings", nd = "Chat history", sd = "About",
|
7205
|
-
Press Enter to send it or Shift+Enter for new line.`, od = `${
|
7204
|
+
const xl = "ASK! ME! ANYTHING!", Cs = "Callisto", Dl = "Log in", $l = "Sign in with a Passkey", Zu = "Log out", Ml = "Password", ed = "Usage", td = "Profile", rd = "Settings", nd = "Chat history", sd = "About", Rr = "Type your message here.", id = Rr, ad = `${Rr}
|
7205
|
+
Press Enter to send it or Shift+Enter for new line.`, od = `${Rr}
|
7206
7206
|
Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld = `Sometimes, ${Cs} hallucinates. Review important details.`, ud = "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.", dd = "Default provider set to", fd = "Chat successfully deleted!", hd = "Chat successfully saved!", md = "av-sassy", yd = {
|
7207
7207
|
0: ["January", "February", "March"],
|
7208
7208
|
3: ["April", "May", "June"],
|
@@ -7253,13 +7253,11 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7253
7253
|
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.",
|
7254
7254
|
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."
|
7255
7255
|
}
|
7256
|
-
}, Ll = () => /* @__PURE__ */ J(
|
7256
|
+
}, Ll = ({ className: e }) => /* @__PURE__ */ J(
|
7257
7257
|
"div",
|
7258
7258
|
{
|
7259
7259
|
className: g(
|
7260
|
-
|
7261
|
-
"mt-4": Ir()
|
7262
|
-
},
|
7260
|
+
e,
|
7263
7261
|
"flex items-center justify-center text-slate-300"
|
7264
7262
|
),
|
7265
7263
|
children: [
|
@@ -7271,7 +7269,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7271
7269
|
]
|
7272
7270
|
}
|
7273
7271
|
), Ul = () => {
|
7274
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } =
|
7272
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = hs(), [n, s] = ce(""), [i, a] = ce(""), [o, c] = ce(!0), [u, d] = ce({
|
7275
7273
|
username: "",
|
7276
7274
|
password: ""
|
7277
7275
|
}), l = async (f) => {
|
@@ -7286,7 +7284,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7286
7284
|
}, [t]), /* @__PURE__ */ J(
|
7287
7285
|
ul,
|
7288
7286
|
{
|
7289
|
-
className:
|
7287
|
+
className: vs({
|
7290
7288
|
extraClass: "mt-5"
|
7291
7289
|
}),
|
7292
7290
|
noMargin: !0,
|
@@ -7295,7 +7293,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7295
7293
|
/* @__PURE__ */ y(
|
7296
7294
|
"div",
|
7297
7295
|
{
|
7298
|
-
className:
|
7296
|
+
className: ws({
|
7299
7297
|
extraClass: "rounded-md"
|
7300
7298
|
}),
|
7301
7299
|
children: /* @__PURE__ */ y(Ll, {})
|
@@ -7304,7 +7302,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7304
7302
|
/* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(fl, { alignHorizontal: "center", children: /* @__PURE__ */ y(ve, { span: 6, children: /* @__PURE__ */ J(sl, { mode: "dark", children: [
|
7305
7303
|
/* @__PURE__ */ y(ve, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ y("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
|
7306
7304
|
/* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
|
7307
|
-
|
7305
|
+
Or,
|
7308
7306
|
{
|
7309
7307
|
className: "mt-7",
|
7310
7308
|
required: !0,
|
@@ -7368,7 +7366,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7368
7366
|
children: Dl
|
7369
7367
|
}
|
7370
7368
|
) }),
|
7371
|
-
!
|
7369
|
+
!Es() && /* @__PURE__ */ J(yr, { children: [
|
7372
7370
|
/* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
7373
7371
|
/* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
|
7374
7372
|
Tt,
|
@@ -7388,14 +7386,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7388
7386
|
]
|
7389
7387
|
}
|
7390
7388
|
);
|
7391
|
-
}, Fl = new URL(document.location.href).searchParams,
|
7389
|
+
}, Fl = new URL(document.location.href).searchParams, sn = !!Fl.get("debug") || !1, Kl = xs(() => import(
|
7392
7390
|
/* webpackChunkName: "LazyApp" */
|
7393
|
-
"./App.
|
7394
|
-
).then((e) => e.App)), Hl = new ri(),
|
7391
|
+
"./App.CLsRrqnB.js"
|
7392
|
+
).then((e) => e.App)), Hl = new ri(), an = ({
|
7395
7393
|
isComponent: e,
|
7396
7394
|
headerHeight: t
|
7397
7395
|
}) => {
|
7398
|
-
const { isAuthenticated: r, isLoading: n } =
|
7396
|
+
const { isAuthenticated: r, isLoading: n } = hs();
|
7399
7397
|
return n ? /* @__PURE__ */ y("div", {}) : r ? /* @__PURE__ */ y(Ps, { fallback: /* @__PURE__ */ y("div", {}), children: /* @__PURE__ */ J(si, { client: Hl, children: [
|
7400
7398
|
/* @__PURE__ */ y(Pa, {}),
|
7401
7399
|
/* @__PURE__ */ y(Kl, { isComponent: e, headerHeight: t })
|
@@ -7403,21 +7401,21 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
|
|
7403
7401
|
}, Bl = ({
|
7404
7402
|
isComponent: e = !1,
|
7405
7403
|
headerHeight: t = 0,
|
7406
|
-
domain: r =
|
7404
|
+
domain: r = bs
|
7407
7405
|
}) => (X(() => {
|
7408
|
-
e ||
|
7406
|
+
e || ps().catch((n) => {
|
7409
7407
|
console.error("[SW] Failed to register service worker:", n);
|
7410
7408
|
});
|
7411
7409
|
}, [e]), Tr ? /* @__PURE__ */ y(
|
7412
|
-
|
7410
|
+
Xr,
|
7413
7411
|
{
|
7414
|
-
clientId:
|
7412
|
+
clientId: Zr,
|
7415
7413
|
domain: r,
|
7416
|
-
debug:
|
7414
|
+
debug: sn,
|
7417
7415
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
7418
|
-
children: /* @__PURE__ */ y(
|
7416
|
+
children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t })
|
7419
7417
|
}
|
7420
|
-
) : /* @__PURE__ */ y(
|
7418
|
+
) : /* @__PURE__ */ y(Xr, { clientId: Zr, domain: r, debug: sn, children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t }) })), bd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
|
7421
7419
|
Bl,
|
7422
7420
|
{
|
7423
7421
|
isComponent: !0,
|
@@ -7453,11 +7451,11 @@ export {
|
|
7453
7451
|
ru as Index,
|
7454
7452
|
fl as L,
|
7455
7453
|
Mu as LOCAL_STORAGE_CHAT_DETAILS,
|
7456
|
-
|
7454
|
+
ms as LOCAL_STORAGE_PREFIX,
|
7457
7455
|
Fu as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
7458
7456
|
Ku as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
7459
7457
|
Lu as LOCAL_STORAGE_SEARCH,
|
7460
|
-
|
7458
|
+
ys as LOCAL_STORAGE_SERVICE_WORKER,
|
7461
7459
|
Uu as LOCAL_STORAGE_SORT,
|
7462
7460
|
Zu as LOG_OUT,
|
7463
7461
|
Ll as Logo,
|
@@ -7492,7 +7490,7 @@ export {
|
|
7492
7490
|
vi as createComponent,
|
7493
7491
|
ai as createComputed,
|
7494
7492
|
Xl as createContext,
|
7495
|
-
|
7493
|
+
vn as createEffect,
|
7496
7494
|
H as createMemo,
|
7497
7495
|
Se as createRenderEffect,
|
7498
7496
|
Ee as createRoot,
|
@@ -7502,12 +7500,12 @@ export {
|
|
7502
7500
|
Li as delegateEvents,
|
7503
7501
|
nt as deleteNestedDataByPath,
|
7504
7502
|
pu as displayValue,
|
7505
|
-
|
7503
|
+
Or as fe,
|
7506
7504
|
zs as fetchState,
|
7507
|
-
|
7505
|
+
dn as focusManager,
|
7508
7506
|
Tc as getCurrentGeoLocation,
|
7509
|
-
|
7510
|
-
|
7507
|
+
vs as getMainPaddingClass,
|
7508
|
+
ws as getMessageContaintWrapperClass,
|
7511
7509
|
mu as getMutationStatusColor,
|
7512
7510
|
vu as getPreferredColorScheme,
|
7513
7511
|
hu as getQueryStatusColor,
|
@@ -7516,8 +7514,8 @@ export {
|
|
7516
7514
|
fu as getSidedProp,
|
7517
7515
|
Yu as handleServiceWorkerToggle,
|
7518
7516
|
ir as insert,
|
7519
|
-
|
7520
|
-
|
7517
|
+
Es as isElectron,
|
7518
|
+
Ss as isProbablyMobile,
|
7521
7519
|
xc as isProbablyiPhone,
|
7522
7520
|
Ot as isServer,
|
7523
7521
|
cc as isServiceWorkerEnabled,
|
@@ -7528,7 +7526,7 @@ export {
|
|
7528
7526
|
Tt as le,
|
7529
7527
|
Si as mergeProps,
|
7530
7528
|
bu as mutationSortFns,
|
7531
|
-
|
7529
|
+
hs as n,
|
7532
7530
|
te as noop,
|
7533
7531
|
q as notifyManager,
|
7534
7532
|
_c as numberFormatter,
|