@versini/sassysaint 8.75.4 → 8.76.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.DE5M5CPF.js → AboutChangelog.0kKcS_nT.js} +2 -2
- package/dist/chunks/{AboutEntry.CC4Geu98.js → AboutEntry.pKgicvGA.js} +7 -7
- package/dist/chunks/{App.ENGe9H1T.js → App.CtFpHv2O.js} +205 -204
- package/dist/chunks/{Chart.DpZtBOl0.js → Chart.DD1RkG8X.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.e2Qi5r3T.js → ChatBubbleAssistant.K55U7Bno.js} +13 -13
- package/dist/chunks/{ChatBubbleUser.DP1w-8LC.js → ChatBubbleUser.DsX56Kxx.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BKu_ZZU9.js → ChatHistoryTable.BvEUTjiq.js} +17 -17
- package/dist/chunks/{HistoryEntry.ghac4Dvt.js → HistoryEntry.BSOPWYO2.js} +20 -20
- package/dist/chunks/{ProfileEntry.B5p6jUni.js → ProfileEntry.Bb-kLfDX.js} +18 -18
- package/dist/chunks/{SettingsEntry.DRaXHqD7.js → SettingsEntry.DrmBVh-w.js} +10 -10
- package/dist/chunks/{Table.DFmbCLqy.js → Table.BbIvEnBz.js} +2 -2
- package/dist/chunks/{UsageEntry.v3rZzEkE.js → UsageEntry.O3YdUF30.js} +8 -8
- package/dist/chunks/{UserMemoriesPanel.CxSpeQVc.js → UserMemoriesPanel.Dl5GlyBr.js} +22 -22
- package/dist/chunks/{index.DkACWoJr.js → index.B9mUNJfd.js} +1 -1
- package/dist/chunks/{index.DQMZ9_rK.js → index.BNusLsEn.js} +13 -13
- package/dist/chunks/{index.CGU26igb.js → index.BeIiCAAq.js} +2 -2
- package/dist/chunks/{index.DrNijiOb.js → index.Czv_1MTM.js} +559 -622
- package/dist/chunks/{index.BxFHN1eH.js → index.DEKgWsou.js} +1 -1
- package/dist/chunks/{index.DTuvjVrw.js → index.DGkW9g6n.js} +3 -3
- package/dist/chunks/{index.Cnc9HRbd.js → index.DUl-LwyU.js} +1 -1
- package/dist/chunks/{index.CyFKAjrJ.js → index.icjUE8II.js} +24 -24
- package/dist/chunks/{useMarkdown.CYvX9qkp.js → useMarkdown.Bf7wGKkC.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, jsxs as j, Fragment as Nr } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import le, { createContext as
|
|
2
|
+
import * as B from "react";
|
|
3
|
+
import le, { createContext as Lt, useReducer as Pr, useCallback as X, useRef as Q, useEffect as V, useSyncExternalStore as Bs, useContext as ot, useState as ce, useMemo as Ye, useId as qs, useLayoutEffect as ze, Suspense as Ws, lazy as Vs } from "react";
|
|
4
4
|
import y from "clsx";
|
|
5
5
|
var Pe = class {
|
|
6
6
|
constructor() {
|
|
@@ -70,7 +70,7 @@ function W() {
|
|
|
70
70
|
function Ys(e, t) {
|
|
71
71
|
return typeof e == "function" ? e(t) : e;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function _t(e) {
|
|
74
74
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
75
75
|
}
|
|
76
76
|
function $r(e, t) {
|
|
@@ -93,7 +93,7 @@ function er(e, t) {
|
|
|
93
93
|
} = e;
|
|
94
94
|
if (i) {
|
|
95
95
|
if (s) {
|
|
96
|
-
if (t.queryHash !==
|
|
96
|
+
if (t.queryHash !== Ut(i, t.options))
|
|
97
97
|
return !1;
|
|
98
98
|
} else if (!De(t.queryKey, i))
|
|
99
99
|
return !1;
|
|
@@ -118,24 +118,24 @@ function tr(e, t) {
|
|
|
118
118
|
}
|
|
119
119
|
return !(s && t.state.status !== s || a && !a(t));
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ut(e, t) {
|
|
122
122
|
return (t?.queryKeyHashFn || Se)(e);
|
|
123
123
|
}
|
|
124
124
|
function Se(e) {
|
|
125
125
|
return JSON.stringify(
|
|
126
126
|
e,
|
|
127
|
-
(t, r) =>
|
|
127
|
+
(t, r) => Ot(r) ? Object.keys(r).sort().reduce((s, a) => (s[a] = r[a], s), {}) : r
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
function De(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) => De(e[r], t[r])) : !1;
|
|
132
132
|
}
|
|
133
133
|
var zs = Object.prototype.hasOwnProperty;
|
|
134
|
-
function
|
|
134
|
+
function Rt(e, t) {
|
|
135
135
|
if (e === t)
|
|
136
136
|
return e;
|
|
137
137
|
const r = rr(e) && rr(t);
|
|
138
|
-
if (!r && !(
|
|
138
|
+
if (!r && !(Ot(e) && Ot(t))) return t;
|
|
139
139
|
const a = (r ? e : Object.keys(e)).length, n = r ? t : Object.keys(t), i = n.length, o = r ? new Array(i) : {};
|
|
140
140
|
let c = 0;
|
|
141
141
|
for (let f = 0; f < i; f++) {
|
|
@@ -148,12 +148,12 @@ function Ct(e, t) {
|
|
|
148
148
|
o[d] = l;
|
|
149
149
|
continue;
|
|
150
150
|
}
|
|
151
|
-
const m =
|
|
151
|
+
const m = Rt(u, l);
|
|
152
152
|
o[d] = m, m === u && c++;
|
|
153
153
|
}
|
|
154
154
|
return a === i && c === a ? e : o;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Xe(e, t) {
|
|
157
157
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
158
158
|
return !1;
|
|
159
159
|
for (const r in e)
|
|
@@ -164,7 +164,7 @@ function Ze(e, t) {
|
|
|
164
164
|
function rr(e) {
|
|
165
165
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Ot(e) {
|
|
168
168
|
if (!sr(e))
|
|
169
169
|
return !1;
|
|
170
170
|
const t = e.constructor;
|
|
@@ -181,19 +181,19 @@ function Xs(e) {
|
|
|
181
181
|
Ee.setTimeout(t, e);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ct(e, t, r) {
|
|
185
185
|
if (typeof r.structuralSharing == "function")
|
|
186
186
|
return r.structuralSharing(e, t);
|
|
187
187
|
if (r.structuralSharing !== !1) {
|
|
188
188
|
if (process.env.NODE_ENV !== "production")
|
|
189
189
|
try {
|
|
190
|
-
return
|
|
190
|
+
return Rt(e, t);
|
|
191
191
|
} catch (s) {
|
|
192
192
|
throw console.error(
|
|
193
193
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`
|
|
194
194
|
), s;
|
|
195
195
|
}
|
|
196
|
-
return
|
|
196
|
+
return Rt(e, t);
|
|
197
197
|
}
|
|
198
198
|
return t;
|
|
199
199
|
}
|
|
@@ -205,11 +205,11 @@ function ea(e, t, r = 0) {
|
|
|
205
205
|
const s = [t, ...e];
|
|
206
206
|
return r && s.length > r ? s.slice(0, -1) : s;
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Ze = Symbol();
|
|
209
209
|
function Mr(e, t) {
|
|
210
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
210
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Ze && console.error(
|
|
211
211
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
212
|
-
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
212
|
+
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Ze ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
213
213
|
}
|
|
214
214
|
function xr(e, t) {
|
|
215
215
|
return typeof e == "function" ? e(...t) : !!e;
|
|
@@ -251,8 +251,8 @@ var ta = class extends Pe {
|
|
|
251
251
|
isFocused() {
|
|
252
252
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
253
253
|
}
|
|
254
|
-
},
|
|
255
|
-
function
|
|
254
|
+
}, Ft = new ta();
|
|
255
|
+
function kt() {
|
|
256
256
|
let e, t;
|
|
257
257
|
const r = new Promise((a, n) => {
|
|
258
258
|
e = a, t = n;
|
|
@@ -365,30 +365,30 @@ var M = sa(), aa = class extends Pe {
|
|
|
365
365
|
isOnline() {
|
|
366
366
|
return this.#e;
|
|
367
367
|
}
|
|
368
|
-
},
|
|
368
|
+
}, et = new aa();
|
|
369
369
|
function na(e) {
|
|
370
370
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
371
371
|
}
|
|
372
372
|
function Dr(e) {
|
|
373
|
-
return (e ?? "online") === "online" ?
|
|
373
|
+
return (e ?? "online") === "online" ? et.isOnline() : !0;
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var Nt = class extends Error {
|
|
376
376
|
constructor(e) {
|
|
377
377
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
function Lr(e) {
|
|
381
381
|
let t = !1, r = 0, s;
|
|
382
|
-
const a =
|
|
382
|
+
const a = kt(), n = () => a.status !== "pending", i = (g) => {
|
|
383
383
|
if (!n()) {
|
|
384
|
-
const E = new
|
|
384
|
+
const E = new Nt(g);
|
|
385
385
|
l(E), e.onCancel?.(E);
|
|
386
386
|
}
|
|
387
387
|
}, o = () => {
|
|
388
388
|
t = !0;
|
|
389
389
|
}, c = () => {
|
|
390
390
|
t = !1;
|
|
391
|
-
}, f = () =>
|
|
391
|
+
}, f = () => Ft.isFocused() && (e.networkMode === "always" || et.isOnline()) && e.canRun(), d = () => Dr(e.networkMode) && e.canRun(), u = (g) => {
|
|
392
392
|
n() || (s?.(), a.resolve(g));
|
|
393
393
|
}, l = (g) => {
|
|
394
394
|
n() || (s?.(), a.reject(g));
|
|
@@ -411,12 +411,12 @@ function Lr(e) {
|
|
|
411
411
|
Promise.resolve(g).then(u).catch((b) => {
|
|
412
412
|
if (n())
|
|
413
413
|
return;
|
|
414
|
-
const C = e.retry ?? (be ? 0 : 3), I = e.retryDelay ?? na,
|
|
414
|
+
const C = e.retry ?? (be ? 0 : 3), I = e.retryDelay ?? na, q = typeof I == "function" ? I(r, b) : I, R = C === !0 || typeof C == "number" && r < C || typeof C == "function" && C(r, b);
|
|
415
415
|
if (t || !R) {
|
|
416
416
|
l(b);
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
|
-
r++, e.onFail?.(r, b), Xs(
|
|
419
|
+
r++, e.onFail?.(r, b), Xs(q).then(() => f() ? void 0 : m()).then(() => {
|
|
420
420
|
t ? l(b) : p();
|
|
421
421
|
});
|
|
422
422
|
});
|
|
@@ -438,7 +438,7 @@ var Ur = class {
|
|
|
438
438
|
this.clearGcTimeout();
|
|
439
439
|
}
|
|
440
440
|
scheduleGc() {
|
|
441
|
-
this.clearGcTimeout(),
|
|
441
|
+
this.clearGcTimeout(), _t(this.gcTime) && (this.#e = Ee.setTimeout(() => {
|
|
442
442
|
this.optionalRemove();
|
|
443
443
|
}, this.gcTime));
|
|
444
444
|
}
|
|
@@ -480,7 +480,7 @@ var Ur = class {
|
|
|
480
480
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
481
481
|
}
|
|
482
482
|
setData(e, t) {
|
|
483
|
-
const r =
|
|
483
|
+
const r = Ct(this.state.data, e, this.options);
|
|
484
484
|
return this.#n({
|
|
485
485
|
data: r,
|
|
486
486
|
type: "success",
|
|
@@ -507,7 +507,7 @@ var Ur = class {
|
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
509
|
isDisabled() {
|
|
510
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
510
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Ze || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
511
511
|
}
|
|
512
512
|
isStatic() {
|
|
513
513
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
@@ -591,7 +591,7 @@ var Ur = class {
|
|
|
591
591
|
initialPromise: t?.initialPromise,
|
|
592
592
|
fn: i.fetchFn,
|
|
593
593
|
onCancel: (o) => {
|
|
594
|
-
o instanceof
|
|
594
|
+
o instanceof Nt && o.revert && this.setState({
|
|
595
595
|
...this.#t,
|
|
596
596
|
fetchStatus: "idle"
|
|
597
597
|
}), r.abort();
|
|
@@ -622,7 +622,7 @@ var Ur = class {
|
|
|
622
622
|
this
|
|
623
623
|
), o;
|
|
624
624
|
} catch (o) {
|
|
625
|
-
if (o instanceof
|
|
625
|
+
if (o instanceof Nt) {
|
|
626
626
|
if (o.silent)
|
|
627
627
|
return this.#s.promise;
|
|
628
628
|
if (o.revert) {
|
|
@@ -753,7 +753,7 @@ function nr(e) {
|
|
|
753
753
|
}
|
|
754
754
|
var oa = class extends Pe {
|
|
755
755
|
constructor(e, t) {
|
|
756
|
-
super(), this.options = t, this.#e = e, this.#n = null, this.#o =
|
|
756
|
+
super(), this.options = t, this.#e = e, this.#n = null, this.#o = kt(), this.bindMethods(), this.setOptions(t);
|
|
757
757
|
}
|
|
758
758
|
#e;
|
|
759
759
|
#t = void 0;
|
|
@@ -782,14 +782,14 @@ var oa = class extends Pe {
|
|
|
782
782
|
this.hasListeners() || this.destroy();
|
|
783
783
|
}
|
|
784
784
|
shouldFetchOnReconnect() {
|
|
785
|
-
return
|
|
785
|
+
return Pt(
|
|
786
786
|
this.#t,
|
|
787
787
|
this.options,
|
|
788
788
|
this.options.refetchOnReconnect
|
|
789
789
|
);
|
|
790
790
|
}
|
|
791
791
|
shouldFetchOnWindowFocus() {
|
|
792
|
-
return
|
|
792
|
+
return Pt(
|
|
793
793
|
this.#t,
|
|
794
794
|
this.options,
|
|
795
795
|
this.options.refetchOnWindowFocus
|
|
@@ -804,7 +804,7 @@ var oa = class extends Pe {
|
|
|
804
804
|
throw new Error(
|
|
805
805
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
806
806
|
);
|
|
807
|
-
this.#v(), this.#t.setOptions(this.options), t._defaulted && !
|
|
807
|
+
this.#v(), this.#t.setOptions(this.options), t._defaulted && !Xe(this.options, t) && this.#e.getQueryCache().notify({
|
|
808
808
|
type: "observerOptionsUpdated",
|
|
809
809
|
query: this.#t,
|
|
810
810
|
observer: this
|
|
@@ -870,7 +870,7 @@ var oa = class extends Pe {
|
|
|
870
870
|
this.options.staleTime,
|
|
871
871
|
this.#t
|
|
872
872
|
);
|
|
873
|
-
if (be || this.#a.isStale || !
|
|
873
|
+
if (be || this.#a.isStale || !_t(e))
|
|
874
874
|
return;
|
|
875
875
|
const r = $r(this.#a.dataUpdatedAt, e) + 1;
|
|
876
876
|
this.#l = Ee.setTimeout(() => {
|
|
@@ -881,8 +881,8 @@ var oa = class extends Pe {
|
|
|
881
881
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
882
882
|
}
|
|
883
883
|
#E(e) {
|
|
884
|
-
this.#w(), this.#c = e, !(be || Y(this.options.enabled, this.#t) === !1 || !
|
|
885
|
-
(this.options.refetchIntervalInBackground ||
|
|
884
|
+
this.#w(), this.#c = e, !(be || Y(this.options.enabled, this.#t) === !1 || !_t(this.#c) || this.#c === 0) && (this.#u = Ee.setInterval(() => {
|
|
885
|
+
(this.options.refetchIntervalInBackground || Ft.isFocused()) && this.#d();
|
|
886
886
|
}, this.#c));
|
|
887
887
|
}
|
|
888
888
|
#b() {
|
|
@@ -912,7 +912,7 @@ var oa = class extends Pe {
|
|
|
912
912
|
a?.isPlaceholderData && t.placeholderData === i?.placeholderData ? (v = a.data, E = !0) : v = typeof t.placeholderData == "function" ? t.placeholderData(
|
|
913
913
|
this.#f?.state.data,
|
|
914
914
|
this.#f
|
|
915
|
-
) : t.placeholderData, v !== void 0 && (g = "success", l =
|
|
915
|
+
) : t.placeholderData, v !== void 0 && (g = "success", l = Ct(
|
|
916
916
|
a?.data,
|
|
917
917
|
v,
|
|
918
918
|
t
|
|
@@ -923,19 +923,19 @@ var oa = class extends Pe {
|
|
|
923
923
|
l = this.#h;
|
|
924
924
|
else
|
|
925
925
|
try {
|
|
926
|
-
this.#p = t.select, l = t.select(l), l =
|
|
926
|
+
this.#p = t.select, l = t.select(l), l = Ct(a?.data, l, t), this.#h = l, this.#n = null;
|
|
927
927
|
} catch (v) {
|
|
928
928
|
this.#n = v;
|
|
929
929
|
}
|
|
930
930
|
this.#n && (m = this.#n, l = this.#h, p = Date.now(), g = "error");
|
|
931
|
-
const b = d.fetchStatus === "fetching", C = g === "pending", I = g === "error",
|
|
931
|
+
const b = d.fetchStatus === "fetching", C = g === "pending", I = g === "error", q = C && b, R = l !== void 0, O = {
|
|
932
932
|
status: g,
|
|
933
933
|
fetchStatus: d.fetchStatus,
|
|
934
934
|
isPending: C,
|
|
935
935
|
isSuccess: g === "success",
|
|
936
936
|
isError: I,
|
|
937
|
-
isInitialLoading:
|
|
938
|
-
isLoading:
|
|
937
|
+
isInitialLoading: q,
|
|
938
|
+
isLoading: q,
|
|
939
939
|
data: l,
|
|
940
940
|
dataUpdatedAt: d.dataUpdatedAt,
|
|
941
941
|
error: m,
|
|
@@ -951,7 +951,7 @@ var oa = class extends Pe {
|
|
|
951
951
|
isPaused: d.fetchStatus === "paused",
|
|
952
952
|
isPlaceholderData: u,
|
|
953
953
|
isRefetchError: I && R,
|
|
954
|
-
isStale:
|
|
954
|
+
isStale: Ht(e, t),
|
|
955
955
|
refetch: this.refetch,
|
|
956
956
|
promise: this.#o,
|
|
957
957
|
isEnabled: Y(t.enabled, e) !== !1
|
|
@@ -960,7 +960,7 @@ var oa = class extends Pe {
|
|
|
960
960
|
const v = (A) => {
|
|
961
961
|
O.status === "error" ? A.reject(O.error) : O.data !== void 0 && A.resolve(O.data);
|
|
962
962
|
}, L = () => {
|
|
963
|
-
const A = this.#o = O.promise =
|
|
963
|
+
const A = this.#o = O.promise = kt();
|
|
964
964
|
v(A);
|
|
965
965
|
}, _ = this.#o;
|
|
966
966
|
switch (_.status) {
|
|
@@ -979,7 +979,7 @@ var oa = class extends Pe {
|
|
|
979
979
|
}
|
|
980
980
|
updateResult() {
|
|
981
981
|
const e = this.#a, t = this.createResult(this.#t, this.options);
|
|
982
|
-
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t),
|
|
982
|
+
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t), Xe(t, e))
|
|
983
983
|
return;
|
|
984
984
|
this.#a = t;
|
|
985
985
|
const r = () => {
|
|
@@ -1023,23 +1023,23 @@ function ca(e, t) {
|
|
|
1023
1023
|
return Y(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1024
1024
|
}
|
|
1025
1025
|
function ir(e, t) {
|
|
1026
|
-
return ca(e, t) || e.state.data !== void 0 &&
|
|
1026
|
+
return ca(e, t) || e.state.data !== void 0 && Pt(e, t, t.refetchOnMount);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function Pt(e, t, r) {
|
|
1029
1029
|
if (Y(t.enabled, e) !== !1 && pe(t.staleTime, e) !== "static") {
|
|
1030
1030
|
const s = typeof r == "function" ? r(e) : r;
|
|
1031
|
-
return s === "always" || s !== !1 &&
|
|
1031
|
+
return s === "always" || s !== !1 && Ht(e, t);
|
|
1032
1032
|
}
|
|
1033
1033
|
return !1;
|
|
1034
1034
|
}
|
|
1035
1035
|
function or(e, t, r, s) {
|
|
1036
|
-
return (e !== t || Y(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
|
1036
|
+
return (e !== t || Y(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Ht(e, r);
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function Ht(e, t) {
|
|
1039
1039
|
return Y(t.enabled, e) !== !1 && e.isStaleByTime(pe(t.staleTime, e));
|
|
1040
1040
|
}
|
|
1041
1041
|
function la(e, t) {
|
|
1042
|
-
return !
|
|
1042
|
+
return !Xe(e.getCurrentResult(), t);
|
|
1043
1043
|
}
|
|
1044
1044
|
function cr(e) {
|
|
1045
1045
|
return {
|
|
@@ -1069,10 +1069,10 @@ function cr(e) {
|
|
|
1069
1069
|
meta: t.options.meta
|
|
1070
1070
|
};
|
|
1071
1071
|
return u(z), z;
|
|
1072
|
-
})(), I = await l(C), { maxPages:
|
|
1072
|
+
})(), I = await l(C), { maxPages: q } = t.options, R = E ? ea : Zs;
|
|
1073
1073
|
return {
|
|
1074
|
-
pages: R(p.pages, I,
|
|
1075
|
-
pageParams: R(p.pageParams, g,
|
|
1074
|
+
pages: R(p.pages, I, q),
|
|
1075
|
+
pageParams: R(p.pageParams, g, q)
|
|
1076
1076
|
};
|
|
1077
1077
|
};
|
|
1078
1078
|
if (a && n.length) {
|
|
@@ -1352,7 +1352,7 @@ var ha = class extends Pe {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
add(e) {
|
|
1354
1354
|
this.#e.add(e);
|
|
1355
|
-
const t =
|
|
1355
|
+
const t = He(e);
|
|
1356
1356
|
if (typeof t == "string") {
|
|
1357
1357
|
const r = this.#t.get(t);
|
|
1358
1358
|
r ? r.push(e) : this.#t.set(t, [e]);
|
|
@@ -1361,7 +1361,7 @@ var ha = class extends Pe {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
remove(e) {
|
|
1363
1363
|
if (this.#e.delete(e)) {
|
|
1364
|
-
const t =
|
|
1364
|
+
const t = He(e);
|
|
1365
1365
|
if (typeof t == "string") {
|
|
1366
1366
|
const r = this.#t.get(t);
|
|
1367
1367
|
if (r)
|
|
@@ -1374,7 +1374,7 @@ var ha = class extends Pe {
|
|
|
1374
1374
|
this.notify({ type: "removed", mutation: e });
|
|
1375
1375
|
}
|
|
1376
1376
|
canRun(e) {
|
|
1377
|
-
const t =
|
|
1377
|
+
const t = He(e);
|
|
1378
1378
|
if (typeof t == "string") {
|
|
1379
1379
|
const s = this.#t.get(t)?.find(
|
|
1380
1380
|
(a) => a.state.status === "pending"
|
|
@@ -1384,7 +1384,7 @@ var ha = class extends Pe {
|
|
|
1384
1384
|
return !0;
|
|
1385
1385
|
}
|
|
1386
1386
|
runNext(e) {
|
|
1387
|
-
const t =
|
|
1387
|
+
const t = He(e);
|
|
1388
1388
|
return typeof t == "string" ? this.#t.get(t)?.find((s) => s !== e && s.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1389
1389
|
}
|
|
1390
1390
|
clear() {
|
|
@@ -1422,7 +1422,7 @@ var ha = class extends Pe {
|
|
|
1422
1422
|
);
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
function
|
|
1425
|
+
function He(e) {
|
|
1426
1426
|
return e.options.scope?.id;
|
|
1427
1427
|
}
|
|
1428
1428
|
var fa = class extends Pe {
|
|
@@ -1438,7 +1438,7 @@ var fa = class extends Pe {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
setOptions(e) {
|
|
1440
1440
|
const t = this.options;
|
|
1441
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
1441
|
+
this.options = this.#e.defaultMutationOptions(e), Xe(this.options, t) || this.#e.getMutationCache().notify({
|
|
1442
1442
|
type: "observerOptionsUpdated",
|
|
1443
1443
|
mutation: this.#r,
|
|
1444
1444
|
observer: this
|
|
@@ -1514,7 +1514,7 @@ var fa = class extends Pe {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
#e;
|
|
1516
1516
|
build(e, t, r) {
|
|
1517
|
-
const s = t.queryKey, a = t.queryHash ??
|
|
1517
|
+
const s = t.queryKey, a = t.queryHash ?? Ut(s, t);
|
|
1518
1518
|
let n = this.get(a);
|
|
1519
1519
|
return n || (n = new ia({
|
|
1520
1520
|
client: e,
|
|
@@ -1592,9 +1592,9 @@ var fa = class extends Pe {
|
|
|
1592
1592
|
this.#e = e.queryCache || new ma(), this.#t = e.mutationCache || new ha(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
|
|
1593
1593
|
}
|
|
1594
1594
|
mount() {
|
|
1595
|
-
this.#i++, this.#i === 1 && (this.#o =
|
|
1595
|
+
this.#i++, this.#i === 1 && (this.#o = Ft.subscribe(async (e) => {
|
|
1596
1596
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1597
|
-
}), this.#n =
|
|
1597
|
+
}), this.#n = et.subscribe(async (e) => {
|
|
1598
1598
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1599
1599
|
}));
|
|
1600
1600
|
}
|
|
@@ -1719,7 +1719,7 @@ var fa = class extends Pe {
|
|
|
1719
1719
|
return e.behavior = cr(e.pages), this.ensureQueryData(e);
|
|
1720
1720
|
}
|
|
1721
1721
|
resumePausedMutations() {
|
|
1722
|
-
return
|
|
1722
|
+
return et.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1723
1723
|
}
|
|
1724
1724
|
getQueryCache() {
|
|
1725
1725
|
return this.#e;
|
|
@@ -1766,10 +1766,10 @@ var fa = class extends Pe {
|
|
|
1766
1766
|
...e,
|
|
1767
1767
|
_defaulted: !0
|
|
1768
1768
|
};
|
|
1769
|
-
return t.queryHash || (t.queryHash =
|
|
1769
|
+
return t.queryHash || (t.queryHash = Ut(
|
|
1770
1770
|
t.queryKey,
|
|
1771
1771
|
t
|
|
1772
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
1772
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Ze && (t.enabled = !1), t;
|
|
1773
1773
|
}
|
|
1774
1774
|
defaultMutationOptions(e) {
|
|
1775
1775
|
return e?._defaulted ? e : {
|
|
@@ -1782,19 +1782,19 @@ var fa = class extends Pe {
|
|
|
1782
1782
|
clear() {
|
|
1783
1783
|
this.#e.clear(), this.#t.clear();
|
|
1784
1784
|
}
|
|
1785
|
-
}, Kr =
|
|
1785
|
+
}, Kr = B.createContext(
|
|
1786
1786
|
void 0
|
|
1787
1787
|
), se = (e) => {
|
|
1788
|
-
const t =
|
|
1788
|
+
const t = B.useContext(Kr);
|
|
1789
1789
|
if (!t)
|
|
1790
1790
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1791
1791
|
return t;
|
|
1792
1792
|
}, ya = ({
|
|
1793
1793
|
client: e,
|
|
1794
1794
|
children: t
|
|
1795
|
-
}) => (
|
|
1795
|
+
}) => (B.useEffect(() => (e.mount(), () => {
|
|
1796
1796
|
e.unmount();
|
|
1797
|
-
}), [e]), /* @__PURE__ */ h(Kr.Provider, { value: e, children: t })), ga =
|
|
1797
|
+
}), [e]), /* @__PURE__ */ h(Kr.Provider, { value: e, children: t })), ga = B.createContext(!1), Ea = () => B.useContext(ga);
|
|
1798
1798
|
function ba() {
|
|
1799
1799
|
let e = !1;
|
|
1800
1800
|
return {
|
|
@@ -1807,10 +1807,10 @@ function ba() {
|
|
|
1807
1807
|
isReset: () => e
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
var Sa =
|
|
1810
|
+
var Sa = B.createContext(ba()), wa = () => B.useContext(Sa), va = (e, t) => {
|
|
1811
1811
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1812
1812
|
}, Ta = (e) => {
|
|
1813
|
-
|
|
1813
|
+
B.useEffect(() => {
|
|
1814
1814
|
e.clearReset();
|
|
1815
1815
|
}, [e]);
|
|
1816
1816
|
}, Ia = ({
|
|
@@ -1841,14 +1841,14 @@ function Oa(e, t, r) {
|
|
|
1841
1841
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
|
1842
1842
|
`[${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`
|
|
1843
1843
|
)), i._optimisticResults = s ? "isRestoring" : "optimistic", Aa(i), va(i, a), Ta(a);
|
|
1844
|
-
const o = !n.getQueryCache().get(i.queryHash), [c] =
|
|
1844
|
+
const o = !n.getQueryCache().get(i.queryHash), [c] = B.useState(
|
|
1845
1845
|
() => new t(
|
|
1846
1846
|
n,
|
|
1847
1847
|
i
|
|
1848
1848
|
)
|
|
1849
1849
|
), f = c.getOptimisticResult(i), d = !s && e.subscribed !== !1;
|
|
1850
|
-
if (
|
|
1851
|
-
|
|
1850
|
+
if (B.useSyncExternalStore(
|
|
1851
|
+
B.useCallback(
|
|
1852
1852
|
(u) => {
|
|
1853
1853
|
const l = d ? c.subscribe(M.batchCalls(u)) : W;
|
|
1854
1854
|
return c.updateResult(), l;
|
|
@@ -1857,7 +1857,7 @@ function Oa(e, t, r) {
|
|
|
1857
1857
|
),
|
|
1858
1858
|
() => c.getCurrentResult(),
|
|
1859
1859
|
() => c.getCurrentResult()
|
|
1860
|
-
),
|
|
1860
|
+
), B.useEffect(() => {
|
|
1861
1861
|
c.setOptions(i);
|
|
1862
1862
|
}, [i, c]), Ra(i, f))
|
|
1863
1863
|
throw ur(i, c, a);
|
|
@@ -1886,23 +1886,23 @@ function ue(e, t) {
|
|
|
1886
1886
|
return Oa(e, oa);
|
|
1887
1887
|
}
|
|
1888
1888
|
function ye(e, t) {
|
|
1889
|
-
const r = se(), [s] =
|
|
1889
|
+
const r = se(), [s] = B.useState(
|
|
1890
1890
|
() => new fa(
|
|
1891
1891
|
r,
|
|
1892
1892
|
e
|
|
1893
1893
|
)
|
|
1894
1894
|
);
|
|
1895
|
-
|
|
1895
|
+
B.useEffect(() => {
|
|
1896
1896
|
s.setOptions(e);
|
|
1897
1897
|
}, [s, e]);
|
|
1898
|
-
const a =
|
|
1899
|
-
|
|
1898
|
+
const a = B.useSyncExternalStore(
|
|
1899
|
+
B.useCallback(
|
|
1900
1900
|
(i) => s.subscribe(M.batchCalls(i)),
|
|
1901
1901
|
[s]
|
|
1902
1902
|
),
|
|
1903
1903
|
() => s.getCurrentResult(),
|
|
1904
1904
|
() => s.getCurrentResult()
|
|
1905
|
-
), n =
|
|
1905
|
+
), n = B.useCallback(
|
|
1906
1906
|
(i, o) => {
|
|
1907
1907
|
s.mutate(i, o).catch(W);
|
|
1908
1908
|
},
|
|
@@ -1947,12 +1947,12 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
|
|
|
1947
1947
|
l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
1948
1948
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
|
1949
1949
|
awIDAQAB
|
|
1950
|
-
-----END PUBLIC KEY-----`,
|
|
1950
|
+
-----END PUBLIC KEY-----`, ct = {
|
|
1951
1951
|
CODE: "code",
|
|
1952
1952
|
LOGOUT: "logout",
|
|
1953
1953
|
LOGIN: "login",
|
|
1954
1954
|
REFRESH: "refresh"
|
|
1955
|
-
},
|
|
1955
|
+
}, Ke = new TextEncoder(), Ne = new TextDecoder();
|
|
1956
1956
|
function ka(...e) {
|
|
1957
1957
|
const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
|
|
1958
1958
|
let s = 0;
|
|
@@ -1960,7 +1960,7 @@ function ka(...e) {
|
|
|
1960
1960
|
r.set(a, s), s += a.length;
|
|
1961
1961
|
return r;
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1963
|
+
function Br(e) {
|
|
1964
1964
|
if (Uint8Array.fromBase64)
|
|
1965
1965
|
return Uint8Array.fromBase64(e);
|
|
1966
1966
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
@@ -1976,7 +1976,7 @@ function xe(e) {
|
|
|
1976
1976
|
let t = e;
|
|
1977
1977
|
t instanceof Uint8Array && (t = Ne.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
1978
1978
|
try {
|
|
1979
|
-
return
|
|
1979
|
+
return Br(t);
|
|
1980
1980
|
} catch {
|
|
1981
1981
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
1982
1982
|
}
|
|
@@ -2033,7 +2033,7 @@ function ee(e, t = "algorithm.name") {
|
|
|
2033
2033
|
function Ie(e, t) {
|
|
2034
2034
|
return e.name === t;
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function ft(e) {
|
|
2037
2037
|
return parseInt(e.name.slice(4), 10);
|
|
2038
2038
|
}
|
|
2039
2039
|
function $a(e) {
|
|
@@ -2060,7 +2060,7 @@ function xa(e, t, r) {
|
|
|
2060
2060
|
if (!Ie(e.algorithm, "HMAC"))
|
|
2061
2061
|
throw ee("HMAC");
|
|
2062
2062
|
const s = parseInt(t.slice(2), 10);
|
|
2063
|
-
if (
|
|
2063
|
+
if (ft(e.algorithm.hash) !== s)
|
|
2064
2064
|
throw ee(`SHA-${s}`, "algorithm.hash");
|
|
2065
2065
|
break;
|
|
2066
2066
|
}
|
|
@@ -2070,7 +2070,7 @@ function xa(e, t, r) {
|
|
|
2070
2070
|
if (!Ie(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
2071
2071
|
throw ee("RSASSA-PKCS1-v1_5");
|
|
2072
2072
|
const s = parseInt(t.slice(2), 10);
|
|
2073
|
-
if (
|
|
2073
|
+
if (ft(e.algorithm.hash) !== s)
|
|
2074
2074
|
throw ee(`SHA-${s}`, "algorithm.hash");
|
|
2075
2075
|
break;
|
|
2076
2076
|
}
|
|
@@ -2080,7 +2080,7 @@ function xa(e, t, r) {
|
|
|
2080
2080
|
if (!Ie(e.algorithm, "RSA-PSS"))
|
|
2081
2081
|
throw ee("RSA-PSS");
|
|
2082
2082
|
const s = parseInt(t.slice(2), 10);
|
|
2083
|
-
if (
|
|
2083
|
+
if (ft(e.algorithm.hash) !== s)
|
|
2084
2084
|
throw ee(`SHA-${s}`, "algorithm.hash");
|
|
2085
2085
|
break;
|
|
2086
2086
|
}
|
|
@@ -2112,16 +2112,16 @@ function xa(e, t, r) {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
Ma(e, r);
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function qr(e, t, ...r) {
|
|
2116
2116
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
2117
2117
|
const s = r.pop();
|
|
2118
2118
|
e += `one of type ${r.join(", ")}, or ${s}.`;
|
|
2119
2119
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
2120
2120
|
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;
|
|
2121
2121
|
}
|
|
2122
|
-
const Da = (e, ...t) =>
|
|
2122
|
+
const Da = (e, ...t) => qr("Key must be ", e, ...t);
|
|
2123
2123
|
function Wr(e, t, ...r) {
|
|
2124
|
-
return
|
|
2124
|
+
return qr(`Key for the ${e} algorithm must be `, t, ...r);
|
|
2125
2125
|
}
|
|
2126
2126
|
function Vr(e) {
|
|
2127
2127
|
return e?.[Symbol.toStringTag] === "CryptoKey";
|
|
@@ -2166,14 +2166,14 @@ const Le = (e) => {
|
|
|
2166
2166
|
if (typeof r != "number" || r < 2048)
|
|
2167
2167
|
throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
|
|
2168
2168
|
}
|
|
2169
|
-
},
|
|
2169
|
+
}, mt = (e, t) => {
|
|
2170
2170
|
if (e.byteLength !== t.length)
|
|
2171
2171
|
return !1;
|
|
2172
2172
|
for (let r = 0; r < e.byteLength; r++)
|
|
2173
2173
|
if (e[r] !== t[r])
|
|
2174
2174
|
return !1;
|
|
2175
2175
|
return !0;
|
|
2176
|
-
}, Ha = (e) => ({ data: e, pos: 0 }),
|
|
2176
|
+
}, Ha = (e) => ({ data: e, pos: 0 }), tt = (e) => {
|
|
2177
2177
|
const t = e.data[e.pos++];
|
|
2178
2178
|
if (t & 128) {
|
|
2179
2179
|
const r = t & 127;
|
|
@@ -2183,39 +2183,39 @@ const Le = (e) => {
|
|
|
2183
2183
|
return s;
|
|
2184
2184
|
}
|
|
2185
2185
|
return t;
|
|
2186
|
-
},
|
|
2186
|
+
}, rt = (e, t, r) => {
|
|
2187
2187
|
if (e.data[e.pos++] !== t)
|
|
2188
2188
|
throw new Error(r);
|
|
2189
2189
|
}, Jr = (e, t) => {
|
|
2190
2190
|
const r = e.data.subarray(e.pos, e.pos + t);
|
|
2191
2191
|
return e.pos += t, r;
|
|
2192
2192
|
}, Ka = (e) => {
|
|
2193
|
-
|
|
2194
|
-
const t =
|
|
2193
|
+
rt(e, 6, "Expected algorithm OID");
|
|
2194
|
+
const t = tt(e);
|
|
2195
2195
|
return Jr(e, t);
|
|
2196
2196
|
};
|
|
2197
2197
|
function Ga(e) {
|
|
2198
|
-
|
|
2199
|
-
const t =
|
|
2198
|
+
rt(e, 48, "Invalid SPKI structure"), tt(e), rt(e, 48, "Expected algorithm identifier");
|
|
2199
|
+
const t = tt(e);
|
|
2200
2200
|
return { algIdStart: e.pos, algIdLength: t };
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const Ba = (e) => {
|
|
2203
2203
|
const t = Ka(e);
|
|
2204
|
-
if (
|
|
2204
|
+
if (mt(t, [43, 101, 110]))
|
|
2205
2205
|
return "X25519";
|
|
2206
|
-
if (!
|
|
2206
|
+
if (!mt(t, [42, 134, 72, 206, 61, 2, 1]))
|
|
2207
2207
|
throw new Error("Unsupported key algorithm");
|
|
2208
|
-
|
|
2209
|
-
const r =
|
|
2208
|
+
rt(e, 6, "Expected curve OID");
|
|
2209
|
+
const r = tt(e), s = Jr(e, r);
|
|
2210
2210
|
for (const { name: a, oid: n } of [
|
|
2211
2211
|
{ name: "P-256", oid: [42, 134, 72, 206, 61, 3, 1, 7] },
|
|
2212
2212
|
{ name: "P-384", oid: [43, 129, 4, 0, 34] },
|
|
2213
2213
|
{ name: "P-521", oid: [43, 129, 4, 0, 35] }
|
|
2214
2214
|
])
|
|
2215
|
-
if (
|
|
2215
|
+
if (mt(s, n))
|
|
2216
2216
|
return a;
|
|
2217
2217
|
throw new Error("Unsupported named curve");
|
|
2218
|
-
},
|
|
2218
|
+
}, qa = async (e, t, r, s) => {
|
|
2219
2219
|
let a, n;
|
|
2220
2220
|
const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
|
|
2221
2221
|
switch (r) {
|
|
@@ -2270,13 +2270,13 @@ const qa = (e) => {
|
|
|
2270
2270
|
throw new oe('Invalid or unsupported "alg" (Algorithm) value');
|
|
2271
2271
|
}
|
|
2272
2272
|
return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
|
|
2273
|
-
}, Wa = (e, t) =>
|
|
2273
|
+
}, Wa = (e, t) => Br(e.replace(t, "")), Va = (e, t, r) => {
|
|
2274
2274
|
const s = Wa(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
|
2275
2275
|
let a = r;
|
|
2276
2276
|
return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
|
|
2277
2277
|
const i = Ha(n);
|
|
2278
|
-
return Ga(i),
|
|
2279
|
-
}),
|
|
2278
|
+
return Ga(i), Ba(i);
|
|
2279
|
+
}), qa("spki", s, t, a);
|
|
2280
2280
|
};
|
|
2281
2281
|
function ja(e) {
|
|
2282
2282
|
let t, r;
|
|
@@ -2398,7 +2398,7 @@ const Ya = (e, t, r, s, a) => {
|
|
|
2398
2398
|
if (t)
|
|
2399
2399
|
return new Set(t);
|
|
2400
2400
|
};
|
|
2401
|
-
function
|
|
2401
|
+
function Kt(e) {
|
|
2402
2402
|
return Le(e) && typeof e.kty == "string";
|
|
2403
2403
|
}
|
|
2404
2404
|
function Xa(e) {
|
|
@@ -2530,10 +2530,10 @@ const hr = async (e, t, r, s = !1) => {
|
|
|
2530
2530
|
let r = e.export({ format: "jwk" });
|
|
2531
2531
|
return hr(e, r, t);
|
|
2532
2532
|
}
|
|
2533
|
-
if (
|
|
2533
|
+
if (Kt(e))
|
|
2534
2534
|
return e.k ? xe(e.k) : hr(e, e, t, !0);
|
|
2535
2535
|
throw new Error("unreachable");
|
|
2536
|
-
}, Ce = (e) => e?.[Symbol.toStringTag],
|
|
2536
|
+
}, Ce = (e) => e?.[Symbol.toStringTag], $t = (e, t, r) => {
|
|
2537
2537
|
if (t.use !== void 0) {
|
|
2538
2538
|
let s;
|
|
2539
2539
|
switch (r) {
|
|
@@ -2578,8 +2578,8 @@ const hr = async (e, t, r, s = !1) => {
|
|
|
2578
2578
|
return !0;
|
|
2579
2579
|
}, sn = (e, t, r) => {
|
|
2580
2580
|
if (!(t instanceof Uint8Array)) {
|
|
2581
|
-
if (
|
|
2582
|
-
if (en(t) &&
|
|
2581
|
+
if (Kt(t)) {
|
|
2582
|
+
if (en(t) && $t(e, t, r))
|
|
2583
2583
|
return;
|
|
2584
2584
|
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');
|
|
2585
2585
|
}
|
|
@@ -2589,16 +2589,16 @@ const hr = async (e, t, r, s = !1) => {
|
|
|
2589
2589
|
throw new TypeError(`${Ce(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
2590
2590
|
}
|
|
2591
2591
|
}, an = (e, t, r) => {
|
|
2592
|
-
if (
|
|
2592
|
+
if (Kt(t))
|
|
2593
2593
|
switch (r) {
|
|
2594
2594
|
case "decrypt":
|
|
2595
2595
|
case "sign":
|
|
2596
|
-
if (Xa(t) &&
|
|
2596
|
+
if (Xa(t) && $t(e, t, r))
|
|
2597
2597
|
return;
|
|
2598
2598
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
2599
2599
|
case "encrypt":
|
|
2600
2600
|
case "verify":
|
|
2601
|
-
if (Za(t) &&
|
|
2601
|
+
if (Za(t) && $t(e, t, r))
|
|
2602
2602
|
return;
|
|
2603
2603
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
2604
2604
|
}
|
|
@@ -2711,7 +2711,7 @@ async function un(e, t, r) {
|
|
|
2711
2711
|
throw new H("JWS Payload must be a string or an Uint8Array instance");
|
|
2712
2712
|
let f = !1;
|
|
2713
2713
|
typeof t == "function" && (t = await t(s, e), f = !0), nn(o, t, "verify");
|
|
2714
|
-
const d = ka(
|
|
2714
|
+
const d = ka(Ke.encode(e.protected ?? ""), Ke.encode("."), typeof e.payload == "string" ? Ke.encode(e.payload) : e.payload);
|
|
2715
2715
|
let u;
|
|
2716
2716
|
try {
|
|
2717
2717
|
u = xe(e.signature);
|
|
@@ -2728,7 +2728,7 @@ async function un(e, t, r) {
|
|
|
2728
2728
|
} catch {
|
|
2729
2729
|
throw new H("Failed to base64url decode the payload");
|
|
2730
2730
|
}
|
|
2731
|
-
else typeof e.payload == "string" ? m =
|
|
2731
|
+
else typeof e.payload == "string" ? m = Ke.encode(e.payload) : m = e.payload;
|
|
2732
2732
|
const p = { payload: m };
|
|
2733
2733
|
return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
|
|
2734
2734
|
}
|
|
@@ -2741,7 +2741,7 @@ async function dn(e, t, r) {
|
|
|
2741
2741
|
const o = await un({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
|
|
2742
2742
|
return typeof t == "function" ? { ...c, key: o.key } : c;
|
|
2743
2743
|
}
|
|
2744
|
-
const hn = (e) => Math.floor(e.getTime() / 1e3), Yr = 60, zr = Yr * 60,
|
|
2744
|
+
const hn = (e) => Math.floor(e.getTime() / 1e3), Yr = 60, zr = Yr * 60, Gt = zr * 24, fn = Gt * 7, mn = Gt * 365.25, pn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, fr = (e) => {
|
|
2745
2745
|
const t = pn.exec(e);
|
|
2746
2746
|
if (!t || t[4] && t[1])
|
|
2747
2747
|
throw new TypeError("Invalid time period format");
|
|
@@ -2772,7 +2772,7 @@ const hn = (e) => Math.floor(e.getTime() / 1e3), Yr = 60, zr = Yr * 60, Bt = zr
|
|
|
2772
2772
|
case "day":
|
|
2773
2773
|
case "days":
|
|
2774
2774
|
case "d":
|
|
2775
|
-
a = Math.round(r *
|
|
2775
|
+
a = Math.round(r * Gt);
|
|
2776
2776
|
break;
|
|
2777
2777
|
case "week":
|
|
2778
2778
|
case "weeks":
|
|
@@ -2899,15 +2899,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
2899
2899
|
function wn(e, t = 0) {
|
|
2900
2900
|
return (U[e[t + 0]] + U[e[t + 1]] + U[e[t + 2]] + U[e[t + 3]] + "-" + U[e[t + 4]] + U[e[t + 5]] + "-" + U[e[t + 6]] + U[e[t + 7]] + "-" + U[e[t + 8]] + U[e[t + 9]] + "-" + U[e[t + 10]] + U[e[t + 11]] + U[e[t + 12]] + U[e[t + 13]] + U[e[t + 14]] + U[e[t + 15]]).toLowerCase();
|
|
2901
2901
|
}
|
|
2902
|
-
let
|
|
2902
|
+
let pt;
|
|
2903
2903
|
const vn = new Uint8Array(16);
|
|
2904
2904
|
function Tn() {
|
|
2905
|
-
if (!
|
|
2905
|
+
if (!pt) {
|
|
2906
2906
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2907
2907
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2908
|
-
|
|
2908
|
+
pt = crypto.getRandomValues.bind(crypto);
|
|
2909
2909
|
}
|
|
2910
|
-
return
|
|
2910
|
+
return pt(vn);
|
|
2911
2911
|
}
|
|
2912
2912
|
const In = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pr = { randomUUID: In };
|
|
2913
2913
|
function yr(e, t, r) {
|
|
@@ -2937,8 +2937,8 @@ async function On(e) {
|
|
|
2937
2937
|
code_challenge: s
|
|
2938
2938
|
};
|
|
2939
2939
|
}
|
|
2940
|
-
const Xr =
|
|
2941
|
-
var Cn = Object.defineProperty, kn = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
2940
|
+
const Xr = Lt(null);
|
|
2941
|
+
var Cn = Object.defineProperty, kn = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t, r) => kn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
2942
2942
|
/*!
|
|
2943
2943
|
@versini/auth-provider v8.0.5
|
|
2944
2944
|
© 2025 gizmette.com
|
|
@@ -2959,13 +2959,13 @@ function te(e) {
|
|
|
2959
2959
|
r += String.fromCharCode(s);
|
|
2960
2960
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2962
|
+
function st(e) {
|
|
2963
2963
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - t.length % 4) % 4, s = t.padEnd(t.length + r, "="), a = atob(s), n = new ArrayBuffer(a.length), i = new Uint8Array(n);
|
|
2964
2964
|
for (let o = 0; o < a.length; o++)
|
|
2965
2965
|
i[o] = a.charCodeAt(o);
|
|
2966
2966
|
return n;
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function Bt() {
|
|
2969
2969
|
return Nn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
2970
2970
|
}
|
|
2971
2971
|
const Nn = {
|
|
@@ -2975,7 +2975,7 @@ function Zr(e) {
|
|
|
2975
2975
|
const { id: t } = e;
|
|
2976
2976
|
return {
|
|
2977
2977
|
...e,
|
|
2978
|
-
id:
|
|
2978
|
+
id: st(t),
|
|
2979
2979
|
/**
|
|
2980
2980
|
* `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
|
|
2981
2981
|
* transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
|
|
@@ -3118,14 +3118,14 @@ function rs(e) {
|
|
|
3118
3118
|
async function xn(e) {
|
|
3119
3119
|
!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 });
|
|
3120
3120
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
|
3121
|
-
if (!
|
|
3121
|
+
if (!Bt())
|
|
3122
3122
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3123
3123
|
const s = {
|
|
3124
3124
|
...t,
|
|
3125
|
-
challenge:
|
|
3125
|
+
challenge: st(t.challenge),
|
|
3126
3126
|
user: {
|
|
3127
3127
|
...t.user,
|
|
3128
|
-
id:
|
|
3128
|
+
id: st(t.user.id)
|
|
3129
3129
|
},
|
|
3130
3130
|
excludeCredentials: t.excludeCredentials?.map(Zr)
|
|
3131
3131
|
}, a = {};
|
|
@@ -3146,7 +3146,7 @@ async function xn(e) {
|
|
|
3146
3146
|
try {
|
|
3147
3147
|
u = c.getPublicKeyAlgorithm();
|
|
3148
3148
|
} catch (p) {
|
|
3149
|
-
|
|
3149
|
+
gt("getPublicKeyAlgorithm()", p);
|
|
3150
3150
|
}
|
|
3151
3151
|
let l;
|
|
3152
3152
|
if (typeof c.getPublicKey == "function")
|
|
@@ -3154,14 +3154,14 @@ async function xn(e) {
|
|
|
3154
3154
|
const p = c.getPublicKey();
|
|
3155
3155
|
p !== null && (l = te(p));
|
|
3156
3156
|
} catch (p) {
|
|
3157
|
-
|
|
3157
|
+
gt("getPublicKey()", p);
|
|
3158
3158
|
}
|
|
3159
3159
|
let m;
|
|
3160
3160
|
if (typeof c.getAuthenticatorData == "function")
|
|
3161
3161
|
try {
|
|
3162
3162
|
m = te(c.getAuthenticatorData());
|
|
3163
3163
|
} catch (p) {
|
|
3164
|
-
|
|
3164
|
+
gt("getAuthenticatorData()", p);
|
|
3165
3165
|
}
|
|
3166
3166
|
return {
|
|
3167
3167
|
id: i,
|
|
@@ -3179,17 +3179,17 @@ async function xn(e) {
|
|
|
3179
3179
|
authenticatorAttachment: rs(n.authenticatorAttachment)
|
|
3180
3180
|
};
|
|
3181
3181
|
}
|
|
3182
|
-
function
|
|
3182
|
+
function gt(e, t) {
|
|
3183
3183
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
3184
3184
|
`, t);
|
|
3185
3185
|
}
|
|
3186
3186
|
function Dn() {
|
|
3187
|
-
if (!
|
|
3188
|
-
return
|
|
3187
|
+
if (!Bt())
|
|
3188
|
+
return Et.stubThis(new Promise((t) => t(!1)));
|
|
3189
3189
|
const e = globalThis.PublicKeyCredential;
|
|
3190
|
-
return e?.isConditionalMediationAvailable === void 0 ?
|
|
3190
|
+
return e?.isConditionalMediationAvailable === void 0 ? Et.stubThis(new Promise((t) => t(!1))) : Et.stubThis(e.isConditionalMediationAvailable());
|
|
3191
3191
|
}
|
|
3192
|
-
const
|
|
3192
|
+
const Et = {
|
|
3193
3193
|
stubThis: (e) => e
|
|
3194
3194
|
};
|
|
3195
3195
|
function Ln({ error: e, options: t }) {
|
|
@@ -3236,13 +3236,13 @@ function Ln({ error: e, options: t }) {
|
|
|
3236
3236
|
async function Un(e) {
|
|
3237
3237
|
!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 });
|
|
3238
3238
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
|
|
3239
|
-
if (!
|
|
3239
|
+
if (!Bt())
|
|
3240
3240
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3241
3241
|
let a;
|
|
3242
3242
|
t.allowCredentials?.length !== 0 && (a = t.allowCredentials?.map(Zr));
|
|
3243
3243
|
const n = {
|
|
3244
3244
|
...t,
|
|
3245
|
-
challenge:
|
|
3245
|
+
challenge: st(t.challenge),
|
|
3246
3246
|
allowCredentials: a
|
|
3247
3247
|
}, i = {};
|
|
3248
3248
|
if (r) {
|
|
@@ -3288,11 +3288,11 @@ const Er = (e, t) => {
|
|
|
3288
3288
|
}, Fn = (e) => {
|
|
3289
3289
|
window.localStorage.removeItem(e), ss(e, null);
|
|
3290
3290
|
}, br = (e) => window.localStorage.getItem(e), Hn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
3291
|
-
function
|
|
3291
|
+
function Ge({
|
|
3292
3292
|
key: e,
|
|
3293
3293
|
initialValue: t
|
|
3294
3294
|
}) {
|
|
3295
|
-
const r =
|
|
3295
|
+
const r = Bs(Hn, () => br(e)), s = X(
|
|
3296
3296
|
(i) => {
|
|
3297
3297
|
try {
|
|
3298
3298
|
const o = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
@@ -3321,27 +3321,27 @@ for (let e = 0; e < 256; ++e)
|
|
|
3321
3321
|
function Kn(e, t = 0) {
|
|
3322
3322
|
return (F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]]).toLowerCase();
|
|
3323
3323
|
}
|
|
3324
|
-
let
|
|
3324
|
+
let bt;
|
|
3325
3325
|
const Gn = new Uint8Array(16);
|
|
3326
|
-
function
|
|
3327
|
-
if (!
|
|
3326
|
+
function Bn() {
|
|
3327
|
+
if (!bt) {
|
|
3328
3328
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3329
3329
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3330
|
-
|
|
3330
|
+
bt = crypto.getRandomValues.bind(crypto);
|
|
3331
3331
|
}
|
|
3332
|
-
return
|
|
3332
|
+
return bt(Gn);
|
|
3333
3333
|
}
|
|
3334
|
-
const
|
|
3335
|
-
function
|
|
3334
|
+
const qn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Sr = { randomUUID: qn };
|
|
3335
|
+
function St(e, t, r) {
|
|
3336
3336
|
if (Sr.randomUUID && !e)
|
|
3337
3337
|
return Sr.randomUUID();
|
|
3338
3338
|
e = e || {};
|
|
3339
|
-
const s = e.random ?? e.rng?.() ??
|
|
3339
|
+
const s = e.random ?? e.rng?.() ?? Bn();
|
|
3340
3340
|
if (s.length < 16)
|
|
3341
3341
|
throw new Error("Random bytes length must be >= 16");
|
|
3342
3342
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Kn(s);
|
|
3343
3343
|
}
|
|
3344
|
-
const Ae = "Your session has expired. For your security, please log in again to continue.", Wn = "Your session has been successfully terminated.",
|
|
3344
|
+
const Ae = "Your session has expired. For your security, please log in again to continue.", Wn = "Your session has been successfully terminated.", wt = "Login failed. Please try again.", Vn = "Error getting access token, please re-authenticate.", jn = "You forgot to wrap your component in <AuthProvider>.", Be = "@@auth@@", $e = "LOADING", je = "LOGIN", as = "LOGOUT", Fe = "success", re = "failure", ns = "include", is = "POST", os = "application/json", qe = {
|
|
3345
3345
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
3346
3346
|
$clientId: String!,
|
|
3347
3347
|
$username: String!,
|
|
@@ -3424,19 +3424,19 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3424
3424
|
}`
|
|
3425
3425
|
}, _e = {
|
|
3426
3426
|
GET_REGISTRATION_OPTIONS: {
|
|
3427
|
-
schema:
|
|
3427
|
+
schema: qe.GET_REGISTRATION_OPTIONS,
|
|
3428
3428
|
method: "getPasskeyRegistrationOptions"
|
|
3429
3429
|
},
|
|
3430
3430
|
VERIFY_REGISTRATION: {
|
|
3431
|
-
schema:
|
|
3431
|
+
schema: qe.VERIFY_REGISTRATION,
|
|
3432
3432
|
method: "verifyPasskeyRegistration"
|
|
3433
3433
|
},
|
|
3434
3434
|
GET_AUTHENTICATION_OPTIONS: {
|
|
3435
|
-
schema:
|
|
3435
|
+
schema: qe.GET_AUTHENTICATION_OPTIONS,
|
|
3436
3436
|
method: "getPasskeyAuthenticationOptions"
|
|
3437
3437
|
},
|
|
3438
3438
|
VERIFY_AUTHENTICATION: {
|
|
3439
|
-
schema:
|
|
3439
|
+
schema: qe.VERIFY_AUTHENTICATION,
|
|
3440
3440
|
method: "verifyPasskeyAuthentication"
|
|
3441
3441
|
}
|
|
3442
3442
|
}, Re = async ({
|
|
@@ -3470,7 +3470,7 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3470
3470
|
} catch (n) {
|
|
3471
3471
|
return console.error(n), { status: re, data: [] };
|
|
3472
3472
|
}
|
|
3473
|
-
},
|
|
3473
|
+
}, lt = async ({
|
|
3474
3474
|
type: e,
|
|
3475
3475
|
clientId: t,
|
|
3476
3476
|
params: r = {},
|
|
@@ -3519,9 +3519,9 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3519
3519
|
}) => {
|
|
3520
3520
|
try {
|
|
3521
3521
|
return {
|
|
3522
|
-
status: (await
|
|
3522
|
+
status: (await lt({
|
|
3523
3523
|
endpoint: a,
|
|
3524
|
-
type:
|
|
3524
|
+
type: ct.LOGOUT,
|
|
3525
3525
|
clientId: t,
|
|
3526
3526
|
params: {
|
|
3527
3527
|
userId: e,
|
|
@@ -3549,9 +3549,9 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3549
3549
|
endpoint: d
|
|
3550
3550
|
}) => {
|
|
3551
3551
|
try {
|
|
3552
|
-
const u = await
|
|
3552
|
+
const u = await lt({
|
|
3553
3553
|
endpoint: d,
|
|
3554
|
-
type:
|
|
3554
|
+
type: ct.LOGIN,
|
|
3555
3555
|
clientId: r,
|
|
3556
3556
|
params: {
|
|
3557
3557
|
type: a,
|
|
@@ -3587,9 +3587,9 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3587
3587
|
endpoint: s
|
|
3588
3588
|
}) => {
|
|
3589
3589
|
try {
|
|
3590
|
-
const a = await
|
|
3590
|
+
const a = await lt({
|
|
3591
3591
|
endpoint: s,
|
|
3592
|
-
type:
|
|
3592
|
+
type: ct.CODE,
|
|
3593
3593
|
clientId: t,
|
|
3594
3594
|
params: {
|
|
3595
3595
|
type: Me.CODE,
|
|
@@ -3620,9 +3620,9 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3620
3620
|
endpoint: i
|
|
3621
3621
|
}) => {
|
|
3622
3622
|
try {
|
|
3623
|
-
const o = await
|
|
3623
|
+
const o = await lt({
|
|
3624
3624
|
endpoint: i,
|
|
3625
|
-
type:
|
|
3625
|
+
type: ct.REFRESH,
|
|
3626
3626
|
clientId: e,
|
|
3627
3627
|
params: {
|
|
3628
3628
|
type: Me.REFRESH_TOKEN,
|
|
@@ -3649,7 +3649,7 @@ const Ae = "Your session has expired. For your security, please log in again to
|
|
|
3649
3649
|
};
|
|
3650
3650
|
class ti {
|
|
3651
3651
|
constructor(t = null, r = null) {
|
|
3652
|
-
|
|
3652
|
+
yt(this, "refreshTokenPromise", null), yt(this, "accessToken"), yt(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
3653
3653
|
}
|
|
3654
3654
|
async refreshtoken({
|
|
3655
3655
|
clientId: t,
|
|
@@ -3704,7 +3704,7 @@ class ti {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
const Oe = () => {
|
|
3706
3706
|
throw new Error(jn);
|
|
3707
|
-
}, ls =
|
|
3707
|
+
}, ls = Lt({
|
|
3708
3708
|
isAuthenticated: !1,
|
|
3709
3709
|
isLoading: !1,
|
|
3710
3710
|
login: Oe,
|
|
@@ -3716,7 +3716,7 @@ const Oe = () => {
|
|
|
3716
3716
|
logoutReason: "",
|
|
3717
3717
|
authenticationType: ""
|
|
3718
3718
|
}), ri = () => ({
|
|
3719
|
-
...
|
|
3719
|
+
...ot(ls)
|
|
3720
3720
|
}), si = (e) => X(
|
|
3721
3721
|
(...t) => {
|
|
3722
3722
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
@@ -3729,7 +3729,7 @@ const Oe = () => {
|
|
|
3729
3729
|
}), ni = (e, t) => t?.type === $e ? {
|
|
3730
3730
|
...e,
|
|
3731
3731
|
isLoading: t.payload.isLoading
|
|
3732
|
-
} : t?.type ===
|
|
3732
|
+
} : t?.type === je ? {
|
|
3733
3733
|
...e,
|
|
3734
3734
|
isLoading: !1,
|
|
3735
3735
|
isAuthenticated: !0,
|
|
@@ -3757,15 +3757,15 @@ const Oe = () => {
|
|
|
3757
3757
|
const [i, o] = Pr(ni, {
|
|
3758
3758
|
...cs,
|
|
3759
3759
|
debug: a
|
|
3760
|
-
}), c = si(a), f = Q(!1), [d, u, , l] =
|
|
3760
|
+
}), c = si(a), f = Q(!1), [d, u, , l] = Ge({
|
|
3761
3761
|
key: `${Be}::${r}::@@user@@`
|
|
3762
|
-
}), [m, p, , g] =
|
|
3762
|
+
}), [m, p, , g] = Ge({
|
|
3763
3763
|
key: `${Be}::${r}::@@access@@`
|
|
3764
|
-
}), [E, b, , C] =
|
|
3764
|
+
}), [E, b, , C] = Ge(
|
|
3765
3765
|
{
|
|
3766
3766
|
key: `${Be}::${r}::@@refresh@@`
|
|
3767
3767
|
}
|
|
3768
|
-
), [I,
|
|
3768
|
+
), [I, q, , R] = Ge({
|
|
3769
3769
|
key: `${Be}::${r}::@@nonce@@`
|
|
3770
3770
|
}), z = new ti(m, E), O = X(() => {
|
|
3771
3771
|
c("removeLocalStorage: removing local storage"), l(), g(), C(), R();
|
|
@@ -3818,7 +3818,7 @@ const Oe = () => {
|
|
|
3818
3818
|
try {
|
|
3819
3819
|
const S = await Ue(d);
|
|
3820
3820
|
S && S.payload[G.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
|
|
3821
|
-
type:
|
|
3821
|
+
type: je,
|
|
3822
3822
|
payload: {
|
|
3823
3823
|
authenticationType: S.payload[G.AUTH_TYPE_KEY],
|
|
3824
3824
|
user: {
|
|
@@ -3839,8 +3839,8 @@ const Oe = () => {
|
|
|
3839
3839
|
}, [i.isLoading, d, L, c]);
|
|
3840
3840
|
const _ = async (S, T) => {
|
|
3841
3841
|
o({ type: $e, payload: { isLoading: !0 } }), O();
|
|
3842
|
-
const w =
|
|
3843
|
-
|
|
3842
|
+
const w = St();
|
|
3843
|
+
q(w), c("login: Logging in with password");
|
|
3844
3844
|
const { code_verifier: fe, code_challenge: me } = await On(), Zt = await Zn({
|
|
3845
3845
|
endpoint: n,
|
|
3846
3846
|
nonce: w,
|
|
@@ -3862,7 +3862,7 @@ const Oe = () => {
|
|
|
3862
3862
|
ua: navigator.userAgent
|
|
3863
3863
|
});
|
|
3864
3864
|
return Te.status ? (u(Te.idToken), p(Te.accessToken), b(Te.refreshToken), o({
|
|
3865
|
-
type:
|
|
3865
|
+
type: je,
|
|
3866
3866
|
payload: {
|
|
3867
3867
|
authenticationType: Me.CODE,
|
|
3868
3868
|
user: {
|
|
@@ -3871,7 +3871,7 @@ const Oe = () => {
|
|
|
3871
3871
|
email: Te.email
|
|
3872
3872
|
}
|
|
3873
3873
|
}
|
|
3874
|
-
}), !0) : (v(
|
|
3874
|
+
}), !0) : (v(wt), !1);
|
|
3875
3875
|
}
|
|
3876
3876
|
return !1;
|
|
3877
3877
|
}, A = async (S) => {
|
|
@@ -3953,9 +3953,9 @@ const Oe = () => {
|
|
|
3953
3953
|
return !1;
|
|
3954
3954
|
}, ve = async () => {
|
|
3955
3955
|
o({ type: $e, payload: { isLoading: !0 } }), O();
|
|
3956
|
-
const S =
|
|
3957
|
-
|
|
3958
|
-
const T =
|
|
3956
|
+
const S = St();
|
|
3957
|
+
q(S), c("loginWithPasskey");
|
|
3958
|
+
const T = St();
|
|
3959
3959
|
let w = await Re({
|
|
3960
3960
|
endpoint: n,
|
|
3961
3961
|
accessToken: m,
|
|
@@ -3986,7 +3986,7 @@ const Oe = () => {
|
|
|
3986
3986
|
ua: navigator.userAgent
|
|
3987
3987
|
}
|
|
3988
3988
|
}), w.data.status === Fe ? (u(w.data.idToken), p(w.data.accessToken), b(w.data.refreshToken), o({
|
|
3989
|
-
type:
|
|
3989
|
+
type: je,
|
|
3990
3990
|
payload: {
|
|
3991
3991
|
authenticationType: Me.PASSKEY,
|
|
3992
3992
|
user: {
|
|
@@ -3995,7 +3995,7 @@ const Oe = () => {
|
|
|
3995
3995
|
email: w.data.email
|
|
3996
3996
|
}
|
|
3997
3997
|
}
|
|
3998
|
-
}), !0) : (v(
|
|
3998
|
+
}), !0) : (v(wt), !1);
|
|
3999
3999
|
} catch {
|
|
4000
4000
|
return await Re({
|
|
4001
4001
|
endpoint: n,
|
|
@@ -4010,7 +4010,7 @@ const Oe = () => {
|
|
|
4010
4010
|
domain: s,
|
|
4011
4011
|
sessionExpiration: t
|
|
4012
4012
|
}
|
|
4013
|
-
}), v(
|
|
4013
|
+
}), v(wt), !1;
|
|
4014
4014
|
}
|
|
4015
4015
|
return !1;
|
|
4016
4016
|
};
|
|
@@ -4044,19 +4044,19 @@ try {
|
|
|
4044
4044
|
} catch {
|
|
4045
4045
|
}
|
|
4046
4046
|
const us = () => {
|
|
4047
|
-
const e =
|
|
4047
|
+
const e = ot(Xr);
|
|
4048
4048
|
if (!e)
|
|
4049
4049
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
|
4050
4050
|
return e;
|
|
4051
|
-
},
|
|
4052
|
-
let
|
|
4051
|
+
}, ec = "I'm having trouble right now. Please try again later.", tc = "action-search", rc = "action-sort", sc = "action-toggle-prompt", ac = "action-reset-prompt", ds = "sassy-saint-", nc = "search", ic = "sort", oc = "sort-timestamp", cc = "sort-token-usage", lc = "sort-memory-direction", uc = "sort-memory-column", dc = "favorites-only", hc = "private-disclosure", fc = "reasoning-disclosure", hs = "service-worker", mc = "chat-id", pc = "sassysaint-oled-mode", yc = "sassysaint-full-screen", vr = "data-oled-mode", Tr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", gc = 20, Ec = 30, bc = "av-prompt", Sc = "av-prompt-editable", wc = "size-5 sm:size-4", vc = 30, Tc = 15, Ic = 130, Ac = 160, _c = 16, Rc = 24, Oc = 76, Cc = 76;
|
|
4052
|
+
let vt = null, ie = !1;
|
|
4053
4053
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
|
4054
4054
|
ie && (ie = !1, window.location.reload());
|
|
4055
4055
|
});
|
|
4056
|
-
function
|
|
4056
|
+
function qt() {
|
|
4057
4057
|
return "serviceWorker" in navigator;
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4059
|
+
function Mt() {
|
|
4060
4060
|
const e = localStorage.getItem(
|
|
4061
4061
|
ds + hs
|
|
4062
4062
|
);
|
|
@@ -4069,15 +4069,15 @@ function oi(e) {
|
|
|
4069
4069
|
);
|
|
4070
4070
|
}
|
|
4071
4071
|
async function fs() {
|
|
4072
|
-
if (!
|
|
4072
|
+
if (!Mt())
|
|
4073
4073
|
return !1;
|
|
4074
|
-
if (!
|
|
4074
|
+
if (!qt())
|
|
4075
4075
|
return console.warn("[SW] Service workers not supported"), !1;
|
|
4076
4076
|
try {
|
|
4077
|
-
return
|
|
4077
|
+
return vt = await navigator.serviceWorker.register("/sw.js", {
|
|
4078
4078
|
scope: "/"
|
|
4079
|
-
}),
|
|
4080
|
-
const e =
|
|
4079
|
+
}), vt.addEventListener("updatefound", () => {
|
|
4080
|
+
const e = vt?.installing;
|
|
4081
4081
|
e && e.addEventListener("statechange", () => {
|
|
4082
4082
|
e.state === "installed" && navigator.serviceWorker.controller && confirm(
|
|
4083
4083
|
"A new version of the app is available. Reload to update cache?"
|
|
@@ -4089,7 +4089,7 @@ async function fs() {
|
|
|
4089
4089
|
}
|
|
4090
4090
|
}
|
|
4091
4091
|
async function ci() {
|
|
4092
|
-
if (!
|
|
4092
|
+
if (!qt())
|
|
4093
4093
|
return !1;
|
|
4094
4094
|
try {
|
|
4095
4095
|
const e = await navigator.serviceWorker.getRegistration();
|
|
@@ -4098,7 +4098,7 @@ async function ci() {
|
|
|
4098
4098
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
|
4099
4099
|
}
|
|
4100
4100
|
}
|
|
4101
|
-
async function
|
|
4101
|
+
async function kc(e) {
|
|
4102
4102
|
if (oi(e), e) {
|
|
4103
4103
|
ie = !0;
|
|
4104
4104
|
try {
|
|
@@ -4108,9 +4108,9 @@ async function Uc(e) {
|
|
|
4108
4108
|
await fs(), navigator.serviceWorker.controller && ie && (ie = !1, window.location.reload());
|
|
4109
4109
|
try {
|
|
4110
4110
|
navigator.serviceWorker.ready.then(() => {
|
|
4111
|
-
ie &&
|
|
4111
|
+
ie && Mt() && (ie = !1, window.location.reload());
|
|
4112
4112
|
}), setTimeout(() => {
|
|
4113
|
-
ie &&
|
|
4113
|
+
ie && Mt() && (ie = !1, window.location.reload());
|
|
4114
4114
|
}, 3e3);
|
|
4115
4115
|
} catch {
|
|
4116
4116
|
}
|
|
@@ -4120,7 +4120,7 @@ async function Uc(e) {
|
|
|
4120
4120
|
} catch {
|
|
4121
4121
|
}
|
|
4122
4122
|
try {
|
|
4123
|
-
|
|
4123
|
+
qt() && await li();
|
|
4124
4124
|
} catch (t) {
|
|
4125
4125
|
console.warn("[SW] Failed to invalidate cache:", t);
|
|
4126
4126
|
}
|
|
@@ -4150,13 +4150,13 @@ async function li() {
|
|
|
4150
4150
|
console.warn("[SW] Failed to invalidate cache:", e);
|
|
4151
4151
|
}
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function Tt() {
|
|
4154
4154
|
return "unknown";
|
|
4155
4155
|
}
|
|
4156
|
-
async function
|
|
4156
|
+
async function Nc(e = {}) {
|
|
4157
4157
|
const { urlLimitPerCache: t } = e;
|
|
4158
4158
|
if (!("caches" in window))
|
|
4159
|
-
return { version:
|
|
4159
|
+
return { version: Tt(), caches: [], totalItems: 0 };
|
|
4160
4160
|
try {
|
|
4161
4161
|
const r = await caches.keys(), s = [];
|
|
4162
4162
|
let a = 0;
|
|
@@ -4172,106 +4172,43 @@ async function Fc(e = {}) {
|
|
|
4172
4172
|
console.warn("[SW] Failed reading cache", n, i);
|
|
4173
4173
|
}
|
|
4174
4174
|
return {
|
|
4175
|
-
version:
|
|
4175
|
+
version: Tt(),
|
|
4176
4176
|
caches: s,
|
|
4177
4177
|
totalItems: a
|
|
4178
4178
|
};
|
|
4179
4179
|
} catch (r) {
|
|
4180
|
-
return console.warn("[SW] getCacheInfo failed:", r), { version:
|
|
4181
|
-
}
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
dt,
|
|
4186
|
-
ht
|
|
4187
|
-
], ps = "gpt-5", ys = "gpt-5-mini", gs = "gpt-5-nano", Es = "gpt-4.1-nano", bs = "claude-haiku-4-5", Ss = "claude-sonnet-4-5", ws = "gemini-2.5-flash", vs = "gemini-2.5-pro", Ts = "sonar", Is = "sonar-pro", Bc = {
|
|
4188
|
-
[ps]: "GPT-5",
|
|
4189
|
-
[ys]: "GPT-5 Mini",
|
|
4190
|
-
[gs]: "GPT-5 Nano",
|
|
4191
|
-
[Es]: "GPT-4.1 Nano",
|
|
4192
|
-
[bs]: "Claude Haiku 4.5",
|
|
4193
|
-
[Ss]: "Claude Sonnet 4.5",
|
|
4194
|
-
[ws]: "Gemini 2.5 Flash",
|
|
4195
|
-
[vs]: "Gemini 2.5 Pro",
|
|
4196
|
-
[Ts]: "Sonar",
|
|
4197
|
-
[Is]: "Sonar Pro"
|
|
4198
|
-
}, As = {
|
|
4199
|
-
[He]: [
|
|
4200
|
-
Es,
|
|
4201
|
-
ps,
|
|
4202
|
-
ys,
|
|
4203
|
-
gs
|
|
4204
|
-
],
|
|
4205
|
-
[dt]: [bs, Ss],
|
|
4206
|
-
[ht]: [ws, vs],
|
|
4207
|
-
[ms]: [Ts, Is]
|
|
4208
|
-
}, di = "claude-sonnet-4", hi = "claude-haiku-4", fi = "claude-3", mi = "gpt-", pi = "o3", yi = "o4", gi = "gemini", Ei = "sonar", bi = {
|
|
4209
|
-
[dt]: [
|
|
4210
|
-
di,
|
|
4211
|
-
hi,
|
|
4212
|
-
fi
|
|
4213
|
-
],
|
|
4214
|
-
[He]: [
|
|
4215
|
-
mi,
|
|
4216
|
-
pi,
|
|
4217
|
-
yi
|
|
4218
|
-
],
|
|
4219
|
-
[ht]: [gi],
|
|
4220
|
-
[ms]: [Ei]
|
|
4221
|
-
}, Wc = "x-diggidy-chat-id", Vc = "timestamp", jc = "tokenUsage", k = "Diggidy", Qc = {
|
|
4222
|
-
TOOL: {
|
|
4223
|
-
MEMORIES: "getUserMemories"
|
|
4224
|
-
},
|
|
4225
|
-
ADDON: {
|
|
4226
|
-
ATTACHMENTS: "addon:attachments",
|
|
4227
|
-
REASONING: "addon:reasoning"
|
|
4228
|
-
}
|
|
4229
|
-
}, Jc = (e) => {
|
|
4230
|
-
for (const [t, r] of Object.entries(
|
|
4231
|
-
bi
|
|
4232
|
-
))
|
|
4233
|
-
if (r.some((s) => e.startsWith(s)))
|
|
4234
|
-
return t;
|
|
4180
|
+
return console.warn("[SW] getCacheInfo failed:", r), { version: Tt(), caches: [], totalItems: 0 };
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
let Pc = "assistant", Wt = "OpenAI", ut = "Anthropic", Vt = "Google", ms = "Perplexity", ui = [Wt, ut, Vt], ps = "gpt-5", ys = "gpt-5-mini", gs = "gpt-5-nano", Es = "gpt-4.1-nano", bs = "claude-haiku-4-5", Ss = "claude-sonnet-4-5", ws = "gemini-2.5-flash", vs = "gemini-2.5-pro", Ts = "sonar", Is = "sonar-pro", $c = { [ps]: "GPT-5", [ys]: "GPT-5 Mini", [gs]: "GPT-5 Nano", [Es]: "GPT-4.1 Nano", [bs]: "Claude Haiku 4.5", [Ss]: "Claude Sonnet 4.5", [ws]: "Gemini 2.5 Flash", [vs]: "Gemini 2.5 Pro", [Ts]: "Sonar", [Is]: "Sonar Pro" }, As = { [Wt]: [Es, ps, ys, gs], [ut]: [bs, Ss], [Vt]: [ws, vs], [ms]: [Ts, Is] }, di = { [ut]: ["claude-sonnet-4", "claude-haiku-4", "claude-3"], [Wt]: ["gpt-", "o3", "o4"], [Vt]: ["gemini"], [ms]: ["sonar"] }, Mc = "x-diggidy-chat-id", xc = "timestamp", Dc = "tokenUsage", k = "Diggidy", Lc = { TOOL: { MEMORIES: "getUserMemories" }, ADDON: { ATTACHMENTS: "addon:attachments", REASONING: "addon:reasoning" } }, Uc = (e) => {
|
|
4184
|
+
for (let [t, r] of Object.entries(di)) if (r.some((s) => e.startsWith(s))) return t;
|
|
4235
4185
|
return null;
|
|
4236
|
-
},
|
|
4237
|
-
if (!e || e.length === 0)
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
for (const r of e)
|
|
4241
|
-
for (const [s, a] of Object.entries(
|
|
4242
|
-
As
|
|
4243
|
-
))
|
|
4244
|
-
a.includes(r) && (s === He || s === dt || s === ht) && t.add(s);
|
|
4186
|
+
}, Fc = (e) => {
|
|
4187
|
+
if (!e || e.length === 0) return [];
|
|
4188
|
+
let t = /* @__PURE__ */ new Set();
|
|
4189
|
+
for (let r of e) for (let [s, a] of Object.entries(As)) a.includes(r) && (s === "OpenAI" || s === ut || s === "Google") && t.add(s);
|
|
4245
4190
|
return ui.filter((r) => t.has(r));
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4248
|
-
if (!e || e.length === 0)
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
))
|
|
4254
|
-
if (a.includes(r)) {
|
|
4255
|
-
t.has(s) || t.set(s, []), t.get(s)?.push(r);
|
|
4256
|
-
break;
|
|
4257
|
-
}
|
|
4191
|
+
}, hi = (e) => {
|
|
4192
|
+
let t = /* @__PURE__ */ new Map();
|
|
4193
|
+
if (!e || e.length === 0) return t;
|
|
4194
|
+
for (let r of e) for (let [s, a] of Object.entries(As)) if (a.includes(r)) {
|
|
4195
|
+
t.has(s) || t.set(s, []), t.get(s)?.push(r);
|
|
4196
|
+
break;
|
|
4197
|
+
}
|
|
4258
4198
|
return t;
|
|
4259
|
-
},
|
|
4260
|
-
|
|
4261
|
-
for (const r of t.values())
|
|
4262
|
-
if (r.length > 1)
|
|
4263
|
-
return !0;
|
|
4199
|
+
}, Hc = (e) => {
|
|
4200
|
+
for (let t of hi(e).values()) if (t.length > 1) return !0;
|
|
4264
4201
|
return !1;
|
|
4265
|
-
},
|
|
4266
|
-
function
|
|
4202
|
+
}, Kc = (e, t) => !!e && !!t && t.length !== 0 && t.includes(e);
|
|
4203
|
+
function fi(e) {
|
|
4267
4204
|
return e ? new Set(e) : null;
|
|
4268
4205
|
}
|
|
4269
|
-
function
|
|
4270
|
-
if (!t || Array.isArray(t) && t.length === 0)
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
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));
|
|
4206
|
+
function mi(e, t, r) {
|
|
4207
|
+
if (!t || Array.isArray(t) && t.length === 0) return !0;
|
|
4208
|
+
let s = e instanceof Set ? e : fi(e);
|
|
4209
|
+
return !!s && s.size !== 0 && (typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a)));
|
|
4274
4210
|
}
|
|
4211
|
+
var Gc = "OpenAI", Bc = "Google", qc = "OpenAI", Wc = "data", Vc = "user";
|
|
4275
4212
|
const $ = {
|
|
4276
4213
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
4277
4214
|
location(latitude: $latitude, longitude: $longitude) {
|
|
@@ -4583,12 +4520,12 @@ const $ = {
|
|
|
4583
4520
|
schema: $.RESTORE_MEMORY,
|
|
4584
4521
|
method: "restoreMemory"
|
|
4585
4522
|
}
|
|
4586
|
-
},
|
|
4523
|
+
}, pi = process.env.PUBLIC_SASSY_API_SERVER_URL, at = async ({
|
|
4587
4524
|
query: e,
|
|
4588
4525
|
data: t,
|
|
4589
4526
|
headers: r = {},
|
|
4590
4527
|
...s
|
|
4591
|
-
}) => await fetch(`${
|
|
4528
|
+
}) => await fetch(`${pi}/graphql`, {
|
|
4592
4529
|
method: "POST",
|
|
4593
4530
|
credentials: "include",
|
|
4594
4531
|
headers: {
|
|
@@ -4606,13 +4543,13 @@ const $ = {
|
|
|
4606
4543
|
try {
|
|
4607
4544
|
let r;
|
|
4608
4545
|
if (e.noAuth === !0)
|
|
4609
|
-
r = await
|
|
4546
|
+
r = await at({
|
|
4610
4547
|
query: e.type.schema,
|
|
4611
4548
|
data: t
|
|
4612
4549
|
});
|
|
4613
4550
|
else {
|
|
4614
4551
|
const n = `Bearer ${e.accessToken}`;
|
|
4615
|
-
r = await
|
|
4552
|
+
r = await at({
|
|
4616
4553
|
headers: {
|
|
4617
4554
|
authorization: n
|
|
4618
4555
|
},
|
|
@@ -4633,7 +4570,7 @@ const $ = {
|
|
|
4633
4570
|
} catch (r) {
|
|
4634
4571
|
throw console.error(r), r;
|
|
4635
4572
|
}
|
|
4636
|
-
},
|
|
4573
|
+
}, jc = async ({
|
|
4637
4574
|
provider: e,
|
|
4638
4575
|
model: t,
|
|
4639
4576
|
accessToken: r,
|
|
@@ -4648,7 +4585,7 @@ const $ = {
|
|
|
4648
4585
|
type: D.SET_USER_PREFERENCES,
|
|
4649
4586
|
params: a
|
|
4650
4587
|
});
|
|
4651
|
-
},
|
|
4588
|
+
}, Qc = async ({
|
|
4652
4589
|
plan: e,
|
|
4653
4590
|
accessToken: t,
|
|
4654
4591
|
username: r
|
|
@@ -4669,13 +4606,13 @@ const $ = {
|
|
|
4669
4606
|
USAGE: "usage",
|
|
4670
4607
|
USER_MEMORIES: "userMemories",
|
|
4671
4608
|
EXPIRED_MEMORIES: "expiredMemories"
|
|
4672
|
-
},
|
|
4609
|
+
}, Jc = () => ue({
|
|
4673
4610
|
queryKey: [x.CAPABILITIES],
|
|
4674
4611
|
queryFn: async () => await de({
|
|
4675
4612
|
type: D.GET_SERVER_CAPABILITIES,
|
|
4676
4613
|
noAuth: !0
|
|
4677
4614
|
})
|
|
4678
|
-
}),
|
|
4615
|
+
}), Yc = () => ue({
|
|
4679
4616
|
queryKey: [x.CHANGELOGS],
|
|
4680
4617
|
queryFn: async () => await de({
|
|
4681
4618
|
type: D.GET_CHANGELOGS,
|
|
@@ -4684,7 +4621,7 @@ const $ = {
|
|
|
4684
4621
|
client: !0
|
|
4685
4622
|
}
|
|
4686
4623
|
})
|
|
4687
|
-
}),
|
|
4624
|
+
}), yi = ({
|
|
4688
4625
|
user: e,
|
|
4689
4626
|
getAccessToken: t
|
|
4690
4627
|
}) => ue({
|
|
@@ -4696,7 +4633,7 @@ const $ = {
|
|
|
4696
4633
|
type: D.GET_USER_PREFERENCES,
|
|
4697
4634
|
getAccessToken: t
|
|
4698
4635
|
})
|
|
4699
|
-
}),
|
|
4636
|
+
}), zc = ({
|
|
4700
4637
|
user: e,
|
|
4701
4638
|
getAccessToken: t
|
|
4702
4639
|
}) => ue({
|
|
@@ -4708,7 +4645,7 @@ const $ = {
|
|
|
4708
4645
|
type: D.GET_CHATS_STATS,
|
|
4709
4646
|
getAccessToken: t
|
|
4710
4647
|
})
|
|
4711
|
-
}),
|
|
4648
|
+
}), Xc = ({
|
|
4712
4649
|
user: e,
|
|
4713
4650
|
searchString: t,
|
|
4714
4651
|
sortDirection: r,
|
|
@@ -4732,7 +4669,7 @@ const $ = {
|
|
|
4732
4669
|
type: D.GET_CHATS,
|
|
4733
4670
|
getAccessToken: a
|
|
4734
4671
|
})
|
|
4735
|
-
}),
|
|
4672
|
+
}), Zc = ({
|
|
4736
4673
|
chatId: e,
|
|
4737
4674
|
getAccessToken: t,
|
|
4738
4675
|
enabled: r = !0
|
|
@@ -4744,7 +4681,7 @@ const $ = {
|
|
|
4744
4681
|
type: D.GET_CHAT,
|
|
4745
4682
|
getAccessToken: t
|
|
4746
4683
|
})
|
|
4747
|
-
}),
|
|
4684
|
+
}), el = ({
|
|
4748
4685
|
getAccessToken: e
|
|
4749
4686
|
}) => {
|
|
4750
4687
|
const t = se();
|
|
@@ -4767,7 +4704,7 @@ const $ = {
|
|
|
4767
4704
|
t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
|
|
4768
4705
|
}
|
|
4769
4706
|
});
|
|
4770
|
-
},
|
|
4707
|
+
}, tl = ({
|
|
4771
4708
|
getAccessToken: e
|
|
4772
4709
|
}) => {
|
|
4773
4710
|
const t = se();
|
|
@@ -4784,7 +4721,7 @@ const $ = {
|
|
|
4784
4721
|
t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
|
|
4785
4722
|
}
|
|
4786
4723
|
});
|
|
4787
|
-
},
|
|
4724
|
+
}, rl = ({
|
|
4788
4725
|
getAccessToken: e
|
|
4789
4726
|
}) => {
|
|
4790
4727
|
const t = se();
|
|
@@ -4801,7 +4738,7 @@ const $ = {
|
|
|
4801
4738
|
t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
|
|
4802
4739
|
}
|
|
4803
4740
|
});
|
|
4804
|
-
},
|
|
4741
|
+
}, sl = ({
|
|
4805
4742
|
user: e,
|
|
4806
4743
|
month: t,
|
|
4807
4744
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
|
@@ -4819,7 +4756,7 @@ const $ = {
|
|
|
4819
4756
|
type: D.GET_USAGE,
|
|
4820
4757
|
getAccessToken: s
|
|
4821
4758
|
})
|
|
4822
|
-
}),
|
|
4759
|
+
}), al = ({
|
|
4823
4760
|
user: e,
|
|
4824
4761
|
query: t,
|
|
4825
4762
|
getAccessToken: r,
|
|
@@ -4832,7 +4769,7 @@ const $ = {
|
|
|
4832
4769
|
type: D.GET_USER_MEMORIES,
|
|
4833
4770
|
getAccessToken: r
|
|
4834
4771
|
})
|
|
4835
|
-
}),
|
|
4772
|
+
}), nl = ({
|
|
4836
4773
|
getAccessToken: e
|
|
4837
4774
|
}) => {
|
|
4838
4775
|
const t = se();
|
|
@@ -4856,7 +4793,7 @@ const $ = {
|
|
|
4856
4793
|
});
|
|
4857
4794
|
}
|
|
4858
4795
|
});
|
|
4859
|
-
},
|
|
4796
|
+
}, il = ({
|
|
4860
4797
|
getAccessToken: e
|
|
4861
4798
|
}) => {
|
|
4862
4799
|
const t = se();
|
|
@@ -4880,7 +4817,7 @@ const $ = {
|
|
|
4880
4817
|
});
|
|
4881
4818
|
}
|
|
4882
4819
|
});
|
|
4883
|
-
},
|
|
4820
|
+
}, ol = ({
|
|
4884
4821
|
getAccessToken: e
|
|
4885
4822
|
}) => {
|
|
4886
4823
|
const t = se();
|
|
@@ -4899,7 +4836,7 @@ const $ = {
|
|
|
4899
4836
|
});
|
|
4900
4837
|
}
|
|
4901
4838
|
});
|
|
4902
|
-
},
|
|
4839
|
+
}, cl = ({
|
|
4903
4840
|
getAccessToken: e
|
|
4904
4841
|
}) => {
|
|
4905
4842
|
const t = se();
|
|
@@ -4918,7 +4855,7 @@ const $ = {
|
|
|
4918
4855
|
});
|
|
4919
4856
|
}
|
|
4920
4857
|
});
|
|
4921
|
-
},
|
|
4858
|
+
}, ll = ({
|
|
4922
4859
|
user: e,
|
|
4923
4860
|
query: t,
|
|
4924
4861
|
getAccessToken: r,
|
|
@@ -4931,7 +4868,7 @@ const $ = {
|
|
|
4931
4868
|
type: D.GET_EXPIRED_MEMORIES,
|
|
4932
4869
|
getAccessToken: r
|
|
4933
4870
|
})
|
|
4934
|
-
}),
|
|
4871
|
+
}), ul = ({
|
|
4935
4872
|
getAccessToken: e
|
|
4936
4873
|
}) => {
|
|
4937
4874
|
const t = se();
|
|
@@ -4965,13 +4902,13 @@ const $ = {
|
|
|
4965
4902
|
const a = t?.data ? t.data(e) : e;
|
|
4966
4903
|
let n;
|
|
4967
4904
|
if (r === !0)
|
|
4968
|
-
n = await
|
|
4905
|
+
n = await at({
|
|
4969
4906
|
query: t.schema,
|
|
4970
4907
|
data: a
|
|
4971
4908
|
});
|
|
4972
4909
|
else if (s) {
|
|
4973
4910
|
const f = await s();
|
|
4974
|
-
n = await
|
|
4911
|
+
n = await at({
|
|
4975
4912
|
headers: {
|
|
4976
4913
|
authorization: `Bearer ${f}`
|
|
4977
4914
|
},
|
|
@@ -4991,19 +4928,19 @@ const $ = {
|
|
|
4991
4928
|
} catch (a) {
|
|
4992
4929
|
return Promise.reject(a);
|
|
4993
4930
|
}
|
|
4994
|
-
}, _s =
|
|
4931
|
+
}, _s = Lt(
|
|
4995
4932
|
void 0
|
|
4996
4933
|
), Ir = {
|
|
4997
4934
|
capabilities: /* @__PURE__ */ new Set(),
|
|
4998
4935
|
allowedModels: [],
|
|
4999
4936
|
version: null,
|
|
5000
4937
|
status: "idle"
|
|
5001
|
-
},
|
|
4938
|
+
}, gi = ({
|
|
5002
4939
|
user: e,
|
|
5003
4940
|
getAccessToken: t,
|
|
5004
4941
|
children: r
|
|
5005
4942
|
}) => {
|
|
5006
|
-
const [s, a] = ce(Ir), n =
|
|
4943
|
+
const [s, a] = ce(Ir), n = Ye(
|
|
5007
4944
|
() => e ? `entitlements:${e}` : null,
|
|
5008
4945
|
[e]
|
|
5009
4946
|
), i = X(() => {
|
|
@@ -5028,7 +4965,7 @@ const $ = {
|
|
|
5028
4965
|
V(() => {
|
|
5029
4966
|
s.status === "idle" && i();
|
|
5030
4967
|
}, [i, s.status]);
|
|
5031
|
-
const o =
|
|
4968
|
+
const o = yi({ user: e, getAccessToken: t });
|
|
5032
4969
|
V(() => {
|
|
5033
4970
|
o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
|
|
5034
4971
|
}, [o.isLoading, s.status]), V(() => {
|
|
@@ -5085,10 +5022,10 @@ const $ = {
|
|
|
5085
5022
|
sessionStorage.removeItem(n);
|
|
5086
5023
|
} catch {
|
|
5087
5024
|
}
|
|
5088
|
-
}, [n]), d =
|
|
5025
|
+
}, [n]), d = Ye(
|
|
5089
5026
|
() => ({
|
|
5090
5027
|
...s,
|
|
5091
|
-
check: (u, l) => s.status !== "ready" ? !1 :
|
|
5028
|
+
check: (u, l) => s.status !== "ready" ? !1 : mi(s.capabilities, u, { any: l?.any }),
|
|
5092
5029
|
loadFromProfile: c,
|
|
5093
5030
|
reset: f
|
|
5094
5031
|
}),
|
|
@@ -5096,14 +5033,14 @@ const $ = {
|
|
|
5096
5033
|
);
|
|
5097
5034
|
return /* @__PURE__ */ h(_s.Provider, { value: d, children: r });
|
|
5098
5035
|
};
|
|
5099
|
-
function
|
|
5100
|
-
const e =
|
|
5036
|
+
function dl() {
|
|
5037
|
+
const e = ot(_s);
|
|
5101
5038
|
if (!e)
|
|
5102
5039
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
|
5103
5040
|
return e;
|
|
5104
5041
|
}
|
|
5105
5042
|
const Ar = (e) => Number.isFinite(e) ? e : 0;
|
|
5106
|
-
function
|
|
5043
|
+
function Ei(e) {
|
|
5107
5044
|
return {
|
|
5108
5045
|
days: Math.trunc(e / 864e5),
|
|
5109
5046
|
hours: Math.trunc(e / 36e5 % 24),
|
|
@@ -5114,7 +5051,7 @@ function _i(e) {
|
|
|
5114
5051
|
nanoseconds: Math.trunc(Ar(e * 1e6) % 1e3)
|
|
5115
5052
|
};
|
|
5116
5053
|
}
|
|
5117
|
-
function
|
|
5054
|
+
function bi(e) {
|
|
5118
5055
|
return {
|
|
5119
5056
|
days: e / 86400000n,
|
|
5120
5057
|
hours: e / 3600000n % 24n,
|
|
@@ -5125,20 +5062,20 @@ function Ri(e) {
|
|
|
5125
5062
|
nanoseconds: 0n
|
|
5126
5063
|
};
|
|
5127
5064
|
}
|
|
5128
|
-
function
|
|
5065
|
+
function Si(e) {
|
|
5129
5066
|
switch (typeof e) {
|
|
5130
5067
|
case "number": {
|
|
5131
5068
|
if (Number.isFinite(e))
|
|
5132
|
-
return
|
|
5069
|
+
return Ei(e);
|
|
5133
5070
|
break;
|
|
5134
5071
|
}
|
|
5135
5072
|
case "bigint":
|
|
5136
|
-
return
|
|
5073
|
+
return bi(e);
|
|
5137
5074
|
}
|
|
5138
5075
|
throw new TypeError("Expected a finite number or bigint");
|
|
5139
5076
|
}
|
|
5140
|
-
const
|
|
5141
|
-
function
|
|
5077
|
+
const wi = (e) => e === 0 || e === 0n, vi = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ti = 1e-7, Ii = 24n * 60n * 60n * 1000n;
|
|
5078
|
+
function Ai(e, t) {
|
|
5142
5079
|
const r = typeof e == "bigint";
|
|
5143
5080
|
if (!r && !Number.isFinite(e))
|
|
5144
5081
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -5147,18 +5084,18 @@ function $i(e, t) {
|
|
|
5147
5084
|
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);
|
|
5148
5085
|
let a = [];
|
|
5149
5086
|
const n = (d, u) => {
|
|
5150
|
-
const l = Math.floor(d * 10 ** u +
|
|
5087
|
+
const l = Math.floor(d * 10 ** u + Ti);
|
|
5151
5088
|
return (Math.round(l) / 10 ** u).toFixed(u);
|
|
5152
5089
|
}, i = (d, u, l, m) => {
|
|
5153
|
-
if (!((a.length === 0 || !t.colonNotation) &&
|
|
5090
|
+
if (!((a.length === 0 || !t.colonNotation) && wi(d) && !(t.colonNotation && l === "m"))) {
|
|
5154
5091
|
if (m ??= String(d), t.colonNotation) {
|
|
5155
5092
|
const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
|
|
5156
5093
|
m = "0".repeat(Math.max(0, g - p)) + m;
|
|
5157
5094
|
} else
|
|
5158
|
-
m += t.verbose ? " " +
|
|
5095
|
+
m += t.verbose ? " " + vi(u, d) : l;
|
|
5159
5096
|
a.push(m);
|
|
5160
5097
|
}
|
|
5161
|
-
}, o =
|
|
5098
|
+
}, o = Si(e), c = BigInt(o.days);
|
|
5162
5099
|
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)
|
|
5163
5100
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
|
|
5164
5101
|
const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
|
|
@@ -5174,7 +5111,7 @@ function $i(e, t) {
|
|
|
5174
5111
|
);
|
|
5175
5112
|
}
|
|
5176
5113
|
} else {
|
|
5177
|
-
const d = (r ? Number(e %
|
|
5114
|
+
const d = (r ? Number(e % Ii) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
|
|
5178
5115
|
i(Number.parseFloat(m), "second", "s", m);
|
|
5179
5116
|
}
|
|
5180
5117
|
if (a.length === 0)
|
|
@@ -5190,17 +5127,17 @@ const Rs = process.env.NODE_ENV === "production", jt = !Rs, Os = jt ? "gizmette.
|
|
|
5190
5127
|
min: a,
|
|
5191
5128
|
sec: n
|
|
5192
5129
|
};
|
|
5193
|
-
},
|
|
5130
|
+
}, _i = (e) => {
|
|
5194
5131
|
if (!e && e !== 0)
|
|
5195
5132
|
return "N/A";
|
|
5196
5133
|
const t = Qt(e, !1);
|
|
5197
5134
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
5198
|
-
},
|
|
5135
|
+
}, Ri = (e) => {
|
|
5199
5136
|
if (!e && e !== 0)
|
|
5200
5137
|
return "N/A";
|
|
5201
5138
|
const t = Qt(e, !0);
|
|
5202
5139
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
5203
|
-
},
|
|
5140
|
+
}, Oi = async () => {
|
|
5204
5141
|
const e = {
|
|
5205
5142
|
/**
|
|
5206
5143
|
* A boolean value that indicates the application would like to receive the
|
|
@@ -5243,18 +5180,18 @@ const Rs = process.env.NODE_ENV === "production", jt = !Rs, Os = jt ? "gizmette.
|
|
|
5243
5180
|
e
|
|
5244
5181
|
);
|
|
5245
5182
|
});
|
|
5246
|
-
},
|
|
5183
|
+
}, Ci = (e) => window.btoa(
|
|
5247
5184
|
encodeURIComponent(e).replace(
|
|
5248
5185
|
/%([0-9A-F]{2})/g,
|
|
5249
5186
|
function(r, s) {
|
|
5250
5187
|
return String.fromCharCode(+`0x${s}`);
|
|
5251
5188
|
}
|
|
5252
5189
|
)
|
|
5253
|
-
),
|
|
5190
|
+
), ki = (e) => decodeURIComponent(
|
|
5254
5191
|
window.atob(e).split("").map(function(t) {
|
|
5255
5192
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
|
5256
5193
|
}).join("")
|
|
5257
|
-
),
|
|
5194
|
+
), Ni = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ j("div", { className: "flex items-center justify-between", children: [
|
|
5258
5195
|
/* @__PURE__ */ h(
|
|
5259
5196
|
"dt",
|
|
5260
5197
|
{
|
|
@@ -5276,7 +5213,7 @@ const Rs = process.env.NODE_ENV === "production", jt = !Rs, Os = jt ? "gizmette.
|
|
|
5276
5213
|
}
|
|
5277
5214
|
)
|
|
5278
5215
|
] }) }, `${e}-${s}`)) : null;
|
|
5279
|
-
function
|
|
5216
|
+
function Pi({
|
|
5280
5217
|
data: e,
|
|
5281
5218
|
formatter: t = (r) => r
|
|
5282
5219
|
}) {
|
|
@@ -5288,12 +5225,12 @@ function Hi({
|
|
|
5288
5225
|
);
|
|
5289
5226
|
return t(s ? s / r.length : 0);
|
|
5290
5227
|
}
|
|
5291
|
-
const
|
|
5228
|
+
const $i = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Mi = new Intl.NumberFormat("en", {
|
|
5292
5229
|
style: "decimal",
|
|
5293
5230
|
signDisplay: "never",
|
|
5294
5231
|
minimumFractionDigits: 0,
|
|
5295
5232
|
maximumFractionDigits: 0
|
|
5296
|
-
}),
|
|
5233
|
+
}), xi = (e) => e > 0 ? Ai(e, {
|
|
5297
5234
|
secondsDecimalDigits: 2,
|
|
5298
5235
|
unitCount: 2
|
|
5299
5236
|
}) : "N/A", Cs = ({
|
|
@@ -5316,21 +5253,21 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5316
5253
|
"md:max-w-svw": t
|
|
5317
5254
|
},
|
|
5318
5255
|
e
|
|
5319
|
-
),
|
|
5256
|
+
), Di = (e, t) => t === 1 ? e : `${e}s`, Li = (e, t) => {
|
|
5320
5257
|
let r;
|
|
5321
5258
|
return (...s) => {
|
|
5322
5259
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
|
5323
5260
|
};
|
|
5324
|
-
}, Ns = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Ps = () => window.innerWidth < 403, $s = () => window.innerWidth >= 403 && window.innerWidth <= 1220,
|
|
5261
|
+
}, Ns = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Ps = () => window.innerWidth < 403, $s = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Ui = () => {
|
|
5325
5262
|
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ps(), s = navigator.maxTouchPoints > 1;
|
|
5326
5263
|
return e && t && r && s;
|
|
5327
|
-
},
|
|
5264
|
+
}, Fi = () => {
|
|
5328
5265
|
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = $s(), r = navigator.maxTouchPoints > 1;
|
|
5329
5266
|
return e && t && r;
|
|
5330
|
-
},
|
|
5267
|
+
}, Hi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, Ki = (e) => {
|
|
5331
5268
|
const t = e.replace(/([A-Z])/g, " $1");
|
|
5332
5269
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5333
|
-
},
|
|
5270
|
+
}, Gi = ({
|
|
5334
5271
|
autoClose: e = 3e3,
|
|
5335
5272
|
containerId: t,
|
|
5336
5273
|
position: r = "top-center",
|
|
@@ -5354,9 +5291,9 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5354
5291
|
theme: c,
|
|
5355
5292
|
transition: f,
|
|
5356
5293
|
icon: d
|
|
5357
|
-
}),
|
|
5294
|
+
}), Bi = (e, t) => t === "ready" && !!e && e.length > 0, qi = (e) => {
|
|
5358
5295
|
e ? document.documentElement.setAttribute(vr, "true") : document.documentElement.removeAttribute(vr);
|
|
5359
|
-
},
|
|
5296
|
+
}, hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Os, applyOledMode: qi, canEvaluateModels: Bi, convertCamelCaseToReadable: Ki, convertDDToDMS: Qt, convertLatitudeToDMS: _i, convertLongitudeToDMS: Ri, debounce: Li, durationFormatter: xi, extractAverage: Pi, getCurrentGeoLocation: Oi, getLayoutPaddingClass: ks, getMessageContaintWrapperClass: Cs, isDev: jt, isLastMessageFromRole: $i, isPWAMode: Hi, isProbablyMobile: Ps, isProbablyTablet: $s, isProbablyiPad: Fi, isProbablyiPhone: Ui, isProd: Rs, isTauri: Ns, numberFormatter: Mi, obfuscate: Ci, pluralize: Di, renderDataAsList: Ni, toastOptions: Gi, unObfuscate: ki }, Symbol.toStringTag, { value: "Module" })), _r = "av-button", dt = "icon", Jt = "button", xt = "link", Wi = ({
|
|
5360
5297
|
type: e,
|
|
5361
5298
|
size: t,
|
|
5362
5299
|
labelRight: r,
|
|
@@ -5367,13 +5304,13 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5367
5304
|
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";
|
|
5368
5305
|
switch (e) {
|
|
5369
5306
|
case Jt:
|
|
5370
|
-
case
|
|
5307
|
+
case xt:
|
|
5371
5308
|
return y({
|
|
5372
5309
|
[i]: t === "small",
|
|
5373
5310
|
[o]: t === "medium",
|
|
5374
5311
|
[c]: t === "large"
|
|
5375
5312
|
});
|
|
5376
|
-
case
|
|
5313
|
+
case dt:
|
|
5377
5314
|
return y("flex items-center", {
|
|
5378
5315
|
"justify-center": a === "center",
|
|
5379
5316
|
"justify-start": a === "left",
|
|
@@ -5392,7 +5329,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5392
5329
|
"h-12": t === "large" && n && (r || s)
|
|
5393
5330
|
});
|
|
5394
5331
|
}
|
|
5395
|
-
},
|
|
5332
|
+
}, Vi = ({
|
|
5396
5333
|
type: e,
|
|
5397
5334
|
size: t,
|
|
5398
5335
|
labelRight: r,
|
|
@@ -5401,21 +5338,21 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5401
5338
|
const a = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
5402
5339
|
switch (e) {
|
|
5403
5340
|
case Jt:
|
|
5404
|
-
case
|
|
5341
|
+
case xt:
|
|
5405
5342
|
return y({
|
|
5406
|
-
"text-center": e ===
|
|
5343
|
+
"text-center": e === xt,
|
|
5407
5344
|
[a]: t === "small",
|
|
5408
5345
|
[n]: t === "medium",
|
|
5409
5346
|
[i]: t === "large"
|
|
5410
5347
|
});
|
|
5411
|
-
case
|
|
5348
|
+
case dt:
|
|
5412
5349
|
return y({
|
|
5413
5350
|
[a]: t === "small" && (r || s),
|
|
5414
5351
|
[n]: t === "medium" && (r || s),
|
|
5415
5352
|
[i]: t === "large" && (r || s)
|
|
5416
5353
|
});
|
|
5417
5354
|
}
|
|
5418
|
-
},
|
|
5355
|
+
}, ji = ({
|
|
5419
5356
|
mode: e,
|
|
5420
5357
|
noBackground: t,
|
|
5421
5358
|
truncate: r,
|
|
@@ -5451,7 +5388,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5451
5388
|
return y("not-prose text-copy-lighter", {
|
|
5452
5389
|
truncate: r
|
|
5453
5390
|
});
|
|
5454
|
-
},
|
|
5391
|
+
}, Qi = ({
|
|
5455
5392
|
mode: e,
|
|
5456
5393
|
noBackground: t,
|
|
5457
5394
|
variant: r
|
|
@@ -5481,13 +5418,13 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5481
5418
|
if (r === "selected")
|
|
5482
5419
|
return "bg-action-selected-dark";
|
|
5483
5420
|
}
|
|
5484
|
-
},
|
|
5421
|
+
}, Ji = ({
|
|
5485
5422
|
radius: e
|
|
5486
5423
|
}) => y({
|
|
5487
5424
|
"rounded-full": e === "large",
|
|
5488
5425
|
"rounded-md": e === "medium",
|
|
5489
5426
|
"rounded-xs": e === "small"
|
|
5490
|
-
}),
|
|
5427
|
+
}), Yi = ({
|
|
5491
5428
|
mode: e,
|
|
5492
5429
|
disabled: t,
|
|
5493
5430
|
variant: r
|
|
@@ -5525,7 +5462,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5525
5462
|
});
|
|
5526
5463
|
if (r === "selected")
|
|
5527
5464
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
5528
|
-
},
|
|
5465
|
+
}, zi = ({
|
|
5529
5466
|
mode: e,
|
|
5530
5467
|
disabled: t,
|
|
5531
5468
|
variant: r
|
|
@@ -5563,7 +5500,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5563
5500
|
});
|
|
5564
5501
|
if (r === "selected")
|
|
5565
5502
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
5566
|
-
},
|
|
5503
|
+
}, Xi = ({
|
|
5567
5504
|
mode: e,
|
|
5568
5505
|
noBorder: t,
|
|
5569
5506
|
variant: r
|
|
@@ -5593,14 +5530,14 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5593
5530
|
});
|
|
5594
5531
|
if (r === "selected")
|
|
5595
5532
|
return "border border-border-selected-dark";
|
|
5596
|
-
},
|
|
5533
|
+
}, Zi = ({
|
|
5597
5534
|
focusMode: e
|
|
5598
5535
|
}) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
5599
5536
|
"focus:outline-focus-dark": e === "dark",
|
|
5600
5537
|
"focus:outline-focus-light": e === "light",
|
|
5601
5538
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
5602
5539
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
5603
|
-
}),
|
|
5540
|
+
}), eo = ({
|
|
5604
5541
|
mode: e,
|
|
5605
5542
|
raw: t,
|
|
5606
5543
|
iconClassName: r,
|
|
@@ -5627,7 +5564,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5627
5564
|
} : s === "selected" && (a = {
|
|
5628
5565
|
"text-copy-lighter": !0
|
|
5629
5566
|
}), y(a, r);
|
|
5630
|
-
},
|
|
5567
|
+
}, to = ({
|
|
5631
5568
|
animated: e
|
|
5632
5569
|
}) => y({
|
|
5633
5570
|
"transition-opacity duration-300 ease-in-out": e
|
|
@@ -5651,15 +5588,15 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5651
5588
|
animated: E
|
|
5652
5589
|
}) => (l || (l = "primary"), r ? y(_r, t) : y(
|
|
5653
5590
|
_r,
|
|
5654
|
-
|
|
5591
|
+
ji({
|
|
5655
5592
|
mode: s,
|
|
5656
5593
|
variant: l,
|
|
5657
5594
|
noBackground: u,
|
|
5658
5595
|
truncate: m
|
|
5659
5596
|
}),
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5597
|
+
Qi({ mode: s, noBackground: u, variant: l }),
|
|
5598
|
+
Ji({ radius: g }),
|
|
5599
|
+
Wi({
|
|
5663
5600
|
type: e,
|
|
5664
5601
|
size: o,
|
|
5665
5602
|
labelRight: f,
|
|
@@ -5667,20 +5604,20 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5667
5604
|
align: p,
|
|
5668
5605
|
animated: E
|
|
5669
5606
|
}),
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5607
|
+
Vi({ type: e, size: o, labelRight: f, labelLeft: d }),
|
|
5608
|
+
Xi({ mode: s, variant: l, noBorder: c }),
|
|
5609
|
+
Zi({ focusMode: a }),
|
|
5610
|
+
Yi({ mode: s, variant: l, disabled: n }),
|
|
5611
|
+
zi({ mode: s, variant: l, disabled: n }),
|
|
5675
5612
|
{
|
|
5676
5613
|
"w-full": i,
|
|
5677
5614
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
5678
5615
|
},
|
|
5679
5616
|
y({
|
|
5680
|
-
"transition-[width] duration-300 ease-in": e ===
|
|
5617
|
+
"transition-[width] duration-300 ease-in": e === dt && E
|
|
5681
5618
|
}),
|
|
5682
5619
|
t
|
|
5683
|
-
)),
|
|
5620
|
+
)), ro = (e, t, r) => {
|
|
5684
5621
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
5685
5622
|
}, Yt = le.forwardRef((e, t) => {
|
|
5686
5623
|
const { onClick: r, noInternalClick: s = !1, ...a } = e;
|
|
@@ -5689,7 +5626,7 @@ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5689
5626
|
{
|
|
5690
5627
|
ref: t,
|
|
5691
5628
|
onClick: (n) => {
|
|
5692
|
-
|
|
5629
|
+
ro(n, s, r);
|
|
5693
5630
|
},
|
|
5694
5631
|
...a
|
|
5695
5632
|
}
|
|
@@ -5739,21 +5676,21 @@ const xs = le.forwardRef(
|
|
|
5739
5676
|
}
|
|
5740
5677
|
);
|
|
5741
5678
|
xs.displayName = "Button";
|
|
5742
|
-
function
|
|
5679
|
+
function so() {
|
|
5743
5680
|
const e = Q(!1);
|
|
5744
5681
|
return V(() => (e.current = !0, () => {
|
|
5745
5682
|
e.current = !1;
|
|
5746
5683
|
}), []), X(() => e.current, []);
|
|
5747
5684
|
}
|
|
5748
5685
|
function Ds(e) {
|
|
5749
|
-
return
|
|
5686
|
+
return Ye(() => e.every((t) => t == null) ? () => {
|
|
5750
5687
|
} : (t) => {
|
|
5751
5688
|
e.forEach((r) => {
|
|
5752
5689
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
5753
5690
|
});
|
|
5754
5691
|
}, [...e]);
|
|
5755
5692
|
}
|
|
5756
|
-
const
|
|
5693
|
+
const ao = {
|
|
5757
5694
|
x: 0,
|
|
5758
5695
|
y: 0,
|
|
5759
5696
|
width: 0,
|
|
@@ -5763,8 +5700,8 @@ const fo = {
|
|
|
5763
5700
|
bottom: 0,
|
|
5764
5701
|
right: 0
|
|
5765
5702
|
};
|
|
5766
|
-
function
|
|
5767
|
-
const t =
|
|
5703
|
+
function Qe(e) {
|
|
5704
|
+
const t = so(), r = Q(0), s = Q(null), [a, n] = ce(ao), i = Ye(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
|
5768
5705
|
const c = o[0];
|
|
5769
5706
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
5770
5707
|
s.current && t() && n(c.contentRect);
|
|
@@ -5775,7 +5712,7 @@ function Je(e) {
|
|
|
5775
5712
|
}), [i, e]), [s, a];
|
|
5776
5713
|
}
|
|
5777
5714
|
function Ls(e) {
|
|
5778
|
-
const t =
|
|
5715
|
+
const t = qs();
|
|
5779
5716
|
if (!e)
|
|
5780
5717
|
return t;
|
|
5781
5718
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -5785,21 +5722,21 @@ function Ls(e) {
|
|
|
5785
5722
|
return typeof r == "number" || typeof r == "string" ? `${s}${r}` : `${s}${t}`;
|
|
5786
5723
|
}
|
|
5787
5724
|
}
|
|
5788
|
-
const
|
|
5725
|
+
const We = {
|
|
5789
5726
|
small: 24,
|
|
5790
5727
|
// w-6
|
|
5791
5728
|
medium: 32,
|
|
5792
5729
|
// w-8
|
|
5793
5730
|
large: 48
|
|
5794
5731
|
// w-12
|
|
5795
|
-
},
|
|
5732
|
+
}, no = {
|
|
5796
5733
|
small: 16,
|
|
5797
5734
|
// px-2 x 2
|
|
5798
5735
|
medium: 24,
|
|
5799
5736
|
// px-3 x 2
|
|
5800
5737
|
large: 32
|
|
5801
5738
|
// px-4 x 2
|
|
5802
|
-
},
|
|
5739
|
+
}, io = 2, oo = 300, nt = le.forwardRef(
|
|
5803
5740
|
({
|
|
5804
5741
|
children: e,
|
|
5805
5742
|
disabled: t = !1,
|
|
@@ -5821,10 +5758,10 @@ const Ve = {
|
|
|
5821
5758
|
variant: b = "secondary",
|
|
5822
5759
|
iconClassName: C,
|
|
5823
5760
|
animated: I = !1,
|
|
5824
|
-
...
|
|
5761
|
+
...q
|
|
5825
5762
|
}, R) => {
|
|
5826
5763
|
const z = Ms({
|
|
5827
|
-
type:
|
|
5764
|
+
type: dt,
|
|
5828
5765
|
mode: r,
|
|
5829
5766
|
focusMode: s,
|
|
5830
5767
|
fullWidth: a,
|
|
@@ -5840,15 +5777,15 @@ const Ve = {
|
|
|
5840
5777
|
radius: E,
|
|
5841
5778
|
variant: b,
|
|
5842
5779
|
animated: I
|
|
5843
|
-
}), O =
|
|
5844
|
-
return
|
|
5845
|
-
he && he.current && I && (S.current = ve.width +
|
|
5846
|
-
}, [ve, he, u, c, I]),
|
|
5780
|
+
}), O = eo({ mode: r, raw: o, iconClassName: C, variant: b }), v = to({ animated: I }), L = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, A] = Qe(), [N, J] = Qe(), [he, ve] = Qe(), S = Q(0), T = Q(null), w = Q(null), fe = Ds([R, T]);
|
|
5781
|
+
return ze(() => {
|
|
5782
|
+
he && he.current && I && (S.current = ve.width + no[u] + (c ? 0 : io), T.current && !T.current.style.width && (T.current.style.width = `${We[u]}px`));
|
|
5783
|
+
}, [ve, he, u, c, I]), ze(() => {
|
|
5847
5784
|
if (T && T.current && I) {
|
|
5848
|
-
let me =
|
|
5849
|
-
l && _ && A.width > 0 ? me = A.width + S.current : m && N && J.width > 0 && (me = J.width + S.current), w.current && clearTimeout(w.current), me !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${me}px`, me >
|
|
5785
|
+
let me = We[u];
|
|
5786
|
+
l && _ && A.width > 0 ? me = A.width + S.current : m && N && J.width > 0 && (me = J.width + S.current), w.current && clearTimeout(w.current), me !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${me}px`, me > We[u] && (w.current = setTimeout(() => {
|
|
5850
5787
|
_.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), w.current = null;
|
|
5851
|
-
},
|
|
5788
|
+
}, oo * 0.8))), me === We[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
|
|
5852
5789
|
}
|
|
5853
5790
|
}, [
|
|
5854
5791
|
A,
|
|
@@ -5869,7 +5806,7 @@ const Ve = {
|
|
|
5869
5806
|
disabled: t,
|
|
5870
5807
|
type: i,
|
|
5871
5808
|
"aria-label": f || d,
|
|
5872
|
-
...
|
|
5809
|
+
...q,
|
|
5873
5810
|
children: /* @__PURE__ */ j("div", { className: L, children: [
|
|
5874
5811
|
/* @__PURE__ */ h(
|
|
5875
5812
|
Rr,
|
|
@@ -5911,7 +5848,7 @@ const Ve = {
|
|
|
5911
5848
|
children: r && /* @__PURE__ */ h("span", { className: s, children: r })
|
|
5912
5849
|
}
|
|
5913
5850
|
);
|
|
5914
|
-
|
|
5851
|
+
nt.displayName = "ButtonIcon";
|
|
5915
5852
|
/*!
|
|
5916
5853
|
@versini/ui-button v8.1.4
|
|
5917
5854
|
© 2025 gizmette.com
|
|
@@ -5925,7 +5862,7 @@ try {
|
|
|
5925
5862
|
});
|
|
5926
5863
|
} catch {
|
|
5927
5864
|
}
|
|
5928
|
-
const
|
|
5865
|
+
const co = le.forwardRef(
|
|
5929
5866
|
({
|
|
5930
5867
|
children: e,
|
|
5931
5868
|
mode: t = "system",
|
|
@@ -5951,7 +5888,7 @@ const go = le.forwardRef(
|
|
|
5951
5888
|
}
|
|
5952
5889
|
) : "";
|
|
5953
5890
|
return /* @__PURE__ */ h("div", { className: i, children: /* @__PURE__ */ h(
|
|
5954
|
-
|
|
5891
|
+
nt,
|
|
5955
5892
|
{
|
|
5956
5893
|
className: r,
|
|
5957
5894
|
ref: n,
|
|
@@ -5965,8 +5902,8 @@ const go = le.forwardRef(
|
|
|
5965
5902
|
) });
|
|
5966
5903
|
}
|
|
5967
5904
|
);
|
|
5968
|
-
|
|
5969
|
-
const
|
|
5905
|
+
co.displayName = "ButtonSort";
|
|
5906
|
+
const Je = "av-card", lo = ({
|
|
5970
5907
|
className: e,
|
|
5971
5908
|
headerClassName: t,
|
|
5972
5909
|
bodyClassName: r,
|
|
@@ -5976,7 +5913,7 @@ const Ye = "av-card", Eo = ({
|
|
|
5976
5913
|
noBorder: i
|
|
5977
5914
|
}) => {
|
|
5978
5915
|
const o = y(
|
|
5979
|
-
|
|
5916
|
+
Je,
|
|
5980
5917
|
"rounded-md",
|
|
5981
5918
|
{
|
|
5982
5919
|
"border-none": i,
|
|
@@ -5990,7 +5927,7 @@ const Ye = "av-card", Eo = ({
|
|
|
5990
5927
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": a === "alt-system"
|
|
5991
5928
|
},
|
|
5992
5929
|
e
|
|
5993
|
-
), c = t || y(`${
|
|
5930
|
+
), c = t || y(`${Je}__header mt-0 border-b-2`, {
|
|
5994
5931
|
"text-copy-light border-border-accent": a === "darker",
|
|
5995
5932
|
"border-border-accent": a === "dark",
|
|
5996
5933
|
"border-border-medium": a === "light",
|
|
@@ -5998,7 +5935,7 @@ const Ye = "av-card", Eo = ({
|
|
|
5998
5935
|
"border-border-accent dark:border-border-medium": a === "alt-system",
|
|
5999
5936
|
"mb-4": !n,
|
|
6000
5937
|
"mb-2": n
|
|
6001
|
-
}), f = y(r), d = s || y(`${
|
|
5938
|
+
}), f = y(r), d = s || y(`${Je}__footer pt-2`);
|
|
6002
5939
|
return {
|
|
6003
5940
|
wrapper: o,
|
|
6004
5941
|
header: c,
|
|
@@ -6006,7 +5943,7 @@ const Ye = "av-card", Eo = ({
|
|
|
6006
5943
|
footer: d
|
|
6007
5944
|
};
|
|
6008
5945
|
};
|
|
6009
|
-
function
|
|
5946
|
+
function uo({
|
|
6010
5947
|
id: e,
|
|
6011
5948
|
content: t,
|
|
6012
5949
|
userAriaLabelledby: r,
|
|
@@ -6014,7 +5951,7 @@ function bo({
|
|
|
6014
5951
|
}) {
|
|
6015
5952
|
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;
|
|
6016
5953
|
}
|
|
6017
|
-
const
|
|
5954
|
+
const ho = ({
|
|
6018
5955
|
header: e,
|
|
6019
5956
|
headerClassName: t,
|
|
6020
5957
|
footer: r,
|
|
@@ -6029,7 +5966,7 @@ const So = ({
|
|
|
6029
5966
|
...u
|
|
6030
5967
|
}) => {
|
|
6031
5968
|
let l = null, m = null;
|
|
6032
|
-
const p = typeof e == "string", g = Ls(
|
|
5969
|
+
const p = typeof e == "string", g = Ls(Je), E = lo({
|
|
6033
5970
|
className: n,
|
|
6034
5971
|
headerClassName: t,
|
|
6035
5972
|
bodyClassName: i,
|
|
@@ -6048,7 +5985,7 @@ const So = ({
|
|
|
6048
5985
|
...u,
|
|
6049
5986
|
children: [
|
|
6050
5987
|
/* @__PURE__ */ h(
|
|
6051
|
-
|
|
5988
|
+
uo,
|
|
6052
5989
|
{
|
|
6053
5990
|
...l && { id: l },
|
|
6054
5991
|
content: e,
|
|
@@ -6075,7 +6012,7 @@ try {
|
|
|
6075
6012
|
});
|
|
6076
6013
|
} catch {
|
|
6077
6014
|
}
|
|
6078
|
-
const
|
|
6015
|
+
const ht = ({
|
|
6079
6016
|
children: e,
|
|
6080
6017
|
fill: t,
|
|
6081
6018
|
viewBox: r,
|
|
@@ -6118,14 +6055,14 @@ try {
|
|
|
6118
6055
|
});
|
|
6119
6056
|
} catch {
|
|
6120
6057
|
}
|
|
6121
|
-
const
|
|
6058
|
+
const fo = ({
|
|
6122
6059
|
className: e,
|
|
6123
6060
|
viewBox: t,
|
|
6124
6061
|
title: r,
|
|
6125
6062
|
monotone: s,
|
|
6126
6063
|
...a
|
|
6127
6064
|
}) => /* @__PURE__ */ h(
|
|
6128
|
-
|
|
6065
|
+
ht,
|
|
6129
6066
|
{
|
|
6130
6067
|
defaultViewBox: "0 0 1200 500",
|
|
6131
6068
|
size: "w-full",
|
|
@@ -6135,14 +6072,14 @@ const wo = ({
|
|
|
6135
6072
|
...a,
|
|
6136
6073
|
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" })
|
|
6137
6074
|
}
|
|
6138
|
-
),
|
|
6075
|
+
), mo = ({
|
|
6139
6076
|
className: e,
|
|
6140
6077
|
viewBox: t,
|
|
6141
6078
|
title: r,
|
|
6142
6079
|
monotone: s,
|
|
6143
6080
|
...a
|
|
6144
6081
|
}) => /* @__PURE__ */ j(
|
|
6145
|
-
|
|
6082
|
+
ht,
|
|
6146
6083
|
{
|
|
6147
6084
|
defaultViewBox: "0 0 640 512",
|
|
6148
6085
|
size: "size-5",
|
|
@@ -6161,7 +6098,7 @@ const wo = ({
|
|
|
6161
6098
|
/* @__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" })
|
|
6162
6099
|
]
|
|
6163
6100
|
}
|
|
6164
|
-
),
|
|
6101
|
+
), po = ({
|
|
6165
6102
|
className: e,
|
|
6166
6103
|
viewBox: t,
|
|
6167
6104
|
title: r,
|
|
@@ -6170,7 +6107,7 @@ const wo = ({
|
|
|
6170
6107
|
}) => {
|
|
6171
6108
|
const n = s ? "1" : "0.4";
|
|
6172
6109
|
return /* @__PURE__ */ j(
|
|
6173
|
-
|
|
6110
|
+
ht,
|
|
6174
6111
|
{
|
|
6175
6112
|
defaultViewBox: "0 0 190 190",
|
|
6176
6113
|
size: "size-5",
|
|
@@ -6197,14 +6134,14 @@ const wo = ({
|
|
|
6197
6134
|
]
|
|
6198
6135
|
}
|
|
6199
6136
|
);
|
|
6200
|
-
},
|
|
6137
|
+
}, yo = ({
|
|
6201
6138
|
className: e,
|
|
6202
6139
|
viewBox: t,
|
|
6203
6140
|
title: r,
|
|
6204
6141
|
monotone: s,
|
|
6205
6142
|
...a
|
|
6206
6143
|
}) => /* @__PURE__ */ j(
|
|
6207
|
-
|
|
6144
|
+
ht,
|
|
6208
6145
|
{
|
|
6209
6146
|
defaultViewBox: "0 0 576 512",
|
|
6210
6147
|
size: "size-5",
|
|
@@ -6237,10 +6174,10 @@ try {
|
|
|
6237
6174
|
});
|
|
6238
6175
|
} catch {
|
|
6239
6176
|
}
|
|
6240
|
-
const
|
|
6177
|
+
const go = "av-flexgrid", Ve = "av-flexgrid-item", it = 0.25, Dt = le.createContext({
|
|
6241
6178
|
columnGap: 0,
|
|
6242
6179
|
rowGap: 0
|
|
6243
|
-
}),
|
|
6180
|
+
}), Eo = ({
|
|
6244
6181
|
children: e,
|
|
6245
6182
|
className: t,
|
|
6246
6183
|
columnGap: r = 1,
|
|
@@ -6263,14 +6200,14 @@ const Ao = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
|
|
|
6263
6200
|
* by the columnGap and rowGap that will be applied
|
|
6264
6201
|
* to all FlexgridItems (see context and paddings).
|
|
6265
6202
|
*/
|
|
6266
|
-
marginLeft: r * -1 *
|
|
6267
|
-
marginTop: s * -1 *
|
|
6203
|
+
marginLeft: r * -1 * it + "rem",
|
|
6204
|
+
marginTop: s * -1 * it + "rem"
|
|
6268
6205
|
}, u = y(
|
|
6269
|
-
|
|
6206
|
+
go,
|
|
6270
6207
|
"box-border flex flex-wrap"
|
|
6271
6208
|
), l = { columnGap: r, rowGap: s };
|
|
6272
|
-
return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(
|
|
6273
|
-
},
|
|
6209
|
+
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 }) });
|
|
6210
|
+
}, It = (e, t) => y({
|
|
6274
6211
|
"basis-1/12": e === 1 && !t,
|
|
6275
6212
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
6276
6213
|
"md:basis-1/12": e === 1 && t === "md",
|
|
@@ -6343,25 +6280,25 @@ const Ao = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
|
|
|
6343
6280
|
"lg:basis-full": e === 12 && t === "lg",
|
|
6344
6281
|
"xl:basis-full": e === 12 && t === "xl",
|
|
6345
6282
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
6346
|
-
}),
|
|
6283
|
+
}), bo = ({
|
|
6347
6284
|
className: e,
|
|
6348
6285
|
span: t
|
|
6349
6286
|
}) => {
|
|
6350
6287
|
if (!t)
|
|
6351
|
-
return y(e,
|
|
6288
|
+
return y(e, Ve, "box-border basis-auto");
|
|
6352
6289
|
if (typeof t == "number")
|
|
6353
|
-
return y(e,
|
|
6354
|
-
[`${
|
|
6290
|
+
return y(e, Ve, "box-border max-w-full", {
|
|
6291
|
+
[`${It(t)}`]: !0
|
|
6355
6292
|
});
|
|
6356
6293
|
if (typeof t == "string")
|
|
6357
|
-
return y(e,
|
|
6294
|
+
return y(e, Ve, "box-border basis-auto", {
|
|
6358
6295
|
"max-w-full grow": t === "auto"
|
|
6359
6296
|
});
|
|
6360
6297
|
if (typeof t == "object") {
|
|
6361
|
-
const r = Object.entries(t).map(([s, a]) => s === "fallback" ?
|
|
6298
|
+
const r = Object.entries(t).map(([s, a]) => s === "fallback" ? It(a) : It(a, s));
|
|
6362
6299
|
return y(
|
|
6363
6300
|
e,
|
|
6364
|
-
|
|
6301
|
+
Ve,
|
|
6365
6302
|
"box-border",
|
|
6366
6303
|
r
|
|
6367
6304
|
);
|
|
@@ -6372,10 +6309,10 @@ const Ao = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
|
|
|
6372
6309
|
span: r,
|
|
6373
6310
|
...s
|
|
6374
6311
|
}) => {
|
|
6375
|
-
const { columnGap: a, rowGap: n } =
|
|
6376
|
-
paddingLeft: a *
|
|
6377
|
-
paddingTop: n *
|
|
6378
|
-
}, o =
|
|
6312
|
+
const { columnGap: a, rowGap: n } = ot(Dt), i = {
|
|
6313
|
+
paddingLeft: a * it + "rem",
|
|
6314
|
+
paddingTop: n * it + "rem"
|
|
6315
|
+
}, o = bo({
|
|
6379
6316
|
className: t,
|
|
6380
6317
|
span: r
|
|
6381
6318
|
});
|
|
@@ -6394,7 +6331,7 @@ try {
|
|
|
6394
6331
|
});
|
|
6395
6332
|
} catch {
|
|
6396
6333
|
}
|
|
6397
|
-
const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT",
|
|
6334
|
+
const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT", So = {
|
|
6398
6335
|
alert: null,
|
|
6399
6336
|
alertdialog: null,
|
|
6400
6337
|
log: "polite",
|
|
@@ -6402,7 +6339,7 @@ const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT", Oo = {
|
|
|
6402
6339
|
progressbar: null,
|
|
6403
6340
|
status: "polite",
|
|
6404
6341
|
timer: "assertive"
|
|
6405
|
-
},
|
|
6342
|
+
}, wo = (e, t) => {
|
|
6406
6343
|
switch (t?.type) {
|
|
6407
6344
|
case Us:
|
|
6408
6345
|
return {
|
|
@@ -6417,7 +6354,7 @@ const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT", Oo = {
|
|
|
6417
6354
|
default:
|
|
6418
6355
|
return e;
|
|
6419
6356
|
}
|
|
6420
|
-
},
|
|
6357
|
+
}, vo = ({
|
|
6421
6358
|
onAnnouncementClear: e,
|
|
6422
6359
|
dispatch: t
|
|
6423
6360
|
}) => {
|
|
@@ -6435,13 +6372,13 @@ const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT", Oo = {
|
|
|
6435
6372
|
type: Us,
|
|
6436
6373
|
payload: e
|
|
6437
6374
|
}), t && (r.current = setTimeout(
|
|
6438
|
-
() =>
|
|
6375
|
+
() => vo({
|
|
6439
6376
|
onAnnouncementClear: s,
|
|
6440
6377
|
dispatch: a
|
|
6441
6378
|
}),
|
|
6442
6379
|
t
|
|
6443
6380
|
));
|
|
6444
|
-
},
|
|
6381
|
+
}, To = ({
|
|
6445
6382
|
children: e,
|
|
6446
6383
|
announcementTimeoutRef: t,
|
|
6447
6384
|
announcementDelay: r,
|
|
@@ -6475,12 +6412,12 @@ function Hs({
|
|
|
6475
6412
|
visible: o,
|
|
6476
6413
|
...c
|
|
6477
6414
|
}) {
|
|
6478
|
-
const f = Q(null), d = Q(null), [u, l] = Pr(
|
|
6415
|
+
const f = Q(null), d = Q(null), [u, l] = Pr(wo, {
|
|
6479
6416
|
announcement: null
|
|
6480
6417
|
});
|
|
6481
6418
|
let m = r;
|
|
6482
|
-
typeof m > "u" && (m = s ?
|
|
6483
|
-
|
|
6419
|
+
typeof m > "u" && (m = s ? So[s] : "assertive"), V(() => {
|
|
6420
|
+
To({
|
|
6484
6421
|
announcementTimeoutRef: f,
|
|
6485
6422
|
announcementDelay: a,
|
|
6486
6423
|
children: e,
|
|
@@ -6522,21 +6459,21 @@ try {
|
|
|
6522
6459
|
});
|
|
6523
6460
|
} catch {
|
|
6524
6461
|
}
|
|
6525
|
-
const Ks = "av-text-input",
|
|
6462
|
+
const Ks = "av-text-input", Io = "av-text-input-wrapper", At = "av-text-input-helper-text", Ao = ({
|
|
6526
6463
|
mode: e
|
|
6527
6464
|
}) => y({
|
|
6528
6465
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
6529
6466
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
6530
6467
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
6531
6468
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
6532
|
-
}),
|
|
6469
|
+
}), _o = ({
|
|
6533
6470
|
focusMode: e
|
|
6534
6471
|
}) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
6535
6472
|
"focus:outline-focus-dark": e === "dark",
|
|
6536
6473
|
"focus:outline-focus-light": e === "light",
|
|
6537
6474
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
6538
6475
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
6539
|
-
}),
|
|
6476
|
+
}), Ro = ({
|
|
6540
6477
|
noBorder: e,
|
|
6541
6478
|
error: t
|
|
6542
6479
|
}) => y("border-2", {
|
|
@@ -6544,7 +6481,7 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6544
6481
|
"focus:border-border-dark": !e && t,
|
|
6545
6482
|
"border-border-error-dark": !e && t,
|
|
6546
6483
|
"border-transparent": e
|
|
6547
|
-
}),
|
|
6484
|
+
}), Oo = ({
|
|
6548
6485
|
disabled: e,
|
|
6549
6486
|
raw: t,
|
|
6550
6487
|
error: r,
|
|
@@ -6568,7 +6505,7 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6568
6505
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
|
|
6569
6506
|
"text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
|
|
6570
6507
|
});
|
|
6571
|
-
},
|
|
6508
|
+
}, Co = ({
|
|
6572
6509
|
error: e,
|
|
6573
6510
|
raw: t,
|
|
6574
6511
|
mode: r,
|
|
@@ -6578,24 +6515,24 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6578
6515
|
return "";
|
|
6579
6516
|
if (s)
|
|
6580
6517
|
return y(
|
|
6581
|
-
|
|
6518
|
+
At,
|
|
6582
6519
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
6583
6520
|
);
|
|
6584
6521
|
if (!e)
|
|
6585
|
-
return y(
|
|
6522
|
+
return y(At, "absolute px-2 font-medium", {
|
|
6586
6523
|
"text-copy-lighter": r === "dark",
|
|
6587
6524
|
"text-copy-dark": r === "light",
|
|
6588
6525
|
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
6589
6526
|
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
6590
6527
|
});
|
|
6591
6528
|
if (e)
|
|
6592
|
-
return y(
|
|
6529
|
+
return y(At, "absolute px-2 font-medium", {
|
|
6593
6530
|
"text-copy-error-light bg-surface-darker": r === "dark",
|
|
6594
6531
|
"text-copy-error-dark": r === "light",
|
|
6595
6532
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
6596
6533
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
6597
6534
|
});
|
|
6598
|
-
},
|
|
6535
|
+
}, ko = ({
|
|
6599
6536
|
className: e,
|
|
6600
6537
|
inputClassName: t,
|
|
6601
6538
|
raw: r,
|
|
@@ -6609,7 +6546,7 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6609
6546
|
}) => {
|
|
6610
6547
|
const d = r ? e : y(
|
|
6611
6548
|
"relative flex w-full flex-col justify-center",
|
|
6612
|
-
|
|
6549
|
+
Io,
|
|
6613
6550
|
e
|
|
6614
6551
|
);
|
|
6615
6552
|
let u = "";
|
|
@@ -6634,19 +6571,19 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6634
6571
|
Ks,
|
|
6635
6572
|
u,
|
|
6636
6573
|
"rounded-md text-base px-4",
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6574
|
+
Ao({ mode: i }),
|
|
6575
|
+
_o({ focusMode: o }),
|
|
6576
|
+
Ro({ noBorder: a, error: n }),
|
|
6640
6577
|
{
|
|
6641
6578
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
6642
6579
|
},
|
|
6643
6580
|
t
|
|
6644
|
-
), m = r ? void 0 : "sr-only", p =
|
|
6581
|
+
), m = r ? void 0 : "sr-only", p = Oo({
|
|
6645
6582
|
disabled: s,
|
|
6646
6583
|
raw: r,
|
|
6647
6584
|
error: n,
|
|
6648
6585
|
mode: i
|
|
6649
|
-
}), g =
|
|
6586
|
+
}), g = Co({
|
|
6650
6587
|
error: n,
|
|
6651
6588
|
raw: r,
|
|
6652
6589
|
mode: i,
|
|
@@ -6682,13 +6619,13 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6682
6619
|
size: b = "md",
|
|
6683
6620
|
...C
|
|
6684
6621
|
}, I) => {
|
|
6685
|
-
const [
|
|
6622
|
+
const [q, R] = Qe(), [z, O] = ce(0), v = Ls({ id: e, prefix: `${Ks}-` }), L = `${t} error, ${p}`, _ = Q(null), A = Q(null), N = {
|
|
6686
6623
|
xs: { label: "-25px", helperText: "30px" },
|
|
6687
6624
|
sm: { label: "-29px", helperText: "34px" },
|
|
6688
6625
|
md: { label: "-33px", helperText: "38px" },
|
|
6689
6626
|
lg: { label: "-15px", helperText: "22px" },
|
|
6690
6627
|
xl: { label: "-19px", helperText: "25px" }
|
|
6691
|
-
}, J =
|
|
6628
|
+
}, J = ko({
|
|
6692
6629
|
className: n,
|
|
6693
6630
|
inputClassName: i,
|
|
6694
6631
|
error: s,
|
|
@@ -6700,9 +6637,9 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6700
6637
|
size: b,
|
|
6701
6638
|
rightElementClassName: E
|
|
6702
6639
|
});
|
|
6703
|
-
return
|
|
6640
|
+
return ze(() => {
|
|
6704
6641
|
R && R.width && O(R.width + 18 + 10);
|
|
6705
|
-
}, [R]),
|
|
6642
|
+
}, [R]), ze(() => {
|
|
6706
6643
|
const { label: he, helperText: ve } = N[b];
|
|
6707
6644
|
_?.current?.style.setProperty("--av-text-input-label", he), A?.current?.style.setProperty(
|
|
6708
6645
|
"--av-text-input-helper-text",
|
|
@@ -6756,7 +6693,7 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6756
6693
|
g && /* @__PURE__ */ h(
|
|
6757
6694
|
"div",
|
|
6758
6695
|
{
|
|
6759
|
-
ref:
|
|
6696
|
+
ref: q,
|
|
6760
6697
|
className: J.rightElement,
|
|
6761
6698
|
children: g
|
|
6762
6699
|
}
|
|
@@ -6766,7 +6703,7 @@ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-he
|
|
|
6766
6703
|
}
|
|
6767
6704
|
);
|
|
6768
6705
|
zt.displayName = "TextInput";
|
|
6769
|
-
const
|
|
6706
|
+
const No = 500, Po = 5e3, $o = 2e4, Gs = le.forwardRef(
|
|
6770
6707
|
({
|
|
6771
6708
|
name: e,
|
|
6772
6709
|
disabled: t,
|
|
@@ -6783,19 +6720,19 @@ const Fo = 500, Ho = 5e3, Ko = 2e4, Gs = le.forwardRef(
|
|
|
6783
6720
|
const [l, m] = ce(!0), [p, g] = ce({
|
|
6784
6721
|
message: null,
|
|
6785
6722
|
politeness: null
|
|
6786
|
-
}), E = Q(!0), b = Q(null), C = Q(null), I = Ds([u, C]),
|
|
6723
|
+
}), E = Q(!0), b = Q(null), C = Q(null), I = Ds([u, C]), q = l ? "Show" : "Hide", R = () => {
|
|
6787
6724
|
b.current && clearTimeout(b.current), E.current || (b.current = setTimeout(() => {
|
|
6788
6725
|
E.current = !0, m(!0), g({
|
|
6789
|
-
announcementTimeout:
|
|
6726
|
+
announcementTimeout: Po,
|
|
6790
6727
|
politeness: "polite",
|
|
6791
6728
|
message: `${r} hiding characters`
|
|
6792
6729
|
}), a && a(!0);
|
|
6793
|
-
},
|
|
6730
|
+
}, $o));
|
|
6794
6731
|
}, z = (A) => {
|
|
6795
6732
|
A.preventDefault();
|
|
6796
6733
|
const N = !E.current;
|
|
6797
6734
|
E.current = N, R(), m(N), g({
|
|
6798
|
-
announcementTimeout:
|
|
6735
|
+
announcementTimeout: No,
|
|
6799
6736
|
politeness: "assertive",
|
|
6800
6737
|
message: N ? "Characters hidden" : "Characters showing"
|
|
6801
6738
|
}), a && a(N);
|
|
@@ -6826,7 +6763,7 @@ const Fo = 500, Ho = 5e3, Ko = 2e4, Gs = le.forwardRef(
|
|
|
6826
6763
|
onChange: _,
|
|
6827
6764
|
rightElement: le.cloneElement(f, {
|
|
6828
6765
|
ref: u,
|
|
6829
|
-
label:
|
|
6766
|
+
label: q,
|
|
6830
6767
|
onClick: z,
|
|
6831
6768
|
onBlur: O,
|
|
6832
6769
|
disabled: t
|
|
@@ -6860,9 +6797,9 @@ try {
|
|
|
6860
6797
|
});
|
|
6861
6798
|
} catch {
|
|
6862
6799
|
}
|
|
6863
|
-
const
|
|
6864
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
|
6865
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
|
6800
|
+
const Mo = "ASK! ME! ANYTHING!", xo = "Log in with a password", Do = "Log in with a Passkey", fl = "Log out", Lo = "Password", ml = "Usage", pl = "Profile", yl = "Settings", gl = "Chat history", El = "About", Xt = "Type your message here.", bl = Xt, Sl = `${Xt}
|
|
6801
|
+
Press Enter to send it or Shift+Enter for new line.`, wl = `${Xt}
|
|
6802
|
+
Press Ctrl+Enter to send it or Enter for new line.`, vl = "{{clipboard}}", P = "Review important details.", Tl = [
|
|
6866
6803
|
`Sometimes, ${k} just makes stuff up. ${P}`,
|
|
6867
6804
|
`${k} may invent facts on the fly. ${P}`,
|
|
6868
6805
|
`${k} may be confidently wrong. ${P}`,
|
|
@@ -6883,17 +6820,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
6883
6820
|
`Sometimes, ${k} howls at the moon. ${P}`,
|
|
6884
6821
|
`${k} may dig up imaginary bones. ${P}`,
|
|
6885
6822
|
`${k} may sniff out nonsense. ${P}`
|
|
6886
|
-
],
|
|
6823
|
+
], Il = "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.", Al = "Default provider set to", _l = "Chat successfully deleted!", Rl = "Chat successfully saved!", Ol = "Caching enabled. Assets are now stored locally.", Cl = "Caching disabled. Local asset cache cleared.", kl = "av-sassy", Nl = {
|
|
6887
6824
|
0: ["January", "February", "March"],
|
|
6888
6825
|
3: ["April", "May", "June"],
|
|
6889
6826
|
6: ["July", "August", "September"],
|
|
6890
6827
|
9: ["October", "November", "December"]
|
|
6891
|
-
},
|
|
6828
|
+
}, Pl = {
|
|
6892
6829
|
0: ["Jan", "Feb", "Mar"],
|
|
6893
6830
|
3: ["Apr", "May", "Jun"],
|
|
6894
6831
|
6: ["Jul", "Aug", "Sep"],
|
|
6895
6832
|
9: ["Oct", "Nov", "Dec"]
|
|
6896
|
-
},
|
|
6833
|
+
}, $l = {
|
|
6897
6834
|
PREFERENCES: {
|
|
6898
6835
|
TITLE: "User profile",
|
|
6899
6836
|
USERNAME: "Username",
|
|
@@ -6944,7 +6881,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
6944
6881
|
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.",
|
|
6945
6882
|
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."
|
|
6946
6883
|
}
|
|
6947
|
-
},
|
|
6884
|
+
}, Uo = ({
|
|
6948
6885
|
className: e,
|
|
6949
6886
|
isCapabilitiesSuccess: t,
|
|
6950
6887
|
capabilities: r,
|
|
@@ -6958,7 +6895,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
6958
6895
|
"flex items-center justify-center"
|
|
6959
6896
|
),
|
|
6960
6897
|
children: [
|
|
6961
|
-
/* @__PURE__ */ h("div", { className: "basis-1/4 text-slate-300", children: /* @__PURE__ */ h(
|
|
6898
|
+
/* @__PURE__ */ h("div", { className: "basis-1/4 text-slate-300", children: /* @__PURE__ */ h(fo, {}) }),
|
|
6962
6899
|
/* @__PURE__ */ j(
|
|
6963
6900
|
"div",
|
|
6964
6901
|
{
|
|
@@ -6974,13 +6911,13 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
6974
6911
|
),
|
|
6975
6912
|
children: [
|
|
6976
6913
|
/* @__PURE__ */ h("h1", { children: k }),
|
|
6977
|
-
/* @__PURE__ */ h("h2", { children:
|
|
6914
|
+
/* @__PURE__ */ h("h2", { children: Mo })
|
|
6978
6915
|
]
|
|
6979
6916
|
}
|
|
6980
6917
|
)
|
|
6981
6918
|
]
|
|
6982
6919
|
}
|
|
6983
|
-
),
|
|
6920
|
+
), Fo = () => {
|
|
6984
6921
|
const { login: e, logoutReason: t, loginWithPasskey: r } = us(), [s, a] = ce(""), [n, i] = ce(""), [o, c] = ce(!0), [f, d] = ce({
|
|
6985
6922
|
username: "",
|
|
6986
6923
|
password: ""
|
|
@@ -7000,10 +6937,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
7000
6937
|
className: Cs({
|
|
7001
6938
|
extraClass: "rounded-md pb-10"
|
|
7002
6939
|
}),
|
|
7003
|
-
children: /* @__PURE__ */ h(
|
|
6940
|
+
children: /* @__PURE__ */ h(Uo, {})
|
|
7004
6941
|
}
|
|
7005
6942
|
),
|
|
7006
|
-
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(
|
|
6943
|
+
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(Eo, { alignHorizontal: "center", children: /* @__PURE__ */ h(ge, { span: 6, children: /* @__PURE__ */ j(ho, { mode: "dark", children: [
|
|
7007
6944
|
/* @__PURE__ */ h(ge, { 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 }) }),
|
|
7008
6945
|
/* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
|
|
7009
6946
|
zt,
|
|
@@ -7037,14 +6974,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
7037
6974
|
mode: "dark",
|
|
7038
6975
|
focusMode: "light",
|
|
7039
6976
|
name: "password",
|
|
7040
|
-
label:
|
|
6977
|
+
label: Lo,
|
|
7041
6978
|
rightElement: /* @__PURE__ */ h(
|
|
7042
|
-
|
|
6979
|
+
nt,
|
|
7043
6980
|
{
|
|
7044
6981
|
focusMode: "light",
|
|
7045
6982
|
mode: "dark",
|
|
7046
6983
|
label: o ? "Show" : "Hide",
|
|
7047
|
-
children: o ? /* @__PURE__ */ h(
|
|
6984
|
+
children: o ? /* @__PURE__ */ h(yo, {}) : /* @__PURE__ */ h(mo, {})
|
|
7048
6985
|
}
|
|
7049
6986
|
),
|
|
7050
6987
|
onMaskChange: c,
|
|
@@ -7067,44 +7004,44 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
7067
7004
|
noBorder: !0,
|
|
7068
7005
|
type: "submit",
|
|
7069
7006
|
className: "mt-7",
|
|
7070
|
-
children:
|
|
7007
|
+
children: xo
|
|
7071
7008
|
}
|
|
7072
7009
|
) }),
|
|
7073
7010
|
!Ns() && /* @__PURE__ */ j(Nr, { children: [
|
|
7074
7011
|
/* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
7075
7012
|
/* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
|
|
7076
|
-
|
|
7013
|
+
nt,
|
|
7077
7014
|
{
|
|
7078
7015
|
variant: "selected",
|
|
7079
7016
|
mode: "dark",
|
|
7080
7017
|
focusMode: "light",
|
|
7081
7018
|
fullWidth: !0,
|
|
7082
7019
|
className: "mb-4",
|
|
7083
|
-
labelRight:
|
|
7020
|
+
labelRight: Do,
|
|
7084
7021
|
onClick: r,
|
|
7085
|
-
children: /* @__PURE__ */ h(
|
|
7022
|
+
children: /* @__PURE__ */ h(po, { size: "size-7" })
|
|
7086
7023
|
}
|
|
7087
7024
|
) })
|
|
7088
7025
|
] })
|
|
7089
7026
|
] }) }) }) })
|
|
7090
7027
|
] });
|
|
7091
|
-
},
|
|
7028
|
+
}, Ho = new URL(document.location.href).searchParams, Cr = !!Ho.get("debug") || !1, Ko = Vs(() => import(
|
|
7092
7029
|
/* webpackChunkName: "LazyApp" */
|
|
7093
|
-
"./App.
|
|
7094
|
-
).then((e) => e.App)),
|
|
7030
|
+
"./App.CtFpHv2O.js"
|
|
7031
|
+
).then((e) => e.App)), Go = new pa(), kr = ({
|
|
7095
7032
|
isComponent: e,
|
|
7096
7033
|
headerHeight: t
|
|
7097
7034
|
}) => {
|
|
7098
7035
|
const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = us();
|
|
7099
|
-
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Ws, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(ya, { client:
|
|
7100
|
-
|
|
7036
|
+
return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Ws, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(ya, { client: Go, children: /* @__PURE__ */ h(
|
|
7037
|
+
gi,
|
|
7101
7038
|
{
|
|
7102
7039
|
user: a?.username,
|
|
7103
7040
|
getAccessToken: n,
|
|
7104
|
-
children: /* @__PURE__ */ h(
|
|
7041
|
+
children: /* @__PURE__ */ h(Ko, { isComponent: e, headerHeight: t })
|
|
7105
7042
|
}
|
|
7106
|
-
) }) }) : /* @__PURE__ */ h(
|
|
7107
|
-
},
|
|
7043
|
+
) }) }) : /* @__PURE__ */ h(Fo, {});
|
|
7044
|
+
}, Bo = ({
|
|
7108
7045
|
isComponent: e = !1,
|
|
7109
7046
|
headerHeight: t = 0,
|
|
7110
7047
|
domain: r = Os
|
|
@@ -7121,8 +7058,8 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
7121
7058
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
|
7122
7059
|
children: /* @__PURE__ */ h(kr, { isComponent: e, headerHeight: t })
|
|
7123
7060
|
}
|
|
7124
|
-
) : /* @__PURE__ */ h(wr, { clientId: Tr, domain: r, debug: Cr, children: /* @__PURE__ */ h(kr, { isComponent: e, headerHeight: t }) })),
|
|
7125
|
-
|
|
7061
|
+
) : /* @__PURE__ */ h(wr, { clientId: Tr, domain: r, debug: Cr, children: /* @__PURE__ */ h(kr, { isComponent: e, headerHeight: t }) })), Ml = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
|
|
7062
|
+
Bo,
|
|
7126
7063
|
{
|
|
7127
7064
|
isComponent: !0,
|
|
7128
7065
|
domain: e,
|
|
@@ -7130,137 +7067,137 @@ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "
|
|
|
7130
7067
|
}
|
|
7131
7068
|
);
|
|
7132
7069
|
export {
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7070
|
+
Vc as $,
|
|
7071
|
+
El as ABOUT_TITLE,
|
|
7072
|
+
ac as ACTION_RESET_PROMPT,
|
|
7073
|
+
tc as ACTION_SEARCH,
|
|
7074
|
+
rc as ACTION_SORT,
|
|
7075
|
+
sc as ACTION_TOGGLE_PROMPT,
|
|
7076
|
+
kl as APP_CLASSNAME,
|
|
7077
|
+
Lc as C,
|
|
7078
|
+
xs as C$1,
|
|
7079
|
+
$l as CARDS,
|
|
7080
|
+
vl as CLIPBOARD_PROMPT,
|
|
7081
|
+
wc as DEFAULT_ICON_ACTION_SIZE,
|
|
7082
|
+
ut as E,
|
|
7083
|
+
ec as ERROR_MESSAGE,
|
|
7084
|
+
Tl as FOOTER_DISCLAIMERS,
|
|
7085
|
+
Hc as H,
|
|
7086
|
+
gl as HISTORY_TITLE,
|
|
7087
|
+
ht as I,
|
|
7088
|
+
Ec as INFINITE_SCROLL_LIMIT,
|
|
7089
|
+
gc as INFINITE_SCROLL_THRESHOLD,
|
|
7090
|
+
_c as INPUT_BOTTOM_OFFSET,
|
|
7091
|
+
Cc as INPUT_BOTTOM_OFFSET_EXTRA,
|
|
7092
|
+
Oc as INPUT_BOTTOM_OFFSET_IPAD,
|
|
7093
|
+
Rc as INPUT_BOTTOM_OFFSET_IPHONE,
|
|
7094
|
+
wl as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
|
7095
|
+
Sl as INPUT_PLACEHOLDER_TEXT_ENTER,
|
|
7096
|
+
bl as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
|
7097
|
+
Wc as J,
|
|
7098
|
+
Eo as L,
|
|
7099
|
+
mc as LOCAL_STORAGE_CHAT_ID,
|
|
7100
|
+
dc as LOCAL_STORAGE_FAVORITES_ONLY,
|
|
7101
|
+
yc as LOCAL_STORAGE_FULL_SCREEN,
|
|
7102
|
+
pc as LOCAL_STORAGE_OLED_MODE,
|
|
7166
7103
|
ds as LOCAL_STORAGE_PREFIX,
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
So as S,
|
|
7104
|
+
hc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
7105
|
+
fc as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
|
7106
|
+
nc as LOCAL_STORAGE_SEARCH,
|
|
7107
|
+
ic as LOCAL_STORAGE_SORT,
|
|
7108
|
+
uc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
|
7109
|
+
lc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
|
7110
|
+
oc as LOCAL_STORAGE_SORT_TIMESTAMP,
|
|
7111
|
+
cc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
|
7112
|
+
fl as LOG_OUT,
|
|
7113
|
+
Uo as Logo,
|
|
7114
|
+
$c as N,
|
|
7115
|
+
pl as PROFILE_TITLE,
|
|
7116
|
+
Il as PROMPTS_DESCRIPTION,
|
|
7117
|
+
bc as PROMPT_CLASSNAME,
|
|
7118
|
+
Sc as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
7119
|
+
ho as S,
|
|
7184
7120
|
D as SERVICE_TYPES,
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7121
|
+
yl as SETTINGS_TITLE,
|
|
7122
|
+
Ml as SassySaint,
|
|
7123
|
+
Cl as TOAST_CACHE_DISABLED,
|
|
7124
|
+
Ol as TOAST_CACHE_ENABLED,
|
|
7125
|
+
_l as TOAST_CHAT_DELETED,
|
|
7126
|
+
Rl as TOAST_CHAT_SAVED,
|
|
7127
|
+
Al as TOAST_PROVIDER_CHANGED,
|
|
7128
|
+
Nl as TRIMESTERS,
|
|
7129
|
+
Pl as TRIMESTERS_SHORT,
|
|
7130
|
+
Tc as UI_BUTTON_SCROLL_BUFFER,
|
|
7131
|
+
Ic as UI_DEFAULT_MAIN_HEIGHT,
|
|
7132
|
+
Ac as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
|
7133
|
+
vc as UI_FOOTER_BUFFER,
|
|
7134
|
+
ml as USAGE_TITLE,
|
|
7135
|
+
Gc as W,
|
|
7200
7136
|
zt as Y,
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
Di as getCurrentGeoLocation,
|
|
7137
|
+
Kc as Y$1,
|
|
7138
|
+
qc as Z,
|
|
7139
|
+
qi as applyOledMode,
|
|
7140
|
+
k as b,
|
|
7141
|
+
co as b$1,
|
|
7142
|
+
Bi as canEvaluateModels,
|
|
7143
|
+
Ki as convertCamelCaseToReadable,
|
|
7144
|
+
Li as debounce,
|
|
7145
|
+
xc as f,
|
|
7146
|
+
Nc as getCacheInfo,
|
|
7147
|
+
Oi as getCurrentGeoLocation,
|
|
7213
7148
|
ks as getLayoutPaddingClass,
|
|
7214
7149
|
Cs as getMessageContaintWrapperClass,
|
|
7215
7150
|
ae as graphQLRequest,
|
|
7216
|
-
|
|
7217
|
-
|
|
7151
|
+
Dc as h,
|
|
7152
|
+
Qe as h$1,
|
|
7153
|
+
kc as handleServiceWorkerToggle,
|
|
7218
7154
|
Ls as i,
|
|
7219
7155
|
jt as isDev,
|
|
7220
|
-
|
|
7156
|
+
Hi as isPWAMode,
|
|
7221
7157
|
Ps as isProbablyMobile,
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7158
|
+
Fi as isProbablyiPad,
|
|
7159
|
+
Ui as isProbablyiPhone,
|
|
7160
|
+
Mt as isServiceWorkerEnabled,
|
|
7225
7161
|
Ns as isTauri,
|
|
7226
7162
|
Me as it,
|
|
7227
7163
|
ge as j,
|
|
7228
|
-
|
|
7229
|
-
|
|
7164
|
+
Uc as k,
|
|
7165
|
+
po as l,
|
|
7166
|
+
Mc as m,
|
|
7230
7167
|
us as n,
|
|
7231
|
-
|
|
7168
|
+
Mi as numberFormatter,
|
|
7232
7169
|
Ds as o,
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
hl as useDeleteMemory,
|
|
7253
|
-
gl as useEntitlements,
|
|
7254
|
-
pl as useExpiredMemories,
|
|
7170
|
+
Ci as obfuscate,
|
|
7171
|
+
Di as pluralize,
|
|
7172
|
+
Ni as renderDataAsList,
|
|
7173
|
+
pi as serverUrl,
|
|
7174
|
+
jc as setNewProvider,
|
|
7175
|
+
Qc as setUserPlan,
|
|
7176
|
+
Pc as t,
|
|
7177
|
+
nt as te,
|
|
7178
|
+
ki as unObfuscate,
|
|
7179
|
+
Yc as useChangelogs,
|
|
7180
|
+
Zc as useChat,
|
|
7181
|
+
Xc as useChatsHistory,
|
|
7182
|
+
sl as useChatsUsage,
|
|
7183
|
+
ol as useDeleteAllActiveMemories,
|
|
7184
|
+
cl as useDeleteAllExpiredMemories,
|
|
7185
|
+
tl as useDeleteChat,
|
|
7186
|
+
il as useDeleteMemory,
|
|
7187
|
+
dl as useEntitlements,
|
|
7188
|
+
ll as useExpiredMemories,
|
|
7255
7189
|
se as useQueryClient,
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7190
|
+
ul as useRestoreMemory,
|
|
7191
|
+
el as useSaveChat,
|
|
7192
|
+
Jc as useServerCapabilities,
|
|
7193
|
+
rl as useToggleFavoriteChat,
|
|
7194
|
+
nl as useUpdateMemory,
|
|
7195
|
+
zc as useUserChatStats,
|
|
7196
|
+
al as useUserMemories,
|
|
7197
|
+
yi as useUserPreferences,
|
|
7198
|
+
hl as utilities,
|
|
7199
|
+
Fc as w,
|
|
7200
|
+
Hs as x,
|
|
7201
|
+
hi as x$1,
|
|
7202
|
+
Bc as z
|
|
7266
7203
|
};
|