@versini/sassysaint 7.1.4 → 7.1.6
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/{App.Bfnlm12i.js → App.fUQ6Upmp.js} +3 -3
- package/dist/chunks/{ChatBubbleAssistant.CdEM0sYe.js → ChatBubbleAssistant.CVd9nqvb.js} +3 -3
- package/dist/chunks/{HeaderEntry.B9Nkz9EK.js → HeaderEntry.DiaiGqp6.js} +4 -4
- package/dist/chunks/{MarkdownWithExtra.DmZcGXro.js → MarkdownWithExtra.D22TGTzU.js} +2 -2
- package/dist/chunks/{index.C18A8kDY.js → index.B6-d6CvP.js} +592 -600
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as l, jsxs as D, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import X, { createContext as
|
|
2
|
+
import X, { createContext as or, useReducer as It, useRef as x, useCallback as q, useEffect as Y, useContext as Tt, useSyncExternalStore as sr, useLayoutEffect as Ne, useMemo as De, useState as z, useId as St, lazy as ir, Suspense as cr } from "react";
|
|
3
3
|
import p from "clsx";
|
|
4
|
-
var
|
|
4
|
+
var lr = Object.defineProperty, dr = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, He = (e, t, r) => dr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
|
-
@versini/auth-provider v7.4.
|
|
6
|
+
@versini/auth-provider v7.4.3
|
|
7
7
|
© 2025 gizmette.com
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
11
|
-
version: "7.4.
|
|
12
|
-
buildTime: "02/09/2025
|
|
11
|
+
version: "7.4.3",
|
|
12
|
+
buildTime: "02/09/2025 06:40 PM EST",
|
|
13
13
|
homepage: "https://github.com/aversini/auth-client",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -28,10 +28,10 @@ function ve(e) {
|
|
|
28
28
|
s[i] = n.charCodeAt(i);
|
|
29
29
|
return o;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function et() {
|
|
32
32
|
return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function _t(e) {
|
|
35
35
|
const { id: t } = e;
|
|
36
36
|
return {
|
|
37
37
|
...e,
|
|
@@ -39,7 +39,7 @@ function At(e) {
|
|
|
39
39
|
transports: e.transports
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function kt(e) {
|
|
43
43
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
|
44
44
|
}
|
|
45
45
|
let v = class extends Error {
|
|
@@ -47,7 +47,7 @@ let v = class extends Error {
|
|
|
47
47
|
super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function ur({ error: e, options: t }) {
|
|
51
51
|
var a, n;
|
|
52
52
|
const { publicKey: r } = t;
|
|
53
53
|
if (!r)
|
|
@@ -97,7 +97,7 @@ function hr({ error: e, options: t }) {
|
|
|
97
97
|
});
|
|
98
98
|
if (e.name === "SecurityError") {
|
|
99
99
|
const o = window.location.hostname;
|
|
100
|
-
if (
|
|
100
|
+
if (kt(o)) {
|
|
101
101
|
if (r.rp.id !== o)
|
|
102
102
|
return new v({
|
|
103
103
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
|
@@ -125,7 +125,7 @@ function hr({ error: e, options: t }) {
|
|
|
125
125
|
}
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
|
-
class
|
|
128
|
+
class mr {
|
|
129
129
|
createNewAbortSignal() {
|
|
130
130
|
if (this.controller) {
|
|
131
131
|
const r = new Error("Cancelling existing WebAuthn API call for new one");
|
|
@@ -141,14 +141,14 @@ class pr {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
function
|
|
146
|
-
if (e && !(
|
|
144
|
+
const At = new mr(), hr = ["cross-platform", "platform"];
|
|
145
|
+
function Rt(e) {
|
|
146
|
+
if (e && !(hr.indexOf(e) < 0))
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
149
|
-
async function
|
|
149
|
+
async function pr(e) {
|
|
150
150
|
var u;
|
|
151
|
-
if (!
|
|
151
|
+
if (!et())
|
|
152
152
|
throw new Error("WebAuthn is not supported in this browser");
|
|
153
153
|
const t = { publicKey: {
|
|
154
154
|
...e,
|
|
@@ -157,14 +157,14 @@ async function gr(e) {
|
|
|
157
157
|
...e.user,
|
|
158
158
|
id: ve(e.user.id)
|
|
159
159
|
},
|
|
160
|
-
excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(
|
|
160
|
+
excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(_t)
|
|
161
161
|
} };
|
|
162
|
-
t.signal =
|
|
162
|
+
t.signal = At.createNewAbortSignal();
|
|
163
163
|
let r;
|
|
164
164
|
try {
|
|
165
165
|
r = await navigator.credentials.create(t);
|
|
166
166
|
} catch (c) {
|
|
167
|
-
throw
|
|
167
|
+
throw ur({ error: c, options: t });
|
|
168
168
|
}
|
|
169
169
|
if (!r)
|
|
170
170
|
throw new Error("Registration was not completed");
|
|
@@ -176,7 +176,7 @@ async function gr(e) {
|
|
|
176
176
|
try {
|
|
177
177
|
d = o.getPublicKeyAlgorithm();
|
|
178
178
|
} catch (c) {
|
|
179
|
-
|
|
179
|
+
We("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
@@ -184,14 +184,14 @@ async function gr(e) {
|
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
185
|
c !== null && (h = G(c));
|
|
186
186
|
} catch (c) {
|
|
187
|
-
|
|
187
|
+
We("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let f;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
192
|
f = G(o.getAuthenticatorData());
|
|
193
193
|
} catch (c) {
|
|
194
|
-
|
|
194
|
+
We("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -206,20 +206,20 @@ async function gr(e) {
|
|
|
206
206
|
},
|
|
207
207
|
type: s,
|
|
208
208
|
clientExtensionResults: r.getClientExtensionResults(),
|
|
209
|
-
authenticatorAttachment:
|
|
209
|
+
authenticatorAttachment: Rt(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function We(e, t) {
|
|
213
213
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
214
214
|
`, t);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!
|
|
216
|
+
function fr() {
|
|
217
|
+
if (!et())
|
|
218
218
|
return new Promise((t) => t(!1));
|
|
219
219
|
const e = window.PublicKeyCredential;
|
|
220
220
|
return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function gr({ error: e, options: t }) {
|
|
223
223
|
const { publicKey: r } = t;
|
|
224
224
|
if (!r)
|
|
225
225
|
throw Error("options was missing required publicKey property");
|
|
@@ -239,7 +239,7 @@ function br({ error: e, options: t }) {
|
|
|
239
239
|
});
|
|
240
240
|
if (e.name === "SecurityError") {
|
|
241
241
|
const a = window.location.hostname;
|
|
242
|
-
if (
|
|
242
|
+
if (kt(a)) {
|
|
243
243
|
if (r.rpId !== a)
|
|
244
244
|
return new v({
|
|
245
245
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
|
@@ -260,30 +260,30 @@ function br({ error: e, options: t }) {
|
|
|
260
260
|
}
|
|
261
261
|
return e;
|
|
262
262
|
}
|
|
263
|
-
async function
|
|
263
|
+
async function yr(e, t = !1) {
|
|
264
264
|
var u, c;
|
|
265
|
-
if (!
|
|
265
|
+
if (!et())
|
|
266
266
|
throw new Error("WebAuthn is not supported in this browser");
|
|
267
267
|
let r;
|
|
268
|
-
((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(
|
|
268
|
+
((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(_t));
|
|
269
269
|
const a = {
|
|
270
270
|
...e,
|
|
271
271
|
challenge: ve(e.challenge),
|
|
272
272
|
allowCredentials: r
|
|
273
273
|
}, n = {};
|
|
274
274
|
if (t) {
|
|
275
|
-
if (!await
|
|
275
|
+
if (!await fr())
|
|
276
276
|
throw Error("Browser does not support WebAuthn autofill");
|
|
277
277
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1)
|
|
278
278
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
279
279
|
n.mediation = "conditional", a.allowCredentials = [];
|
|
280
280
|
}
|
|
281
|
-
n.publicKey = a, n.signal =
|
|
281
|
+
n.publicKey = a, n.signal = At.createNewAbortSignal();
|
|
282
282
|
let o;
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
285
285
|
} catch (m) {
|
|
286
|
-
throw
|
|
286
|
+
throw gr({ error: m, options: n });
|
|
287
287
|
}
|
|
288
288
|
if (!o)
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
@@ -300,7 +300,7 @@ async function Er(e, t = !1) {
|
|
|
300
300
|
},
|
|
301
301
|
type: h,
|
|
302
302
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
303
|
-
authenticatorAttachment:
|
|
303
|
+
authenticatorAttachment: Rt(o.authenticatorAttachment)
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
/*!
|
|
@@ -310,7 +310,7 @@ async function Er(e, t = !1) {
|
|
|
310
310
|
try {
|
|
311
311
|
window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
|
|
312
312
|
version: "4.2.0",
|
|
313
|
-
buildTime: "02/09/2025
|
|
313
|
+
buildTime: "02/09/2025 06:40 PM EST",
|
|
314
314
|
homepage: "https://github.com/aversini/auth-client",
|
|
315
315
|
license: "MIT"
|
|
316
316
|
});
|
|
@@ -323,7 +323,7 @@ const me = {
|
|
|
323
323
|
CODE: "code",
|
|
324
324
|
REFRESH_TOKEN: "refresh_token",
|
|
325
325
|
PASSKEY: "passkey"
|
|
326
|
-
},
|
|
326
|
+
}, Nt = {
|
|
327
327
|
CLIENT_ID: "X-Auth-ClientId"
|
|
328
328
|
}, N = {
|
|
329
329
|
ALG: "RS256",
|
|
@@ -338,7 +338,7 @@ const me = {
|
|
|
338
338
|
SCOPES_KEY: "scopes",
|
|
339
339
|
CLIENT_ID_KEY: "aud",
|
|
340
340
|
ISSUER: "gizmette.com"
|
|
341
|
-
},
|
|
341
|
+
}, br = `-----BEGIN PUBLIC KEY-----
|
|
342
342
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
|
343
343
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
|
344
344
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
|
@@ -346,20 +346,20 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
|
|
|
346
346
|
l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
347
347
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
|
348
348
|
awIDAQAB
|
|
349
|
-
-----END PUBLIC KEY-----`,
|
|
349
|
+
-----END PUBLIC KEY-----`, Le = {
|
|
350
350
|
CODE: "code",
|
|
351
351
|
LOGOUT: "logout",
|
|
352
352
|
LOGIN: "login",
|
|
353
353
|
REFRESH: "refresh"
|
|
354
|
-
},
|
|
355
|
-
function
|
|
354
|
+
}, $e = crypto, vt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
|
|
355
|
+
function Er(...e) {
|
|
356
356
|
const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
|
|
357
357
|
let a = 0;
|
|
358
358
|
for (const n of e)
|
|
359
359
|
r.set(n, a), a += n.length;
|
|
360
360
|
return r;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const wr = (e) => {
|
|
363
363
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
364
364
|
for (let a = 0; a < t.length; a++)
|
|
365
365
|
r[a] = t.charCodeAt(a);
|
|
@@ -368,7 +368,7 @@ const Ir = (e) => {
|
|
|
368
368
|
let t = e;
|
|
369
369
|
t instanceof Uint8Array && (t = ye.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
371
|
+
return wr(t);
|
|
372
372
|
} catch {
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
@@ -386,36 +386,36 @@ let H = class extends P {
|
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
388
|
H.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
389
|
-
class
|
|
389
|
+
class qe extends P {
|
|
390
390
|
constructor(t, r, a = "unspecified", n = "unspecified") {
|
|
391
391
|
super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
|
|
395
|
-
class
|
|
394
|
+
qe.code = "ERR_JWT_EXPIRED";
|
|
395
|
+
class xt extends P {
|
|
396
396
|
constructor() {
|
|
397
397
|
super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
xt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
401
401
|
let W = class extends P {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
W.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
407
|
-
class
|
|
407
|
+
class Ir extends P {
|
|
408
408
|
constructor(t = "decryption operation failed", r) {
|
|
409
409
|
super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
class
|
|
412
|
+
Ir.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
413
|
+
class Tr extends P {
|
|
414
414
|
constructor() {
|
|
415
415
|
super(...arguments), this.code = "ERR_JWE_INVALID";
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
Tr.code = "ERR_JWE_INVALID";
|
|
419
419
|
let _ = class extends P {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
@@ -428,52 +428,52 @@ let J = class extends P {
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
J.code = "ERR_JWT_INVALID";
|
|
431
|
-
class
|
|
431
|
+
class Sr extends P {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(...arguments), this.code = "ERR_JWK_INVALID";
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
|
|
437
|
-
class
|
|
436
|
+
Sr.code = "ERR_JWK_INVALID";
|
|
437
|
+
class _r extends P {
|
|
438
438
|
constructor() {
|
|
439
439
|
super(...arguments), this.code = "ERR_JWKS_INVALID";
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
|
|
443
|
-
class
|
|
442
|
+
_r.code = "ERR_JWKS_INVALID";
|
|
443
|
+
class kr extends P {
|
|
444
444
|
constructor(t = "no applicable key found in the JSON Web Key Set", r) {
|
|
445
445
|
super(t, r), this.code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
class
|
|
448
|
+
kr.code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
449
|
+
class Ar extends P {
|
|
450
450
|
constructor(t = "multiple matching keys found in the JSON Web Key Set", r) {
|
|
451
451
|
super(t, r), this.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
class
|
|
454
|
+
Ar.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
455
|
+
class Rr extends P {
|
|
456
456
|
constructor(t = "request timed out", r) {
|
|
457
457
|
super(t, r), this.code = "ERR_JWKS_TIMEOUT";
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
|
|
461
|
-
class
|
|
460
|
+
Rr.code = "ERR_JWKS_TIMEOUT";
|
|
461
|
+
class Ct extends P {
|
|
462
462
|
constructor(t = "signature verification failed", r) {
|
|
463
463
|
super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
|
|
466
|
+
Ct.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
467
467
|
function j(e, t = "algorithm.name") {
|
|
468
468
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
|
469
469
|
}
|
|
470
470
|
function we(e, t) {
|
|
471
471
|
return e.name === t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Be(e) {
|
|
474
474
|
return parseInt(e.name.slice(4), 10);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Nr(e) {
|
|
477
477
|
switch (e) {
|
|
478
478
|
case "ES256":
|
|
479
479
|
return "P-256";
|
|
@@ -485,7 +485,7 @@ function xr(e) {
|
|
|
485
485
|
throw new Error("unreachable");
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function vr(e, t) {
|
|
489
489
|
if (t.length && !t.some((r) => e.usages.includes(r))) {
|
|
490
490
|
let r = "CryptoKey does not support this operation, its usages must include ";
|
|
491
491
|
if (t.length > 2) {
|
|
@@ -495,7 +495,7 @@ function Cr(e, t) {
|
|
|
495
495
|
throw new TypeError(r);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function xr(e, t, ...r) {
|
|
499
499
|
switch (t) {
|
|
500
500
|
case "HS256":
|
|
501
501
|
case "HS384":
|
|
@@ -503,7 +503,7 @@ function Or(e, t, ...r) {
|
|
|
503
503
|
if (!we(e.algorithm, "HMAC"))
|
|
504
504
|
throw j("HMAC");
|
|
505
505
|
const a = parseInt(t.slice(2), 10);
|
|
506
|
-
if (
|
|
506
|
+
if (Be(e.algorithm.hash) !== a)
|
|
507
507
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -513,7 +513,7 @@ function Or(e, t, ...r) {
|
|
|
513
513
|
if (!we(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
514
514
|
throw j("RSASSA-PKCS1-v1_5");
|
|
515
515
|
const a = parseInt(t.slice(2), 10);
|
|
516
|
-
if (
|
|
516
|
+
if (Be(e.algorithm.hash) !== a)
|
|
517
517
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
@@ -523,7 +523,7 @@ function Or(e, t, ...r) {
|
|
|
523
523
|
if (!we(e.algorithm, "RSA-PSS"))
|
|
524
524
|
throw j("RSA-PSS");
|
|
525
525
|
const a = parseInt(t.slice(2), 10);
|
|
526
|
-
if (
|
|
526
|
+
if (Be(e.algorithm.hash) !== a)
|
|
527
527
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
528
528
|
break;
|
|
529
529
|
}
|
|
@@ -537,7 +537,7 @@ function Or(e, t, ...r) {
|
|
|
537
537
|
case "ES512": {
|
|
538
538
|
if (!we(e.algorithm, "ECDSA"))
|
|
539
539
|
throw j("ECDSA");
|
|
540
|
-
const a =
|
|
540
|
+
const a = Nr(t);
|
|
541
541
|
if (e.algorithm.namedCurve !== a)
|
|
542
542
|
throw j(a, "algorithm.namedCurve");
|
|
543
543
|
break;
|
|
@@ -545,9 +545,9 @@ function Or(e, t, ...r) {
|
|
|
545
545
|
default:
|
|
546
546
|
throw new TypeError("CryptoKey does not support this operation");
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
vr(e, r);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Ot(e, t, ...r) {
|
|
551
551
|
var a;
|
|
552
552
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
553
553
|
const n = r.pop();
|
|
@@ -555,11 +555,11 @@ function Dt(e, t, ...r) {
|
|
|
555
555
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
556
556
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
|
557
557
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
560
|
-
return
|
|
558
|
+
const st = (e, ...t) => Ot("Key must be ", e, ...t);
|
|
559
|
+
function Pt(e, t, ...r) {
|
|
560
|
+
return Ot(`Key for the ${e} algorithm must be `, t, ...r);
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = ["CryptoKey"], Cr = (...e) => {
|
|
563
563
|
const t = e.filter(Boolean);
|
|
564
564
|
if (t.length === 0 || t.length === 1)
|
|
565
565
|
return !0;
|
|
@@ -578,11 +578,11 @@ const $t = (e) => Ct(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
|
|
|
578
578
|
}
|
|
579
579
|
return !0;
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function Or(e) {
|
|
582
582
|
return typeof e == "object" && e !== null;
|
|
583
583
|
}
|
|
584
584
|
function he(e) {
|
|
585
|
-
if (!
|
|
585
|
+
if (!Or(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
586
586
|
return !1;
|
|
587
587
|
if (Object.getPrototypeOf(e) === null)
|
|
588
588
|
return !0;
|
|
@@ -591,7 +591,7 @@ function he(e) {
|
|
|
591
591
|
t = Object.getPrototypeOf(t);
|
|
592
592
|
return Object.getPrototypeOf(e) === t;
|
|
593
593
|
}
|
|
594
|
-
const
|
|
594
|
+
const Pr = (e, t) => {
|
|
595
595
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
|
596
596
|
const { modulusLength: r } = t.algorithm;
|
|
597
597
|
if (typeof r != "number" || r < 2048)
|
|
@@ -601,16 +601,16 @@ const Lr = (e, t) => {
|
|
|
601
601
|
function pe(e) {
|
|
602
602
|
return he(e) && typeof e.kty == "string";
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Dr(e) {
|
|
605
605
|
return e.kty !== "oct" && typeof e.d == "string";
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Lr(e) {
|
|
608
608
|
return e.kty !== "oct" && typeof e.d > "u";
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function $r(e) {
|
|
611
611
|
return pe(e) && e.kty === "oct" && typeof e.k == "string";
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Mr(e) {
|
|
614
614
|
let t, r;
|
|
615
615
|
switch (e.kty) {
|
|
616
616
|
case "RSA": {
|
|
@@ -682,43 +682,43 @@ function Kr(e) {
|
|
|
682
682
|
}
|
|
683
683
|
return { algorithm: t, keyUsages: r };
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Lt = async (e) => {
|
|
686
686
|
if (!e.alg)
|
|
687
687
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
688
|
-
const { algorithm: t, keyUsages: r } =
|
|
688
|
+
const { algorithm: t, keyUsages: r } = Mr(e), a = [
|
|
689
689
|
t,
|
|
690
690
|
e.ext ?? !1,
|
|
691
691
|
e.key_ops ?? r
|
|
692
692
|
], n = { ...e };
|
|
693
|
-
return delete n.alg, delete n.use,
|
|
694
|
-
},
|
|
693
|
+
return delete n.alg, delete n.use, $e.subtle.importKey("jwk", n, ...a);
|
|
694
|
+
}, $t = (e) => te(e);
|
|
695
695
|
let oe, se;
|
|
696
|
-
const
|
|
696
|
+
const Mt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = async (e, t, r, a, n = !1) => {
|
|
697
697
|
let o = e.get(t);
|
|
698
698
|
if (o != null && o[a])
|
|
699
699
|
return o[a];
|
|
700
|
-
const s = await
|
|
700
|
+
const s = await Lt({ ...r, alg: a });
|
|
701
701
|
return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
|
|
702
|
-
},
|
|
703
|
-
if (
|
|
702
|
+
}, Ur = (e, t) => {
|
|
703
|
+
if (Mt(e)) {
|
|
704
704
|
let r = e.export({ format: "jwk" });
|
|
705
|
-
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ?
|
|
705
|
+
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? $t(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, r, t));
|
|
706
706
|
}
|
|
707
707
|
return pe(e) ? e.k ? te(e.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, e, t, !0)) : e;
|
|
708
|
-
},
|
|
709
|
-
if (
|
|
708
|
+
}, Kr = (e, t) => {
|
|
709
|
+
if (Mt(e)) {
|
|
710
710
|
let r = e.export({ format: "jwk" });
|
|
711
|
-
return r.k ?
|
|
711
|
+
return r.k ? $t(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, r, t));
|
|
712
712
|
}
|
|
713
713
|
return pe(e) ? e.k ? te(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, e, t, !0)) : e;
|
|
714
|
-
},
|
|
714
|
+
}, Hr = { normalizePublicKey: Ur, normalizePrivateKey: Kr }, ee = (e, t, r = 0) => {
|
|
715
715
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
|
716
716
|
const a = e.indexOf(t[0], r);
|
|
717
717
|
if (a === -1)
|
|
718
718
|
return !1;
|
|
719
719
|
const n = e.subarray(a, a + t.length);
|
|
720
720
|
return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) || ee(e, t, a + 1);
|
|
721
|
-
},
|
|
721
|
+
}, it = (e) => {
|
|
722
722
|
switch (!0) {
|
|
723
723
|
case ee(e, [42, 134, 72, 206, 61, 3, 1, 7]):
|
|
724
724
|
return "P-256";
|
|
@@ -737,7 +737,7 @@ const Kt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
737
737
|
default:
|
|
738
738
|
throw new W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
739
739
|
}
|
|
740
|
-
},
|
|
740
|
+
}, Wr = async (e, t, r, a, n) => {
|
|
741
741
|
let o, s;
|
|
742
742
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((d) => d.charCodeAt(0)));
|
|
743
743
|
switch (a) {
|
|
@@ -773,24 +773,24 @@ const Kt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
773
773
|
case "ECDH-ES+A128KW":
|
|
774
774
|
case "ECDH-ES+A192KW":
|
|
775
775
|
case "ECDH-ES+A256KW": {
|
|
776
|
-
const d =
|
|
776
|
+
const d = it(i);
|
|
777
777
|
o = d.startsWith("P-") ? { name: "ECDH", namedCurve: d } : { name: d }, s = [];
|
|
778
778
|
break;
|
|
779
779
|
}
|
|
780
780
|
case "EdDSA":
|
|
781
|
-
o = { name:
|
|
781
|
+
o = { name: it(i) }, s = ["verify"];
|
|
782
782
|
break;
|
|
783
783
|
default:
|
|
784
784
|
throw new W('Invalid or unsupported "alg" (Algorithm) value');
|
|
785
785
|
}
|
|
786
|
-
return
|
|
787
|
-
},
|
|
788
|
-
async function
|
|
786
|
+
return $e.subtle.importKey(t, i, o, !1, s);
|
|
787
|
+
}, Br = (e, t, r) => Wr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
788
|
+
async function Vr(e, t, r) {
|
|
789
789
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
790
790
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
791
|
-
return
|
|
791
|
+
return Br(e, t);
|
|
792
792
|
}
|
|
793
|
-
async function
|
|
793
|
+
async function Jr(e, t) {
|
|
794
794
|
if (!he(e))
|
|
795
795
|
throw new TypeError("JWK must be an object");
|
|
796
796
|
switch (t || (t = e.alg), e.kty) {
|
|
@@ -803,12 +803,12 @@ async function Yr(e, t) {
|
|
|
803
803
|
throw new W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
804
804
|
case "EC":
|
|
805
805
|
case "OKP":
|
|
806
|
-
return
|
|
806
|
+
return Lt({ ...e, alg: t });
|
|
807
807
|
default:
|
|
808
808
|
throw new W('Unsupported "kty" (Key Type) Parameter value');
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag],
|
|
811
|
+
const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) => {
|
|
812
812
|
var a, n;
|
|
813
813
|
if (t.use !== void 0 && t.use !== "sig")
|
|
814
814
|
throw new TypeError("Invalid key for this operation, when present its use must be sig");
|
|
@@ -817,32 +817,32 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
|
|
|
817
817
|
if (t.alg !== void 0 && t.alg !== e)
|
|
818
818
|
throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
|
|
819
819
|
return !0;
|
|
820
|
-
},
|
|
820
|
+
}, Gr = (e, t, r, a) => {
|
|
821
821
|
if (!(t instanceof Uint8Array)) {
|
|
822
822
|
if (a && pe(t)) {
|
|
823
|
-
if (
|
|
823
|
+
if ($r(t) && Xe(e, t, r))
|
|
824
824
|
return;
|
|
825
825
|
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');
|
|
826
826
|
}
|
|
827
|
-
if (
|
|
828
|
-
throw new TypeError(
|
|
827
|
+
if (!Dt(t))
|
|
828
|
+
throw new TypeError(Pt(e, t, ...xe, "Uint8Array", a ? "JSON Web Key" : null));
|
|
829
829
|
if (t.type !== "secret")
|
|
830
830
|
throw new TypeError(`${ue(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, Yr = (e, t, r, a) => {
|
|
833
833
|
if (a && pe(t))
|
|
834
834
|
switch (r) {
|
|
835
835
|
case "sign":
|
|
836
|
-
if (
|
|
836
|
+
if (Dr(t) && Xe(e, t, r))
|
|
837
837
|
return;
|
|
838
838
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
839
839
|
case "verify":
|
|
840
|
-
if (
|
|
840
|
+
if (Lr(t) && Xe(e, t, r))
|
|
841
841
|
return;
|
|
842
842
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
843
843
|
}
|
|
844
|
-
if (
|
|
845
|
-
throw new TypeError(
|
|
844
|
+
if (!Dt(t))
|
|
845
|
+
throw new TypeError(Pt(e, t, ...xe, a ? "JSON Web Key" : null));
|
|
846
846
|
if (t.type === "secret")
|
|
847
847
|
throw new TypeError(`${ue(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
848
848
|
if (r === "sign" && t.type === "public")
|
|
@@ -854,12 +854,12 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
|
|
|
854
854
|
if (t.algorithm && r === "encrypt" && t.type === "private")
|
|
855
855
|
throw new TypeError(`${ue(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
856
856
|
};
|
|
857
|
-
function
|
|
858
|
-
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ?
|
|
857
|
+
function Ut(e, t, r, a) {
|
|
858
|
+
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Gr(t, r, a, e) : Yr(t, r, a, e);
|
|
859
859
|
}
|
|
860
|
-
|
|
861
|
-
const
|
|
862
|
-
function
|
|
860
|
+
Ut.bind(void 0, !1);
|
|
861
|
+
const ct = Ut.bind(void 0, !0);
|
|
862
|
+
function Fr(e, t, r, a, n) {
|
|
863
863
|
if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
|
|
864
864
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
865
865
|
if (!a || a.crit === void 0)
|
|
@@ -878,13 +878,13 @@ function zr(e, t, r, a, n) {
|
|
|
878
878
|
}
|
|
879
879
|
return new Set(a.crit);
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const jr = (e, t) => {
|
|
882
882
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
|
883
883
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
|
884
884
|
if (t)
|
|
885
885
|
return new Set(t);
|
|
886
886
|
};
|
|
887
|
-
function
|
|
887
|
+
function zr(e, t) {
|
|
888
888
|
const r = `SHA-${e.slice(-3)}`;
|
|
889
889
|
switch (e) {
|
|
890
890
|
case "HS256":
|
|
@@ -909,27 +909,27 @@ function Xr(e, t) {
|
|
|
909
909
|
throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
async function
|
|
913
|
-
if (t = await
|
|
914
|
-
return
|
|
912
|
+
async function qr(e, t, r) {
|
|
913
|
+
if (t = await Hr.normalizePublicKey(t, e), vt(t))
|
|
914
|
+
return xr(t, e, r), t;
|
|
915
915
|
if (t instanceof Uint8Array) {
|
|
916
916
|
if (!e.startsWith("HS"))
|
|
917
|
-
throw new TypeError(
|
|
918
|
-
return
|
|
917
|
+
throw new TypeError(st(t, ...xe));
|
|
918
|
+
return $e.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
919
919
|
}
|
|
920
|
-
throw new TypeError(
|
|
920
|
+
throw new TypeError(st(t, ...xe, "Uint8Array", "JSON Web Key"));
|
|
921
921
|
}
|
|
922
|
-
const
|
|
923
|
-
const n = await
|
|
924
|
-
|
|
925
|
-
const o =
|
|
922
|
+
const Xr = async (e, t, r, a) => {
|
|
923
|
+
const n = await qr(e, t, "verify");
|
|
924
|
+
Pr(e, n);
|
|
925
|
+
const o = zr(e, n.algorithm);
|
|
926
926
|
try {
|
|
927
|
-
return await
|
|
927
|
+
return await $e.subtle.verify(o, n, r, a);
|
|
928
928
|
} catch {
|
|
929
929
|
return !1;
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
async function
|
|
932
|
+
async function Qr(e, t, r) {
|
|
933
933
|
if (!he(e))
|
|
934
934
|
throw new _("Flattened JWS must be an object");
|
|
935
935
|
if (e.protected === void 0 && e.header === void 0)
|
|
@@ -950,37 +950,37 @@ async function ea(e, t, r) {
|
|
|
950
950
|
} catch {
|
|
951
951
|
throw new _("JWS Protected Header is invalid");
|
|
952
952
|
}
|
|
953
|
-
if (!
|
|
953
|
+
if (!Cr(a, e.header))
|
|
954
954
|
throw new _("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
955
955
|
const n = {
|
|
956
956
|
...a,
|
|
957
957
|
...e.header
|
|
958
|
-
}, o =
|
|
958
|
+
}, o = Fr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
959
959
|
let s = !0;
|
|
960
960
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
961
961
|
throw new _('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
962
962
|
const { alg: i } = n;
|
|
963
963
|
if (typeof i != "string" || !i)
|
|
964
964
|
throw new _('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
965
|
-
const d =
|
|
965
|
+
const d = jr("algorithms", r.algorithms);
|
|
966
966
|
if (d && !d.has(i))
|
|
967
|
-
throw new
|
|
967
|
+
throw new xt('"alg" (Algorithm) Header Parameter value not allowed');
|
|
968
968
|
if (s) {
|
|
969
969
|
if (typeof e.payload != "string")
|
|
970
970
|
throw new _("JWS Payload must be a string");
|
|
971
971
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
972
972
|
throw new _("JWS Payload must be a string or an Uint8Array instance");
|
|
973
973
|
let h = !1;
|
|
974
|
-
typeof t == "function" ? (t = await t(a, e), h = !0,
|
|
975
|
-
const f =
|
|
974
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, ct(i, t, "verify"), pe(t) && (t = await Jr(t, i))) : ct(i, t, "verify");
|
|
975
|
+
const f = Er(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
|
|
976
976
|
let u;
|
|
977
977
|
try {
|
|
978
978
|
u = te(e.signature);
|
|
979
979
|
} catch {
|
|
980
980
|
throw new _("Failed to base64url decode the signature");
|
|
981
981
|
}
|
|
982
|
-
if (!await
|
|
983
|
-
throw new
|
|
982
|
+
if (!await Xr(i, t, u, f))
|
|
983
|
+
throw new Ct();
|
|
984
984
|
let c;
|
|
985
985
|
if (s)
|
|
986
986
|
try {
|
|
@@ -992,17 +992,17 @@ async function ea(e, t, r) {
|
|
|
992
992
|
const m = { payload: c };
|
|
993
993
|
return e.protected !== void 0 && (m.protectedHeader = a), e.header !== void 0 && (m.unprotectedHeader = e.header), h ? { ...m, key: t } : m;
|
|
994
994
|
}
|
|
995
|
-
async function
|
|
995
|
+
async function Zr(e, t, r) {
|
|
996
996
|
if (e instanceof Uint8Array && (e = ye.decode(e)), typeof e != "string")
|
|
997
997
|
throw new _("Compact JWS must be a string or Uint8Array");
|
|
998
998
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
999
999
|
if (s !== 3)
|
|
1000
1000
|
throw new _("Invalid Compact JWS");
|
|
1001
|
-
const i = await
|
|
1001
|
+
const i = await Qr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
1002
1002
|
return typeof t == "function" ? { ...d, key: i.key } : d;
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1005
|
-
const t =
|
|
1004
|
+
const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, tt = Ht * 24, ta = tt * 7, ra = tt * 365.25, aa = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, lt = (e) => {
|
|
1005
|
+
const t = aa.exec(e);
|
|
1006
1006
|
if (!t || t[4] && t[1])
|
|
1007
1007
|
throw new TypeError("Invalid time period format");
|
|
1008
1008
|
const r = parseFloat(t[2]), a = t[3].toLowerCase();
|
|
@@ -1020,31 +1020,31 @@ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt
|
|
|
1020
1020
|
case "min":
|
|
1021
1021
|
case "mins":
|
|
1022
1022
|
case "m":
|
|
1023
|
-
n = Math.round(r *
|
|
1023
|
+
n = Math.round(r * Kt);
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "hour":
|
|
1026
1026
|
case "hours":
|
|
1027
1027
|
case "hr":
|
|
1028
1028
|
case "hrs":
|
|
1029
1029
|
case "h":
|
|
1030
|
-
n = Math.round(r *
|
|
1030
|
+
n = Math.round(r * Ht);
|
|
1031
1031
|
break;
|
|
1032
1032
|
case "day":
|
|
1033
1033
|
case "days":
|
|
1034
1034
|
case "d":
|
|
1035
|
-
n = Math.round(r *
|
|
1035
|
+
n = Math.round(r * tt);
|
|
1036
1036
|
break;
|
|
1037
1037
|
case "week":
|
|
1038
1038
|
case "weeks":
|
|
1039
1039
|
case "w":
|
|
1040
|
-
n = Math.round(r *
|
|
1040
|
+
n = Math.round(r * ta);
|
|
1041
1041
|
break;
|
|
1042
1042
|
default:
|
|
1043
|
-
n = Math.round(r *
|
|
1043
|
+
n = Math.round(r * ra);
|
|
1044
1044
|
break;
|
|
1045
1045
|
}
|
|
1046
1046
|
return t[1] === "-" || t[4] === "ago" ? -n : n;
|
|
1047
|
-
},
|
|
1047
|
+
}, dt = (e) => e.toLowerCase().replace(/^application\//, ""), na = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, oa = (e, t, r = {}) => {
|
|
1048
1048
|
let a;
|
|
1049
1049
|
try {
|
|
1050
1050
|
a = JSON.parse(ye.decode(t));
|
|
@@ -1053,7 +1053,7 @@ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt
|
|
|
1053
1053
|
if (!he(a))
|
|
1054
1054
|
throw new J("JWT Claims Set must be a top-level JSON object");
|
|
1055
1055
|
const { typ: n } = r;
|
|
1056
|
-
if (n && (typeof e.typ != "string" ||
|
|
1056
|
+
if (n && (typeof e.typ != "string" || dt(e.typ) !== dt(n)))
|
|
1057
1057
|
throw new H('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
1058
1058
|
const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge: h } = r, f = [...o];
|
|
1059
1059
|
h !== void 0 && f.push("iat"), d !== void 0 && f.push("aud"), i !== void 0 && f.push("sub"), s !== void 0 && f.push("iss");
|
|
@@ -1064,12 +1064,12 @@ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt
|
|
|
1064
1064
|
throw new H('unexpected "iss" claim value', a, "iss", "check_failed");
|
|
1065
1065
|
if (i && a.sub !== i)
|
|
1066
1066
|
throw new H('unexpected "sub" claim value', a, "sub", "check_failed");
|
|
1067
|
-
if (d && !
|
|
1067
|
+
if (d && !na(a.aud, typeof d == "string" ? [d] : d))
|
|
1068
1068
|
throw new H('unexpected "aud" claim value', a, "aud", "check_failed");
|
|
1069
1069
|
let u;
|
|
1070
1070
|
switch (typeof r.clockTolerance) {
|
|
1071
1071
|
case "string":
|
|
1072
|
-
u =
|
|
1072
|
+
u = lt(r.clockTolerance);
|
|
1073
1073
|
break;
|
|
1074
1074
|
case "number":
|
|
1075
1075
|
u = r.clockTolerance;
|
|
@@ -1080,7 +1080,7 @@ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt
|
|
|
1080
1080
|
default:
|
|
1081
1081
|
throw new TypeError("Invalid clockTolerance option type");
|
|
1082
1082
|
}
|
|
1083
|
-
const { currentDate: c } = r, m =
|
|
1083
|
+
const { currentDate: c } = r, m = ea(c || /* @__PURE__ */ new Date());
|
|
1084
1084
|
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
1085
1085
|
throw new H('"iat" claim must be a number', a, "iat", "invalid");
|
|
1086
1086
|
if (a.nbf !== void 0) {
|
|
@@ -1093,27 +1093,27 @@ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt
|
|
|
1093
1093
|
if (typeof a.exp != "number")
|
|
1094
1094
|
throw new H('"exp" claim must be a number', a, "exp", "invalid");
|
|
1095
1095
|
if (a.exp <= m - u)
|
|
1096
|
-
throw new
|
|
1096
|
+
throw new qe('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1097
1097
|
}
|
|
1098
1098
|
if (h) {
|
|
1099
|
-
const y = m - a.iat, w = typeof h == "number" ? h :
|
|
1099
|
+
const y = m - a.iat, w = typeof h == "number" ? h : lt(h);
|
|
1100
1100
|
if (y - u > w)
|
|
1101
|
-
throw new
|
|
1101
|
+
throw new qe('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1102
1102
|
if (y < 0 - u)
|
|
1103
1103
|
throw new H('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
|
1104
1104
|
}
|
|
1105
1105
|
return a;
|
|
1106
1106
|
};
|
|
1107
|
-
async function
|
|
1107
|
+
async function sa(e, t, r) {
|
|
1108
1108
|
var a;
|
|
1109
|
-
const n = await
|
|
1109
|
+
const n = await Zr(e, t, r);
|
|
1110
1110
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1111
1111
|
throw new J("JWTs MUST NOT use unencoded payload");
|
|
1112
|
-
const o = { payload:
|
|
1112
|
+
const o = { payload: oa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1113
1113
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1116
|
-
function
|
|
1115
|
+
const ia = te;
|
|
1116
|
+
function ca(e) {
|
|
1117
1117
|
if (typeof e != "string")
|
|
1118
1118
|
throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1119
1119
|
const { 1: t, length: r } = e.split(".");
|
|
@@ -1125,7 +1125,7 @@ function da(e) {
|
|
|
1125
1125
|
throw new J("JWTs must contain a payload");
|
|
1126
1126
|
let a;
|
|
1127
1127
|
try {
|
|
1128
|
-
a =
|
|
1128
|
+
a = ia(t);
|
|
1129
1129
|
} catch {
|
|
1130
1130
|
throw new J("Failed to base64url decode the payload");
|
|
1131
1131
|
}
|
|
@@ -1141,81 +1141,81 @@ function da(e) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
const ge = async (e) => {
|
|
1143
1143
|
try {
|
|
1144
|
-
const t = N.ALG, r = await
|
|
1145
|
-
return await
|
|
1144
|
+
const t = N.ALG, r = await Vr(br, t);
|
|
1145
|
+
return await sa(e, r, {
|
|
1146
1146
|
issuer: N.ISSUER
|
|
1147
1147
|
});
|
|
1148
1148
|
} catch {
|
|
1149
1149
|
return;
|
|
1150
1150
|
}
|
|
1151
|
-
},
|
|
1151
|
+
}, la = (e) => {
|
|
1152
1152
|
try {
|
|
1153
|
-
return
|
|
1153
|
+
return ca(e);
|
|
1154
1154
|
} catch {
|
|
1155
1155
|
return;
|
|
1156
1156
|
}
|
|
1157
1157
|
}, A = [];
|
|
1158
1158
|
for (let e = 0; e < 256; ++e)
|
|
1159
1159
|
A.push((e + 256).toString(16).slice(1));
|
|
1160
|
-
function
|
|
1160
|
+
function da(e, t = 0) {
|
|
1161
1161
|
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
1162
1162
|
}
|
|
1163
|
-
let
|
|
1164
|
-
const
|
|
1165
|
-
function
|
|
1166
|
-
if (!
|
|
1163
|
+
let Ve;
|
|
1164
|
+
const ua = new Uint8Array(16);
|
|
1165
|
+
function ma() {
|
|
1166
|
+
if (!Ve) {
|
|
1167
1167
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1168
1168
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1169
|
-
|
|
1169
|
+
Ve = crypto.getRandomValues.bind(crypto);
|
|
1170
1170
|
}
|
|
1171
|
-
return
|
|
1171
|
+
return Ve(ua);
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1174
|
-
function
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1173
|
+
const ha = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = { randomUUID: ha };
|
|
1174
|
+
function mt(e, t, r) {
|
|
1175
|
+
if (ut.randomUUID && !e)
|
|
1176
|
+
return ut.randomUUID();
|
|
1177
1177
|
e = e || {};
|
|
1178
|
-
const a = e.random || (e.rng ||
|
|
1179
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1178
|
+
const a = e.random || (e.rng || ma)();
|
|
1179
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, da(a);
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1181
|
+
const ht = globalThis.crypto, pa = (e) => `${mt()}${mt()}`.slice(0, e), fa = (e) => btoa(
|
|
1182
1182
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
1183
1183
|
);
|
|
1184
|
-
async function
|
|
1185
|
-
if (!
|
|
1184
|
+
async function ga(e) {
|
|
1185
|
+
if (!ht.subtle)
|
|
1186
1186
|
throw new Error(
|
|
1187
1187
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
1188
1188
|
);
|
|
1189
|
-
const t = new TextEncoder().encode(e), r = await
|
|
1190
|
-
return
|
|
1189
|
+
const t = new TextEncoder().encode(e), r = await ht.subtle.digest("SHA-256", t);
|
|
1190
|
+
return fa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
1191
1191
|
}
|
|
1192
|
-
async function
|
|
1193
|
-
const t =
|
|
1192
|
+
async function ya(e) {
|
|
1193
|
+
const t = pa(43), r = await ga(t);
|
|
1194
1194
|
return {
|
|
1195
1195
|
code_verifier: t,
|
|
1196
1196
|
code_challenge: r
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Wt(e, t) {
|
|
1200
1200
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
1201
1201
|
}
|
|
1202
|
-
const
|
|
1202
|
+
const pt = (e, t) => {
|
|
1203
1203
|
const r = JSON.stringify(
|
|
1204
1204
|
typeof t == "function" ? t() : t
|
|
1205
1205
|
);
|
|
1206
|
-
window.localStorage.setItem(e, r),
|
|
1207
|
-
},
|
|
1208
|
-
window.localStorage.removeItem(e),
|
|
1209
|
-
},
|
|
1210
|
-
function
|
|
1206
|
+
window.localStorage.setItem(e, r), Wt(e, r);
|
|
1207
|
+
}, ba = (e) => {
|
|
1208
|
+
window.localStorage.removeItem(e), Wt(e, null);
|
|
1209
|
+
}, ft = (e) => window.localStorage.getItem(e), Ea = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1210
|
+
function Ie({
|
|
1211
1211
|
key: e,
|
|
1212
1212
|
initialValue: t
|
|
1213
1213
|
}) {
|
|
1214
|
-
const r =
|
|
1214
|
+
const r = sr(Ea, () => ft(e)), a = q(
|
|
1215
1215
|
(s) => {
|
|
1216
1216
|
try {
|
|
1217
1217
|
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
1218
|
-
i == null ?
|
|
1218
|
+
i == null ? ba(e) : pt(e, i);
|
|
1219
1219
|
} catch (i) {
|
|
1220
1220
|
console.warn(i);
|
|
1221
1221
|
}
|
|
@@ -1228,7 +1228,7 @@ function Te({
|
|
|
1228
1228
|
}, [a]);
|
|
1229
1229
|
return Y(() => {
|
|
1230
1230
|
try {
|
|
1231
|
-
|
|
1231
|
+
ft(e) === null && typeof t < "u" && pt(e, t);
|
|
1232
1232
|
} catch (s) {
|
|
1233
1233
|
console.warn(s);
|
|
1234
1234
|
}
|
|
@@ -1237,33 +1237,28 @@ function Te({
|
|
|
1237
1237
|
const R = [];
|
|
1238
1238
|
for (let e = 0; e < 256; ++e)
|
|
1239
1239
|
R.push((e + 256).toString(16).slice(1));
|
|
1240
|
-
function
|
|
1240
|
+
function wa(e, t = 0) {
|
|
1241
1241
|
return (R[e[t + 0]] + R[e[t + 1]] + R[e[t + 2]] + R[e[t + 3]] + "-" + R[e[t + 4]] + R[e[t + 5]] + "-" + R[e[t + 6]] + R[e[t + 7]] + "-" + R[e[t + 8]] + R[e[t + 9]] + "-" + R[e[t + 10]] + R[e[t + 11]] + R[e[t + 12]] + R[e[t + 13]] + R[e[t + 14]] + R[e[t + 15]]).toLowerCase();
|
|
1242
1242
|
}
|
|
1243
|
-
let
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1246
|
-
if (!
|
|
1243
|
+
let Je;
|
|
1244
|
+
const Ia = new Uint8Array(16);
|
|
1245
|
+
function Ta() {
|
|
1246
|
+
if (!Je) {
|
|
1247
1247
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1248
1248
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1249
|
-
|
|
1249
|
+
Je = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1251
|
+
return Je(Ia);
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1254
|
-
function
|
|
1255
|
-
if (
|
|
1256
|
-
return
|
|
1253
|
+
const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gt = { randomUUID: Sa };
|
|
1254
|
+
function Ge(e, t, r) {
|
|
1255
|
+
if (gt.randomUUID && !e)
|
|
1256
|
+
return gt.randomUUID();
|
|
1257
1257
|
e = e || {};
|
|
1258
|
-
const a = e.random || (e.rng ||
|
|
1259
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1260
|
-
}
|
|
1261
|
-
const ie = "Your session has expired. For your security, please log in again to continue.",
|
|
1262
|
-
var It;
|
|
1263
|
-
const Oe = {
|
|
1264
|
-
dev: ((It = process == null ? void 0 : process.env) == null ? void 0 : It.PUBLIC_AUTH_SERVER_URL) || "https://auth.gizmette.local.com:3003",
|
|
1265
|
-
prod: "https://mylogin.gizmette.com/auth"
|
|
1266
|
-
}, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Jt = "LOGOUT", be = "success", F = "failure", Gt = "include", Yt = "POST", Ft = "application/json", Se = {
|
|
1258
|
+
const a = e.random || (e.rng || Ta)();
|
|
1259
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, wa(a);
|
|
1260
|
+
}
|
|
1261
|
+
const ie = "Your session has expired. For your security, please log in again to continue.", _a = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", ka = "Error getting access token, please re-authenticate.", Aa = "You forgot to wrap your component in <AuthProvider>.", Te = "@@auth@@", fe = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", F = "failure", Vt = "include", Jt = "POST", Gt = "application/json", Se = {
|
|
1267
1262
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1268
1263
|
$clientId: String!,
|
|
1269
1264
|
$username: String!,
|
|
@@ -1368,22 +1363,19 @@ const Oe = {
|
|
|
1368
1363
|
params: a = {}
|
|
1369
1364
|
}) => {
|
|
1370
1365
|
try {
|
|
1371
|
-
const n = `Bearer ${e}`, o = await fetch(
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
})
|
|
1385
|
-
}
|
|
1386
|
-
);
|
|
1366
|
+
const n = `Bearer ${e}`, o = await fetch(`${Yt()}/graphql`, {
|
|
1367
|
+
credentials: Vt,
|
|
1368
|
+
method: Jt,
|
|
1369
|
+
headers: {
|
|
1370
|
+
authorization: n,
|
|
1371
|
+
"Content-Type": Gt,
|
|
1372
|
+
[Nt.CLIENT_ID]: `${r}`
|
|
1373
|
+
},
|
|
1374
|
+
body: JSON.stringify({
|
|
1375
|
+
query: t.schema,
|
|
1376
|
+
variables: a
|
|
1377
|
+
})
|
|
1378
|
+
});
|
|
1387
1379
|
if (o.status !== 200)
|
|
1388
1380
|
return { status: F, data: [] };
|
|
1389
1381
|
const { data: s } = await o.json();
|
|
@@ -1394,24 +1386,21 @@ const Oe = {
|
|
|
1394
1386
|
} catch (n) {
|
|
1395
1387
|
return console.error(n), { status: F, data: [] };
|
|
1396
1388
|
}
|
|
1397
|
-
},
|
|
1389
|
+
}, Me = async ({
|
|
1398
1390
|
type: e,
|
|
1399
1391
|
clientId: t,
|
|
1400
1392
|
params: r = {}
|
|
1401
1393
|
}) => {
|
|
1402
1394
|
try {
|
|
1403
|
-
const a = await fetch(
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
body: JSON.stringify(r)
|
|
1413
|
-
}
|
|
1414
|
-
);
|
|
1395
|
+
const a = await fetch(`${Yt()}/${e}`, {
|
|
1396
|
+
credentials: Vt,
|
|
1397
|
+
method: Jt,
|
|
1398
|
+
headers: {
|
|
1399
|
+
"Content-Type": Gt,
|
|
1400
|
+
[Nt.CLIENT_ID]: `${t}`
|
|
1401
|
+
},
|
|
1402
|
+
body: JSON.stringify(r)
|
|
1403
|
+
});
|
|
1415
1404
|
if (a.status !== 200)
|
|
1416
1405
|
return { status: F, data: [] };
|
|
1417
1406
|
const { data: n } = await a.json();
|
|
@@ -1422,21 +1411,24 @@ const Oe = {
|
|
|
1422
1411
|
} catch (a) {
|
|
1423
1412
|
return console.error(a), { status: F, data: [] };
|
|
1424
1413
|
}
|
|
1425
|
-
},
|
|
1414
|
+
}, Ra = process.env.NODE_ENV === "production", Na = !Ra, Yt = () => {
|
|
1415
|
+
var e, t;
|
|
1416
|
+
return Na ? process && ((e = process == null ? void 0 : process.env) != null && e.PUBLIC_AUTH_SERVER_URL) ? (t = process == null ? void 0 : process.env) == null ? void 0 : t.PUBLIC_AUTH_SERVER_URL : "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth";
|
|
1417
|
+
}, Ft = {
|
|
1426
1418
|
isLoading: !0,
|
|
1427
1419
|
isAuthenticated: !1,
|
|
1428
1420
|
user: void 0,
|
|
1429
1421
|
logoutReason: "",
|
|
1430
1422
|
debug: !1,
|
|
1431
1423
|
authenticationType: ""
|
|
1432
|
-
},
|
|
1424
|
+
}, va = (e) => {
|
|
1433
1425
|
try {
|
|
1434
|
-
const t =
|
|
1426
|
+
const t = la(e);
|
|
1435
1427
|
return t ? t[N.USER_ID_KEY] : "";
|
|
1436
1428
|
} catch {
|
|
1437
1429
|
return "";
|
|
1438
1430
|
}
|
|
1439
|
-
},
|
|
1431
|
+
}, xa = async ({
|
|
1440
1432
|
userId: e,
|
|
1441
1433
|
clientId: t,
|
|
1442
1434
|
domain: r,
|
|
@@ -1445,8 +1437,8 @@ const Oe = {
|
|
|
1445
1437
|
var n;
|
|
1446
1438
|
try {
|
|
1447
1439
|
return {
|
|
1448
|
-
status: ((n = await
|
|
1449
|
-
type:
|
|
1440
|
+
status: ((n = await Me({
|
|
1441
|
+
type: Le.LOGOUT,
|
|
1450
1442
|
clientId: t,
|
|
1451
1443
|
params: {
|
|
1452
1444
|
userId: e,
|
|
@@ -1460,7 +1452,7 @@ const Oe = {
|
|
|
1460
1452
|
status: F
|
|
1461
1453
|
};
|
|
1462
1454
|
}
|
|
1463
|
-
},
|
|
1455
|
+
}, Ca = async ({
|
|
1464
1456
|
username: e,
|
|
1465
1457
|
password: t,
|
|
1466
1458
|
clientId: r,
|
|
@@ -1474,8 +1466,8 @@ const Oe = {
|
|
|
1474
1466
|
}) => {
|
|
1475
1467
|
var f;
|
|
1476
1468
|
try {
|
|
1477
|
-
const u = await
|
|
1478
|
-
type:
|
|
1469
|
+
const u = await Me({
|
|
1470
|
+
type: Le.LOGIN,
|
|
1479
1471
|
clientId: r,
|
|
1480
1472
|
params: {
|
|
1481
1473
|
type: n || me.ID_AND_ACCESS_TOKEN,
|
|
@@ -1504,15 +1496,15 @@ const Oe = {
|
|
|
1504
1496
|
status: !1
|
|
1505
1497
|
};
|
|
1506
1498
|
}
|
|
1507
|
-
},
|
|
1499
|
+
}, Oa = async ({
|
|
1508
1500
|
nonce: e,
|
|
1509
1501
|
clientId: t,
|
|
1510
1502
|
code_challenge: r
|
|
1511
1503
|
}) => {
|
|
1512
1504
|
var a;
|
|
1513
1505
|
try {
|
|
1514
|
-
const n = await
|
|
1515
|
-
type:
|
|
1506
|
+
const n = await Me({
|
|
1507
|
+
type: Le.CODE,
|
|
1516
1508
|
clientId: t,
|
|
1517
1509
|
params: {
|
|
1518
1510
|
type: me.CODE,
|
|
@@ -1533,7 +1525,7 @@ const Oe = {
|
|
|
1533
1525
|
data: ""
|
|
1534
1526
|
};
|
|
1535
1527
|
}
|
|
1536
|
-
},
|
|
1528
|
+
}, Pa = async ({
|
|
1537
1529
|
clientId: e,
|
|
1538
1530
|
userId: t,
|
|
1539
1531
|
nonce: r,
|
|
@@ -1543,8 +1535,8 @@ const Oe = {
|
|
|
1543
1535
|
}) => {
|
|
1544
1536
|
var s;
|
|
1545
1537
|
try {
|
|
1546
|
-
const i = await
|
|
1547
|
-
type:
|
|
1538
|
+
const i = await Me({
|
|
1539
|
+
type: Le.REFRESH,
|
|
1548
1540
|
clientId: e,
|
|
1549
1541
|
params: {
|
|
1550
1542
|
type: me.REFRESH_TOKEN,
|
|
@@ -1569,9 +1561,9 @@ const Oe = {
|
|
|
1569
1561
|
};
|
|
1570
1562
|
}
|
|
1571
1563
|
};
|
|
1572
|
-
class
|
|
1564
|
+
class Da {
|
|
1573
1565
|
constructor(t = null, r = null) {
|
|
1574
|
-
|
|
1566
|
+
He(this, "refreshTokenPromise", null), He(this, "accessToken"), He(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
1575
1567
|
}
|
|
1576
1568
|
async refreshtoken({
|
|
1577
1569
|
clientId: t,
|
|
@@ -1599,7 +1591,7 @@ class La {
|
|
|
1599
1591
|
}) {
|
|
1600
1592
|
const o = await ge(this.refreshToken);
|
|
1601
1593
|
if (o && o.payload[N.USER_ID_KEY] !== "") {
|
|
1602
|
-
const s = await
|
|
1594
|
+
const s = await Pa({
|
|
1603
1595
|
clientId: t,
|
|
1604
1596
|
userId: r,
|
|
1605
1597
|
nonce: a,
|
|
@@ -1620,14 +1612,14 @@ class La {
|
|
|
1620
1612
|
};
|
|
1621
1613
|
}
|
|
1622
1614
|
}
|
|
1623
|
-
const
|
|
1615
|
+
const La = (e) => q(
|
|
1624
1616
|
(...t) => {
|
|
1625
1617
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1626
1618
|
},
|
|
1627
1619
|
[e]
|
|
1628
1620
|
), de = () => {
|
|
1629
|
-
throw new Error(
|
|
1630
|
-
},
|
|
1621
|
+
throw new Error(Aa);
|
|
1622
|
+
}, jt = or({
|
|
1631
1623
|
isAuthenticated: !1,
|
|
1632
1624
|
isLoading: !1,
|
|
1633
1625
|
login: de,
|
|
@@ -1638,11 +1630,11 @@ const $a = (e) => q(
|
|
|
1638
1630
|
loginWithPasskey: de,
|
|
1639
1631
|
logoutReason: "",
|
|
1640
1632
|
authenticationType: ""
|
|
1641
|
-
}),
|
|
1642
|
-
state:
|
|
1633
|
+
}), $a = X.createContext({
|
|
1634
|
+
state: Ft,
|
|
1643
1635
|
dispatch: () => {
|
|
1644
1636
|
}
|
|
1645
|
-
}),
|
|
1637
|
+
}), Ma = (e, t) => (t == null ? void 0 : t.type) === fe ? {
|
|
1646
1638
|
...e,
|
|
1647
1639
|
isLoading: t.payload.isLoading
|
|
1648
1640
|
} : (t == null ? void 0 : t.type) === ke ? {
|
|
@@ -1652,34 +1644,34 @@ const $a = (e) => q(
|
|
|
1652
1644
|
user: t.payload.user,
|
|
1653
1645
|
authenticationType: t.payload.authenticationType,
|
|
1654
1646
|
logoutReason: ""
|
|
1655
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1647
|
+
} : (t == null ? void 0 : t.type) === Bt ? {
|
|
1656
1648
|
...e,
|
|
1657
1649
|
isLoading: !1,
|
|
1658
1650
|
isAuthenticated: !1,
|
|
1659
1651
|
user: void 0,
|
|
1660
1652
|
authenticationType: "",
|
|
1661
1653
|
logoutReason: t.payload.logoutReason
|
|
1662
|
-
} : e,
|
|
1654
|
+
} : e, Ua = ({
|
|
1663
1655
|
children: e,
|
|
1664
1656
|
sessionExpiration: t,
|
|
1665
1657
|
clientId: r,
|
|
1666
1658
|
domain: a = "",
|
|
1667
1659
|
debug: n = !1
|
|
1668
1660
|
}) => {
|
|
1669
|
-
const [o, s] =
|
|
1670
|
-
...
|
|
1661
|
+
const [o, s] = It(Ma, {
|
|
1662
|
+
...Ft,
|
|
1671
1663
|
debug: n
|
|
1672
|
-
}), i =
|
|
1673
|
-
key: `${
|
|
1674
|
-
}), [c, m, , y] =
|
|
1675
|
-
key: `${
|
|
1676
|
-
}), [w,
|
|
1664
|
+
}), i = La(n), d = x(!1), [h, f, , u] = Ie({
|
|
1665
|
+
key: `${Te}::${r}::@@user@@`
|
|
1666
|
+
}), [c, m, , y] = Ie({
|
|
1667
|
+
key: `${Te}::${r}::@@access@@`
|
|
1668
|
+
}), [w, I, , k] = Ie(
|
|
1677
1669
|
{
|
|
1678
|
-
key: `${
|
|
1670
|
+
key: `${Te}::${r}::@@refresh@@`
|
|
1679
1671
|
}
|
|
1680
|
-
), [Q, L, , Z] =
|
|
1681
|
-
key: `${
|
|
1682
|
-
}), $ = new
|
|
1672
|
+
), [Q, L, , Z] = Ie({
|
|
1673
|
+
key: `${Te}::${r}::@@nonce@@`
|
|
1674
|
+
}), $ = new Da(c, w), B = q(() => {
|
|
1683
1675
|
i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
|
|
1684
1676
|
}, [
|
|
1685
1677
|
y,
|
|
@@ -1693,7 +1685,7 @@ const $a = (e) => q(
|
|
|
1693
1685
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1694
1686
|
g
|
|
1695
1687
|
), s({
|
|
1696
|
-
type:
|
|
1688
|
+
type: Bt,
|
|
1697
1689
|
payload: {
|
|
1698
1690
|
logoutReason: g || ie
|
|
1699
1691
|
}
|
|
@@ -1703,10 +1695,10 @@ const $a = (e) => q(
|
|
|
1703
1695
|
), S = q(
|
|
1704
1696
|
async (g) => {
|
|
1705
1697
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1706
|
-
const { user: E } = o, b = (E == null ? void 0 : E.userId) ||
|
|
1698
|
+
const { user: E } = o, b = (E == null ? void 0 : E.userId) || va(h);
|
|
1707
1699
|
b || i(
|
|
1708
1700
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1709
|
-
), await
|
|
1701
|
+
), await xa({
|
|
1710
1702
|
userId: b,
|
|
1711
1703
|
clientId: r,
|
|
1712
1704
|
domain: a,
|
|
@@ -1742,27 +1734,27 @@ const $a = (e) => q(
|
|
|
1742
1734
|
}, [o.isLoading, h, S, i]);
|
|
1743
1735
|
const M = async (g, E) => {
|
|
1744
1736
|
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1745
|
-
const b =
|
|
1737
|
+
const b = Ge();
|
|
1746
1738
|
L(b), i("login: Logging in with password");
|
|
1747
|
-
const { code_verifier: ae, code_challenge:
|
|
1739
|
+
const { code_verifier: ae, code_challenge: nr } = await ya(), ot = await Oa({
|
|
1748
1740
|
nonce: b,
|
|
1749
1741
|
clientId: r,
|
|
1750
|
-
code_challenge:
|
|
1742
|
+
code_challenge: nr
|
|
1751
1743
|
});
|
|
1752
|
-
if (
|
|
1753
|
-
const ne = await
|
|
1744
|
+
if (ot.status) {
|
|
1745
|
+
const ne = await Ca({
|
|
1754
1746
|
username: g,
|
|
1755
1747
|
password: E,
|
|
1756
1748
|
clientId: r,
|
|
1757
1749
|
sessionExpiration: t,
|
|
1758
1750
|
nonce: b,
|
|
1759
1751
|
type: me.CODE,
|
|
1760
|
-
code:
|
|
1752
|
+
code: ot.data,
|
|
1761
1753
|
code_verifier: ae,
|
|
1762
1754
|
domain: a,
|
|
1763
1755
|
ua: navigator.userAgent
|
|
1764
1756
|
});
|
|
1765
|
-
return ne.status ? (f(ne.idToken), m(ne.accessToken),
|
|
1757
|
+
return ne.status ? (f(ne.idToken), m(ne.accessToken), I(ne.refreshToken), s({
|
|
1766
1758
|
type: ke,
|
|
1767
1759
|
payload: {
|
|
1768
1760
|
authenticationType: me.CODE,
|
|
@@ -1772,12 +1764,12 @@ const $a = (e) => q(
|
|
|
1772
1764
|
email: ne.email
|
|
1773
1765
|
}
|
|
1774
1766
|
}
|
|
1775
|
-
}), !0) : (U(
|
|
1767
|
+
}), !0) : (U(Ye), !1);
|
|
1776
1768
|
}
|
|
1777
1769
|
return !1;
|
|
1778
1770
|
}, K = async (g) => {
|
|
1779
|
-
g == null || g.preventDefault(), await S(
|
|
1780
|
-
},
|
|
1771
|
+
g == null || g.preventDefault(), await S(_a);
|
|
1772
|
+
}, T = async () => {
|
|
1781
1773
|
const { isAuthenticated: g, user: E } = o;
|
|
1782
1774
|
try {
|
|
1783
1775
|
if (g && E && E.userId) {
|
|
@@ -1794,7 +1786,7 @@ const $a = (e) => q(
|
|
|
1794
1786
|
nonce: Q,
|
|
1795
1787
|
domain: a
|
|
1796
1788
|
});
|
|
1797
|
-
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken),
|
|
1789
|
+
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), I(b.newRefreshToken), b.newAccessToken) : (i(
|
|
1798
1790
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1799
1791
|
), await S(ie), "");
|
|
1800
1792
|
}
|
|
@@ -1804,7 +1796,7 @@ const $a = (e) => q(
|
|
|
1804
1796
|
} catch {
|
|
1805
1797
|
return i(
|
|
1806
1798
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1807
|
-
), await S(
|
|
1799
|
+
), await S(ka), "";
|
|
1808
1800
|
}
|
|
1809
1801
|
}, C = () => o.isAuthenticated && h ? h : "", O = async () => {
|
|
1810
1802
|
const { user: g } = o;
|
|
@@ -1820,7 +1812,7 @@ const $a = (e) => q(
|
|
|
1820
1812
|
});
|
|
1821
1813
|
if (E.status)
|
|
1822
1814
|
try {
|
|
1823
|
-
const b = await
|
|
1815
|
+
const b = await pr(E.data);
|
|
1824
1816
|
return E = await le({
|
|
1825
1817
|
accessToken: c,
|
|
1826
1818
|
clientId: r,
|
|
@@ -1848,9 +1840,9 @@ const $a = (e) => q(
|
|
|
1848
1840
|
return !1;
|
|
1849
1841
|
}, V = async () => {
|
|
1850
1842
|
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1851
|
-
const g =
|
|
1843
|
+
const g = Ge();
|
|
1852
1844
|
L(g), i("loginWithPasskey");
|
|
1853
|
-
const E =
|
|
1845
|
+
const E = Ge();
|
|
1854
1846
|
let b = await le({
|
|
1855
1847
|
accessToken: c,
|
|
1856
1848
|
clientId: r,
|
|
@@ -1862,7 +1854,7 @@ const $a = (e) => q(
|
|
|
1862
1854
|
});
|
|
1863
1855
|
if (b.status)
|
|
1864
1856
|
try {
|
|
1865
|
-
const ae = await
|
|
1857
|
+
const ae = await yr(b.data);
|
|
1866
1858
|
return b = await le({
|
|
1867
1859
|
accessToken: c,
|
|
1868
1860
|
clientId: r,
|
|
@@ -1876,7 +1868,7 @@ const $a = (e) => q(
|
|
|
1876
1868
|
sessionExpiration: t,
|
|
1877
1869
|
ua: navigator.userAgent
|
|
1878
1870
|
}
|
|
1879
|
-
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken),
|
|
1871
|
+
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken), I(b.data.refreshToken), s({
|
|
1880
1872
|
type: ke,
|
|
1881
1873
|
payload: {
|
|
1882
1874
|
authenticationType: me.PASSKEY,
|
|
@@ -1886,7 +1878,7 @@ const $a = (e) => q(
|
|
|
1886
1878
|
email: b.data.email
|
|
1887
1879
|
}
|
|
1888
1880
|
}
|
|
1889
|
-
}), !0) : (U(
|
|
1881
|
+
}), !0) : (U(Ye), !1);
|
|
1890
1882
|
} catch {
|
|
1891
1883
|
return await le({
|
|
1892
1884
|
accessToken: c,
|
|
@@ -1900,18 +1892,18 @@ const $a = (e) => q(
|
|
|
1900
1892
|
domain: a,
|
|
1901
1893
|
sessionExpiration: t
|
|
1902
1894
|
}
|
|
1903
|
-
}), U(
|
|
1895
|
+
}), U(Ye), !1;
|
|
1904
1896
|
}
|
|
1905
1897
|
return !1;
|
|
1906
1898
|
};
|
|
1907
|
-
return /* @__PURE__ */ l(
|
|
1908
|
-
|
|
1899
|
+
return /* @__PURE__ */ l($a.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
|
|
1900
|
+
jt.Provider,
|
|
1909
1901
|
{
|
|
1910
1902
|
value: {
|
|
1911
1903
|
...o,
|
|
1912
1904
|
login: M,
|
|
1913
1905
|
logout: K,
|
|
1914
|
-
getAccessToken:
|
|
1906
|
+
getAccessToken: T,
|
|
1915
1907
|
getIdToken: C,
|
|
1916
1908
|
registeringForPasskey: O,
|
|
1917
1909
|
loginWithPasskey: V
|
|
@@ -1919,19 +1911,19 @@ const $a = (e) => q(
|
|
|
1919
1911
|
children: e
|
|
1920
1912
|
}
|
|
1921
1913
|
) });
|
|
1922
|
-
},
|
|
1923
|
-
function
|
|
1914
|
+
}, zt = (e = jt) => Tt(e), wo = "user", Io = "assistant", To = "system", So = "internal", _o = "hidden", ko = "I'm having trouble right now. Please try again later.", Ao = "OpenAI", Ro = "OpenAI", No = "Anthropic", vo = "action-search", xo = "action-sort", Co = "action-toggle-prompt", Oo = "action-reset-prompt", Po = "sassy-saint-", Do = "details", Lo = "search", $o = "sort", Mo = "private-disclosure", Uo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ko = 10, Ho = 30, Wo = "av-prompt", Bo = "av-prompt-editable", Vo = "size-5 sm:size-4", yt = (e) => Number.isFinite(e) ? e : 0;
|
|
1915
|
+
function Ha(e) {
|
|
1924
1916
|
return {
|
|
1925
1917
|
days: Math.trunc(e / 864e5),
|
|
1926
1918
|
hours: Math.trunc(e / 36e5 % 24),
|
|
1927
1919
|
minutes: Math.trunc(e / 6e4 % 60),
|
|
1928
1920
|
seconds: Math.trunc(e / 1e3 % 60),
|
|
1929
1921
|
milliseconds: Math.trunc(e % 1e3),
|
|
1930
|
-
microseconds: Math.trunc(
|
|
1931
|
-
nanoseconds: Math.trunc(
|
|
1922
|
+
microseconds: Math.trunc(yt(e * 1e3) % 1e3),
|
|
1923
|
+
nanoseconds: Math.trunc(yt(e * 1e6) % 1e3)
|
|
1932
1924
|
};
|
|
1933
1925
|
}
|
|
1934
|
-
function
|
|
1926
|
+
function Wa(e) {
|
|
1935
1927
|
return {
|
|
1936
1928
|
days: e / 86400000n,
|
|
1937
1929
|
hours: e / 3600000n % 24n,
|
|
@@ -1942,20 +1934,20 @@ function Ba(e) {
|
|
|
1942
1934
|
nanoseconds: 0n
|
|
1943
1935
|
};
|
|
1944
1936
|
}
|
|
1945
|
-
function
|
|
1937
|
+
function Ba(e) {
|
|
1946
1938
|
switch (typeof e) {
|
|
1947
1939
|
case "number": {
|
|
1948
1940
|
if (Number.isFinite(e))
|
|
1949
|
-
return
|
|
1941
|
+
return Ha(e);
|
|
1950
1942
|
break;
|
|
1951
1943
|
}
|
|
1952
1944
|
case "bigint":
|
|
1953
|
-
return
|
|
1945
|
+
return Wa(e);
|
|
1954
1946
|
}
|
|
1955
1947
|
throw new TypeError("Expected a finite number or bigint");
|
|
1956
1948
|
}
|
|
1957
|
-
const
|
|
1958
|
-
function
|
|
1949
|
+
const Va = (e) => e === 0 || e === 0n, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7, Ya = 24n * 60n * 60n * 1000n;
|
|
1950
|
+
function Fa(e, t) {
|
|
1959
1951
|
const r = typeof e == "bigint";
|
|
1960
1952
|
if (!r && !Number.isFinite(e))
|
|
1961
1953
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -1964,25 +1956,25 @@ function ja(e, t) {
|
|
|
1964
1956
|
e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
|
|
1965
1957
|
let n = [];
|
|
1966
1958
|
const o = (f, u) => {
|
|
1967
|
-
const c = Math.floor(f * 10 ** u +
|
|
1959
|
+
const c = Math.floor(f * 10 ** u + Ga);
|
|
1968
1960
|
return (Math.round(c) / 10 ** u).toFixed(u);
|
|
1969
1961
|
}, s = (f, u, c, m) => {
|
|
1970
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1962
|
+
if (!((n.length === 0 || !t.colonNotation) && Va(f) && !(t.colonNotation && c === "m"))) {
|
|
1971
1963
|
if (m ?? (m = String(f)), t.colonNotation) {
|
|
1972
1964
|
const y = m.includes(".") ? m.split(".")[0].length : m.length, w = n.length > 0 ? 2 : 1;
|
|
1973
1965
|
m = "0".repeat(Math.max(0, w - y)) + m;
|
|
1974
1966
|
} else
|
|
1975
|
-
m += t.verbose ? " " +
|
|
1967
|
+
m += t.verbose ? " " + Ja(u, f) : c;
|
|
1976
1968
|
n.push(m);
|
|
1977
1969
|
}
|
|
1978
|
-
}, i =
|
|
1970
|
+
}, i = Ba(e), d = BigInt(i.days);
|
|
1979
1971
|
if (t.hideYearAndDays ? s(BigInt(d) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(d, "day", "d") : (s(d / 365n, "year", "y"), s(d % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1980
1972
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1981
1973
|
const f = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
|
|
1982
1974
|
if (s(f, "second", "s"), t.formatSubMilliseconds)
|
|
1983
1975
|
s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(m, "nanosecond", "ns");
|
|
1984
1976
|
else {
|
|
1985
|
-
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0,
|
|
1977
|
+
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, I = y >= 1 ? Math.round(y) : Math.ceil(y), k = w ? y.toFixed(w) : I;
|
|
1986
1978
|
s(
|
|
1987
1979
|
Number.parseFloat(k),
|
|
1988
1980
|
"millisecond",
|
|
@@ -1991,7 +1983,7 @@ function ja(e, t) {
|
|
|
1991
1983
|
);
|
|
1992
1984
|
}
|
|
1993
1985
|
} else {
|
|
1994
|
-
const f = (r ? Number(e %
|
|
1986
|
+
const f = (r ? Number(e % Ya) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(f, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1995
1987
|
s(Number.parseFloat(m), "second", "s", m);
|
|
1996
1988
|
}
|
|
1997
1989
|
if (n.length === 0)
|
|
@@ -1999,7 +1991,7 @@ function ja(e, t) {
|
|
|
1999
1991
|
const h = t.colonNotation ? ":" : " ";
|
|
2000
1992
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
2001
1993
|
}
|
|
2002
|
-
const
|
|
1994
|
+
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Jo = async () => {
|
|
2003
1995
|
const e = {
|
|
2004
1996
|
/**
|
|
2005
1997
|
* A boolean value that indicates the application would
|
|
@@ -2048,35 +2040,35 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2048
2040
|
e
|
|
2049
2041
|
);
|
|
2050
2042
|
});
|
|
2051
|
-
},
|
|
2043
|
+
}, Go = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
|
|
2052
2044
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2053
2045
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2054
|
-
] }) }, `${e}-${r}`)) : null,
|
|
2046
|
+
] }) }, `${e}-${r}`)) : null, Yo = new Intl.NumberFormat("en", {
|
|
2055
2047
|
style: "decimal",
|
|
2056
2048
|
signDisplay: "never",
|
|
2057
2049
|
minimumFractionDigits: 0,
|
|
2058
2050
|
maximumFractionDigits: 0
|
|
2059
|
-
}),
|
|
2051
|
+
}), Fo = (e) => e > 0 ? Fa(e, {
|
|
2060
2052
|
secondsDecimalDigits: 2,
|
|
2061
2053
|
unitCount: 2
|
|
2062
|
-
}) : "N/A",
|
|
2054
|
+
}) : "N/A", Xa = ({
|
|
2063
2055
|
isAuthenticated: e,
|
|
2064
2056
|
extraClass: t
|
|
2065
2057
|
}) => p(
|
|
2066
2058
|
"flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2067
2059
|
e ? "pt-0" : "pt-10",
|
|
2068
2060
|
t
|
|
2069
|
-
),
|
|
2061
|
+
), Qa = ({
|
|
2070
2062
|
extraClass: e
|
|
2071
|
-
}) => p("px-2 sm:px-0", e),
|
|
2063
|
+
}) => p("px-2 sm:px-0", e), jo = (e, t) => t === 1 ? e : `${e}s`, zo = (e, t) => {
|
|
2072
2064
|
let r;
|
|
2073
2065
|
return (...a) => {
|
|
2074
2066
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2075
2067
|
};
|
|
2076
|
-
},
|
|
2077
|
-
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r =
|
|
2068
|
+
}, Za = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), en = () => window.innerWidth < 403, qo = () => {
|
|
2069
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = en(), a = navigator.maxTouchPoints > 1;
|
|
2078
2070
|
return e && t && r && a;
|
|
2079
|
-
},
|
|
2071
|
+
}, bt = "av-button", Ue = "icon", rt = "button", Qe = "link", tn = ({
|
|
2080
2072
|
type: e,
|
|
2081
2073
|
size: t,
|
|
2082
2074
|
labelRight: r,
|
|
@@ -2086,14 +2078,14 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2086
2078
|
}) => {
|
|
2087
2079
|
const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", d = "max-h-12 py-2 px-4";
|
|
2088
2080
|
switch (e) {
|
|
2089
|
-
case
|
|
2090
|
-
case
|
|
2081
|
+
case rt:
|
|
2082
|
+
case Qe:
|
|
2091
2083
|
return p({
|
|
2092
2084
|
[s]: t === "small",
|
|
2093
2085
|
[i]: t === "medium",
|
|
2094
2086
|
[d]: t === "large"
|
|
2095
2087
|
});
|
|
2096
|
-
case
|
|
2088
|
+
case Ue:
|
|
2097
2089
|
return p("flex items-center", {
|
|
2098
2090
|
"justify-center": n === "center",
|
|
2099
2091
|
"justify-start": n === "left",
|
|
@@ -2112,7 +2104,7 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2112
2104
|
"h-12": t === "large" && o && (r || a)
|
|
2113
2105
|
});
|
|
2114
2106
|
}
|
|
2115
|
-
},
|
|
2107
|
+
}, rn = ({
|
|
2116
2108
|
type: e,
|
|
2117
2109
|
size: t,
|
|
2118
2110
|
labelRight: r,
|
|
@@ -2120,22 +2112,22 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2120
2112
|
}) => {
|
|
2121
2113
|
const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
|
|
2122
2114
|
switch (e) {
|
|
2123
|
-
case
|
|
2124
|
-
case
|
|
2115
|
+
case rt:
|
|
2116
|
+
case Qe:
|
|
2125
2117
|
return p({
|
|
2126
|
-
"text-center": e ===
|
|
2118
|
+
"text-center": e === Qe,
|
|
2127
2119
|
[n]: t === "small",
|
|
2128
2120
|
[o]: t === "medium",
|
|
2129
2121
|
[s]: t === "large"
|
|
2130
2122
|
});
|
|
2131
|
-
case
|
|
2123
|
+
case Ue:
|
|
2132
2124
|
return p({
|
|
2133
2125
|
[n]: t === "small" && (r || a),
|
|
2134
2126
|
[o]: t === "medium" && (r || a),
|
|
2135
2127
|
[s]: t === "large" && (r || a)
|
|
2136
2128
|
});
|
|
2137
2129
|
}
|
|
2138
|
-
},
|
|
2130
|
+
}, an = ({
|
|
2139
2131
|
mode: e,
|
|
2140
2132
|
noBackground: t,
|
|
2141
2133
|
noTruncate: r,
|
|
@@ -2171,7 +2163,7 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2171
2163
|
return p("not-prose text-copy-lighter", {
|
|
2172
2164
|
truncate: !r
|
|
2173
2165
|
});
|
|
2174
|
-
},
|
|
2166
|
+
}, nn = ({
|
|
2175
2167
|
mode: e,
|
|
2176
2168
|
noBackground: t,
|
|
2177
2169
|
variant: r
|
|
@@ -2201,13 +2193,13 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2201
2193
|
if (r === "selected")
|
|
2202
2194
|
return "bg-action-selected-dark";
|
|
2203
2195
|
}
|
|
2204
|
-
},
|
|
2196
|
+
}, on = ({
|
|
2205
2197
|
radius: e
|
|
2206
2198
|
}) => p({
|
|
2207
2199
|
"rounded-full": e === "large",
|
|
2208
2200
|
"rounded-md": e === "medium",
|
|
2209
2201
|
"rounded-sm": e === "small"
|
|
2210
|
-
}),
|
|
2202
|
+
}), sn = ({
|
|
2211
2203
|
mode: e,
|
|
2212
2204
|
disabled: t,
|
|
2213
2205
|
variant: r
|
|
@@ -2237,7 +2229,7 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2237
2229
|
});
|
|
2238
2230
|
if (r === "selected")
|
|
2239
2231
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2240
|
-
},
|
|
2232
|
+
}, cn = ({
|
|
2241
2233
|
mode: e,
|
|
2242
2234
|
disabled: t,
|
|
2243
2235
|
variant: r
|
|
@@ -2267,7 +2259,7 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2267
2259
|
});
|
|
2268
2260
|
if (r === "selected")
|
|
2269
2261
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2270
|
-
},
|
|
2262
|
+
}, ln = ({
|
|
2271
2263
|
mode: e,
|
|
2272
2264
|
noBorder: t,
|
|
2273
2265
|
variant: r
|
|
@@ -2297,14 +2289,14 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2297
2289
|
});
|
|
2298
2290
|
if (r === "selected")
|
|
2299
2291
|
return "border border-border-selected-dark";
|
|
2300
|
-
},
|
|
2292
|
+
}, dn = ({
|
|
2301
2293
|
focusMode: e
|
|
2302
2294
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2303
2295
|
"focus:outline-focus-dark": e === "dark",
|
|
2304
2296
|
"focus:outline-focus-light": e === "light",
|
|
2305
2297
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
2306
2298
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
2307
|
-
}),
|
|
2299
|
+
}), un = ({
|
|
2308
2300
|
mode: e,
|
|
2309
2301
|
raw: t,
|
|
2310
2302
|
iconClassName: r
|
|
@@ -2316,11 +2308,11 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2316
2308
|
"dark:text-copy-accent-dark": e === "system"
|
|
2317
2309
|
},
|
|
2318
2310
|
r
|
|
2319
|
-
),
|
|
2311
|
+
), mn = ({
|
|
2320
2312
|
animated: e
|
|
2321
2313
|
}) => p({
|
|
2322
2314
|
"transition-opacity duration-300 ease-in": e
|
|
2323
|
-
}),
|
|
2315
|
+
}), qt = ({
|
|
2324
2316
|
type: e,
|
|
2325
2317
|
className: t,
|
|
2326
2318
|
raw: r,
|
|
@@ -2337,56 +2329,56 @@ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.
|
|
|
2337
2329
|
noTruncate: m,
|
|
2338
2330
|
align: y,
|
|
2339
2331
|
radius: w,
|
|
2340
|
-
animated:
|
|
2341
|
-
}) => (c || (c = "primary"), r ? p(
|
|
2342
|
-
|
|
2343
|
-
|
|
2332
|
+
animated: I
|
|
2333
|
+
}) => (c || (c = "primary"), r ? p(bt, t) : p(
|
|
2334
|
+
bt,
|
|
2335
|
+
an({
|
|
2344
2336
|
mode: a,
|
|
2345
2337
|
variant: c,
|
|
2346
2338
|
noBackground: u,
|
|
2347
2339
|
noTruncate: m
|
|
2348
2340
|
}),
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2341
|
+
nn({ mode: a, noBackground: u, variant: c }),
|
|
2342
|
+
on({ radius: w }),
|
|
2343
|
+
tn({
|
|
2352
2344
|
type: e,
|
|
2353
2345
|
size: i,
|
|
2354
2346
|
labelRight: h,
|
|
2355
2347
|
labelLeft: f,
|
|
2356
2348
|
align: y,
|
|
2357
|
-
animated:
|
|
2349
|
+
animated: I
|
|
2358
2350
|
}),
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2351
|
+
rn({ type: e, size: i, labelRight: h, labelLeft: f }),
|
|
2352
|
+
ln({ mode: a, variant: c, noBorder: d }),
|
|
2353
|
+
dn({ focusMode: n }),
|
|
2354
|
+
sn({ mode: a, variant: c, disabled: o }),
|
|
2362
2355
|
cn({ mode: a, variant: c, disabled: o }),
|
|
2363
|
-
ln({ mode: a, variant: c, disabled: o }),
|
|
2364
2356
|
{
|
|
2365
2357
|
"w-full": s,
|
|
2366
2358
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
2367
2359
|
},
|
|
2368
2360
|
p({
|
|
2369
|
-
"transition-[width] duration-300 ease-in-out": e ===
|
|
2361
|
+
"transition-[width] duration-300 ease-in-out": e === Ue && I
|
|
2370
2362
|
}),
|
|
2371
2363
|
t
|
|
2372
|
-
)),
|
|
2364
|
+
)), hn = (e, t, r) => {
|
|
2373
2365
|
var a;
|
|
2374
2366
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
2375
|
-
},
|
|
2367
|
+
}, at = X.forwardRef((e, t) => {
|
|
2376
2368
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2377
2369
|
return /* @__PURE__ */ l(
|
|
2378
2370
|
"button",
|
|
2379
2371
|
{
|
|
2380
2372
|
ref: t,
|
|
2381
2373
|
onClick: (o) => {
|
|
2382
|
-
|
|
2374
|
+
hn(o, a, r);
|
|
2383
2375
|
},
|
|
2384
2376
|
...n
|
|
2385
2377
|
}
|
|
2386
2378
|
);
|
|
2387
2379
|
});
|
|
2388
|
-
|
|
2389
|
-
const
|
|
2380
|
+
at.displayName = "BaseButton";
|
|
2381
|
+
const Xt = X.forwardRef(
|
|
2390
2382
|
({
|
|
2391
2383
|
children: e,
|
|
2392
2384
|
disabled: t = !1,
|
|
@@ -2402,8 +2394,8 @@ const Zt = X.forwardRef(
|
|
|
2402
2394
|
radius: u = "large",
|
|
2403
2395
|
...c
|
|
2404
2396
|
}, m) => {
|
|
2405
|
-
const y =
|
|
2406
|
-
type:
|
|
2397
|
+
const y = qt({
|
|
2398
|
+
type: rt,
|
|
2407
2399
|
mode: r,
|
|
2408
2400
|
focusMode: a,
|
|
2409
2401
|
fullWidth: n,
|
|
@@ -2417,7 +2409,7 @@ const Zt = X.forwardRef(
|
|
|
2417
2409
|
radius: u
|
|
2418
2410
|
});
|
|
2419
2411
|
return /* @__PURE__ */ l(
|
|
2420
|
-
|
|
2412
|
+
at,
|
|
2421
2413
|
{
|
|
2422
2414
|
ref: m,
|
|
2423
2415
|
className: y,
|
|
@@ -2428,22 +2420,22 @@ const Zt = X.forwardRef(
|
|
|
2428
2420
|
);
|
|
2429
2421
|
}
|
|
2430
2422
|
);
|
|
2431
|
-
|
|
2432
|
-
function
|
|
2423
|
+
Xt.displayName = "Button";
|
|
2424
|
+
function pn() {
|
|
2433
2425
|
const e = x(!1);
|
|
2434
2426
|
return Y(() => (e.current = !0, () => {
|
|
2435
2427
|
e.current = !1;
|
|
2436
2428
|
}), []), q(() => e.current, []);
|
|
2437
2429
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return
|
|
2430
|
+
function fn(e) {
|
|
2431
|
+
return De(() => e.every((t) => t == null) ? () => {
|
|
2440
2432
|
} : (t) => {
|
|
2441
2433
|
e.forEach((r) => {
|
|
2442
2434
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
2443
2435
|
});
|
|
2444
2436
|
}, e);
|
|
2445
2437
|
}
|
|
2446
|
-
const
|
|
2438
|
+
const gn = {
|
|
2447
2439
|
x: 0,
|
|
2448
2440
|
y: 0,
|
|
2449
2441
|
width: 0,
|
|
@@ -2453,8 +2445,8 @@ const yn = {
|
|
|
2453
2445
|
bottom: 0,
|
|
2454
2446
|
right: 0
|
|
2455
2447
|
};
|
|
2456
|
-
function
|
|
2457
|
-
const t =
|
|
2448
|
+
function Fe(e) {
|
|
2449
|
+
const t = pn(), r = x(0), a = x(null), [n, o] = z(gn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
2458
2450
|
const d = i[0];
|
|
2459
2451
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2460
2452
|
a.current && t() && o(d.contentRect);
|
|
@@ -2464,21 +2456,21 @@ function je(e) {
|
|
|
2464
2456
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
2465
2457
|
}), [s, e]), [a, n];
|
|
2466
2458
|
}
|
|
2467
|
-
const
|
|
2459
|
+
const yn = {
|
|
2468
2460
|
small: 24,
|
|
2469
2461
|
// w-6
|
|
2470
2462
|
medium: 32,
|
|
2471
2463
|
// w-8
|
|
2472
2464
|
large: 48
|
|
2473
2465
|
// w-12
|
|
2474
|
-
},
|
|
2466
|
+
}, bn = {
|
|
2475
2467
|
small: 8 * 2,
|
|
2476
2468
|
// px-2 x 2
|
|
2477
2469
|
medium: 12 * 2,
|
|
2478
2470
|
// px-3 x 2
|
|
2479
2471
|
large: 16 * 2
|
|
2480
2472
|
// px-4 x 2
|
|
2481
|
-
},
|
|
2473
|
+
}, En = 2, Oe = X.forwardRef(
|
|
2482
2474
|
({
|
|
2483
2475
|
children: e,
|
|
2484
2476
|
disabled: t = !1,
|
|
@@ -2496,14 +2488,14 @@ const bn = {
|
|
|
2496
2488
|
labelLeft: m,
|
|
2497
2489
|
noBackground: y = !1,
|
|
2498
2490
|
align: w = "center",
|
|
2499
|
-
radius:
|
|
2491
|
+
radius: I = "large",
|
|
2500
2492
|
variant: k = "primary",
|
|
2501
2493
|
iconClassName: Q,
|
|
2502
2494
|
animated: L = !1,
|
|
2503
2495
|
...Z
|
|
2504
2496
|
}, $) => {
|
|
2505
|
-
const B =
|
|
2506
|
-
type:
|
|
2497
|
+
const B = qt({
|
|
2498
|
+
type: Ue,
|
|
2507
2499
|
mode: r,
|
|
2508
2500
|
focusMode: a,
|
|
2509
2501
|
fullWidth: n,
|
|
@@ -2516,25 +2508,25 @@ const bn = {
|
|
|
2516
2508
|
labelLeft: m,
|
|
2517
2509
|
noBackground: y,
|
|
2518
2510
|
align: w,
|
|
2519
|
-
radius:
|
|
2511
|
+
radius: I,
|
|
2520
2512
|
variant: k,
|
|
2521
2513
|
animated: L
|
|
2522
|
-
}), U =
|
|
2514
|
+
}), U = un({ mode: r, raw: i, iconClassName: Q }), S = mn({ animated: L }), [M, K] = Fe(), [T, C] = Fe(), [O, V] = Fe(), g = x(0), E = x(null), b = fn([$, E]);
|
|
2523
2515
|
return Ne(() => {
|
|
2524
|
-
O && O.current && L && (g.current = V.width +
|
|
2516
|
+
O && O.current && L && (g.current = V.width + bn[u] + (d ? 0 : En));
|
|
2525
2517
|
}, [V, O, u, d, L]), Ne(() => {
|
|
2526
|
-
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (
|
|
2518
|
+
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), E.current.style.width = `${yn[u]}px`));
|
|
2527
2519
|
}, [
|
|
2528
2520
|
K,
|
|
2529
2521
|
c,
|
|
2530
2522
|
M,
|
|
2531
2523
|
C,
|
|
2532
2524
|
m,
|
|
2533
|
-
|
|
2525
|
+
T,
|
|
2534
2526
|
u,
|
|
2535
2527
|
L
|
|
2536
2528
|
]), /* @__PURE__ */ D(
|
|
2537
|
-
|
|
2529
|
+
at,
|
|
2538
2530
|
{
|
|
2539
2531
|
ref: b,
|
|
2540
2532
|
className: B,
|
|
@@ -2544,17 +2536,17 @@ const bn = {
|
|
|
2544
2536
|
...Z,
|
|
2545
2537
|
children: [
|
|
2546
2538
|
/* @__PURE__ */ l(
|
|
2547
|
-
|
|
2539
|
+
Et,
|
|
2548
2540
|
{
|
|
2549
2541
|
label: m,
|
|
2550
|
-
labelRef:
|
|
2542
|
+
labelRef: T,
|
|
2551
2543
|
labelClass: S,
|
|
2552
2544
|
labelInnerClass: "pr-2"
|
|
2553
2545
|
}
|
|
2554
2546
|
),
|
|
2555
2547
|
/* @__PURE__ */ l("span", { ref: O, className: U, children: e }),
|
|
2556
2548
|
/* @__PURE__ */ l(
|
|
2557
|
-
|
|
2549
|
+
Et,
|
|
2558
2550
|
{
|
|
2559
2551
|
label: c,
|
|
2560
2552
|
labelRef: M,
|
|
@@ -2566,13 +2558,13 @@ const bn = {
|
|
|
2566
2558
|
}
|
|
2567
2559
|
);
|
|
2568
2560
|
}
|
|
2569
|
-
),
|
|
2561
|
+
), Et = ({
|
|
2570
2562
|
labelRef: e,
|
|
2571
2563
|
labelClass: t,
|
|
2572
2564
|
label: r,
|
|
2573
2565
|
labelInnerClass: a
|
|
2574
2566
|
}) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
|
|
2575
|
-
|
|
2567
|
+
Oe.displayName = "ButtonIcon";
|
|
2576
2568
|
/*!
|
|
2577
2569
|
@versini/ui-button v4.2.4
|
|
2578
2570
|
© 2025 gizmette.com
|
|
@@ -2586,7 +2578,7 @@ try {
|
|
|
2586
2578
|
});
|
|
2587
2579
|
} catch {
|
|
2588
2580
|
}
|
|
2589
|
-
const
|
|
2581
|
+
const wn = X.forwardRef(
|
|
2590
2582
|
({
|
|
2591
2583
|
children: e,
|
|
2592
2584
|
mode: t = "system",
|
|
@@ -2612,7 +2604,7 @@ const Tn = X.forwardRef(
|
|
|
2612
2604
|
}
|
|
2613
2605
|
) : "";
|
|
2614
2606
|
return /* @__PURE__ */ l("div", { className: s, children: /* @__PURE__ */ l(
|
|
2615
|
-
|
|
2607
|
+
Oe,
|
|
2616
2608
|
{
|
|
2617
2609
|
className: p("justify-center", r),
|
|
2618
2610
|
ref: o,
|
|
@@ -2624,7 +2616,7 @@ const Tn = X.forwardRef(
|
|
|
2624
2616
|
) });
|
|
2625
2617
|
}
|
|
2626
2618
|
);
|
|
2627
|
-
|
|
2619
|
+
wn.displayName = "ButtonSort";
|
|
2628
2620
|
/*!
|
|
2629
2621
|
@versini/ui-card v3.0.13
|
|
2630
2622
|
© 2025 gizmette.com
|
|
@@ -2640,10 +2632,10 @@ try {
|
|
|
2640
2632
|
}
|
|
2641
2633
|
const Ae = "av-card";
|
|
2642
2634
|
function In(e) {
|
|
2643
|
-
const t =
|
|
2635
|
+
const t = St();
|
|
2644
2636
|
return `${e}${t}`;
|
|
2645
2637
|
}
|
|
2646
|
-
const
|
|
2638
|
+
const Tn = ({
|
|
2647
2639
|
className: e,
|
|
2648
2640
|
headerClassName: t,
|
|
2649
2641
|
bodyClassName: r,
|
|
@@ -2683,7 +2675,7 @@ const Sn = ({
|
|
|
2683
2675
|
footer: f
|
|
2684
2676
|
};
|
|
2685
2677
|
};
|
|
2686
|
-
function
|
|
2678
|
+
function Sn({
|
|
2687
2679
|
id: e,
|
|
2688
2680
|
content: t,
|
|
2689
2681
|
userAriaLabelledby: r,
|
|
@@ -2691,7 +2683,7 @@ function _n({
|
|
|
2691
2683
|
}) {
|
|
2692
2684
|
return typeof t == "string" ? /* @__PURE__ */ l("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ l("div", { className: a, children: t }) : t ? /* @__PURE__ */ l("div", { className: a, id: e, children: t }) : null;
|
|
2693
2685
|
}
|
|
2694
|
-
const
|
|
2686
|
+
const _n = ({
|
|
2695
2687
|
header: e,
|
|
2696
2688
|
headerClassName: t,
|
|
2697
2689
|
footer: r,
|
|
@@ -2706,7 +2698,7 @@ const kn = ({
|
|
|
2706
2698
|
...u
|
|
2707
2699
|
}) => {
|
|
2708
2700
|
let c = null, m = null;
|
|
2709
|
-
const y = typeof e == "string", w = In(Ae),
|
|
2701
|
+
const y = typeof e == "string", w = In(Ae), I = Tn({
|
|
2710
2702
|
className: o,
|
|
2711
2703
|
headerClassName: t,
|
|
2712
2704
|
bodyClassName: s,
|
|
@@ -2715,30 +2707,30 @@ const kn = ({
|
|
|
2715
2707
|
compact: h,
|
|
2716
2708
|
noBorder: f
|
|
2717
2709
|
});
|
|
2718
|
-
return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className:
|
|
2710
|
+
return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: I.wrapper, children: /* @__PURE__ */ D(
|
|
2719
2711
|
"section",
|
|
2720
2712
|
{
|
|
2721
2713
|
...m && {
|
|
2722
2714
|
"aria-labelledby": m
|
|
2723
2715
|
},
|
|
2724
|
-
className:
|
|
2716
|
+
className: I.body,
|
|
2725
2717
|
...u,
|
|
2726
2718
|
children: [
|
|
2727
2719
|
/* @__PURE__ */ l(
|
|
2728
|
-
|
|
2720
|
+
Sn,
|
|
2729
2721
|
{
|
|
2730
2722
|
...c && { id: c },
|
|
2731
2723
|
content: e,
|
|
2732
|
-
className:
|
|
2724
|
+
className: I.header,
|
|
2733
2725
|
userAriaLabelledby: i
|
|
2734
2726
|
}
|
|
2735
2727
|
),
|
|
2736
2728
|
/* @__PURE__ */ l("div", { children: n }),
|
|
2737
|
-
r ? /* @__PURE__ */ l("div", { className:
|
|
2729
|
+
r ? /* @__PURE__ */ l("div", { className: I.footer, children: r }) : null
|
|
2738
2730
|
]
|
|
2739
2731
|
}
|
|
2740
2732
|
) });
|
|
2741
|
-
},
|
|
2733
|
+
}, Ke = ({
|
|
2742
2734
|
children: e,
|
|
2743
2735
|
fill: t,
|
|
2744
2736
|
viewBox: r,
|
|
@@ -2781,14 +2773,14 @@ try {
|
|
|
2781
2773
|
});
|
|
2782
2774
|
} catch {
|
|
2783
2775
|
}
|
|
2784
|
-
const
|
|
2776
|
+
const kn = ({
|
|
2785
2777
|
className: e,
|
|
2786
2778
|
viewBox: t,
|
|
2787
2779
|
title: r,
|
|
2788
2780
|
monotone: a,
|
|
2789
2781
|
...n
|
|
2790
2782
|
}) => /* @__PURE__ */ l(
|
|
2791
|
-
|
|
2783
|
+
Ke,
|
|
2792
2784
|
{
|
|
2793
2785
|
defaultViewBox: "0 0 1200 500",
|
|
2794
2786
|
size: "w-full",
|
|
@@ -2798,14 +2790,14 @@ const An = ({
|
|
|
2798
2790
|
...n,
|
|
2799
2791
|
children: /* @__PURE__ */ l("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
|
|
2800
2792
|
}
|
|
2801
|
-
),
|
|
2793
|
+
), An = ({
|
|
2802
2794
|
className: e,
|
|
2803
2795
|
viewBox: t,
|
|
2804
2796
|
title: r,
|
|
2805
2797
|
monotone: a,
|
|
2806
2798
|
...n
|
|
2807
2799
|
}) => /* @__PURE__ */ D(
|
|
2808
|
-
|
|
2800
|
+
Ke,
|
|
2809
2801
|
{
|
|
2810
2802
|
defaultViewBox: "0 0 640 512",
|
|
2811
2803
|
size: "size-5",
|
|
@@ -2824,7 +2816,7 @@ const An = ({
|
|
|
2824
2816
|
/* @__PURE__ */ l("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
|
|
2825
2817
|
]
|
|
2826
2818
|
}
|
|
2827
|
-
),
|
|
2819
|
+
), Rn = ({
|
|
2828
2820
|
className: e,
|
|
2829
2821
|
viewBox: t,
|
|
2830
2822
|
title: r,
|
|
@@ -2833,7 +2825,7 @@ const An = ({
|
|
|
2833
2825
|
}) => {
|
|
2834
2826
|
const o = a ? "1" : "0.4";
|
|
2835
2827
|
return /* @__PURE__ */ D(
|
|
2836
|
-
|
|
2828
|
+
Ke,
|
|
2837
2829
|
{
|
|
2838
2830
|
defaultViewBox: "0 0 190 190",
|
|
2839
2831
|
size: "size-5",
|
|
@@ -2860,14 +2852,14 @@ const An = ({
|
|
|
2860
2852
|
]
|
|
2861
2853
|
}
|
|
2862
2854
|
);
|
|
2863
|
-
},
|
|
2855
|
+
}, Nn = ({
|
|
2864
2856
|
className: e,
|
|
2865
2857
|
viewBox: t,
|
|
2866
2858
|
title: r,
|
|
2867
2859
|
monotone: a,
|
|
2868
2860
|
...n
|
|
2869
2861
|
}) => /* @__PURE__ */ D(
|
|
2870
|
-
|
|
2862
|
+
Ke,
|
|
2871
2863
|
{
|
|
2872
2864
|
defaultViewBox: "0 0 576 512",
|
|
2873
2865
|
size: "size-5",
|
|
@@ -2913,7 +2905,7 @@ try {
|
|
|
2913
2905
|
});
|
|
2914
2906
|
} catch {
|
|
2915
2907
|
}
|
|
2916
|
-
const
|
|
2908
|
+
const vn = "av-main", xn = ({
|
|
2917
2909
|
children: e,
|
|
2918
2910
|
className: t,
|
|
2919
2911
|
raw: r = !1,
|
|
@@ -2921,7 +2913,7 @@ const xn = "av-main", Cn = ({
|
|
|
2921
2913
|
noPadding: n = !1
|
|
2922
2914
|
}) => {
|
|
2923
2915
|
const o = p(
|
|
2924
|
-
|
|
2916
|
+
vn,
|
|
2925
2917
|
{
|
|
2926
2918
|
"mt-2 sm:mt-3": !r && !a,
|
|
2927
2919
|
"p-2": !r && !n,
|
|
@@ -2930,10 +2922,10 @@ const xn = "av-main", Cn = ({
|
|
|
2930
2922
|
t
|
|
2931
2923
|
);
|
|
2932
2924
|
return /* @__PURE__ */ l("main", { className: o, children: e });
|
|
2933
|
-
},
|
|
2925
|
+
}, Cn = "av-flexgrid", _e = "av-flexgrid-item", Pe = 0.25, Ze = X.createContext({
|
|
2934
2926
|
columnGap: 0,
|
|
2935
2927
|
rowGap: 0
|
|
2936
|
-
}),
|
|
2928
|
+
}), On = ({
|
|
2937
2929
|
children: e,
|
|
2938
2930
|
className: t,
|
|
2939
2931
|
columnGap: r = 1,
|
|
@@ -2956,14 +2948,14 @@ const xn = "av-main", Cn = ({
|
|
|
2956
2948
|
* by the columnGap and rowGap that will be applied
|
|
2957
2949
|
* to all FlexgridItems (see context and paddings).
|
|
2958
2950
|
*/
|
|
2959
|
-
marginLeft: r * -1 *
|
|
2960
|
-
marginTop: a * -1 *
|
|
2951
|
+
marginLeft: r * -1 * Pe + "rem",
|
|
2952
|
+
marginTop: a * -1 * Pe + "rem"
|
|
2961
2953
|
}, u = p(
|
|
2962
|
-
|
|
2954
|
+
Cn,
|
|
2963
2955
|
"box-border flex flex-wrap"
|
|
2964
2956
|
), c = { columnGap: r, rowGap: a };
|
|
2965
|
-
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(
|
|
2966
|
-
},
|
|
2957
|
+
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(Ze.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(Ze.Provider, { value: c, children: e }) });
|
|
2958
|
+
}, je = (e, t) => p({
|
|
2967
2959
|
"basis-1/12": e === 1 && !t,
|
|
2968
2960
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
2969
2961
|
"md:basis-1/12": e === 1 && t === "md",
|
|
@@ -3036,7 +3028,7 @@ const xn = "av-main", Cn = ({
|
|
|
3036
3028
|
"lg:basis-full": e === 12 && t === "lg",
|
|
3037
3029
|
"xl:basis-full": e === 12 && t === "xl",
|
|
3038
3030
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
3039
|
-
}),
|
|
3031
|
+
}), Pn = ({
|
|
3040
3032
|
className: e,
|
|
3041
3033
|
span: t
|
|
3042
3034
|
}) => {
|
|
@@ -3044,14 +3036,14 @@ const xn = "av-main", Cn = ({
|
|
|
3044
3036
|
return p(e, _e, "box-border basis-auto");
|
|
3045
3037
|
if (typeof t == "number")
|
|
3046
3038
|
return p(e, _e, "box-border max-w-full", {
|
|
3047
|
-
[`${
|
|
3039
|
+
[`${je(t)}`]: !0
|
|
3048
3040
|
});
|
|
3049
3041
|
if (typeof t == "string")
|
|
3050
3042
|
return p(e, _e, "box-border basis-auto", {
|
|
3051
3043
|
"max-w-full grow": t === "auto"
|
|
3052
3044
|
});
|
|
3053
3045
|
if (typeof t == "object") {
|
|
3054
|
-
const r = Object.entries(t).map(([a, n]) => a === "fallback" ?
|
|
3046
|
+
const r = Object.entries(t).map(([a, n]) => a === "fallback" ? je(n) : je(n, a));
|
|
3055
3047
|
return p(
|
|
3056
3048
|
e,
|
|
3057
3049
|
_e,
|
|
@@ -3065,10 +3057,10 @@ const xn = "av-main", Cn = ({
|
|
|
3065
3057
|
span: r,
|
|
3066
3058
|
...a
|
|
3067
3059
|
}) => {
|
|
3068
|
-
const { columnGap: n, rowGap: o } =
|
|
3069
|
-
paddingLeft: n *
|
|
3070
|
-
paddingTop: o *
|
|
3071
|
-
}, i =
|
|
3060
|
+
const { columnGap: n, rowGap: o } = Tt(Ze), s = {
|
|
3061
|
+
paddingLeft: n * Pe + "rem",
|
|
3062
|
+
paddingTop: o * Pe + "rem"
|
|
3063
|
+
}, i = Pn({
|
|
3072
3064
|
className: t,
|
|
3073
3065
|
span: r
|
|
3074
3066
|
});
|
|
@@ -3087,14 +3079,14 @@ try {
|
|
|
3087
3079
|
});
|
|
3088
3080
|
} catch {
|
|
3089
3081
|
}
|
|
3090
|
-
const
|
|
3091
|
-
function
|
|
3082
|
+
const Qt = "av-text-input", Dn = "av-text-input-wrapper", ze = "av-text-input-helper-text";
|
|
3083
|
+
function Ln() {
|
|
3092
3084
|
const e = x(!1);
|
|
3093
3085
|
return Y(() => (e.current = !0, () => {
|
|
3094
3086
|
e.current = !1;
|
|
3095
3087
|
}), []), q(() => e.current, []);
|
|
3096
3088
|
}
|
|
3097
|
-
const
|
|
3089
|
+
const $n = {
|
|
3098
3090
|
x: 0,
|
|
3099
3091
|
y: 0,
|
|
3100
3092
|
width: 0,
|
|
@@ -3104,8 +3096,8 @@ const Mn = {
|
|
|
3104
3096
|
bottom: 0,
|
|
3105
3097
|
right: 0
|
|
3106
3098
|
};
|
|
3107
|
-
function
|
|
3108
|
-
const t =
|
|
3099
|
+
function Mn(e) {
|
|
3100
|
+
const t = Ln(), r = x(0), a = x(null), [n, o] = z($n), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3109
3101
|
const d = i[0];
|
|
3110
3102
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3111
3103
|
a.current && t() && o(d.contentRect);
|
|
@@ -3115,8 +3107,8 @@ function Un(e) {
|
|
|
3115
3107
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
3116
3108
|
}), [s, e]), [a, n];
|
|
3117
3109
|
}
|
|
3118
|
-
function
|
|
3119
|
-
const t =
|
|
3110
|
+
function Un(e) {
|
|
3111
|
+
const t = St();
|
|
3120
3112
|
if (!e)
|
|
3121
3113
|
return t;
|
|
3122
3114
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -3126,7 +3118,7 @@ function Kn(e) {
|
|
|
3126
3118
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
3127
3119
|
}
|
|
3128
3120
|
}
|
|
3129
|
-
const
|
|
3121
|
+
const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", Kn = {
|
|
3130
3122
|
alert: null,
|
|
3131
3123
|
alertdialog: null,
|
|
3132
3124
|
log: "polite",
|
|
@@ -3134,14 +3126,14 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
|
|
|
3134
3126
|
progressbar: null,
|
|
3135
3127
|
status: "polite",
|
|
3136
3128
|
timer: "assertive"
|
|
3137
|
-
},
|
|
3129
|
+
}, Hn = (e, t) => {
|
|
3138
3130
|
switch (t == null ? void 0 : t.type) {
|
|
3139
|
-
case
|
|
3131
|
+
case Zt:
|
|
3140
3132
|
return {
|
|
3141
3133
|
...e,
|
|
3142
3134
|
announcement: t.payload
|
|
3143
3135
|
};
|
|
3144
|
-
case
|
|
3136
|
+
case er:
|
|
3145
3137
|
return {
|
|
3146
3138
|
...e,
|
|
3147
3139
|
announcement: null
|
|
@@ -3149,14 +3141,14 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
|
|
|
3149
3141
|
default:
|
|
3150
3142
|
return e;
|
|
3151
3143
|
}
|
|
3152
|
-
},
|
|
3144
|
+
}, Wn = ({
|
|
3153
3145
|
onAnnouncementClear: e,
|
|
3154
3146
|
dispatch: t
|
|
3155
3147
|
}) => {
|
|
3156
3148
|
t({
|
|
3157
|
-
type:
|
|
3149
|
+
type: er
|
|
3158
3150
|
}), typeof e == "function" && e();
|
|
3159
|
-
},
|
|
3151
|
+
}, wt = ({
|
|
3160
3152
|
children: e,
|
|
3161
3153
|
clearAnnouncementDelay: t,
|
|
3162
3154
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -3164,16 +3156,16 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
|
|
|
3164
3156
|
dispatch: n
|
|
3165
3157
|
}) => {
|
|
3166
3158
|
clearTimeout(r.current), e !== null && n({
|
|
3167
|
-
type:
|
|
3159
|
+
type: Zt,
|
|
3168
3160
|
payload: e
|
|
3169
3161
|
}), t && (r.current = setTimeout(
|
|
3170
|
-
() =>
|
|
3162
|
+
() => Wn({
|
|
3171
3163
|
onAnnouncementClear: a,
|
|
3172
3164
|
dispatch: n
|
|
3173
3165
|
}),
|
|
3174
3166
|
t
|
|
3175
3167
|
));
|
|
3176
|
-
},
|
|
3168
|
+
}, Bn = ({
|
|
3177
3169
|
children: e,
|
|
3178
3170
|
announcementTimeoutRef: t,
|
|
3179
3171
|
announcementDelay: r,
|
|
@@ -3182,13 +3174,13 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
|
|
|
3182
3174
|
onAnnouncementClear: o,
|
|
3183
3175
|
dispatch: s
|
|
3184
3176
|
}) => {
|
|
3185
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
3177
|
+
clearTimeout(t.current), r ? t.current = setTimeout(wt, r, {
|
|
3186
3178
|
children: e,
|
|
3187
3179
|
clearAnnouncementDelay: a,
|
|
3188
3180
|
clearAnnouncementTimeoutRef: n,
|
|
3189
3181
|
onAnnouncementClear: o,
|
|
3190
3182
|
dispatch: s
|
|
3191
|
-
}) :
|
|
3183
|
+
}) : wt({
|
|
3192
3184
|
children: e,
|
|
3193
3185
|
clearAnnouncementDelay: a,
|
|
3194
3186
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -3196,7 +3188,7 @@ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
|
|
|
3196
3188
|
dispatch: s
|
|
3197
3189
|
});
|
|
3198
3190
|
};
|
|
3199
|
-
function
|
|
3191
|
+
function tr({
|
|
3200
3192
|
children: e,
|
|
3201
3193
|
className: t,
|
|
3202
3194
|
politeness: r,
|
|
@@ -3207,12 +3199,12 @@ function ar({
|
|
|
3207
3199
|
visible: i,
|
|
3208
3200
|
...d
|
|
3209
3201
|
}) {
|
|
3210
|
-
const h = x(null), f = x(null), [u, c] =
|
|
3202
|
+
const h = x(null), f = x(null), [u, c] = It(Hn, {
|
|
3211
3203
|
announcement: null
|
|
3212
3204
|
});
|
|
3213
3205
|
let m = r;
|
|
3214
|
-
typeof m > "u" && (m = a ?
|
|
3215
|
-
|
|
3206
|
+
typeof m > "u" && (m = a ? Kn[a] : "assertive"), Y(() => {
|
|
3207
|
+
Bn({
|
|
3216
3208
|
announcementTimeoutRef: h,
|
|
3217
3209
|
announcementDelay: n,
|
|
3218
3210
|
children: e,
|
|
@@ -3254,21 +3246,21 @@ try {
|
|
|
3254
3246
|
});
|
|
3255
3247
|
} catch {
|
|
3256
3248
|
}
|
|
3257
|
-
const
|
|
3249
|
+
const Vn = ({
|
|
3258
3250
|
mode: e
|
|
3259
3251
|
}) => p({
|
|
3260
3252
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
3261
3253
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3262
3254
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3263
3255
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3264
|
-
}),
|
|
3256
|
+
}), Jn = ({
|
|
3265
3257
|
focusMode: e
|
|
3266
3258
|
}) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3267
3259
|
"focus:outline-focus-dark": e === "dark",
|
|
3268
3260
|
"focus:outline-focus-light": e === "light",
|
|
3269
3261
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3270
3262
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3271
|
-
}),
|
|
3263
|
+
}), Gn = ({
|
|
3272
3264
|
noBorder: e,
|
|
3273
3265
|
error: t
|
|
3274
3266
|
}) => p("border-2", {
|
|
@@ -3276,7 +3268,7 @@ const Jn = ({
|
|
|
3276
3268
|
"focus:border-border-dark": !e && t,
|
|
3277
3269
|
"border-border-error-dark": !e && t,
|
|
3278
3270
|
"border-transparent": e
|
|
3279
|
-
}),
|
|
3271
|
+
}), Yn = ({
|
|
3280
3272
|
disabled: e,
|
|
3281
3273
|
raw: t,
|
|
3282
3274
|
error: r,
|
|
@@ -3300,7 +3292,7 @@ const Jn = ({
|
|
|
3300
3292
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
|
|
3301
3293
|
"text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
|
|
3302
3294
|
});
|
|
3303
|
-
},
|
|
3295
|
+
}, Fn = ({
|
|
3304
3296
|
error: e,
|
|
3305
3297
|
raw: t,
|
|
3306
3298
|
mode: r,
|
|
@@ -3310,24 +3302,24 @@ const Jn = ({
|
|
|
3310
3302
|
return "";
|
|
3311
3303
|
if (a)
|
|
3312
3304
|
return p(
|
|
3313
|
-
|
|
3305
|
+
ze,
|
|
3314
3306
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
3315
3307
|
);
|
|
3316
3308
|
if (!e)
|
|
3317
|
-
return p(
|
|
3309
|
+
return p(ze, "absolute px-2 font-medium", {
|
|
3318
3310
|
"text-copy-lighter": r === "dark",
|
|
3319
3311
|
"text-copy-dark": r === "light",
|
|
3320
3312
|
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
3321
3313
|
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
3322
3314
|
});
|
|
3323
3315
|
if (e)
|
|
3324
|
-
return p(
|
|
3316
|
+
return p(ze, "absolute px-2 font-medium", {
|
|
3325
3317
|
"text-copy-error-light bg-surface-darker": r === "dark",
|
|
3326
3318
|
"text-copy-error-dark": r === "light",
|
|
3327
3319
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
3328
3320
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
3329
3321
|
});
|
|
3330
|
-
},
|
|
3322
|
+
}, jn = ({
|
|
3331
3323
|
className: e,
|
|
3332
3324
|
inputClassName: t,
|
|
3333
3325
|
raw: r,
|
|
@@ -3341,7 +3333,7 @@ const Jn = ({
|
|
|
3341
3333
|
}) => {
|
|
3342
3334
|
const f = r ? e : p(
|
|
3343
3335
|
"relative flex w-full flex-col justify-center",
|
|
3344
|
-
|
|
3336
|
+
Dn,
|
|
3345
3337
|
e
|
|
3346
3338
|
);
|
|
3347
3339
|
let u = "";
|
|
@@ -3363,36 +3355,36 @@ const Jn = ({
|
|
|
3363
3355
|
break;
|
|
3364
3356
|
}
|
|
3365
3357
|
const c = r ? p(t) : p(
|
|
3366
|
-
|
|
3358
|
+
Qt,
|
|
3367
3359
|
u,
|
|
3368
3360
|
"rounded-md text-base px-4",
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3361
|
+
Vn({ mode: s }),
|
|
3362
|
+
Jn({ focusMode: i }),
|
|
3363
|
+
Gn({ noBorder: n, error: o }),
|
|
3372
3364
|
{
|
|
3373
3365
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3374
3366
|
},
|
|
3375
3367
|
t
|
|
3376
|
-
), m = r ? void 0 : "sr-only", y =
|
|
3368
|
+
), m = r ? void 0 : "sr-only", y = Yn({
|
|
3377
3369
|
disabled: a,
|
|
3378
3370
|
raw: r,
|
|
3379
3371
|
error: o,
|
|
3380
3372
|
mode: s
|
|
3381
|
-
}), w =
|
|
3373
|
+
}), w = Fn({
|
|
3382
3374
|
error: o,
|
|
3383
3375
|
raw: r,
|
|
3384
3376
|
mode: s,
|
|
3385
3377
|
disabled: a
|
|
3386
|
-
}),
|
|
3378
|
+
}), I = r ? void 0 : p("absolute right-3", h);
|
|
3387
3379
|
return {
|
|
3388
3380
|
wrapper: f,
|
|
3389
3381
|
input: c,
|
|
3390
3382
|
accessibleLabel: m,
|
|
3391
3383
|
visibleLabel: y,
|
|
3392
3384
|
helperText: w,
|
|
3393
|
-
rightElement:
|
|
3385
|
+
rightElement: I
|
|
3394
3386
|
};
|
|
3395
|
-
},
|
|
3387
|
+
}, nt = X.forwardRef(
|
|
3396
3388
|
({
|
|
3397
3389
|
id: e,
|
|
3398
3390
|
name: t,
|
|
@@ -3410,17 +3402,17 @@ const Jn = ({
|
|
|
3410
3402
|
type: m = "text",
|
|
3411
3403
|
helperText: y = "",
|
|
3412
3404
|
rightElement: w,
|
|
3413
|
-
rightElementClassName:
|
|
3405
|
+
rightElementClassName: I,
|
|
3414
3406
|
size: k = "md",
|
|
3415
3407
|
...Q
|
|
3416
3408
|
}, L) => {
|
|
3417
|
-
const [Z, $] =
|
|
3409
|
+
const [Z, $] = Mn(), [B, U] = z(0), S = Un({ id: e, prefix: `${Qt}-` }), M = `${t} error, ${y}`, K = x(null), T = x(null), C = {
|
|
3418
3410
|
xs: { label: "-25px", helperText: "30px" },
|
|
3419
3411
|
sm: { label: "-29px", helperText: "34px" },
|
|
3420
3412
|
md: { label: "-33px", helperText: "38px" },
|
|
3421
3413
|
lg: { label: "-15px", helperText: "22px" },
|
|
3422
3414
|
xl: { label: "-19px", helperText: "25px" }
|
|
3423
|
-
}, O =
|
|
3415
|
+
}, O = jn({
|
|
3424
3416
|
className: o,
|
|
3425
3417
|
inputClassName: s,
|
|
3426
3418
|
error: a,
|
|
@@ -3430,14 +3422,14 @@ const Jn = ({
|
|
|
3430
3422
|
noBorder: f,
|
|
3431
3423
|
mode: i,
|
|
3432
3424
|
size: k,
|
|
3433
|
-
rightElementClassName:
|
|
3425
|
+
rightElementClassName: I
|
|
3434
3426
|
});
|
|
3435
3427
|
return Ne(() => {
|
|
3436
3428
|
$ && $.width && U($.width + 18 + 10);
|
|
3437
3429
|
}, [$]), Ne(() => {
|
|
3438
3430
|
var V, g;
|
|
3439
3431
|
const { label: E, helperText: b } = C[k];
|
|
3440
|
-
(V = K == null ? void 0 : K.current) == null || V.style.setProperty("--av-text-input-label", E), (g =
|
|
3432
|
+
(V = K == null ? void 0 : K.current) == null || V.style.setProperty("--av-text-input-label", E), (g = T == null ? void 0 : T.current) == null || g.style.setProperty(
|
|
3441
3433
|
"--av-text-input-helper-text",
|
|
3442
3434
|
b
|
|
3443
3435
|
);
|
|
@@ -3480,7 +3472,7 @@ const Jn = ({
|
|
|
3480
3472
|
y && /* @__PURE__ */ l(
|
|
3481
3473
|
"div",
|
|
3482
3474
|
{
|
|
3483
|
-
ref:
|
|
3475
|
+
ref: T,
|
|
3484
3476
|
id: `${S}-helper`,
|
|
3485
3477
|
className: O.helperText,
|
|
3486
3478
|
children: y
|
|
@@ -3494,20 +3486,20 @@ const Jn = ({
|
|
|
3494
3486
|
children: w
|
|
3495
3487
|
}
|
|
3496
3488
|
),
|
|
3497
|
-
a && y && /* @__PURE__ */ l(
|
|
3489
|
+
a && y && /* @__PURE__ */ l(tr, { politeness: "polite", clearAnnouncementDelay: 500, children: M })
|
|
3498
3490
|
] });
|
|
3499
3491
|
}
|
|
3500
3492
|
);
|
|
3501
|
-
|
|
3502
|
-
function
|
|
3503
|
-
return
|
|
3493
|
+
nt.displayName = "TextInput";
|
|
3494
|
+
function zn(e) {
|
|
3495
|
+
return De(() => e.every((t) => t == null) ? () => {
|
|
3504
3496
|
} : (t) => {
|
|
3505
3497
|
e.forEach((r) => {
|
|
3506
3498
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
3507
3499
|
});
|
|
3508
3500
|
}, e);
|
|
3509
3501
|
}
|
|
3510
|
-
const
|
|
3502
|
+
const qn = 500, Xn = 5e3, Qn = 2e4, rr = X.forwardRef(
|
|
3511
3503
|
({
|
|
3512
3504
|
name: e,
|
|
3513
3505
|
disabled: t,
|
|
@@ -3524,38 +3516,38 @@ const Xn = 500, Qn = 5e3, Zn = 2e4, nr = X.forwardRef(
|
|
|
3524
3516
|
const [c, m] = z(!0), [y, w] = z({
|
|
3525
3517
|
message: null,
|
|
3526
3518
|
politeness: null
|
|
3527
|
-
}),
|
|
3528
|
-
k.current && clearTimeout(k.current),
|
|
3529
|
-
|
|
3530
|
-
announcementTimeout:
|
|
3519
|
+
}), I = x(!0), k = x(null), Q = x(null), L = zn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
|
|
3520
|
+
k.current && clearTimeout(k.current), I.current || (k.current = setTimeout(() => {
|
|
3521
|
+
I.current = !0, m(!0), w({
|
|
3522
|
+
announcementTimeout: Xn,
|
|
3531
3523
|
politeness: "polite",
|
|
3532
3524
|
message: `${r} hiding characters`
|
|
3533
3525
|
}), n && n(!0);
|
|
3534
|
-
},
|
|
3535
|
-
}, B = (
|
|
3536
|
-
|
|
3537
|
-
const C = !
|
|
3538
|
-
|
|
3539
|
-
announcementTimeout:
|
|
3526
|
+
}, Qn));
|
|
3527
|
+
}, B = (T) => {
|
|
3528
|
+
T.preventDefault();
|
|
3529
|
+
const C = !I.current;
|
|
3530
|
+
I.current = C, $(), m(C), w({
|
|
3531
|
+
announcementTimeout: qn,
|
|
3540
3532
|
politeness: "assertive",
|
|
3541
3533
|
message: C ? "Characters hidden" : "Characters showing"
|
|
3542
3534
|
}), n && n(C);
|
|
3543
|
-
}, U = (
|
|
3535
|
+
}, U = (T) => {
|
|
3544
3536
|
var C;
|
|
3545
|
-
const { relatedTarget: O } =
|
|
3537
|
+
const { relatedTarget: O } = T, V = (C = Q.current) == null ? void 0 : C.parentElement;
|
|
3546
3538
|
V != null && V.contains(O) || d && d();
|
|
3547
|
-
}, S = (
|
|
3548
|
-
$(), s && s(
|
|
3549
|
-
}, M = (
|
|
3550
|
-
$(), i && i(
|
|
3551
|
-
}, K = (
|
|
3552
|
-
$(), o && o(
|
|
3539
|
+
}, S = (T) => {
|
|
3540
|
+
$(), s && s(T), U(T);
|
|
3541
|
+
}, M = (T) => {
|
|
3542
|
+
$(), i && i(T);
|
|
3543
|
+
}, K = (T) => {
|
|
3544
|
+
$(), o && o(T);
|
|
3553
3545
|
};
|
|
3554
3546
|
return Y(() => () => {
|
|
3555
3547
|
k.current && clearTimeout(k.current);
|
|
3556
3548
|
}, []), /* @__PURE__ */ D(Re, { children: [
|
|
3557
3549
|
/* @__PURE__ */ l(
|
|
3558
|
-
|
|
3550
|
+
nt,
|
|
3559
3551
|
{
|
|
3560
3552
|
ref: L,
|
|
3561
3553
|
name: e,
|
|
@@ -3577,7 +3569,7 @@ const Xn = 500, Qn = 5e3, Zn = 2e4, nr = X.forwardRef(
|
|
|
3577
3569
|
}
|
|
3578
3570
|
),
|
|
3579
3571
|
/* @__PURE__ */ l(
|
|
3580
|
-
|
|
3572
|
+
tr,
|
|
3581
3573
|
{
|
|
3582
3574
|
role: "status",
|
|
3583
3575
|
politeness: y.politeness,
|
|
@@ -3588,7 +3580,7 @@ const Xn = 500, Qn = 5e3, Zn = 2e4, nr = X.forwardRef(
|
|
|
3588
3580
|
] });
|
|
3589
3581
|
}
|
|
3590
3582
|
);
|
|
3591
|
-
|
|
3583
|
+
rr.displayName = "TextInputMask";
|
|
3592
3584
|
/*!
|
|
3593
3585
|
@versini/ui-textinput v3.0.13
|
|
3594
3586
|
© 2025 gizmette.com
|
|
@@ -3602,7 +3594,7 @@ try {
|
|
|
3602
3594
|
});
|
|
3603
3595
|
} catch {
|
|
3604
3596
|
}
|
|
3605
|
-
const
|
|
3597
|
+
const Zn = "ASK! ME! ANYTHING!", ar = "Callisto", eo = "Log in", to = "Sign in with a Passkey", Xo = "Log out", ro = "Password", Qo = "Profile", Zo = "Settings", es = "Chat history", ts = "About", rs = "Type your question here", as = "{{clipboard}}", ns = `Sometimes, ${ar} hallucinates. Review important details.`, os = "Prompts are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder {{clipboard}} to automatically insert the content of your clipboard.", ss = {
|
|
3606
3598
|
PREFERENCES: {
|
|
3607
3599
|
TITLE: "User profile",
|
|
3608
3600
|
NAME: "Name",
|
|
@@ -3642,14 +3634,14 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3642
3634
|
TITLE: "Chat Details",
|
|
3643
3635
|
INSTRUCTION: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more."
|
|
3644
3636
|
}
|
|
3645
|
-
},
|
|
3646
|
-
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(
|
|
3637
|
+
}, ao = () => /* @__PURE__ */ D("div", { className: "flex items-center justify-center", children: [
|
|
3638
|
+
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(kn, {}) }),
|
|
3647
3639
|
/* @__PURE__ */ D("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3648
|
-
/* @__PURE__ */ l("h1", { children:
|
|
3649
|
-
/* @__PURE__ */ l("h2", { children:
|
|
3640
|
+
/* @__PURE__ */ l("h1", { children: ar }),
|
|
3641
|
+
/* @__PURE__ */ l("h2", { children: Zn })
|
|
3650
3642
|
] })
|
|
3651
|
-
] }),
|
|
3652
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } =
|
|
3643
|
+
] }), no = () => {
|
|
3644
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = zt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
|
|
3653
3645
|
username: "",
|
|
3654
3646
|
password: ""
|
|
3655
3647
|
}), u = async (c) => {
|
|
@@ -3664,9 +3656,9 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3664
3656
|
}), Y(() => {
|
|
3665
3657
|
t && s(t);
|
|
3666
3658
|
}, [t]), /* @__PURE__ */ l(Re, { children: /* @__PURE__ */ D(
|
|
3667
|
-
|
|
3659
|
+
xn,
|
|
3668
3660
|
{
|
|
3669
|
-
className:
|
|
3661
|
+
className: Qa({
|
|
3670
3662
|
extraClass: "mt-5"
|
|
3671
3663
|
}),
|
|
3672
3664
|
noMargin: !0,
|
|
@@ -3675,16 +3667,16 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3675
3667
|
/* @__PURE__ */ l(
|
|
3676
3668
|
"div",
|
|
3677
3669
|
{
|
|
3678
|
-
className:
|
|
3670
|
+
className: Xa({
|
|
3679
3671
|
extraClass: "rounded-md"
|
|
3680
3672
|
}),
|
|
3681
|
-
children: /* @__PURE__ */ l(
|
|
3673
|
+
children: /* @__PURE__ */ l(ao, {})
|
|
3682
3674
|
}
|
|
3683
3675
|
),
|
|
3684
|
-
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(
|
|
3676
|
+
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(On, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ D(_n, { mode: "dark", children: [
|
|
3685
3677
|
/* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
3686
3678
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3687
|
-
|
|
3679
|
+
nt,
|
|
3688
3680
|
{
|
|
3689
3681
|
className: "mt-7",
|
|
3690
3682
|
required: !0,
|
|
@@ -3705,7 +3697,7 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3705
3697
|
}
|
|
3706
3698
|
) }),
|
|
3707
3699
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3708
|
-
|
|
3700
|
+
rr,
|
|
3709
3701
|
{
|
|
3710
3702
|
className: "mt-7",
|
|
3711
3703
|
required: !0,
|
|
@@ -3715,14 +3707,14 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3715
3707
|
mode: "dark",
|
|
3716
3708
|
focusMode: "light",
|
|
3717
3709
|
name: "password",
|
|
3718
|
-
label:
|
|
3710
|
+
label: ro,
|
|
3719
3711
|
rightElement: /* @__PURE__ */ l(
|
|
3720
|
-
|
|
3712
|
+
Oe,
|
|
3721
3713
|
{
|
|
3722
3714
|
focusMode: "light",
|
|
3723
3715
|
mode: "dark",
|
|
3724
3716
|
label: i ? "Show" : "Hide",
|
|
3725
|
-
children: i ? /* @__PURE__ */ l(
|
|
3717
|
+
children: i ? /* @__PURE__ */ l(Nn, {}) : /* @__PURE__ */ l(An, {})
|
|
3726
3718
|
}
|
|
3727
3719
|
),
|
|
3728
3720
|
onMaskChange: d,
|
|
@@ -3737,7 +3729,7 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3737
3729
|
}
|
|
3738
3730
|
) }),
|
|
3739
3731
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3740
|
-
|
|
3732
|
+
Xt,
|
|
3741
3733
|
{
|
|
3742
3734
|
mode: "light",
|
|
3743
3735
|
focusMode: "light",
|
|
@@ -3745,22 +3737,22 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3745
3737
|
noBorder: !0,
|
|
3746
3738
|
type: "submit",
|
|
3747
3739
|
className: "mt-7",
|
|
3748
|
-
children:
|
|
3740
|
+
children: eo
|
|
3749
3741
|
}
|
|
3750
3742
|
) }),
|
|
3751
|
-
!
|
|
3743
|
+
!Za() && /* @__PURE__ */ D(Re, { children: [
|
|
3752
3744
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
3753
3745
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3754
|
-
|
|
3746
|
+
Oe,
|
|
3755
3747
|
{
|
|
3756
3748
|
variant: "selected",
|
|
3757
3749
|
mode: "dark",
|
|
3758
3750
|
focusMode: "light",
|
|
3759
3751
|
fullWidth: !0,
|
|
3760
3752
|
className: "mb-4",
|
|
3761
|
-
labelRight:
|
|
3753
|
+
labelRight: to,
|
|
3762
3754
|
onClick: r,
|
|
3763
|
-
children: /* @__PURE__ */ l(
|
|
3755
|
+
children: /* @__PURE__ */ l(Rn, { size: "size-7" })
|
|
3764
3756
|
}
|
|
3765
3757
|
) })
|
|
3766
3758
|
] })
|
|
@@ -3768,74 +3760,74 @@ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in w
|
|
|
3768
3760
|
]
|
|
3769
3761
|
}
|
|
3770
3762
|
) });
|
|
3771
|
-
},
|
|
3763
|
+
}, oo = new URL(document.location.href).searchParams, so = !!oo.get("debug") || !1, io = ir(() => import(
|
|
3772
3764
|
/* webpackChunkName: "LazyApp" */
|
|
3773
|
-
"./App.
|
|
3774
|
-
).then((e) => e.App)),
|
|
3775
|
-
const { isAuthenticated: t } =
|
|
3776
|
-
return t ? /* @__PURE__ */ l(
|
|
3777
|
-
},
|
|
3765
|
+
"./App.fUQ6Upmp.js"
|
|
3766
|
+
).then((e) => e.App)), co = ({ isComponent: e }) => {
|
|
3767
|
+
const { isAuthenticated: t } = zt();
|
|
3768
|
+
return t ? /* @__PURE__ */ l(cr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(io, { isComponent: e }) }) : /* @__PURE__ */ l(no, {});
|
|
3769
|
+
}, lo = ({
|
|
3778
3770
|
isComponent: e = !1,
|
|
3779
|
-
domain: t =
|
|
3780
|
-
}) => /* @__PURE__ */ l(
|
|
3771
|
+
domain: t = qa
|
|
3772
|
+
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: so, children: /* @__PURE__ */ l(co, { isComponent: e }) }), is = ({ domain: e }) => /* @__PURE__ */ l(lo, { isComponent: !0, domain: e });
|
|
3781
3773
|
export {
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3774
|
+
ts as ABOUT_TITLE,
|
|
3775
|
+
Oo as ACTION_RESET_PROMPT,
|
|
3776
|
+
vo as ACTION_SEARCH,
|
|
3777
|
+
xo as ACTION_SORT,
|
|
3778
|
+
Co as ACTION_TOGGLE_PROMPT,
|
|
3779
|
+
ar as APP_NAME,
|
|
3780
|
+
Xt as C,
|
|
3781
|
+
ss as CARDS,
|
|
3782
|
+
as as CLIPBOARD_PROMPT,
|
|
3783
|
+
Ao as DEFAULT_AI_PROVIDER,
|
|
3784
|
+
Vo as DEFAULT_ICON_ACTION_SIZE,
|
|
3785
|
+
ko as ERROR_MESSAGE,
|
|
3786
|
+
ns as FOOTER_DISCLAIMER,
|
|
3787
|
+
es as HISTORY_TITLE,
|
|
3788
|
+
Ho as INFINITE_SCROLL_LIMIT,
|
|
3789
|
+
Ko as INFINITE_SCROLL_THRESHOLD,
|
|
3790
|
+
On as L,
|
|
3791
|
+
Do as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3792
|
+
Po as LOCAL_STORAGE_PREFIX,
|
|
3793
|
+
Mo as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
3794
|
+
Lo as LOCAL_STORAGE_SEARCH,
|
|
3795
|
+
$o as LOCAL_STORAGE_SORT,
|
|
3796
|
+
Xo as LOG_OUT,
|
|
3797
|
+
ao as Logo,
|
|
3806
3798
|
me as M,
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3799
|
+
Qo as PROFILE_TITLE,
|
|
3800
|
+
os as PROMPTS_DESCRIPTION,
|
|
3801
|
+
Wo as PROMPT_CLASSNAME,
|
|
3802
|
+
Bo as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
3803
|
+
No as PROVIDER_ANTHROPIC,
|
|
3804
|
+
Ro as PROVIDER_OPENAI,
|
|
3805
|
+
_n as R,
|
|
3814
3806
|
Io as ROLE_ASSISTANT,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3807
|
+
_o as ROLE_HIDDEN,
|
|
3808
|
+
So as ROLE_INTERNAL,
|
|
3809
|
+
To as ROLE_SYSTEM,
|
|
3810
|
+
wo as ROLE_USER,
|
|
3811
|
+
Zo as SETTINGS_TITLE,
|
|
3812
|
+
Uo as STATS_SEPARATOR,
|
|
3813
|
+
is as SassySaint,
|
|
3814
|
+
rs as TYPE_QUESTION,
|
|
3815
|
+
zo as debounce,
|
|
3816
|
+
Fo as durationFormatter,
|
|
3817
|
+
Ke as f,
|
|
3818
|
+
nt as fe,
|
|
3819
|
+
Jo as getCurrentGeoLocation,
|
|
3820
|
+
Qa as getMainPaddingClass,
|
|
3821
|
+
Xa as getMessageContaintWrapperClass,
|
|
3822
|
+
Za as isElectron,
|
|
3823
|
+
en as isProbablyMobile,
|
|
3824
|
+
qo as isProbablyiPhone,
|
|
3833
3825
|
re as j,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3826
|
+
Rn as l,
|
|
3827
|
+
Yo as numberFormatter,
|
|
3828
|
+
jo as pluralize,
|
|
3829
|
+
xn as r,
|
|
3830
|
+
Oe as re,
|
|
3831
|
+
Go as renderDataAsList,
|
|
3832
|
+
zt as un
|
|
3841
3833
|
};
|