@versini/sassysaint 8.63.1 → 8.64.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.COOGja4L.js → AboutChangelog.ClPdTj6q.js} +2 -2
- package/dist/chunks/{AboutEntry.7ncF_DIc.js → AboutEntry.CSTnhS8V.js} +5 -5
- package/dist/chunks/{App.DoVbmL2p.js → App.D79DErDb.js} +123 -123
- package/dist/chunks/{Chart.z1dHEeK6.js → Chart.anWx1EJ1.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DVMPxg2S.js → ChatBubbleAssistant.440b52to.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BH4pmGH0.js → ChatBubbleUser.Btv6do4Q.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DZZj5eGe.js → ChatHistoryTable.CItlSrv5.js} +43 -43
- package/dist/chunks/{HistoryEntry.BJMwUkDf.js → HistoryEntry.kMPC-6lA.js} +27 -27
- package/dist/chunks/{ProfileEntry.OkDRtUl8.js → ProfileEntry.Cf4tcjoj.js} +6 -6
- package/dist/chunks/{SettingsEntry.D1ZU-gPR.js → SettingsEntry.BeBSUqx6.js} +2 -2
- package/dist/chunks/{Table.BfS9Q50S.js → Table.CsQklVBG.js} +2 -2
- package/dist/chunks/{UsageEntry.D0J4ZEpB.js → UsageEntry.DQIU0kzt.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.D_wyyDyJ.js → UserMemoriesPanel.DSSLiVHt.js} +3 -3
- package/dist/chunks/{index.BnidGtMy.js → index.-j_njLEh.js} +1 -1
- package/dist/chunks/{index.B__EFtnc.js → index.BXUh8Hx0.js} +1 -1
- package/dist/chunks/{index.Bng14czd.js → index.C8_GUi7S.js} +3 -3
- package/dist/chunks/{index.Ok5GIj4k.js → index.CGFySwFw.js} +1 -1
- package/dist/chunks/{index.DrNBEhtX.js → index.CcY06_BE.js} +1 -1
- package/dist/chunks/{index.DCbJZ9UB.js → index.DqTXCFGJ.js} +610 -601
- package/dist/chunks/{index.CRxV0D78.js → index.sQ9g50Gu.js} +2 -2
- package/dist/chunks/{useMarkdown.CpO2Waej.js → useMarkdown.Bqr7iP8w.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, jsxs as q, Fragment as Rr } from "react/jsx-runtime";
|
|
2
2
|
import * as H from "react";
|
|
3
|
-
import ie, { createContext as Lt, useReducer as Cr, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as
|
|
3
|
+
import ie, { createContext as Lt, useReducer as Cr, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as Hs, useContext as nt, useState as ne, useMemo as Qe, useId as Ks, useLayoutEffect as Ye, Suspense as Gs, lazy as Bs } from "react";
|
|
4
4
|
import y from "clsx";
|
|
5
5
|
var ke = class {
|
|
6
6
|
constructor() {
|
|
@@ -18,7 +18,7 @@ var ke = class {
|
|
|
18
18
|
}
|
|
19
19
|
onUnsubscribe() {
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, Ws = {
|
|
22
22
|
// We need the wrapper function syntax below instead of direct references to
|
|
23
23
|
// global setTimeout etc.
|
|
24
24
|
//
|
|
@@ -33,14 +33,14 @@ var ke = class {
|
|
|
33
33
|
clearTimeout: (e) => clearTimeout(e),
|
|
34
34
|
setInterval: (e, t) => setInterval(e, t),
|
|
35
35
|
clearInterval: (e) => clearInterval(e)
|
|
36
|
-
},
|
|
36
|
+
}, qs = class {
|
|
37
37
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
38
38
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
39
39
|
// would need to support ReturnType<typeof setTimeout>, which is infeasible.
|
|
40
40
|
//
|
|
41
41
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
42
42
|
// this class is unsafe internally to allow for extension.
|
|
43
|
-
#e =
|
|
43
|
+
#e = Ws;
|
|
44
44
|
#t = !1;
|
|
45
45
|
setTimeoutProvider(e) {
|
|
46
46
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
|
@@ -60,14 +60,14 @@ var ke = class {
|
|
|
60
60
|
clearInterval(e) {
|
|
61
61
|
this.#e.clearInterval(e);
|
|
62
62
|
}
|
|
63
|
-
}, fe = new
|
|
64
|
-
function
|
|
63
|
+
}, fe = new qs();
|
|
64
|
+
function js(e) {
|
|
65
65
|
setTimeout(e, 0);
|
|
66
66
|
}
|
|
67
67
|
var me = typeof window > "u" || "Deno" in globalThis;
|
|
68
68
|
function B() {
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Vs(e, t) {
|
|
71
71
|
return typeof e == "function" ? e(t) : e;
|
|
72
72
|
}
|
|
73
73
|
function _t(e) {
|
|
@@ -79,7 +79,7 @@ function Or(e, t) {
|
|
|
79
79
|
function de(e, t) {
|
|
80
80
|
return typeof e == "function" ? e(t) : e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function J(e, t) {
|
|
83
83
|
return typeof e == "function" ? e(t) : e;
|
|
84
84
|
}
|
|
85
85
|
function Xt(e, t) {
|
|
@@ -130,7 +130,7 @@ function pe(e) {
|
|
|
130
130
|
function xe(e, t) {
|
|
131
131
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => xe(e[r], t[r])) : !1;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var Js = Object.prototype.hasOwnProperty;
|
|
134
134
|
function Rt(e, t) {
|
|
135
135
|
if (e === t)
|
|
136
136
|
return e;
|
|
@@ -141,7 +141,7 @@ function Rt(e, t) {
|
|
|
141
141
|
for (let f = 0; f < i; f++) {
|
|
142
142
|
const d = r ? f : n[f], u = e[d], l = t[d];
|
|
143
143
|
if (u === l) {
|
|
144
|
-
o[d] = u, (r ? f < a :
|
|
144
|
+
o[d] = u, (r ? f < a : Js.call(e, d)) && c++;
|
|
145
145
|
continue;
|
|
146
146
|
}
|
|
147
147
|
if (u === null || l === null || typeof u != "object" || typeof l != "object") {
|
|
@@ -176,7 +176,7 @@ function Ct(e) {
|
|
|
176
176
|
function tr(e) {
|
|
177
177
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Qs(e) {
|
|
180
180
|
return new Promise((t) => {
|
|
181
181
|
fe.setTimeout(t, e);
|
|
182
182
|
});
|
|
@@ -197,11 +197,11 @@ function Ot(e, t, r) {
|
|
|
197
197
|
}
|
|
198
198
|
return t;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Ys(e, t, r = 0) {
|
|
201
201
|
const s = [...e, t];
|
|
202
202
|
return r && s.length > r ? s.slice(1) : s;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function zs(e, t, r = 0) {
|
|
205
205
|
const s = [t, ...e];
|
|
206
206
|
return r && s.length > r ? s.slice(0, -1) : s;
|
|
207
207
|
}
|
|
@@ -214,7 +214,7 @@ function kr(e, t) {
|
|
|
214
214
|
function Nr(e, t) {
|
|
215
215
|
return typeof e == "function" ? e(...t) : !!e;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var Xs = class extends ke {
|
|
218
218
|
#e;
|
|
219
219
|
#t;
|
|
220
220
|
#r;
|
|
@@ -251,7 +251,7 @@ var Ys = class extends ke {
|
|
|
251
251
|
isFocused() {
|
|
252
252
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
253
253
|
}
|
|
254
|
-
}, Ft = new
|
|
254
|
+
}, Ft = new Xs();
|
|
255
255
|
function kt() {
|
|
256
256
|
let e, t;
|
|
257
257
|
const r = new Promise((a, n) => {
|
|
@@ -274,13 +274,13 @@ function kt() {
|
|
|
274
274
|
}), t(a);
|
|
275
275
|
}, r;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
277
|
+
var Zs = js;
|
|
278
|
+
function ea() {
|
|
279
279
|
let e = [], t = 0, r = (o) => {
|
|
280
280
|
o();
|
|
281
281
|
}, s = (o) => {
|
|
282
282
|
o();
|
|
283
|
-
}, a =
|
|
283
|
+
}, a = Zs;
|
|
284
284
|
const n = (o) => {
|
|
285
285
|
t ? e.push(o) : a(() => {
|
|
286
286
|
r(o);
|
|
@@ -334,7 +334,7 @@ function Xs() {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
var $ =
|
|
337
|
+
var $ = ea(), ta = class extends ke {
|
|
338
338
|
#e = !0;
|
|
339
339
|
#t;
|
|
340
340
|
#r;
|
|
@@ -365,8 +365,8 @@ var $ = Xs(), Zs = class extends ke {
|
|
|
365
365
|
isOnline() {
|
|
366
366
|
return this.#e;
|
|
367
367
|
}
|
|
368
|
-
}, Ze = new
|
|
369
|
-
function
|
|
368
|
+
}, Ze = new ta();
|
|
369
|
+
function ra(e) {
|
|
370
370
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
371
371
|
}
|
|
372
372
|
function Pr(e) {
|
|
@@ -411,12 +411,12 @@ function $r(e) {
|
|
|
411
411
|
Promise.resolve(g).then(u).catch((E) => {
|
|
412
412
|
if (n())
|
|
413
413
|
return;
|
|
414
|
-
const O = e.retry ?? (me ? 0 : 3), A = e.retryDelay ??
|
|
414
|
+
const O = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? ra, K = typeof A == "function" ? A(r, E) : A, R = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, E);
|
|
415
415
|
if (t || !R) {
|
|
416
416
|
l(E);
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
|
-
r++, e.onFail?.(r, E),
|
|
419
|
+
r++, e.onFail?.(r, E), Qs(K).then(() => f() ? void 0 : m()).then(() => {
|
|
420
420
|
t ? l(E) : p();
|
|
421
421
|
});
|
|
422
422
|
});
|
|
@@ -451,7 +451,7 @@ var xr = class {
|
|
|
451
451
|
clearGcTimeout() {
|
|
452
452
|
this.#e && (fe.clearTimeout(this.#e), this.#e = void 0);
|
|
453
453
|
}
|
|
454
|
-
},
|
|
454
|
+
}, sa = class extends xr {
|
|
455
455
|
#e;
|
|
456
456
|
#t;
|
|
457
457
|
#r;
|
|
@@ -504,7 +504,7 @@ var xr = class {
|
|
|
504
504
|
}
|
|
505
505
|
isActive() {
|
|
506
506
|
return this.observers.some(
|
|
507
|
-
(e) =>
|
|
507
|
+
(e) => J(e.options.enabled, this) !== !1
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
isDisabled() {
|
|
@@ -669,7 +669,7 @@ var xr = class {
|
|
|
669
669
|
case "fetch":
|
|
670
670
|
return {
|
|
671
671
|
...r,
|
|
672
|
-
...
|
|
672
|
+
...Mr(r.data, this.options),
|
|
673
673
|
fetchMeta: e.meta ?? null
|
|
674
674
|
};
|
|
675
675
|
case "success":
|
|
@@ -719,7 +719,7 @@ var xr = class {
|
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
|
-
function
|
|
722
|
+
function Mr(e, t) {
|
|
723
723
|
return {
|
|
724
724
|
fetchFailureCount: 0,
|
|
725
725
|
fetchFailureReason: null,
|
|
@@ -747,7 +747,7 @@ function rr(e) {
|
|
|
747
747
|
fetchStatus: "idle"
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
var
|
|
750
|
+
var aa = class extends ke {
|
|
751
751
|
constructor(e, t) {
|
|
752
752
|
super(), this.options = t, this.#e = e, this.#n = null, this.#o = kt(), this.bindMethods(), this.setOptions(t);
|
|
753
753
|
}
|
|
@@ -796,7 +796,7 @@ var ra = class extends ke {
|
|
|
796
796
|
}
|
|
797
797
|
setOptions(e) {
|
|
798
798
|
const t = this.options, r = this.#t;
|
|
799
|
-
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
|
799
|
+
if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof J(this.options.enabled, this.#t) != "boolean")
|
|
800
800
|
throw new Error(
|
|
801
801
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
802
802
|
);
|
|
@@ -811,13 +811,13 @@ var ra = class extends ke {
|
|
|
811
811
|
r,
|
|
812
812
|
this.options,
|
|
813
813
|
t
|
|
814
|
-
) && this.#d(), this.updateResult(), s && (this.#t !== r ||
|
|
814
|
+
) && this.#d(), this.updateResult(), s && (this.#t !== r || J(this.options.enabled, this.#t) !== J(t.enabled, this.#t) || de(this.options.staleTime, this.#t) !== de(t.staleTime, this.#t)) && this.#y();
|
|
815
815
|
const a = this.#g();
|
|
816
|
-
s && (this.#t !== r ||
|
|
816
|
+
s && (this.#t !== r || J(this.options.enabled, this.#t) !== J(t.enabled, this.#t) || a !== this.#c) && this.#b(a);
|
|
817
817
|
}
|
|
818
818
|
getOptimisticResult(e) {
|
|
819
819
|
const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
|
|
820
|
-
return
|
|
820
|
+
return ia(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
|
|
821
821
|
}
|
|
822
822
|
getCurrentResult() {
|
|
823
823
|
return this.#a;
|
|
@@ -877,7 +877,7 @@ var ra = class extends ke {
|
|
|
877
877
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
878
878
|
}
|
|
879
879
|
#b(e) {
|
|
880
|
-
this.#S(), this.#c = e, !(me ||
|
|
880
|
+
this.#S(), this.#c = e, !(me || J(this.options.enabled, this.#t) === !1 || !_t(this.#c) || this.#c === 0) && (this.#u = fe.setInterval(() => {
|
|
881
881
|
(this.options.refetchIntervalInBackground || Ft.isFocused()) && this.#d();
|
|
882
882
|
}, this.#c));
|
|
883
883
|
}
|
|
@@ -897,7 +897,7 @@ var ra = class extends ke {
|
|
|
897
897
|
const v = this.hasListeners(), x = !v && sr(e, t), _ = v && ar(e, r, t, s);
|
|
898
898
|
(x || _) && (d = {
|
|
899
899
|
...d,
|
|
900
|
-
...
|
|
900
|
+
...Mr(f.data, e.options)
|
|
901
901
|
}), t._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
902
902
|
}
|
|
903
903
|
let { error: m, errorUpdatedAt: p, status: g } = d;
|
|
@@ -950,7 +950,7 @@ var ra = class extends ke {
|
|
|
950
950
|
isStale: Ht(e, t),
|
|
951
951
|
refetch: this.refetch,
|
|
952
952
|
promise: this.#o,
|
|
953
|
-
isEnabled:
|
|
953
|
+
isEnabled: J(t.enabled, e) !== !1
|
|
954
954
|
};
|
|
955
955
|
if (this.options.experimental_prefetchInRender) {
|
|
956
956
|
const v = (I) => {
|
|
@@ -1015,26 +1015,26 @@ var ra = class extends ke {
|
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1018
|
+
function na(e, t) {
|
|
1019
|
+
return J(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1020
1020
|
}
|
|
1021
1021
|
function sr(e, t) {
|
|
1022
|
-
return
|
|
1022
|
+
return na(e, t) || e.state.data !== void 0 && Pt(e, t, t.refetchOnMount);
|
|
1023
1023
|
}
|
|
1024
1024
|
function Pt(e, t, r) {
|
|
1025
|
-
if (
|
|
1025
|
+
if (J(t.enabled, e) !== !1 && de(t.staleTime, e) !== "static") {
|
|
1026
1026
|
const s = typeof r == "function" ? r(e) : r;
|
|
1027
1027
|
return s === "always" || s !== !1 && Ht(e, t);
|
|
1028
1028
|
}
|
|
1029
1029
|
return !1;
|
|
1030
1030
|
}
|
|
1031
1031
|
function ar(e, t, r, s) {
|
|
1032
|
-
return (e !== t ||
|
|
1032
|
+
return (e !== t || J(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Ht(e, r);
|
|
1033
1033
|
}
|
|
1034
1034
|
function Ht(e, t) {
|
|
1035
|
-
return
|
|
1035
|
+
return J(t.enabled, e) !== !1 && e.isStaleByTime(de(t.staleTime, e));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function ia(e, t) {
|
|
1038
1038
|
return !ze(e.getCurrentResult(), t);
|
|
1039
1039
|
}
|
|
1040
1040
|
function nr(e) {
|
|
@@ -1057,22 +1057,22 @@ function nr(e) {
|
|
|
1057
1057
|
if (g == null && p.pages.length)
|
|
1058
1058
|
return Promise.resolve(p);
|
|
1059
1059
|
const O = (() => {
|
|
1060
|
-
const
|
|
1060
|
+
const Q = {
|
|
1061
1061
|
client: t.client,
|
|
1062
1062
|
queryKey: t.queryKey,
|
|
1063
1063
|
pageParam: g,
|
|
1064
1064
|
direction: b ? "backward" : "forward",
|
|
1065
1065
|
meta: t.options.meta
|
|
1066
1066
|
};
|
|
1067
|
-
return u(
|
|
1068
|
-
})(), A = await l(O), { maxPages: K } = t.options, R = b ?
|
|
1067
|
+
return u(Q), Q;
|
|
1068
|
+
})(), A = await l(O), { maxPages: K } = t.options, R = b ? zs : Ys;
|
|
1069
1069
|
return {
|
|
1070
1070
|
pages: R(p.pages, A, K),
|
|
1071
1071
|
pageParams: R(p.pageParams, g, K)
|
|
1072
1072
|
};
|
|
1073
1073
|
};
|
|
1074
1074
|
if (a && n.length) {
|
|
1075
|
-
const p = a === "backward", g = p ?
|
|
1075
|
+
const p = a === "backward", g = p ? oa : ir, b = {
|
|
1076
1076
|
pages: n,
|
|
1077
1077
|
pageParams: i
|
|
1078
1078
|
}, E = g(s, b);
|
|
@@ -1110,16 +1110,16 @@ function ir(e, { pages: t, pageParams: r }) {
|
|
|
1110
1110
|
r
|
|
1111
1111
|
) : void 0;
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function oa(e, { pages: t, pageParams: r }) {
|
|
1114
1114
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
1115
1115
|
}
|
|
1116
|
-
var
|
|
1116
|
+
var ca = class extends xr {
|
|
1117
1117
|
#e;
|
|
1118
1118
|
#t;
|
|
1119
1119
|
#r;
|
|
1120
1120
|
#a;
|
|
1121
1121
|
constructor(e) {
|
|
1122
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1122
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || Dr(), this.setOptions(e.options), this.scheduleGc();
|
|
1123
1123
|
}
|
|
1124
1124
|
setOptions(e) {
|
|
1125
1125
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1316,7 +1316,7 @@ var ia = class extends xr {
|
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
function
|
|
1319
|
+
function Dr() {
|
|
1320
1320
|
return {
|
|
1321
1321
|
context: void 0,
|
|
1322
1322
|
data: void 0,
|
|
@@ -1329,7 +1329,7 @@ function Mr() {
|
|
|
1329
1329
|
submittedAt: 0
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1332
|
+
var la = class extends ke {
|
|
1333
1333
|
constructor(e = {}) {
|
|
1334
1334
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
1335
1335
|
}
|
|
@@ -1337,7 +1337,7 @@ var oa = class extends ke {
|
|
|
1337
1337
|
#t;
|
|
1338
1338
|
#r;
|
|
1339
1339
|
build(e, t, r) {
|
|
1340
|
-
const s = new
|
|
1340
|
+
const s = new ca({
|
|
1341
1341
|
client: e,
|
|
1342
1342
|
mutationCache: this,
|
|
1343
1343
|
mutationId: ++this.#r,
|
|
@@ -1421,7 +1421,7 @@ var oa = class extends ke {
|
|
|
1421
1421
|
function Fe(e) {
|
|
1422
1422
|
return e.options.scope?.id;
|
|
1423
1423
|
}
|
|
1424
|
-
var
|
|
1424
|
+
var ua = class extends ke {
|
|
1425
1425
|
#e;
|
|
1426
1426
|
#t = void 0;
|
|
1427
1427
|
#r;
|
|
@@ -1456,7 +1456,7 @@ var ca = class extends ke {
|
|
|
1456
1456
|
return this.#a = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
|
|
1457
1457
|
}
|
|
1458
1458
|
#s() {
|
|
1459
|
-
const e = this.#r?.state ??
|
|
1459
|
+
const e = this.#r?.state ?? Dr();
|
|
1460
1460
|
this.#t = {
|
|
1461
1461
|
...e,
|
|
1462
1462
|
isPending: e.status === "pending",
|
|
@@ -1504,7 +1504,7 @@ var ca = class extends ke {
|
|
|
1504
1504
|
});
|
|
1505
1505
|
});
|
|
1506
1506
|
}
|
|
1507
|
-
},
|
|
1507
|
+
}, da = class extends ke {
|
|
1508
1508
|
constructor(e = {}) {
|
|
1509
1509
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1510
1510
|
}
|
|
@@ -1512,7 +1512,7 @@ var ca = class extends ke {
|
|
|
1512
1512
|
build(e, t, r) {
|
|
1513
1513
|
const s = t.queryKey, a = t.queryHash ?? Ut(s, t);
|
|
1514
1514
|
let n = this.get(a);
|
|
1515
|
-
return n || (n = new
|
|
1515
|
+
return n || (n = new sa({
|
|
1516
1516
|
client: e,
|
|
1517
1517
|
queryKey: s,
|
|
1518
1518
|
queryHash: a,
|
|
@@ -1575,7 +1575,7 @@ var ca = class extends ke {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
});
|
|
1577
1577
|
}
|
|
1578
|
-
},
|
|
1578
|
+
}, ha = class {
|
|
1579
1579
|
#e;
|
|
1580
1580
|
#t;
|
|
1581
1581
|
#r;
|
|
@@ -1585,7 +1585,7 @@ var ca = class extends ke {
|
|
|
1585
1585
|
#o;
|
|
1586
1586
|
#n;
|
|
1587
1587
|
constructor(e = {}) {
|
|
1588
|
-
this.#e = e.queryCache || new
|
|
1588
|
+
this.#e = e.queryCache || new da(), this.#t = e.mutationCache || new la(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
|
|
1589
1589
|
}
|
|
1590
1590
|
mount() {
|
|
1591
1591
|
this.#i++, this.#i === 1 && (this.#o = Ft.subscribe(async (e) => {
|
|
@@ -1627,7 +1627,7 @@ var ca = class extends ke {
|
|
|
1627
1627
|
setQueryData(e, t, r) {
|
|
1628
1628
|
const s = this.defaultQueryOptions({ queryKey: e }), n = this.#e.get(
|
|
1629
1629
|
s.queryHash
|
|
1630
|
-
)?.state.data, i =
|
|
1630
|
+
)?.state.data, i = Vs(t, n);
|
|
1631
1631
|
if (i !== void 0)
|
|
1632
1632
|
return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
|
|
1633
1633
|
}
|
|
@@ -1785,13 +1785,13 @@ var ca = class extends ke {
|
|
|
1785
1785
|
if (!t)
|
|
1786
1786
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1787
1787
|
return t;
|
|
1788
|
-
},
|
|
1788
|
+
}, fa = ({
|
|
1789
1789
|
client: e,
|
|
1790
1790
|
children: t
|
|
1791
1791
|
}) => (H.useEffect(() => (e.mount(), () => {
|
|
1792
1792
|
e.unmount();
|
|
1793
|
-
}), [e]), /* @__PURE__ */ h(Lr.Provider, { value: e, children: t })),
|
|
1794
|
-
function
|
|
1793
|
+
}), [e]), /* @__PURE__ */ h(Lr.Provider, { value: e, children: t })), ma = H.createContext(!1), pa = () => H.useContext(ma);
|
|
1794
|
+
function ya() {
|
|
1795
1795
|
let e = !1;
|
|
1796
1796
|
return {
|
|
1797
1797
|
clearReset: () => {
|
|
@@ -1803,19 +1803,19 @@ function ma() {
|
|
|
1803
1803
|
isReset: () => e
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
var
|
|
1806
|
+
var ga = H.createContext(ya()), ba = () => H.useContext(ga), Ea = (e, t) => {
|
|
1807
1807
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1808
|
-
},
|
|
1808
|
+
}, wa = (e) => {
|
|
1809
1809
|
H.useEffect(() => {
|
|
1810
1810
|
e.clearReset();
|
|
1811
1811
|
}, [e]);
|
|
1812
|
-
},
|
|
1812
|
+
}, Sa = ({
|
|
1813
1813
|
result: e,
|
|
1814
1814
|
errorResetBoundary: t,
|
|
1815
1815
|
throwOnError: r,
|
|
1816
1816
|
query: s,
|
|
1817
1817
|
suspense: a
|
|
1818
|
-
}) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Nr(r, [e.error, s])),
|
|
1818
|
+
}) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Nr(r, [e.error, s])), va = (e) => {
|
|
1819
1819
|
if (e.suspense) {
|
|
1820
1820
|
const r = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), s = e.staleTime;
|
|
1821
1821
|
e.staleTime = typeof s == "function" ? (...a) => r(s(...a)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
|
@@ -1823,20 +1823,20 @@ var pa = H.createContext(ma()), ya = () => H.useContext(pa), ga = (e, t) => {
|
|
|
1823
1823
|
1e3
|
|
1824
1824
|
));
|
|
1825
1825
|
}
|
|
1826
|
-
},
|
|
1826
|
+
}, Ta = (e, t) => e.isLoading && e.isFetching && !t, Aa = (e, t) => e?.suspense && t.isPending, or = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
1827
1827
|
r.clearReset();
|
|
1828
1828
|
});
|
|
1829
|
-
function
|
|
1829
|
+
function Ia(e, t, r) {
|
|
1830
1830
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
|
1831
1831
|
throw new Error(
|
|
1832
1832
|
'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'
|
|
1833
1833
|
);
|
|
1834
|
-
const s =
|
|
1834
|
+
const s = pa(), a = ba(), n = it(), i = n.defaultQueryOptions(e);
|
|
1835
1835
|
n.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
1836
1836
|
i
|
|
1837
1837
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
|
1838
1838
|
`[${i.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`
|
|
1839
|
-
)), i._optimisticResults = s ? "isRestoring" : "optimistic",
|
|
1839
|
+
)), i._optimisticResults = s ? "isRestoring" : "optimistic", va(i), Ea(i, a), wa(a);
|
|
1840
1840
|
const o = !n.getQueryCache().get(i.queryHash), [c] = H.useState(
|
|
1841
1841
|
() => new t(
|
|
1842
1842
|
n,
|
|
@@ -1855,9 +1855,9 @@ function Ta(e, t, r) {
|
|
|
1855
1855
|
() => c.getCurrentResult()
|
|
1856
1856
|
), H.useEffect(() => {
|
|
1857
1857
|
c.setOptions(i);
|
|
1858
|
-
}, [i, c]),
|
|
1858
|
+
}, [i, c]), Aa(i, f))
|
|
1859
1859
|
throw or(i, c, a);
|
|
1860
|
-
if (
|
|
1860
|
+
if (Sa({
|
|
1861
1861
|
result: f,
|
|
1862
1862
|
errorResetBoundary: a,
|
|
1863
1863
|
throwOnError: i.throwOnError,
|
|
@@ -1868,7 +1868,7 @@ function Ta(e, t, r) {
|
|
|
1868
1868
|
return n.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
1869
1869
|
i,
|
|
1870
1870
|
f
|
|
1871
|
-
), i.experimental_prefetchInRender && !me &&
|
|
1871
|
+
), i.experimental_prefetchInRender && !me && Ta(f, s) && (o ? (
|
|
1872
1872
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1873
1873
|
or(i, c, a)
|
|
1874
1874
|
) : (
|
|
@@ -1879,11 +1879,11 @@ function Ta(e, t, r) {
|
|
|
1879
1879
|
}), i.notifyOnChangeProps ? f : c.trackResult(f);
|
|
1880
1880
|
}
|
|
1881
1881
|
function ye(e, t) {
|
|
1882
|
-
return
|
|
1882
|
+
return Ia(e, aa);
|
|
1883
1883
|
}
|
|
1884
1884
|
function Ur(e, t) {
|
|
1885
1885
|
const r = it(), [s] = H.useState(
|
|
1886
|
-
() => new
|
|
1886
|
+
() => new ua(
|
|
1887
1887
|
r,
|
|
1888
1888
|
e
|
|
1889
1889
|
)
|
|
@@ -1935,7 +1935,7 @@ const Pe = {
|
|
|
1935
1935
|
NONCE_KEY: "_nonce",
|
|
1936
1936
|
AUTH_TYPE_KEY: "auth_type",
|
|
1937
1937
|
ISSUER: "gizmette.com"
|
|
1938
|
-
},
|
|
1938
|
+
}, _a = `-----BEGIN PUBLIC KEY-----
|
|
1939
1939
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
|
1940
1940
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
|
1941
1941
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
|
@@ -1949,7 +1949,7 @@ awIDAQAB
|
|
|
1949
1949
|
LOGIN: "login",
|
|
1950
1950
|
REFRESH: "refresh"
|
|
1951
1951
|
}, He = new TextEncoder(), Ce = new TextDecoder();
|
|
1952
|
-
function
|
|
1952
|
+
function Ra(...e) {
|
|
1953
1953
|
const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
|
|
1954
1954
|
let s = 0;
|
|
1955
1955
|
for (const a of e)
|
|
@@ -2001,20 +2001,22 @@ let ge = class extends Error {
|
|
|
2001
2001
|
constructor(t, r, s = "unspecified", a = "unspecified") {
|
|
2002
2002
|
super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
|
|
2003
2003
|
}
|
|
2004
|
-
},
|
|
2004
|
+
}, Ca = class extends ge {
|
|
2005
2005
|
static code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2006
2006
|
code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2007
2007
|
}, ae = class extends ge {
|
|
2008
2008
|
static code = "ERR_JOSE_NOT_SUPPORTED";
|
|
2009
2009
|
code = "ERR_JOSE_NOT_SUPPORTED";
|
|
2010
|
-
}
|
|
2010
|
+
};
|
|
2011
|
+
class L extends ge {
|
|
2011
2012
|
static code = "ERR_JWS_INVALID";
|
|
2012
2013
|
code = "ERR_JWS_INVALID";
|
|
2013
|
-
}
|
|
2014
|
+
}
|
|
2015
|
+
let re = class extends ge {
|
|
2014
2016
|
static code = "ERR_JWT_INVALID";
|
|
2015
2017
|
code = "ERR_JWT_INVALID";
|
|
2016
2018
|
};
|
|
2017
|
-
class
|
|
2019
|
+
class Oa extends ge {
|
|
2018
2020
|
static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
2019
2021
|
code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
2020
2022
|
constructor(t = "signature verification failed", r) {
|
|
@@ -2030,7 +2032,7 @@ function Se(e, t) {
|
|
|
2030
2032
|
function ft(e) {
|
|
2031
2033
|
return parseInt(e.name.slice(4), 10);
|
|
2032
2034
|
}
|
|
2033
|
-
function
|
|
2035
|
+
function ka(e) {
|
|
2034
2036
|
switch (e) {
|
|
2035
2037
|
case "ES256":
|
|
2036
2038
|
return "P-256";
|
|
@@ -2042,11 +2044,11 @@ function Ca(e) {
|
|
|
2042
2044
|
throw new Error("unreachable");
|
|
2043
2045
|
}
|
|
2044
2046
|
}
|
|
2045
|
-
function
|
|
2047
|
+
function Na(e, t) {
|
|
2046
2048
|
if (!e.usages.includes(t))
|
|
2047
2049
|
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
|
|
2048
2050
|
}
|
|
2049
|
-
function
|
|
2051
|
+
function Pa(e, t, r) {
|
|
2050
2052
|
switch (t) {
|
|
2051
2053
|
case "HS256":
|
|
2052
2054
|
case "HS384":
|
|
@@ -2096,7 +2098,7 @@ function ka(e, t, r) {
|
|
|
2096
2098
|
case "ES512": {
|
|
2097
2099
|
if (!Se(e.algorithm, "ECDSA"))
|
|
2098
2100
|
throw Z("ECDSA");
|
|
2099
|
-
const s =
|
|
2101
|
+
const s = ka(t);
|
|
2100
2102
|
if (e.algorithm.namedCurve !== s)
|
|
2101
2103
|
throw Z(s, "algorithm.namedCurve");
|
|
2102
2104
|
break;
|
|
@@ -2104,7 +2106,7 @@ function ka(e, t, r) {
|
|
|
2104
2106
|
default:
|
|
2105
2107
|
throw new TypeError("CryptoKey does not support this operation");
|
|
2106
2108
|
}
|
|
2107
|
-
|
|
2109
|
+
Na(e, r);
|
|
2108
2110
|
}
|
|
2109
2111
|
function Kr(e, t, ...r) {
|
|
2110
2112
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
@@ -2113,7 +2115,7 @@ function Kr(e, t, ...r) {
|
|
|
2113
2115
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
2114
2116
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && t.constructor?.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
|
2115
2117
|
}
|
|
2116
|
-
const
|
|
2118
|
+
const $a = (e, ...t) => Kr("Key must be ", e, ...t);
|
|
2117
2119
|
function Gr(e, t, ...r) {
|
|
2118
2120
|
return Kr(`Key for the ${e} algorithm must be `, t, ...r);
|
|
2119
2121
|
}
|
|
@@ -2123,7 +2125,7 @@ function Br(e) {
|
|
|
2123
2125
|
function Wr(e) {
|
|
2124
2126
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
|
2125
2127
|
}
|
|
2126
|
-
const qr = (e) => Br(e) || Wr(e),
|
|
2128
|
+
const qr = (e) => Br(e) || Wr(e), xa = (...e) => {
|
|
2127
2129
|
const t = e.filter(Boolean);
|
|
2128
2130
|
if (t.length === 0 || t.length === 1)
|
|
2129
2131
|
return !0;
|
|
@@ -2142,11 +2144,11 @@ const qr = (e) => Br(e) || Wr(e), Pa = (...e) => {
|
|
|
2142
2144
|
}
|
|
2143
2145
|
return !0;
|
|
2144
2146
|
};
|
|
2145
|
-
function
|
|
2147
|
+
function Ma(e) {
|
|
2146
2148
|
return typeof e == "object" && e !== null;
|
|
2147
2149
|
}
|
|
2148
|
-
const
|
|
2149
|
-
if (
|
|
2150
|
+
const Me = (e) => {
|
|
2151
|
+
if (!Ma(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
2150
2152
|
return !1;
|
|
2151
2153
|
if (Object.getPrototypeOf(e) === null)
|
|
2152
2154
|
return !0;
|
|
@@ -2154,7 +2156,7 @@ const De = (e) => {
|
|
|
2154
2156
|
for (; Object.getPrototypeOf(t) !== null; )
|
|
2155
2157
|
t = Object.getPrototypeOf(t);
|
|
2156
2158
|
return Object.getPrototypeOf(e) === t;
|
|
2157
|
-
},
|
|
2159
|
+
}, Da = (e, t) => {
|
|
2158
2160
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
|
2159
2161
|
const { modulusLength: r } = t.algorithm;
|
|
2160
2162
|
if (typeof r != "number" || r < 2048)
|
|
@@ -2167,7 +2169,7 @@ const De = (e) => {
|
|
|
2167
2169
|
if (e[r] !== t[r])
|
|
2168
2170
|
return !1;
|
|
2169
2171
|
return !0;
|
|
2170
|
-
},
|
|
2172
|
+
}, La = (e) => ({ data: e, pos: 0 }), et = (e) => {
|
|
2171
2173
|
const t = e.data[e.pos++];
|
|
2172
2174
|
if (t & 128) {
|
|
2173
2175
|
const r = t & 127;
|
|
@@ -2183,18 +2185,18 @@ const De = (e) => {
|
|
|
2183
2185
|
}, jr = (e, t) => {
|
|
2184
2186
|
const r = e.data.subarray(e.pos, e.pos + t);
|
|
2185
2187
|
return e.pos += t, r;
|
|
2186
|
-
},
|
|
2188
|
+
}, Ua = (e) => {
|
|
2187
2189
|
tt(e, 6, "Expected algorithm OID");
|
|
2188
2190
|
const t = et(e);
|
|
2189
2191
|
return jr(e, t);
|
|
2190
2192
|
};
|
|
2191
|
-
function
|
|
2193
|
+
function Fa(e) {
|
|
2192
2194
|
tt(e, 48, "Invalid SPKI structure"), et(e), tt(e, 48, "Expected algorithm identifier");
|
|
2193
2195
|
const t = et(e);
|
|
2194
2196
|
return { algIdStart: e.pos, algIdLength: t };
|
|
2195
2197
|
}
|
|
2196
|
-
const
|
|
2197
|
-
const t =
|
|
2198
|
+
const Ha = (e) => {
|
|
2199
|
+
const t = Ua(e);
|
|
2198
2200
|
if (mt(t, [43, 101, 110]))
|
|
2199
2201
|
return "X25519";
|
|
2200
2202
|
if (!mt(t, [42, 134, 72, 206, 61, 2, 1]))
|
|
@@ -2209,7 +2211,7 @@ const Ua = (e) => {
|
|
|
2209
2211
|
if (mt(s, n))
|
|
2210
2212
|
return a;
|
|
2211
2213
|
throw new Error("Unsupported named curve");
|
|
2212
|
-
},
|
|
2214
|
+
}, Ka = async (e, t, r, s) => {
|
|
2213
2215
|
let a, n;
|
|
2214
2216
|
const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
|
|
2215
2217
|
switch (r) {
|
|
@@ -2264,15 +2266,15 @@ const Ua = (e) => {
|
|
|
2264
2266
|
throw new ae('Invalid or unsupported "alg" (Algorithm) value');
|
|
2265
2267
|
}
|
|
2266
2268
|
return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
|
|
2267
|
-
},
|
|
2268
|
-
const s =
|
|
2269
|
+
}, Ga = (e, t) => Hr(e.replace(t, "")), Ba = (e, t, r) => {
|
|
2270
|
+
const s = Ga(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
|
2269
2271
|
let a = r;
|
|
2270
2272
|
return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
|
|
2271
|
-
const i =
|
|
2272
|
-
return
|
|
2273
|
-
}),
|
|
2273
|
+
const i = La(n);
|
|
2274
|
+
return Fa(i), Ha(i);
|
|
2275
|
+
}), Ka("spki", s, t, a);
|
|
2274
2276
|
};
|
|
2275
|
-
function
|
|
2277
|
+
function Wa(e) {
|
|
2276
2278
|
let t, r;
|
|
2277
2279
|
switch (e.kty) {
|
|
2278
2280
|
case "AKP": {
|
|
@@ -2357,18 +2359,18 @@ function Ga(e) {
|
|
|
2357
2359
|
}
|
|
2358
2360
|
return { algorithm: t, keyUsages: r };
|
|
2359
2361
|
}
|
|
2360
|
-
const
|
|
2362
|
+
const qa = async (e) => {
|
|
2361
2363
|
if (!e.alg)
|
|
2362
2364
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
2363
|
-
const { algorithm: t, keyUsages: r } =
|
|
2365
|
+
const { algorithm: t, keyUsages: r } = Wa(e), s = { ...e };
|
|
2364
2366
|
return s.kty !== "AKP" && delete s.alg, delete s.use, crypto.subtle.importKey("jwk", s, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? r);
|
|
2365
2367
|
};
|
|
2366
|
-
async function
|
|
2368
|
+
async function ja(e, t, r) {
|
|
2367
2369
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
2368
2370
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
2369
|
-
return
|
|
2371
|
+
return Ba(e, t, r);
|
|
2370
2372
|
}
|
|
2371
|
-
const
|
|
2373
|
+
const Va = (e, t, r, s, a) => {
|
|
2372
2374
|
if (a.crit !== void 0 && s?.crit === void 0)
|
|
2373
2375
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
2374
2376
|
if (!s || s.crit === void 0)
|
|
@@ -2386,22 +2388,22 @@ const qa = (e, t, r, s, a) => {
|
|
|
2386
2388
|
throw new e(`Extension Header Parameter "${i}" MUST be integrity protected`);
|
|
2387
2389
|
}
|
|
2388
2390
|
return new Set(s.crit);
|
|
2389
|
-
},
|
|
2391
|
+
}, Ja = (e, t) => {
|
|
2390
2392
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
|
2391
2393
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
|
2392
2394
|
if (t)
|
|
2393
2395
|
return new Set(t);
|
|
2394
2396
|
};
|
|
2395
2397
|
function Kt(e) {
|
|
2396
|
-
return
|
|
2398
|
+
return Me(e) && typeof e.kty == "string";
|
|
2397
2399
|
}
|
|
2398
|
-
function
|
|
2400
|
+
function Qa(e) {
|
|
2399
2401
|
return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
|
|
2400
2402
|
}
|
|
2401
|
-
function
|
|
2403
|
+
function Ya(e) {
|
|
2402
2404
|
return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
|
|
2403
2405
|
}
|
|
2404
|
-
function
|
|
2406
|
+
function za(e) {
|
|
2405
2407
|
return e.kty === "oct" && typeof e.k == "string";
|
|
2406
2408
|
}
|
|
2407
2409
|
let Re;
|
|
@@ -2410,9 +2412,9 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2410
2412
|
let a = Re.get(e);
|
|
2411
2413
|
if (a?.[r])
|
|
2412
2414
|
return a[r];
|
|
2413
|
-
const n = await
|
|
2415
|
+
const n = await qa({ ...t, alg: r });
|
|
2414
2416
|
return s && Object.freeze(e), a ? a[r] = n : Re.set(e, { [r]: n }), n;
|
|
2415
|
-
},
|
|
2417
|
+
}, Xa = (e, t) => {
|
|
2416
2418
|
Re ||= /* @__PURE__ */ new WeakMap();
|
|
2417
2419
|
let r = Re.get(e);
|
|
2418
2420
|
if (r?.[t])
|
|
@@ -2508,7 +2510,7 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2508
2510
|
if (!n)
|
|
2509
2511
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
2510
2512
|
return r ? r[t] = n : Re.set(e, { [t]: n }), n;
|
|
2511
|
-
},
|
|
2513
|
+
}, Za = async (e, t) => {
|
|
2512
2514
|
if (e instanceof Uint8Array || Br(e))
|
|
2513
2515
|
return e;
|
|
2514
2516
|
if (Wr(e)) {
|
|
@@ -2516,7 +2518,7 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2516
2518
|
return e.export();
|
|
2517
2519
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
|
2518
2520
|
try {
|
|
2519
|
-
return
|
|
2521
|
+
return Xa(e, t);
|
|
2520
2522
|
} catch (s) {
|
|
2521
2523
|
if (s instanceof TypeError)
|
|
2522
2524
|
throw s;
|
|
@@ -2570,10 +2572,10 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2570
2572
|
throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
|
|
2571
2573
|
}
|
|
2572
2574
|
return !0;
|
|
2573
|
-
},
|
|
2575
|
+
}, en = (e, t, r) => {
|
|
2574
2576
|
if (!(t instanceof Uint8Array)) {
|
|
2575
2577
|
if (Kt(t)) {
|
|
2576
|
-
if (
|
|
2578
|
+
if (za(t) && $t(e, t, r))
|
|
2577
2579
|
return;
|
|
2578
2580
|
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');
|
|
2579
2581
|
}
|
|
@@ -2582,17 +2584,17 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2582
2584
|
if (t.type !== "secret")
|
|
2583
2585
|
throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
2584
2586
|
}
|
|
2585
|
-
},
|
|
2587
|
+
}, tn = (e, t, r) => {
|
|
2586
2588
|
if (Kt(t))
|
|
2587
2589
|
switch (r) {
|
|
2588
2590
|
case "decrypt":
|
|
2589
2591
|
case "sign":
|
|
2590
|
-
if (
|
|
2592
|
+
if (Qa(t) && $t(e, t, r))
|
|
2591
2593
|
return;
|
|
2592
2594
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
2593
2595
|
case "encrypt":
|
|
2594
2596
|
case "verify":
|
|
2595
|
-
if (
|
|
2597
|
+
if (Ya(t) && $t(e, t, r))
|
|
2596
2598
|
return;
|
|
2597
2599
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
2598
2600
|
}
|
|
@@ -2614,9 +2616,9 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2614
2616
|
case "encrypt":
|
|
2615
2617
|
throw new TypeError(`${_e(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
2616
2618
|
}
|
|
2617
|
-
},
|
|
2618
|
-
e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ?
|
|
2619
|
-
},
|
|
2619
|
+
}, rn = (e, t, r) => {
|
|
2620
|
+
e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? en(e, t, r) : tn(e, t, r);
|
|
2621
|
+
}, sn = (e, t) => {
|
|
2620
2622
|
const r = `SHA-${e.slice(-3)}`;
|
|
2621
2623
|
switch (e) {
|
|
2622
2624
|
case "HS256":
|
|
@@ -2645,25 +2647,25 @@ const lr = async (e, t, r, s = !1) => {
|
|
|
2645
2647
|
default:
|
|
2646
2648
|
throw new ae(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
2647
2649
|
}
|
|
2648
|
-
},
|
|
2650
|
+
}, an = async (e, t, r) => {
|
|
2649
2651
|
if (t instanceof Uint8Array) {
|
|
2650
2652
|
if (!e.startsWith("HS"))
|
|
2651
|
-
throw new TypeError(
|
|
2653
|
+
throw new TypeError($a(t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
|
2652
2654
|
return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
2653
2655
|
}
|
|
2654
|
-
return
|
|
2655
|
-
},
|
|
2656
|
-
const a = await
|
|
2657
|
-
|
|
2658
|
-
const n =
|
|
2656
|
+
return Pa(t, e, r), t;
|
|
2657
|
+
}, nn = async (e, t, r, s) => {
|
|
2658
|
+
const a = await an(e, t, "verify");
|
|
2659
|
+
Da(e, a);
|
|
2660
|
+
const n = sn(e, a.algorithm);
|
|
2659
2661
|
try {
|
|
2660
2662
|
return await crypto.subtle.verify(n, a, r, s);
|
|
2661
2663
|
} catch {
|
|
2662
2664
|
return !1;
|
|
2663
2665
|
}
|
|
2664
2666
|
};
|
|
2665
|
-
async function
|
|
2666
|
-
if (!
|
|
2667
|
+
async function on(e, t, r) {
|
|
2668
|
+
if (!Me(e))
|
|
2667
2669
|
throw new L("Flattened JWS must be an object");
|
|
2668
2670
|
if (e.protected === void 0 && e.header === void 0)
|
|
2669
2671
|
throw new L('Flattened JWS must have either of the "protected" or "header" members');
|
|
@@ -2673,7 +2675,7 @@ async function an(e, t, r) {
|
|
|
2673
2675
|
throw new L("JWS Payload missing");
|
|
2674
2676
|
if (typeof e.signature != "string")
|
|
2675
2677
|
throw new L("JWS Signature missing or incorrect type");
|
|
2676
|
-
if (e.header !== void 0 && !
|
|
2678
|
+
if (e.header !== void 0 && !Me(e.header))
|
|
2677
2679
|
throw new L("JWS Unprotected Header incorrect type");
|
|
2678
2680
|
let s = {};
|
|
2679
2681
|
if (e.protected)
|
|
@@ -2683,38 +2685,38 @@ async function an(e, t, r) {
|
|
|
2683
2685
|
} catch {
|
|
2684
2686
|
throw new L("JWS Protected Header is invalid");
|
|
2685
2687
|
}
|
|
2686
|
-
if (!
|
|
2688
|
+
if (!xa(s, e.header))
|
|
2687
2689
|
throw new L("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
2688
2690
|
const a = {
|
|
2689
2691
|
...s,
|
|
2690
2692
|
...e.header
|
|
2691
|
-
}, n =
|
|
2693
|
+
}, n = Va(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
|
|
2692
2694
|
let i = !0;
|
|
2693
2695
|
if (n.has("b64") && (i = s.b64, typeof i != "boolean"))
|
|
2694
2696
|
throw new L('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
2695
2697
|
const { alg: o } = a;
|
|
2696
2698
|
if (typeof o != "string" || !o)
|
|
2697
2699
|
throw new L('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
2698
|
-
const c = r &&
|
|
2700
|
+
const c = r && Ja("algorithms", r.algorithms);
|
|
2699
2701
|
if (c && !c.has(o))
|
|
2700
|
-
throw new
|
|
2702
|
+
throw new Ca('"alg" (Algorithm) Header Parameter value not allowed');
|
|
2701
2703
|
if (i) {
|
|
2702
2704
|
if (typeof e.payload != "string")
|
|
2703
2705
|
throw new L("JWS Payload must be a string");
|
|
2704
2706
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
2705
2707
|
throw new L("JWS Payload must be a string or an Uint8Array instance");
|
|
2706
2708
|
let f = !1;
|
|
2707
|
-
typeof t == "function" && (t = await t(s, e), f = !0),
|
|
2708
|
-
const d =
|
|
2709
|
+
typeof t == "function" && (t = await t(s, e), f = !0), rn(o, t, "verify");
|
|
2710
|
+
const d = Ra(He.encode(e.protected ?? ""), He.encode("."), typeof e.payload == "string" ? He.encode(e.payload) : e.payload);
|
|
2709
2711
|
let u;
|
|
2710
2712
|
try {
|
|
2711
2713
|
u = $e(e.signature);
|
|
2712
2714
|
} catch {
|
|
2713
2715
|
throw new L("Failed to base64url decode the signature");
|
|
2714
2716
|
}
|
|
2715
|
-
const l = await
|
|
2716
|
-
if (!await
|
|
2717
|
-
throw new
|
|
2717
|
+
const l = await Za(t, o);
|
|
2718
|
+
if (!await nn(o, l, u, d))
|
|
2719
|
+
throw new Oa();
|
|
2718
2720
|
let m;
|
|
2719
2721
|
if (i)
|
|
2720
2722
|
try {
|
|
@@ -2726,17 +2728,17 @@ async function an(e, t, r) {
|
|
|
2726
2728
|
const p = { payload: m };
|
|
2727
2729
|
return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
|
|
2728
2730
|
}
|
|
2729
|
-
async function
|
|
2731
|
+
async function cn(e, t, r) {
|
|
2730
2732
|
if (e instanceof Uint8Array && (e = Ce.decode(e)), typeof e != "string")
|
|
2731
2733
|
throw new L("Compact JWS must be a string or Uint8Array");
|
|
2732
2734
|
const { 0: s, 1: a, 2: n, length: i } = e.split(".");
|
|
2733
2735
|
if (i !== 3)
|
|
2734
2736
|
throw new L("Invalid Compact JWS");
|
|
2735
|
-
const o = await
|
|
2737
|
+
const o = await on({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
|
|
2736
2738
|
return typeof t == "function" ? { ...c, key: o.key } : c;
|
|
2737
2739
|
}
|
|
2738
|
-
const
|
|
2739
|
-
const t =
|
|
2740
|
+
const ln = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Jr = Vr * 60, Gt = Jr * 24, un = Gt * 7, dn = Gt * 365.25, hn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ur = (e) => {
|
|
2741
|
+
const t = hn.exec(e);
|
|
2740
2742
|
if (!t || t[4] && t[1])
|
|
2741
2743
|
throw new TypeError("Invalid time period format");
|
|
2742
2744
|
const r = parseFloat(t[2]), s = t[3].toLowerCase();
|
|
@@ -2761,7 +2763,7 @@ const on = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Qr = Vr * 60, Gt = Qr
|
|
|
2761
2763
|
case "hr":
|
|
2762
2764
|
case "hrs":
|
|
2763
2765
|
case "h":
|
|
2764
|
-
a = Math.round(r *
|
|
2766
|
+
a = Math.round(r * Jr);
|
|
2765
2767
|
break;
|
|
2766
2768
|
case "day":
|
|
2767
2769
|
case "days":
|
|
@@ -2771,21 +2773,21 @@ const on = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Qr = Vr * 60, Gt = Qr
|
|
|
2771
2773
|
case "week":
|
|
2772
2774
|
case "weeks":
|
|
2773
2775
|
case "w":
|
|
2774
|
-
a = Math.round(r *
|
|
2776
|
+
a = Math.round(r * un);
|
|
2775
2777
|
break;
|
|
2776
2778
|
default:
|
|
2777
|
-
a = Math.round(r *
|
|
2779
|
+
a = Math.round(r * dn);
|
|
2778
2780
|
break;
|
|
2779
2781
|
}
|
|
2780
2782
|
return t[1] === "-" || t[4] === "ago" ? -a : a;
|
|
2781
|
-
}, dr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`,
|
|
2782
|
-
function
|
|
2783
|
+
}, dr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, fn = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
|
2784
|
+
function mn(e, t, r = {}) {
|
|
2783
2785
|
let s;
|
|
2784
2786
|
try {
|
|
2785
2787
|
s = JSON.parse(Ce.decode(t));
|
|
2786
2788
|
} catch {
|
|
2787
2789
|
}
|
|
2788
|
-
if (!
|
|
2790
|
+
if (!Me(s))
|
|
2789
2791
|
throw new re("JWT Claims Set must be a top-level JSON object");
|
|
2790
2792
|
const { typ: a } = r;
|
|
2791
2793
|
if (a && (typeof e.typ != "string" || dr(e.typ) !== dr(a)))
|
|
@@ -2799,7 +2801,7 @@ function hn(e, t, r = {}) {
|
|
|
2799
2801
|
throw new X('unexpected "iss" claim value', s, "iss", "check_failed");
|
|
2800
2802
|
if (o && s.sub !== o)
|
|
2801
2803
|
throw new X('unexpected "sub" claim value', s, "sub", "check_failed");
|
|
2802
|
-
if (c && !
|
|
2804
|
+
if (c && !fn(s.aud, typeof c == "string" ? [c] : c))
|
|
2803
2805
|
throw new X('unexpected "aud" claim value', s, "aud", "check_failed");
|
|
2804
2806
|
let u;
|
|
2805
2807
|
switch (typeof r.clockTolerance) {
|
|
@@ -2815,7 +2817,7 @@ function hn(e, t, r = {}) {
|
|
|
2815
2817
|
default:
|
|
2816
2818
|
throw new TypeError("Invalid clockTolerance option type");
|
|
2817
2819
|
}
|
|
2818
|
-
const { currentDate: l } = r, m =
|
|
2820
|
+
const { currentDate: l } = r, m = ln(l || /* @__PURE__ */ new Date());
|
|
2819
2821
|
if ((s.iat !== void 0 || f) && typeof s.iat != "number")
|
|
2820
2822
|
throw new X('"iat" claim must be a number', s, "iat", "invalid");
|
|
2821
2823
|
if (s.nbf !== void 0) {
|
|
@@ -2839,14 +2841,14 @@ function hn(e, t, r = {}) {
|
|
|
2839
2841
|
}
|
|
2840
2842
|
return s;
|
|
2841
2843
|
}
|
|
2842
|
-
async function
|
|
2843
|
-
const s = await
|
|
2844
|
+
async function pn(e, t, r) {
|
|
2845
|
+
const s = await cn(e, t, r);
|
|
2844
2846
|
if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
|
|
2845
2847
|
throw new re("JWTs MUST NOT use unencoded payload");
|
|
2846
|
-
const a = { payload:
|
|
2848
|
+
const a = { payload: mn(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
|
|
2847
2849
|
return typeof t == "function" ? { ...a, key: s.key } : a;
|
|
2848
2850
|
}
|
|
2849
|
-
function
|
|
2851
|
+
function yn(e) {
|
|
2850
2852
|
if (typeof e != "string")
|
|
2851
2853
|
throw new re("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
2852
2854
|
const { 1: t, length: r } = e.split(".");
|
|
@@ -2868,71 +2870,71 @@ function mn(e) {
|
|
|
2868
2870
|
} catch {
|
|
2869
2871
|
throw new re("Failed to parse the decoded payload as JSON");
|
|
2870
2872
|
}
|
|
2871
|
-
if (!
|
|
2873
|
+
if (!Me(a))
|
|
2872
2874
|
throw new re("Invalid JWT Claims Set");
|
|
2873
2875
|
return a;
|
|
2874
2876
|
}
|
|
2875
|
-
const
|
|
2877
|
+
const De = async (e) => {
|
|
2876
2878
|
try {
|
|
2877
|
-
const t = F.ALG, r = await
|
|
2878
|
-
return await
|
|
2879
|
+
const t = F.ALG, r = await ja(_a, t);
|
|
2880
|
+
return await pn(e, r, {
|
|
2879
2881
|
issuer: F.ISSUER
|
|
2880
2882
|
});
|
|
2881
2883
|
} catch {
|
|
2882
2884
|
return;
|
|
2883
2885
|
}
|
|
2884
|
-
},
|
|
2886
|
+
}, gn = (e) => {
|
|
2885
2887
|
try {
|
|
2886
|
-
return
|
|
2888
|
+
return yn(e);
|
|
2887
2889
|
} catch {
|
|
2888
2890
|
return;
|
|
2889
2891
|
}
|
|
2890
|
-
},
|
|
2892
|
+
}, M = [];
|
|
2891
2893
|
for (let e = 0; e < 256; ++e)
|
|
2892
|
-
|
|
2893
|
-
function
|
|
2894
|
-
return (
|
|
2894
|
+
M.push((e + 256).toString(16).slice(1));
|
|
2895
|
+
function bn(e, t = 0) {
|
|
2896
|
+
return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
|
|
2895
2897
|
}
|
|
2896
2898
|
let pt;
|
|
2897
|
-
const
|
|
2898
|
-
function
|
|
2899
|
+
const En = new Uint8Array(16);
|
|
2900
|
+
function wn() {
|
|
2899
2901
|
if (!pt) {
|
|
2900
2902
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2901
2903
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2902
2904
|
pt = crypto.getRandomValues.bind(crypto);
|
|
2903
2905
|
}
|
|
2904
|
-
return pt(
|
|
2906
|
+
return pt(En);
|
|
2905
2907
|
}
|
|
2906
|
-
const
|
|
2908
|
+
const Sn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hr = { randomUUID: Sn };
|
|
2907
2909
|
function fr(e, t, r) {
|
|
2908
2910
|
if (hr.randomUUID && !e)
|
|
2909
2911
|
return hr.randomUUID();
|
|
2910
2912
|
e = e || {};
|
|
2911
|
-
const s = e.random ?? e.rng?.() ??
|
|
2913
|
+
const s = e.random ?? e.rng?.() ?? wn();
|
|
2912
2914
|
if (s.length < 16)
|
|
2913
2915
|
throw new Error("Random bytes length must be >= 16");
|
|
2914
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
2916
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, bn(s);
|
|
2915
2917
|
}
|
|
2916
|
-
const mr = globalThis.crypto,
|
|
2918
|
+
const mr = globalThis.crypto, vn = (e) => `${fr()}${fr()}`.slice(0, e), Tn = (e) => btoa(
|
|
2917
2919
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
2918
2920
|
);
|
|
2919
|
-
async function
|
|
2921
|
+
async function An(e) {
|
|
2920
2922
|
if (!mr.subtle)
|
|
2921
2923
|
throw new Error(
|
|
2922
2924
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
2923
2925
|
);
|
|
2924
2926
|
const t = new TextEncoder().encode(e), r = await mr.subtle.digest("SHA-256", t);
|
|
2925
|
-
return
|
|
2927
|
+
return Tn(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2926
2928
|
}
|
|
2927
|
-
async function
|
|
2928
|
-
const r =
|
|
2929
|
+
async function In(e) {
|
|
2930
|
+
const r = vn(43), s = await An(r);
|
|
2929
2931
|
return {
|
|
2930
2932
|
code_verifier: r,
|
|
2931
2933
|
code_challenge: s
|
|
2932
2934
|
};
|
|
2933
2935
|
}
|
|
2934
|
-
const
|
|
2935
|
-
var
|
|
2936
|
+
const Qr = Lt(null);
|
|
2937
|
+
var _n = Object.defineProperty, Rn = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t, r) => Rn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
2936
2938
|
/*!
|
|
2937
2939
|
@versini/auth-provider v8.0.5
|
|
2938
2940
|
© 2025 gizmette.com
|
|
@@ -2960,9 +2962,9 @@ function rt(e) {
|
|
|
2960
2962
|
return n;
|
|
2961
2963
|
}
|
|
2962
2964
|
function Bt() {
|
|
2963
|
-
return
|
|
2965
|
+
return Cn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
2964
2966
|
}
|
|
2965
|
-
const
|
|
2967
|
+
const Cn = {
|
|
2966
2968
|
stubThis: (e) => e
|
|
2967
2969
|
};
|
|
2968
2970
|
function Yr(e) {
|
|
@@ -2994,7 +2996,7 @@ let U = class extends Error {
|
|
|
2994
2996
|
}), this.name = a ?? s.name, this.code = r;
|
|
2995
2997
|
}
|
|
2996
2998
|
};
|
|
2997
|
-
function
|
|
2999
|
+
function On({ error: e, options: t }) {
|
|
2998
3000
|
const { publicKey: r } = t;
|
|
2999
3001
|
if (!r)
|
|
3000
3002
|
throw Error("options was missing required publicKey property");
|
|
@@ -3080,7 +3082,7 @@ function Rn({ error: e, options: t }) {
|
|
|
3080
3082
|
}
|
|
3081
3083
|
return e;
|
|
3082
3084
|
}
|
|
3083
|
-
class
|
|
3085
|
+
class kn {
|
|
3084
3086
|
constructor() {
|
|
3085
3087
|
Object.defineProperty(this, "controller", {
|
|
3086
3088
|
enumerable: !0,
|
|
@@ -3104,12 +3106,12 @@ class Cn {
|
|
|
3104
3106
|
}
|
|
3105
3107
|
}
|
|
3106
3108
|
}
|
|
3107
|
-
const Xr = new
|
|
3109
|
+
const Xr = new kn(), Nn = ["cross-platform", "platform"];
|
|
3108
3110
|
function Zr(e) {
|
|
3109
|
-
if (e && !(
|
|
3111
|
+
if (e && !(Nn.indexOf(e) < 0))
|
|
3110
3112
|
return e;
|
|
3111
3113
|
}
|
|
3112
|
-
async function
|
|
3114
|
+
async function Pn(e) {
|
|
3113
3115
|
!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 });
|
|
3114
3116
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
|
3115
3117
|
if (!Bt())
|
|
@@ -3128,7 +3130,7 @@ async function kn(e) {
|
|
|
3128
3130
|
try {
|
|
3129
3131
|
n = await navigator.credentials.create(a);
|
|
3130
3132
|
} catch (p) {
|
|
3131
|
-
throw
|
|
3133
|
+
throw On({ error: p, options: a });
|
|
3132
3134
|
}
|
|
3133
3135
|
if (!n)
|
|
3134
3136
|
throw new Error("Registration was not completed");
|
|
@@ -3177,7 +3179,7 @@ function gt(e, t) {
|
|
|
3177
3179
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
3178
3180
|
`, t);
|
|
3179
3181
|
}
|
|
3180
|
-
function
|
|
3182
|
+
function $n() {
|
|
3181
3183
|
if (!Bt())
|
|
3182
3184
|
return bt.stubThis(new Promise((t) => t(!1)));
|
|
3183
3185
|
const e = globalThis.PublicKeyCredential;
|
|
@@ -3186,7 +3188,7 @@ function Nn() {
|
|
|
3186
3188
|
const bt = {
|
|
3187
3189
|
stubThis: (e) => e
|
|
3188
3190
|
};
|
|
3189
|
-
function
|
|
3191
|
+
function xn({ error: e, options: t }) {
|
|
3190
3192
|
const { publicKey: r } = t;
|
|
3191
3193
|
if (!r)
|
|
3192
3194
|
throw Error("options was missing required publicKey property");
|
|
@@ -3227,7 +3229,7 @@ function Pn({ error: e, options: t }) {
|
|
|
3227
3229
|
}
|
|
3228
3230
|
return e;
|
|
3229
3231
|
}
|
|
3230
|
-
async function
|
|
3232
|
+
async function Mn(e) {
|
|
3231
3233
|
!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 });
|
|
3232
3234
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
|
|
3233
3235
|
if (!Bt())
|
|
@@ -3240,7 +3242,7 @@ async function $n(e) {
|
|
|
3240
3242
|
allowCredentials: a
|
|
3241
3243
|
}, i = {};
|
|
3242
3244
|
if (r) {
|
|
3243
|
-
if (!await
|
|
3245
|
+
if (!await $n())
|
|
3244
3246
|
throw Error("Browser does not support WebAuthn autofill");
|
|
3245
3247
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
|
|
3246
3248
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
@@ -3251,7 +3253,7 @@ async function $n(e) {
|
|
|
3251
3253
|
try {
|
|
3252
3254
|
o = await navigator.credentials.get(i);
|
|
3253
3255
|
} catch (m) {
|
|
3254
|
-
throw
|
|
3256
|
+
throw xn({ error: m, options: i });
|
|
3255
3257
|
}
|
|
3256
3258
|
if (!o)
|
|
3257
3259
|
throw new Error("Authentication was not completed");
|
|
@@ -3279,18 +3281,18 @@ const pr = (e, t) => {
|
|
|
3279
3281
|
typeof t == "function" ? t() : t
|
|
3280
3282
|
);
|
|
3281
3283
|
window.localStorage.setItem(e, r), es(e, r);
|
|
3282
|
-
},
|
|
3284
|
+
}, Dn = (e) => {
|
|
3283
3285
|
window.localStorage.removeItem(e), es(e, null);
|
|
3284
|
-
}, yr = (e) => window.localStorage.getItem(e),
|
|
3286
|
+
}, yr = (e) => window.localStorage.getItem(e), Ln = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
3285
3287
|
function Ke({
|
|
3286
3288
|
key: e,
|
|
3287
3289
|
initialValue: t
|
|
3288
3290
|
}) {
|
|
3289
|
-
const r =
|
|
3291
|
+
const r = Hs(Ln, () => yr(e)), s = Y(
|
|
3290
3292
|
(i) => {
|
|
3291
3293
|
try {
|
|
3292
3294
|
const o = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
3293
|
-
o == null ?
|
|
3295
|
+
o == null ? Dn(e) : pr(e, o);
|
|
3294
3296
|
} catch (o) {
|
|
3295
3297
|
console.warn(o);
|
|
3296
3298
|
}
|
|
@@ -3309,33 +3311,33 @@ function Ke({
|
|
|
3309
3311
|
}
|
|
3310
3312
|
}, [e, t]), [r ? JSON.parse(r) : null, s, a, n];
|
|
3311
3313
|
}
|
|
3312
|
-
const
|
|
3314
|
+
const D = [];
|
|
3313
3315
|
for (let e = 0; e < 256; ++e)
|
|
3314
|
-
|
|
3315
|
-
function
|
|
3316
|
-
return (
|
|
3316
|
+
D.push((e + 256).toString(16).slice(1));
|
|
3317
|
+
function Un(e, t = 0) {
|
|
3318
|
+
return (D[e[t + 0]] + D[e[t + 1]] + D[e[t + 2]] + D[e[t + 3]] + "-" + D[e[t + 4]] + D[e[t + 5]] + "-" + D[e[t + 6]] + D[e[t + 7]] + "-" + D[e[t + 8]] + D[e[t + 9]] + "-" + D[e[t + 10]] + D[e[t + 11]] + D[e[t + 12]] + D[e[t + 13]] + D[e[t + 14]] + D[e[t + 15]]).toLowerCase();
|
|
3317
3319
|
}
|
|
3318
3320
|
let Et;
|
|
3319
|
-
const
|
|
3320
|
-
function
|
|
3321
|
+
const Fn = new Uint8Array(16);
|
|
3322
|
+
function Hn() {
|
|
3321
3323
|
if (!Et) {
|
|
3322
3324
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3323
3325
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3324
3326
|
Et = crypto.getRandomValues.bind(crypto);
|
|
3325
3327
|
}
|
|
3326
|
-
return Et(
|
|
3328
|
+
return Et(Fn);
|
|
3327
3329
|
}
|
|
3328
|
-
const
|
|
3330
|
+
const Kn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gr = { randomUUID: Kn };
|
|
3329
3331
|
function wt(e, t, r) {
|
|
3330
3332
|
if (gr.randomUUID && !e)
|
|
3331
3333
|
return gr.randomUUID();
|
|
3332
3334
|
e = e || {};
|
|
3333
|
-
const s = e.random ?? e.rng?.() ??
|
|
3335
|
+
const s = e.random ?? e.rng?.() ?? Hn();
|
|
3334
3336
|
if (s.length < 16)
|
|
3335
3337
|
throw new Error("Random bytes length must be >= 16");
|
|
3336
|
-
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128,
|
|
3338
|
+
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Un(s);
|
|
3337
3339
|
}
|
|
3338
|
-
const ve = "Your session has expired. For your security, please log in again to continue.",
|
|
3340
|
+
const ve = "Your session has expired. For your security, please log in again to continue.", Gn = "Your session has been successfully terminated.", St = "Login failed. Please try again.", Bn = "Error getting access token, please re-authenticate.", Wn = "You forgot to wrap your component in <AuthProvider>.", Ge = "@@auth@@", Ne = "LOADING", je = "LOGIN", ts = "LOGOUT", Le = "success", te = "failure", rs = "include", ss = "POST", as = "application/json", Be = {
|
|
3339
3341
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
3340
3342
|
$clientId: String!,
|
|
3341
3343
|
$username: String!,
|
|
@@ -3490,21 +3492,21 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3490
3492
|
} catch (a) {
|
|
3491
3493
|
return console.error(a), { status: te, data: [] };
|
|
3492
3494
|
}
|
|
3493
|
-
},
|
|
3495
|
+
}, qn = process.env.NODE_ENV === "production", jn = !qn, ns = {
|
|
3494
3496
|
isLoading: !0,
|
|
3495
3497
|
isAuthenticated: !1,
|
|
3496
3498
|
user: void 0,
|
|
3497
3499
|
logoutReason: "",
|
|
3498
3500
|
debug: !1,
|
|
3499
3501
|
authenticationType: ""
|
|
3500
|
-
},
|
|
3502
|
+
}, Vn = (e) => {
|
|
3501
3503
|
try {
|
|
3502
|
-
const t =
|
|
3504
|
+
const t = gn(e);
|
|
3503
3505
|
return t ? t[F.USER_ID_KEY] : "";
|
|
3504
3506
|
} catch {
|
|
3505
3507
|
return "";
|
|
3506
3508
|
}
|
|
3507
|
-
},
|
|
3509
|
+
}, Jn = async ({
|
|
3508
3510
|
userId: e,
|
|
3509
3511
|
clientId: t,
|
|
3510
3512
|
domain: r,
|
|
@@ -3529,7 +3531,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3529
3531
|
status: te
|
|
3530
3532
|
};
|
|
3531
3533
|
}
|
|
3532
|
-
},
|
|
3534
|
+
}, Qn = async ({
|
|
3533
3535
|
username: e,
|
|
3534
3536
|
password: t,
|
|
3535
3537
|
clientId: r,
|
|
@@ -3558,7 +3560,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3558
3560
|
domain: c,
|
|
3559
3561
|
ua: f
|
|
3560
3562
|
}
|
|
3561
|
-
}), l = await
|
|
3563
|
+
}), l = await De(u?.data?.idToken);
|
|
3562
3564
|
return l && l.payload[F.USER_ID_KEY] !== "" && l.payload[F.NONCE_KEY] === s ? {
|
|
3563
3565
|
idToken: u.data.idToken,
|
|
3564
3566
|
accessToken: u.data.accessToken,
|
|
@@ -3574,7 +3576,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3574
3576
|
status: !1
|
|
3575
3577
|
};
|
|
3576
3578
|
}
|
|
3577
|
-
},
|
|
3579
|
+
}, Yn = async ({
|
|
3578
3580
|
nonce: e,
|
|
3579
3581
|
clientId: t,
|
|
3580
3582
|
code_challenge: r,
|
|
@@ -3604,7 +3606,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3604
3606
|
data: ""
|
|
3605
3607
|
};
|
|
3606
3608
|
}
|
|
3607
|
-
},
|
|
3609
|
+
}, zn = async ({
|
|
3608
3610
|
clientId: e,
|
|
3609
3611
|
userId: t,
|
|
3610
3612
|
nonce: r,
|
|
@@ -3626,7 +3628,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3626
3628
|
accessToken: a,
|
|
3627
3629
|
domain: n
|
|
3628
3630
|
}
|
|
3629
|
-
}), c = await
|
|
3631
|
+
}), c = await De(o?.data?.accessToken);
|
|
3630
3632
|
return c && c.payload[F.USER_ID_KEY] !== "" && c.payload[F.NONCE_KEY] === r ? {
|
|
3631
3633
|
accessToken: o.data.accessToken,
|
|
3632
3634
|
refreshToken: o.data.refreshToken,
|
|
@@ -3641,7 +3643,7 @@ const ve = "Your session has expired. For your security, please log in again to
|
|
|
3641
3643
|
};
|
|
3642
3644
|
}
|
|
3643
3645
|
};
|
|
3644
|
-
class
|
|
3646
|
+
class Xn {
|
|
3645
3647
|
constructor(t = null, r = null) {
|
|
3646
3648
|
yt(this, "refreshTokenPromise", null), yt(this, "accessToken"), yt(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
3647
3649
|
}
|
|
@@ -3672,9 +3674,9 @@ class Yn {
|
|
|
3672
3674
|
nonce: a,
|
|
3673
3675
|
domain: n
|
|
3674
3676
|
}) {
|
|
3675
|
-
const i = await
|
|
3677
|
+
const i = await De(this.refreshToken);
|
|
3676
3678
|
if (i && i.payload[F.USER_ID_KEY] !== "") {
|
|
3677
|
-
const o = await
|
|
3679
|
+
const o = await zn({
|
|
3678
3680
|
endpoint: t,
|
|
3679
3681
|
clientId: r,
|
|
3680
3682
|
userId: s,
|
|
@@ -3697,7 +3699,7 @@ class Yn {
|
|
|
3697
3699
|
}
|
|
3698
3700
|
}
|
|
3699
3701
|
const Ie = () => {
|
|
3700
|
-
throw new Error(
|
|
3702
|
+
throw new Error(Wn);
|
|
3701
3703
|
}, is = Lt({
|
|
3702
3704
|
isAuthenticated: !1,
|
|
3703
3705
|
isLoading: !1,
|
|
@@ -3709,18 +3711,18 @@ const Ie = () => {
|
|
|
3709
3711
|
loginWithPasskey: Ie,
|
|
3710
3712
|
logoutReason: "",
|
|
3711
3713
|
authenticationType: ""
|
|
3712
|
-
}),
|
|
3714
|
+
}), Zn = () => ({
|
|
3713
3715
|
...nt(is)
|
|
3714
|
-
}),
|
|
3716
|
+
}), ei = (e) => Y(
|
|
3715
3717
|
(...t) => {
|
|
3716
3718
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
3717
3719
|
},
|
|
3718
3720
|
[e]
|
|
3719
|
-
),
|
|
3721
|
+
), ti = ie.createContext({
|
|
3720
3722
|
state: ns,
|
|
3721
3723
|
dispatch: () => {
|
|
3722
3724
|
}
|
|
3723
|
-
}),
|
|
3725
|
+
}), ri = (e, t) => t?.type === Ne ? {
|
|
3724
3726
|
...e,
|
|
3725
3727
|
isLoading: t.payload.isLoading
|
|
3726
3728
|
} : t?.type === je ? {
|
|
@@ -3737,21 +3739,21 @@ const Ie = () => {
|
|
|
3737
3739
|
user: void 0,
|
|
3738
3740
|
authenticationType: "",
|
|
3739
3741
|
logoutReason: t.payload.logoutReason
|
|
3740
|
-
} : e,
|
|
3741
|
-
const t =
|
|
3742
|
-
return /* @__PURE__ */ h(
|
|
3742
|
+
} : e, si = ({ children: e }) => {
|
|
3743
|
+
const t = Zn();
|
|
3744
|
+
return /* @__PURE__ */ h(Qr.Provider, { value: t, children: e });
|
|
3743
3745
|
}, br = ({
|
|
3744
3746
|
children: e,
|
|
3745
3747
|
sessionExpiration: t,
|
|
3746
3748
|
clientId: r,
|
|
3747
3749
|
domain: s = "",
|
|
3748
3750
|
debug: a = !1,
|
|
3749
|
-
endpoint: n =
|
|
3751
|
+
endpoint: n = jn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
|
|
3750
3752
|
}) => {
|
|
3751
|
-
const [i, o] = Cr(
|
|
3753
|
+
const [i, o] = Cr(ri, {
|
|
3752
3754
|
...ns,
|
|
3753
3755
|
debug: a
|
|
3754
|
-
}), c =
|
|
3756
|
+
}), c = ei(a), f = j(!1), [d, u, , l] = Ke({
|
|
3755
3757
|
key: `${Ge}::${r}::@@user@@`
|
|
3756
3758
|
}), [m, p, , g] = Ke({
|
|
3757
3759
|
key: `${Ge}::${r}::@@access@@`
|
|
@@ -3761,7 +3763,7 @@ const Ie = () => {
|
|
|
3761
3763
|
}
|
|
3762
3764
|
), [A, K, , R] = Ke({
|
|
3763
3765
|
key: `${Ge}::${r}::@@nonce@@`
|
|
3764
|
-
}),
|
|
3766
|
+
}), Q = new Xn(m, b), C = Y(() => {
|
|
3765
3767
|
c("removeLocalStorage: removing local storage"), l(), g(), O(), R();
|
|
3766
3768
|
}, [
|
|
3767
3769
|
g,
|
|
@@ -3785,10 +3787,10 @@ const Ie = () => {
|
|
|
3785
3787
|
), x = Y(
|
|
3786
3788
|
async (w) => {
|
|
3787
3789
|
c("invalidateAndLogout: invalidating and logging out");
|
|
3788
|
-
const { user: T } = i, S = T?.userId ||
|
|
3790
|
+
const { user: T } = i, S = T?.userId || Vn(d);
|
|
3789
3791
|
S || c(
|
|
3790
3792
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
3791
|
-
), await
|
|
3793
|
+
), await Jn({
|
|
3792
3794
|
userId: S,
|
|
3793
3795
|
clientId: r,
|
|
3794
3796
|
domain: s,
|
|
@@ -3810,7 +3812,7 @@ const Ie = () => {
|
|
|
3810
3812
|
if (!f.current)
|
|
3811
3813
|
return i.isLoading && d !== null ? (async () => {
|
|
3812
3814
|
try {
|
|
3813
|
-
const w = await
|
|
3815
|
+
const w = await De(d);
|
|
3814
3816
|
w && w.payload[F.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
|
|
3815
3817
|
type: je,
|
|
3816
3818
|
payload: {
|
|
@@ -3835,14 +3837,14 @@ const Ie = () => {
|
|
|
3835
3837
|
o({ type: Ne, payload: { isLoading: !0 } }), C();
|
|
3836
3838
|
const S = wt();
|
|
3837
3839
|
K(S), c("login: Logging in with password");
|
|
3838
|
-
const { code_verifier: le, code_challenge: ue } = await
|
|
3840
|
+
const { code_verifier: le, code_challenge: ue } = await In(), zt = await Yn({
|
|
3839
3841
|
endpoint: n,
|
|
3840
3842
|
nonce: S,
|
|
3841
3843
|
clientId: r,
|
|
3842
3844
|
code_challenge: ue
|
|
3843
3845
|
});
|
|
3844
3846
|
if (zt.status) {
|
|
3845
|
-
const we = await
|
|
3847
|
+
const we = await Qn({
|
|
3846
3848
|
endpoint: n,
|
|
3847
3849
|
username: w,
|
|
3848
3850
|
password: T,
|
|
@@ -3869,19 +3871,19 @@ const Ie = () => {
|
|
|
3869
3871
|
}
|
|
3870
3872
|
return !1;
|
|
3871
3873
|
}, I = async (w) => {
|
|
3872
|
-
w?.preventDefault(), await x(
|
|
3874
|
+
w?.preventDefault(), await x(Gn);
|
|
3873
3875
|
}, N = async () => {
|
|
3874
3876
|
const { isAuthenticated: w, user: T } = i;
|
|
3875
3877
|
try {
|
|
3876
3878
|
if (w && T && T.userId) {
|
|
3877
3879
|
if (m) {
|
|
3878
3880
|
c("getAccessToken");
|
|
3879
|
-
const le = await
|
|
3881
|
+
const le = await De(m);
|
|
3880
3882
|
if (le && le.payload[F.USER_ID_KEY] !== "")
|
|
3881
3883
|
return m;
|
|
3882
3884
|
}
|
|
3883
3885
|
c("getAccessToken: invalid access token, trying to refresh it");
|
|
3884
|
-
const S = await
|
|
3886
|
+
const S = await Q.refreshtoken({
|
|
3885
3887
|
endpoint: n,
|
|
3886
3888
|
clientId: r,
|
|
3887
3889
|
userId: T.userId,
|
|
@@ -3898,7 +3900,7 @@ const Ie = () => {
|
|
|
3898
3900
|
} catch {
|
|
3899
3901
|
return c(
|
|
3900
3902
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
3901
|
-
), await x(
|
|
3903
|
+
), await x(Bn), "";
|
|
3902
3904
|
}
|
|
3903
3905
|
}, V = () => i.isAuthenticated && d ? d : "", ce = async () => {
|
|
3904
3906
|
const { user: w } = i;
|
|
@@ -3915,7 +3917,7 @@ const Ie = () => {
|
|
|
3915
3917
|
});
|
|
3916
3918
|
if (T.status)
|
|
3917
3919
|
try {
|
|
3918
|
-
const S = await
|
|
3920
|
+
const S = await Pn({
|
|
3919
3921
|
optionsJSON: T.data
|
|
3920
3922
|
});
|
|
3921
3923
|
return T = await Ae({
|
|
@@ -3962,7 +3964,7 @@ const Ie = () => {
|
|
|
3962
3964
|
});
|
|
3963
3965
|
if (S.status)
|
|
3964
3966
|
try {
|
|
3965
|
-
const le = await
|
|
3967
|
+
const le = await Mn({
|
|
3966
3968
|
optionsJSON: S.data
|
|
3967
3969
|
});
|
|
3968
3970
|
return S = await Ae({
|
|
@@ -4008,7 +4010,7 @@ const Ie = () => {
|
|
|
4008
4010
|
}
|
|
4009
4011
|
return !1;
|
|
4010
4012
|
};
|
|
4011
|
-
return /* @__PURE__ */ h(
|
|
4013
|
+
return /* @__PURE__ */ h(ti.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
|
|
4012
4014
|
is.Provider,
|
|
4013
4015
|
{
|
|
4014
4016
|
value: {
|
|
@@ -4020,7 +4022,7 @@ const Ie = () => {
|
|
|
4020
4022
|
registeringForPasskey: ce,
|
|
4021
4023
|
loginWithPasskey: Ee
|
|
4022
4024
|
},
|
|
4023
|
-
children: /* @__PURE__ */ h(
|
|
4025
|
+
children: /* @__PURE__ */ h(si, { children: e })
|
|
4024
4026
|
}
|
|
4025
4027
|
) });
|
|
4026
4028
|
};
|
|
@@ -4038,11 +4040,11 @@ try {
|
|
|
4038
4040
|
} catch {
|
|
4039
4041
|
}
|
|
4040
4042
|
const os = () => {
|
|
4041
|
-
const e = nt(
|
|
4043
|
+
const e = nt(Qr);
|
|
4042
4044
|
if (!e)
|
|
4043
4045
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
|
4044
4046
|
return e;
|
|
4045
|
-
},
|
|
4047
|
+
}, rc = "I'm having trouble right now. Please try again later.", sc = "action-search", ac = "action-sort", nc = "action-toggle-prompt", ic = "action-reset-prompt", cs = "sassy-saint-", oc = "search", cc = "sort", lc = "sort-timestamp", uc = "sort-token-usage", dc = "sort-memory-direction", hc = "sort-memory-column", fc = "favorites-only", mc = "private-disclosure", pc = "reasoning-disclosure", ls = "service-worker", Er = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", yc = 10, gc = 30, bc = "av-prompt", Ec = "av-prompt-editable", wc = "size-5 sm:size-4", Sc = 30, vc = 15, Tc = 130, Ac = 160, Ic = 16, _c = 24, Rc = 76, Cc = 76;
|
|
4046
4048
|
let vt = null, se = !1;
|
|
4047
4049
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
|
4048
4050
|
se && (se = !1, window.location.reload());
|
|
@@ -4056,7 +4058,7 @@ function xt() {
|
|
|
4056
4058
|
);
|
|
4057
4059
|
return e === null ? !1 : e === "true";
|
|
4058
4060
|
}
|
|
4059
|
-
function
|
|
4061
|
+
function ai(e) {
|
|
4060
4062
|
localStorage.setItem(
|
|
4061
4063
|
cs + ls,
|
|
4062
4064
|
e.toString()
|
|
@@ -4082,7 +4084,7 @@ async function us() {
|
|
|
4082
4084
|
return console.error("[SW] Service worker registration failed:", e), !1;
|
|
4083
4085
|
}
|
|
4084
4086
|
}
|
|
4085
|
-
async function
|
|
4087
|
+
async function ni() {
|
|
4086
4088
|
if (!Wt())
|
|
4087
4089
|
return !1;
|
|
4088
4090
|
try {
|
|
@@ -4092,8 +4094,8 @@ async function si() {
|
|
|
4092
4094
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
|
4093
4095
|
}
|
|
4094
4096
|
}
|
|
4095
|
-
async function
|
|
4096
|
-
if (
|
|
4097
|
+
async function Oc(e) {
|
|
4098
|
+
if (ai(e), e) {
|
|
4097
4099
|
se = !0;
|
|
4098
4100
|
try {
|
|
4099
4101
|
sessionStorage.setItem("sw-toggle-pending", "enabled");
|
|
@@ -4114,14 +4116,14 @@ async function Cc(e) {
|
|
|
4114
4116
|
} catch {
|
|
4115
4117
|
}
|
|
4116
4118
|
try {
|
|
4117
|
-
Wt() && await
|
|
4119
|
+
Wt() && await ii();
|
|
4118
4120
|
} catch (t) {
|
|
4119
4121
|
console.warn("[SW] Failed to invalidate cache:", t);
|
|
4120
4122
|
}
|
|
4121
|
-
await
|
|
4123
|
+
await ni(), window.location.reload();
|
|
4122
4124
|
}
|
|
4123
4125
|
}
|
|
4124
|
-
async function
|
|
4126
|
+
async function ii() {
|
|
4125
4127
|
try {
|
|
4126
4128
|
if ("caches" in window) {
|
|
4127
4129
|
const e = await caches.keys();
|
|
@@ -4147,7 +4149,7 @@ async function ai() {
|
|
|
4147
4149
|
function Tt() {
|
|
4148
4150
|
return "unknown";
|
|
4149
4151
|
}
|
|
4150
|
-
async function
|
|
4152
|
+
async function kc(e = {}) {
|
|
4151
4153
|
const { urlLimitPerCache: t } = e;
|
|
4152
4154
|
if (!("caches" in window))
|
|
4153
4155
|
return { version: Tt(), caches: [], totalItems: 0 };
|
|
@@ -4174,69 +4176,76 @@ async function Oc(e = {}) {
|
|
|
4174
4176
|
return console.warn("[SW] getCacheInfo failed:", r), { version: Tt(), caches: [], totalItems: 0 };
|
|
4175
4177
|
}
|
|
4176
4178
|
}
|
|
4177
|
-
const
|
|
4179
|
+
const Nc = "user", Pc = "assistant", $c = "data", Ue = "OpenAI", lt = "Anthropic", ut = "Google", ds = "Perplexity", xc = Ue, oi = [
|
|
4178
4180
|
Ue,
|
|
4179
4181
|
lt,
|
|
4180
4182
|
ut
|
|
4181
|
-
], hs = "gpt-5", fs = "gpt-4.1-nano",
|
|
4183
|
+
], hs = "gpt-5", fs = "gpt-5-mini", ms = "gpt-5-nano", ps = "gpt-4.1-nano", ys = "claude-haiku-4-5-20251001", gs = "claude-sonnet-4-5-20250929", bs = "gemini-2.5-flash", Es = "gemini-2.5-pro", ws = "sonar", Ss = "sonar-pro", Mc = {
|
|
4182
4184
|
[hs]: "GPT-5",
|
|
4183
|
-
[fs]: "GPT-
|
|
4184
|
-
[ms]: "
|
|
4185
|
-
[ps]: "
|
|
4186
|
-
[ys]: "
|
|
4187
|
-
[gs]: "
|
|
4188
|
-
[bs]: "
|
|
4189
|
-
[Es]: "
|
|
4190
|
-
|
|
4191
|
-
[
|
|
4192
|
-
|
|
4193
|
-
oi
|
|
4194
|
-
],
|
|
4185
|
+
[fs]: "GPT-5 Mini",
|
|
4186
|
+
[ms]: "GPT-5 Nano",
|
|
4187
|
+
[ps]: "GPT-4.1 Nano",
|
|
4188
|
+
[ys]: "Claude Haiku 4.5",
|
|
4189
|
+
[gs]: "Claude Sonnet 4.5",
|
|
4190
|
+
[bs]: "Gemini 2.5 Flash",
|
|
4191
|
+
[Es]: "Gemini 2.5 Pro",
|
|
4192
|
+
[ws]: "Sonar",
|
|
4193
|
+
[Ss]: "Sonar Pro"
|
|
4194
|
+
}, ci = {
|
|
4195
4195
|
[Ue]: [
|
|
4196
|
-
|
|
4196
|
+
ps,
|
|
4197
|
+
hs,
|
|
4198
|
+
fs,
|
|
4199
|
+
ms
|
|
4200
|
+
],
|
|
4201
|
+
[lt]: [ys, gs],
|
|
4202
|
+
[ut]: [bs, Es],
|
|
4203
|
+
[ds]: [ws, Ss]
|
|
4204
|
+
}, li = "claude-sonnet-4", ui = "claude-3", di = "gpt-", hi = "o3", fi = "o4", mi = "gemini", pi = "sonar", yi = {
|
|
4205
|
+
[lt]: [
|
|
4197
4206
|
li,
|
|
4198
4207
|
ui
|
|
4199
4208
|
],
|
|
4200
|
-
[
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
[Ue]: [fs, hs],
|
|
4204
|
-
[lt]: [ms, ps],
|
|
4205
|
-
[ut]: [ys, gs],
|
|
4206
|
-
[ds]: [bs, Es]
|
|
4207
|
-
}, Dc = "x-diggidy-chat-id", Mc = (e) => {
|
|
4208
|
-
for (const [t, r] of Object.entries(
|
|
4209
|
+
[Ue]: [
|
|
4210
|
+
di,
|
|
4211
|
+
hi,
|
|
4209
4212
|
fi
|
|
4213
|
+
],
|
|
4214
|
+
[ut]: [mi],
|
|
4215
|
+
[ds]: [pi]
|
|
4216
|
+
}, Dc = "x-diggidy-chat-id", Lc = "timestamp", Uc = "tokenUsage", k = "Diggidy", Fc = {
|
|
4217
|
+
TOOL: {
|
|
4218
|
+
MEMORIES: "getUserMemories"
|
|
4219
|
+
},
|
|
4220
|
+
ADDON: {
|
|
4221
|
+
ATTACHMENTS: "addon:attachments",
|
|
4222
|
+
REASONING: "addon:reasoning"
|
|
4223
|
+
}
|
|
4224
|
+
}, Hc = (e) => {
|
|
4225
|
+
for (const [t, r] of Object.entries(
|
|
4226
|
+
yi
|
|
4210
4227
|
))
|
|
4211
4228
|
if (r.some((s) => e.startsWith(s)))
|
|
4212
4229
|
return t;
|
|
4213
4230
|
return null;
|
|
4214
|
-
},
|
|
4231
|
+
}, Kc = (e) => {
|
|
4215
4232
|
if (!e || e.length === 0)
|
|
4216
4233
|
return [];
|
|
4217
4234
|
const t = /* @__PURE__ */ new Set();
|
|
4218
4235
|
for (const r of e)
|
|
4219
4236
|
for (const [s, a] of Object.entries(
|
|
4220
|
-
|
|
4237
|
+
ci
|
|
4221
4238
|
))
|
|
4222
4239
|
a.includes(r) && (s === Ue || s === lt || s === ut) && t.add(s);
|
|
4223
|
-
return
|
|
4224
|
-
}, Uc = "timestamp", Fc = "tokenUsage", k = "Diggidy", Hc = {
|
|
4225
|
-
TOOL: {
|
|
4226
|
-
MEMORIES: "getUserMemories"
|
|
4227
|
-
},
|
|
4228
|
-
ADDON: {
|
|
4229
|
-
ATTACHMENTS: "addon:attachments",
|
|
4230
|
-
REASONING: "addon:reasoning"
|
|
4231
|
-
}
|
|
4240
|
+
return oi.filter((r) => t.has(r));
|
|
4232
4241
|
};
|
|
4233
|
-
function
|
|
4242
|
+
function gi(e) {
|
|
4234
4243
|
return e ? new Set(e) : null;
|
|
4235
4244
|
}
|
|
4236
|
-
function
|
|
4245
|
+
function bi(e, t, r) {
|
|
4237
4246
|
if (!t || Array.isArray(t) && t.length === 0)
|
|
4238
4247
|
return !0;
|
|
4239
|
-
const s = e instanceof Set ? e :
|
|
4248
|
+
const s = e instanceof Set ? e : gi(e);
|
|
4240
4249
|
return !s || s.size === 0 ? !1 : typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a));
|
|
4241
4250
|
}
|
|
4242
4251
|
const G = {
|
|
@@ -4489,12 +4498,12 @@ const G = {
|
|
|
4489
4498
|
DELETE_MEMORIES: {
|
|
4490
4499
|
schema: G.DELETE_MEMORIES
|
|
4491
4500
|
}
|
|
4492
|
-
},
|
|
4501
|
+
}, Ei = process.env.PUBLIC_SASSY_API_SERVER_URL, Oe = async ({
|
|
4493
4502
|
query: e,
|
|
4494
4503
|
data: t,
|
|
4495
4504
|
headers: r = {},
|
|
4496
4505
|
...s
|
|
4497
|
-
}) => await fetch(`${
|
|
4506
|
+
}) => await fetch(`${Ei}/graphql`, {
|
|
4498
4507
|
method: "POST",
|
|
4499
4508
|
credentials: "include",
|
|
4500
4509
|
headers: {
|
|
@@ -4507,7 +4516,7 @@ const G = {
|
|
|
4507
4516
|
variables: t
|
|
4508
4517
|
}),
|
|
4509
4518
|
...s
|
|
4510
|
-
}),
|
|
4519
|
+
}), vs = async (e) => {
|
|
4511
4520
|
const t = e.type?.data ? e.type.data(e.params) : e.params;
|
|
4512
4521
|
try {
|
|
4513
4522
|
let r;
|
|
@@ -4539,22 +4548,22 @@ const G = {
|
|
|
4539
4548
|
} catch (r) {
|
|
4540
4549
|
throw console.error(r), r;
|
|
4541
4550
|
}
|
|
4542
|
-
},
|
|
4551
|
+
}, Gc = async ({
|
|
4543
4552
|
provider: e,
|
|
4544
4553
|
accessToken: t,
|
|
4545
4554
|
username: r
|
|
4546
|
-
}) => await
|
|
4555
|
+
}) => await vs({
|
|
4547
4556
|
accessToken: t,
|
|
4548
4557
|
type: z.SET_USER_PREFERENCES,
|
|
4549
4558
|
params: {
|
|
4550
4559
|
user: r,
|
|
4551
4560
|
provider: e
|
|
4552
4561
|
}
|
|
4553
|
-
}),
|
|
4562
|
+
}), Bc = async ({
|
|
4554
4563
|
plan: e,
|
|
4555
4564
|
accessToken: t,
|
|
4556
4565
|
username: r
|
|
4557
|
-
}) => await
|
|
4566
|
+
}) => await vs({
|
|
4558
4567
|
accessToken: t,
|
|
4559
4568
|
type: z.SET_USER_PREFERENCES,
|
|
4560
4569
|
params: {
|
|
@@ -4569,13 +4578,13 @@ const G = {
|
|
|
4569
4578
|
PREFERENCES: "preferences",
|
|
4570
4579
|
USAGE: "usage",
|
|
4571
4580
|
USER_MEMORIES: "userMemories"
|
|
4572
|
-
},
|
|
4581
|
+
}, Wc = () => ye({
|
|
4573
4582
|
queryKey: [oe.CAPABILITIES],
|
|
4574
4583
|
queryFn: async () => await be({
|
|
4575
4584
|
type: z.GET_SERVER_CAPABILITIES,
|
|
4576
4585
|
noAuth: !0
|
|
4577
4586
|
})
|
|
4578
|
-
}),
|
|
4587
|
+
}), qc = () => ye({
|
|
4579
4588
|
queryKey: [oe.CHANGELOGS],
|
|
4580
4589
|
queryFn: async () => await be({
|
|
4581
4590
|
type: z.GET_CHANGELOGS,
|
|
@@ -4584,7 +4593,7 @@ const G = {
|
|
|
4584
4593
|
client: !0
|
|
4585
4594
|
}
|
|
4586
4595
|
})
|
|
4587
|
-
}),
|
|
4596
|
+
}), wi = ({
|
|
4588
4597
|
user: e,
|
|
4589
4598
|
getAccessToken: t
|
|
4590
4599
|
}) => ye({
|
|
@@ -4596,7 +4605,7 @@ const G = {
|
|
|
4596
4605
|
type: z.GET_USER_PREFERENCES,
|
|
4597
4606
|
getAccessToken: t
|
|
4598
4607
|
})
|
|
4599
|
-
}),
|
|
4608
|
+
}), jc = ({
|
|
4600
4609
|
user: e,
|
|
4601
4610
|
getAccessToken: t
|
|
4602
4611
|
}) => ye({
|
|
@@ -4608,7 +4617,7 @@ const G = {
|
|
|
4608
4617
|
type: z.GET_CHATS_STATS,
|
|
4609
4618
|
getAccessToken: t
|
|
4610
4619
|
})
|
|
4611
|
-
}),
|
|
4620
|
+
}), Vc = ({
|
|
4612
4621
|
user: e,
|
|
4613
4622
|
searchString: t,
|
|
4614
4623
|
sortDirection: r,
|
|
@@ -4632,7 +4641,7 @@ const G = {
|
|
|
4632
4641
|
type: z.GET_CHATS,
|
|
4633
4642
|
getAccessToken: a
|
|
4634
4643
|
})
|
|
4635
|
-
}),
|
|
4644
|
+
}), Jc = ({
|
|
4636
4645
|
user: e,
|
|
4637
4646
|
month: t,
|
|
4638
4647
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
|
@@ -4663,7 +4672,7 @@ const G = {
|
|
|
4663
4672
|
type: z.GET_USER_MEMORIES,
|
|
4664
4673
|
getAccessToken: r
|
|
4665
4674
|
})
|
|
4666
|
-
}),
|
|
4675
|
+
}), Yc = ({
|
|
4667
4676
|
getAccessToken: e
|
|
4668
4677
|
}) => {
|
|
4669
4678
|
const t = it();
|
|
@@ -4687,7 +4696,7 @@ const G = {
|
|
|
4687
4696
|
});
|
|
4688
4697
|
}
|
|
4689
4698
|
});
|
|
4690
|
-
},
|
|
4699
|
+
}, zc = ({
|
|
4691
4700
|
getAccessToken: e
|
|
4692
4701
|
}) => {
|
|
4693
4702
|
const t = it();
|
|
@@ -4744,19 +4753,19 @@ const G = {
|
|
|
4744
4753
|
} catch (a) {
|
|
4745
4754
|
return Promise.reject(a);
|
|
4746
4755
|
}
|
|
4747
|
-
},
|
|
4756
|
+
}, Ts = Lt(
|
|
4748
4757
|
void 0
|
|
4749
4758
|
), wr = {
|
|
4750
4759
|
capabilities: /* @__PURE__ */ new Set(),
|
|
4751
4760
|
allowedModels: [],
|
|
4752
4761
|
version: null,
|
|
4753
4762
|
status: "idle"
|
|
4754
|
-
},
|
|
4763
|
+
}, Si = ({
|
|
4755
4764
|
user: e,
|
|
4756
4765
|
getAccessToken: t,
|
|
4757
4766
|
children: r
|
|
4758
4767
|
}) => {
|
|
4759
|
-
const [s, a] = ne(wr), n =
|
|
4768
|
+
const [s, a] = ne(wr), n = Qe(
|
|
4760
4769
|
() => e ? `entitlements:${e}` : null,
|
|
4761
4770
|
[e]
|
|
4762
4771
|
), i = Y(() => {
|
|
@@ -4781,7 +4790,7 @@ const G = {
|
|
|
4781
4790
|
W(() => {
|
|
4782
4791
|
s.status === "idle" && i();
|
|
4783
4792
|
}, [i, s.status]);
|
|
4784
|
-
const o =
|
|
4793
|
+
const o = wi({ user: e, getAccessToken: t });
|
|
4785
4794
|
W(() => {
|
|
4786
4795
|
o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
|
|
4787
4796
|
}, [o.isLoading, s.status]), W(() => {
|
|
@@ -4838,25 +4847,25 @@ const G = {
|
|
|
4838
4847
|
sessionStorage.removeItem(n);
|
|
4839
4848
|
} catch {
|
|
4840
4849
|
}
|
|
4841
|
-
}, [n]), d =
|
|
4850
|
+
}, [n]), d = Qe(
|
|
4842
4851
|
() => ({
|
|
4843
4852
|
...s,
|
|
4844
|
-
check: (u, l) => s.status !== "ready" ? !1 :
|
|
4853
|
+
check: (u, l) => s.status !== "ready" ? !1 : bi(s.capabilities, u, { any: l?.any }),
|
|
4845
4854
|
loadFromProfile: c,
|
|
4846
4855
|
reset: f
|
|
4847
4856
|
}),
|
|
4848
4857
|
[s, c, f]
|
|
4849
4858
|
);
|
|
4850
|
-
return /* @__PURE__ */ h(
|
|
4859
|
+
return /* @__PURE__ */ h(Ts.Provider, { value: d, children: r });
|
|
4851
4860
|
};
|
|
4852
|
-
function
|
|
4853
|
-
const e = nt(
|
|
4861
|
+
function Xc() {
|
|
4862
|
+
const e = nt(Ts);
|
|
4854
4863
|
if (!e)
|
|
4855
4864
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
|
4856
4865
|
return e;
|
|
4857
4866
|
}
|
|
4858
4867
|
const Sr = (e) => Number.isFinite(e) ? e : 0;
|
|
4859
|
-
function
|
|
4868
|
+
function vi(e) {
|
|
4860
4869
|
return {
|
|
4861
4870
|
days: Math.trunc(e / 864e5),
|
|
4862
4871
|
hours: Math.trunc(e / 36e5 % 24),
|
|
@@ -4867,7 +4876,7 @@ function wi(e) {
|
|
|
4867
4876
|
nanoseconds: Math.trunc(Sr(e * 1e6) % 1e3)
|
|
4868
4877
|
};
|
|
4869
4878
|
}
|
|
4870
|
-
function
|
|
4879
|
+
function Ti(e) {
|
|
4871
4880
|
return {
|
|
4872
4881
|
days: e / 86400000n,
|
|
4873
4882
|
hours: e / 3600000n % 24n,
|
|
@@ -4878,20 +4887,20 @@ function Si(e) {
|
|
|
4878
4887
|
nanoseconds: 0n
|
|
4879
4888
|
};
|
|
4880
4889
|
}
|
|
4881
|
-
function
|
|
4890
|
+
function Ai(e) {
|
|
4882
4891
|
switch (typeof e) {
|
|
4883
4892
|
case "number": {
|
|
4884
4893
|
if (Number.isFinite(e))
|
|
4885
|
-
return
|
|
4894
|
+
return vi(e);
|
|
4886
4895
|
break;
|
|
4887
4896
|
}
|
|
4888
4897
|
case "bigint":
|
|
4889
|
-
return
|
|
4898
|
+
return Ti(e);
|
|
4890
4899
|
}
|
|
4891
4900
|
throw new TypeError("Expected a finite number or bigint");
|
|
4892
4901
|
}
|
|
4893
|
-
const
|
|
4894
|
-
function
|
|
4902
|
+
const Ii = (e) => e === 0 || e === 0n, _i = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ri = 1e-7, Ci = 24n * 60n * 60n * 1000n;
|
|
4903
|
+
function Oi(e, t) {
|
|
4895
4904
|
const r = typeof e == "bigint";
|
|
4896
4905
|
if (!r && !Number.isFinite(e))
|
|
4897
4906
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -4900,18 +4909,18 @@ function Ri(e, t) {
|
|
|
4900
4909
|
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);
|
|
4901
4910
|
let a = [];
|
|
4902
4911
|
const n = (d, u) => {
|
|
4903
|
-
const l = Math.floor(d * 10 ** u +
|
|
4912
|
+
const l = Math.floor(d * 10 ** u + Ri);
|
|
4904
4913
|
return (Math.round(l) / 10 ** u).toFixed(u);
|
|
4905
4914
|
}, i = (d, u, l, m) => {
|
|
4906
|
-
if (!((a.length === 0 || !t.colonNotation) &&
|
|
4915
|
+
if (!((a.length === 0 || !t.colonNotation) && Ii(d) && !(t.colonNotation && l === "m"))) {
|
|
4907
4916
|
if (m ??= String(d), t.colonNotation) {
|
|
4908
4917
|
const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
|
|
4909
4918
|
m = "0".repeat(Math.max(0, g - p)) + m;
|
|
4910
4919
|
} else
|
|
4911
|
-
m += t.verbose ? " " +
|
|
4920
|
+
m += t.verbose ? " " + _i(u, d) : l;
|
|
4912
4921
|
a.push(m);
|
|
4913
4922
|
}
|
|
4914
|
-
}, o =
|
|
4923
|
+
}, o = Ai(e), c = BigInt(o.days);
|
|
4915
4924
|
if (t.hideYearAndDays ? i(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(c, "day", "d") : (i(c / 365n, "year", "y"), i(c % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
|
|
4916
4925
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
|
|
4917
4926
|
const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
|
|
@@ -4927,7 +4936,7 @@ function Ri(e, t) {
|
|
|
4927
4936
|
);
|
|
4928
4937
|
}
|
|
4929
4938
|
} else {
|
|
4930
|
-
const d = (r ? Number(e %
|
|
4939
|
+
const d = (r ? Number(e % Ci) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
|
|
4931
4940
|
i(Number.parseFloat(m), "second", "s", m);
|
|
4932
4941
|
}
|
|
4933
4942
|
if (a.length === 0)
|
|
@@ -4935,7 +4944,7 @@ function Ri(e, t) {
|
|
|
4935
4944
|
const f = t.colonNotation ? ":" : " ";
|
|
4936
4945
|
return typeof t.unitCount == "number" && (a = a.slice(0, Math.max(t.unitCount, 1))), s + a.join(f);
|
|
4937
4946
|
}
|
|
4938
|
-
const
|
|
4947
|
+
const As = process.env.NODE_ENV === "production", qt = !As, Is = qt ? "gizmette.local.com" : "gizmette.com", jt = (e, t) => {
|
|
4939
4948
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", s = 0 | Math.abs(e), a = 0 | Math.abs(e) * 60 % 60, n = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
|
4940
4949
|
return {
|
|
4941
4950
|
dir: r,
|
|
@@ -4943,17 +4952,17 @@ const vs = process.env.NODE_ENV === "production", qt = !vs, Ts = qt ? "gizmette.
|
|
|
4943
4952
|
min: a,
|
|
4944
4953
|
sec: n
|
|
4945
4954
|
};
|
|
4946
|
-
},
|
|
4955
|
+
}, ki = (e) => {
|
|
4947
4956
|
if (!e && e !== 0)
|
|
4948
4957
|
return "N/A";
|
|
4949
4958
|
const t = jt(e, !1);
|
|
4950
4959
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4951
|
-
},
|
|
4960
|
+
}, Ni = (e) => {
|
|
4952
4961
|
if (!e && e !== 0)
|
|
4953
4962
|
return "N/A";
|
|
4954
4963
|
const t = jt(e, !0);
|
|
4955
4964
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4956
|
-
},
|
|
4965
|
+
}, Pi = async () => {
|
|
4957
4966
|
const e = {
|
|
4958
4967
|
/**
|
|
4959
4968
|
* A boolean value that indicates the application would like to receive the
|
|
@@ -4996,18 +5005,18 @@ const vs = process.env.NODE_ENV === "production", qt = !vs, Ts = qt ? "gizmette.
|
|
|
4996
5005
|
e
|
|
4997
5006
|
);
|
|
4998
5007
|
});
|
|
4999
|
-
},
|
|
5008
|
+
}, $i = (e) => window.btoa(
|
|
5000
5009
|
encodeURIComponent(e).replace(
|
|
5001
5010
|
/%([0-9A-F]{2})/g,
|
|
5002
5011
|
function(r, s) {
|
|
5003
5012
|
return String.fromCharCode(+`0x${s}`);
|
|
5004
5013
|
}
|
|
5005
5014
|
)
|
|
5006
|
-
),
|
|
5015
|
+
), xi = (e) => decodeURIComponent(
|
|
5007
5016
|
window.atob(e).split("").map(function(t) {
|
|
5008
5017
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
|
5009
5018
|
}).join("")
|
|
5010
|
-
),
|
|
5019
|
+
), Mi = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-between", children: [
|
|
5011
5020
|
/* @__PURE__ */ h(
|
|
5012
5021
|
"dt",
|
|
5013
5022
|
{
|
|
@@ -5029,7 +5038,7 @@ const vs = process.env.NODE_ENV === "production", qt = !vs, Ts = qt ? "gizmette.
|
|
|
5029
5038
|
}
|
|
5030
5039
|
)
|
|
5031
5040
|
] }) }, `${e}-${s}`)) : null;
|
|
5032
|
-
function
|
|
5041
|
+
function Di({
|
|
5033
5042
|
data: e,
|
|
5034
5043
|
formatter: t = (r) => r
|
|
5035
5044
|
}) {
|
|
@@ -5041,15 +5050,15 @@ function xi({
|
|
|
5041
5050
|
);
|
|
5042
5051
|
return t(s ? s / r.length : 0);
|
|
5043
5052
|
}
|
|
5044
|
-
const
|
|
5053
|
+
const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ui = new Intl.NumberFormat("en", {
|
|
5045
5054
|
style: "decimal",
|
|
5046
5055
|
signDisplay: "never",
|
|
5047
5056
|
minimumFractionDigits: 0,
|
|
5048
5057
|
maximumFractionDigits: 0
|
|
5049
|
-
}),
|
|
5058
|
+
}), Fi = (e) => e > 0 ? Oi(e, {
|
|
5050
5059
|
secondsDecimalDigits: 2,
|
|
5051
5060
|
unitCount: 2
|
|
5052
|
-
}) : "N/A",
|
|
5061
|
+
}) : "N/A", _s = ({
|
|
5053
5062
|
isAuthenticated: e,
|
|
5054
5063
|
extraClass: t
|
|
5055
5064
|
}) => y(
|
|
@@ -5058,7 +5067,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5058
5067
|
"flex-1 overflow-y-auto",
|
|
5059
5068
|
e ? "pt-0" : "pt-10",
|
|
5060
5069
|
t
|
|
5061
|
-
),
|
|
5070
|
+
), Rs = ({
|
|
5062
5071
|
extraClass: e
|
|
5063
5072
|
} = {}) => y(
|
|
5064
5073
|
"flex flex-col",
|
|
@@ -5066,21 +5075,21 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5066
5075
|
"sm:px-5 px-2",
|
|
5067
5076
|
"transition-all ease-in-out duration-500",
|
|
5068
5077
|
e
|
|
5069
|
-
),
|
|
5078
|
+
), Hi = (e, t) => t === 1 ? e : `${e}s`, Ki = (e, t) => {
|
|
5070
5079
|
let r;
|
|
5071
5080
|
return (...s) => {
|
|
5072
5081
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
|
5073
5082
|
};
|
|
5074
|
-
},
|
|
5075
|
-
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r =
|
|
5083
|
+
}, Cs = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Os = () => window.innerWidth < 403, ks = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Gi = () => {
|
|
5084
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Os(), s = navigator.maxTouchPoints > 1;
|
|
5076
5085
|
return e && t && r && s;
|
|
5077
|
-
},
|
|
5078
|
-
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t =
|
|
5086
|
+
}, Bi = () => {
|
|
5087
|
+
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = ks(), r = navigator.maxTouchPoints > 1;
|
|
5079
5088
|
return e && t && r;
|
|
5080
|
-
},
|
|
5089
|
+
}, Wi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, qi = (e) => {
|
|
5081
5090
|
const t = e.replace(/([A-Z])/g, " $1");
|
|
5082
5091
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5083
|
-
},
|
|
5092
|
+
}, ji = ({
|
|
5084
5093
|
autoClose: e = 3e3,
|
|
5085
5094
|
containerId: t,
|
|
5086
5095
|
position: r = "top-center",
|
|
@@ -5104,7 +5113,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5104
5113
|
theme: c,
|
|
5105
5114
|
transition: f,
|
|
5106
5115
|
icon: d
|
|
5107
|
-
}),
|
|
5116
|
+
}), Zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Is, convertCamelCaseToReadable: qi, convertDDToDMS: jt, convertLatitudeToDMS: ki, convertLongitudeToDMS: Ni, debounce: Ki, durationFormatter: Fi, extractAverage: Di, getCurrentGeoLocation: Pi, getLayoutPaddingClass: Rs, getMessageContaintWrapperClass: _s, isDev: qt, isLastMessageFromRole: Li, isPWAMode: Wi, isProbablyMobile: Os, isProbablyTablet: ks, isProbablyiPad: Bi, isProbablyiPhone: Gi, isProd: As, isTauri: Cs, numberFormatter: Ui, obfuscate: $i, pluralize: Hi, renderDataAsList: Mi, toastOptions: ji, unObfuscate: xi }, Symbol.toStringTag, { value: "Module" })), vr = "av-button", dt = "icon", Vt = "button", Mt = "link", Vi = ({
|
|
5108
5117
|
type: e,
|
|
5109
5118
|
size: t,
|
|
5110
5119
|
labelRight: r,
|
|
@@ -5115,7 +5124,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5115
5124
|
const i = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
5116
5125
|
switch (e) {
|
|
5117
5126
|
case Vt:
|
|
5118
|
-
case
|
|
5127
|
+
case Mt:
|
|
5119
5128
|
return y({
|
|
5120
5129
|
[i]: t === "small",
|
|
5121
5130
|
[o]: t === "medium",
|
|
@@ -5140,7 +5149,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5140
5149
|
"h-12": t === "large" && n && (r || s)
|
|
5141
5150
|
});
|
|
5142
5151
|
}
|
|
5143
|
-
},
|
|
5152
|
+
}, Ji = ({
|
|
5144
5153
|
type: e,
|
|
5145
5154
|
size: t,
|
|
5146
5155
|
labelRight: r,
|
|
@@ -5149,9 +5158,9 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5149
5158
|
const a = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
5150
5159
|
switch (e) {
|
|
5151
5160
|
case Vt:
|
|
5152
|
-
case
|
|
5161
|
+
case Mt:
|
|
5153
5162
|
return y({
|
|
5154
|
-
"text-center": e ===
|
|
5163
|
+
"text-center": e === Mt,
|
|
5155
5164
|
[a]: t === "small",
|
|
5156
5165
|
[n]: t === "medium",
|
|
5157
5166
|
[i]: t === "large"
|
|
@@ -5163,7 +5172,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5163
5172
|
[i]: t === "large" && (r || s)
|
|
5164
5173
|
});
|
|
5165
5174
|
}
|
|
5166
|
-
},
|
|
5175
|
+
}, Qi = ({
|
|
5167
5176
|
mode: e,
|
|
5168
5177
|
noBackground: t,
|
|
5169
5178
|
truncate: r,
|
|
@@ -5199,7 +5208,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5199
5208
|
return y("not-prose text-copy-lighter", {
|
|
5200
5209
|
truncate: r
|
|
5201
5210
|
});
|
|
5202
|
-
},
|
|
5211
|
+
}, Yi = ({
|
|
5203
5212
|
mode: e,
|
|
5204
5213
|
noBackground: t,
|
|
5205
5214
|
variant: r
|
|
@@ -5229,13 +5238,13 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5229
5238
|
if (r === "selected")
|
|
5230
5239
|
return "bg-action-selected-dark";
|
|
5231
5240
|
}
|
|
5232
|
-
},
|
|
5241
|
+
}, zi = ({
|
|
5233
5242
|
radius: e
|
|
5234
5243
|
}) => y({
|
|
5235
5244
|
"rounded-full": e === "large",
|
|
5236
5245
|
"rounded-md": e === "medium",
|
|
5237
5246
|
"rounded-xs": e === "small"
|
|
5238
|
-
}),
|
|
5247
|
+
}), Xi = ({
|
|
5239
5248
|
mode: e,
|
|
5240
5249
|
disabled: t,
|
|
5241
5250
|
variant: r
|
|
@@ -5273,7 +5282,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5273
5282
|
});
|
|
5274
5283
|
if (r === "selected")
|
|
5275
5284
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
5276
|
-
},
|
|
5285
|
+
}, Zi = ({
|
|
5277
5286
|
mode: e,
|
|
5278
5287
|
disabled: t,
|
|
5279
5288
|
variant: r
|
|
@@ -5311,7 +5320,7 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5311
5320
|
});
|
|
5312
5321
|
if (r === "selected")
|
|
5313
5322
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
5314
|
-
},
|
|
5323
|
+
}, eo = ({
|
|
5315
5324
|
mode: e,
|
|
5316
5325
|
noBorder: t,
|
|
5317
5326
|
variant: r
|
|
@@ -5341,14 +5350,14 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5341
5350
|
});
|
|
5342
5351
|
if (r === "selected")
|
|
5343
5352
|
return "border border-border-selected-dark";
|
|
5344
|
-
},
|
|
5353
|
+
}, to = ({
|
|
5345
5354
|
focusMode: e
|
|
5346
5355
|
}) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
5347
5356
|
"focus:outline-focus-dark": e === "dark",
|
|
5348
5357
|
"focus:outline-focus-light": e === "light",
|
|
5349
5358
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
5350
5359
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
5351
|
-
}),
|
|
5360
|
+
}), ro = ({
|
|
5352
5361
|
mode: e,
|
|
5353
5362
|
raw: t,
|
|
5354
5363
|
iconClassName: r,
|
|
@@ -5375,11 +5384,11 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5375
5384
|
} : s === "selected" && (a = {
|
|
5376
5385
|
"text-copy-lighter": !0
|
|
5377
5386
|
}), y(a, r);
|
|
5378
|
-
},
|
|
5387
|
+
}, so = ({
|
|
5379
5388
|
animated: e
|
|
5380
5389
|
}) => y({
|
|
5381
5390
|
"transition-opacity duration-300 ease-in-out": e
|
|
5382
|
-
}),
|
|
5391
|
+
}), Ns = ({
|
|
5383
5392
|
type: e,
|
|
5384
5393
|
className: t,
|
|
5385
5394
|
raw: r,
|
|
@@ -5399,15 +5408,15 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5399
5408
|
animated: b
|
|
5400
5409
|
}) => (l || (l = "primary"), r ? y(vr, t) : y(
|
|
5401
5410
|
vr,
|
|
5402
|
-
|
|
5411
|
+
Qi({
|
|
5403
5412
|
mode: s,
|
|
5404
5413
|
variant: l,
|
|
5405
5414
|
noBackground: u,
|
|
5406
5415
|
truncate: m
|
|
5407
5416
|
}),
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5417
|
+
Yi({ mode: s, noBackground: u, variant: l }),
|
|
5418
|
+
zi({ radius: g }),
|
|
5419
|
+
Vi({
|
|
5411
5420
|
type: e,
|
|
5412
5421
|
size: o,
|
|
5413
5422
|
labelRight: f,
|
|
@@ -5415,11 +5424,11 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5415
5424
|
align: p,
|
|
5416
5425
|
animated: b
|
|
5417
5426
|
}),
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5427
|
+
Ji({ type: e, size: o, labelRight: f, labelLeft: d }),
|
|
5428
|
+
eo({ mode: s, variant: l, noBorder: c }),
|
|
5429
|
+
to({ focusMode: a }),
|
|
5430
|
+
Xi({ mode: s, variant: l, disabled: n }),
|
|
5431
|
+
Zi({ mode: s, variant: l, disabled: n }),
|
|
5423
5432
|
{
|
|
5424
5433
|
"w-full": i,
|
|
5425
5434
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -5428,23 +5437,23 @@ const Di = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5428
5437
|
"transition-[width] duration-300 ease-in": e === dt && b
|
|
5429
5438
|
}),
|
|
5430
5439
|
t
|
|
5431
|
-
)),
|
|
5440
|
+
)), ao = (e, t, r) => {
|
|
5432
5441
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
5433
|
-
},
|
|
5442
|
+
}, Jt = ie.forwardRef((e, t) => {
|
|
5434
5443
|
const { onClick: r, noInternalClick: s = !1, ...a } = e;
|
|
5435
5444
|
return /* @__PURE__ */ h(
|
|
5436
5445
|
"button",
|
|
5437
5446
|
{
|
|
5438
5447
|
ref: t,
|
|
5439
5448
|
onClick: (n) => {
|
|
5440
|
-
|
|
5449
|
+
ao(n, s, r);
|
|
5441
5450
|
},
|
|
5442
5451
|
...a
|
|
5443
5452
|
}
|
|
5444
5453
|
);
|
|
5445
5454
|
});
|
|
5446
|
-
|
|
5447
|
-
const
|
|
5455
|
+
Jt.displayName = "BaseButton";
|
|
5456
|
+
const Ps = ie.forwardRef(
|
|
5448
5457
|
({
|
|
5449
5458
|
children: e,
|
|
5450
5459
|
disabled: t = !1,
|
|
@@ -5460,7 +5469,7 @@ const ks = ie.forwardRef(
|
|
|
5460
5469
|
radius: u = "large",
|
|
5461
5470
|
...l
|
|
5462
5471
|
}, m) => {
|
|
5463
|
-
const p =
|
|
5472
|
+
const p = Ns({
|
|
5464
5473
|
type: Vt,
|
|
5465
5474
|
mode: r,
|
|
5466
5475
|
focusMode: s,
|
|
@@ -5475,7 +5484,7 @@ const ks = ie.forwardRef(
|
|
|
5475
5484
|
radius: u
|
|
5476
5485
|
});
|
|
5477
5486
|
return /* @__PURE__ */ h(
|
|
5478
|
-
|
|
5487
|
+
Jt,
|
|
5479
5488
|
{
|
|
5480
5489
|
ref: m,
|
|
5481
5490
|
className: p,
|
|
@@ -5486,22 +5495,22 @@ const ks = ie.forwardRef(
|
|
|
5486
5495
|
);
|
|
5487
5496
|
}
|
|
5488
5497
|
);
|
|
5489
|
-
|
|
5490
|
-
function
|
|
5498
|
+
Ps.displayName = "Button";
|
|
5499
|
+
function no() {
|
|
5491
5500
|
const e = j(!1);
|
|
5492
5501
|
return W(() => (e.current = !0, () => {
|
|
5493
5502
|
e.current = !1;
|
|
5494
5503
|
}), []), Y(() => e.current, []);
|
|
5495
5504
|
}
|
|
5496
|
-
function
|
|
5497
|
-
return
|
|
5505
|
+
function $s(e) {
|
|
5506
|
+
return Qe(() => e.every((t) => t == null) ? () => {
|
|
5498
5507
|
} : (t) => {
|
|
5499
5508
|
e.forEach((r) => {
|
|
5500
5509
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
5501
5510
|
});
|
|
5502
5511
|
}, [...e]);
|
|
5503
5512
|
}
|
|
5504
|
-
const
|
|
5513
|
+
const io = {
|
|
5505
5514
|
x: 0,
|
|
5506
5515
|
y: 0,
|
|
5507
5516
|
width: 0,
|
|
@@ -5512,7 +5521,7 @@ const ao = {
|
|
|
5512
5521
|
right: 0
|
|
5513
5522
|
};
|
|
5514
5523
|
function Ve(e) {
|
|
5515
|
-
const t =
|
|
5524
|
+
const t = no(), r = j(0), s = j(null), [a, n] = ne(io), i = Qe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
|
5516
5525
|
const c = o[0];
|
|
5517
5526
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
5518
5527
|
s.current && t() && n(c.contentRect);
|
|
@@ -5522,8 +5531,8 @@ function Ve(e) {
|
|
|
5522
5531
|
i?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
5523
5532
|
}), [i, e]), [s, a];
|
|
5524
5533
|
}
|
|
5525
|
-
function
|
|
5526
|
-
const t =
|
|
5534
|
+
function xs(e) {
|
|
5535
|
+
const t = Ks();
|
|
5527
5536
|
if (!e)
|
|
5528
5537
|
return t;
|
|
5529
5538
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -5540,14 +5549,14 @@ const We = {
|
|
|
5540
5549
|
// w-8
|
|
5541
5550
|
large: 48
|
|
5542
5551
|
// w-12
|
|
5543
|
-
},
|
|
5552
|
+
}, oo = {
|
|
5544
5553
|
small: 16,
|
|
5545
5554
|
// px-2 x 2
|
|
5546
5555
|
medium: 24,
|
|
5547
5556
|
// px-3 x 2
|
|
5548
5557
|
large: 32
|
|
5549
5558
|
// px-4 x 2
|
|
5550
|
-
},
|
|
5559
|
+
}, co = 2, lo = 300, st = ie.forwardRef(
|
|
5551
5560
|
({
|
|
5552
5561
|
children: e,
|
|
5553
5562
|
disabled: t = !1,
|
|
@@ -5571,7 +5580,7 @@ const We = {
|
|
|
5571
5580
|
animated: A = !1,
|
|
5572
5581
|
...K
|
|
5573
5582
|
}, R) => {
|
|
5574
|
-
const
|
|
5583
|
+
const Q = Ns({
|
|
5575
5584
|
type: dt,
|
|
5576
5585
|
mode: r,
|
|
5577
5586
|
focusMode: s,
|
|
@@ -5588,15 +5597,15 @@ const We = {
|
|
|
5588
5597
|
radius: b,
|
|
5589
5598
|
variant: E,
|
|
5590
5599
|
animated: A
|
|
5591
|
-
}), C =
|
|
5600
|
+
}), C = ro({ mode: r, raw: o, iconClassName: O, variant: E }), v = so({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = Ve(), [N, V] = Ve(), [ce, Ee] = Ve(), w = j(0), T = j(null), S = j(null), le = $s([R, T]);
|
|
5592
5601
|
return Ye(() => {
|
|
5593
|
-
ce && ce.current && A && (w.current = Ee.width +
|
|
5602
|
+
ce && ce.current && A && (w.current = Ee.width + oo[u] + (c ? 0 : co), T.current && !T.current.style.width && (T.current.style.width = `${We[u]}px`));
|
|
5594
5603
|
}, [Ee, ce, u, c, A]), Ye(() => {
|
|
5595
5604
|
if (T && T.current && A) {
|
|
5596
5605
|
let ue = We[u];
|
|
5597
5606
|
l && _ && I.width > 0 ? ue = I.width + w.current : m && N && V.width > 0 && (ue = V.width + w.current), S.current && clearTimeout(S.current), ue !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ue}px`, ue > We[u] && (S.current = setTimeout(() => {
|
|
5598
5607
|
_.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), S.current = null;
|
|
5599
|
-
},
|
|
5608
|
+
}, lo * 0.8))), ue === We[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
|
|
5600
5609
|
}
|
|
5601
5610
|
}, [
|
|
5602
5611
|
I,
|
|
@@ -5610,10 +5619,10 @@ const We = {
|
|
|
5610
5619
|
]), W(() => () => {
|
|
5611
5620
|
S.current && clearTimeout(S.current);
|
|
5612
5621
|
}, []), /* @__PURE__ */ h(
|
|
5613
|
-
|
|
5622
|
+
Jt,
|
|
5614
5623
|
{
|
|
5615
5624
|
ref: le,
|
|
5616
|
-
className:
|
|
5625
|
+
className: Q,
|
|
5617
5626
|
disabled: t,
|
|
5618
5627
|
type: i,
|
|
5619
5628
|
"aria-label": f || d,
|
|
@@ -5673,7 +5682,7 @@ try {
|
|
|
5673
5682
|
});
|
|
5674
5683
|
} catch {
|
|
5675
5684
|
}
|
|
5676
|
-
const
|
|
5685
|
+
const uo = ie.forwardRef(
|
|
5677
5686
|
({
|
|
5678
5687
|
children: e,
|
|
5679
5688
|
mode: t = "system",
|
|
@@ -5713,8 +5722,8 @@ const co = ie.forwardRef(
|
|
|
5713
5722
|
) });
|
|
5714
5723
|
}
|
|
5715
5724
|
);
|
|
5716
|
-
|
|
5717
|
-
const
|
|
5725
|
+
uo.displayName = "ButtonSort";
|
|
5726
|
+
const Je = "av-card", ho = ({
|
|
5718
5727
|
className: e,
|
|
5719
5728
|
headerClassName: t,
|
|
5720
5729
|
bodyClassName: r,
|
|
@@ -5724,7 +5733,7 @@ const Qe = "av-card", lo = ({
|
|
|
5724
5733
|
noBorder: i
|
|
5725
5734
|
}) => {
|
|
5726
5735
|
const o = y(
|
|
5727
|
-
|
|
5736
|
+
Je,
|
|
5728
5737
|
"rounded-md",
|
|
5729
5738
|
{
|
|
5730
5739
|
"border-none": i,
|
|
@@ -5738,7 +5747,7 @@ const Qe = "av-card", lo = ({
|
|
|
5738
5747
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": a === "alt-system"
|
|
5739
5748
|
},
|
|
5740
5749
|
e
|
|
5741
|
-
), c = t || y(`${
|
|
5750
|
+
), c = t || y(`${Je}__header mt-0 border-b-2`, {
|
|
5742
5751
|
"text-copy-light border-border-accent": a === "darker",
|
|
5743
5752
|
"border-border-accent": a === "dark",
|
|
5744
5753
|
"border-border-medium": a === "light",
|
|
@@ -5746,7 +5755,7 @@ const Qe = "av-card", lo = ({
|
|
|
5746
5755
|
"border-border-accent dark:border-border-medium": a === "alt-system",
|
|
5747
5756
|
"mb-4": !n,
|
|
5748
5757
|
"mb-2": n
|
|
5749
|
-
}), f = y(r), d = s || y(`${
|
|
5758
|
+
}), f = y(r), d = s || y(`${Je}__footer pt-2`);
|
|
5750
5759
|
return {
|
|
5751
5760
|
wrapper: o,
|
|
5752
5761
|
header: c,
|
|
@@ -5754,7 +5763,7 @@ const Qe = "av-card", lo = ({
|
|
|
5754
5763
|
footer: d
|
|
5755
5764
|
};
|
|
5756
5765
|
};
|
|
5757
|
-
function
|
|
5766
|
+
function fo({
|
|
5758
5767
|
id: e,
|
|
5759
5768
|
content: t,
|
|
5760
5769
|
userAriaLabelledby: r,
|
|
@@ -5762,7 +5771,7 @@ function uo({
|
|
|
5762
5771
|
}) {
|
|
5763
5772
|
return typeof t == "string" ? /* @__PURE__ */ h("h2", { id: e, className: s, children: t }) : r ? /* @__PURE__ */ h("div", { className: s, children: t }) : t ? /* @__PURE__ */ h("div", { className: s, id: e, children: t }) : null;
|
|
5764
5773
|
}
|
|
5765
|
-
const
|
|
5774
|
+
const mo = ({
|
|
5766
5775
|
header: e,
|
|
5767
5776
|
headerClassName: t,
|
|
5768
5777
|
footer: r,
|
|
@@ -5777,7 +5786,7 @@ const ho = ({
|
|
|
5777
5786
|
...u
|
|
5778
5787
|
}) => {
|
|
5779
5788
|
let l = null, m = null;
|
|
5780
|
-
const p = typeof e == "string", g =
|
|
5789
|
+
const p = typeof e == "string", g = xs(Je), b = ho({
|
|
5781
5790
|
className: n,
|
|
5782
5791
|
headerClassName: t,
|
|
5783
5792
|
bodyClassName: i,
|
|
@@ -5796,7 +5805,7 @@ const ho = ({
|
|
|
5796
5805
|
...u,
|
|
5797
5806
|
children: [
|
|
5798
5807
|
/* @__PURE__ */ h(
|
|
5799
|
-
|
|
5808
|
+
fo,
|
|
5800
5809
|
{
|
|
5801
5810
|
...l && { id: l },
|
|
5802
5811
|
content: e,
|
|
@@ -5866,7 +5875,7 @@ try {
|
|
|
5866
5875
|
});
|
|
5867
5876
|
} catch {
|
|
5868
5877
|
}
|
|
5869
|
-
const
|
|
5878
|
+
const po = ({
|
|
5870
5879
|
className: e,
|
|
5871
5880
|
viewBox: t,
|
|
5872
5881
|
title: r,
|
|
@@ -5883,7 +5892,7 @@ const fo = ({
|
|
|
5883
5892
|
...a,
|
|
5884
5893
|
children: /* @__PURE__ */ h("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" })
|
|
5885
5894
|
}
|
|
5886
|
-
),
|
|
5895
|
+
), yo = ({
|
|
5887
5896
|
className: e,
|
|
5888
5897
|
viewBox: t,
|
|
5889
5898
|
title: r,
|
|
@@ -5909,7 +5918,7 @@ const fo = ({
|
|
|
5909
5918
|
/* @__PURE__ */ h("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" })
|
|
5910
5919
|
]
|
|
5911
5920
|
}
|
|
5912
|
-
),
|
|
5921
|
+
), go = ({
|
|
5913
5922
|
className: e,
|
|
5914
5923
|
viewBox: t,
|
|
5915
5924
|
title: r,
|
|
@@ -5945,7 +5954,7 @@ const fo = ({
|
|
|
5945
5954
|
]
|
|
5946
5955
|
}
|
|
5947
5956
|
);
|
|
5948
|
-
},
|
|
5957
|
+
}, bo = ({
|
|
5949
5958
|
className: e,
|
|
5950
5959
|
viewBox: t,
|
|
5951
5960
|
title: r,
|
|
@@ -5985,10 +5994,10 @@ try {
|
|
|
5985
5994
|
});
|
|
5986
5995
|
} catch {
|
|
5987
5996
|
}
|
|
5988
|
-
const
|
|
5997
|
+
const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createContext({
|
|
5989
5998
|
columnGap: 0,
|
|
5990
5999
|
rowGap: 0
|
|
5991
|
-
}),
|
|
6000
|
+
}), wo = ({
|
|
5992
6001
|
children: e,
|
|
5993
6002
|
className: t,
|
|
5994
6003
|
columnGap: r = 1,
|
|
@@ -6014,10 +6023,10 @@ const go = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Mt = ie.createCont
|
|
|
6014
6023
|
marginLeft: r * -1 * at + "rem",
|
|
6015
6024
|
marginTop: s * -1 * at + "rem"
|
|
6016
6025
|
}, u = y(
|
|
6017
|
-
|
|
6026
|
+
Eo,
|
|
6018
6027
|
"box-border flex flex-wrap"
|
|
6019
6028
|
), l = { columnGap: r, rowGap: s };
|
|
6020
|
-
return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(
|
|
6029
|
+
return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Dt.Provider, { value: l, children: e }) }) }) : /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Dt.Provider, { value: l, children: e }) });
|
|
6021
6030
|
}, At = (e, t) => y({
|
|
6022
6031
|
"basis-1/12": e === 1 && !t,
|
|
6023
6032
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
@@ -6091,7 +6100,7 @@ const go = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Mt = ie.createCont
|
|
|
6091
6100
|
"lg:basis-full": e === 12 && t === "lg",
|
|
6092
6101
|
"xl:basis-full": e === 12 && t === "xl",
|
|
6093
6102
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
6094
|
-
}),
|
|
6103
|
+
}), So = ({
|
|
6095
6104
|
className: e,
|
|
6096
6105
|
span: t
|
|
6097
6106
|
}) => {
|
|
@@ -6120,10 +6129,10 @@ const go = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Mt = ie.createCont
|
|
|
6120
6129
|
span: r,
|
|
6121
6130
|
...s
|
|
6122
6131
|
}) => {
|
|
6123
|
-
const { columnGap: a, rowGap: n } = nt(
|
|
6132
|
+
const { columnGap: a, rowGap: n } = nt(Dt), i = {
|
|
6124
6133
|
paddingLeft: a * at + "rem",
|
|
6125
6134
|
paddingTop: n * at + "rem"
|
|
6126
|
-
}, o =
|
|
6135
|
+
}, o = So({
|
|
6127
6136
|
className: t,
|
|
6128
6137
|
span: r
|
|
6129
6138
|
});
|
|
@@ -6142,7 +6151,7 @@ try {
|
|
|
6142
6151
|
});
|
|
6143
6152
|
} catch {
|
|
6144
6153
|
}
|
|
6145
|
-
const
|
|
6154
|
+
const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
|
|
6146
6155
|
alert: null,
|
|
6147
6156
|
alertdialog: null,
|
|
6148
6157
|
log: "polite",
|
|
@@ -6150,14 +6159,14 @@ const $s = "SET_ANNOUNCEMENT", xs = "CLEAR_ANNOUNCEMENT", wo = {
|
|
|
6150
6159
|
progressbar: null,
|
|
6151
6160
|
status: "polite",
|
|
6152
6161
|
timer: "assertive"
|
|
6153
|
-
},
|
|
6162
|
+
}, To = (e, t) => {
|
|
6154
6163
|
switch (t?.type) {
|
|
6155
|
-
case
|
|
6164
|
+
case Ms:
|
|
6156
6165
|
return {
|
|
6157
6166
|
...e,
|
|
6158
6167
|
announcement: t.payload
|
|
6159
6168
|
};
|
|
6160
|
-
case
|
|
6169
|
+
case Ds:
|
|
6161
6170
|
return {
|
|
6162
6171
|
...e,
|
|
6163
6172
|
announcement: null
|
|
@@ -6165,12 +6174,12 @@ const $s = "SET_ANNOUNCEMENT", xs = "CLEAR_ANNOUNCEMENT", wo = {
|
|
|
6165
6174
|
default:
|
|
6166
6175
|
return e;
|
|
6167
6176
|
}
|
|
6168
|
-
},
|
|
6177
|
+
}, Ao = ({
|
|
6169
6178
|
onAnnouncementClear: e,
|
|
6170
6179
|
dispatch: t
|
|
6171
6180
|
}) => {
|
|
6172
6181
|
t({
|
|
6173
|
-
type:
|
|
6182
|
+
type: Ds
|
|
6174
6183
|
}), typeof e == "function" && e();
|
|
6175
6184
|
}, Ar = ({
|
|
6176
6185
|
children: e,
|
|
@@ -6180,16 +6189,16 @@ const $s = "SET_ANNOUNCEMENT", xs = "CLEAR_ANNOUNCEMENT", wo = {
|
|
|
6180
6189
|
dispatch: a
|
|
6181
6190
|
}) => {
|
|
6182
6191
|
clearTimeout(r.current), e !== null && a({
|
|
6183
|
-
type:
|
|
6192
|
+
type: Ms,
|
|
6184
6193
|
payload: e
|
|
6185
6194
|
}), t && (r.current = setTimeout(
|
|
6186
|
-
() =>
|
|
6195
|
+
() => Ao({
|
|
6187
6196
|
onAnnouncementClear: s,
|
|
6188
6197
|
dispatch: a
|
|
6189
6198
|
}),
|
|
6190
6199
|
t
|
|
6191
6200
|
));
|
|
6192
|
-
},
|
|
6201
|
+
}, Io = ({
|
|
6193
6202
|
children: e,
|
|
6194
6203
|
announcementTimeoutRef: t,
|
|
6195
6204
|
announcementDelay: r,
|
|
@@ -6212,7 +6221,7 @@ const $s = "SET_ANNOUNCEMENT", xs = "CLEAR_ANNOUNCEMENT", wo = {
|
|
|
6212
6221
|
dispatch: i
|
|
6213
6222
|
});
|
|
6214
6223
|
};
|
|
6215
|
-
function
|
|
6224
|
+
function Ls({
|
|
6216
6225
|
children: e,
|
|
6217
6226
|
className: t,
|
|
6218
6227
|
politeness: r,
|
|
@@ -6223,12 +6232,12 @@ function Ds({
|
|
|
6223
6232
|
visible: o,
|
|
6224
6233
|
...c
|
|
6225
6234
|
}) {
|
|
6226
|
-
const f = j(null), d = j(null), [u, l] = Cr(
|
|
6235
|
+
const f = j(null), d = j(null), [u, l] = Cr(To, {
|
|
6227
6236
|
announcement: null
|
|
6228
6237
|
});
|
|
6229
6238
|
let m = r;
|
|
6230
|
-
typeof m > "u" && (m = s ?
|
|
6231
|
-
|
|
6239
|
+
typeof m > "u" && (m = s ? vo[s] : "assertive"), W(() => {
|
|
6240
|
+
Io({
|
|
6232
6241
|
announcementTimeoutRef: f,
|
|
6233
6242
|
announcementDelay: a,
|
|
6234
6243
|
children: e,
|
|
@@ -6270,21 +6279,21 @@ try {
|
|
|
6270
6279
|
});
|
|
6271
6280
|
} catch {
|
|
6272
6281
|
}
|
|
6273
|
-
const
|
|
6282
|
+
const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-helper-text", Ro = ({
|
|
6274
6283
|
mode: e
|
|
6275
6284
|
}) => y({
|
|
6276
6285
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
6277
6286
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
6278
6287
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
6279
6288
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
6280
|
-
}),
|
|
6289
|
+
}), Co = ({
|
|
6281
6290
|
focusMode: e
|
|
6282
6291
|
}) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
6283
6292
|
"focus:outline-focus-dark": e === "dark",
|
|
6284
6293
|
"focus:outline-focus-light": e === "light",
|
|
6285
6294
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
6286
6295
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
6287
|
-
}),
|
|
6296
|
+
}), Oo = ({
|
|
6288
6297
|
noBorder: e,
|
|
6289
6298
|
error: t
|
|
6290
6299
|
}) => y("border-2", {
|
|
@@ -6292,7 +6301,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6292
6301
|
"focus:border-border-dark": !e && t,
|
|
6293
6302
|
"border-border-error-dark": !e && t,
|
|
6294
6303
|
"border-transparent": e
|
|
6295
|
-
}),
|
|
6304
|
+
}), ko = ({
|
|
6296
6305
|
disabled: e,
|
|
6297
6306
|
raw: t,
|
|
6298
6307
|
error: r,
|
|
@@ -6316,7 +6325,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6316
6325
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
|
|
6317
6326
|
"text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
|
|
6318
6327
|
});
|
|
6319
|
-
},
|
|
6328
|
+
}, No = ({
|
|
6320
6329
|
error: e,
|
|
6321
6330
|
raw: t,
|
|
6322
6331
|
mode: r,
|
|
@@ -6343,7 +6352,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6343
6352
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
6344
6353
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
6345
6354
|
});
|
|
6346
|
-
},
|
|
6355
|
+
}, Po = ({
|
|
6347
6356
|
className: e,
|
|
6348
6357
|
inputClassName: t,
|
|
6349
6358
|
raw: r,
|
|
@@ -6357,7 +6366,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6357
6366
|
}) => {
|
|
6358
6367
|
const d = r ? e : y(
|
|
6359
6368
|
"relative flex w-full flex-col justify-center",
|
|
6360
|
-
|
|
6369
|
+
_o,
|
|
6361
6370
|
e
|
|
6362
6371
|
);
|
|
6363
6372
|
let u = "";
|
|
@@ -6379,22 +6388,22 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6379
6388
|
break;
|
|
6380
6389
|
}
|
|
6381
6390
|
const l = r ? y(t) : y(
|
|
6382
|
-
|
|
6391
|
+
Us,
|
|
6383
6392
|
u,
|
|
6384
6393
|
"rounded-md text-base px-4",
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6394
|
+
Ro({ mode: i }),
|
|
6395
|
+
Co({ focusMode: o }),
|
|
6396
|
+
Oo({ noBorder: a, error: n }),
|
|
6388
6397
|
{
|
|
6389
6398
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
6390
6399
|
},
|
|
6391
6400
|
t
|
|
6392
|
-
), m = r ? void 0 : "sr-only", p =
|
|
6401
|
+
), m = r ? void 0 : "sr-only", p = ko({
|
|
6393
6402
|
disabled: s,
|
|
6394
6403
|
raw: r,
|
|
6395
6404
|
error: n,
|
|
6396
6405
|
mode: i
|
|
6397
|
-
}), g =
|
|
6406
|
+
}), g = No({
|
|
6398
6407
|
error: n,
|
|
6399
6408
|
raw: r,
|
|
6400
6409
|
mode: i,
|
|
@@ -6408,7 +6417,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6408
6417
|
helperText: g,
|
|
6409
6418
|
rightElement: b
|
|
6410
6419
|
};
|
|
6411
|
-
},
|
|
6420
|
+
}, Qt = ie.forwardRef(
|
|
6412
6421
|
({
|
|
6413
6422
|
id: e,
|
|
6414
6423
|
name: t,
|
|
@@ -6430,13 +6439,13 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6430
6439
|
size: E = "md",
|
|
6431
6440
|
...O
|
|
6432
6441
|
}, A) => {
|
|
6433
|
-
const [K, R] = Ve(), [
|
|
6442
|
+
const [K, R] = Ve(), [Q, C] = ne(0), v = xs({ id: e, prefix: `${Us}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
|
|
6434
6443
|
xs: { label: "-25px", helperText: "30px" },
|
|
6435
6444
|
sm: { label: "-29px", helperText: "34px" },
|
|
6436
6445
|
md: { label: "-33px", helperText: "38px" },
|
|
6437
6446
|
lg: { label: "-15px", helperText: "22px" },
|
|
6438
6447
|
xl: { label: "-19px", helperText: "25px" }
|
|
6439
|
-
}, V =
|
|
6448
|
+
}, V = Po({
|
|
6440
6449
|
className: n,
|
|
6441
6450
|
inputClassName: i,
|
|
6442
6451
|
error: s,
|
|
@@ -6478,7 +6487,7 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6478
6487
|
className: V.input,
|
|
6479
6488
|
...p && { "aria-describedby": `${v}-helper` },
|
|
6480
6489
|
...s && { "aria-invalid": "true" },
|
|
6481
|
-
...g && !a && { style: { paddingRight:
|
|
6490
|
+
...g && !a && { style: { paddingRight: Q } },
|
|
6482
6491
|
...O
|
|
6483
6492
|
}
|
|
6484
6493
|
),
|
|
@@ -6509,12 +6518,12 @@ const Ms = "av-text-input", Ao = "av-text-input-wrapper", It = "av-text-input-he
|
|
|
6509
6518
|
children: g
|
|
6510
6519
|
}
|
|
6511
6520
|
),
|
|
6512
|
-
s && p && /* @__PURE__ */ h(
|
|
6521
|
+
s && p && /* @__PURE__ */ h(Ls, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
|
|
6513
6522
|
] });
|
|
6514
6523
|
}
|
|
6515
6524
|
);
|
|
6516
|
-
|
|
6517
|
-
const
|
|
6525
|
+
Qt.displayName = "TextInput";
|
|
6526
|
+
const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
|
|
6518
6527
|
({
|
|
6519
6528
|
name: e,
|
|
6520
6529
|
disabled: t,
|
|
@@ -6531,19 +6540,19 @@ const No = 500, Po = 5e3, $o = 2e4, Ls = ie.forwardRef(
|
|
|
6531
6540
|
const [l, m] = ne(!0), [p, g] = ne({
|
|
6532
6541
|
message: null,
|
|
6533
6542
|
politeness: null
|
|
6534
|
-
}), b = j(!0), E = j(null), O = j(null), A =
|
|
6543
|
+
}), b = j(!0), E = j(null), O = j(null), A = $s([u, O]), K = l ? "Show" : "Hide", R = () => {
|
|
6535
6544
|
E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
|
|
6536
6545
|
b.current = !0, m(!0), g({
|
|
6537
|
-
announcementTimeout:
|
|
6546
|
+
announcementTimeout: xo,
|
|
6538
6547
|
politeness: "polite",
|
|
6539
6548
|
message: `${r} hiding characters`
|
|
6540
6549
|
}), a && a(!0);
|
|
6541
|
-
},
|
|
6542
|
-
},
|
|
6550
|
+
}, Mo));
|
|
6551
|
+
}, Q = (I) => {
|
|
6543
6552
|
I.preventDefault();
|
|
6544
6553
|
const N = !b.current;
|
|
6545
6554
|
b.current = N, R(), m(N), g({
|
|
6546
|
-
announcementTimeout:
|
|
6555
|
+
announcementTimeout: $o,
|
|
6547
6556
|
politeness: "assertive",
|
|
6548
6557
|
message: N ? "Characters hidden" : "Characters showing"
|
|
6549
6558
|
}), a && a(N);
|
|
@@ -6561,7 +6570,7 @@ const No = 500, Po = 5e3, $o = 2e4, Ls = ie.forwardRef(
|
|
|
6561
6570
|
E.current && clearTimeout(E.current);
|
|
6562
6571
|
}, []), /* @__PURE__ */ q(Rr, { children: [
|
|
6563
6572
|
/* @__PURE__ */ h(
|
|
6564
|
-
|
|
6573
|
+
Qt,
|
|
6565
6574
|
{
|
|
6566
6575
|
ref: A,
|
|
6567
6576
|
name: e,
|
|
@@ -6575,7 +6584,7 @@ const No = 500, Po = 5e3, $o = 2e4, Ls = ie.forwardRef(
|
|
|
6575
6584
|
rightElement: ie.cloneElement(f, {
|
|
6576
6585
|
ref: u,
|
|
6577
6586
|
label: K,
|
|
6578
|
-
onClick:
|
|
6587
|
+
onClick: Q,
|
|
6579
6588
|
onBlur: C,
|
|
6580
6589
|
disabled: t
|
|
6581
6590
|
}),
|
|
@@ -6583,7 +6592,7 @@ const No = 500, Po = 5e3, $o = 2e4, Ls = ie.forwardRef(
|
|
|
6583
6592
|
}
|
|
6584
6593
|
),
|
|
6585
6594
|
/* @__PURE__ */ h(
|
|
6586
|
-
|
|
6595
|
+
Ls,
|
|
6587
6596
|
{
|
|
6588
6597
|
role: "status",
|
|
6589
6598
|
politeness: p.politeness,
|
|
@@ -6594,7 +6603,7 @@ const No = 500, Po = 5e3, $o = 2e4, Ls = ie.forwardRef(
|
|
|
6594
6603
|
] });
|
|
6595
6604
|
}
|
|
6596
6605
|
);
|
|
6597
|
-
|
|
6606
|
+
Fs.displayName = "TextInputMask";
|
|
6598
6607
|
/*!
|
|
6599
6608
|
@versini/ui-textinput v5.0.2
|
|
6600
6609
|
© 2025 gizmette.com
|
|
@@ -6608,9 +6617,9 @@ try {
|
|
|
6608
6617
|
});
|
|
6609
6618
|
} catch {
|
|
6610
6619
|
}
|
|
6611
|
-
const
|
|
6612
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
|
6613
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
|
6620
|
+
const Do = "ASK! ME! ANYTHING!", Lo = "Log in with a password", Uo = "Log in with a Passkey", el = "Log out", Fo = "Password", tl = "Usage", rl = "Profile", sl = "Settings", al = "Chat history", nl = "About", Yt = "Type your message here.", il = Yt, ol = `${Yt}
|
|
6621
|
+
Press Enter to send it or Shift+Enter for new line.`, cl = `${Yt}
|
|
6622
|
+
Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "Review important details.", ul = [
|
|
6614
6623
|
`Sometimes, ${k} just makes stuff up. ${P}`,
|
|
6615
6624
|
`${k} may invent facts on the fly. ${P}`,
|
|
6616
6625
|
`${k} may be confidently wrong. ${P}`,
|
|
@@ -6631,17 +6640,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6631
6640
|
`Sometimes, ${k} howls at the moon. ${P}`,
|
|
6632
6641
|
`${k} may dig up imaginary bones. ${P}`,
|
|
6633
6642
|
`${k} may sniff out nonsense. ${P}`
|
|
6634
|
-
],
|
|
6643
|
+
], dl = "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.", hl = "Default provider set to", fl = "Chat successfully deleted!", ml = "Chat successfully saved!", pl = "Caching enabled. Assets are now stored locally.", yl = "Caching disabled. Local asset cache cleared.", gl = "av-sassy", bl = {
|
|
6635
6644
|
0: ["January", "February", "March"],
|
|
6636
6645
|
3: ["April", "May", "June"],
|
|
6637
6646
|
6: ["July", "August", "September"],
|
|
6638
6647
|
9: ["October", "November", "December"]
|
|
6639
|
-
},
|
|
6648
|
+
}, El = {
|
|
6640
6649
|
0: ["Jan", "Feb", "Mar"],
|
|
6641
6650
|
3: ["Apr", "May", "Jun"],
|
|
6642
6651
|
6: ["Jul", "Aug", "Sep"],
|
|
6643
6652
|
9: ["Oct", "Nov", "Dec"]
|
|
6644
|
-
},
|
|
6653
|
+
}, wl = {
|
|
6645
6654
|
PREFERENCES: {
|
|
6646
6655
|
TITLE: "User profile",
|
|
6647
6656
|
USERNAME: "Username",
|
|
@@ -6689,7 +6698,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6689
6698
|
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.",
|
|
6690
6699
|
USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Diggidy will remember your previous interactions and use them to provide more relevant responses."
|
|
6691
6700
|
}
|
|
6692
|
-
},
|
|
6701
|
+
}, Ho = ({
|
|
6693
6702
|
className: e,
|
|
6694
6703
|
isCapabilitiesSuccess: t,
|
|
6695
6704
|
capabilities: r
|
|
@@ -6701,7 +6710,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6701
6710
|
"flex items-center justify-center text-slate-300"
|
|
6702
6711
|
),
|
|
6703
6712
|
children: [
|
|
6704
|
-
/* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(
|
|
6713
|
+
/* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(po, {}) }),
|
|
6705
6714
|
/* @__PURE__ */ q("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
6706
6715
|
/* @__PURE__ */ h("h1", { children: k }),
|
|
6707
6716
|
/* @__PURE__ */ h(
|
|
@@ -6710,13 +6719,13 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6710
6719
|
className: y({
|
|
6711
6720
|
"text-red-500": t && r?.runningMode === "development"
|
|
6712
6721
|
}),
|
|
6713
|
-
children:
|
|
6722
|
+
children: Do
|
|
6714
6723
|
}
|
|
6715
6724
|
)
|
|
6716
6725
|
] })
|
|
6717
6726
|
]
|
|
6718
6727
|
}
|
|
6719
|
-
),
|
|
6728
|
+
), Ko = () => {
|
|
6720
6729
|
const { login: e, logoutReason: t, loginWithPasskey: r } = os(), [s, a] = ne(""), [n, i] = ne(""), [o, c] = ne(!0), [f, d] = ne({
|
|
6721
6730
|
username: "",
|
|
6722
6731
|
password: ""
|
|
@@ -6729,20 +6738,20 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6729
6738
|
}, 500);
|
|
6730
6739
|
}), W(() => {
|
|
6731
6740
|
t && i(t);
|
|
6732
|
-
}, [t]), /* @__PURE__ */ q("main", { className:
|
|
6741
|
+
}, [t]), /* @__PURE__ */ q("main", { className: Rs({ extraClass: "mt-5" }), children: [
|
|
6733
6742
|
/* @__PURE__ */ h(
|
|
6734
6743
|
"div",
|
|
6735
6744
|
{
|
|
6736
|
-
className:
|
|
6745
|
+
className: _s({
|
|
6737
6746
|
extraClass: "rounded-md pb-10"
|
|
6738
6747
|
}),
|
|
6739
|
-
children: /* @__PURE__ */ h(
|
|
6748
|
+
children: /* @__PURE__ */ h(Ho, {})
|
|
6740
6749
|
}
|
|
6741
6750
|
),
|
|
6742
|
-
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(
|
|
6751
|
+
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(wo, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(mo, { mode: "dark", children: [
|
|
6743
6752
|
/* @__PURE__ */ h(he, { span: 12, className: "mt-7", children: n && /* @__PURE__ */ h("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: n }) }),
|
|
6744
6753
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
|
6745
|
-
|
|
6754
|
+
Qt,
|
|
6746
6755
|
{
|
|
6747
6756
|
className: "mt-7",
|
|
6748
6757
|
required: !0,
|
|
@@ -6763,7 +6772,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6763
6772
|
}
|
|
6764
6773
|
) }),
|
|
6765
6774
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
|
6766
|
-
|
|
6775
|
+
Fs,
|
|
6767
6776
|
{
|
|
6768
6777
|
className: "mt-7",
|
|
6769
6778
|
required: !0,
|
|
@@ -6773,14 +6782,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6773
6782
|
mode: "dark",
|
|
6774
6783
|
focusMode: "light",
|
|
6775
6784
|
name: "password",
|
|
6776
|
-
label:
|
|
6785
|
+
label: Fo,
|
|
6777
6786
|
rightElement: /* @__PURE__ */ h(
|
|
6778
6787
|
st,
|
|
6779
6788
|
{
|
|
6780
6789
|
focusMode: "light",
|
|
6781
6790
|
mode: "dark",
|
|
6782
6791
|
label: o ? "Show" : "Hide",
|
|
6783
|
-
children: o ? /* @__PURE__ */ h(
|
|
6792
|
+
children: o ? /* @__PURE__ */ h(bo, {}) : /* @__PURE__ */ h(yo, {})
|
|
6784
6793
|
}
|
|
6785
6794
|
),
|
|
6786
6795
|
onMaskChange: c,
|
|
@@ -6795,7 +6804,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6795
6804
|
}
|
|
6796
6805
|
) }),
|
|
6797
6806
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
|
6798
|
-
|
|
6807
|
+
Ps,
|
|
6799
6808
|
{
|
|
6800
6809
|
mode: "dark",
|
|
6801
6810
|
focusMode: "light",
|
|
@@ -6803,10 +6812,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6803
6812
|
noBorder: !0,
|
|
6804
6813
|
type: "submit",
|
|
6805
6814
|
className: "mt-7",
|
|
6806
|
-
children:
|
|
6815
|
+
children: Lo
|
|
6807
6816
|
}
|
|
6808
6817
|
) }),
|
|
6809
|
-
!
|
|
6818
|
+
!Cs() && /* @__PURE__ */ q(Rr, { children: [
|
|
6810
6819
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
6811
6820
|
/* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
|
|
6812
6821
|
st,
|
|
@@ -6816,34 +6825,34 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6816
6825
|
focusMode: "light",
|
|
6817
6826
|
fullWidth: !0,
|
|
6818
6827
|
className: "mb-4",
|
|
6819
|
-
labelRight:
|
|
6828
|
+
labelRight: Uo,
|
|
6820
6829
|
onClick: r,
|
|
6821
|
-
children: /* @__PURE__ */ h(
|
|
6830
|
+
children: /* @__PURE__ */ h(go, { size: "size-7" })
|
|
6822
6831
|
}
|
|
6823
6832
|
) })
|
|
6824
6833
|
] })
|
|
6825
6834
|
] }) }) }) })
|
|
6826
6835
|
] });
|
|
6827
|
-
},
|
|
6836
|
+
}, Go = new URL(document.location.href).searchParams, Ir = !!Go.get("debug") || !1, Bo = Bs(() => import(
|
|
6828
6837
|
/* webpackChunkName: "LazyApp" */
|
|
6829
|
-
"./App.
|
|
6830
|
-
).then((e) => e.App)),
|
|
6838
|
+
"./App.D79DErDb.js"
|
|
6839
|
+
).then((e) => e.App)), Wo = new ha(), _r = ({
|
|
6831
6840
|
isComponent: e,
|
|
6832
6841
|
headerHeight: t
|
|
6833
6842
|
}) => {
|
|
6834
6843
|
const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = os();
|
|
6835
|
-
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(
|
|
6836
|
-
|
|
6844
|
+
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Gs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(fa, { client: Wo, children: /* @__PURE__ */ h(
|
|
6845
|
+
Si,
|
|
6837
6846
|
{
|
|
6838
6847
|
user: a?.username,
|
|
6839
6848
|
getAccessToken: n,
|
|
6840
|
-
children: /* @__PURE__ */ h(
|
|
6849
|
+
children: /* @__PURE__ */ h(Bo, { isComponent: e, headerHeight: t })
|
|
6841
6850
|
}
|
|
6842
|
-
) }) }) : /* @__PURE__ */ h(
|
|
6843
|
-
},
|
|
6851
|
+
) }) }) : /* @__PURE__ */ h(Ko, {});
|
|
6852
|
+
}, qo = ({
|
|
6844
6853
|
isComponent: e = !1,
|
|
6845
6854
|
headerHeight: t = 0,
|
|
6846
|
-
domain: r =
|
|
6855
|
+
domain: r = Is
|
|
6847
6856
|
}) => (W(() => {
|
|
6848
6857
|
e || us().catch((s) => {
|
|
6849
6858
|
console.error("[SW] Failed to register service worker:", s);
|
|
@@ -6857,8 +6866,8 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6857
6866
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
|
6858
6867
|
children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t })
|
|
6859
6868
|
}
|
|
6860
|
-
) : /* @__PURE__ */ h(br, { clientId: Er, domain: r, debug: Ir, children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t }) })),
|
|
6861
|
-
|
|
6869
|
+
) : /* @__PURE__ */ h(br, { clientId: Er, domain: r, debug: Ir, children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t }) })), Sl = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
|
|
6870
|
+
qo,
|
|
6862
6871
|
{
|
|
6863
6872
|
isComponent: !0,
|
|
6864
6873
|
domain: e,
|
|
@@ -6866,119 +6875,119 @@ Press Ctrl+Enter to send it or Enter for new line.`, cl = "{{clipboard}}", P = "
|
|
|
6866
6875
|
}
|
|
6867
6876
|
);
|
|
6868
6877
|
export {
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
sl as HISTORY_TITLE,
|
|
6878
|
+
nl as ABOUT_TITLE,
|
|
6879
|
+
ic as ACTION_RESET_PROMPT,
|
|
6880
|
+
sc as ACTION_SEARCH,
|
|
6881
|
+
ac as ACTION_SORT,
|
|
6882
|
+
nc as ACTION_TOGGLE_PROMPT,
|
|
6883
|
+
gl as APP_CLASSNAME,
|
|
6884
|
+
Ps as C,
|
|
6885
|
+
wl as CARDS,
|
|
6886
|
+
ll as CLIPBOARD_PROMPT,
|
|
6887
|
+
wc as DEFAULT_ICON_ACTION_SIZE,
|
|
6888
|
+
Nc as E,
|
|
6889
|
+
rc as ERROR_MESSAGE,
|
|
6890
|
+
ul as FOOTER_DISCLAIMERS,
|
|
6891
|
+
al as HISTORY_TITLE,
|
|
6884
6892
|
ht as I,
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6893
|
+
gc as INFINITE_SCROLL_LIMIT,
|
|
6894
|
+
yc as INFINITE_SCROLL_THRESHOLD,
|
|
6895
|
+
Ic as INPUT_BOTTOM_OFFSET,
|
|
6896
|
+
Cc as INPUT_BOTTOM_OFFSET_EXTRA,
|
|
6897
|
+
Rc as INPUT_BOTTOM_OFFSET_IPAD,
|
|
6898
|
+
_c as INPUT_BOTTOM_OFFSET_IPHONE,
|
|
6899
|
+
cl as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
|
6900
|
+
ol as INPUT_PLACEHOLDER_TEXT_ENTER,
|
|
6901
|
+
il as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
|
6902
|
+
k as J,
|
|
6903
|
+
Lc as K,
|
|
6904
|
+
wo as L,
|
|
6905
|
+
fc as LOCAL_STORAGE_FAVORITES_ONLY,
|
|
6896
6906
|
cs as LOCAL_STORAGE_PREFIX,
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6907
|
+
mc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
6908
|
+
pc as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
|
6909
|
+
oc as LOCAL_STORAGE_SEARCH,
|
|
6910
|
+
cc as LOCAL_STORAGE_SORT,
|
|
6911
|
+
hc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
|
6912
|
+
dc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
|
6913
|
+
lc as LOCAL_STORAGE_SORT_TIMESTAMP,
|
|
6914
|
+
uc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
|
6915
|
+
el as LOG_OUT,
|
|
6916
|
+
Ho as Logo,
|
|
6917
|
+
Ue as O,
|
|
6918
|
+
rl as PROFILE_TITLE,
|
|
6919
|
+
dl as PROMPTS_DESCRIPTION,
|
|
6920
|
+
bc as PROMPT_CLASSNAME,
|
|
6921
|
+
Ec as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
6922
|
+
mo as S,
|
|
6913
6923
|
z as SERVICE_TYPES,
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
pl as
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6924
|
+
sl as SETTINGS_TITLE,
|
|
6925
|
+
Sl as SassySaint,
|
|
6926
|
+
yl as TOAST_CACHE_DISABLED,
|
|
6927
|
+
pl as TOAST_CACHE_ENABLED,
|
|
6928
|
+
fl as TOAST_CHAT_DELETED,
|
|
6929
|
+
ml as TOAST_CHAT_SAVED,
|
|
6930
|
+
hl as TOAST_PROVIDER_CHANGED,
|
|
6931
|
+
bl as TRIMESTERS,
|
|
6932
|
+
El as TRIMESTERS_SHORT,
|
|
6933
|
+
vc as UI_BUTTON_SCROLL_BUFFER,
|
|
6934
|
+
Tc as UI_DEFAULT_MAIN_HEIGHT,
|
|
6935
|
+
Ac as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
|
6936
|
+
Sc as UI_FOOTER_BUFFER,
|
|
6937
|
+
tl as USAGE_TITLE,
|
|
6938
|
+
$c as Y,
|
|
6939
|
+
Qt as Y$1,
|
|
6940
|
+
Uc as Z,
|
|
6941
|
+
lt as _,
|
|
6942
|
+
uo as b,
|
|
6943
|
+
xc as b$1,
|
|
6944
|
+
ut as c,
|
|
6945
|
+
qi as convertCamelCaseToReadable,
|
|
6946
|
+
Ki as debounce,
|
|
6947
|
+
Pc as e,
|
|
6948
|
+
kc as getCacheInfo,
|
|
6949
|
+
Pi as getCurrentGeoLocation,
|
|
6950
|
+
Rs as getLayoutPaddingClass,
|
|
6951
|
+
_s as getMessageContaintWrapperClass,
|
|
6942
6952
|
Ve as h,
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
Hi as isProbablyiPhone,
|
|
6953
|
+
Oc as handleServiceWorkerToggle,
|
|
6954
|
+
xs as i,
|
|
6955
|
+
Wi as isPWAMode,
|
|
6956
|
+
Os as isProbablyMobile,
|
|
6957
|
+
Bi as isProbablyiPad,
|
|
6958
|
+
Gi as isProbablyiPhone,
|
|
6950
6959
|
xt as isServiceWorkerEnabled,
|
|
6951
|
-
|
|
6960
|
+
Cs as isTauri,
|
|
6952
6961
|
Pe as it,
|
|
6953
6962
|
he as j,
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
ws as mutateCall,
|
|
6963
|
+
go as l,
|
|
6964
|
+
vs as mutateCall,
|
|
6957
6965
|
os as n,
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
Gc as setUserPlan,
|
|
6966
|
+
Hc as nt,
|
|
6967
|
+
Ui as numberFormatter,
|
|
6968
|
+
$s as o,
|
|
6969
|
+
$i as obfuscate,
|
|
6970
|
+
Kc as ot,
|
|
6971
|
+
Hi as pluralize,
|
|
6972
|
+
Mi as renderDataAsList,
|
|
6973
|
+
Ei as serverUrl,
|
|
6974
|
+
Gc as setNewProvider,
|
|
6975
|
+
Bc as setUserPlan,
|
|
6969
6976
|
st as te,
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
Vc as
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6977
|
+
Fc as tt,
|
|
6978
|
+
xi as unObfuscate,
|
|
6979
|
+
qc as useChangelogs,
|
|
6980
|
+
Vc as useChatsHistory,
|
|
6981
|
+
Jc as useChatsUsage,
|
|
6982
|
+
zc as useDeleteAllMemories,
|
|
6983
|
+
Yc as useDeleteMemory,
|
|
6984
|
+
Xc as useEntitlements,
|
|
6985
|
+
Wc as useServerCapabilities,
|
|
6986
|
+
jc as useUserChatStats,
|
|
6979
6987
|
Qc as useUserMemories,
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6988
|
+
wi as useUserPreferences,
|
|
6989
|
+
Zc as utilities,
|
|
6990
|
+
Mc as x,
|
|
6991
|
+
Ls as x$1,
|
|
6992
|
+
Dc as z
|
|
6984
6993
|
};
|