@versini/sassysaint 8.90.3 → 8.92.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.CPjLntlq.js → AboutChangelog.BOP3BSrk.js} +3 -3
- package/dist/chunks/AboutEntry.Bj8HUsU4.js +89 -0
- package/dist/chunks/{App.zkb8gvM3.js → App.DAQta2pJ.js} +638 -613
- package/dist/chunks/{Chart.DLxNkoZh.js → Chart.4eKSXUC7.js} +1133 -1143
- package/dist/chunks/ChatBubbleAssistant.CSgJfGV8.js +71 -0
- package/dist/chunks/{ChatBubbleUser.BVHUcko2.js → ChatBubbleUser.K3_2TN_h.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BupKfYV_.js → ChatHistoryTable.BngsfWch.js} +8 -8
- package/dist/chunks/{HistoryEntry.B0rPR2OE.js → HistoryEntry.BXEni06v.js} +38 -37
- package/dist/chunks/{ProfileEntry.NsztPEkp.js → ProfileEntry.B5H9_Q-0.js} +21 -20
- package/dist/chunks/{SettingsEntry.CDOPc6iD.js → SettingsEntry.D5cipDqa.js} +25 -24
- package/dist/chunks/UsageEntry.DPue9312.js +211 -0
- package/dist/chunks/{UserMemoriesPanel.4Bgcvr6X.js → UserMemoriesPanel.CwAnAj0p.js} +13 -12
- package/dist/chunks/{index.ChYRuj2g.js → index.BECvwaM5.js} +764 -736
- package/dist/chunks/{index.BAQ69A14.js → index.C5Rg3-rY.js} +1 -1
- package/dist/chunks/{index.BqwARS2K.js → index.C9N2vELq.js} +1 -1
- package/dist/chunks/{index.D12uAEYv.js → index.CGdw9MqW.js} +2 -2
- package/dist/chunks/{index.DIt56Ck2.js → index.CzSTlOsu.js} +3 -3
- package/dist/chunks/{index.Bg0DWoXf.js → index.Drx_3ie_.js} +1 -1
- package/dist/chunks/{index.DUcwF6lX.js → index.N6iGJtWi.js} +1 -1
- package/dist/chunks/{index.wC_fDv6h.js → index.NHQBZNrH.js} +1 -1
- package/dist/chunks/{index.BMVDRH6N.js → index.hL9trLAw.js} +1 -1
- package/dist/chunks/{useMarkdown.D-AXpwz2.js → useMarkdown.keqTeXmn.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
- package/dist/chunks/AboutEntry.D4NbCMmI.js +0 -69
- package/dist/chunks/ChatBubbleAssistant.CT-lt9VL.js +0 -82
- package/dist/chunks/UsageEntry.Bq3qWoi3.js +0 -152
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import { jsx as c, jsxs as E, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import ee, { createContext as
|
|
1
|
+
import { jsx as c, jsxs as E, Fragment as Kr } from "react/jsx-runtime";
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import ee, { createContext as Gt, useReducer as Vr, useCallback as M, useRef as B, useEffect as A, useSyncExternalStore as Gr, useContext as ze, useState as X, useMemo as Fe, useId as tn, useLayoutEffect as at, Suspense as rn, lazy as sn } from "react";
|
|
4
4
|
import m from "clsx";
|
|
5
|
-
let
|
|
5
|
+
let nn = "standard";
|
|
6
6
|
var k, U = ((k = {})[k.NewChat = 0] = "NewChat", k[k.Prompts = 1] = "Prompts", k[k.Attachment = 2] = "Attachment", k[k.PrivateChat = 3] = "PrivateChat", k[k.Reasoning = 4] = "Reasoning", k[k.Send = 5] = "Send", k[k.Header = 6] = "Header", k[k.Provider = 7] = "Provider", k[k.Logo = 8] = "Logo", k[k.Placeholder = 9] = "Placeholder", k[k.Footer = 10] = "Footer", k);
|
|
7
|
-
let Oc = "user", kc = "assistant",
|
|
7
|
+
let Oc = "user", kc = "assistant", mt = "OpenAI", zt = "Anthropic", qt = "Google", an = "Perplexity", on = mt, cn = [mt, zt, qt], zr = "gpt-5", qr = "gpt-5-mini", Wr = "gpt-5-nano", jr = "gpt-4.1-nano", Qr = "claude-haiku-4-5", Yr = "claude-sonnet-4-5", Jr = "gemini-2.5-flash", Xr = "gemini-3-pro-preview", Zr = "sonar", es = "sonar-pro", Pc = { [zr]: "GPT-5", [qr]: "GPT-5 Mini", [Wr]: "GPT-5 Nano", [jr]: "GPT-4.1 Nano", [Qr]: "Claude Haiku 4.5", [Yr]: "Claude Sonnet 4.5", [Jr]: "Gemini 2.5 Flash", [Xr]: "Gemini 3 Pro", [Zr]: "Sonar", [es]: "Sonar Pro" }, ts = { [mt]: [jr, zr, qr, Wr], [zt]: [Qr, Yr], [qt]: [Jr, Xr], [an]: [Zr, es] }, Nc = "x-diggidy-chat-id", Mc = "timestamp", xc = "tokenUsage", L = "Diggidy", Lc = { TOOL: { MEMORIES: "getUserMemories" }, ADDON: { ATTACHMENTS: "addon:attachments", REASONING: "addon:reasoning" } }, Dc = (e) => {
|
|
8
8
|
if (!e || e.length === 0) return [];
|
|
9
9
|
let t = /* @__PURE__ */ new Set();
|
|
10
|
-
for (let r of e) for (let [s, n] of Object.entries(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
10
|
+
for (let r of e) for (let [s, n] of Object.entries(ts)) n.includes(r) && (s === mt || s === zt || s === qt) && t.add(s);
|
|
11
|
+
return cn.filter((r) => t.has(r));
|
|
12
|
+
}, ln = (e) => {
|
|
13
13
|
let t = /* @__PURE__ */ new Map();
|
|
14
14
|
if (!e || e.length === 0) return t;
|
|
15
|
-
for (let r of e) for (let [s, n] of Object.entries(
|
|
15
|
+
for (let r of e) for (let [s, n] of Object.entries(ts)) if (n.includes(r)) {
|
|
16
16
|
t.has(s) || t.set(s, []), t.get(s)?.push(r);
|
|
17
17
|
break;
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
|
-
},
|
|
21
|
-
for (let t of
|
|
20
|
+
}, $c = (e) => {
|
|
21
|
+
for (let t of ln(e).values()) if (t.length > 1) return !0;
|
|
22
22
|
return !1;
|
|
23
|
-
},
|
|
24
|
-
function ln(e) {
|
|
25
|
-
return e ? new Set(e) : null;
|
|
26
|
-
}
|
|
23
|
+
}, Uc = (e, t) => !!e && !!t && t.length !== 0 && t.includes(e);
|
|
27
24
|
function un(e, t, r) {
|
|
28
25
|
if (!t || Array.isArray(t) && t.length === 0) return !0;
|
|
29
|
-
let s = e instanceof Set ? e :
|
|
26
|
+
let s = e instanceof Set ? e : e ? new Set(e) : null;
|
|
30
27
|
return !!s && s.size !== 0 && (typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((n) => s.has(n)) : t.every((n) => s.has(n)));
|
|
31
28
|
}
|
|
32
|
-
var
|
|
29
|
+
var Hc = "subtle";
|
|
33
30
|
const dn = {
|
|
34
31
|
[U.NewChat]: "fill-[#7A9BC4]",
|
|
35
32
|
[U.Prompts]: "fill-[#B8A4D5]",
|
|
@@ -120,10 +117,10 @@ function Z() {
|
|
|
120
117
|
function mn(e, t) {
|
|
121
118
|
return typeof e == "function" ? e(t) : e;
|
|
122
119
|
}
|
|
123
|
-
function
|
|
120
|
+
function xt(e) {
|
|
124
121
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
125
122
|
}
|
|
126
|
-
function
|
|
123
|
+
function rs(e, t) {
|
|
127
124
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
128
125
|
}
|
|
129
126
|
function we(e, t) {
|
|
@@ -132,7 +129,7 @@ function we(e, t) {
|
|
|
132
129
|
function re(e, t) {
|
|
133
130
|
return typeof e == "function" ? e(t) : e;
|
|
134
131
|
}
|
|
135
|
-
function
|
|
132
|
+
function ir(e, t) {
|
|
136
133
|
const {
|
|
137
134
|
type: r = "all",
|
|
138
135
|
exact: s,
|
|
@@ -143,7 +140,7 @@ function ar(e, t) {
|
|
|
143
140
|
} = e;
|
|
144
141
|
if (i) {
|
|
145
142
|
if (s) {
|
|
146
|
-
if (t.queryHash !==
|
|
143
|
+
if (t.queryHash !== Wt(i, t.options))
|
|
147
144
|
return !1;
|
|
148
145
|
} else if (!Be(t.queryKey, i))
|
|
149
146
|
return !1;
|
|
@@ -155,7 +152,7 @@ function ar(e, t) {
|
|
|
155
152
|
}
|
|
156
153
|
return !(typeof o == "boolean" && t.isStale() !== o || n && n !== t.state.fetchStatus || a && !a(t));
|
|
157
154
|
}
|
|
158
|
-
function
|
|
155
|
+
function or(e, t) {
|
|
159
156
|
const { exact: r, status: s, predicate: n, mutationKey: a } = e;
|
|
160
157
|
if (a) {
|
|
161
158
|
if (!t.options.mutationKey)
|
|
@@ -168,24 +165,24 @@ function ir(e, t) {
|
|
|
168
165
|
}
|
|
169
166
|
return !(s && t.state.status !== s || n && !n(t));
|
|
170
167
|
}
|
|
171
|
-
function
|
|
168
|
+
function Wt(e, t) {
|
|
172
169
|
return (t?.queryKeyHashFn || Ie)(e);
|
|
173
170
|
}
|
|
174
171
|
function Ie(e) {
|
|
175
172
|
return JSON.stringify(
|
|
176
173
|
e,
|
|
177
|
-
(t, r) =>
|
|
174
|
+
(t, r) => Dt(r) ? Object.keys(r).sort().reduce((s, n) => (s[n] = r[n], s), {}) : r
|
|
178
175
|
);
|
|
179
176
|
}
|
|
180
177
|
function Be(e, t) {
|
|
181
178
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => Be(e[r], t[r])) : !1;
|
|
182
179
|
}
|
|
183
180
|
var gn = Object.prototype.hasOwnProperty;
|
|
184
|
-
function
|
|
181
|
+
function Lt(e, t) {
|
|
185
182
|
if (e === t)
|
|
186
183
|
return e;
|
|
187
|
-
const r =
|
|
188
|
-
if (!r && !(
|
|
184
|
+
const r = cr(e) && cr(t);
|
|
185
|
+
if (!r && !(Dt(e) && Dt(t))) return t;
|
|
189
186
|
const n = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), i = a.length, o = r ? new Array(i) : {};
|
|
190
187
|
let l = 0;
|
|
191
188
|
for (let f = 0; f < i; f++) {
|
|
@@ -198,12 +195,12 @@ function xt(e, t) {
|
|
|
198
195
|
o[d] = u;
|
|
199
196
|
continue;
|
|
200
197
|
}
|
|
201
|
-
const p =
|
|
198
|
+
const p = Lt(h, u);
|
|
202
199
|
o[d] = p, p === h && l++;
|
|
203
200
|
}
|
|
204
201
|
return n === i && l === n ? e : o;
|
|
205
202
|
}
|
|
206
|
-
function
|
|
203
|
+
function it(e, t) {
|
|
207
204
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
208
205
|
return !1;
|
|
209
206
|
for (const r in e)
|
|
@@ -211,19 +208,19 @@ function at(e, t) {
|
|
|
211
208
|
return !1;
|
|
212
209
|
return !0;
|
|
213
210
|
}
|
|
214
|
-
function
|
|
211
|
+
function cr(e) {
|
|
215
212
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
216
213
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!
|
|
214
|
+
function Dt(e) {
|
|
215
|
+
if (!lr(e))
|
|
219
216
|
return !1;
|
|
220
217
|
const t = e.constructor;
|
|
221
218
|
if (t === void 0)
|
|
222
219
|
return !0;
|
|
223
220
|
const r = t.prototype;
|
|
224
|
-
return !(!
|
|
221
|
+
return !(!lr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
225
222
|
}
|
|
226
|
-
function
|
|
223
|
+
function lr(e) {
|
|
227
224
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
228
225
|
}
|
|
229
226
|
function En(e) {
|
|
@@ -231,19 +228,19 @@ function En(e) {
|
|
|
231
228
|
ve.setTimeout(t, e);
|
|
232
229
|
});
|
|
233
230
|
}
|
|
234
|
-
function
|
|
231
|
+
function $t(e, t, r) {
|
|
235
232
|
if (typeof r.structuralSharing == "function")
|
|
236
233
|
return r.structuralSharing(e, t);
|
|
237
234
|
if (r.structuralSharing !== !1) {
|
|
238
235
|
if (process.env.NODE_ENV !== "production")
|
|
239
236
|
try {
|
|
240
|
-
return
|
|
237
|
+
return Lt(e, t);
|
|
241
238
|
} catch (s) {
|
|
242
239
|
throw console.error(
|
|
243
240
|
`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}`
|
|
244
241
|
), s;
|
|
245
242
|
}
|
|
246
|
-
return
|
|
243
|
+
return Lt(e, t);
|
|
247
244
|
}
|
|
248
245
|
return t;
|
|
249
246
|
}
|
|
@@ -255,13 +252,13 @@ function Sn(e, t, r = 0) {
|
|
|
255
252
|
const s = [t, ...e];
|
|
256
253
|
return r && s.length > r ? s.slice(0, -1) : s;
|
|
257
254
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
255
|
+
var ot = Symbol();
|
|
256
|
+
function ss(e, t) {
|
|
257
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === ot && console.error(
|
|
261
258
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
262
|
-
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn ===
|
|
259
|
+
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === ot ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
263
260
|
}
|
|
264
|
-
function
|
|
261
|
+
function ns(e, t) {
|
|
265
262
|
return typeof e == "function" ? e(...t) : !!e;
|
|
266
263
|
}
|
|
267
264
|
var bn = class extends De {
|
|
@@ -301,8 +298,8 @@ var bn = class extends De {
|
|
|
301
298
|
isFocused() {
|
|
302
299
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
303
300
|
}
|
|
304
|
-
},
|
|
305
|
-
function
|
|
301
|
+
}, jt = new bn();
|
|
302
|
+
function Ut() {
|
|
306
303
|
let e, t;
|
|
307
304
|
const r = new Promise((n, a) => {
|
|
308
305
|
e = n, t = a;
|
|
@@ -415,30 +412,30 @@ var F = Tn(), In = class extends De {
|
|
|
415
412
|
isOnline() {
|
|
416
413
|
return this.#e;
|
|
417
414
|
}
|
|
418
|
-
},
|
|
415
|
+
}, ct = new In();
|
|
419
416
|
function _n(e) {
|
|
420
417
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
421
418
|
}
|
|
422
|
-
function
|
|
423
|
-
return (e ?? "online") === "online" ?
|
|
419
|
+
function as(e) {
|
|
420
|
+
return (e ?? "online") === "online" ? ct.isOnline() : !0;
|
|
424
421
|
}
|
|
425
|
-
var
|
|
422
|
+
var Ht = class extends Error {
|
|
426
423
|
constructor(e) {
|
|
427
424
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
428
425
|
}
|
|
429
426
|
};
|
|
430
|
-
function
|
|
427
|
+
function is(e) {
|
|
431
428
|
let t = !1, r = 0, s;
|
|
432
|
-
const n =
|
|
429
|
+
const n = Ut(), a = () => n.status !== "pending", i = (g) => {
|
|
433
430
|
if (!a()) {
|
|
434
|
-
const w = new
|
|
431
|
+
const w = new Ht(g);
|
|
435
432
|
u(w), e.onCancel?.(w);
|
|
436
433
|
}
|
|
437
434
|
}, o = () => {
|
|
438
435
|
t = !0;
|
|
439
436
|
}, l = () => {
|
|
440
437
|
t = !1;
|
|
441
|
-
}, f = () =>
|
|
438
|
+
}, f = () => jt.isFocused() && (e.networkMode === "always" || ct.isOnline()) && e.canRun(), d = () => as(e.networkMode) && e.canRun(), h = (g) => {
|
|
442
439
|
a() || (s?.(), n.resolve(g));
|
|
443
440
|
}, u = (g) => {
|
|
444
441
|
a() || (s?.(), n.reject(g));
|
|
@@ -461,12 +458,12 @@ function as(e) {
|
|
|
461
458
|
Promise.resolve(g).then(h).catch((b) => {
|
|
462
459
|
if (a())
|
|
463
460
|
return;
|
|
464
|
-
const x = e.retry ?? (Te ? 0 : 3), R = e.retryDelay ?? _n,
|
|
461
|
+
const x = e.retry ?? (Te ? 0 : 3), R = e.retryDelay ?? _n, J = typeof R == "function" ? R(r, b) : R, P = x === !0 || typeof x == "number" && r < x || typeof x == "function" && x(r, b);
|
|
465
462
|
if (t || !P) {
|
|
466
463
|
u(b);
|
|
467
464
|
return;
|
|
468
465
|
}
|
|
469
|
-
r++, e.onFail?.(r, b), En(
|
|
466
|
+
r++, e.onFail?.(r, b), En(J).then(() => f() ? void 0 : p()).then(() => {
|
|
470
467
|
t ? u(b) : y();
|
|
471
468
|
});
|
|
472
469
|
});
|
|
@@ -482,13 +479,13 @@ function as(e) {
|
|
|
482
479
|
start: () => (d() ? y() : p().then(y), n)
|
|
483
480
|
};
|
|
484
481
|
}
|
|
485
|
-
var
|
|
482
|
+
var os = class {
|
|
486
483
|
#e;
|
|
487
484
|
destroy() {
|
|
488
485
|
this.clearGcTimeout();
|
|
489
486
|
}
|
|
490
487
|
scheduleGc() {
|
|
491
|
-
this.clearGcTimeout(),
|
|
488
|
+
this.clearGcTimeout(), xt(this.gcTime) && (this.#e = ve.setTimeout(() => {
|
|
492
489
|
this.optionalRemove();
|
|
493
490
|
}, this.gcTime));
|
|
494
491
|
}
|
|
@@ -501,7 +498,7 @@ var is = class {
|
|
|
501
498
|
clearGcTimeout() {
|
|
502
499
|
this.#e && (ve.clearTimeout(this.#e), this.#e = void 0);
|
|
503
500
|
}
|
|
504
|
-
}, An = class extends
|
|
501
|
+
}, An = class extends os {
|
|
505
502
|
#e;
|
|
506
503
|
#t;
|
|
507
504
|
#r;
|
|
@@ -510,7 +507,7 @@ var is = class {
|
|
|
510
507
|
#i;
|
|
511
508
|
#o;
|
|
512
509
|
constructor(e) {
|
|
513
|
-
super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#n = e.client, this.#r = this.#n.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e =
|
|
510
|
+
super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#n = e.client, this.#r = this.#n.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = dr(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
|
|
514
511
|
}
|
|
515
512
|
get meta() {
|
|
516
513
|
return this.options.meta;
|
|
@@ -520,9 +517,9 @@ var is = class {
|
|
|
520
517
|
}
|
|
521
518
|
setOptions(e) {
|
|
522
519
|
if (this.options = { ...this.#i, ...e }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
523
|
-
const t =
|
|
520
|
+
const t = dr(this.options);
|
|
524
521
|
t.data !== void 0 && (this.setState(
|
|
525
|
-
|
|
522
|
+
ur(t.data, t.dataUpdatedAt)
|
|
526
523
|
), this.#e = t);
|
|
527
524
|
}
|
|
528
525
|
}
|
|
@@ -530,7 +527,7 @@ var is = class {
|
|
|
530
527
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
531
528
|
}
|
|
532
529
|
setData(e, t) {
|
|
533
|
-
const r =
|
|
530
|
+
const r = $t(this.state.data, e, this.options);
|
|
534
531
|
return this.#a({
|
|
535
532
|
data: r,
|
|
536
533
|
type: "success",
|
|
@@ -557,7 +554,7 @@ var is = class {
|
|
|
557
554
|
);
|
|
558
555
|
}
|
|
559
556
|
isDisabled() {
|
|
560
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
557
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ot || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
|
|
561
558
|
}
|
|
562
559
|
isStatic() {
|
|
563
560
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
@@ -570,7 +567,7 @@ var is = class {
|
|
|
570
567
|
) : this.state.data === void 0 || this.state.isInvalidated;
|
|
571
568
|
}
|
|
572
569
|
isStaleByTime(e = 0) {
|
|
573
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
570
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !rs(this.state.dataUpdatedAt, e);
|
|
574
571
|
}
|
|
575
572
|
onFocus() {
|
|
576
573
|
this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
|
|
@@ -613,7 +610,7 @@ var is = class {
|
|
|
613
610
|
get: () => (this.#o = !0, r.signal)
|
|
614
611
|
});
|
|
615
612
|
}, n = () => {
|
|
616
|
-
const o =
|
|
613
|
+
const o = ss(this.options, t), f = (() => {
|
|
617
614
|
const d = {
|
|
618
615
|
client: this.#n,
|
|
619
616
|
queryKey: this.queryKey,
|
|
@@ -637,11 +634,11 @@ var is = class {
|
|
|
637
634
|
};
|
|
638
635
|
return s(o), o;
|
|
639
636
|
})();
|
|
640
|
-
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#a({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s =
|
|
637
|
+
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#a({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = is({
|
|
641
638
|
initialPromise: t?.initialPromise,
|
|
642
639
|
fn: i.fetchFn,
|
|
643
640
|
onCancel: (o) => {
|
|
644
|
-
o instanceof
|
|
641
|
+
o instanceof Ht && o.revert && this.setState({
|
|
645
642
|
...this.#t,
|
|
646
643
|
fetchStatus: "idle"
|
|
647
644
|
}), r.abort();
|
|
@@ -672,7 +669,7 @@ var is = class {
|
|
|
672
669
|
this
|
|
673
670
|
), o;
|
|
674
671
|
} catch (o) {
|
|
675
|
-
if (o instanceof
|
|
672
|
+
if (o instanceof Ht) {
|
|
676
673
|
if (o.silent)
|
|
677
674
|
return this.#s.promise;
|
|
678
675
|
if (o.revert) {
|
|
@@ -718,13 +715,13 @@ var is = class {
|
|
|
718
715
|
case "fetch":
|
|
719
716
|
return {
|
|
720
717
|
...r,
|
|
721
|
-
...
|
|
718
|
+
...cs(r.data, this.options),
|
|
722
719
|
fetchMeta: e.meta ?? null
|
|
723
720
|
};
|
|
724
721
|
case "success":
|
|
725
722
|
const s = {
|
|
726
723
|
...r,
|
|
727
|
-
...
|
|
724
|
+
...ur(e.data, e.dataUpdatedAt),
|
|
728
725
|
dataUpdateCount: r.dataUpdateCount + 1,
|
|
729
726
|
...!e.manual && {
|
|
730
727
|
fetchStatus: "idle",
|
|
@@ -764,18 +761,18 @@ var is = class {
|
|
|
764
761
|
});
|
|
765
762
|
}
|
|
766
763
|
};
|
|
767
|
-
function
|
|
764
|
+
function cs(e, t) {
|
|
768
765
|
return {
|
|
769
766
|
fetchFailureCount: 0,
|
|
770
767
|
fetchFailureReason: null,
|
|
771
|
-
fetchStatus:
|
|
768
|
+
fetchStatus: as(t.networkMode) ? "fetching" : "paused",
|
|
772
769
|
...e === void 0 && {
|
|
773
770
|
error: null,
|
|
774
771
|
status: "pending"
|
|
775
772
|
}
|
|
776
773
|
};
|
|
777
774
|
}
|
|
778
|
-
function
|
|
775
|
+
function ur(e, t) {
|
|
779
776
|
return {
|
|
780
777
|
data: e,
|
|
781
778
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -784,7 +781,7 @@ function lr(e, t) {
|
|
|
784
781
|
status: "success"
|
|
785
782
|
};
|
|
786
783
|
}
|
|
787
|
-
function
|
|
784
|
+
function dr(e) {
|
|
788
785
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, s = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
789
786
|
return {
|
|
790
787
|
data: t,
|
|
@@ -803,7 +800,7 @@ function ur(e) {
|
|
|
803
800
|
}
|
|
804
801
|
var Rn = class extends De {
|
|
805
802
|
constructor(e, t) {
|
|
806
|
-
super(), this.options = t, this.#e = e, this.#a = null, this.#o =
|
|
803
|
+
super(), this.options = t, this.#e = e, this.#a = null, this.#o = Ut(), this.bindMethods(), this.setOptions(t);
|
|
807
804
|
}
|
|
808
805
|
#e;
|
|
809
806
|
#t = void 0;
|
|
@@ -826,20 +823,20 @@ var Rn = class extends De {
|
|
|
826
823
|
this.refetch = this.refetch.bind(this);
|
|
827
824
|
}
|
|
828
825
|
onSubscribe() {
|
|
829
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
826
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), hr(this.#t, this.options) ? this.#d() : this.updateResult(), this.#w());
|
|
830
827
|
}
|
|
831
828
|
onUnsubscribe() {
|
|
832
829
|
this.hasListeners() || this.destroy();
|
|
833
830
|
}
|
|
834
831
|
shouldFetchOnReconnect() {
|
|
835
|
-
return
|
|
832
|
+
return Ft(
|
|
836
833
|
this.#t,
|
|
837
834
|
this.options,
|
|
838
835
|
this.options.refetchOnReconnect
|
|
839
836
|
);
|
|
840
837
|
}
|
|
841
838
|
shouldFetchOnWindowFocus() {
|
|
842
|
-
return
|
|
839
|
+
return Ft(
|
|
843
840
|
this.#t,
|
|
844
841
|
this.options,
|
|
845
842
|
this.options.refetchOnWindowFocus
|
|
@@ -854,13 +851,13 @@ var Rn = class extends De {
|
|
|
854
851
|
throw new Error(
|
|
855
852
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
856
853
|
);
|
|
857
|
-
this.#v(), this.#t.setOptions(this.options), t._defaulted && !
|
|
854
|
+
this.#v(), this.#t.setOptions(this.options), t._defaulted && !it(this.options, t) && this.#e.getQueryCache().notify({
|
|
858
855
|
type: "observerOptionsUpdated",
|
|
859
856
|
query: this.#t,
|
|
860
857
|
observer: this
|
|
861
858
|
});
|
|
862
859
|
const s = this.hasListeners();
|
|
863
|
-
s &&
|
|
860
|
+
s && fr(
|
|
864
861
|
this.#t,
|
|
865
862
|
r,
|
|
866
863
|
this.options,
|
|
@@ -920,9 +917,9 @@ var Rn = class extends De {
|
|
|
920
917
|
this.options.staleTime,
|
|
921
918
|
this.#t
|
|
922
919
|
);
|
|
923
|
-
if (Te || this.#n.isStale || !
|
|
920
|
+
if (Te || this.#n.isStale || !xt(e))
|
|
924
921
|
return;
|
|
925
|
-
const r =
|
|
922
|
+
const r = rs(this.#n.dataUpdatedAt, e) + 1;
|
|
926
923
|
this.#l = ve.setTimeout(() => {
|
|
927
924
|
this.#n.isStale || this.updateResult();
|
|
928
925
|
}, r);
|
|
@@ -931,8 +928,8 @@ var Rn = class extends De {
|
|
|
931
928
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
|
|
932
929
|
}
|
|
933
930
|
#E(e) {
|
|
934
|
-
this.#b(), this.#c = e, !(Te || re(this.options.enabled, this.#t) === !1 || !
|
|
935
|
-
(this.options.refetchIntervalInBackground ||
|
|
931
|
+
this.#b(), this.#c = e, !(Te || re(this.options.enabled, this.#t) === !1 || !xt(this.#c) || this.#c === 0) && (this.#u = ve.setInterval(() => {
|
|
932
|
+
(this.options.refetchIntervalInBackground || jt.isFocused()) && this.#d();
|
|
936
933
|
}, this.#c));
|
|
937
934
|
}
|
|
938
935
|
#w() {
|
|
@@ -948,10 +945,10 @@ var Rn = class extends De {
|
|
|
948
945
|
const r = this.#t, s = this.options, n = this.#n, a = this.#s, i = this.#i, l = e !== r ? e.state : this.#r, { state: f } = e;
|
|
949
946
|
let d = { ...f }, h = !1, u;
|
|
950
947
|
if (t._optimisticResults) {
|
|
951
|
-
const I = this.hasListeners(), G = !I &&
|
|
948
|
+
const I = this.hasListeners(), G = !I && hr(e, t), O = I && fr(e, r, t, s);
|
|
952
949
|
(G || O) && (d = {
|
|
953
950
|
...d,
|
|
954
|
-
...
|
|
951
|
+
...cs(f.data, e.options)
|
|
955
952
|
}), t._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
956
953
|
}
|
|
957
954
|
let { error: p, errorUpdatedAt: y, status: g } = d;
|
|
@@ -962,7 +959,7 @@ var Rn = class extends De {
|
|
|
962
959
|
n?.isPlaceholderData && t.placeholderData === i?.placeholderData ? (I = n.data, w = !0) : I = typeof t.placeholderData == "function" ? t.placeholderData(
|
|
963
960
|
this.#f?.state.data,
|
|
964
961
|
this.#f
|
|
965
|
-
) : t.placeholderData, I !== void 0 && (g = "success", u =
|
|
962
|
+
) : t.placeholderData, I !== void 0 && (g = "success", u = $t(
|
|
966
963
|
n?.data,
|
|
967
964
|
I,
|
|
968
965
|
t
|
|
@@ -973,19 +970,19 @@ var Rn = class extends De {
|
|
|
973
970
|
u = this.#h;
|
|
974
971
|
else
|
|
975
972
|
try {
|
|
976
|
-
this.#y = t.select, u = t.select(u), u =
|
|
973
|
+
this.#y = t.select, u = t.select(u), u = $t(n?.data, u, t), this.#h = u, this.#a = null;
|
|
977
974
|
} catch (I) {
|
|
978
975
|
this.#a = I;
|
|
979
976
|
}
|
|
980
977
|
this.#a && (p = this.#a, u = this.#h, y = Date.now(), g = "error");
|
|
981
|
-
const b = d.fetchStatus === "fetching", x = g === "pending", R = g === "error",
|
|
978
|
+
const b = d.fetchStatus === "fetching", x = g === "pending", R = g === "error", J = x && b, P = u !== void 0, N = {
|
|
982
979
|
status: g,
|
|
983
980
|
fetchStatus: d.fetchStatus,
|
|
984
981
|
isPending: x,
|
|
985
982
|
isSuccess: g === "success",
|
|
986
983
|
isError: R,
|
|
987
|
-
isInitialLoading:
|
|
988
|
-
isLoading:
|
|
984
|
+
isInitialLoading: J,
|
|
985
|
+
isLoading: J,
|
|
989
986
|
data: u,
|
|
990
987
|
dataUpdatedAt: d.dataUpdatedAt,
|
|
991
988
|
error: p,
|
|
@@ -1001,7 +998,7 @@ var Rn = class extends De {
|
|
|
1001
998
|
isPaused: d.fetchStatus === "paused",
|
|
1002
999
|
isPlaceholderData: h,
|
|
1003
1000
|
isRefetchError: R && P,
|
|
1004
|
-
isStale:
|
|
1001
|
+
isStale: Qt(e, t),
|
|
1005
1002
|
refetch: this.refetch,
|
|
1006
1003
|
promise: this.#o,
|
|
1007
1004
|
isEnabled: re(t.enabled, e) !== !1
|
|
@@ -1010,7 +1007,7 @@ var Rn = class extends De {
|
|
|
1010
1007
|
const I = (C) => {
|
|
1011
1008
|
N.status === "error" ? C.reject(N.error) : N.data !== void 0 && C.resolve(N.data);
|
|
1012
1009
|
}, G = () => {
|
|
1013
|
-
const C = this.#o = N.promise =
|
|
1010
|
+
const C = this.#o = N.promise = Ut();
|
|
1014
1011
|
I(C);
|
|
1015
1012
|
}, O = this.#o;
|
|
1016
1013
|
switch (O.status) {
|
|
@@ -1029,7 +1026,7 @@ var Rn = class extends De {
|
|
|
1029
1026
|
}
|
|
1030
1027
|
updateResult() {
|
|
1031
1028
|
const e = this.#n, t = this.createResult(this.#t, this.options);
|
|
1032
|
-
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t),
|
|
1029
|
+
if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t), it(t, e))
|
|
1033
1030
|
return;
|
|
1034
1031
|
this.#n = t;
|
|
1035
1032
|
const r = () => {
|
|
@@ -1072,26 +1069,26 @@ var Rn = class extends De {
|
|
|
1072
1069
|
function Cn(e, t) {
|
|
1073
1070
|
return re(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
1074
1071
|
}
|
|
1075
|
-
function
|
|
1076
|
-
return Cn(e, t) || e.state.data !== void 0 &&
|
|
1072
|
+
function hr(e, t) {
|
|
1073
|
+
return Cn(e, t) || e.state.data !== void 0 && Ft(e, t, t.refetchOnMount);
|
|
1077
1074
|
}
|
|
1078
|
-
function
|
|
1075
|
+
function Ft(e, t, r) {
|
|
1079
1076
|
if (re(t.enabled, e) !== !1 && we(t.staleTime, e) !== "static") {
|
|
1080
1077
|
const s = typeof r == "function" ? r(e) : r;
|
|
1081
|
-
return s === "always" || s !== !1 &&
|
|
1078
|
+
return s === "always" || s !== !1 && Qt(e, t);
|
|
1082
1079
|
}
|
|
1083
1080
|
return !1;
|
|
1084
1081
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return (e !== t || re(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
|
1082
|
+
function fr(e, t, r, s) {
|
|
1083
|
+
return (e !== t || re(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Qt(e, r);
|
|
1087
1084
|
}
|
|
1088
|
-
function
|
|
1085
|
+
function Qt(e, t) {
|
|
1089
1086
|
return re(t.enabled, e) !== !1 && e.isStaleByTime(we(t.staleTime, e));
|
|
1090
1087
|
}
|
|
1091
1088
|
function On(e, t) {
|
|
1092
|
-
return !
|
|
1089
|
+
return !it(e.getCurrentResult(), t);
|
|
1093
1090
|
}
|
|
1094
|
-
function
|
|
1091
|
+
function pr(e) {
|
|
1095
1092
|
return {
|
|
1096
1093
|
onFetch: (t, r) => {
|
|
1097
1094
|
const s = t.options, n = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
|
|
@@ -1105,7 +1102,7 @@ function fr(e) {
|
|
|
1105
1102
|
d = !0;
|
|
1106
1103
|
}), t.signal)
|
|
1107
1104
|
});
|
|
1108
|
-
}, u =
|
|
1105
|
+
}, u = ss(t.options, t.fetchOptions), p = async (y, g, w) => {
|
|
1109
1106
|
if (d)
|
|
1110
1107
|
return Promise.reject();
|
|
1111
1108
|
if (g == null && y.pages.length)
|
|
@@ -1119,14 +1116,14 @@ function fr(e) {
|
|
|
1119
1116
|
meta: t.options.meta
|
|
1120
1117
|
};
|
|
1121
1118
|
return h(se), se;
|
|
1122
|
-
})(), R = await u(x), { maxPages:
|
|
1119
|
+
})(), R = await u(x), { maxPages: J } = t.options, P = w ? Sn : wn;
|
|
1123
1120
|
return {
|
|
1124
|
-
pages: P(y.pages, R,
|
|
1125
|
-
pageParams: P(y.pageParams, g,
|
|
1121
|
+
pages: P(y.pages, R, J),
|
|
1122
|
+
pageParams: P(y.pageParams, g, J)
|
|
1126
1123
|
};
|
|
1127
1124
|
};
|
|
1128
1125
|
if (n && a.length) {
|
|
1129
|
-
const y = n === "backward", g = y ? kn :
|
|
1126
|
+
const y = n === "backward", g = y ? kn : yr, w = {
|
|
1130
1127
|
pages: a,
|
|
1131
1128
|
pageParams: i
|
|
1132
1129
|
}, b = g(s, w);
|
|
@@ -1134,7 +1131,7 @@ function fr(e) {
|
|
|
1134
1131
|
} else {
|
|
1135
1132
|
const y = e ?? a.length;
|
|
1136
1133
|
do {
|
|
1137
|
-
const g = l === 0 ? i[0] ?? s.initialPageParam :
|
|
1134
|
+
const g = l === 0 ? i[0] ?? s.initialPageParam : yr(s, o);
|
|
1138
1135
|
if (l > 0 && g == null)
|
|
1139
1136
|
break;
|
|
1140
1137
|
o = await p(o, g), l++;
|
|
@@ -1155,7 +1152,7 @@ function fr(e) {
|
|
|
1155
1152
|
}
|
|
1156
1153
|
};
|
|
1157
1154
|
}
|
|
1158
|
-
function
|
|
1155
|
+
function yr(e, { pages: t, pageParams: r }) {
|
|
1159
1156
|
const s = t.length - 1;
|
|
1160
1157
|
return t.length > 0 ? e.getNextPageParam(
|
|
1161
1158
|
t[s],
|
|
@@ -1167,13 +1164,13 @@ function pr(e, { pages: t, pageParams: r }) {
|
|
|
1167
1164
|
function kn(e, { pages: t, pageParams: r }) {
|
|
1168
1165
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
1169
1166
|
}
|
|
1170
|
-
var Pn = class extends
|
|
1167
|
+
var Pn = class extends os {
|
|
1171
1168
|
#e;
|
|
1172
1169
|
#t;
|
|
1173
1170
|
#r;
|
|
1174
1171
|
#n;
|
|
1175
1172
|
constructor(e) {
|
|
1176
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
1173
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || ls(), this.setOptions(e.options), this.scheduleGc();
|
|
1177
1174
|
}
|
|
1178
1175
|
setOptions(e) {
|
|
1179
1176
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -1210,7 +1207,7 @@ var Pn = class extends is {
|
|
|
1210
1207
|
meta: this.options.meta,
|
|
1211
1208
|
mutationKey: this.options.mutationKey
|
|
1212
1209
|
};
|
|
1213
|
-
this.#n =
|
|
1210
|
+
this.#n = is({
|
|
1214
1211
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
|
|
1215
1212
|
onFail: (a, i) => {
|
|
1216
1213
|
this.#s({ type: "failed", failureCount: a, error: i });
|
|
@@ -1370,7 +1367,7 @@ var Pn = class extends is {
|
|
|
1370
1367
|
});
|
|
1371
1368
|
}
|
|
1372
1369
|
};
|
|
1373
|
-
function
|
|
1370
|
+
function ls() {
|
|
1374
1371
|
return {
|
|
1375
1372
|
context: void 0,
|
|
1376
1373
|
data: void 0,
|
|
@@ -1450,11 +1447,11 @@ var Nn = class extends De {
|
|
|
1450
1447
|
find(e) {
|
|
1451
1448
|
const t = { exact: !0, ...e };
|
|
1452
1449
|
return this.getAll().find(
|
|
1453
|
-
(r) =>
|
|
1450
|
+
(r) => or(t, r)
|
|
1454
1451
|
);
|
|
1455
1452
|
}
|
|
1456
1453
|
findAll(e = {}) {
|
|
1457
|
-
return this.getAll().filter((t) =>
|
|
1454
|
+
return this.getAll().filter((t) => or(e, t));
|
|
1458
1455
|
}
|
|
1459
1456
|
notify(e) {
|
|
1460
1457
|
F.batch(() => {
|
|
@@ -1488,7 +1485,7 @@ var Mn = class extends De {
|
|
|
1488
1485
|
}
|
|
1489
1486
|
setOptions(e) {
|
|
1490
1487
|
const t = this.options;
|
|
1491
|
-
this.options = this.#e.defaultMutationOptions(e),
|
|
1488
|
+
this.options = this.#e.defaultMutationOptions(e), it(this.options, t) || this.#e.getMutationCache().notify({
|
|
1492
1489
|
type: "observerOptionsUpdated",
|
|
1493
1490
|
mutation: this.#r,
|
|
1494
1491
|
observer: this
|
|
@@ -1510,7 +1507,7 @@ var Mn = class extends De {
|
|
|
1510
1507
|
return this.#n = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
|
|
1511
1508
|
}
|
|
1512
1509
|
#s() {
|
|
1513
|
-
const e = this.#r?.state ??
|
|
1510
|
+
const e = this.#r?.state ?? ls();
|
|
1514
1511
|
this.#t = {
|
|
1515
1512
|
...e,
|
|
1516
1513
|
isPending: e.status === "pending",
|
|
@@ -1564,7 +1561,7 @@ var Mn = class extends De {
|
|
|
1564
1561
|
}
|
|
1565
1562
|
#e;
|
|
1566
1563
|
build(e, t, r) {
|
|
1567
|
-
const s = t.queryKey, n = t.queryHash ??
|
|
1564
|
+
const s = t.queryKey, n = t.queryHash ?? Wt(s, t);
|
|
1568
1565
|
let a = this.get(n);
|
|
1569
1566
|
return a || (a = new An({
|
|
1570
1567
|
client: e,
|
|
@@ -1601,12 +1598,12 @@ var Mn = class extends De {
|
|
|
1601
1598
|
find(e) {
|
|
1602
1599
|
const t = { exact: !0, ...e };
|
|
1603
1600
|
return this.getAll().find(
|
|
1604
|
-
(r) =>
|
|
1601
|
+
(r) => ir(t, r)
|
|
1605
1602
|
);
|
|
1606
1603
|
}
|
|
1607
1604
|
findAll(e = {}) {
|
|
1608
1605
|
const t = this.getAll();
|
|
1609
|
-
return Object.keys(e).length > 0 ? t.filter((r) =>
|
|
1606
|
+
return Object.keys(e).length > 0 ? t.filter((r) => ir(e, r)) : t;
|
|
1610
1607
|
}
|
|
1611
1608
|
notify(e) {
|
|
1612
1609
|
F.batch(() => {
|
|
@@ -1642,9 +1639,9 @@ var Mn = class extends De {
|
|
|
1642
1639
|
this.#e = e.queryCache || new xn(), this.#t = e.mutationCache || new Nn(), this.#r = e.defaultOptions || {}, this.#n = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
|
|
1643
1640
|
}
|
|
1644
1641
|
mount() {
|
|
1645
|
-
this.#i++, this.#i === 1 && (this.#o =
|
|
1642
|
+
this.#i++, this.#i === 1 && (this.#o = jt.subscribe(async (e) => {
|
|
1646
1643
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1647
|
-
}), this.#a =
|
|
1644
|
+
}), this.#a = ct.subscribe(async (e) => {
|
|
1648
1645
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1649
1646
|
}));
|
|
1650
1647
|
}
|
|
@@ -1760,16 +1757,16 @@ var Mn = class extends De {
|
|
|
1760
1757
|
return this.fetchQuery(e).then(Z).catch(Z);
|
|
1761
1758
|
}
|
|
1762
1759
|
fetchInfiniteQuery(e) {
|
|
1763
|
-
return e.behavior =
|
|
1760
|
+
return e.behavior = pr(e.pages), this.fetchQuery(e);
|
|
1764
1761
|
}
|
|
1765
1762
|
prefetchInfiniteQuery(e) {
|
|
1766
1763
|
return this.fetchInfiniteQuery(e).then(Z).catch(Z);
|
|
1767
1764
|
}
|
|
1768
1765
|
ensureInfiniteQueryData(e) {
|
|
1769
|
-
return e.behavior =
|
|
1766
|
+
return e.behavior = pr(e.pages), this.ensureQueryData(e);
|
|
1770
1767
|
}
|
|
1771
1768
|
resumePausedMutations() {
|
|
1772
|
-
return
|
|
1769
|
+
return ct.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1773
1770
|
}
|
|
1774
1771
|
getQueryCache() {
|
|
1775
1772
|
return this.#e;
|
|
@@ -1816,10 +1813,10 @@ var Mn = class extends De {
|
|
|
1816
1813
|
...e,
|
|
1817
1814
|
_defaulted: !0
|
|
1818
1815
|
};
|
|
1819
|
-
return t.queryHash || (t.queryHash =
|
|
1816
|
+
return t.queryHash || (t.queryHash = Wt(
|
|
1820
1817
|
t.queryKey,
|
|
1821
1818
|
t
|
|
1822
|
-
)), 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 ===
|
|
1819
|
+
)), 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 === ot && (t.enabled = !1), t;
|
|
1823
1820
|
}
|
|
1824
1821
|
defaultMutationOptions(e) {
|
|
1825
1822
|
return e?._defaulted ? e : {
|
|
@@ -1832,19 +1829,19 @@ var Mn = class extends De {
|
|
|
1832
1829
|
clear() {
|
|
1833
1830
|
this.#e.clear(), this.#t.clear();
|
|
1834
1831
|
}
|
|
1835
|
-
},
|
|
1832
|
+
}, us = Y.createContext(
|
|
1836
1833
|
void 0
|
|
1837
1834
|
), le = (e) => {
|
|
1838
|
-
const t =
|
|
1835
|
+
const t = Y.useContext(us);
|
|
1839
1836
|
if (!t)
|
|
1840
1837
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
1841
1838
|
return t;
|
|
1842
1839
|
}, Dn = ({
|
|
1843
1840
|
client: e,
|
|
1844
1841
|
children: t
|
|
1845
|
-
}) => (
|
|
1842
|
+
}) => (Y.useEffect(() => (e.mount(), () => {
|
|
1846
1843
|
e.unmount();
|
|
1847
|
-
}), [e]), /* @__PURE__ */ c(
|
|
1844
|
+
}), [e]), /* @__PURE__ */ c(us.Provider, { value: e, children: t })), $n = Y.createContext(!1), Un = () => Y.useContext($n);
|
|
1848
1845
|
function Hn() {
|
|
1849
1846
|
let e = !1;
|
|
1850
1847
|
return {
|
|
@@ -1857,10 +1854,10 @@ function Hn() {
|
|
|
1857
1854
|
isReset: () => e
|
|
1858
1855
|
};
|
|
1859
1856
|
}
|
|
1860
|
-
var Fn =
|
|
1857
|
+
var Fn = Y.createContext(Hn()), Bn = () => Y.useContext(Fn), Kn = (e, t) => {
|
|
1861
1858
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
1862
1859
|
}, Vn = (e) => {
|
|
1863
|
-
|
|
1860
|
+
Y.useEffect(() => {
|
|
1864
1861
|
e.clearReset();
|
|
1865
1862
|
}, [e]);
|
|
1866
1863
|
}, Gn = ({
|
|
@@ -1869,7 +1866,7 @@ var Fn = J.createContext(Hn()), Bn = () => J.useContext(Fn), Kn = (e, t) => {
|
|
|
1869
1866
|
throwOnError: r,
|
|
1870
1867
|
query: s,
|
|
1871
1868
|
suspense: n
|
|
1872
|
-
}) => e.isError && !t.isReset() && !e.isFetching && s && (n && e.data === void 0 ||
|
|
1869
|
+
}) => e.isError && !t.isReset() && !e.isFetching && s && (n && e.data === void 0 || ns(r, [e.error, s])), zn = (e) => {
|
|
1873
1870
|
if (e.suspense) {
|
|
1874
1871
|
const r = (n) => n === "static" ? n : Math.max(n ?? 1e3, 1e3), s = e.staleTime;
|
|
1875
1872
|
e.staleTime = typeof s == "function" ? (...n) => r(s(...n)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
|
@@ -1877,7 +1874,7 @@ var Fn = J.createContext(Hn()), Bn = () => J.useContext(Fn), Kn = (e, t) => {
|
|
|
1877
1874
|
1e3
|
|
1878
1875
|
));
|
|
1879
1876
|
}
|
|
1880
|
-
}, qn = (e, t) => e.isLoading && e.isFetching && !t, Wn = (e, t) => e?.suspense && t.isPending,
|
|
1877
|
+
}, qn = (e, t) => e.isLoading && e.isFetching && !t, Wn = (e, t) => e?.suspense && t.isPending, mr = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
|
1881
1878
|
r.clearReset();
|
|
1882
1879
|
});
|
|
1883
1880
|
function jn(e, t, r) {
|
|
@@ -1891,14 +1888,14 @@ function jn(e, t, r) {
|
|
|
1891
1888
|
), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
|
|
1892
1889
|
`[${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`
|
|
1893
1890
|
)), i._optimisticResults = s ? "isRestoring" : "optimistic", zn(i), Kn(i, n), Vn(n);
|
|
1894
|
-
const o = !a.getQueryCache().get(i.queryHash), [l] =
|
|
1891
|
+
const o = !a.getQueryCache().get(i.queryHash), [l] = Y.useState(
|
|
1895
1892
|
() => new t(
|
|
1896
1893
|
a,
|
|
1897
1894
|
i
|
|
1898
1895
|
)
|
|
1899
1896
|
), f = l.getOptimisticResult(i), d = !s && e.subscribed !== !1;
|
|
1900
|
-
if (
|
|
1901
|
-
|
|
1897
|
+
if (Y.useSyncExternalStore(
|
|
1898
|
+
Y.useCallback(
|
|
1902
1899
|
(h) => {
|
|
1903
1900
|
const u = d ? l.subscribe(F.batchCalls(h)) : Z;
|
|
1904
1901
|
return l.updateResult(), u;
|
|
@@ -1907,10 +1904,10 @@ function jn(e, t, r) {
|
|
|
1907
1904
|
),
|
|
1908
1905
|
() => l.getCurrentResult(),
|
|
1909
1906
|
() => l.getCurrentResult()
|
|
1910
|
-
),
|
|
1907
|
+
), Y.useEffect(() => {
|
|
1911
1908
|
l.setOptions(i);
|
|
1912
1909
|
}, [i, l]), Wn(i, f))
|
|
1913
|
-
throw
|
|
1910
|
+
throw mr(i, l, n);
|
|
1914
1911
|
if (Gn({
|
|
1915
1912
|
result: f,
|
|
1916
1913
|
errorResetBoundary: n,
|
|
@@ -1924,7 +1921,7 @@ function jn(e, t, r) {
|
|
|
1924
1921
|
f
|
|
1925
1922
|
), i.experimental_prefetchInRender && !Te && qn(f, s) && (o ? (
|
|
1926
1923
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1927
|
-
|
|
1924
|
+
mr(i, l, n)
|
|
1928
1925
|
) : (
|
|
1929
1926
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1930
1927
|
a.getQueryCache().get(i.queryHash)?.promise
|
|
@@ -1936,29 +1933,29 @@ function pe(e, t) {
|
|
|
1936
1933
|
return jn(e, Rn);
|
|
1937
1934
|
}
|
|
1938
1935
|
function Se(e, t) {
|
|
1939
|
-
const r = le(), [s] =
|
|
1936
|
+
const r = le(), [s] = Y.useState(
|
|
1940
1937
|
() => new Mn(
|
|
1941
1938
|
r,
|
|
1942
1939
|
e
|
|
1943
1940
|
)
|
|
1944
1941
|
);
|
|
1945
|
-
|
|
1942
|
+
Y.useEffect(() => {
|
|
1946
1943
|
s.setOptions(e);
|
|
1947
1944
|
}, [s, e]);
|
|
1948
|
-
const n =
|
|
1949
|
-
|
|
1945
|
+
const n = Y.useSyncExternalStore(
|
|
1946
|
+
Y.useCallback(
|
|
1950
1947
|
(i) => s.subscribe(F.batchCalls(i)),
|
|
1951
1948
|
[s]
|
|
1952
1949
|
),
|
|
1953
1950
|
() => s.getCurrentResult(),
|
|
1954
1951
|
() => s.getCurrentResult()
|
|
1955
|
-
), a =
|
|
1952
|
+
), a = Y.useCallback(
|
|
1956
1953
|
(i, o) => {
|
|
1957
1954
|
s.mutate(i, o).catch(Z);
|
|
1958
1955
|
},
|
|
1959
1956
|
[s]
|
|
1960
1957
|
);
|
|
1961
|
-
if (n.error &&
|
|
1958
|
+
if (n.error && ns(s.options.throwOnError, [n.error]))
|
|
1962
1959
|
throw n.error;
|
|
1963
1960
|
return { ...n, mutate: a, mutateAsync: n.mutate };
|
|
1964
1961
|
}
|
|
@@ -1979,7 +1976,7 @@ const Ue = {
|
|
|
1979
1976
|
CODE: "code",
|
|
1980
1977
|
REFRESH_TOKEN: "refresh_token",
|
|
1981
1978
|
PASSKEY: "passkey"
|
|
1982
|
-
},
|
|
1979
|
+
}, ds = {
|
|
1983
1980
|
CLIENT_ID: "X-Auth-ClientId"
|
|
1984
1981
|
}, Q = {
|
|
1985
1982
|
ALG: "RS256",
|
|
@@ -1997,20 +1994,20 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
|
|
|
1997
1994
|
l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
1998
1995
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
|
1999
1996
|
awIDAQAB
|
|
2000
|
-
-----END PUBLIC KEY-----`,
|
|
1997
|
+
-----END PUBLIC KEY-----`, gt = {
|
|
2001
1998
|
CODE: "code",
|
|
2002
1999
|
LOGOUT: "logout",
|
|
2003
2000
|
LOGIN: "login",
|
|
2004
2001
|
REFRESH: "refresh"
|
|
2005
2002
|
}, je = new TextEncoder(), Le = new TextDecoder();
|
|
2006
|
-
function
|
|
2003
|
+
function Yn(...e) {
|
|
2007
2004
|
const t = e.reduce((n, { length: a }) => n + a, 0), r = new Uint8Array(t);
|
|
2008
2005
|
let s = 0;
|
|
2009
2006
|
for (const n of e)
|
|
2010
2007
|
r.set(n, s), s += n.length;
|
|
2011
2008
|
return r;
|
|
2012
2009
|
}
|
|
2013
|
-
function
|
|
2010
|
+
function hs(e) {
|
|
2014
2011
|
if (Uint8Array.fromBase64)
|
|
2015
2012
|
return Uint8Array.fromBase64(e);
|
|
2016
2013
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
@@ -2026,7 +2023,7 @@ function He(e) {
|
|
|
2026
2023
|
let t = e;
|
|
2027
2024
|
t instanceof Uint8Array && (t = Le.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
2028
2025
|
try {
|
|
2029
|
-
return
|
|
2026
|
+
return hs(t);
|
|
2030
2027
|
} catch {
|
|
2031
2028
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
2032
2029
|
}
|
|
@@ -2046,7 +2043,7 @@ let _e = class extends Error {
|
|
|
2046
2043
|
constructor(t, r, s = "unspecified", n = "unspecified") {
|
|
2047
2044
|
super(t, { cause: { claim: s, reason: n, payload: r } }), this.claim = s, this.reason = n, this.payload = r;
|
|
2048
2045
|
}
|
|
2049
|
-
},
|
|
2046
|
+
}, gr = class extends _e {
|
|
2050
2047
|
static code = "ERR_JWT_EXPIRED";
|
|
2051
2048
|
code = "ERR_JWT_EXPIRED";
|
|
2052
2049
|
claim;
|
|
@@ -2055,7 +2052,7 @@ let _e = class extends Error {
|
|
|
2055
2052
|
constructor(t, r, s = "unspecified", n = "unspecified") {
|
|
2056
2053
|
super(t, { cause: { claim: s, reason: n, payload: r } }), this.claim = s, this.reason = n, this.payload = r;
|
|
2057
2054
|
}
|
|
2058
|
-
},
|
|
2055
|
+
}, Jn = class extends _e {
|
|
2059
2056
|
static code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2060
2057
|
code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
2061
2058
|
}, fe = class extends _e {
|
|
@@ -2083,7 +2080,7 @@ function ae(e, t = "algorithm.name") {
|
|
|
2083
2080
|
function Ce(e, t) {
|
|
2084
2081
|
return e.name === t;
|
|
2085
2082
|
}
|
|
2086
|
-
function
|
|
2083
|
+
function St(e) {
|
|
2087
2084
|
return parseInt(e.name.slice(4), 10);
|
|
2088
2085
|
}
|
|
2089
2086
|
function Zn(e) {
|
|
@@ -2110,7 +2107,7 @@ function ta(e, t, r) {
|
|
|
2110
2107
|
if (!Ce(e.algorithm, "HMAC"))
|
|
2111
2108
|
throw ae("HMAC");
|
|
2112
2109
|
const s = parseInt(t.slice(2), 10);
|
|
2113
|
-
if (
|
|
2110
|
+
if (St(e.algorithm.hash) !== s)
|
|
2114
2111
|
throw ae(`SHA-${s}`, "algorithm.hash");
|
|
2115
2112
|
break;
|
|
2116
2113
|
}
|
|
@@ -2120,7 +2117,7 @@ function ta(e, t, r) {
|
|
|
2120
2117
|
if (!Ce(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
2121
2118
|
throw ae("RSASSA-PKCS1-v1_5");
|
|
2122
2119
|
const s = parseInt(t.slice(2), 10);
|
|
2123
|
-
if (
|
|
2120
|
+
if (St(e.algorithm.hash) !== s)
|
|
2124
2121
|
throw ae(`SHA-${s}`, "algorithm.hash");
|
|
2125
2122
|
break;
|
|
2126
2123
|
}
|
|
@@ -2130,7 +2127,7 @@ function ta(e, t, r) {
|
|
|
2130
2127
|
if (!Ce(e.algorithm, "RSA-PSS"))
|
|
2131
2128
|
throw ae("RSA-PSS");
|
|
2132
2129
|
const s = parseInt(t.slice(2), 10);
|
|
2133
|
-
if (
|
|
2130
|
+
if (St(e.algorithm.hash) !== s)
|
|
2134
2131
|
throw ae(`SHA-${s}`, "algorithm.hash");
|
|
2135
2132
|
break;
|
|
2136
2133
|
}
|
|
@@ -2162,24 +2159,24 @@ function ta(e, t, r) {
|
|
|
2162
2159
|
}
|
|
2163
2160
|
ea(e, r);
|
|
2164
2161
|
}
|
|
2165
|
-
function
|
|
2162
|
+
function fs(e, t, ...r) {
|
|
2166
2163
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
2167
2164
|
const s = r.pop();
|
|
2168
2165
|
e += `one of type ${r.join(", ")}, or ${s}.`;
|
|
2169
2166
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
2170
2167
|
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;
|
|
2171
2168
|
}
|
|
2172
|
-
const ra = (e, ...t) =>
|
|
2173
|
-
function
|
|
2174
|
-
return
|
|
2169
|
+
const ra = (e, ...t) => fs("Key must be ", e, ...t);
|
|
2170
|
+
function ps(e, t, ...r) {
|
|
2171
|
+
return fs(`Key for the ${e} algorithm must be `, t, ...r);
|
|
2175
2172
|
}
|
|
2176
|
-
function
|
|
2173
|
+
function ys(e) {
|
|
2177
2174
|
return e?.[Symbol.toStringTag] === "CryptoKey";
|
|
2178
2175
|
}
|
|
2179
|
-
function
|
|
2176
|
+
function ms(e) {
|
|
2180
2177
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
|
2181
2178
|
}
|
|
2182
|
-
const
|
|
2179
|
+
const gs = (e) => ys(e) || ms(e), sa = (...e) => {
|
|
2183
2180
|
const t = e.filter(Boolean);
|
|
2184
2181
|
if (t.length === 0 || t.length === 1)
|
|
2185
2182
|
return !0;
|
|
@@ -2216,14 +2213,14 @@ const Ke = (e) => {
|
|
|
2216
2213
|
if (typeof r != "number" || r < 2048)
|
|
2217
2214
|
throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
|
|
2218
2215
|
}
|
|
2219
|
-
},
|
|
2216
|
+
}, bt = (e, t) => {
|
|
2220
2217
|
if (e.byteLength !== t.length)
|
|
2221
2218
|
return !1;
|
|
2222
2219
|
for (let r = 0; r < e.byteLength; r++)
|
|
2223
2220
|
if (e[r] !== t[r])
|
|
2224
2221
|
return !1;
|
|
2225
2222
|
return !0;
|
|
2226
|
-
}, ia = (e) => ({ data: e, pos: 0 }),
|
|
2223
|
+
}, ia = (e) => ({ data: e, pos: 0 }), lt = (e) => {
|
|
2227
2224
|
const t = e.data[e.pos++];
|
|
2228
2225
|
if (t & 128) {
|
|
2229
2226
|
const r = t & 127;
|
|
@@ -2233,36 +2230,36 @@ const Ke = (e) => {
|
|
|
2233
2230
|
return s;
|
|
2234
2231
|
}
|
|
2235
2232
|
return t;
|
|
2236
|
-
},
|
|
2233
|
+
}, ut = (e, t, r) => {
|
|
2237
2234
|
if (e.data[e.pos++] !== t)
|
|
2238
2235
|
throw new Error(r);
|
|
2239
|
-
},
|
|
2236
|
+
}, Es = (e, t) => {
|
|
2240
2237
|
const r = e.data.subarray(e.pos, e.pos + t);
|
|
2241
2238
|
return e.pos += t, r;
|
|
2242
2239
|
}, oa = (e) => {
|
|
2243
|
-
|
|
2244
|
-
const t =
|
|
2245
|
-
return
|
|
2240
|
+
ut(e, 6, "Expected algorithm OID");
|
|
2241
|
+
const t = lt(e);
|
|
2242
|
+
return Es(e, t);
|
|
2246
2243
|
};
|
|
2247
2244
|
function ca(e) {
|
|
2248
|
-
|
|
2249
|
-
const t =
|
|
2245
|
+
ut(e, 48, "Invalid SPKI structure"), lt(e), ut(e, 48, "Expected algorithm identifier");
|
|
2246
|
+
const t = lt(e);
|
|
2250
2247
|
return { algIdStart: e.pos, algIdLength: t };
|
|
2251
2248
|
}
|
|
2252
2249
|
const la = (e) => {
|
|
2253
2250
|
const t = oa(e);
|
|
2254
|
-
if (
|
|
2251
|
+
if (bt(t, [43, 101, 110]))
|
|
2255
2252
|
return "X25519";
|
|
2256
|
-
if (!
|
|
2253
|
+
if (!bt(t, [42, 134, 72, 206, 61, 2, 1]))
|
|
2257
2254
|
throw new Error("Unsupported key algorithm");
|
|
2258
|
-
|
|
2259
|
-
const r =
|
|
2255
|
+
ut(e, 6, "Expected curve OID");
|
|
2256
|
+
const r = lt(e), s = Es(e, r);
|
|
2260
2257
|
for (const { name: n, oid: a } of [
|
|
2261
2258
|
{ name: "P-256", oid: [42, 134, 72, 206, 61, 3, 1, 7] },
|
|
2262
2259
|
{ name: "P-384", oid: [43, 129, 4, 0, 34] },
|
|
2263
2260
|
{ name: "P-521", oid: [43, 129, 4, 0, 35] }
|
|
2264
2261
|
])
|
|
2265
|
-
if (
|
|
2262
|
+
if (bt(s, a))
|
|
2266
2263
|
return n;
|
|
2267
2264
|
throw new Error("Unsupported named curve");
|
|
2268
2265
|
}, ua = async (e, t, r, s) => {
|
|
@@ -2320,7 +2317,7 @@ const la = (e) => {
|
|
|
2320
2317
|
throw new fe('Invalid or unsupported "alg" (Algorithm) value');
|
|
2321
2318
|
}
|
|
2322
2319
|
return crypto.subtle.importKey(e, t, n, s?.extractable ?? !0, a);
|
|
2323
|
-
}, da = (e, t) =>
|
|
2320
|
+
}, da = (e, t) => hs(e.replace(t, "")), ha = (e, t, r) => {
|
|
2324
2321
|
const s = da(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
|
2325
2322
|
let n = r;
|
|
2326
2323
|
return t?.startsWith?.("ECDH-ES") && (n ||= {}, n.getNamedCurve = (a) => {
|
|
@@ -2448,7 +2445,7 @@ const ma = (e, t, r, s, n) => {
|
|
|
2448
2445
|
if (t)
|
|
2449
2446
|
return new Set(t);
|
|
2450
2447
|
};
|
|
2451
|
-
function
|
|
2448
|
+
function Yt(e) {
|
|
2452
2449
|
return Ke(e) && typeof e.kty == "string";
|
|
2453
2450
|
}
|
|
2454
2451
|
function Ea(e) {
|
|
@@ -2461,7 +2458,7 @@ function Sa(e) {
|
|
|
2461
2458
|
return e.kty === "oct" && typeof e.k == "string";
|
|
2462
2459
|
}
|
|
2463
2460
|
let xe;
|
|
2464
|
-
const
|
|
2461
|
+
const Er = async (e, t, r, s = !1) => {
|
|
2465
2462
|
xe ||= /* @__PURE__ */ new WeakMap();
|
|
2466
2463
|
let n = xe.get(e);
|
|
2467
2464
|
if (n?.[r])
|
|
@@ -2565,9 +2562,9 @@ const gr = async (e, t, r, s = !1) => {
|
|
|
2565
2562
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
|
2566
2563
|
return r ? r[t] = a : xe.set(e, { [t]: a }), a;
|
|
2567
2564
|
}, va = async (e, t) => {
|
|
2568
|
-
if (e instanceof Uint8Array ||
|
|
2565
|
+
if (e instanceof Uint8Array || ys(e))
|
|
2569
2566
|
return e;
|
|
2570
|
-
if (
|
|
2567
|
+
if (ms(e)) {
|
|
2571
2568
|
if (e.type === "secret")
|
|
2572
2569
|
return e.export();
|
|
2573
2570
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
|
@@ -2578,12 +2575,12 @@ const gr = async (e, t, r, s = !1) => {
|
|
|
2578
2575
|
throw s;
|
|
2579
2576
|
}
|
|
2580
2577
|
let r = e.export({ format: "jwk" });
|
|
2581
|
-
return
|
|
2578
|
+
return Er(e, r, t);
|
|
2582
2579
|
}
|
|
2583
|
-
if (
|
|
2584
|
-
return e.k ? He(e.k) :
|
|
2580
|
+
if (Yt(e))
|
|
2581
|
+
return e.k ? He(e.k) : Er(e, e, t, !0);
|
|
2585
2582
|
throw new Error("unreachable");
|
|
2586
|
-
}, Me = (e) => e?.[Symbol.toStringTag],
|
|
2583
|
+
}, Me = (e) => e?.[Symbol.toStringTag], Bt = (e, t, r) => {
|
|
2587
2584
|
if (t.use !== void 0) {
|
|
2588
2585
|
let s;
|
|
2589
2586
|
switch (r) {
|
|
@@ -2628,32 +2625,32 @@ const gr = async (e, t, r, s = !1) => {
|
|
|
2628
2625
|
return !0;
|
|
2629
2626
|
}, Ta = (e, t, r) => {
|
|
2630
2627
|
if (!(t instanceof Uint8Array)) {
|
|
2631
|
-
if (
|
|
2632
|
-
if (Sa(t) &&
|
|
2628
|
+
if (Yt(t)) {
|
|
2629
|
+
if (Sa(t) && Bt(e, t, r))
|
|
2633
2630
|
return;
|
|
2634
2631
|
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');
|
|
2635
2632
|
}
|
|
2636
|
-
if (!
|
|
2637
|
-
throw new TypeError(
|
|
2633
|
+
if (!gs(t))
|
|
2634
|
+
throw new TypeError(ps(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
|
|
2638
2635
|
if (t.type !== "secret")
|
|
2639
2636
|
throw new TypeError(`${Me(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
2640
2637
|
}
|
|
2641
2638
|
}, Ia = (e, t, r) => {
|
|
2642
|
-
if (
|
|
2639
|
+
if (Yt(t))
|
|
2643
2640
|
switch (r) {
|
|
2644
2641
|
case "decrypt":
|
|
2645
2642
|
case "sign":
|
|
2646
|
-
if (Ea(t) &&
|
|
2643
|
+
if (Ea(t) && Bt(e, t, r))
|
|
2647
2644
|
return;
|
|
2648
2645
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
2649
2646
|
case "encrypt":
|
|
2650
2647
|
case "verify":
|
|
2651
|
-
if (wa(t) &&
|
|
2648
|
+
if (wa(t) && Bt(e, t, r))
|
|
2652
2649
|
return;
|
|
2653
2650
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
2654
2651
|
}
|
|
2655
|
-
if (!
|
|
2656
|
-
throw new TypeError(
|
|
2652
|
+
if (!gs(t))
|
|
2653
|
+
throw new TypeError(ps(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
|
2657
2654
|
if (t.type === "secret")
|
|
2658
2655
|
throw new TypeError(`${Me(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
2659
2656
|
if (t.type === "public")
|
|
@@ -2753,7 +2750,7 @@ async function Oa(e, t, r) {
|
|
|
2753
2750
|
throw new W('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
2754
2751
|
const l = r && ga("algorithms", r.algorithms);
|
|
2755
2752
|
if (l && !l.has(o))
|
|
2756
|
-
throw new
|
|
2753
|
+
throw new Jn('"alg" (Algorithm) Header Parameter value not allowed');
|
|
2757
2754
|
if (i) {
|
|
2758
2755
|
if (typeof e.payload != "string")
|
|
2759
2756
|
throw new W("JWS Payload must be a string");
|
|
@@ -2761,7 +2758,7 @@ async function Oa(e, t, r) {
|
|
|
2761
2758
|
throw new W("JWS Payload must be a string or an Uint8Array instance");
|
|
2762
2759
|
let f = !1;
|
|
2763
2760
|
typeof t == "function" && (t = await t(s, e), f = !0), _a(o, t, "verify");
|
|
2764
|
-
const d =
|
|
2761
|
+
const d = Yn(je.encode(e.protected ?? ""), je.encode("."), typeof e.payload == "string" ? je.encode(e.payload) : e.payload);
|
|
2765
2762
|
let h;
|
|
2766
2763
|
try {
|
|
2767
2764
|
h = He(e.signature);
|
|
@@ -2791,7 +2788,7 @@ async function ka(e, t, r) {
|
|
|
2791
2788
|
const o = await Oa({ payload: n, protected: s, signature: a }, t, r), l = { payload: o.payload, protectedHeader: o.protectedHeader };
|
|
2792
2789
|
return typeof t == "function" ? { ...l, key: o.key } : l;
|
|
2793
2790
|
}
|
|
2794
|
-
const Pa = (e) => Math.floor(e.getTime() / 1e3),
|
|
2791
|
+
const Pa = (e) => Math.floor(e.getTime() / 1e3), ws = 60, Ss = ws * 60, Jt = Ss * 24, Na = Jt * 7, Ma = Jt * 365.25, xa = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, wr = (e) => {
|
|
2795
2792
|
const t = xa.exec(e);
|
|
2796
2793
|
if (!t || t[4] && t[1])
|
|
2797
2794
|
throw new TypeError("Invalid time period format");
|
|
@@ -2810,14 +2807,14 @@ const Pa = (e) => Math.floor(e.getTime() / 1e3), Es = 60, ws = Es * 60, Jt = ws
|
|
|
2810
2807
|
case "min":
|
|
2811
2808
|
case "mins":
|
|
2812
2809
|
case "m":
|
|
2813
|
-
n = Math.round(r *
|
|
2810
|
+
n = Math.round(r * ws);
|
|
2814
2811
|
break;
|
|
2815
2812
|
case "hour":
|
|
2816
2813
|
case "hours":
|
|
2817
2814
|
case "hr":
|
|
2818
2815
|
case "hrs":
|
|
2819
2816
|
case "h":
|
|
2820
|
-
n = Math.round(r *
|
|
2817
|
+
n = Math.round(r * Ss);
|
|
2821
2818
|
break;
|
|
2822
2819
|
case "day":
|
|
2823
2820
|
case "days":
|
|
@@ -2834,7 +2831,7 @@ const Pa = (e) => Math.floor(e.getTime() / 1e3), Es = 60, ws = Es * 60, Jt = ws
|
|
|
2834
2831
|
break;
|
|
2835
2832
|
}
|
|
2836
2833
|
return t[1] === "-" || t[4] === "ago" ? -n : n;
|
|
2837
|
-
},
|
|
2834
|
+
}, Sr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, La = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
|
2838
2835
|
function Da(e, t, r = {}) {
|
|
2839
2836
|
let s;
|
|
2840
2837
|
try {
|
|
@@ -2844,7 +2841,7 @@ function Da(e, t, r = {}) {
|
|
|
2844
2841
|
if (!Ke(s))
|
|
2845
2842
|
throw new de("JWT Claims Set must be a top-level JSON object");
|
|
2846
2843
|
const { typ: n } = r;
|
|
2847
|
-
if (n && (typeof e.typ != "string" ||
|
|
2844
|
+
if (n && (typeof e.typ != "string" || Sr(e.typ) !== Sr(n)))
|
|
2848
2845
|
throw new ne('unexpected "typ" JWT header value', s, "typ", "check_failed");
|
|
2849
2846
|
const { requiredClaims: a = [], issuer: i, subject: o, audience: l, maxTokenAge: f } = r, d = [...a];
|
|
2850
2847
|
f !== void 0 && d.push("iat"), l !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), i !== void 0 && d.push("iss");
|
|
@@ -2860,7 +2857,7 @@ function Da(e, t, r = {}) {
|
|
|
2860
2857
|
let h;
|
|
2861
2858
|
switch (typeof r.clockTolerance) {
|
|
2862
2859
|
case "string":
|
|
2863
|
-
h =
|
|
2860
|
+
h = wr(r.clockTolerance);
|
|
2864
2861
|
break;
|
|
2865
2862
|
case "number":
|
|
2866
2863
|
h = r.clockTolerance;
|
|
@@ -2884,12 +2881,12 @@ function Da(e, t, r = {}) {
|
|
|
2884
2881
|
if (typeof s.exp != "number")
|
|
2885
2882
|
throw new ne('"exp" claim must be a number', s, "exp", "invalid");
|
|
2886
2883
|
if (s.exp <= p - h)
|
|
2887
|
-
throw new
|
|
2884
|
+
throw new gr('"exp" claim timestamp check failed', s, "exp", "check_failed");
|
|
2888
2885
|
}
|
|
2889
2886
|
if (f) {
|
|
2890
|
-
const y = p - s.iat, g = typeof f == "number" ? f :
|
|
2887
|
+
const y = p - s.iat, g = typeof f == "number" ? f : wr(f);
|
|
2891
2888
|
if (y - h > g)
|
|
2892
|
-
throw new
|
|
2889
|
+
throw new gr('"iat" claim timestamp check failed (too far in the past)', s, "iat", "check_failed");
|
|
2893
2890
|
if (y < 0 - h)
|
|
2894
2891
|
throw new ne('"iat" claim timestamp check failed (it should be in the past)', s, "iat", "check_failed");
|
|
2895
2892
|
}
|
|
@@ -2949,35 +2946,35 @@ for (let e = 0; e < 256; ++e)
|
|
|
2949
2946
|
function Fa(e, t = 0) {
|
|
2950
2947
|
return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
|
|
2951
2948
|
}
|
|
2952
|
-
let
|
|
2949
|
+
let vt;
|
|
2953
2950
|
const Ba = new Uint8Array(16);
|
|
2954
2951
|
function Ka() {
|
|
2955
|
-
if (!
|
|
2952
|
+
if (!vt) {
|
|
2956
2953
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2957
2954
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2958
|
-
|
|
2955
|
+
vt = crypto.getRandomValues.bind(crypto);
|
|
2959
2956
|
}
|
|
2960
|
-
return
|
|
2957
|
+
return vt(Ba);
|
|
2961
2958
|
}
|
|
2962
|
-
const Va = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
2963
|
-
function
|
|
2964
|
-
if (
|
|
2965
|
-
return
|
|
2959
|
+
const Va = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), br = { randomUUID: Va };
|
|
2960
|
+
function vr(e, t, r) {
|
|
2961
|
+
if (br.randomUUID && !e)
|
|
2962
|
+
return br.randomUUID();
|
|
2966
2963
|
e = e || {};
|
|
2967
2964
|
const s = e.random ?? e.rng?.() ?? Ka();
|
|
2968
2965
|
if (s.length < 16)
|
|
2969
2966
|
throw new Error("Random bytes length must be >= 16");
|
|
2970
2967
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Fa(s);
|
|
2971
2968
|
}
|
|
2972
|
-
const
|
|
2969
|
+
const Tr = globalThis.crypto, Ga = (e) => `${vr()}${vr()}`.slice(0, e), za = (e) => btoa(
|
|
2973
2970
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
2974
2971
|
);
|
|
2975
2972
|
async function qa(e) {
|
|
2976
|
-
if (!
|
|
2973
|
+
if (!Tr.subtle)
|
|
2977
2974
|
throw new Error(
|
|
2978
2975
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
2979
2976
|
);
|
|
2980
|
-
const t = new TextEncoder().encode(e), r = await
|
|
2977
|
+
const t = new TextEncoder().encode(e), r = await Tr.subtle.digest("SHA-256", t);
|
|
2981
2978
|
return za(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
2982
2979
|
}
|
|
2983
2980
|
async function Wa(e) {
|
|
@@ -2987,16 +2984,16 @@ async function Wa(e) {
|
|
|
2987
2984
|
code_challenge: s
|
|
2988
2985
|
};
|
|
2989
2986
|
}
|
|
2990
|
-
const
|
|
2991
|
-
var ja = Object.defineProperty, Qa = (e, t, r) => t in e ? ja(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
2987
|
+
const bs = Gt(null);
|
|
2988
|
+
var ja = Object.defineProperty, Qa = (e, t, r) => t in e ? ja(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t, r) => Qa(e, typeof t != "symbol" ? t + "" : t, r);
|
|
2992
2989
|
/*!
|
|
2993
|
-
@versini/auth-provider v8.0
|
|
2990
|
+
@versini/auth-provider v8.1.0
|
|
2994
2991
|
© 2025 gizmette.com
|
|
2995
2992
|
*/
|
|
2996
2993
|
try {
|
|
2997
2994
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
2998
|
-
version: "8.0
|
|
2999
|
-
buildTime: "11/
|
|
2995
|
+
version: "8.1.0",
|
|
2996
|
+
buildTime: "11/26/2025 08:59 PM EST",
|
|
3000
2997
|
homepage: "https://github.com/aversini/auth-client",
|
|
3001
2998
|
license: "MIT"
|
|
3002
2999
|
});
|
|
@@ -3009,23 +3006,23 @@ function ie(e) {
|
|
|
3009
3006
|
r += String.fromCharCode(s);
|
|
3010
3007
|
return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
3011
3008
|
}
|
|
3012
|
-
function
|
|
3009
|
+
function dt(e) {
|
|
3013
3010
|
const t = e.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - t.length % 4) % 4, s = t.padEnd(t.length + r, "="), n = atob(s), a = new ArrayBuffer(n.length), i = new Uint8Array(a);
|
|
3014
3011
|
for (let o = 0; o < n.length; o++)
|
|
3015
3012
|
i[o] = n.charCodeAt(o);
|
|
3016
3013
|
return a;
|
|
3017
3014
|
}
|
|
3018
|
-
function
|
|
3019
|
-
return
|
|
3015
|
+
function Xt() {
|
|
3016
|
+
return Ya.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
|
3020
3017
|
}
|
|
3021
|
-
const
|
|
3018
|
+
const Ya = {
|
|
3022
3019
|
stubThis: (e) => e
|
|
3023
3020
|
};
|
|
3024
|
-
function
|
|
3021
|
+
function vs(e) {
|
|
3025
3022
|
const { id: t } = e;
|
|
3026
3023
|
return {
|
|
3027
3024
|
...e,
|
|
3028
|
-
id:
|
|
3025
|
+
id: dt(t),
|
|
3029
3026
|
/**
|
|
3030
3027
|
* `descriptor.transports` is an array of our `AuthenticatorTransportFuture` that includes newer
|
|
3031
3028
|
* transports that TypeScript's DOM lib is ignorant of. Convince TS that our list of transports
|
|
@@ -3034,7 +3031,7 @@ function bs(e) {
|
|
|
3034
3031
|
transports: e.transports
|
|
3035
3032
|
};
|
|
3036
3033
|
}
|
|
3037
|
-
function
|
|
3034
|
+
function Ts(e) {
|
|
3038
3035
|
return (
|
|
3039
3036
|
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
|
3040
3037
|
e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
|
|
@@ -3050,7 +3047,7 @@ class j extends Error {
|
|
|
3050
3047
|
}), this.name = n ?? s.name, this.code = r;
|
|
3051
3048
|
}
|
|
3052
3049
|
}
|
|
3053
|
-
function
|
|
3050
|
+
function Ja({ error: e, options: t }) {
|
|
3054
3051
|
const { publicKey: r } = t;
|
|
3055
3052
|
if (!r)
|
|
3056
3053
|
throw Error("options was missing required publicKey property");
|
|
@@ -3108,7 +3105,7 @@ function Ya({ error: e, options: t }) {
|
|
|
3108
3105
|
});
|
|
3109
3106
|
if (e.name === "SecurityError") {
|
|
3110
3107
|
const s = globalThis.location.hostname;
|
|
3111
|
-
if (
|
|
3108
|
+
if (Ts(s)) {
|
|
3112
3109
|
if (r.rp.id !== s)
|
|
3113
3110
|
return new j({
|
|
3114
3111
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
|
@@ -3160,31 +3157,31 @@ class Xa {
|
|
|
3160
3157
|
}
|
|
3161
3158
|
}
|
|
3162
3159
|
}
|
|
3163
|
-
const
|
|
3164
|
-
function
|
|
3160
|
+
const Is = new Xa(), Za = ["cross-platform", "platform"];
|
|
3161
|
+
function _s(e) {
|
|
3165
3162
|
if (e && !(Za.indexOf(e) < 0))
|
|
3166
3163
|
return e;
|
|
3167
3164
|
}
|
|
3168
3165
|
async function ei(e) {
|
|
3169
3166
|
!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 });
|
|
3170
3167
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
|
3171
|
-
if (!
|
|
3168
|
+
if (!Xt())
|
|
3172
3169
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3173
3170
|
const s = {
|
|
3174
3171
|
...t,
|
|
3175
|
-
challenge:
|
|
3172
|
+
challenge: dt(t.challenge),
|
|
3176
3173
|
user: {
|
|
3177
3174
|
...t.user,
|
|
3178
|
-
id:
|
|
3175
|
+
id: dt(t.user.id)
|
|
3179
3176
|
},
|
|
3180
|
-
excludeCredentials: t.excludeCredentials?.map(
|
|
3177
|
+
excludeCredentials: t.excludeCredentials?.map(vs)
|
|
3181
3178
|
}, n = {};
|
|
3182
|
-
r && (n.mediation = "conditional"), n.publicKey = s, n.signal =
|
|
3179
|
+
r && (n.mediation = "conditional"), n.publicKey = s, n.signal = Is.createNewAbortSignal();
|
|
3183
3180
|
let a;
|
|
3184
3181
|
try {
|
|
3185
3182
|
a = await navigator.credentials.create(n);
|
|
3186
3183
|
} catch (y) {
|
|
3187
|
-
throw
|
|
3184
|
+
throw Ja({ error: y, options: n });
|
|
3188
3185
|
}
|
|
3189
3186
|
if (!a)
|
|
3190
3187
|
throw new Error("Registration was not completed");
|
|
@@ -3196,7 +3193,7 @@ async function ei(e) {
|
|
|
3196
3193
|
try {
|
|
3197
3194
|
h = l.getPublicKeyAlgorithm();
|
|
3198
3195
|
} catch (y) {
|
|
3199
|
-
|
|
3196
|
+
It("getPublicKeyAlgorithm()", y);
|
|
3200
3197
|
}
|
|
3201
3198
|
let u;
|
|
3202
3199
|
if (typeof l.getPublicKey == "function")
|
|
@@ -3204,14 +3201,14 @@ async function ei(e) {
|
|
|
3204
3201
|
const y = l.getPublicKey();
|
|
3205
3202
|
y !== null && (u = ie(y));
|
|
3206
3203
|
} catch (y) {
|
|
3207
|
-
|
|
3204
|
+
It("getPublicKey()", y);
|
|
3208
3205
|
}
|
|
3209
3206
|
let p;
|
|
3210
3207
|
if (typeof l.getAuthenticatorData == "function")
|
|
3211
3208
|
try {
|
|
3212
3209
|
p = ie(l.getAuthenticatorData());
|
|
3213
3210
|
} catch (y) {
|
|
3214
|
-
|
|
3211
|
+
It("getAuthenticatorData()", y);
|
|
3215
3212
|
}
|
|
3216
3213
|
return {
|
|
3217
3214
|
id: i,
|
|
@@ -3226,20 +3223,20 @@ async function ei(e) {
|
|
|
3226
3223
|
},
|
|
3227
3224
|
type: f,
|
|
3228
3225
|
clientExtensionResults: a.getClientExtensionResults(),
|
|
3229
|
-
authenticatorAttachment:
|
|
3226
|
+
authenticatorAttachment: _s(a.authenticatorAttachment)
|
|
3230
3227
|
};
|
|
3231
3228
|
}
|
|
3232
|
-
function
|
|
3229
|
+
function It(e, t) {
|
|
3233
3230
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
3234
3231
|
`, t);
|
|
3235
3232
|
}
|
|
3236
3233
|
function ti() {
|
|
3237
|
-
if (!
|
|
3238
|
-
return
|
|
3234
|
+
if (!Xt())
|
|
3235
|
+
return _t.stubThis(new Promise((t) => t(!1)));
|
|
3239
3236
|
const e = globalThis.PublicKeyCredential;
|
|
3240
|
-
return e?.isConditionalMediationAvailable === void 0 ?
|
|
3237
|
+
return e?.isConditionalMediationAvailable === void 0 ? _t.stubThis(new Promise((t) => t(!1))) : _t.stubThis(e.isConditionalMediationAvailable());
|
|
3241
3238
|
}
|
|
3242
|
-
const
|
|
3239
|
+
const _t = {
|
|
3243
3240
|
stubThis: (e) => e
|
|
3244
3241
|
};
|
|
3245
3242
|
function ri({ error: e, options: t }) {
|
|
@@ -3262,7 +3259,7 @@ function ri({ error: e, options: t }) {
|
|
|
3262
3259
|
});
|
|
3263
3260
|
if (e.name === "SecurityError") {
|
|
3264
3261
|
const s = globalThis.location.hostname;
|
|
3265
|
-
if (
|
|
3262
|
+
if (Ts(s)) {
|
|
3266
3263
|
if (r.rpId !== s)
|
|
3267
3264
|
return new j({
|
|
3268
3265
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
|
@@ -3286,13 +3283,13 @@ function ri({ error: e, options: t }) {
|
|
|
3286
3283
|
async function si(e) {
|
|
3287
3284
|
!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 });
|
|
3288
3285
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
|
|
3289
|
-
if (!
|
|
3286
|
+
if (!Xt())
|
|
3290
3287
|
throw new Error("WebAuthn is not supported in this browser");
|
|
3291
3288
|
let n;
|
|
3292
|
-
t.allowCredentials?.length !== 0 && (n = t.allowCredentials?.map(
|
|
3289
|
+
t.allowCredentials?.length !== 0 && (n = t.allowCredentials?.map(vs));
|
|
3293
3290
|
const a = {
|
|
3294
3291
|
...t,
|
|
3295
|
-
challenge:
|
|
3292
|
+
challenge: dt(t.challenge),
|
|
3296
3293
|
allowCredentials: n
|
|
3297
3294
|
}, i = {};
|
|
3298
3295
|
if (r) {
|
|
@@ -3302,7 +3299,7 @@ async function si(e) {
|
|
|
3302
3299
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
3303
3300
|
i.mediation = "conditional", a.allowCredentials = [];
|
|
3304
3301
|
}
|
|
3305
|
-
i.publicKey = a, i.signal =
|
|
3302
|
+
i.publicKey = a, i.signal = Is.createNewAbortSignal();
|
|
3306
3303
|
let o;
|
|
3307
3304
|
try {
|
|
3308
3305
|
o = await navigator.credentials.get(i);
|
|
@@ -3324,29 +3321,29 @@ async function si(e) {
|
|
|
3324
3321
|
},
|
|
3325
3322
|
type: h,
|
|
3326
3323
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
3327
|
-
authenticatorAttachment:
|
|
3324
|
+
authenticatorAttachment: _s(o.authenticatorAttachment)
|
|
3328
3325
|
};
|
|
3329
3326
|
}
|
|
3330
|
-
function
|
|
3327
|
+
function As(e, t) {
|
|
3331
3328
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
3332
3329
|
}
|
|
3333
|
-
const
|
|
3330
|
+
const Ir = (e, t) => {
|
|
3334
3331
|
const r = JSON.stringify(
|
|
3335
3332
|
typeof t == "function" ? t() : t
|
|
3336
3333
|
);
|
|
3337
|
-
window.localStorage.setItem(e, r),
|
|
3334
|
+
window.localStorage.setItem(e, r), As(e, r);
|
|
3338
3335
|
}, ni = (e) => {
|
|
3339
|
-
window.localStorage.removeItem(e),
|
|
3340
|
-
},
|
|
3336
|
+
window.localStorage.removeItem(e), As(e, null);
|
|
3337
|
+
}, _r = (e) => window.localStorage.getItem(e), ai = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
3341
3338
|
function Qe({
|
|
3342
3339
|
key: e,
|
|
3343
3340
|
initialValue: t
|
|
3344
3341
|
}) {
|
|
3345
|
-
const r =
|
|
3342
|
+
const r = Gr(ai, () => _r(e)), s = M(
|
|
3346
3343
|
(i) => {
|
|
3347
3344
|
try {
|
|
3348
3345
|
const o = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
3349
|
-
o == null ? ni(e) :
|
|
3346
|
+
o == null ? ni(e) : Ir(e, o);
|
|
3350
3347
|
} catch (o) {
|
|
3351
3348
|
console.warn(o);
|
|
3352
3349
|
}
|
|
@@ -3359,7 +3356,7 @@ function Qe({
|
|
|
3359
3356
|
}, [s]);
|
|
3360
3357
|
return A(() => {
|
|
3361
3358
|
try {
|
|
3362
|
-
|
|
3359
|
+
_r(e) === null && typeof t < "u" && Ir(e, t);
|
|
3363
3360
|
} catch (i) {
|
|
3364
3361
|
console.warn(i);
|
|
3365
3362
|
}
|
|
@@ -3371,27 +3368,27 @@ for (let e = 0; e < 256; ++e)
|
|
|
3371
3368
|
function ii(e, t = 0) {
|
|
3372
3369
|
return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
|
|
3373
3370
|
}
|
|
3374
|
-
let
|
|
3371
|
+
let At;
|
|
3375
3372
|
const oi = new Uint8Array(16);
|
|
3376
3373
|
function ci() {
|
|
3377
|
-
if (!
|
|
3374
|
+
if (!At) {
|
|
3378
3375
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
3379
3376
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3380
|
-
|
|
3377
|
+
At = crypto.getRandomValues.bind(crypto);
|
|
3381
3378
|
}
|
|
3382
|
-
return
|
|
3379
|
+
return At(oi);
|
|
3383
3380
|
}
|
|
3384
|
-
const li = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
3385
|
-
function
|
|
3386
|
-
if (
|
|
3387
|
-
return
|
|
3381
|
+
const li = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ar = { randomUUID: li };
|
|
3382
|
+
function Rt(e, t, r) {
|
|
3383
|
+
if (Ar.randomUUID && !e)
|
|
3384
|
+
return Ar.randomUUID();
|
|
3388
3385
|
e = e || {};
|
|
3389
3386
|
const s = e.random ?? e.rng?.() ?? ci();
|
|
3390
3387
|
if (s.length < 16)
|
|
3391
3388
|
throw new Error("Random bytes length must be >= 16");
|
|
3392
3389
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ii(s);
|
|
3393
3390
|
}
|
|
3394
|
-
const Oe = "Your session has expired. For your security, please log in again to continue.", ui = "Your session has been successfully terminated.",
|
|
3391
|
+
const Oe = "Your session has expired. For your security, please log in again to continue.", ui = "Your session has been successfully terminated.", Ct = "Login failed. Please try again.", di = "Error getting access token, please re-authenticate.", hi = "You forgot to wrap your component in <AuthProvider>.", Ye = "@@auth@@", $e = "LOADING", rt = "LOGIN", Rs = "LOGOUT", qe = "success", ce = "failure", Cs = "include", Os = "POST", ks = "application/json", Je = {
|
|
3395
3392
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
3396
3393
|
$clientId: String!,
|
|
3397
3394
|
$username: String!,
|
|
@@ -3474,19 +3471,19 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3474
3471
|
}`
|
|
3475
3472
|
}, ke = {
|
|
3476
3473
|
GET_REGISTRATION_OPTIONS: {
|
|
3477
|
-
schema:
|
|
3474
|
+
schema: Je.GET_REGISTRATION_OPTIONS,
|
|
3478
3475
|
method: "getPasskeyRegistrationOptions"
|
|
3479
3476
|
},
|
|
3480
3477
|
VERIFY_REGISTRATION: {
|
|
3481
|
-
schema:
|
|
3478
|
+
schema: Je.VERIFY_REGISTRATION,
|
|
3482
3479
|
method: "verifyPasskeyRegistration"
|
|
3483
3480
|
},
|
|
3484
3481
|
GET_AUTHENTICATION_OPTIONS: {
|
|
3485
|
-
schema:
|
|
3482
|
+
schema: Je.GET_AUTHENTICATION_OPTIONS,
|
|
3486
3483
|
method: "getPasskeyAuthenticationOptions"
|
|
3487
3484
|
},
|
|
3488
3485
|
VERIFY_AUTHENTICATION: {
|
|
3489
|
-
schema:
|
|
3486
|
+
schema: Je.VERIFY_AUTHENTICATION,
|
|
3490
3487
|
method: "verifyPasskeyAuthentication"
|
|
3491
3488
|
}
|
|
3492
3489
|
}, Pe = async ({
|
|
@@ -3498,12 +3495,12 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3498
3495
|
}) => {
|
|
3499
3496
|
try {
|
|
3500
3497
|
const a = `Bearer ${e}`, i = await fetch(`${n}/graphql`, {
|
|
3501
|
-
credentials:
|
|
3502
|
-
method:
|
|
3498
|
+
credentials: Cs,
|
|
3499
|
+
method: Os,
|
|
3503
3500
|
headers: {
|
|
3504
3501
|
authorization: a,
|
|
3505
|
-
"Content-Type":
|
|
3506
|
-
[
|
|
3502
|
+
"Content-Type": ks,
|
|
3503
|
+
[ds.CLIENT_ID]: `${r}`
|
|
3507
3504
|
},
|
|
3508
3505
|
body: JSON.stringify({
|
|
3509
3506
|
query: t.schema,
|
|
@@ -3520,7 +3517,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3520
3517
|
} catch (a) {
|
|
3521
3518
|
return console.error(a), { status: ce, data: [] };
|
|
3522
3519
|
}
|
|
3523
|
-
},
|
|
3520
|
+
}, Et = async ({
|
|
3524
3521
|
type: e,
|
|
3525
3522
|
clientId: t,
|
|
3526
3523
|
params: r = {},
|
|
@@ -3528,11 +3525,11 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3528
3525
|
}) => {
|
|
3529
3526
|
try {
|
|
3530
3527
|
const n = await fetch(`${s}/${e}`, {
|
|
3531
|
-
credentials:
|
|
3532
|
-
method:
|
|
3528
|
+
credentials: Cs,
|
|
3529
|
+
method: Os,
|
|
3533
3530
|
headers: {
|
|
3534
|
-
"Content-Type":
|
|
3535
|
-
[
|
|
3531
|
+
"Content-Type": ks,
|
|
3532
|
+
[ds.CLIENT_ID]: `${t}`
|
|
3536
3533
|
},
|
|
3537
3534
|
body: JSON.stringify(r)
|
|
3538
3535
|
});
|
|
@@ -3546,7 +3543,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3546
3543
|
} catch (n) {
|
|
3547
3544
|
return console.error(n), { status: ce, data: [] };
|
|
3548
3545
|
}
|
|
3549
|
-
}, fi = process.env.NODE_ENV === "production", pi = !fi,
|
|
3546
|
+
}, fi = process.env.NODE_ENV === "production", pi = !fi, Ps = {
|
|
3550
3547
|
isLoading: !0,
|
|
3551
3548
|
isAuthenticated: !1,
|
|
3552
3549
|
user: void 0,
|
|
@@ -3569,9 +3566,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3569
3566
|
}) => {
|
|
3570
3567
|
try {
|
|
3571
3568
|
return {
|
|
3572
|
-
status: (await
|
|
3569
|
+
status: (await Et({
|
|
3573
3570
|
endpoint: n,
|
|
3574
|
-
type:
|
|
3571
|
+
type: gt.LOGOUT,
|
|
3575
3572
|
clientId: t,
|
|
3576
3573
|
params: {
|
|
3577
3574
|
userId: e,
|
|
@@ -3599,9 +3596,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3599
3596
|
endpoint: d
|
|
3600
3597
|
}) => {
|
|
3601
3598
|
try {
|
|
3602
|
-
const h = await
|
|
3599
|
+
const h = await Et({
|
|
3603
3600
|
endpoint: d,
|
|
3604
|
-
type:
|
|
3601
|
+
type: gt.LOGIN,
|
|
3605
3602
|
clientId: r,
|
|
3606
3603
|
params: {
|
|
3607
3604
|
type: n,
|
|
@@ -3637,9 +3634,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3637
3634
|
endpoint: s
|
|
3638
3635
|
}) => {
|
|
3639
3636
|
try {
|
|
3640
|
-
const n = await
|
|
3637
|
+
const n = await Et({
|
|
3641
3638
|
endpoint: s,
|
|
3642
|
-
type:
|
|
3639
|
+
type: gt.CODE,
|
|
3643
3640
|
clientId: t,
|
|
3644
3641
|
params: {
|
|
3645
3642
|
type: Ue.CODE,
|
|
@@ -3670,9 +3667,9 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3670
3667
|
endpoint: i
|
|
3671
3668
|
}) => {
|
|
3672
3669
|
try {
|
|
3673
|
-
const o = await
|
|
3670
|
+
const o = await Et({
|
|
3674
3671
|
endpoint: i,
|
|
3675
|
-
type:
|
|
3672
|
+
type: gt.REFRESH,
|
|
3676
3673
|
clientId: e,
|
|
3677
3674
|
params: {
|
|
3678
3675
|
type: Ue.REFRESH_TOKEN,
|
|
@@ -3699,7 +3696,7 @@ const Oe = "Your session has expired. For your security, please log in again to
|
|
|
3699
3696
|
};
|
|
3700
3697
|
class Si {
|
|
3701
3698
|
constructor(t = null, r = null) {
|
|
3702
|
-
|
|
3699
|
+
Tt(this, "refreshTokenPromise", null), Tt(this, "accessToken"), Tt(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
3703
3700
|
}
|
|
3704
3701
|
async refreshtoken({
|
|
3705
3702
|
clientId: t,
|
|
@@ -3754,7 +3751,7 @@ class Si {
|
|
|
3754
3751
|
}
|
|
3755
3752
|
const Ne = () => {
|
|
3756
3753
|
throw new Error(hi);
|
|
3757
|
-
},
|
|
3754
|
+
}, Ns = Gt({
|
|
3758
3755
|
isAuthenticated: !1,
|
|
3759
3756
|
isLoading: !1,
|
|
3760
3757
|
login: Ne,
|
|
@@ -3766,27 +3763,27 @@ const Ne = () => {
|
|
|
3766
3763
|
logoutReason: "",
|
|
3767
3764
|
authenticationType: ""
|
|
3768
3765
|
}), bi = () => ({
|
|
3769
|
-
...ze(
|
|
3766
|
+
...ze(Ns)
|
|
3770
3767
|
}), vi = (e) => M(
|
|
3771
3768
|
(...t) => {
|
|
3772
3769
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
3773
3770
|
},
|
|
3774
3771
|
[e]
|
|
3775
3772
|
), Ti = ee.createContext({
|
|
3776
|
-
state:
|
|
3773
|
+
state: Ps,
|
|
3777
3774
|
dispatch: () => {
|
|
3778
3775
|
}
|
|
3779
3776
|
}), Ii = (e, t) => t?.type === $e ? {
|
|
3780
3777
|
...e,
|
|
3781
3778
|
isLoading: t.payload.isLoading
|
|
3782
|
-
} : t?.type ===
|
|
3779
|
+
} : t?.type === rt ? {
|
|
3783
3780
|
...e,
|
|
3784
3781
|
isLoading: !1,
|
|
3785
3782
|
isAuthenticated: !0,
|
|
3786
3783
|
user: t.payload.user,
|
|
3787
3784
|
authenticationType: t.payload.authenticationType,
|
|
3788
3785
|
logoutReason: ""
|
|
3789
|
-
} : t?.type ===
|
|
3786
|
+
} : t?.type === Rs ? {
|
|
3790
3787
|
...e,
|
|
3791
3788
|
isLoading: !1,
|
|
3792
3789
|
isAuthenticated: !1,
|
|
@@ -3795,8 +3792,8 @@ const Ne = () => {
|
|
|
3795
3792
|
logoutReason: t.payload.logoutReason
|
|
3796
3793
|
} : e, _i = ({ children: e }) => {
|
|
3797
3794
|
const t = bi();
|
|
3798
|
-
return /* @__PURE__ */ c(
|
|
3799
|
-
},
|
|
3795
|
+
return /* @__PURE__ */ c(bs.Provider, { value: t, children: e });
|
|
3796
|
+
}, Rr = ({
|
|
3800
3797
|
children: e,
|
|
3801
3798
|
sessionExpiration: t,
|
|
3802
3799
|
clientId: r,
|
|
@@ -3804,19 +3801,19 @@ const Ne = () => {
|
|
|
3804
3801
|
debug: n = !1,
|
|
3805
3802
|
endpoint: a = pi ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
|
|
3806
3803
|
}) => {
|
|
3807
|
-
const [i, o] =
|
|
3808
|
-
...
|
|
3804
|
+
const [i, o] = Vr(Ii, {
|
|
3805
|
+
...Ps,
|
|
3809
3806
|
debug: n
|
|
3810
3807
|
}), l = vi(n), f = B(!1), [d, h, , u] = Qe({
|
|
3811
|
-
key: `${
|
|
3808
|
+
key: `${Ye}::${r}::@@user@@`
|
|
3812
3809
|
}), [p, y, , g] = Qe({
|
|
3813
|
-
key: `${
|
|
3810
|
+
key: `${Ye}::${r}::@@access@@`
|
|
3814
3811
|
}), [w, b, , x] = Qe(
|
|
3815
3812
|
{
|
|
3816
|
-
key: `${
|
|
3813
|
+
key: `${Ye}::${r}::@@refresh@@`
|
|
3817
3814
|
}
|
|
3818
|
-
), [R,
|
|
3819
|
-
key: `${
|
|
3815
|
+
), [R, J, , P] = Qe({
|
|
3816
|
+
key: `${Ye}::${r}::@@nonce@@`
|
|
3820
3817
|
}), se = new Si(p, w), N = M(() => {
|
|
3821
3818
|
l("removeLocalStorage: removing local storage"), u(), g(), x(), P();
|
|
3822
3819
|
}, [
|
|
@@ -3831,7 +3828,7 @@ const Ne = () => {
|
|
|
3831
3828
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
3832
3829
|
v
|
|
3833
3830
|
), o({
|
|
3834
|
-
type:
|
|
3831
|
+
type: Rs,
|
|
3835
3832
|
payload: {
|
|
3836
3833
|
logoutReason: v || Oe
|
|
3837
3834
|
}
|
|
@@ -3868,7 +3865,7 @@ const Ne = () => {
|
|
|
3868
3865
|
try {
|
|
3869
3866
|
const v = await Ve(d);
|
|
3870
3867
|
v && v.payload[Q.USER_ID_KEY] !== "" ? (l("useEffect: setting the authentication state"), o({
|
|
3871
|
-
type:
|
|
3868
|
+
type: rt,
|
|
3872
3869
|
payload: {
|
|
3873
3870
|
authenticationType: v.payload[Q.AUTH_TYPE_KEY],
|
|
3874
3871
|
user: {
|
|
@@ -3889,15 +3886,15 @@ const Ne = () => {
|
|
|
3889
3886
|
}, [i.isLoading, d, G, l]);
|
|
3890
3887
|
const O = async (v, _) => {
|
|
3891
3888
|
o({ type: $e, payload: { isLoading: !0 } }), N();
|
|
3892
|
-
const T =
|
|
3893
|
-
|
|
3894
|
-
const { code_verifier: ge, code_challenge: Ee } = await Wa(),
|
|
3889
|
+
const T = Rt();
|
|
3890
|
+
J(T), l("login: Logging in with password");
|
|
3891
|
+
const { code_verifier: ge, code_challenge: Ee } = await Wa(), ar = await Ei({
|
|
3895
3892
|
endpoint: a,
|
|
3896
3893
|
nonce: T,
|
|
3897
3894
|
clientId: r,
|
|
3898
3895
|
code_challenge: Ee
|
|
3899
3896
|
});
|
|
3900
|
-
if (
|
|
3897
|
+
if (ar.status) {
|
|
3901
3898
|
const Re = await gi({
|
|
3902
3899
|
endpoint: a,
|
|
3903
3900
|
username: v,
|
|
@@ -3906,13 +3903,13 @@ const Ne = () => {
|
|
|
3906
3903
|
sessionExpiration: t,
|
|
3907
3904
|
nonce: T,
|
|
3908
3905
|
type: Ue.CODE,
|
|
3909
|
-
code:
|
|
3906
|
+
code: ar.data,
|
|
3910
3907
|
code_verifier: ge,
|
|
3911
3908
|
domain: s,
|
|
3912
3909
|
ua: navigator.userAgent
|
|
3913
3910
|
});
|
|
3914
3911
|
return Re.status ? (h(Re.idToken), y(Re.accessToken), b(Re.refreshToken), o({
|
|
3915
|
-
type:
|
|
3912
|
+
type: rt,
|
|
3916
3913
|
payload: {
|
|
3917
3914
|
authenticationType: Ue.CODE,
|
|
3918
3915
|
user: {
|
|
@@ -3921,7 +3918,7 @@ const Ne = () => {
|
|
|
3921
3918
|
email: Re.email
|
|
3922
3919
|
}
|
|
3923
3920
|
}
|
|
3924
|
-
}), !0) : (I(
|
|
3921
|
+
}), !0) : (I(Ct), !1);
|
|
3925
3922
|
}
|
|
3926
3923
|
return !1;
|
|
3927
3924
|
}, C = async (v) => {
|
|
@@ -4003,9 +4000,9 @@ const Ne = () => {
|
|
|
4003
4000
|
return !1;
|
|
4004
4001
|
}, Ae = async () => {
|
|
4005
4002
|
o({ type: $e, payload: { isLoading: !0 } }), N();
|
|
4006
|
-
const v =
|
|
4007
|
-
|
|
4008
|
-
const _ =
|
|
4003
|
+
const v = Rt();
|
|
4004
|
+
J(v), l("loginWithPasskey");
|
|
4005
|
+
const _ = Rt();
|
|
4009
4006
|
let T = await Pe({
|
|
4010
4007
|
endpoint: a,
|
|
4011
4008
|
accessToken: p,
|
|
@@ -4036,7 +4033,7 @@ const Ne = () => {
|
|
|
4036
4033
|
ua: navigator.userAgent
|
|
4037
4034
|
}
|
|
4038
4035
|
}), T.data.status === qe ? (h(T.data.idToken), y(T.data.accessToken), b(T.data.refreshToken), o({
|
|
4039
|
-
type:
|
|
4036
|
+
type: rt,
|
|
4040
4037
|
payload: {
|
|
4041
4038
|
authenticationType: Ue.PASSKEY,
|
|
4042
4039
|
user: {
|
|
@@ -4045,7 +4042,7 @@ const Ne = () => {
|
|
|
4045
4042
|
email: T.data.email
|
|
4046
4043
|
}
|
|
4047
4044
|
}
|
|
4048
|
-
}), !0) : (I(
|
|
4045
|
+
}), !0) : (I(Ct), !1);
|
|
4049
4046
|
} catch {
|
|
4050
4047
|
return await Pe({
|
|
4051
4048
|
endpoint: a,
|
|
@@ -4060,12 +4057,12 @@ const Ne = () => {
|
|
|
4060
4057
|
domain: s,
|
|
4061
4058
|
sessionExpiration: t
|
|
4062
4059
|
}
|
|
4063
|
-
}), I(
|
|
4060
|
+
}), I(Ct), !1;
|
|
4064
4061
|
}
|
|
4065
4062
|
return !1;
|
|
4066
4063
|
};
|
|
4067
4064
|
return /* @__PURE__ */ c(Ti.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ c(
|
|
4068
|
-
|
|
4065
|
+
Ns.Provider,
|
|
4069
4066
|
{
|
|
4070
4067
|
value: {
|
|
4071
4068
|
...i,
|
|
@@ -4081,53 +4078,53 @@ const Ne = () => {
|
|
|
4081
4078
|
) });
|
|
4082
4079
|
};
|
|
4083
4080
|
/*!
|
|
4084
|
-
@versini/auth-provider v8.0
|
|
4081
|
+
@versini/auth-provider v8.1.0
|
|
4085
4082
|
© 2025 gizmette.com
|
|
4086
4083
|
*/
|
|
4087
4084
|
try {
|
|
4088
4085
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
4089
|
-
version: "8.0
|
|
4090
|
-
buildTime: "11/
|
|
4086
|
+
version: "8.1.0",
|
|
4087
|
+
buildTime: "11/26/2025 08:59 PM EST",
|
|
4091
4088
|
homepage: "https://github.com/aversini/auth-client",
|
|
4092
4089
|
license: "MIT"
|
|
4093
4090
|
});
|
|
4094
4091
|
} catch {
|
|
4095
4092
|
}
|
|
4096
|
-
const
|
|
4097
|
-
const e = ze(
|
|
4093
|
+
const Ms = () => {
|
|
4094
|
+
const e = ze(bs);
|
|
4098
4095
|
if (!e)
|
|
4099
4096
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
|
4100
4097
|
return e;
|
|
4101
|
-
},
|
|
4102
|
-
let
|
|
4098
|
+
}, zc = "I'm having trouble right now. Please try again later.", qc = "action-search", Wc = "action-sort", jc = "action-toggle-prompt", Qc = "action-reset-prompt", xs = "sassy-saint-", Yc = "search", Jc = "sort", Xc = "sort-timestamp", Zc = "sort-token-usage", el = "sort-memory-direction", tl = "sort-memory-column", rl = "favorites-only", sl = "private-disclosure", nl = "reasoning-disclosure", Ls = "service-worker", al = "chat-id", il = "sassysaint-oled-mode", ol = "sassysaint-full-screen", Cr = "data-oled-mode", Or = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", cl = 20, ll = 30, ul = "av-prompt", dl = "av-prompt-editable", hl = "size-5 sm:size-4", fl = 30, pl = 15, yl = 130, ml = 160, gl = 16, El = 24, wl = 76, Sl = 76;
|
|
4099
|
+
let Ot = null, he = !1;
|
|
4103
4100
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
|
4104
4101
|
he && (he = !1, window.location.reload());
|
|
4105
4102
|
});
|
|
4106
|
-
function
|
|
4103
|
+
function Zt() {
|
|
4107
4104
|
return "serviceWorker" in navigator;
|
|
4108
4105
|
}
|
|
4109
|
-
function
|
|
4106
|
+
function Kt() {
|
|
4110
4107
|
const e = localStorage.getItem(
|
|
4111
|
-
|
|
4108
|
+
xs + Ls
|
|
4112
4109
|
);
|
|
4113
4110
|
return e === null ? !1 : e === "true";
|
|
4114
4111
|
}
|
|
4115
4112
|
function Ai(e) {
|
|
4116
4113
|
localStorage.setItem(
|
|
4117
|
-
|
|
4114
|
+
xs + Ls,
|
|
4118
4115
|
e.toString()
|
|
4119
4116
|
);
|
|
4120
4117
|
}
|
|
4121
|
-
async function
|
|
4122
|
-
if (!
|
|
4118
|
+
async function Ds() {
|
|
4119
|
+
if (!Kt())
|
|
4123
4120
|
return !1;
|
|
4124
|
-
if (!
|
|
4121
|
+
if (!Zt())
|
|
4125
4122
|
return console.warn("[SW] Service workers not supported"), !1;
|
|
4126
4123
|
try {
|
|
4127
|
-
return
|
|
4124
|
+
return Ot = await navigator.serviceWorker.register("/sw.js", {
|
|
4128
4125
|
scope: "/"
|
|
4129
|
-
}),
|
|
4130
|
-
const e =
|
|
4126
|
+
}), Ot.addEventListener("updatefound", () => {
|
|
4127
|
+
const e = Ot?.installing;
|
|
4131
4128
|
e && e.addEventListener("statechange", () => {
|
|
4132
4129
|
e.state === "installed" && navigator.serviceWorker.controller && (alert(
|
|
4133
4130
|
"A new version of the app is available. Reloading to update cached assets."
|
|
@@ -4139,7 +4136,7 @@ async function Ls() {
|
|
|
4139
4136
|
}
|
|
4140
4137
|
}
|
|
4141
4138
|
async function Ri() {
|
|
4142
|
-
if (!
|
|
4139
|
+
if (!Zt())
|
|
4143
4140
|
return !1;
|
|
4144
4141
|
try {
|
|
4145
4142
|
const e = await navigator.serviceWorker.getRegistration();
|
|
@@ -4148,19 +4145,19 @@ async function Ri() {
|
|
|
4148
4145
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
|
4149
4146
|
}
|
|
4150
4147
|
}
|
|
4151
|
-
async function
|
|
4148
|
+
async function bl(e) {
|
|
4152
4149
|
if (Ai(e), e) {
|
|
4153
4150
|
he = !0;
|
|
4154
4151
|
try {
|
|
4155
4152
|
sessionStorage.setItem("sw-toggle-pending", "enabled");
|
|
4156
4153
|
} catch {
|
|
4157
4154
|
}
|
|
4158
|
-
await
|
|
4155
|
+
await Ds(), navigator.serviceWorker.controller && he && (he = !1, window.location.reload());
|
|
4159
4156
|
try {
|
|
4160
4157
|
navigator.serviceWorker.ready.then(() => {
|
|
4161
|
-
he &&
|
|
4158
|
+
he && Kt() && (he = !1, window.location.reload());
|
|
4162
4159
|
}), setTimeout(() => {
|
|
4163
|
-
he &&
|
|
4160
|
+
he && Kt() && (he = !1, window.location.reload());
|
|
4164
4161
|
}, 3e3);
|
|
4165
4162
|
} catch {
|
|
4166
4163
|
}
|
|
@@ -4170,7 +4167,7 @@ async function vl(e) {
|
|
|
4170
4167
|
} catch {
|
|
4171
4168
|
}
|
|
4172
4169
|
try {
|
|
4173
|
-
|
|
4170
|
+
Zt() && await Ci();
|
|
4174
4171
|
} catch (t) {
|
|
4175
4172
|
console.warn("[SW] Failed to invalidate cache:", t);
|
|
4176
4173
|
}
|
|
@@ -4200,13 +4197,13 @@ async function Ci() {
|
|
|
4200
4197
|
console.warn("[SW] Failed to invalidate cache:", e);
|
|
4201
4198
|
}
|
|
4202
4199
|
}
|
|
4203
|
-
function
|
|
4200
|
+
function kt() {
|
|
4204
4201
|
return "unknown";
|
|
4205
4202
|
}
|
|
4206
|
-
async function
|
|
4203
|
+
async function vl(e = {}) {
|
|
4207
4204
|
const { urlLimitPerCache: t } = e;
|
|
4208
4205
|
if (!("caches" in window))
|
|
4209
|
-
return { version:
|
|
4206
|
+
return { version: kt(), caches: [], totalItems: 0 };
|
|
4210
4207
|
try {
|
|
4211
4208
|
const r = await caches.keys(), s = [];
|
|
4212
4209
|
let n = 0;
|
|
@@ -4222,15 +4219,15 @@ async function Tl(e = {}) {
|
|
|
4222
4219
|
console.warn("[SW] Failed reading cache", a, i);
|
|
4223
4220
|
}
|
|
4224
4221
|
return {
|
|
4225
|
-
version:
|
|
4222
|
+
version: kt(),
|
|
4226
4223
|
caches: s,
|
|
4227
4224
|
totalItems: n
|
|
4228
4225
|
};
|
|
4229
4226
|
} catch (r) {
|
|
4230
|
-
return console.warn("[SW] getCacheInfo failed:", r), { version:
|
|
4227
|
+
return console.warn("[SW] getCacheInfo failed:", r), { version: kt(), caches: [], totalItems: 0 };
|
|
4231
4228
|
}
|
|
4232
4229
|
}
|
|
4233
|
-
const
|
|
4230
|
+
const kr = (e) => Number.isFinite(e) ? e : 0;
|
|
4234
4231
|
function Oi(e) {
|
|
4235
4232
|
return {
|
|
4236
4233
|
days: Math.trunc(e / 864e5),
|
|
@@ -4238,8 +4235,8 @@ function Oi(e) {
|
|
|
4238
4235
|
minutes: Math.trunc(e / 6e4 % 60),
|
|
4239
4236
|
seconds: Math.trunc(e / 1e3 % 60),
|
|
4240
4237
|
milliseconds: Math.trunc(e % 1e3),
|
|
4241
|
-
microseconds: Math.trunc(
|
|
4242
|
-
nanoseconds: Math.trunc(
|
|
4238
|
+
microseconds: Math.trunc(kr(e * 1e3) % 1e3),
|
|
4239
|
+
nanoseconds: Math.trunc(kr(e * 1e6) % 1e3)
|
|
4243
4240
|
};
|
|
4244
4241
|
}
|
|
4245
4242
|
function ki(e) {
|
|
@@ -4310,7 +4307,7 @@ function Di(e, t) {
|
|
|
4310
4307
|
const f = t.colonNotation ? ":" : " ";
|
|
4311
4308
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), s + n.join(f);
|
|
4312
4309
|
}
|
|
4313
|
-
const
|
|
4310
|
+
const $s = process.env.NODE_ENV === "production", ht = !$s, Us = ht ? "gizmette.local.com" : "gizmette.com", er = (e, t) => {
|
|
4314
4311
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", s = 0 | Math.abs(e), n = 0 | Math.abs(e) * 60 % 60, a = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
|
4315
4312
|
return {
|
|
4316
4313
|
dir: r,
|
|
@@ -4321,12 +4318,12 @@ const Ds = process.env.NODE_ENV === "production", dt = !Ds, $s = dt ? "gizmette.
|
|
|
4321
4318
|
}, $i = (e) => {
|
|
4322
4319
|
if (!e && e !== 0)
|
|
4323
4320
|
return "N/A";
|
|
4324
|
-
const t =
|
|
4321
|
+
const t = er(e, !1);
|
|
4325
4322
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4326
4323
|
}, Ui = (e) => {
|
|
4327
4324
|
if (!e && e !== 0)
|
|
4328
4325
|
return "N/A";
|
|
4329
|
-
const t =
|
|
4326
|
+
const t = er(e, !0);
|
|
4330
4327
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
4331
4328
|
}, Hi = async () => {
|
|
4332
4329
|
const e = {
|
|
@@ -4424,14 +4421,14 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4424
4421
|
}), qi = (e) => e > 0 ? Di(e, {
|
|
4425
4422
|
secondsDecimalDigits: 2,
|
|
4426
4423
|
unitCount: 2
|
|
4427
|
-
}) : "N/A",
|
|
4424
|
+
}) : "N/A", Hs = ({
|
|
4428
4425
|
isAuthenticated: e,
|
|
4429
4426
|
extraClass: t,
|
|
4430
4427
|
oledMode: r
|
|
4431
4428
|
}) => m("px-4", "flex-1 overflow-y-auto", e ? "pt-0" : "pt-10", t, {
|
|
4432
4429
|
"bg-slate-900/95 dark:bg-slate-900": r,
|
|
4433
4430
|
"bg-slate-900": !r
|
|
4434
|
-
}),
|
|
4431
|
+
}), Fs = ({
|
|
4435
4432
|
extraClass: e,
|
|
4436
4433
|
fullScreen: t
|
|
4437
4434
|
} = {}) => m(
|
|
@@ -4449,13 +4446,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4449
4446
|
return (...s) => {
|
|
4450
4447
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
|
4451
4448
|
};
|
|
4452
|
-
},
|
|
4453
|
-
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r =
|
|
4449
|
+
}, Bs = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Ks = () => window.innerWidth < 403, Vs = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Qi = () => {
|
|
4450
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ks(), s = navigator.maxTouchPoints > 1;
|
|
4454
4451
|
return e && t && r && s;
|
|
4455
|
-
},
|
|
4456
|
-
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t =
|
|
4452
|
+
}, Yi = () => {
|
|
4453
|
+
const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Vs(), r = navigator.maxTouchPoints > 1;
|
|
4457
4454
|
return e && t && r;
|
|
4458
|
-
},
|
|
4455
|
+
}, Ji = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, Xi = (e) => {
|
|
4459
4456
|
const t = e.replace(/([A-Z])/g, " $1");
|
|
4460
4457
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
4461
4458
|
}, Zi = ({
|
|
@@ -4483,8 +4480,8 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4483
4480
|
transition: f,
|
|
4484
4481
|
icon: d
|
|
4485
4482
|
}), eo = (e, t) => t === "ready" && !!e && e.length > 0, to = (e) => {
|
|
4486
|
-
e ? document.documentElement.setAttribute(
|
|
4487
|
-
},
|
|
4483
|
+
e ? document.documentElement.setAttribute(Cr, "true") : document.documentElement.removeAttribute(Cr);
|
|
4484
|
+
}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Us, applyOledMode: to, canEvaluateModels: eo, convertCamelCaseToReadable: Xi, convertDDToDMS: er, convertLatitudeToDMS: $i, convertLongitudeToDMS: Ui, debounce: ji, durationFormatter: qi, extractAverage: Vi, getCurrentGeoLocation: Hi, getLayoutPaddingClass: Fs, getMessageContaintWrapperClass: Hs, isDev: ht, isLastMessageFromRole: Gi, isPWAMode: Ji, isProbablyMobile: Ks, isProbablyTablet: Vs, isProbablyiPad: Yi, isProbablyiPhone: Qi, isProd: $s, isTauri: Bs, numberFormatter: zi, obfuscate: Fi, pluralize: Wi, renderDataAsList: Ki, toastOptions: Zi, unObfuscate: Bi }, Symbol.toStringTag, { value: "Module" })), H = {
|
|
4488
4485
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
4489
4486
|
location(latitude: $latitude, longitude: $longitude) {
|
|
4490
4487
|
country
|
|
@@ -4666,11 +4663,14 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4666
4663
|
GET_USAGE: `query GetUsage(
|
|
4667
4664
|
$user: String!,
|
|
4668
4665
|
$month: String,
|
|
4669
|
-
$year: String
|
|
4670
|
-
|
|
4666
|
+
$year: String,
|
|
4667
|
+
$timeRange: String) {
|
|
4668
|
+
usage(user: $user, month: $month, year: $year, timeRange: $timeRange) {
|
|
4671
4669
|
models
|
|
4672
4670
|
tokenUsage
|
|
4673
4671
|
modelUsage
|
|
4672
|
+
categories
|
|
4673
|
+
timeRange
|
|
4674
4674
|
}
|
|
4675
4675
|
}`,
|
|
4676
4676
|
GET_USER_MEMORIES: `query GetUserMemories($user: String!, $query: String) {
|
|
@@ -4809,7 +4809,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4809
4809
|
schema: H.RESTORE_MEMORY,
|
|
4810
4810
|
method: "restoreMemory"
|
|
4811
4811
|
}
|
|
4812
|
-
}, ro = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
4812
|
+
}, ro = process.env.PUBLIC_SASSY_API_SERVER_URL, ft = async ({
|
|
4813
4813
|
query: e,
|
|
4814
4814
|
data: t,
|
|
4815
4815
|
headers: r = {},
|
|
@@ -4832,13 +4832,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4832
4832
|
try {
|
|
4833
4833
|
let r;
|
|
4834
4834
|
if (e.noAuth === !0)
|
|
4835
|
-
r = await
|
|
4835
|
+
r = await ft({
|
|
4836
4836
|
query: e.type.schema,
|
|
4837
4837
|
data: t
|
|
4838
4838
|
});
|
|
4839
4839
|
else {
|
|
4840
4840
|
const a = `Bearer ${e.accessToken}`;
|
|
4841
|
-
r = await
|
|
4841
|
+
r = await ft({
|
|
4842
4842
|
headers: {
|
|
4843
4843
|
authorization: a
|
|
4844
4844
|
},
|
|
@@ -4859,7 +4859,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4859
4859
|
} catch (r) {
|
|
4860
4860
|
throw console.error(r), r;
|
|
4861
4861
|
}
|
|
4862
|
-
},
|
|
4862
|
+
}, Il = async ({
|
|
4863
4863
|
provider: e,
|
|
4864
4864
|
model: t,
|
|
4865
4865
|
accessToken: r,
|
|
@@ -4874,7 +4874,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4874
4874
|
type: V.SET_USER_PREFERENCES,
|
|
4875
4875
|
params: n
|
|
4876
4876
|
});
|
|
4877
|
-
},
|
|
4877
|
+
}, _l = async ({
|
|
4878
4878
|
plan: e,
|
|
4879
4879
|
accessToken: t,
|
|
4880
4880
|
username: r
|
|
@@ -4895,13 +4895,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4895
4895
|
USAGE: "usage",
|
|
4896
4896
|
USER_MEMORIES: "userMemories",
|
|
4897
4897
|
EXPIRED_MEMORIES: "expiredMemories"
|
|
4898
|
-
},
|
|
4898
|
+
}, Al = () => pe({
|
|
4899
4899
|
queryKey: [K.CAPABILITIES],
|
|
4900
4900
|
queryFn: async () => await ye({
|
|
4901
4901
|
type: V.GET_SERVER_CAPABILITIES,
|
|
4902
4902
|
noAuth: !0
|
|
4903
4903
|
})
|
|
4904
|
-
}),
|
|
4904
|
+
}), Rl = () => pe({
|
|
4905
4905
|
queryKey: [K.CHANGELOGS],
|
|
4906
4906
|
queryFn: async () => await ye({
|
|
4907
4907
|
type: V.GET_CHANGELOGS,
|
|
@@ -4922,7 +4922,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4922
4922
|
type: V.GET_USER_PREFERENCES,
|
|
4923
4923
|
getAccessToken: t
|
|
4924
4924
|
})
|
|
4925
|
-
}),
|
|
4925
|
+
}), Cl = ({
|
|
4926
4926
|
user: e,
|
|
4927
4927
|
getAccessToken: t
|
|
4928
4928
|
}) => pe({
|
|
@@ -4934,7 +4934,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4934
4934
|
type: V.GET_CHATS_STATS,
|
|
4935
4935
|
getAccessToken: t
|
|
4936
4936
|
})
|
|
4937
|
-
}),
|
|
4937
|
+
}), Ol = ({
|
|
4938
4938
|
user: e,
|
|
4939
4939
|
searchString: t,
|
|
4940
4940
|
sortDirection: r,
|
|
@@ -4958,7 +4958,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4958
4958
|
type: V.GET_CHATS,
|
|
4959
4959
|
getAccessToken: n
|
|
4960
4960
|
})
|
|
4961
|
-
}),
|
|
4961
|
+
}), kl = ({
|
|
4962
4962
|
chatId: e,
|
|
4963
4963
|
getAccessToken: t,
|
|
4964
4964
|
enabled: r = !0
|
|
@@ -4970,7 +4970,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4970
4970
|
type: V.GET_CHAT,
|
|
4971
4971
|
getAccessToken: t
|
|
4972
4972
|
})
|
|
4973
|
-
}),
|
|
4973
|
+
}), Pl = ({
|
|
4974
4974
|
getAccessToken: e
|
|
4975
4975
|
}) => {
|
|
4976
4976
|
const t = le();
|
|
@@ -4994,7 +4994,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
4994
4994
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
4995
4995
|
}
|
|
4996
4996
|
});
|
|
4997
|
-
},
|
|
4997
|
+
}, Nl = ({
|
|
4998
4998
|
getAccessToken: e
|
|
4999
4999
|
}) => {
|
|
5000
5000
|
const t = le();
|
|
@@ -5011,7 +5011,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5011
5011
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
5012
5012
|
}
|
|
5013
5013
|
});
|
|
5014
|
-
},
|
|
5014
|
+
}, Ml = ({
|
|
5015
5015
|
getAccessToken: e
|
|
5016
5016
|
}) => {
|
|
5017
5017
|
const t = le();
|
|
@@ -5028,25 +5028,27 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5028
5028
|
t.invalidateQueries({ queryKey: [K.CHATS, s.userId] });
|
|
5029
5029
|
}
|
|
5030
5030
|
});
|
|
5031
|
-
},
|
|
5031
|
+
}, xl = ({
|
|
5032
5032
|
user: e,
|
|
5033
5033
|
month: t,
|
|
5034
5034
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
|
5035
|
-
|
|
5036
|
-
|
|
5035
|
+
timeRange: s,
|
|
5036
|
+
getAccessToken: n,
|
|
5037
|
+
enabled: a = !0
|
|
5037
5038
|
}) => pe({
|
|
5038
|
-
enabled:
|
|
5039
|
-
queryKey: [K.USAGE, e, t, r],
|
|
5039
|
+
enabled: a,
|
|
5040
|
+
queryKey: [K.USAGE, e, t, r, s],
|
|
5040
5041
|
queryFn: async () => await ye({
|
|
5041
5042
|
params: {
|
|
5042
5043
|
user: e,
|
|
5043
5044
|
month: t,
|
|
5044
|
-
year: r
|
|
5045
|
+
year: r,
|
|
5046
|
+
timeRange: s
|
|
5045
5047
|
},
|
|
5046
5048
|
type: V.GET_USAGE,
|
|
5047
|
-
getAccessToken:
|
|
5049
|
+
getAccessToken: n
|
|
5048
5050
|
})
|
|
5049
|
-
}),
|
|
5051
|
+
}), Ll = ({
|
|
5050
5052
|
user: e,
|
|
5051
5053
|
query: t,
|
|
5052
5054
|
getAccessToken: r,
|
|
@@ -5059,7 +5061,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5059
5061
|
type: V.GET_USER_MEMORIES,
|
|
5060
5062
|
getAccessToken: r
|
|
5061
5063
|
})
|
|
5062
|
-
}),
|
|
5064
|
+
}), Dl = ({
|
|
5063
5065
|
getAccessToken: e
|
|
5064
5066
|
}) => {
|
|
5065
5067
|
const t = le();
|
|
@@ -5083,7 +5085,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5083
5085
|
});
|
|
5084
5086
|
}
|
|
5085
5087
|
});
|
|
5086
|
-
},
|
|
5088
|
+
}, $l = ({
|
|
5087
5089
|
getAccessToken: e
|
|
5088
5090
|
}) => {
|
|
5089
5091
|
const t = le();
|
|
@@ -5107,7 +5109,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5107
5109
|
});
|
|
5108
5110
|
}
|
|
5109
5111
|
});
|
|
5110
|
-
},
|
|
5112
|
+
}, Ul = ({
|
|
5111
5113
|
getAccessToken: e
|
|
5112
5114
|
}) => {
|
|
5113
5115
|
const t = le();
|
|
@@ -5126,7 +5128,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5126
5128
|
});
|
|
5127
5129
|
}
|
|
5128
5130
|
});
|
|
5129
|
-
},
|
|
5131
|
+
}, Hl = ({
|
|
5130
5132
|
getAccessToken: e
|
|
5131
5133
|
}) => {
|
|
5132
5134
|
const t = le();
|
|
@@ -5145,7 +5147,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5145
5147
|
});
|
|
5146
5148
|
}
|
|
5147
5149
|
});
|
|
5148
|
-
},
|
|
5150
|
+
}, Fl = ({
|
|
5149
5151
|
user: e,
|
|
5150
5152
|
query: t,
|
|
5151
5153
|
getAccessToken: r,
|
|
@@ -5158,7 +5160,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5158
5160
|
type: V.GET_EXPIRED_MEMORIES,
|
|
5159
5161
|
getAccessToken: r
|
|
5160
5162
|
})
|
|
5161
|
-
}),
|
|
5163
|
+
}), Bl = ({
|
|
5162
5164
|
getAccessToken: e
|
|
5163
5165
|
}) => {
|
|
5164
5166
|
const t = le();
|
|
@@ -5192,13 +5194,13 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5192
5194
|
const n = t?.data ? t.data(e) : e;
|
|
5193
5195
|
let a;
|
|
5194
5196
|
if (r === !0)
|
|
5195
|
-
a = await
|
|
5197
|
+
a = await ft({
|
|
5196
5198
|
query: t.schema,
|
|
5197
5199
|
data: n
|
|
5198
5200
|
});
|
|
5199
5201
|
else if (s) {
|
|
5200
5202
|
const f = await s();
|
|
5201
|
-
a = await
|
|
5203
|
+
a = await ft({
|
|
5202
5204
|
headers: {
|
|
5203
5205
|
authorization: `Bearer ${f}`
|
|
5204
5206
|
},
|
|
@@ -5218,9 +5220,9 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5218
5220
|
} catch (n) {
|
|
5219
5221
|
return Promise.reject(n);
|
|
5220
5222
|
}
|
|
5221
|
-
},
|
|
5223
|
+
}, Gs = Gt(
|
|
5222
5224
|
void 0
|
|
5223
|
-
),
|
|
5225
|
+
), Pr = {
|
|
5224
5226
|
capabilities: /* @__PURE__ */ new Set(),
|
|
5225
5227
|
allowedModels: [],
|
|
5226
5228
|
version: null,
|
|
@@ -5230,7 +5232,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5230
5232
|
getAccessToken: t,
|
|
5231
5233
|
children: r
|
|
5232
5234
|
}) => {
|
|
5233
|
-
const [s, n] = X(
|
|
5235
|
+
const [s, n] = X(Pr), a = Fe(
|
|
5234
5236
|
() => e ? `entitlements:${e}` : null,
|
|
5235
5237
|
[e]
|
|
5236
5238
|
), i = M(() => {
|
|
@@ -5307,7 +5309,7 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5307
5309
|
},
|
|
5308
5310
|
[a]
|
|
5309
5311
|
), f = M(() => {
|
|
5310
|
-
if (n(
|
|
5312
|
+
if (n(Pr), a)
|
|
5311
5313
|
try {
|
|
5312
5314
|
sessionStorage.removeItem(a);
|
|
5313
5315
|
} catch {
|
|
@@ -5321,10 +5323,10 @@ const Gi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
5321
5323
|
}),
|
|
5322
5324
|
[s, l, f]
|
|
5323
5325
|
);
|
|
5324
|
-
return /* @__PURE__ */ c(
|
|
5326
|
+
return /* @__PURE__ */ c(Gs.Provider, { value: d, children: r });
|
|
5325
5327
|
};
|
|
5326
|
-
function
|
|
5327
|
-
const e = ze(
|
|
5328
|
+
function Kl() {
|
|
5329
|
+
const e = ze(Gs);
|
|
5328
5330
|
if (!e)
|
|
5329
5331
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
|
5330
5332
|
return e;
|
|
@@ -5373,7 +5375,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5373
5375
|
e
|
|
5374
5376
|
]
|
|
5375
5377
|
});
|
|
5376
|
-
},
|
|
5378
|
+
}, Vl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5377
5379
|
defaultViewBox: "0 0 448 512",
|
|
5378
5380
|
size: "size-5",
|
|
5379
5381
|
viewBox: t,
|
|
@@ -5383,7 +5385,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5383
5385
|
children: /* @__PURE__ */ c("path", {
|
|
5384
5386
|
d: "M240 64c0-8.8-7.2-16-16-16s-16 7.2-16 16v176H32c-8.8 0-16 7.2-16 16s7.2 16 16 16h176v176c0 8.8 7.2 16 16 16s16-7.2 16-16V272h176c8.8 0 16-7.2 16-16s-7.2-16-16-16H240z"
|
|
5385
5387
|
})
|
|
5386
|
-
}),
|
|
5388
|
+
}), Gl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5387
5389
|
defaultViewBox: "0 0 24 24",
|
|
5388
5390
|
size: "size-5",
|
|
5389
5391
|
viewBox: t,
|
|
@@ -5393,7 +5395,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5393
5395
|
children: /* @__PURE__ */ c("path", {
|
|
5394
5396
|
d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z"
|
|
5395
5397
|
})
|
|
5396
|
-
}),
|
|
5398
|
+
}), zl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5397
5399
|
defaultViewBox: "0 0 512 512",
|
|
5398
5400
|
size: "size-5",
|
|
5399
5401
|
viewBox: t,
|
|
@@ -5409,7 +5411,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5409
5411
|
d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0"
|
|
5410
5412
|
})
|
|
5411
5413
|
]
|
|
5412
|
-
}),
|
|
5414
|
+
}), ql = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5413
5415
|
defaultViewBox: "0 0 448 512",
|
|
5414
5416
|
size: "size-5",
|
|
5415
5417
|
viewBox: t,
|
|
@@ -5425,7 +5427,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5425
5427
|
d: "M64 0C28.7 0 0 28.7 0 64v384c0 35.3 28.7 64 64 64h368c8.8 0 16-7.2 16-16s-7.2-16-16-16h-16v-66.7c18.6-6.6 32-24.4 32-45.3V48c0-26.5-21.5-48-48-48zm320 416v64H64c-17.7 0-32-14.3-32-32s14.3-32 32-32zM64 384c-11.7 0-22.6 3.1-32 8.6V64c0-17.7 14.3-32 32-32h336c8.8 0 16 7.2 16 16v320c0 8.8-7.2 16-16 16zm201.9-213.1-16.5 38.6-38.6 16.5c-19.4 8.3-19.4 35.8 0 44.1l38.6 16.5 16.5 38.6c8.3 19.4 35.8 19.4 44.1 0l16.5-38.6 38.6-16.5c19.4-8.3 19.4-35.8 0-44.1l-38.6-16.5-16.5-38.6c-8.3-19.4-35.8-19.4-44.1 0m22.1 29.7 11.7 27.3c1.6 3.8 4.6 6.8 8.4 8.4l27.3 11.7-27.3 11.7c-3.8 1.6-6.8 4.6-8.4 8.4L288 295.4l-11.7-27.3c-1.6-3.8-4.6-6.8-8.4-8.4L240.6 248l27.3-11.7c3.8-1.6 6.8-4.6 8.4-8.4zm-135-78.8 7-14 7 14c1.5 3.1 4.1 5.6 7.2 7.2l14 7-14 7c-3.1 1.5-5.6 4.1-7.2 7.2l-7 14-7-14c-1.5-3.1-4.1-5.6-7.2-7.2l-14-7 14-7c3.1-1.5 5.6-4.1 7.2-7.2m28.5-42.7c-8.8-17.7-34.1-17.7-42.9 0l-11.8 23.6-23.6 11.8c-17.7 8.8-17.7 34.1 0 42.9l23.6 11.8 11.8 23.6c8.8 17.7 34.1 17.7 42.9 0l11.8-23.6 23.6-11.8c17.7-8.8 17.7-34.1 0-42.9l-23.6-11.8-11.8-23.5z"
|
|
5426
5428
|
})
|
|
5427
5429
|
]
|
|
5428
|
-
}),
|
|
5430
|
+
}), Wl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5429
5431
|
defaultViewBox: "0 0 448 512",
|
|
5430
5432
|
size: "size-5",
|
|
5431
5433
|
viewBox: t,
|
|
@@ -5441,7 +5443,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5441
5443
|
d: "M368 96c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48zM48 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48z"
|
|
5442
5444
|
})
|
|
5443
5445
|
]
|
|
5444
|
-
}),
|
|
5446
|
+
}), jl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5445
5447
|
defaultViewBox: "0 0 384 512",
|
|
5446
5448
|
size: "size-5",
|
|
5447
5449
|
viewBox: t,
|
|
@@ -5452,7 +5454,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5452
5454
|
d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
|
|
5453
5455
|
opacity: s ? "1" : "0.4"
|
|
5454
5456
|
})
|
|
5455
|
-
}),
|
|
5457
|
+
}), Ql = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5456
5458
|
defaultViewBox: "0 0 384 512",
|
|
5457
5459
|
size: "size-5",
|
|
5458
5460
|
viewBox: t,
|
|
@@ -5514,7 +5516,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5514
5516
|
children: /* @__PURE__ */ c("path", {
|
|
5515
5517
|
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"
|
|
5516
5518
|
})
|
|
5517
|
-
}),
|
|
5519
|
+
}), Jl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5518
5520
|
defaultViewBox: "0 0 512 512",
|
|
5519
5521
|
size: "size-5",
|
|
5520
5522
|
viewBox: t,
|
|
@@ -5530,7 +5532,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5530
5532
|
d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z"
|
|
5531
5533
|
})
|
|
5532
5534
|
]
|
|
5533
|
-
}),
|
|
5535
|
+
}), Xl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5534
5536
|
defaultViewBox: "0 0 512 512",
|
|
5535
5537
|
size: "size-5",
|
|
5536
5538
|
viewBox: t,
|
|
@@ -5546,7 +5548,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5546
5548
|
d: "m454.6 45.3 12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0M189 265.6l171-171 57.4 57.4-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1 15.1-65.7c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4.4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1l220.3-220.4c25-25 25-65.5 0-90.5l-12.1-12.2c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144v288c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v128c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h128c8.8 0 16-7.2 16-16s-7.2-16-16-16z"
|
|
5547
5549
|
})
|
|
5548
5550
|
]
|
|
5549
|
-
}),
|
|
5551
|
+
}), Zl = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5550
5552
|
defaultViewBox: "0 0 640 512",
|
|
5551
5553
|
size: "size-5",
|
|
5552
5554
|
viewBox: t,
|
|
@@ -5562,7 +5564,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5562
5564
|
d: "m557.2 235.7-29.4 29.4 71 71 29.4-29.4c15.6-15.6 15.6-40.9 0-56.6l-14.4-14.4c-15.6-15.6-40.9-15.6-56.6 0m-52 52L375.9 417c-4.1 4.1-7 9.2-8.4 14.9l-15 60.1c-1.4 5.5.2 11.2 4.2 15.2s9.7 5.6 15.2 4.2l60.1-15c5.6-1.4 10.8-4.3 14.9-8.4l129.2-129.3-71-71z"
|
|
5563
5565
|
})
|
|
5564
5566
|
]
|
|
5565
|
-
}),
|
|
5567
|
+
}), eu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5566
5568
|
defaultViewBox: "0 0 24 24",
|
|
5567
5569
|
size: "size-5",
|
|
5568
5570
|
viewBox: t,
|
|
@@ -5588,7 +5590,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5588
5590
|
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"
|
|
5589
5591
|
})
|
|
5590
5592
|
]
|
|
5591
|
-
}),
|
|
5593
|
+
}), tu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5592
5594
|
defaultViewBox: "0 0 512 512",
|
|
5593
5595
|
size: "size-5",
|
|
5594
5596
|
viewBox: t,
|
|
@@ -5604,7 +5606,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5604
5606
|
d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z"
|
|
5605
5607
|
})
|
|
5606
5608
|
]
|
|
5607
|
-
}),
|
|
5609
|
+
}), ru = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5608
5610
|
defaultViewBox: "0 0 512 512",
|
|
5609
5611
|
size: "size-5",
|
|
5610
5612
|
viewBox: t,
|
|
@@ -5620,7 +5622,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5620
5622
|
d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24"
|
|
5621
5623
|
})
|
|
5622
5624
|
]
|
|
5623
|
-
}),
|
|
5625
|
+
}), su = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5624
5626
|
defaultViewBox: "0 0 384 512",
|
|
5625
5627
|
size: "size-5",
|
|
5626
5628
|
viewBox: t,
|
|
@@ -5636,7 +5638,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5636
5638
|
d: "M310.3 258.1c16.2-23.3 25.7-51.5 25.7-82.1 0-79.5-64.5-144-144-144S48 96.5 48 176c0 30.6 9.5 58.8 25.7 82.1 4.1 5.9 8.8 12.3 13.6 19 12.7 17.5 27.1 37.2 38 57.1 8.9 16.2 13.7 33.3 16.2 49.9L109 384c-2.2-12-5.9-23.7-11.8-34.5-9.9-18-22.2-34.9-34.5-51.8-5.2-7.1-10.4-14.2-15.4-21.4C27.6 247.9 16 213.3 16 176 16 78.8 94.8 0 192 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3-5 7.2-10.2 14.3-15.4 21.4-12.3 16.8-24.6 33.7-34.5 51.8-5.9 10.8-9.6 22.5-11.8 34.5h-32.4c2.5-16.6 7.3-33.7 16.2-49.9 10.9-20 25.3-39.7 38-57.1 4.9-6.7 9.5-13 13.6-19zM192 96c-44.2 0-80 35.8-80 80 0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112 8.8 0 16 7.2 16 16s-7.2 16-16 16m-45.3 352c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32h-90.5zM112 432v-5.3c0-5.9 4.8-10.7 10.7-10.7h138.7c5.9 0 10.7 4.8 10.7 10.7v5.3c0 44.2-35.8 80-80 80s-80-35.8-80-80z"
|
|
5637
5639
|
})
|
|
5638
5640
|
]
|
|
5639
|
-
}),
|
|
5641
|
+
}), nu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5640
5642
|
defaultViewBox: "0 0 448 512",
|
|
5641
5643
|
size: "size-5",
|
|
5642
5644
|
viewBox: t,
|
|
@@ -5652,7 +5654,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5652
5654
|
d: "M224 32c53 0 96 43 96 96v64H128v-64c0-53 43-96 96-96M96 128v64H80c-44.2 0-80 35.8-80 80v160c0 44.2 35.8 80 80 80h288c44.2 0 80-35.8 80-80V272c0-44.2-35.8-80-80-80h-16v-64C352 57.3 294.7 0 224 0S96 57.3 96 128m-16 96h288c26.5 0 48 21.5 48 48v160c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48m160 88c0-8.8-7.2-16-16-16s-16 7.2-16 16v80c0 8.8 7.2 16 16 16s16-7.2 16-16z"
|
|
5653
5655
|
})
|
|
5654
5656
|
]
|
|
5655
|
-
}),
|
|
5657
|
+
}), au = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5656
5658
|
defaultViewBox: "0 0 576 512",
|
|
5657
5659
|
size: "size-5",
|
|
5658
5660
|
viewBox: t,
|
|
@@ -5668,7 +5670,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5668
5670
|
d: "M419.2 227.2 316.7 124.7 46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0z"
|
|
5669
5671
|
})
|
|
5670
5672
|
]
|
|
5671
|
-
}),
|
|
5673
|
+
}), iu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5672
5674
|
defaultViewBox: "0 0 448 512",
|
|
5673
5675
|
size: "size-5",
|
|
5674
5676
|
viewBox: t,
|
|
@@ -5684,7 +5686,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5684
5686
|
d: "M438.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L370.7 256 233.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"
|
|
5685
5687
|
})
|
|
5686
5688
|
]
|
|
5687
|
-
}),
|
|
5689
|
+
}), ou = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5688
5690
|
defaultViewBox: "0 0 24 24",
|
|
5689
5691
|
size: "size-5",
|
|
5690
5692
|
viewBox: t,
|
|
@@ -5717,7 +5719,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5717
5719
|
})
|
|
5718
5720
|
]
|
|
5719
5721
|
});
|
|
5720
|
-
},
|
|
5722
|
+
}, cu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5721
5723
|
defaultViewBox: "0 0 576 512",
|
|
5722
5724
|
size: "size-5",
|
|
5723
5725
|
viewBox: t,
|
|
@@ -5733,7 +5735,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5733
5735
|
d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z"
|
|
5734
5736
|
})
|
|
5735
5737
|
]
|
|
5736
|
-
}),
|
|
5738
|
+
}), lu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5737
5739
|
defaultViewBox: "0 0 576 512",
|
|
5738
5740
|
size: "size-5",
|
|
5739
5741
|
viewBox: t,
|
|
@@ -5749,7 +5751,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5749
5751
|
d: "M566.6 265.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l73.4 73.3 169.4-169.3c12.5-12.5 32.8-12.5 45.3 0z"
|
|
5750
5752
|
})
|
|
5751
5753
|
]
|
|
5752
|
-
}),
|
|
5754
|
+
}), uu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5753
5755
|
defaultViewBox: "0 0 512 512",
|
|
5754
5756
|
size: "size-5",
|
|
5755
5757
|
viewBox: t,
|
|
@@ -5765,7 +5767,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5765
5767
|
d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32"
|
|
5766
5768
|
})
|
|
5767
5769
|
]
|
|
5768
|
-
}),
|
|
5770
|
+
}), du = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5769
5771
|
defaultViewBox: "0 0 512 512",
|
|
5770
5772
|
size: "size-5",
|
|
5771
5773
|
viewBox: t,
|
|
@@ -5781,7 +5783,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5781
5783
|
d: "m406.1 16-39.7 39.7 89.3 89.3 39.8-38.9c19.1-18.7 19.2-49.4.4-68.2l-22-21.9C455.1-2.8 424.7-2.7 406 16zm-62.4 62.4L200.5 221.8c-7 7-12.3 15.6-15.4 25l-23.8 71.3c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l71.5-23.9c9.2-3.1 17.6-8.2 24.5-15l145.1-142.1z"
|
|
5782
5784
|
})
|
|
5783
5785
|
]
|
|
5784
|
-
}),
|
|
5786
|
+
}), hu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5785
5787
|
defaultViewBox: "0 0 512 512",
|
|
5786
5788
|
size: "size-5",
|
|
5787
5789
|
viewBox: t,
|
|
@@ -5797,7 +5799,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5797
5799
|
d: "m330.7 376 126.7 126.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L376 330.7c-12.7 17.3-28 32.6-45.3 45.3"
|
|
5798
5800
|
})
|
|
5799
5801
|
]
|
|
5800
|
-
}),
|
|
5802
|
+
}), fu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5801
5803
|
defaultViewBox: "0 0 512 512",
|
|
5802
5804
|
size: "size-5",
|
|
5803
5805
|
viewBox: t,
|
|
@@ -5813,7 +5815,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5813
5815
|
d: "M256 160a96 96 0 1 0 0 192 96 96 0 1 0 0-192"
|
|
5814
5816
|
})
|
|
5815
5817
|
]
|
|
5816
|
-
}),
|
|
5818
|
+
}), pu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5817
5819
|
defaultViewBox: "0 0 512 512",
|
|
5818
5820
|
size: "size-5",
|
|
5819
5821
|
viewBox: t,
|
|
@@ -5829,7 +5831,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5829
5831
|
d: "M511.6 36.9c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256C5.5 266.3-.7 277.8.1 290s8.4 22.9 19.6 27.6L160 376v93c0 23.8 19.3 43 43 43 13.1 0 25.4-5.9 33.6-16.1l52.8-66h.1l114.2 47.6c9.1 3.8 19.4 3.2 28-1.6s14.5-13.3 16-23l64-416zm-253 380.2-47 58.8c-2.1 2.6-5.3 4.1-8.6 4.1-6.1 0-11-4.9-11-11v-79.7zm43.1-16.7-96.6-40.3 269-289.6L416 448l-114.2-47.6zM450.5 48.8 173.6 347 32 288z"
|
|
5830
5832
|
})
|
|
5831
5833
|
]
|
|
5832
|
-
}),
|
|
5834
|
+
}), yu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5833
5835
|
defaultViewBox: "0 0 448 512",
|
|
5834
5836
|
size: "size-5",
|
|
5835
5837
|
viewBox: t,
|
|
@@ -5855,7 +5857,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5855
5857
|
d: "M224 256c35.3 0 64-28.7 64-64 0-7.1-1.2-13.9-3.3-20.3-1.8-5.5 1.6-11.9 7.4-11.7 40.8 1.7 77.5 29.6 88.6 71.1 13.7 51.2-16.7 103.9-67.9 117.6S208.9 332 195.2 280.8c-1.9-6.9-2.9-13.9-3.2-20.7-.3-5.8 6.1-9.2 11.7-7.4 6.4 2.1 13.2 3.3 20.3 3.3"
|
|
5856
5858
|
})
|
|
5857
5859
|
]
|
|
5858
|
-
}),
|
|
5860
|
+
}), mu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5859
5861
|
defaultViewBox: "0 0 512 512",
|
|
5860
5862
|
size: "size-5",
|
|
5861
5863
|
viewBox: t,
|
|
@@ -5871,7 +5873,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5871
5873
|
d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160"
|
|
5872
5874
|
})
|
|
5873
5875
|
]
|
|
5874
|
-
}),
|
|
5876
|
+
}), gu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5875
5877
|
defaultViewBox: "0 0 512 512",
|
|
5876
5878
|
size: "size-5",
|
|
5877
5879
|
viewBox: t,
|
|
@@ -5887,7 +5889,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5887
5889
|
d: "M270.3 112.9c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81.1 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.9 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81-11.8-36.2-73.4z"
|
|
5888
5890
|
})
|
|
5889
5891
|
]
|
|
5890
|
-
}),
|
|
5892
|
+
}), Eu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5891
5893
|
defaultViewBox: "0 0 512 512",
|
|
5892
5894
|
size: "size-5",
|
|
5893
5895
|
viewBox: t,
|
|
@@ -5903,7 +5905,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5903
5905
|
d: "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448m0 480a256 256 0 1 0 0-512 256 256 0 1 0 0 512m14.3-399.1c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.8 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81.1-11.8-36.2-73.4zm-40 95.1 25.7-51.8 25.6 51.9c2.3 4.7 6.8 8 12 8.8l57.3 8.3-41.5 40.4c-3.8 3.7-5.5 9-4.6 14.2l9.8 57.1-51.2-26.9c-4.7-2.5-10.2-2.5-14.9 0l-51.2 26.9 9.8-57.1c.9-5.2-.8-10.5-4.6-14.2L161 225.1l57.3-8.3c5.2-.8 9.7-4 12-8.8"
|
|
5904
5906
|
})
|
|
5905
5907
|
]
|
|
5906
|
-
}),
|
|
5908
|
+
}), wu = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ E(S, {
|
|
5907
5909
|
defaultViewBox: "0 0 448 512",
|
|
5908
5910
|
size: "size-5",
|
|
5909
5911
|
viewBox: t,
|
|
@@ -5919,7 +5921,7 @@ const S = ({ children: e, fill: t, viewBox: r, className: s, defaultViewBox: n,
|
|
|
5919
5921
|
d: "M224 32c-53 0-96 43-96 96v64h240c44.2 0 80 35.8 80 80v160c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V272c0-44.2 35.8-80 80-80h16v-64C96 57.3 153.3 0 224 0c58 0 107 38.6 122.7 91.4 2.5 8.5-2.3 17.4-10.8 19.9s-17.4-2.3-19.9-10.8C304.2 60.9 267.5 32 224 32M80 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm184 144h-80c-8.8 0-16-7.2-16-16s7.2-16 16-16h80c8.8 0 16 7.2 16 16s-7.2 16-16 16"
|
|
5920
5922
|
})
|
|
5921
5923
|
]
|
|
5922
|
-
}),
|
|
5924
|
+
}), Su = ({ className: e, viewBox: t, title: r, monotone: s, ...n }) => /* @__PURE__ */ c(S, {
|
|
5923
5925
|
defaultViewBox: "0 0 512 512",
|
|
5924
5926
|
size: "size-5",
|
|
5925
5927
|
viewBox: t,
|
|
@@ -5944,11 +5946,11 @@ try {
|
|
|
5944
5946
|
});
|
|
5945
5947
|
} catch {
|
|
5946
5948
|
}
|
|
5947
|
-
const
|
|
5949
|
+
const Nr = [
|
|
5948
5950
|
"mousedown",
|
|
5949
5951
|
"touchstart"
|
|
5950
5952
|
];
|
|
5951
|
-
function
|
|
5953
|
+
function bu(e, t, r) {
|
|
5952
5954
|
const s = B(null);
|
|
5953
5955
|
return A(() => {
|
|
5954
5956
|
const n = (a) => {
|
|
@@ -5958,8 +5960,8 @@ function vu(e, t, r) {
|
|
|
5958
5960
|
r.every((f) => !!f && !a.composedPath().includes(f)) && !o && e();
|
|
5959
5961
|
} else s.current && !s.current.contains(i) && e();
|
|
5960
5962
|
};
|
|
5961
|
-
return
|
|
5962
|
-
|
|
5963
|
+
return Nr.forEach((a) => document.addEventListener(a, n)), () => {
|
|
5964
|
+
Nr.forEach((a) => document.removeEventListener(a, n));
|
|
5963
5965
|
};
|
|
5964
5966
|
}, [
|
|
5965
5967
|
e,
|
|
@@ -5967,7 +5969,7 @@ function vu(e, t, r) {
|
|
|
5967
5969
|
t
|
|
5968
5970
|
]), s;
|
|
5969
5971
|
}
|
|
5970
|
-
const
|
|
5972
|
+
const Pt = 50, Mr = 120;
|
|
5971
5973
|
let oe = null, Xe = 0;
|
|
5972
5974
|
const ho = () => {
|
|
5973
5975
|
if (typeof window > "u" || oe && document.body.contains(oe))
|
|
@@ -5984,7 +5986,7 @@ const ho = () => {
|
|
|
5984
5986
|
r.style.display = "none", r.setAttribute("aria-hidden", "true"), r.dataset.hapticSingleton = "true", r.appendChild(t), document.body.appendChild(r), oe = r;
|
|
5985
5987
|
}, fo = () => {
|
|
5986
5988
|
oe && document.body && document.body.contains(oe) && document.body.removeChild(oe), oe = null;
|
|
5987
|
-
},
|
|
5989
|
+
}, vu = () => {
|
|
5988
5990
|
const e = B(/* @__PURE__ */ new Set());
|
|
5989
5991
|
A(() => {
|
|
5990
5992
|
Xe++;
|
|
@@ -6002,7 +6004,7 @@ const ho = () => {
|
|
|
6002
6004
|
const t = M(() => {
|
|
6003
6005
|
try {
|
|
6004
6006
|
if (navigator?.vibrate) {
|
|
6005
|
-
navigator.vibrate(
|
|
6007
|
+
navigator.vibrate(Pt);
|
|
6006
6008
|
return;
|
|
6007
6009
|
}
|
|
6008
6010
|
oe?.click();
|
|
@@ -6015,14 +6017,14 @@ const ho = () => {
|
|
|
6015
6017
|
if (navigator?.vibrate && s > 1) {
|
|
6016
6018
|
const n = [];
|
|
6017
6019
|
for (let a = 0; a < s; a++)
|
|
6018
|
-
n.push(
|
|
6020
|
+
n.push(Pt), a < s - 1 && n.push(Mr - Pt);
|
|
6019
6021
|
navigator.vibrate(n);
|
|
6020
6022
|
return;
|
|
6021
6023
|
}
|
|
6022
6024
|
for (let n = 0; n < s; n++) {
|
|
6023
6025
|
const a = setTimeout(() => {
|
|
6024
6026
|
t(), e.current.delete(a);
|
|
6025
|
-
}, n *
|
|
6027
|
+
}, n * Mr);
|
|
6026
6028
|
e.current.add(a);
|
|
6027
6029
|
}
|
|
6028
6030
|
}
|
|
@@ -6061,23 +6063,23 @@ function yo(e, t) {
|
|
|
6061
6063
|
return !1;
|
|
6062
6064
|
return i !== h ? !1 : !!(o && (u.toLowerCase() === o.toLowerCase() || t.code.replace("Key", "").toLowerCase() === o.toLowerCase()));
|
|
6063
6065
|
}
|
|
6064
|
-
function
|
|
6066
|
+
function zs(e) {
|
|
6065
6067
|
return (t) => yo(po(e), t);
|
|
6066
6068
|
}
|
|
6067
|
-
function
|
|
6069
|
+
function Tu(e) {
|
|
6068
6070
|
return (t) => {
|
|
6069
6071
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
6070
6072
|
e.forEach(([s, n, a = {
|
|
6071
6073
|
preventDefault: !0
|
|
6072
6074
|
}]) => {
|
|
6073
|
-
|
|
6075
|
+
zs(s)(r) && (a.preventDefault && t.preventDefault(), n(r));
|
|
6074
6076
|
});
|
|
6075
6077
|
};
|
|
6076
6078
|
}
|
|
6077
6079
|
function mo(e, t, r = !1) {
|
|
6078
6080
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
6079
6081
|
}
|
|
6080
|
-
function
|
|
6082
|
+
function Iu(e, t = [
|
|
6081
6083
|
"INPUT",
|
|
6082
6084
|
"TEXTAREA",
|
|
6083
6085
|
"SELECT"
|
|
@@ -6087,7 +6089,7 @@ function _u(e, t = [
|
|
|
6087
6089
|
e.forEach(([a, i, o = {
|
|
6088
6090
|
preventDefault: !0
|
|
6089
6091
|
}]) => {
|
|
6090
|
-
|
|
6092
|
+
zs(a)(n) && mo(n, t, r) && (o.preventDefault && n.preventDefault(), i(n));
|
|
6091
6093
|
});
|
|
6092
6094
|
};
|
|
6093
6095
|
return document.documentElement.addEventListener("keydown", s), () => document.documentElement.removeEventListener("keydown", s);
|
|
@@ -6097,7 +6099,7 @@ function _u(e, t = [
|
|
|
6097
6099
|
r
|
|
6098
6100
|
]);
|
|
6099
6101
|
}
|
|
6100
|
-
function
|
|
6102
|
+
function _u(e, t) {
|
|
6101
6103
|
const [r, s] = X(!1), n = B(null), a = B(null), i = M(() => {
|
|
6102
6104
|
s((l) => (!l && (!n.current || n.current === -1) && (n.current = window.setInterval(a.current, t)), !0));
|
|
6103
6105
|
}, [
|
|
@@ -6116,7 +6118,7 @@ function Au(e, t) {
|
|
|
6116
6118
|
active: r
|
|
6117
6119
|
};
|
|
6118
6120
|
}
|
|
6119
|
-
function
|
|
6121
|
+
function Au() {
|
|
6120
6122
|
const e = B(null), [t, r] = X(!1);
|
|
6121
6123
|
return {
|
|
6122
6124
|
ref: M((n) => {
|
|
@@ -6131,23 +6133,23 @@ function go() {
|
|
|
6131
6133
|
e.current = !1;
|
|
6132
6134
|
}), []), M(() => e.current, []);
|
|
6133
6135
|
}
|
|
6134
|
-
function
|
|
6136
|
+
function qs(e, t) {
|
|
6135
6137
|
window.dispatchEvent(new StorageEvent("storage", {
|
|
6136
6138
|
key: e,
|
|
6137
6139
|
newValue: t
|
|
6138
6140
|
}));
|
|
6139
6141
|
}
|
|
6140
|
-
const
|
|
6142
|
+
const xr = (e, t) => {
|
|
6141
6143
|
const r = JSON.stringify(typeof t == "function" ? t() : t);
|
|
6142
|
-
window.localStorage.setItem(e, r),
|
|
6144
|
+
window.localStorage.setItem(e, r), qs(e, r);
|
|
6143
6145
|
}, Eo = (e) => {
|
|
6144
|
-
window.localStorage.removeItem(e),
|
|
6145
|
-
},
|
|
6146
|
-
function
|
|
6147
|
-
const s =
|
|
6146
|
+
window.localStorage.removeItem(e), qs(e, null);
|
|
6147
|
+
}, Lr = (e) => window.localStorage.getItem(e), wo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
6148
|
+
function Ru({ key: e, initialValue: t }) {
|
|
6149
|
+
const s = Gr(wo, () => Lr(e)), n = M((o) => {
|
|
6148
6150
|
try {
|
|
6149
6151
|
const l = typeof o == "function" ? o(JSON.parse(s)) : o;
|
|
6150
|
-
l == null ? Eo(e) :
|
|
6152
|
+
l == null ? Eo(e) : xr(e, l);
|
|
6151
6153
|
} catch (l) {
|
|
6152
6154
|
console.warn(l);
|
|
6153
6155
|
}
|
|
@@ -6166,7 +6168,7 @@ function Cu({ key: e, initialValue: t }) {
|
|
|
6166
6168
|
]);
|
|
6167
6169
|
return A(() => {
|
|
6168
6170
|
try {
|
|
6169
|
-
|
|
6171
|
+
Lr(e) === null && typeof t < "u" && xr(e, t);
|
|
6170
6172
|
} catch (o) {
|
|
6171
6173
|
console.warn(o);
|
|
6172
6174
|
}
|
|
@@ -6180,7 +6182,7 @@ function Cu({ key: e, initialValue: t }) {
|
|
|
6180
6182
|
i
|
|
6181
6183
|
];
|
|
6182
6184
|
}
|
|
6183
|
-
function
|
|
6185
|
+
function Ws(e) {
|
|
6184
6186
|
return Fe(() => e.every((t) => t == null) ? () => {
|
|
6185
6187
|
} : (t) => {
|
|
6186
6188
|
e.forEach((r) => {
|
|
@@ -6200,7 +6202,7 @@ const So = {
|
|
|
6200
6202
|
bottom: 0,
|
|
6201
6203
|
right: 0
|
|
6202
6204
|
};
|
|
6203
|
-
function
|
|
6205
|
+
function st(e) {
|
|
6204
6206
|
const t = go(), r = B(0), s = B(null), [n, a] = X(So), i = Fe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
|
6205
6207
|
const l = o[0];
|
|
6206
6208
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -6219,7 +6221,7 @@ function rt(e) {
|
|
|
6219
6221
|
n
|
|
6220
6222
|
];
|
|
6221
6223
|
}
|
|
6222
|
-
function
|
|
6224
|
+
function Cu({ value: e, defaultValue: t, finalValue: r, onChange: s = () => {
|
|
6223
6225
|
}, initialControlledDelay: n = 0 }) {
|
|
6224
6226
|
const [a, i] = X(!1), [o, l] = X(t !== void 0 ? t : r), f = (d) => {
|
|
6225
6227
|
l(d), s?.(d);
|
|
@@ -6244,8 +6246,8 @@ function Ou({ value: e, defaultValue: t, finalValue: r, onChange: s = () => {
|
|
|
6244
6246
|
!1
|
|
6245
6247
|
];
|
|
6246
6248
|
}
|
|
6247
|
-
function
|
|
6248
|
-
const t =
|
|
6249
|
+
function js(e) {
|
|
6250
|
+
const t = tn();
|
|
6249
6251
|
if (!e)
|
|
6250
6252
|
return t;
|
|
6251
6253
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -6255,7 +6257,7 @@ function Ws(e) {
|
|
|
6255
6257
|
return typeof r == "number" || typeof r == "string" ? `${s}${r}` : `${s}${t}`;
|
|
6256
6258
|
}
|
|
6257
6259
|
}
|
|
6258
|
-
function
|
|
6260
|
+
function Dr(e, t) {
|
|
6259
6261
|
A(() => (window.addEventListener(e, t, {
|
|
6260
6262
|
passive: !0
|
|
6261
6263
|
}), () => window.removeEventListener(e, t)), [
|
|
@@ -6263,7 +6265,7 @@ function Lr(e, t) {
|
|
|
6263
6265
|
t
|
|
6264
6266
|
]);
|
|
6265
6267
|
}
|
|
6266
|
-
function
|
|
6268
|
+
function Ou() {
|
|
6267
6269
|
const [e, t] = X({
|
|
6268
6270
|
width: 0,
|
|
6269
6271
|
height: 0
|
|
@@ -6273,9 +6275,9 @@ function ku() {
|
|
|
6273
6275
|
height: window.innerHeight || 0
|
|
6274
6276
|
});
|
|
6275
6277
|
}, []);
|
|
6276
|
-
return
|
|
6278
|
+
return Dr("resize", r), Dr("orientationchange", r), A(r, []), e;
|
|
6277
6279
|
}
|
|
6278
|
-
function
|
|
6280
|
+
function ku() {
|
|
6279
6281
|
const [e, t] = X({
|
|
6280
6282
|
width: 0,
|
|
6281
6283
|
height: 0
|
|
@@ -6308,9 +6310,9 @@ try {
|
|
|
6308
6310
|
});
|
|
6309
6311
|
} catch {
|
|
6310
6312
|
}
|
|
6311
|
-
const
|
|
6313
|
+
const $r = "av-button", bo = (e, t, r) => {
|
|
6312
6314
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
6313
|
-
},
|
|
6315
|
+
}, tr = /* @__PURE__ */ ee.forwardRef((e, t) => {
|
|
6314
6316
|
const { onClick: r, noInternalClick: s = !1, ...n } = e;
|
|
6315
6317
|
return /* @__PURE__ */ c("button", {
|
|
6316
6318
|
ref: t,
|
|
@@ -6320,18 +6322,18 @@ const Dr = "av-button", bo = (e, t, r) => {
|
|
|
6320
6322
|
...n
|
|
6321
6323
|
});
|
|
6322
6324
|
});
|
|
6323
|
-
|
|
6324
|
-
const
|
|
6325
|
+
tr.displayName = "BaseButton";
|
|
6326
|
+
const wt = "icon", rr = "button", pt = "link", vo = ({ type: e, size: t, labelRight: r, labelLeft: s, align: n, animated: a }) => {
|
|
6325
6327
|
const i = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
|
6326
6328
|
switch (e) {
|
|
6327
|
-
case
|
|
6328
|
-
case
|
|
6329
|
+
case rr:
|
|
6330
|
+
case pt:
|
|
6329
6331
|
return m({
|
|
6330
6332
|
[i]: t === "small",
|
|
6331
6333
|
[o]: t === "medium",
|
|
6332
6334
|
[l]: t === "large"
|
|
6333
6335
|
});
|
|
6334
|
-
case
|
|
6336
|
+
case wt:
|
|
6335
6337
|
return m("flex items-center", {
|
|
6336
6338
|
"justify-center": n === "center",
|
|
6337
6339
|
"justify-start": n === "left",
|
|
@@ -6353,15 +6355,15 @@ const Et = "icon", tr = "button", ft = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6353
6355
|
}, To = ({ type: e, size: t, labelRight: r, labelLeft: s }) => {
|
|
6354
6356
|
const n = "text-sm font-medium", a = "text-base font-medium", i = "text-lg font-medium";
|
|
6355
6357
|
switch (e) {
|
|
6356
|
-
case
|
|
6357
|
-
case
|
|
6358
|
+
case rr:
|
|
6359
|
+
case pt:
|
|
6358
6360
|
return m({
|
|
6359
|
-
"text-center": e ===
|
|
6361
|
+
"text-center": e === pt,
|
|
6360
6362
|
[n]: t === "small",
|
|
6361
6363
|
[a]: t === "medium",
|
|
6362
6364
|
[i]: t === "large"
|
|
6363
6365
|
});
|
|
6364
|
-
case
|
|
6366
|
+
case wt:
|
|
6365
6367
|
return m({
|
|
6366
6368
|
[n]: t === "small" && (r || s),
|
|
6367
6369
|
[a]: t === "medium" && (r || s),
|
|
@@ -6552,7 +6554,7 @@ const Et = "icon", tr = "button", ft = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6552
6554
|
}), m(n, r);
|
|
6553
6555
|
}, No = ({ animated: e }) => m({
|
|
6554
6556
|
"transition-opacity duration-300 ease-in-out": e
|
|
6555
|
-
}),
|
|
6557
|
+
}), sr = ({ type: e, className: t, raw: r, mode: s, focusMode: n, disabled: a, fullWidth: i, size: o, noBorder: l, labelRight: f, labelLeft: d, noBackground: h, variant: u, truncate: p, align: y, radius: g, animated: w }) => (u || (u = "primary"), r ? m($r, t) : m($r, Io({
|
|
6556
6558
|
mode: s,
|
|
6557
6559
|
variant: u,
|
|
6558
6560
|
noBackground: h,
|
|
@@ -6593,10 +6595,10 @@ const Et = "icon", tr = "button", ft = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6593
6595
|
"w-full": i,
|
|
6594
6596
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
6595
6597
|
}, m({
|
|
6596
|
-
"transition-[width] duration-300 ease-in": e ===
|
|
6597
|
-
}), t)),
|
|
6598
|
-
const y =
|
|
6599
|
-
type:
|
|
6598
|
+
"transition-[width] duration-300 ease-in": e === wt && w
|
|
6599
|
+
}), t)), Qs = /* @__PURE__ */ ee.forwardRef(({ children: e, disabled: t = !1, mode: r = "system", focusMode: s = "system", fullWidth: n = !1, className: a, size: i = "medium", raw: o = !1, noBorder: l = !1, variant: f = "primary", truncate: d = !1, radius: h = "large", ...u }, p) => {
|
|
6600
|
+
const y = sr({
|
|
6601
|
+
type: rr,
|
|
6600
6602
|
mode: r,
|
|
6601
6603
|
focusMode: s,
|
|
6602
6604
|
fullWidth: n,
|
|
@@ -6609,7 +6611,7 @@ const Et = "icon", tr = "button", ft = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6609
6611
|
truncate: d,
|
|
6610
6612
|
radius: h
|
|
6611
6613
|
});
|
|
6612
|
-
return /* @__PURE__ */ c(
|
|
6614
|
+
return /* @__PURE__ */ c(tr, {
|
|
6613
6615
|
ref: p,
|
|
6614
6616
|
className: y,
|
|
6615
6617
|
disabled: t,
|
|
@@ -6617,7 +6619,7 @@ const Et = "icon", tr = "button", ft = "link", vo = ({ type: e, size: t, labelRi
|
|
|
6617
6619
|
children: e
|
|
6618
6620
|
});
|
|
6619
6621
|
});
|
|
6620
|
-
|
|
6622
|
+
Qs.displayName = "Button";
|
|
6621
6623
|
const Ze = {
|
|
6622
6624
|
small: 24,
|
|
6623
6625
|
medium: 32,
|
|
@@ -6626,9 +6628,9 @@ const Ze = {
|
|
|
6626
6628
|
small: 16,
|
|
6627
6629
|
medium: 24,
|
|
6628
6630
|
large: 32
|
|
6629
|
-
}, xo = 2, Lo = 300, Ge = /* @__PURE__ */ ee.forwardRef(({ children: e, disabled: t = !1, mode: r = "system", focusMode: s = "system", fullWidth: n = !1, className: a, type: i = "button", raw: o = !1, noBorder: l = !1, "aria-label": f, label: d, size: h = "medium", labelRight: u, labelLeft: p, noBackground: y = !1, align: g = "center", radius: w = "large", variant: b = "secondary", iconClassName: x, animated: R = !1, ...
|
|
6630
|
-
const se =
|
|
6631
|
-
type:
|
|
6631
|
+
}, xo = 2, Lo = 300, Ge = /* @__PURE__ */ ee.forwardRef(({ children: e, disabled: t = !1, mode: r = "system", focusMode: s = "system", fullWidth: n = !1, className: a, type: i = "button", raw: o = !1, noBorder: l = !1, "aria-label": f, label: d, size: h = "medium", labelRight: u, labelLeft: p, noBackground: y = !1, align: g = "center", radius: w = "large", variant: b = "secondary", iconClassName: x, animated: R = !1, ...J }, P) => {
|
|
6632
|
+
const se = sr({
|
|
6633
|
+
type: wt,
|
|
6632
6634
|
mode: r,
|
|
6633
6635
|
focusMode: s,
|
|
6634
6636
|
fullWidth: n,
|
|
@@ -6651,11 +6653,11 @@ const Ze = {
|
|
|
6651
6653
|
variant: b
|
|
6652
6654
|
}), I = No({
|
|
6653
6655
|
animated: R
|
|
6654
|
-
}), G = "flex items-center justify-center relative w-full h-full overflow-hidden", [O, C] =
|
|
6656
|
+
}), G = "flex items-center justify-center relative w-full h-full overflow-hidden", [O, C] = st(), [D, te] = st(), [me, Ae] = st(), v = B(0), _ = B(null), T = B(null), ge = Ws([
|
|
6655
6657
|
P,
|
|
6656
6658
|
_
|
|
6657
6659
|
]);
|
|
6658
|
-
return
|
|
6660
|
+
return at(() => {
|
|
6659
6661
|
me && me.current && R && (v.current = Ae.width + Mo[h] + (l ? 0 : xo), _.current && !_.current.style.width && (_.current.style.width = `${Ze[h]}px`));
|
|
6660
6662
|
}, [
|
|
6661
6663
|
Ae,
|
|
@@ -6663,7 +6665,7 @@ const Ze = {
|
|
|
6663
6665
|
h,
|
|
6664
6666
|
l,
|
|
6665
6667
|
R
|
|
6666
|
-
]),
|
|
6668
|
+
]), at(() => {
|
|
6667
6669
|
if (_ && _.current && R) {
|
|
6668
6670
|
let Ee = Ze[h];
|
|
6669
6671
|
u && O && C.width > 0 ? Ee = C.width + v.current : p && D && te.width > 0 && (Ee = te.width + v.current), T.current && clearTimeout(T.current), Ee !== parseInt(_.current.style.width || "0", 10) && (O.current && (O.current.style.opacity = "0"), D.current && (D.current.style.opacity = "0"), _.current.style.width = `${Ee}px`, Ee > Ze[h] && (T.current = setTimeout(() => {
|
|
@@ -6681,17 +6683,17 @@ const Ze = {
|
|
|
6681
6683
|
R
|
|
6682
6684
|
]), A(() => () => {
|
|
6683
6685
|
T.current && clearTimeout(T.current);
|
|
6684
|
-
}, []), /* @__PURE__ */ c(
|
|
6686
|
+
}, []), /* @__PURE__ */ c(tr, {
|
|
6685
6687
|
ref: ge,
|
|
6686
6688
|
className: se,
|
|
6687
6689
|
disabled: t,
|
|
6688
6690
|
type: i,
|
|
6689
6691
|
"aria-label": f || d,
|
|
6690
|
-
...
|
|
6692
|
+
...J,
|
|
6691
6693
|
children: /* @__PURE__ */ E("div", {
|
|
6692
6694
|
className: G,
|
|
6693
6695
|
children: [
|
|
6694
|
-
/* @__PURE__ */ c(
|
|
6696
|
+
/* @__PURE__ */ c(Ur, {
|
|
6695
6697
|
label: p,
|
|
6696
6698
|
labelRef: D,
|
|
6697
6699
|
labelClass: I,
|
|
@@ -6703,7 +6705,7 @@ const Ze = {
|
|
|
6703
6705
|
className: N,
|
|
6704
6706
|
children: e
|
|
6705
6707
|
}),
|
|
6706
|
-
/* @__PURE__ */ c(
|
|
6708
|
+
/* @__PURE__ */ c(Ur, {
|
|
6707
6709
|
label: u,
|
|
6708
6710
|
labelRef: O,
|
|
6709
6711
|
labelClass: I,
|
|
@@ -6713,7 +6715,7 @@ const Ze = {
|
|
|
6713
6715
|
]
|
|
6714
6716
|
})
|
|
6715
6717
|
});
|
|
6716
|
-
}),
|
|
6718
|
+
}), Ur = ({ labelRef: e, labelClass: t, label: r, labelInnerClass: s, initiallyHidden: n = !1 }) => /* @__PURE__ */ c("span", {
|
|
6717
6719
|
ref: e,
|
|
6718
6720
|
className: t,
|
|
6719
6721
|
style: n ? {
|
|
@@ -6754,8 +6756,8 @@ const Do = /* @__PURE__ */ ee.forwardRef(({ copyToClipboard: e, ...t }, r) => {
|
|
|
6754
6756
|
});
|
|
6755
6757
|
Do.displayName = "ButtonCopy";
|
|
6756
6758
|
const $o = /* @__PURE__ */ ee.forwardRef(({ children: e, mode: t = "system", focusMode: r = "system", fullWidth: s = !1, className: n, size: a = "small", raw: i = !1, noBorder: o = !1, target: l, truncate: f = !1, noNewWindowIcon: d = !1, radius: h = "large", ...u }, p) => {
|
|
6757
|
-
const y =
|
|
6758
|
-
type:
|
|
6759
|
+
const y = sr({
|
|
6760
|
+
type: pt,
|
|
6759
6761
|
mode: t,
|
|
6760
6762
|
focusMode: r,
|
|
6761
6763
|
fullWidth: s,
|
|
@@ -6846,8 +6848,8 @@ try {
|
|
|
6846
6848
|
});
|
|
6847
6849
|
} catch {
|
|
6848
6850
|
}
|
|
6849
|
-
const
|
|
6850
|
-
const o = m(
|
|
6851
|
+
const nt = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r, footerClassName: s, mode: n, compact: a, noBorder: i }) => {
|
|
6852
|
+
const o = m(nt, "rounded-md", {
|
|
6851
6853
|
"border-none": i,
|
|
6852
6854
|
"border-2": !i,
|
|
6853
6855
|
"p-4": !a,
|
|
@@ -6857,7 +6859,7 @@ const st = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r
|
|
|
6857
6859
|
"border-border-dark bg-surface-lighter text-copy-dark": n === "light",
|
|
6858
6860
|
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": n === "system",
|
|
6859
6861
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": n === "alt-system"
|
|
6860
|
-
}, e), l = t || m(`${
|
|
6862
|
+
}, e), l = t || m(`${nt}__header mt-0 border-b-2`, {
|
|
6861
6863
|
"text-copy-light border-border-accent": n === "darker",
|
|
6862
6864
|
"border-border-accent": n === "dark",
|
|
6863
6865
|
"border-border-medium": n === "light",
|
|
@@ -6865,7 +6867,7 @@ const st = "av-card", Ho = ({ className: e, headerClassName: t, bodyClassName: r
|
|
|
6865
6867
|
"border-border-accent dark:border-border-medium": n === "alt-system",
|
|
6866
6868
|
"mb-4": !a,
|
|
6867
6869
|
"mb-2": a
|
|
6868
|
-
}), f = m(r), d = s || m(`${
|
|
6870
|
+
}), f = m(r), d = s || m(`${nt}__footer pt-2`);
|
|
6869
6871
|
return {
|
|
6870
6872
|
wrapper: o,
|
|
6871
6873
|
header: l,
|
|
@@ -6889,7 +6891,7 @@ function Fo({ id: e, content: t, userAriaLabelledby: r, className: s }) {
|
|
|
6889
6891
|
}
|
|
6890
6892
|
const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, children: n, className: a, bodyClassName: i, "aria-labelledby": o, mode: l = "system", compact: f = !1, noBorder: d = !1, ...h }) => {
|
|
6891
6893
|
let u = null, p = null;
|
|
6892
|
-
const y = typeof e == "string", g =
|
|
6894
|
+
const y = typeof e == "string", g = js(nt), w = Ho({
|
|
6893
6895
|
className: a,
|
|
6894
6896
|
headerClassName: t,
|
|
6895
6897
|
bodyClassName: i,
|
|
@@ -6925,7 +6927,7 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
6925
6927
|
]
|
|
6926
6928
|
})
|
|
6927
6929
|
});
|
|
6928
|
-
}, Ko = "av-flexgrid", et = "av-flexgrid-item",
|
|
6930
|
+
}, Ko = "av-flexgrid", et = "av-flexgrid-item", yt = 0.25, Vt = ee.createContext({
|
|
6929
6931
|
columnGap: 0,
|
|
6930
6932
|
rowGap: 0
|
|
6931
6933
|
}), Vo = ({
|
|
@@ -6951,14 +6953,14 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
6951
6953
|
* by the columnGap and rowGap that will be applied
|
|
6952
6954
|
* to all FlexgridItems (see context and paddings).
|
|
6953
6955
|
*/
|
|
6954
|
-
marginLeft: r * -1 *
|
|
6955
|
-
marginTop: s * -1 *
|
|
6956
|
+
marginLeft: r * -1 * yt + "rem",
|
|
6957
|
+
marginTop: s * -1 * yt + "rem"
|
|
6956
6958
|
}, h = m(
|
|
6957
6959
|
Ko,
|
|
6958
6960
|
"box-border flex flex-wrap"
|
|
6959
6961
|
), u = { columnGap: r, rowGap: s };
|
|
6960
|
-
return t ? /* @__PURE__ */ c("div", { className: t, children: /* @__PURE__ */ c("div", { className: h, style: d, ...f, children: /* @__PURE__ */ c(
|
|
6961
|
-
},
|
|
6962
|
+
return t ? /* @__PURE__ */ c("div", { className: t, children: /* @__PURE__ */ c("div", { className: h, style: d, ...f, children: /* @__PURE__ */ c(Vt.Provider, { value: u, children: e }) }) }) : /* @__PURE__ */ c("div", { className: h, style: d, ...f, children: /* @__PURE__ */ c(Vt.Provider, { value: u, children: e }) });
|
|
6963
|
+
}, Nt = (e, t) => m({
|
|
6962
6964
|
"basis-1/12": e === 1 && !t,
|
|
6963
6965
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
6964
6966
|
"md:basis-1/12": e === 1 && t === "md",
|
|
@@ -7039,14 +7041,14 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
7039
7041
|
return m(e, et, "box-border basis-auto");
|
|
7040
7042
|
if (typeof t == "number")
|
|
7041
7043
|
return m(e, et, "box-border max-w-full", {
|
|
7042
|
-
[`${
|
|
7044
|
+
[`${Nt(t)}`]: !0
|
|
7043
7045
|
});
|
|
7044
7046
|
if (typeof t == "string")
|
|
7045
7047
|
return m(e, et, "box-border basis-auto", {
|
|
7046
7048
|
"max-w-full grow": t === "auto"
|
|
7047
7049
|
});
|
|
7048
7050
|
if (typeof t == "object") {
|
|
7049
|
-
const r = Object.entries(t).map(([s, n]) => s === "fallback" ?
|
|
7051
|
+
const r = Object.entries(t).map(([s, n]) => s === "fallback" ? Nt(n) : Nt(n, s));
|
|
7050
7052
|
return m(
|
|
7051
7053
|
e,
|
|
7052
7054
|
et,
|
|
@@ -7060,9 +7062,9 @@ const Bo = ({ header: e, headerClassName: t, footer: r, footerClassName: s, chil
|
|
|
7060
7062
|
span: r,
|
|
7061
7063
|
...s
|
|
7062
7064
|
}) => {
|
|
7063
|
-
const { columnGap: n, rowGap: a } = ze(
|
|
7064
|
-
paddingLeft: n *
|
|
7065
|
-
paddingTop: a *
|
|
7065
|
+
const { columnGap: n, rowGap: a } = ze(Vt), i = {
|
|
7066
|
+
paddingLeft: n * yt + "rem",
|
|
7067
|
+
paddingTop: a * yt + "rem"
|
|
7066
7068
|
}, o = Go({
|
|
7067
7069
|
className: t,
|
|
7068
7070
|
span: r
|
|
@@ -7095,7 +7097,7 @@ try {
|
|
|
7095
7097
|
});
|
|
7096
7098
|
} catch {
|
|
7097
7099
|
}
|
|
7098
|
-
const
|
|
7100
|
+
const Ys = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
7099
7101
|
alert: null,
|
|
7100
7102
|
alertdialog: null,
|
|
7101
7103
|
log: "polite",
|
|
@@ -7105,7 +7107,7 @@ const Qs = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7105
7107
|
timer: "assertive"
|
|
7106
7108
|
}, qo = (e, t) => {
|
|
7107
7109
|
switch (t?.type) {
|
|
7108
|
-
case
|
|
7110
|
+
case Ys:
|
|
7109
7111
|
return {
|
|
7110
7112
|
...e,
|
|
7111
7113
|
announcement: t.payload
|
|
@@ -7122,22 +7124,22 @@ const Qs = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7122
7124
|
t({
|
|
7123
7125
|
type: Js
|
|
7124
7126
|
}), typeof e == "function" && e();
|
|
7125
|
-
},
|
|
7127
|
+
}, Hr = ({ children: e, clearAnnouncementDelay: t, clearAnnouncementTimeoutRef: r, onAnnouncementClear: s, dispatch: n }) => {
|
|
7126
7128
|
clearTimeout(r.current), e !== null && n({
|
|
7127
|
-
type:
|
|
7129
|
+
type: Ys,
|
|
7128
7130
|
payload: e
|
|
7129
7131
|
}), t && (r.current = setTimeout(() => Wo({
|
|
7130
7132
|
onAnnouncementClear: s,
|
|
7131
7133
|
dispatch: n
|
|
7132
7134
|
}), t));
|
|
7133
7135
|
}, jo = ({ children: e, announcementTimeoutRef: t, announcementDelay: r, clearAnnouncementDelay: s, clearAnnouncementTimeoutRef: n, onAnnouncementClear: a, dispatch: i }) => {
|
|
7134
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
7136
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Hr, r, {
|
|
7135
7137
|
children: e,
|
|
7136
7138
|
clearAnnouncementDelay: s,
|
|
7137
7139
|
clearAnnouncementTimeoutRef: n,
|
|
7138
7140
|
onAnnouncementClear: a,
|
|
7139
7141
|
dispatch: i
|
|
7140
|
-
}) :
|
|
7142
|
+
}) : Hr({
|
|
7141
7143
|
children: e,
|
|
7142
7144
|
clearAnnouncementDelay: s,
|
|
7143
7145
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -7145,8 +7147,8 @@ const Qs = "SET_ANNOUNCEMENT", Js = "CLEAR_ANNOUNCEMENT", zo = {
|
|
|
7145
7147
|
dispatch: i
|
|
7146
7148
|
});
|
|
7147
7149
|
};
|
|
7148
|
-
function
|
|
7149
|
-
const f = B(null), d = B(null), [h, u] =
|
|
7150
|
+
function Xs({ children: e, className: t, politeness: r, role: s = null, announcementDelay: n, clearAnnouncementDelay: a, onAnnouncementClear: i, visible: o, ...l }) {
|
|
7151
|
+
const f = B(null), d = B(null), [h, u] = Vr(qo, {
|
|
7150
7152
|
announcement: null
|
|
7151
7153
|
});
|
|
7152
7154
|
let p = r;
|
|
@@ -7192,12 +7194,12 @@ try {
|
|
|
7192
7194
|
});
|
|
7193
7195
|
} catch {
|
|
7194
7196
|
}
|
|
7195
|
-
const
|
|
7197
|
+
const Zs = "av-text-input", Qo = "av-text-input-wrapper", Mt = "av-text-input-helper-text", Yo = ({ mode: e }) => m({
|
|
7196
7198
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
7197
7199
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
7198
7200
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
7199
7201
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
7200
|
-
}),
|
|
7202
|
+
}), Jo = ({ focusMode: e }) => m("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
7201
7203
|
"focus:outline-focus-dark": e === "dark",
|
|
7202
7204
|
"focus:outline-focus-light": e === "light",
|
|
7203
7205
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -7230,16 +7232,16 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7230
7232
|
if (t)
|
|
7231
7233
|
return "";
|
|
7232
7234
|
if (s)
|
|
7233
|
-
return m(
|
|
7235
|
+
return m(Mt, "absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
7234
7236
|
if (!e)
|
|
7235
|
-
return m(
|
|
7237
|
+
return m(Mt, "absolute px-2 font-medium", {
|
|
7236
7238
|
"text-copy-lighter": r === "dark",
|
|
7237
7239
|
"text-copy-dark": r === "light",
|
|
7238
7240
|
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
7239
7241
|
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
7240
7242
|
});
|
|
7241
7243
|
if (e)
|
|
7242
|
-
return m(
|
|
7244
|
+
return m(Mt, "absolute px-2 font-medium", {
|
|
7243
7245
|
"text-copy-error-light bg-surface-darker": r === "dark",
|
|
7244
7246
|
"text-copy-error-dark": r === "light",
|
|
7245
7247
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
@@ -7265,9 +7267,9 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7265
7267
|
h = "h-12";
|
|
7266
7268
|
break;
|
|
7267
7269
|
}
|
|
7268
|
-
const u = r ? m(t) : m(
|
|
7270
|
+
const u = r ? m(t) : m(Zs, h, "rounded-md text-base px-4", Yo({
|
|
7269
7271
|
mode: i
|
|
7270
|
-
}),
|
|
7272
|
+
}), Jo({
|
|
7271
7273
|
focusMode: o
|
|
7272
7274
|
}), Xo({
|
|
7273
7275
|
noBorder: n,
|
|
@@ -7293,10 +7295,10 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7293
7295
|
helperText: g,
|
|
7294
7296
|
rightElement: w
|
|
7295
7297
|
};
|
|
7296
|
-
},
|
|
7297
|
-
const [
|
|
7298
|
+
}, nr = /* @__PURE__ */ ee.forwardRef(({ id: e, name: t, label: r, error: s = !1, raw: n = !1, className: a, inputClassName: i, mode: o = "system", focusMode: l = "system", disabled: f = !1, noBorder: d = !1, labelId: h, labelHidden: u = !1, type: p = "text", helperText: y = "", rightElement: g, rightElementClassName: w, size: b = "md", ...x }, R) => {
|
|
7299
|
+
const [J, P] = st(), [se, N] = X(0), I = js({
|
|
7298
7300
|
id: e,
|
|
7299
|
-
prefix: `${
|
|
7301
|
+
prefix: `${Zs}-`
|
|
7300
7302
|
}), G = `${t} error, ${y}`, O = B(null), C = B(null), D = {
|
|
7301
7303
|
xs: {
|
|
7302
7304
|
label: "-25px",
|
|
@@ -7330,11 +7332,11 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7330
7332
|
size: b,
|
|
7331
7333
|
rightElementClassName: w
|
|
7332
7334
|
});
|
|
7333
|
-
return
|
|
7335
|
+
return at(() => {
|
|
7334
7336
|
P && P.width && N(P.width + 18 + 10);
|
|
7335
7337
|
}, [
|
|
7336
7338
|
P
|
|
7337
|
-
]),
|
|
7339
|
+
]), at(() => {
|
|
7338
7340
|
const { label: me, helperText: Ae } = D[b];
|
|
7339
7341
|
O?.current?.style.setProperty("--av-text-input-label", me), C?.current?.style.setProperty("--av-text-input-helper-text", Ae);
|
|
7340
7342
|
}, [
|
|
@@ -7383,11 +7385,11 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7383
7385
|
children: y
|
|
7384
7386
|
}),
|
|
7385
7387
|
g && /* @__PURE__ */ c("div", {
|
|
7386
|
-
ref:
|
|
7388
|
+
ref: J,
|
|
7387
7389
|
className: te.rightElement,
|
|
7388
7390
|
children: g
|
|
7389
7391
|
}),
|
|
7390
|
-
s && y && /* @__PURE__ */ c(
|
|
7392
|
+
s && y && /* @__PURE__ */ c(Xs, {
|
|
7391
7393
|
politeness: "polite",
|
|
7392
7394
|
clearAnnouncementDelay: 500,
|
|
7393
7395
|
children: G
|
|
@@ -7395,15 +7397,15 @@ const Xs = "av-text-input", Qo = "av-text-input-wrapper", Nt = "av-text-input-he
|
|
|
7395
7397
|
]
|
|
7396
7398
|
});
|
|
7397
7399
|
});
|
|
7398
|
-
|
|
7399
|
-
const rc = 500, sc = 5e3, nc = 2e4,
|
|
7400
|
+
nr.displayName = "TextInput";
|
|
7401
|
+
const rc = 500, sc = 5e3, nc = 2e4, en = /* @__PURE__ */ ee.forwardRef(({ name: e, disabled: t, label: r, labelHidden: s, onMaskChange: n, onChange: a, onBlur: i, onFocus: o, onTextInputMaskBlur: l, rightElement: f, ...d }, h) => {
|
|
7400
7402
|
const [u, p] = X(!0), [y, g] = X({
|
|
7401
7403
|
message: null,
|
|
7402
7404
|
politeness: null
|
|
7403
|
-
}), w = B(!0), b = B(null), x = B(null), R =
|
|
7405
|
+
}), w = B(!0), b = B(null), x = B(null), R = Ws([
|
|
7404
7406
|
h,
|
|
7405
7407
|
x
|
|
7406
|
-
]),
|
|
7408
|
+
]), J = u ? "Show" : "Hide", P = () => {
|
|
7407
7409
|
b.current && clearTimeout(b.current), w.current || (b.current = setTimeout(() => {
|
|
7408
7410
|
w.current = !0, p(!0), g({
|
|
7409
7411
|
announcementTimeout: sc,
|
|
@@ -7431,9 +7433,9 @@ const rc = 500, sc = 5e3, nc = 2e4, Zs = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7431
7433
|
};
|
|
7432
7434
|
return A(() => () => {
|
|
7433
7435
|
b.current && clearTimeout(b.current);
|
|
7434
|
-
}, []), /* @__PURE__ */ E(
|
|
7436
|
+
}, []), /* @__PURE__ */ E(Kr, {
|
|
7435
7437
|
children: [
|
|
7436
|
-
/* @__PURE__ */ c(
|
|
7438
|
+
/* @__PURE__ */ c(nr, {
|
|
7437
7439
|
ref: R,
|
|
7438
7440
|
name: e,
|
|
7439
7441
|
label: r,
|
|
@@ -7445,14 +7447,14 @@ const rc = 500, sc = 5e3, nc = 2e4, Zs = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7445
7447
|
onChange: O,
|
|
7446
7448
|
rightElement: /* @__PURE__ */ ee.cloneElement(f, {
|
|
7447
7449
|
ref: h,
|
|
7448
|
-
label:
|
|
7450
|
+
label: J,
|
|
7449
7451
|
onClick: se,
|
|
7450
7452
|
onBlur: N,
|
|
7451
7453
|
disabled: t
|
|
7452
7454
|
}),
|
|
7453
7455
|
...d
|
|
7454
7456
|
}),
|
|
7455
|
-
/* @__PURE__ */ c(
|
|
7457
|
+
/* @__PURE__ */ c(Xs, {
|
|
7456
7458
|
role: "status",
|
|
7457
7459
|
politeness: y.politeness,
|
|
7458
7460
|
clearAnnouncementDelay: y.announcementTimeout,
|
|
@@ -7461,8 +7463,8 @@ const rc = 500, sc = 5e3, nc = 2e4, Zs = /* @__PURE__ */ ee.forwardRef(({ name:
|
|
|
7461
7463
|
]
|
|
7462
7464
|
});
|
|
7463
7465
|
});
|
|
7464
|
-
|
|
7465
|
-
const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in with a Passkey",
|
|
7466
|
+
en.displayName = "TextInputMask";
|
|
7467
|
+
const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in with a Passkey", Pu = "Log out", cc = "Password", Nu = "Usage", Mu = "Profile", xu = "Settings", Lu = "Chat history", Du = "About", $u = "Type your message...", Uu = "How can I help you this morning?", Hu = "How can I help you this afternoon?", Fu = "How can I help you this evening?", Bu = "How can I help you tonight?", Ku = "How can I help you today?", Vu = "How can I help you?", Gu = "{{clipboard}}", $ = "Review important details.", zu = [
|
|
7466
7468
|
`Sometimes, ${L} just makes stuff up. ${$}`,
|
|
7467
7469
|
`${L} may invent facts on the fly. ${$}`,
|
|
7468
7470
|
`${L} may be confidently wrong. ${$}`,
|
|
@@ -7483,17 +7485,41 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7483
7485
|
`Sometimes, ${L} howls at the moon. ${$}`,
|
|
7484
7486
|
`${L} may dig up imaginary bones. ${$}`,
|
|
7485
7487
|
`${L} may sniff out nonsense. ${$}`
|
|
7486
|
-
],
|
|
7488
|
+
], qu = "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.", Wu = "Default provider set to", ju = "Chat successfully deleted!", Qu = "Caching enabled. Assets are now stored locally.", Yu = "Caching disabled. Local asset cache cleared.", Ju = "av-sassy", Xu = {
|
|
7487
7489
|
0: ["January", "February", "March"],
|
|
7488
7490
|
3: ["April", "May", "June"],
|
|
7489
7491
|
6: ["July", "August", "September"],
|
|
7490
7492
|
9: ["October", "November", "December"]
|
|
7491
|
-
},
|
|
7493
|
+
}, Zu = {
|
|
7492
7494
|
0: ["Jan", "Feb", "Mar"],
|
|
7493
7495
|
3: ["Apr", "May", "Jun"],
|
|
7494
7496
|
6: ["Jul", "Aug", "Sep"],
|
|
7495
7497
|
9: ["Oct", "Nov", "Dec"]
|
|
7496
|
-
},
|
|
7498
|
+
}, tt = {
|
|
7499
|
+
TODAY: "today",
|
|
7500
|
+
YESTERDAY: "yesterday",
|
|
7501
|
+
SPECIFIC_MONTH: "specificMonth",
|
|
7502
|
+
CURRENT_YEAR: "currentYear",
|
|
7503
|
+
LAST_YEAR: "lastYear"
|
|
7504
|
+
}, ed = [
|
|
7505
|
+
"January",
|
|
7506
|
+
"February",
|
|
7507
|
+
"March",
|
|
7508
|
+
"April",
|
|
7509
|
+
"May",
|
|
7510
|
+
"June",
|
|
7511
|
+
"July",
|
|
7512
|
+
"August",
|
|
7513
|
+
"September",
|
|
7514
|
+
"October",
|
|
7515
|
+
"November",
|
|
7516
|
+
"December"
|
|
7517
|
+
], td = {
|
|
7518
|
+
[tt.TODAY]: "Today",
|
|
7519
|
+
[tt.YESTERDAY]: "Yesterday",
|
|
7520
|
+
[tt.CURRENT_YEAR]: `${(/* @__PURE__ */ new Date()).getFullYear()} by trimester`,
|
|
7521
|
+
[tt.LAST_YEAR]: `${(/* @__PURE__ */ new Date()).getFullYear() - 1} by trimester`
|
|
7522
|
+
}, rd = {
|
|
7497
7523
|
PREFERENCES: {
|
|
7498
7524
|
TITLE: "User profile",
|
|
7499
7525
|
USERNAME: "Username",
|
|
@@ -7514,7 +7540,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7514
7540
|
TOTAL: "Total chat session",
|
|
7515
7541
|
TOTAL_PRIVATE: "Private chat",
|
|
7516
7542
|
TOTAL_DELETED: "Deleted chat",
|
|
7517
|
-
USAGE:
|
|
7543
|
+
USAGE: "Model and token usage"
|
|
7518
7544
|
},
|
|
7519
7545
|
HISTORY: {
|
|
7520
7546
|
TITLE: "Chat history"
|
|
@@ -7548,7 +7574,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7548
7574
|
}, lc = {
|
|
7549
7575
|
ASC: "asc",
|
|
7550
7576
|
DESC: "desc"
|
|
7551
|
-
},
|
|
7577
|
+
}, sd = "FOOTER_BOTTOM", uc = "FOOTER_TOP", dc = "APP_SET_FOOTER_POSITION", hc = "APP_SET_FOOTER_HEIGHT", fc = "APP_SET_OLED_MODE", pc = "APP_SET_FULL_SCREEN", yc = "APP_SET_THEME_MODE", mc = "APP_SET_THEME_PALETTE", nd = (e, t) => {
|
|
7552
7578
|
switch (t.type) {
|
|
7553
7579
|
case dc:
|
|
7554
7580
|
return {
|
|
@@ -7584,7 +7610,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7584
7610
|
default:
|
|
7585
7611
|
return e;
|
|
7586
7612
|
}
|
|
7587
|
-
},
|
|
7613
|
+
}, ad = ee.createContext({
|
|
7588
7614
|
state: {
|
|
7589
7615
|
searchString: "",
|
|
7590
7616
|
sortedCell: "",
|
|
@@ -7592,13 +7618,13 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7592
7618
|
},
|
|
7593
7619
|
dispatch: () => {
|
|
7594
7620
|
}
|
|
7595
|
-
}),
|
|
7621
|
+
}), id = ee.createContext({
|
|
7596
7622
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
|
7597
7623
|
dispatch: () => {
|
|
7598
7624
|
}
|
|
7599
|
-
}),
|
|
7625
|
+
}), od = ee.createContext({
|
|
7600
7626
|
state: {
|
|
7601
|
-
provider:
|
|
7627
|
+
provider: on,
|
|
7602
7628
|
privateChat: !1,
|
|
7603
7629
|
reasoning: !1,
|
|
7604
7630
|
streaming: !1,
|
|
@@ -7623,7 +7649,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7623
7649
|
footerOffset: 0,
|
|
7624
7650
|
oledMode: !1,
|
|
7625
7651
|
fullScreen: !1,
|
|
7626
|
-
themeMode:
|
|
7652
|
+
themeMode: nn
|
|
7627
7653
|
},
|
|
7628
7654
|
dispatch: () => {
|
|
7629
7655
|
}
|
|
@@ -7683,7 +7709,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7683
7709
|
}
|
|
7684
7710
|
);
|
|
7685
7711
|
}, bc = () => {
|
|
7686
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } =
|
|
7712
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = Ms(), [s, n] = X(""), [a, i] = X(""), [o, l] = X(!0), [f, d] = X({
|
|
7687
7713
|
username: "",
|
|
7688
7714
|
password: ""
|
|
7689
7715
|
}), h = async (u) => {
|
|
@@ -7695,11 +7721,11 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7695
7721
|
}, 500);
|
|
7696
7722
|
}), A(() => {
|
|
7697
7723
|
t && i(t);
|
|
7698
|
-
}, [t]), /* @__PURE__ */ E("main", { className:
|
|
7724
|
+
}, [t]), /* @__PURE__ */ E("main", { className: Fs({ extraClass: "mt-5" }), children: [
|
|
7699
7725
|
/* @__PURE__ */ c(
|
|
7700
7726
|
"div",
|
|
7701
7727
|
{
|
|
7702
|
-
className:
|
|
7728
|
+
className: Hs({
|
|
7703
7729
|
extraClass: "rounded-md pb-10"
|
|
7704
7730
|
}),
|
|
7705
7731
|
children: /* @__PURE__ */ c(Sc, {})
|
|
@@ -7708,7 +7734,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7708
7734
|
/* @__PURE__ */ c("form", { className: "mt-5", onSubmit: h, children: /* @__PURE__ */ c(Vo, { alignHorizontal: "center", children: /* @__PURE__ */ c(be, { span: 6, children: /* @__PURE__ */ E(Bo, { mode: "dark", children: [
|
|
7709
7735
|
/* @__PURE__ */ c(be, { span: 12, className: "mt-7", children: a && /* @__PURE__ */ c("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: a }) }),
|
|
7710
7736
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7711
|
-
|
|
7737
|
+
nr,
|
|
7712
7738
|
{
|
|
7713
7739
|
className: "mt-7",
|
|
7714
7740
|
required: !0,
|
|
@@ -7729,7 +7755,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7729
7755
|
}
|
|
7730
7756
|
) }),
|
|
7731
7757
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7732
|
-
|
|
7758
|
+
en,
|
|
7733
7759
|
{
|
|
7734
7760
|
className: "mt-7",
|
|
7735
7761
|
required: !0,
|
|
@@ -7761,7 +7787,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7761
7787
|
}
|
|
7762
7788
|
) }),
|
|
7763
7789
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7764
|
-
|
|
7790
|
+
Qs,
|
|
7765
7791
|
{
|
|
7766
7792
|
mode: "dark",
|
|
7767
7793
|
focusMode: "light",
|
|
@@ -7772,7 +7798,7 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7772
7798
|
children: ic
|
|
7773
7799
|
}
|
|
7774
7800
|
) }),
|
|
7775
|
-
!
|
|
7801
|
+
!Bs() && /* @__PURE__ */ E(Kr, { children: [
|
|
7776
7802
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
7777
7803
|
/* @__PURE__ */ c(be, { span: 12, children: /* @__PURE__ */ c(
|
|
7778
7804
|
Ge,
|
|
@@ -7790,15 +7816,15 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7790
7816
|
] })
|
|
7791
7817
|
] }) }) }) })
|
|
7792
7818
|
] });
|
|
7793
|
-
}, vc = new URL(document.location.href).searchParams,
|
|
7819
|
+
}, vc = new URL(document.location.href).searchParams, Fr = !!vc.get("debug") || !1, Tc = sn(() => import(
|
|
7794
7820
|
/* webpackChunkName: "LazyApp" */
|
|
7795
|
-
"./App.
|
|
7796
|
-
).then((e) => e.App)), Ic = new Ln(),
|
|
7821
|
+
"./App.DAQta2pJ.js"
|
|
7822
|
+
).then((e) => e.App)), Ic = new Ln(), Br = ({
|
|
7797
7823
|
isComponent: e,
|
|
7798
7824
|
headerHeight: t
|
|
7799
7825
|
}) => {
|
|
7800
|
-
const { isAuthenticated: r, isLoading: s, user: n, getAccessToken: a } =
|
|
7801
|
-
return s ? /* @__PURE__ */ c("div", {}) : r ? /* @__PURE__ */ c(
|
|
7826
|
+
const { isAuthenticated: r, isLoading: s, user: n, getAccessToken: a } = Ms();
|
|
7827
|
+
return s ? /* @__PURE__ */ c("div", {}) : r ? /* @__PURE__ */ c(rn, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Dn, { client: Ic, children: /* @__PURE__ */ c(
|
|
7802
7828
|
no,
|
|
7803
7829
|
{
|
|
7804
7830
|
user: n?.username,
|
|
@@ -7809,25 +7835,25 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7809
7835
|
}, _c = ({
|
|
7810
7836
|
isComponent: e = !1,
|
|
7811
7837
|
headerHeight: t = 0,
|
|
7812
|
-
domain: r =
|
|
7838
|
+
domain: r = Us,
|
|
7813
7839
|
extraProps: s
|
|
7814
|
-
}) => (
|
|
7840
|
+
}) => (ht && console.info(
|
|
7815
7841
|
`==> [${Date.now()}] Bootstrapping SassySaint Client with props: `,
|
|
7816
7842
|
{ isComponent: e, domain: r, headerHeight: t, extraProps: s }
|
|
7817
7843
|
), A(() => {
|
|
7818
|
-
e ||
|
|
7844
|
+
e || Ds().catch((n) => {
|
|
7819
7845
|
console.error("[SW] Failed to register service worker:", n);
|
|
7820
7846
|
});
|
|
7821
|
-
}, [e]),
|
|
7822
|
-
|
|
7847
|
+
}, [e]), ht ? /* @__PURE__ */ c(
|
|
7848
|
+
Rr,
|
|
7823
7849
|
{
|
|
7824
|
-
clientId:
|
|
7850
|
+
clientId: Or,
|
|
7825
7851
|
domain: r,
|
|
7826
|
-
debug:
|
|
7852
|
+
debug: Fr,
|
|
7827
7853
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
|
7828
|
-
children: /* @__PURE__ */ c(
|
|
7854
|
+
children: /* @__PURE__ */ c(Br, { isComponent: e, headerHeight: t })
|
|
7829
7855
|
}
|
|
7830
|
-
) : /* @__PURE__ */ c(
|
|
7856
|
+
) : /* @__PURE__ */ c(Rr, { clientId: Or, domain: r, debug: Fr, children: /* @__PURE__ */ c(Br, { isComponent: e, headerHeight: t }) })), cd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ c(
|
|
7831
7857
|
_c,
|
|
7832
7858
|
{
|
|
7833
7859
|
isComponent: !0,
|
|
@@ -7837,12 +7863,12 @@ const ac = "ASK! ME! ANYTHING!", ic = "Log in with a password", oc = "Log in wit
|
|
|
7837
7863
|
}
|
|
7838
7864
|
);
|
|
7839
7865
|
export {
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7866
|
+
Du as ABOUT_TITLE,
|
|
7867
|
+
Qc as ACTION_RESET_PROMPT,
|
|
7868
|
+
qc as ACTION_SEARCH,
|
|
7869
|
+
Wc as ACTION_SORT,
|
|
7870
|
+
jc as ACTION_TOGGLE_PROMPT,
|
|
7871
|
+
Ju as APP_CLASSNAME,
|
|
7846
7872
|
hc as APP_SET_FOOTER_HEIGHT,
|
|
7847
7873
|
dc as APP_SET_FOOTER_POSITION,
|
|
7848
7874
|
pc as APP_SET_FULL_SCREEN,
|
|
@@ -7850,186 +7876,188 @@ export {
|
|
|
7850
7876
|
yc as APP_SET_THEME_MODE,
|
|
7851
7877
|
mc as APP_SET_THEME_PALETTE,
|
|
7852
7878
|
gc as AppContext,
|
|
7853
|
-
|
|
7854
|
-
js as Button,
|
|
7879
|
+
Qs as Button,
|
|
7855
7880
|
Do as ButtonCopy,
|
|
7856
7881
|
Ge as ButtonIcon,
|
|
7857
7882
|
Uo as ButtonSort_private,
|
|
7858
|
-
|
|
7859
|
-
|
|
7883
|
+
rd as CARDS,
|
|
7884
|
+
Gu as CLIPBOARD_PROMPT,
|
|
7860
7885
|
Bo as Card,
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
qu as FOOTER_DISCLAIMERS,
|
|
7886
|
+
od as ChatContext,
|
|
7887
|
+
hl as DEFAULT_ICON_ACTION_SIZE,
|
|
7888
|
+
zc as ERROR_MESSAGE,
|
|
7889
|
+
sd as FOOTER_BOTTOM,
|
|
7890
|
+
zu as FOOTER_DISCLAIMERS,
|
|
7867
7891
|
uc as FOOTER_TOP,
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
Uu as
|
|
7881
|
-
|
|
7882
|
-
Ku as
|
|
7883
|
-
|
|
7884
|
-
Gl as
|
|
7885
|
-
zl as
|
|
7886
|
-
ql as
|
|
7887
|
-
Wl as
|
|
7888
|
-
jl as
|
|
7889
|
-
Ql as
|
|
7890
|
-
Jl as IconCloseLight,
|
|
7892
|
+
Lu as HISTORY_TITLE,
|
|
7893
|
+
ad as HistoryContext,
|
|
7894
|
+
ll as INFINITE_SCROLL_LIMIT,
|
|
7895
|
+
cl as INFINITE_SCROLL_THRESHOLD,
|
|
7896
|
+
gl as INPUT_BOTTOM_OFFSET,
|
|
7897
|
+
Sl as INPUT_BOTTOM_OFFSET_EXTRA,
|
|
7898
|
+
wl as INPUT_BOTTOM_OFFSET_IPAD,
|
|
7899
|
+
El as INPUT_BOTTOM_OFFSET_IPHONE,
|
|
7900
|
+
Hu as INPUT_PLACEHOLDER_TEXT_AFTERNOON,
|
|
7901
|
+
Vu as INPUT_PLACEHOLDER_TEXT_DEFAULT,
|
|
7902
|
+
Fu as INPUT_PLACEHOLDER_TEXT_EVENING,
|
|
7903
|
+
$u as INPUT_PLACEHOLDER_TEXT_IN_SESSION,
|
|
7904
|
+
Uu as INPUT_PLACEHOLDER_TEXT_MORNING,
|
|
7905
|
+
Bu as INPUT_PLACEHOLDER_TEXT_NIGHT,
|
|
7906
|
+
Ku as INPUT_PLACEHOLDER_TEXT_TODAY,
|
|
7907
|
+
Vl as IconAddLight,
|
|
7908
|
+
Gl as IconAnthropic,
|
|
7909
|
+
zl as IconBack,
|
|
7910
|
+
ql as IconBookSparklesLight,
|
|
7911
|
+
Wl as IconChart,
|
|
7912
|
+
jl as IconClose,
|
|
7913
|
+
Ql as IconCloseLight,
|
|
7891
7914
|
ao as IconCopied,
|
|
7892
7915
|
io as IconCopy,
|
|
7893
7916
|
Yl as IconDelete,
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7917
|
+
Jl as IconEdit,
|
|
7918
|
+
Xl as IconEditLight,
|
|
7919
|
+
Zl as IconEditUser,
|
|
7920
|
+
eu as IconGoogleGemini,
|
|
7921
|
+
tu as IconHistory,
|
|
7922
|
+
ru as IconInfo,
|
|
7923
|
+
su as IconLightBulbLight,
|
|
7924
|
+
nu as IconLockedLight,
|
|
7925
|
+
au as IconMagic,
|
|
7926
|
+
iu as IconNext,
|
|
7927
|
+
ou as IconOpenAI,
|
|
7905
7928
|
lo as IconPasskey,
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7929
|
+
cu as IconProfile,
|
|
7930
|
+
lu as IconProofread,
|
|
7931
|
+
uu as IconRestore,
|
|
7932
|
+
du as IconRewrite,
|
|
7933
|
+
hu as IconSearch,
|
|
7934
|
+
fu as IconSelected,
|
|
7935
|
+
pu as IconSendLight,
|
|
7936
|
+
yu as IconSettings,
|
|
7937
|
+
mu as IconSliders,
|
|
7938
|
+
gu as IconStarInCircle,
|
|
7939
|
+
Eu as IconStarInCircleLight,
|
|
7940
|
+
Su as IconUnSelected,
|
|
7941
|
+
wu as IconUnlockedLight,
|
|
7942
|
+
Hc as K,
|
|
7919
7943
|
Vo as L,
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7944
|
+
al as LOCAL_STORAGE_CHAT_ID,
|
|
7945
|
+
rl as LOCAL_STORAGE_FAVORITES_ONLY,
|
|
7946
|
+
ol as LOCAL_STORAGE_FULL_SCREEN,
|
|
7947
|
+
il as LOCAL_STORAGE_OLED_MODE,
|
|
7948
|
+
xs as LOCAL_STORAGE_PREFIX,
|
|
7949
|
+
sl as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
7950
|
+
nl as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
|
7927
7951
|
Yc as LOCAL_STORAGE_SEARCH,
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7952
|
+
Jc as LOCAL_STORAGE_SORT,
|
|
7953
|
+
tl as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
|
7954
|
+
el as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
|
7955
|
+
Xc as LOCAL_STORAGE_SORT_TIMESTAMP,
|
|
7956
|
+
Zc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
|
7957
|
+
Pu as LOG_OUT,
|
|
7958
|
+
Xs as LiveRegion,
|
|
7935
7959
|
Sc as Logo,
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
zt as R,
|
|
7960
|
+
ed as MONTHS,
|
|
7961
|
+
Mu as PROFILE_TITLE,
|
|
7962
|
+
qu as PROMPTS_DESCRIPTION,
|
|
7963
|
+
ul as PROMPT_CLASSNAME,
|
|
7964
|
+
dl as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
7965
|
+
id as PromptsContext,
|
|
7943
7966
|
V as SERVICE_TYPES,
|
|
7944
|
-
|
|
7945
|
-
|
|
7967
|
+
xu as SETTINGS_TITLE,
|
|
7968
|
+
cd as SassySaint,
|
|
7969
|
+
tt as TIME_RANGES,
|
|
7970
|
+
td as TIME_RANGE_LABELS,
|
|
7946
7971
|
Yu as TOAST_CACHE_DISABLED,
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7972
|
+
Qu as TOAST_CACHE_ENABLED,
|
|
7973
|
+
ju as TOAST_CHAT_DELETED,
|
|
7974
|
+
Wu as TOAST_PROVIDER_CHANGED,
|
|
7975
|
+
Xu as TRIMESTERS,
|
|
7976
|
+
Zu as TRIMESTERS_SHORT,
|
|
7977
|
+
nr as TextInput,
|
|
7978
|
+
Nc as U,
|
|
7979
|
+
pl as UI_BUTTON_SCROLL_BUFFER,
|
|
7980
|
+
yl as UI_DEFAULT_MAIN_HEIGHT,
|
|
7981
|
+
ml as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
|
7982
|
+
fl as UI_FOOTER_BUFFER,
|
|
7983
|
+
Nu as USAGE_TITLE,
|
|
7984
|
+
L as V,
|
|
7985
|
+
$c as W,
|
|
7986
|
+
mt as a,
|
|
7987
|
+
nd as appReducer,
|
|
7963
7988
|
to as applyOledMode,
|
|
7964
7989
|
eo as canEvaluateModels,
|
|
7965
7990
|
Xi as convertCamelCaseToReadable,
|
|
7966
7991
|
ji as debounce,
|
|
7967
|
-
|
|
7992
|
+
nn as e,
|
|
7968
7993
|
lc as e$1,
|
|
7969
|
-
|
|
7970
|
-
Tl as getCacheInfo,
|
|
7994
|
+
vl as getCacheInfo,
|
|
7971
7995
|
Hi as getCurrentGeoLocation,
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7996
|
+
Tu as getHotkeyHandler,
|
|
7997
|
+
Fs as getLayoutPaddingClass,
|
|
7998
|
+
Hs as getMessageContaintWrapperClass,
|
|
7975
7999
|
ue as graphQLRequest,
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
8000
|
+
bl as handleServiceWorkerToggle,
|
|
8001
|
+
zt as i,
|
|
8002
|
+
ht as isDev,
|
|
8003
|
+
Ji as isPWAMode,
|
|
8004
|
+
Ks as isProbablyMobile,
|
|
8005
|
+
Yi as isProbablyiPad,
|
|
7982
8006
|
Qi as isProbablyiPhone,
|
|
7983
|
-
|
|
7984
|
-
|
|
8007
|
+
Kt as isServiceWorkerEnabled,
|
|
8008
|
+
Bs as isTauri,
|
|
7985
8009
|
Ue as it,
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
8010
|
+
be as j,
|
|
8011
|
+
Uc as j$1,
|
|
8012
|
+
Dc as k,
|
|
8013
|
+
Ms as n,
|
|
8014
|
+
Oc as n$1,
|
|
7990
8015
|
zi as numberFormatter,
|
|
7991
|
-
|
|
8016
|
+
kc as o,
|
|
7992
8017
|
Fi as obfuscate,
|
|
8018
|
+
Pc as p,
|
|
7993
8019
|
Wi as pluralize,
|
|
7994
|
-
Hc as q,
|
|
7995
8020
|
Ki as renderDataAsList,
|
|
8021
|
+
qt as s,
|
|
7996
8022
|
ro as serverUrl,
|
|
7997
|
-
|
|
7998
|
-
|
|
8023
|
+
Il as setNewProvider,
|
|
8024
|
+
_l as setUserPlan,
|
|
7999
8025
|
Bi as unObfuscate,
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8026
|
+
Rl as useChangelogs,
|
|
8027
|
+
kl as useChat,
|
|
8028
|
+
Ol as useChatsHistory,
|
|
8029
|
+
xl as useChatsUsage,
|
|
8030
|
+
bu as useClickOutside,
|
|
8031
|
+
Ul as useDeleteAllActiveMemories,
|
|
8032
|
+
Hl as useDeleteAllExpiredMemories,
|
|
8033
|
+
Nl as useDeleteChat,
|
|
8034
|
+
$l as useDeleteMemory,
|
|
8035
|
+
Kl as useEntitlements,
|
|
8036
|
+
Fl as useExpiredMemories,
|
|
8037
|
+
vu as useHaptic,
|
|
8038
|
+
Iu as useHotkeys,
|
|
8039
|
+
Au as useInViewport,
|
|
8040
|
+
_u as useInterval,
|
|
8041
|
+
Ru as useLocalStorage,
|
|
8042
|
+
Ws as useMergeRefs,
|
|
8017
8043
|
le as useQueryClient,
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8044
|
+
st as useResizeObserver,
|
|
8045
|
+
Bl as useRestoreMemory,
|
|
8046
|
+
Pl as useSaveChat,
|
|
8047
|
+
Al as useServerCapabilities,
|
|
8022
8048
|
wc as useTheme,
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8049
|
+
Ml as useToggleFavoriteChat,
|
|
8050
|
+
Cu as useUncontrolled,
|
|
8051
|
+
js as useUniqueId,
|
|
8052
|
+
Dl as useUpdateMemory,
|
|
8053
|
+
Cl as useUserChatStats,
|
|
8054
|
+
Ll as useUserMemories,
|
|
8029
8055
|
so as useUserPreferences,
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8056
|
+
Ou as useViewportSize,
|
|
8057
|
+
ku as useVisualViewportSize,
|
|
8058
|
+
Tl as utilities,
|
|
8059
|
+
xc as v,
|
|
8033
8060
|
Lc as w,
|
|
8034
|
-
|
|
8061
|
+
ln as x,
|
|
8062
|
+
Mc as y
|
|
8035
8063
|
};
|