@versini/sassysaint 5.3.14 → 5.3.16
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/{LazyApp.BiKOKU9f.js → LazyApp.By3JU--q.js} +57 -57
- package/dist/chunks/{LazyHeader.CzPaON9J.js → LazyHeader.CtbnJfCu.js} +72 -69
- package/dist/chunks/{LazyMarkdownWithExtra.CPeY_wwW.js → LazyMarkdownWithExtra.5DIzO8pJ.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.BRbekCmk.js → LazyMessageAssistant.DxbwaE9c.js} +305 -305
- package/dist/chunks/{index.C37kbuLu.js → index.BnAnY2Vs.js} +164 -164
- package/dist/chunks/{index.BQnOdwWT.js → index.C_44Odxq.js} +283 -283
- package/dist/chunks/{index.AUArUGH7.FZU7Bha5.js → index.DfFZfYdy.DM48ssjd.js} +21 -21
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as I, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import O, { createContext as cr, useReducer as St, useRef as
|
|
2
|
+
import O, { createContext as cr, useReducer as St, useRef as M, useCallback as q, useEffect as Q, useContext as Qe, useSyncExternalStore as lr, useId as kt, useState as j, useLayoutEffect as it, useMemo as _t, lazy as At, Suspense as Nt } from "react";
|
|
3
3
|
import f from "clsx";
|
|
4
|
-
var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
4
|
+
var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
6
|
@versini/auth-provider v7.3.3
|
|
7
7
|
© 2024 gizmette.com
|
|
@@ -15,7 +15,7 @@ try {
|
|
|
15
15
|
});
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function $(e) {
|
|
19
19
|
const t = new Uint8Array(e);
|
|
20
20
|
let r = "";
|
|
21
21
|
for (const a of t)
|
|
@@ -42,11 +42,11 @@ function Rt(e) {
|
|
|
42
42
|
function xt(e) {
|
|
43
43
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
let x = class extends Error {
|
|
46
46
|
constructor({ message: t, code: r, cause: a, name: n }) {
|
|
47
47
|
super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
function mr({ error: e, options: t }) {
|
|
51
51
|
var a, n;
|
|
52
52
|
const { publicKey: r } = t;
|
|
@@ -182,23 +182,23 @@ async function gr(e) {
|
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
183
183
|
try {
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
|
-
c !== null && (h =
|
|
185
|
+
c !== null && (h = $(c));
|
|
186
186
|
} catch (c) {
|
|
187
187
|
We("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let p;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
|
-
p =
|
|
192
|
+
p = $(o.getAuthenticatorData());
|
|
193
193
|
} catch (c) {
|
|
194
194
|
We("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
198
|
-
rawId:
|
|
198
|
+
rawId: $(n),
|
|
199
199
|
response: {
|
|
200
|
-
attestationObject:
|
|
201
|
-
clientDataJSON:
|
|
200
|
+
attestationObject: $(o.attestationObject),
|
|
201
|
+
clientDataJSON: $(o.clientDataJSON),
|
|
202
202
|
transports: i,
|
|
203
203
|
publicKeyAlgorithm: u,
|
|
204
204
|
publicKey: h,
|
|
@@ -289,13 +289,13 @@ async function br(e, t = !1) {
|
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
290
290
|
const { id: s, rawId: i, response: u, type: h } = o;
|
|
291
291
|
let p;
|
|
292
|
-
return u.userHandle && (p =
|
|
292
|
+
return u.userHandle && (p = $(u.userHandle)), {
|
|
293
293
|
id: s,
|
|
294
|
-
rawId:
|
|
294
|
+
rawId: $(i),
|
|
295
295
|
response: {
|
|
296
|
-
authenticatorData:
|
|
297
|
-
clientDataJSON:
|
|
298
|
-
signature:
|
|
296
|
+
authenticatorData: $(u.authenticatorData),
|
|
297
|
+
clientDataJSON: $(u.clientDataJSON),
|
|
298
|
+
signature: $(u.signature),
|
|
299
299
|
userHandle: p
|
|
300
300
|
},
|
|
301
301
|
type: h,
|
|
@@ -325,7 +325,7 @@ const ue = {
|
|
|
325
325
|
PASSKEY: "passkey"
|
|
326
326
|
}, Pt = {
|
|
327
327
|
CLIENT_ID: "X-Auth-ClientId"
|
|
328
|
-
},
|
|
328
|
+
}, A = {
|
|
329
329
|
ALG: "RS256",
|
|
330
330
|
USER_ID_KEY: "sub",
|
|
331
331
|
USERNAME_KEY: "username",
|
|
@@ -346,12 +346,12 @@ 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
|
-
},
|
|
354
|
+
}, Me = crypto, Dt = (e) => e instanceof CryptoKey, we = new TextEncoder(), be = new TextDecoder();
|
|
355
355
|
function wr(...e) {
|
|
356
356
|
const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
|
|
357
357
|
let a = 0;
|
|
@@ -381,7 +381,7 @@ let te = class extends Error {
|
|
|
381
381
|
var r;
|
|
382
382
|
super(t), this.code = "ERR_JOSE_GENERIC", this.name = this.constructor.name, (r = Error.captureStackTrace) == null || r.call(Error, this, this.constructor);
|
|
383
383
|
}
|
|
384
|
-
},
|
|
384
|
+
}, H = class extends te {
|
|
385
385
|
static get code() {
|
|
386
386
|
return "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
387
387
|
}
|
|
@@ -412,7 +412,7 @@ let W = class extends te {
|
|
|
412
412
|
static get code() {
|
|
413
413
|
return "ERR_JOSE_NOT_SUPPORTED";
|
|
414
414
|
}
|
|
415
|
-
},
|
|
415
|
+
}, _ = class extends te {
|
|
416
416
|
constructor() {
|
|
417
417
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
418
418
|
}
|
|
@@ -466,7 +466,7 @@ function kr(e, t) {
|
|
|
466
466
|
throw new TypeError(r);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function _r(e, t, ...r) {
|
|
470
470
|
switch (t) {
|
|
471
471
|
case "HS256":
|
|
472
472
|
case "HS384":
|
|
@@ -518,7 +518,7 @@ function Ar(e, t, ...r) {
|
|
|
518
518
|
}
|
|
519
519
|
kr(e, r);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Lt(e, t, ...r) {
|
|
522
522
|
var a;
|
|
523
523
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
524
524
|
const n = r.pop();
|
|
@@ -526,11 +526,11 @@ function $t(e, t, ...r) {
|
|
|
526
526
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
527
527
|
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;
|
|
528
528
|
}
|
|
529
|
-
const lt = (e, ...t) =>
|
|
530
|
-
function
|
|
531
|
-
return
|
|
529
|
+
const lt = (e, ...t) => Lt("Key must be ", e, ...t);
|
|
530
|
+
function Mt(e, t, ...r) {
|
|
531
|
+
return Lt(`Key for the ${e} algorithm must be `, t, ...r);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const Ut = (e) => Dt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = ["CryptoKey"], Ar = (...e) => {
|
|
534
534
|
const t = e.filter(Boolean);
|
|
535
535
|
if (t.length === 0 || t.length === 1)
|
|
536
536
|
return !0;
|
|
@@ -653,7 +653,7 @@ function Pr(e) {
|
|
|
653
653
|
}
|
|
654
654
|
return { algorithm: t, keyUsages: r };
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const Kt = async (e) => {
|
|
657
657
|
if (!e.alg)
|
|
658
658
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
659
659
|
const { algorithm: t, keyUsages: r } = Pr(e), a = [
|
|
@@ -661,28 +661,28 @@ const Ut = async (e) => {
|
|
|
661
661
|
e.ext ?? !1,
|
|
662
662
|
e.key_ops ?? r
|
|
663
663
|
], n = { ...e };
|
|
664
|
-
return delete n.alg, delete n.use,
|
|
665
|
-
},
|
|
664
|
+
return delete n.alg, delete n.use, Me.subtle.importKey("jwk", n, ...a);
|
|
665
|
+
}, Ht = (e) => X(e);
|
|
666
666
|
let ae, ne;
|
|
667
|
-
const
|
|
667
|
+
const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Oe = async (e, t, r, a, n = !1) => {
|
|
668
668
|
let o = e.get(t);
|
|
669
669
|
if (o != null && o[a])
|
|
670
670
|
return o[a];
|
|
671
|
-
const s = await
|
|
671
|
+
const s = await Kt({ ...r, alg: a });
|
|
672
672
|
return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
|
|
673
673
|
}, Dr = (e, t) => {
|
|
674
|
-
if (
|
|
674
|
+
if ($t(e)) {
|
|
675
675
|
let r = e.export({ format: "jwk" });
|
|
676
|
-
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ?
|
|
676
|
+
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Ht(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, r, t));
|
|
677
677
|
}
|
|
678
678
|
return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, e, t, !0)) : e;
|
|
679
|
-
},
|
|
680
|
-
if (
|
|
679
|
+
}, Lr = (e, t) => {
|
|
680
|
+
if ($t(e)) {
|
|
681
681
|
let r = e.export({ format: "jwk" });
|
|
682
|
-
return r.k ?
|
|
682
|
+
return r.k ? Ht(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, r, t));
|
|
683
683
|
}
|
|
684
684
|
return he(e) ? e.k ? X(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, e, t, !0)) : e;
|
|
685
|
-
},
|
|
685
|
+
}, Mr = { normalizePublicKey: Dr, normalizePrivateKey: Lr }, z = (e, t, r = 0) => {
|
|
686
686
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
|
687
687
|
const a = e.indexOf(t[0], r);
|
|
688
688
|
if (a === -1)
|
|
@@ -708,7 +708,7 @@ const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
708
708
|
default:
|
|
709
709
|
throw new W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
710
710
|
}
|
|
711
|
-
},
|
|
711
|
+
}, Ur = async (e, t, r, a, n) => {
|
|
712
712
|
let o, s;
|
|
713
713
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((u) => u.charCodeAt(0)));
|
|
714
714
|
switch (a) {
|
|
@@ -754,14 +754,14 @@ const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
754
754
|
default:
|
|
755
755
|
throw new W('Invalid or unsupported "alg" (Algorithm) value');
|
|
756
756
|
}
|
|
757
|
-
return
|
|
758
|
-
},
|
|
759
|
-
async function
|
|
757
|
+
return Me.subtle.importKey(t, i, o, !1, s);
|
|
758
|
+
}, Kr = (e, t, r) => Ur(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
759
|
+
async function Hr(e, t, r) {
|
|
760
760
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
761
761
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
762
|
-
return
|
|
762
|
+
return Kr(e, t);
|
|
763
763
|
}
|
|
764
|
-
async function
|
|
764
|
+
async function $r(e, t) {
|
|
765
765
|
if (!me(e))
|
|
766
766
|
throw new TypeError("JWK must be an object");
|
|
767
767
|
switch (t || (t = e.alg), e.kty) {
|
|
@@ -774,7 +774,7 @@ async function Hr(e, t) {
|
|
|
774
774
|
throw new W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
775
775
|
case "EC":
|
|
776
776
|
case "OKP":
|
|
777
|
-
return
|
|
777
|
+
return Kt({ ...e, alg: t });
|
|
778
778
|
default:
|
|
779
779
|
throw new W('Unsupported "kty" (Key Type) Parameter value');
|
|
780
780
|
}
|
|
@@ -795,8 +795,8 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], qe = (e, t, r) =>
|
|
|
795
795
|
return;
|
|
796
796
|
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');
|
|
797
797
|
}
|
|
798
|
-
if (!
|
|
799
|
-
throw new TypeError(
|
|
798
|
+
if (!Ut(t))
|
|
799
|
+
throw new TypeError(Mt(e, t, ...Ce, "Uint8Array", a ? "JSON Web Key" : null));
|
|
800
800
|
if (t.type !== "secret")
|
|
801
801
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
802
802
|
}
|
|
@@ -812,8 +812,8 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], qe = (e, t, r) =>
|
|
|
812
812
|
return;
|
|
813
813
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
814
814
|
}
|
|
815
|
-
if (!
|
|
816
|
-
throw new TypeError(
|
|
815
|
+
if (!Ut(t))
|
|
816
|
+
throw new TypeError(Mt(e, t, ...Ce, a ? "JSON Web Key" : null));
|
|
817
817
|
if (t.type === "secret")
|
|
818
818
|
throw new TypeError(`${de(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
819
819
|
if (r === "sign" && t.type === "public")
|
|
@@ -881,12 +881,12 @@ function Jr(e, t) {
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
async function Yr(e, t, r) {
|
|
884
|
-
if (t = await
|
|
885
|
-
return
|
|
884
|
+
if (t = await Mr.normalizePublicKey(t, e), Dt(t))
|
|
885
|
+
return _r(t, e, r), t;
|
|
886
886
|
if (t instanceof Uint8Array) {
|
|
887
887
|
if (!e.startsWith("HS"))
|
|
888
888
|
throw new TypeError(lt(t, ...Ce));
|
|
889
|
-
return
|
|
889
|
+
return Me.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
890
890
|
}
|
|
891
891
|
throw new TypeError(lt(t, ...Ce, "Uint8Array", "JSON Web Key"));
|
|
892
892
|
}
|
|
@@ -895,60 +895,60 @@ const Fr = async (e, t, r, a) => {
|
|
|
895
895
|
Rr(e, n);
|
|
896
896
|
const o = Jr(e, n.algorithm);
|
|
897
897
|
try {
|
|
898
|
-
return await
|
|
898
|
+
return await Me.subtle.verify(o, n, r, a);
|
|
899
899
|
} catch {
|
|
900
900
|
return !1;
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
903
|
async function zr(e, t, r) {
|
|
904
904
|
if (!me(e))
|
|
905
|
-
throw new
|
|
905
|
+
throw new _("Flattened JWS must be an object");
|
|
906
906
|
if (e.protected === void 0 && e.header === void 0)
|
|
907
|
-
throw new
|
|
907
|
+
throw new _('Flattened JWS must have either of the "protected" or "header" members');
|
|
908
908
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
|
909
|
-
throw new
|
|
909
|
+
throw new _("JWS Protected Header incorrect type");
|
|
910
910
|
if (e.payload === void 0)
|
|
911
|
-
throw new
|
|
911
|
+
throw new _("JWS Payload missing");
|
|
912
912
|
if (typeof e.signature != "string")
|
|
913
|
-
throw new
|
|
913
|
+
throw new _("JWS Signature missing or incorrect type");
|
|
914
914
|
if (e.header !== void 0 && !me(e.header))
|
|
915
|
-
throw new
|
|
915
|
+
throw new _("JWS Unprotected Header incorrect type");
|
|
916
916
|
let a = {};
|
|
917
917
|
if (e.protected)
|
|
918
918
|
try {
|
|
919
919
|
const y = X(e.protected);
|
|
920
920
|
a = JSON.parse(be.decode(y));
|
|
921
921
|
} catch {
|
|
922
|
-
throw new
|
|
922
|
+
throw new _("JWS Protected Header is invalid");
|
|
923
923
|
}
|
|
924
|
-
if (!
|
|
925
|
-
throw new
|
|
924
|
+
if (!Ar(a, e.header))
|
|
925
|
+
throw new _("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
926
926
|
const n = {
|
|
927
927
|
...a,
|
|
928
928
|
...e.header
|
|
929
|
-
}, o = Gr(
|
|
929
|
+
}, o = Gr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
930
930
|
let s = !0;
|
|
931
931
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
932
|
-
throw new
|
|
932
|
+
throw new _('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
933
933
|
const { alg: i } = n;
|
|
934
934
|
if (typeof i != "string" || !i)
|
|
935
|
-
throw new
|
|
935
|
+
throw new _('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
936
936
|
const u = r && Vr("algorithms", r.algorithms);
|
|
937
937
|
if (u && !u.has(i))
|
|
938
938
|
throw new Ir('"alg" (Algorithm) Header Parameter value not allowed');
|
|
939
939
|
if (s) {
|
|
940
940
|
if (typeof e.payload != "string")
|
|
941
|
-
throw new
|
|
941
|
+
throw new _("JWS Payload must be a string");
|
|
942
942
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
943
|
-
throw new
|
|
943
|
+
throw new _("JWS Payload must be a string or an Uint8Array instance");
|
|
944
944
|
let h = !1;
|
|
945
|
-
typeof t == "function" ? (t = await t(a, e), h = !0, ut(i, t, "verify"), he(t) && (t = await
|
|
945
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, ut(i, t, "verify"), he(t) && (t = await $r(t, i))) : ut(i, t, "verify");
|
|
946
946
|
const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
|
|
947
947
|
let m;
|
|
948
948
|
try {
|
|
949
949
|
m = X(e.signature);
|
|
950
950
|
} catch {
|
|
951
|
-
throw new
|
|
951
|
+
throw new _("Failed to base64url decode the signature");
|
|
952
952
|
}
|
|
953
953
|
if (!await Fr(i, t, m, p))
|
|
954
954
|
throw new vr();
|
|
@@ -957,7 +957,7 @@ async function zr(e, t, r) {
|
|
|
957
957
|
try {
|
|
958
958
|
c = X(e.payload);
|
|
959
959
|
} catch {
|
|
960
|
-
throw new
|
|
960
|
+
throw new _("Failed to base64url decode the payload");
|
|
961
961
|
}
|
|
962
962
|
else typeof e.payload == "string" ? c = we.encode(e.payload) : c = e.payload;
|
|
963
963
|
const d = { payload: c };
|
|
@@ -965,10 +965,10 @@ async function zr(e, t, r) {
|
|
|
965
965
|
}
|
|
966
966
|
async function jr(e, t, r) {
|
|
967
967
|
if (e instanceof Uint8Array && (e = be.decode(e)), typeof e != "string")
|
|
968
|
-
throw new
|
|
968
|
+
throw new _("Compact JWS must be a string or Uint8Array");
|
|
969
969
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
970
970
|
if (s !== 3)
|
|
971
|
-
throw new
|
|
971
|
+
throw new _("Invalid Compact JWS");
|
|
972
972
|
const i = await zr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
973
973
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
974
974
|
}
|
|
@@ -1025,18 +1025,18 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, et = Gt
|
|
|
1025
1025
|
throw new Y("JWT Claims Set must be a top-level JSON object");
|
|
1026
1026
|
const { typ: n } = r;
|
|
1027
1027
|
if (n && (typeof e.typ != "string" || ht(e.typ) !== ht(n)))
|
|
1028
|
-
throw new
|
|
1028
|
+
throw new H('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
1029
1029
|
const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
|
|
1030
1030
|
h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
1031
1031
|
for (const y of new Set(p.reverse()))
|
|
1032
1032
|
if (!(y in a))
|
|
1033
|
-
throw new
|
|
1033
|
+
throw new H(`missing required "${y}" claim`, a, y, "missing");
|
|
1034
1034
|
if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
|
|
1035
|
-
throw new
|
|
1035
|
+
throw new H('unexpected "iss" claim value', a, "iss", "check_failed");
|
|
1036
1036
|
if (i && a.sub !== i)
|
|
1037
|
-
throw new
|
|
1037
|
+
throw new H('unexpected "sub" claim value', a, "sub", "check_failed");
|
|
1038
1038
|
if (u && !ea(a.aud, typeof u == "string" ? [u] : u))
|
|
1039
|
-
throw new
|
|
1039
|
+
throw new H('unexpected "aud" claim value', a, "aud", "check_failed");
|
|
1040
1040
|
let m;
|
|
1041
1041
|
switch (typeof r.clockTolerance) {
|
|
1042
1042
|
case "string":
|
|
@@ -1053,16 +1053,16 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, et = Gt
|
|
|
1053
1053
|
}
|
|
1054
1054
|
const { currentDate: c } = r, d = qr(c || /* @__PURE__ */ new Date());
|
|
1055
1055
|
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
1056
|
-
throw new
|
|
1056
|
+
throw new H('"iat" claim must be a number', a, "iat", "invalid");
|
|
1057
1057
|
if (a.nbf !== void 0) {
|
|
1058
1058
|
if (typeof a.nbf != "number")
|
|
1059
|
-
throw new
|
|
1059
|
+
throw new H('"nbf" claim must be a number', a, "nbf", "invalid");
|
|
1060
1060
|
if (a.nbf > d + m)
|
|
1061
|
-
throw new
|
|
1061
|
+
throw new H('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
|
|
1062
1062
|
}
|
|
1063
1063
|
if (a.exp !== void 0) {
|
|
1064
1064
|
if (typeof a.exp != "number")
|
|
1065
|
-
throw new
|
|
1065
|
+
throw new H('"exp" claim must be a number', a, "exp", "invalid");
|
|
1066
1066
|
if (a.exp <= d - m)
|
|
1067
1067
|
throw new ct('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1068
1068
|
}
|
|
@@ -1071,7 +1071,7 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, et = Gt
|
|
|
1071
1071
|
if (y - m > b)
|
|
1072
1072
|
throw new ct('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1073
1073
|
if (y < 0 - m)
|
|
1074
|
-
throw new
|
|
1074
|
+
throw new H('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
|
1075
1075
|
}
|
|
1076
1076
|
return a;
|
|
1077
1077
|
};
|
|
@@ -1112,9 +1112,9 @@ function na(e) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
const fe = async (e) => {
|
|
1114
1114
|
try {
|
|
1115
|
-
const t =
|
|
1115
|
+
const t = A.ALG, r = await Hr(Er, t);
|
|
1116
1116
|
return await ra(e, r, {
|
|
1117
|
-
issuer:
|
|
1117
|
+
issuer: A.ISSUER
|
|
1118
1118
|
});
|
|
1119
1119
|
} catch {
|
|
1120
1120
|
return;
|
|
@@ -1231,7 +1231,7 @@ function Je(e, t, r) {
|
|
|
1231
1231
|
const oe = "Your session has expired. For your security, please log in again to continue.", wa = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Ta = "Error getting access token, please re-authenticate.", Ia = "You forgot to wrap your component in <AuthProvider>.", Pe = {
|
|
1232
1232
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1233
1233
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1234
|
-
}, ke = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json",
|
|
1234
|
+
}, ke = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json", _e = {
|
|
1235
1235
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1236
1236
|
$clientId: String!,
|
|
1237
1237
|
$username: String!,
|
|
@@ -1314,19 +1314,19 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1314
1314
|
}`
|
|
1315
1315
|
}, se = {
|
|
1316
1316
|
GET_REGISTRATION_OPTIONS: {
|
|
1317
|
-
schema:
|
|
1317
|
+
schema: _e.GET_REGISTRATION_OPTIONS,
|
|
1318
1318
|
method: "getPasskeyRegistrationOptions"
|
|
1319
1319
|
},
|
|
1320
1320
|
VERIFY_REGISTRATION: {
|
|
1321
|
-
schema:
|
|
1321
|
+
schema: _e.VERIFY_REGISTRATION,
|
|
1322
1322
|
method: "verifyPasskeyRegistration"
|
|
1323
1323
|
},
|
|
1324
1324
|
GET_AUTHENTICATION_OPTIONS: {
|
|
1325
|
-
schema:
|
|
1325
|
+
schema: _e.GET_AUTHENTICATION_OPTIONS,
|
|
1326
1326
|
method: "getPasskeyAuthenticationOptions"
|
|
1327
1327
|
},
|
|
1328
1328
|
VERIFY_AUTHENTICATION: {
|
|
1329
|
-
schema:
|
|
1329
|
+
schema: _e.VERIFY_AUTHENTICATION,
|
|
1330
1330
|
method: "verifyPasskeyAuthentication"
|
|
1331
1331
|
}
|
|
1332
1332
|
}, ie = async ({
|
|
@@ -1362,7 +1362,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1362
1362
|
} catch (n) {
|
|
1363
1363
|
return console.error(n), { status: B, data: [] };
|
|
1364
1364
|
}
|
|
1365
|
-
},
|
|
1365
|
+
}, Ue = async ({
|
|
1366
1366
|
type: e,
|
|
1367
1367
|
clientId: t,
|
|
1368
1368
|
params: r = {}
|
|
@@ -1400,7 +1400,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1400
1400
|
}, Sa = (e) => {
|
|
1401
1401
|
try {
|
|
1402
1402
|
const t = oa(e);
|
|
1403
|
-
return t ? t[
|
|
1403
|
+
return t ? t[A.USER_ID_KEY] : "";
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
return "";
|
|
1406
1406
|
}
|
|
@@ -1413,8 +1413,8 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1413
1413
|
var n;
|
|
1414
1414
|
try {
|
|
1415
1415
|
return {
|
|
1416
|
-
status: ((n = await
|
|
1417
|
-
type:
|
|
1416
|
+
status: ((n = await Ue({
|
|
1417
|
+
type: Le.LOGOUT,
|
|
1418
1418
|
clientId: t,
|
|
1419
1419
|
params: {
|
|
1420
1420
|
userId: e,
|
|
@@ -1428,7 +1428,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1428
1428
|
status: B
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
|
-
},
|
|
1431
|
+
}, _a = async ({
|
|
1432
1432
|
username: e,
|
|
1433
1433
|
password: t,
|
|
1434
1434
|
clientId: r,
|
|
@@ -1442,8 +1442,8 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1442
1442
|
}) => {
|
|
1443
1443
|
var p;
|
|
1444
1444
|
try {
|
|
1445
|
-
const m = await
|
|
1446
|
-
type:
|
|
1445
|
+
const m = await Ue({
|
|
1446
|
+
type: Le.LOGIN,
|
|
1447
1447
|
clientId: r,
|
|
1448
1448
|
params: {
|
|
1449
1449
|
type: n || ue.ID_AND_ACCESS_TOKEN,
|
|
@@ -1457,12 +1457,12 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1457
1457
|
ua: h
|
|
1458
1458
|
}
|
|
1459
1459
|
}), c = await fe((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
|
|
1460
|
-
return c && c.payload[
|
|
1460
|
+
return c && c.payload[A.USER_ID_KEY] !== "" && c.payload[A.NONCE_KEY] === a ? {
|
|
1461
1461
|
idToken: m.data.idToken,
|
|
1462
1462
|
accessToken: m.data.accessToken,
|
|
1463
1463
|
refreshToken: m.data.refreshToken,
|
|
1464
|
-
userId: c.payload[
|
|
1465
|
-
email: c.payload[
|
|
1464
|
+
userId: c.payload[A.USER_ID_KEY],
|
|
1465
|
+
email: c.payload[A.EMAIL_KEY],
|
|
1466
1466
|
status: !0
|
|
1467
1467
|
} : {
|
|
1468
1468
|
status: !1
|
|
@@ -1472,15 +1472,15 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1472
1472
|
status: !1
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
|
-
},
|
|
1475
|
+
}, Aa = async ({
|
|
1476
1476
|
nonce: e,
|
|
1477
1477
|
clientId: t,
|
|
1478
1478
|
code_challenge: r
|
|
1479
1479
|
}) => {
|
|
1480
1480
|
var a;
|
|
1481
1481
|
try {
|
|
1482
|
-
const n = await
|
|
1483
|
-
type:
|
|
1482
|
+
const n = await Ue({
|
|
1483
|
+
type: Le.CODE,
|
|
1484
1484
|
clientId: t,
|
|
1485
1485
|
params: {
|
|
1486
1486
|
type: ue.CODE,
|
|
@@ -1511,8 +1511,8 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1511
1511
|
}) => {
|
|
1512
1512
|
var s;
|
|
1513
1513
|
try {
|
|
1514
|
-
const i = await
|
|
1515
|
-
type:
|
|
1514
|
+
const i = await Ue({
|
|
1515
|
+
type: Le.REFRESH,
|
|
1516
1516
|
clientId: e,
|
|
1517
1517
|
params: {
|
|
1518
1518
|
type: ue.REFRESH_TOKEN,
|
|
@@ -1523,10 +1523,10 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1523
1523
|
domain: o
|
|
1524
1524
|
}
|
|
1525
1525
|
}), u = await fe((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
|
|
1526
|
-
return u && u.payload[
|
|
1526
|
+
return u && u.payload[A.USER_ID_KEY] !== "" && u.payload[A.NONCE_KEY] === r ? {
|
|
1527
1527
|
accessToken: i.data.accessToken,
|
|
1528
1528
|
refreshToken: i.data.refreshToken,
|
|
1529
|
-
userId: u.payload[
|
|
1529
|
+
userId: u.payload[A.USER_ID_KEY],
|
|
1530
1530
|
status: !0
|
|
1531
1531
|
} : {
|
|
1532
1532
|
status: !1
|
|
@@ -1539,7 +1539,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1539
1539
|
};
|
|
1540
1540
|
class Ra {
|
|
1541
1541
|
constructor(t = null, r = null) {
|
|
1542
|
-
|
|
1542
|
+
$e(this, "refreshTokenPromise", null), $e(this, "accessToken"), $e(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
1543
1543
|
}
|
|
1544
1544
|
async refreshtoken({
|
|
1545
1545
|
clientId: t,
|
|
@@ -1566,7 +1566,7 @@ class Ra {
|
|
|
1566
1566
|
domain: n
|
|
1567
1567
|
}) {
|
|
1568
1568
|
const o = await fe(this.refreshToken);
|
|
1569
|
-
if (o && o.payload[
|
|
1569
|
+
if (o && o.payload[A.USER_ID_KEY] !== "") {
|
|
1570
1570
|
const s = await Na({
|
|
1571
1571
|
clientId: t,
|
|
1572
1572
|
userId: r,
|
|
@@ -1637,7 +1637,7 @@ const xa = (e) => q(
|
|
|
1637
1637
|
const [o, s] = St(Oa, {
|
|
1638
1638
|
...qt,
|
|
1639
1639
|
debug: n
|
|
1640
|
-
}), i = xa(n), u =
|
|
1640
|
+
}), i = xa(n), u = M(!1), [h, p, , m] = ve({
|
|
1641
1641
|
key: `${ke}::${r}::@@user@@`
|
|
1642
1642
|
}), [c, d, , y] = ve({
|
|
1643
1643
|
key: `${ke}::${r}::@@access@@`
|
|
@@ -1645,14 +1645,14 @@ const xa = (e) => q(
|
|
|
1645
1645
|
{
|
|
1646
1646
|
key: `${ke}::${r}::@@refresh@@`
|
|
1647
1647
|
}
|
|
1648
|
-
), [C, D, ,
|
|
1648
|
+
), [C, D, , U] = ve({
|
|
1649
1649
|
key: `${ke}::${r}::@@nonce@@`
|
|
1650
1650
|
}), Z = new Ra(c, b), N = q(() => {
|
|
1651
|
-
i("removeLocalStorage: removing local storage"), m(), y(), w(),
|
|
1651
|
+
i("removeLocalStorage: removing local storage"), m(), y(), w(), U();
|
|
1652
1652
|
}, [
|
|
1653
1653
|
y,
|
|
1654
1654
|
m,
|
|
1655
|
-
|
|
1655
|
+
U,
|
|
1656
1656
|
w,
|
|
1657
1657
|
i
|
|
1658
1658
|
]), G = q(
|
|
@@ -1688,14 +1688,14 @@ const xa = (e) => q(
|
|
|
1688
1688
|
return o.isLoading && h !== null ? (async () => {
|
|
1689
1689
|
try {
|
|
1690
1690
|
const g = await fe(h);
|
|
1691
|
-
g && g.payload[
|
|
1691
|
+
g && g.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
|
|
1692
1692
|
type: Ne,
|
|
1693
1693
|
payload: {
|
|
1694
|
-
authenticationType: g.payload[
|
|
1694
|
+
authenticationType: g.payload[A.AUTH_TYPE_KEY],
|
|
1695
1695
|
user: {
|
|
1696
|
-
userId: g.payload[
|
|
1697
|
-
username: g.payload[
|
|
1698
|
-
email: g.payload[
|
|
1696
|
+
userId: g.payload[A.USER_ID_KEY],
|
|
1697
|
+
username: g.payload[A.USERNAME_KEY],
|
|
1698
|
+
email: g.payload[A.EMAIL_KEY]
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
1701
|
})) : (i("useEffect: invalid JWT, invalidating and logging out"), await P(oe));
|
|
@@ -1712,13 +1712,13 @@ const xa = (e) => q(
|
|
|
1712
1712
|
s({ type: ge, payload: { isLoading: !0 } }), N();
|
|
1713
1713
|
const E = Je();
|
|
1714
1714
|
D(E), i("login: Logging in with password");
|
|
1715
|
-
const { code_verifier: F, code_challenge: ir } = await ha(), st = await
|
|
1715
|
+
const { code_verifier: F, code_challenge: ir } = await ha(), st = await Aa({
|
|
1716
1716
|
nonce: E,
|
|
1717
1717
|
clientId: r,
|
|
1718
1718
|
code_challenge: ir
|
|
1719
1719
|
});
|
|
1720
1720
|
if (st.status) {
|
|
1721
|
-
const re = await
|
|
1721
|
+
const re = await _a({
|
|
1722
1722
|
username: g,
|
|
1723
1723
|
password: T,
|
|
1724
1724
|
clientId: r,
|
|
@@ -1752,7 +1752,7 @@ const xa = (e) => q(
|
|
|
1752
1752
|
if (c) {
|
|
1753
1753
|
i("getAccessToken");
|
|
1754
1754
|
const F = await fe(c);
|
|
1755
|
-
if (F && F.payload[
|
|
1755
|
+
if (F && F.payload[A.USER_ID_KEY] !== "")
|
|
1756
1756
|
return c;
|
|
1757
1757
|
}
|
|
1758
1758
|
i("getAccessToken: invalid access token, trying to refresh it");
|
|
@@ -1774,7 +1774,7 @@ const xa = (e) => q(
|
|
|
1774
1774
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1775
1775
|
), await P(Ta), "";
|
|
1776
1776
|
}
|
|
1777
|
-
}, R = () => o.isAuthenticated && h ? h : "",
|
|
1777
|
+
}, R = () => o.isAuthenticated && h ? h : "", L = async () => {
|
|
1778
1778
|
const { user: g } = o;
|
|
1779
1779
|
let T = await ie({
|
|
1780
1780
|
accessToken: c,
|
|
@@ -1814,7 +1814,7 @@ const xa = (e) => q(
|
|
|
1814
1814
|
}), !1;
|
|
1815
1815
|
}
|
|
1816
1816
|
return !1;
|
|
1817
|
-
},
|
|
1817
|
+
}, K = async () => {
|
|
1818
1818
|
s({ type: ge, payload: { isLoading: !0 } }), N();
|
|
1819
1819
|
const g = Je();
|
|
1820
1820
|
D(g), i("loginWithPasskey");
|
|
@@ -1881,14 +1881,14 @@ const xa = (e) => q(
|
|
|
1881
1881
|
logout: pe,
|
|
1882
1882
|
getAccessToken: ee,
|
|
1883
1883
|
getIdToken: R,
|
|
1884
|
-
registeringForPasskey:
|
|
1885
|
-
loginWithPasskey:
|
|
1884
|
+
registeringForPasskey: L,
|
|
1885
|
+
loginWithPasskey: K
|
|
1886
1886
|
},
|
|
1887
1887
|
children: e
|
|
1888
1888
|
}
|
|
1889
1889
|
) });
|
|
1890
|
-
}, tt = (e = Xt) => Qe(e),
|
|
1891
|
-
function
|
|
1890
|
+
}, tt = (e = Xt) => Qe(e), po = "user", go = "assistant", fo = "system", yo = "internal", bo = "hidden", Eo = "I'm having trouble right now. Please try again later.", Fe = "OpenAI", wo = "OpenAI", To = "Anthropic", Io = 128e3, vo = "action-message", So = "action-reset", ko = "action-model", _o = "action-restore", Ao = "action-streaming", No = "action-engine", Ro = "action-search", xo = "action-sort", Co = "action-toggle-tag", Oo = "action-reset-tags", Po = "action-set-tags", Do = "sassy-saint-", Lo = "details", Mo = "search", Uo = "sort", Ko = "engine-toggle", Ho = "==stats==", Da = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", wt = (e) => Number.isFinite(e) ? e : 0;
|
|
1891
|
+
function La(e) {
|
|
1892
1892
|
return {
|
|
1893
1893
|
days: Math.trunc(e / 864e5),
|
|
1894
1894
|
hours: Math.trunc(e / 36e5 % 24),
|
|
@@ -1899,7 +1899,7 @@ function $a(e) {
|
|
|
1899
1899
|
nanoseconds: Math.trunc(wt(e * 1e6) % 1e3)
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Ma(e) {
|
|
1903
1903
|
return {
|
|
1904
1904
|
days: e / 86400000n,
|
|
1905
1905
|
hours: e / 3600000n % 24n,
|
|
@@ -1910,19 +1910,19 @@ function La(e) {
|
|
|
1910
1910
|
nanoseconds: 0n
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function Ua(e) {
|
|
1914
1914
|
switch (typeof e) {
|
|
1915
1915
|
case "number": {
|
|
1916
1916
|
if (Number.isFinite(e))
|
|
1917
|
-
return
|
|
1917
|
+
return La(e);
|
|
1918
1918
|
break;
|
|
1919
1919
|
}
|
|
1920
1920
|
case "bigint":
|
|
1921
|
-
return
|
|
1921
|
+
return Ma(e);
|
|
1922
1922
|
}
|
|
1923
1923
|
throw new TypeError("Expected a finite number or bigint");
|
|
1924
1924
|
}
|
|
1925
|
-
const
|
|
1925
|
+
const Ka = (e) => e === 0 || e === 0n, Ha = (e, t) => t === 1 || t === 1n ? e : `${e}s`, $a = 1e-7, Wa = 24n * 60n * 60n * 1000n;
|
|
1926
1926
|
function Ba(e, t) {
|
|
1927
1927
|
const r = typeof e == "bigint";
|
|
1928
1928
|
if (!r && !Number.isFinite(e))
|
|
@@ -1932,18 +1932,18 @@ function Ba(e, t) {
|
|
|
1932
1932
|
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);
|
|
1933
1933
|
let n = [];
|
|
1934
1934
|
const o = (p, m) => {
|
|
1935
|
-
const c = Math.floor(p * 10 ** m +
|
|
1935
|
+
const c = Math.floor(p * 10 ** m + $a);
|
|
1936
1936
|
return (Math.round(c) / 10 ** m).toFixed(m);
|
|
1937
1937
|
}, s = (p, m, c, d) => {
|
|
1938
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1938
|
+
if (!((n.length === 0 || !t.colonNotation) && Ka(p) && !(t.colonNotation && c === "m"))) {
|
|
1939
1939
|
if (d ?? (d = String(p)), t.colonNotation) {
|
|
1940
1940
|
const y = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
|
|
1941
1941
|
d = "0".repeat(Math.max(0, b - y)) + d;
|
|
1942
1942
|
} else
|
|
1943
|
-
d += t.verbose ? " " +
|
|
1943
|
+
d += t.verbose ? " " + Ha(m, p) : c;
|
|
1944
1944
|
n.push(d);
|
|
1945
1945
|
}
|
|
1946
|
-
}, i =
|
|
1946
|
+
}, i = Ua(e), u = BigInt(i.days);
|
|
1947
1947
|
if (t.hideYearAndDays ? s(BigInt(u) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(u, "day", "d") : (s(u / 365n, "year", "y"), s(u % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1948
1948
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1949
1949
|
const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
|
|
@@ -1967,7 +1967,7 @@ function Ba(e, t) {
|
|
|
1967
1967
|
const h = t.colonNotation ? ":" : " ";
|
|
1968
1968
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1969
1969
|
}
|
|
1970
|
-
const Ga = process.env.NODE_ENV === "production", rt = !Ga, Va = rt ? "gizmette.local.com" : "gizmette.com",
|
|
1970
|
+
const Ga = process.env.NODE_ENV === "production", rt = !Ga, Va = rt ? "gizmette.local.com" : "gizmette.com", $o = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Wo = async () => {
|
|
1971
1971
|
const e = {
|
|
1972
1972
|
/**
|
|
1973
1973
|
* A boolean value that indicates the application would
|
|
@@ -2016,11 +2016,11 @@ const Ga = process.env.NODE_ENV === "production", rt = !Ga, Va = rt ? "gizmette.
|
|
|
2016
2016
|
e
|
|
2017
2017
|
);
|
|
2018
2018
|
});
|
|
2019
|
-
},
|
|
2019
|
+
}, Bo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
|
|
2020
2020
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2021
2021
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2022
2022
|
] }) }, `${e}-${r}`)) : null;
|
|
2023
|
-
function
|
|
2023
|
+
function Go({
|
|
2024
2024
|
data: e,
|
|
2025
2025
|
formatter: t = (r) => r
|
|
2026
2026
|
}) {
|
|
@@ -2032,18 +2032,18 @@ function Bo({
|
|
|
2032
2032
|
);
|
|
2033
2033
|
return t(a ? a / r.length : 0);
|
|
2034
2034
|
}
|
|
2035
|
-
const
|
|
2035
|
+
const Vo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Jo = new Intl.NumberFormat("en", {
|
|
2036
2036
|
style: "decimal",
|
|
2037
2037
|
signDisplay: "never",
|
|
2038
2038
|
minimumFractionDigits: 0,
|
|
2039
2039
|
maximumFractionDigits: 0
|
|
2040
|
-
}),
|
|
2040
|
+
}), Yo = (e) => e > 0 ? Ba(e, {
|
|
2041
2041
|
secondsDecimalDigits: 2,
|
|
2042
2042
|
unitCount: 2
|
|
2043
2043
|
}) : "N/A", Ja = (e) => f(
|
|
2044
2044
|
"flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2045
2045
|
e || rt ? "pt-4" : "pt-10"
|
|
2046
|
-
),
|
|
2046
|
+
), Fo = (e, t) => t === 1 ? e : `${e}s`, Tt = "av-button", Ya = (e) => {
|
|
2047
2047
|
let t = "";
|
|
2048
2048
|
if (typeof e == "number" || typeof e == "string")
|
|
2049
2049
|
t = "m-" + e;
|
|
@@ -2241,7 +2241,7 @@ const Go = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2241
2241
|
)), en = (e, t, r) => {
|
|
2242
2242
|
var a;
|
|
2243
2243
|
!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);
|
|
2244
|
-
},
|
|
2244
|
+
}, Ke = O.forwardRef((e, t) => {
|
|
2245
2245
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2246
2246
|
return /* @__PURE__ */ l(
|
|
2247
2247
|
"button",
|
|
@@ -2254,7 +2254,7 @@ const Go = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2254
2254
|
}
|
|
2255
2255
|
);
|
|
2256
2256
|
});
|
|
2257
|
-
|
|
2257
|
+
Ke.displayName = "BaseButton";
|
|
2258
2258
|
const Zt = O.forwardRef(
|
|
2259
2259
|
({
|
|
2260
2260
|
children: e,
|
|
@@ -2286,7 +2286,7 @@ const Zt = O.forwardRef(
|
|
|
2286
2286
|
noTruncate: m
|
|
2287
2287
|
});
|
|
2288
2288
|
return /* @__PURE__ */ l(
|
|
2289
|
-
|
|
2289
|
+
Ke,
|
|
2290
2290
|
{
|
|
2291
2291
|
ref: d,
|
|
2292
2292
|
className: y,
|
|
@@ -2334,14 +2334,14 @@ const Xe = O.forwardRef(
|
|
|
2334
2334
|
spacing: y,
|
|
2335
2335
|
noBackground: b,
|
|
2336
2336
|
align: v
|
|
2337
|
-
}),
|
|
2337
|
+
}), U = f({
|
|
2338
2338
|
"text-copy-accent-dark": r === "light" && !i,
|
|
2339
2339
|
"text-copy-light": r === "dark" && !i,
|
|
2340
2340
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
|
|
2341
2341
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !i
|
|
2342
2342
|
});
|
|
2343
2343
|
return /* @__PURE__ */ I(
|
|
2344
|
-
|
|
2344
|
+
Ke,
|
|
2345
2345
|
{
|
|
2346
2346
|
ref: C,
|
|
2347
2347
|
className: D,
|
|
@@ -2351,7 +2351,7 @@ const Xe = O.forwardRef(
|
|
|
2351
2351
|
...w,
|
|
2352
2352
|
children: [
|
|
2353
2353
|
d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
|
|
2354
|
-
/* @__PURE__ */ l("div", { className:
|
|
2354
|
+
/* @__PURE__ */ l("div", { className: U, children: e }),
|
|
2355
2355
|
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2356
2356
|
]
|
|
2357
2357
|
}
|
|
@@ -2360,13 +2360,13 @@ const Xe = O.forwardRef(
|
|
|
2360
2360
|
);
|
|
2361
2361
|
Xe.displayName = "ButtonIcon";
|
|
2362
2362
|
/*!
|
|
2363
|
-
@versini/ui-button v1.1.
|
|
2363
|
+
@versini/ui-button v1.1.12
|
|
2364
2364
|
© 2024 gizmette.com
|
|
2365
2365
|
*/
|
|
2366
2366
|
try {
|
|
2367
2367
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2368
|
-
version: "1.1.
|
|
2369
|
-
buildTime: "
|
|
2368
|
+
version: "1.1.12",
|
|
2369
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2370
2370
|
homepage: "https://github.com/aversini/ui-components",
|
|
2371
2371
|
license: "MIT"
|
|
2372
2372
|
});
|
|
@@ -2394,7 +2394,7 @@ const tn = O.forwardRef(
|
|
|
2394
2394
|
active: w = !1,
|
|
2395
2395
|
...C
|
|
2396
2396
|
}, D) => {
|
|
2397
|
-
const
|
|
2397
|
+
const U = nt({
|
|
2398
2398
|
type: at,
|
|
2399
2399
|
mode: r,
|
|
2400
2400
|
focusMode: a,
|
|
@@ -2432,10 +2432,10 @@ const tn = O.forwardRef(
|
|
|
2432
2432
|
}
|
|
2433
2433
|
) : "";
|
|
2434
2434
|
return /* @__PURE__ */ l("div", { className: N, children: /* @__PURE__ */ I(
|
|
2435
|
-
|
|
2435
|
+
Ke,
|
|
2436
2436
|
{
|
|
2437
2437
|
ref: D,
|
|
2438
|
-
className:
|
|
2438
|
+
className: U,
|
|
2439
2439
|
disabled: t,
|
|
2440
2440
|
type: s,
|
|
2441
2441
|
"aria-label": h || p,
|
|
@@ -2451,13 +2451,13 @@ const tn = O.forwardRef(
|
|
|
2451
2451
|
);
|
|
2452
2452
|
tn.displayName = "ButtonSort";
|
|
2453
2453
|
/*!
|
|
2454
|
-
@versini/ui-card v1.0.
|
|
2454
|
+
@versini/ui-card v1.0.11
|
|
2455
2455
|
© 2024 gizmette.com
|
|
2456
2456
|
*/
|
|
2457
2457
|
try {
|
|
2458
2458
|
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
2459
|
-
version: "1.0.
|
|
2460
|
-
buildTime: "
|
|
2459
|
+
version: "1.0.11",
|
|
2460
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2461
2461
|
homepage: "https://github.com/aversini/ui-components",
|
|
2462
2462
|
license: "MIT"
|
|
2463
2463
|
});
|
|
@@ -2585,7 +2585,7 @@ const sn = ({
|
|
|
2585
2585
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
2586
2586
|
}
|
|
2587
2587
|
return t;
|
|
2588
|
-
},
|
|
2588
|
+
}, He = ({
|
|
2589
2589
|
children: e,
|
|
2590
2590
|
fill: t,
|
|
2591
2591
|
viewBox: r,
|
|
@@ -2620,13 +2620,13 @@ const sn = ({
|
|
|
2620
2620
|
] });
|
|
2621
2621
|
};
|
|
2622
2622
|
/*!
|
|
2623
|
-
@versini/ui-private v1.4.
|
|
2623
|
+
@versini/ui-private v1.4.19
|
|
2624
2624
|
© 2024 gizmette.com
|
|
2625
2625
|
*/
|
|
2626
2626
|
try {
|
|
2627
2627
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
2628
|
-
version: "1.4.
|
|
2629
|
-
buildTime: "
|
|
2628
|
+
version: "1.4.19",
|
|
2629
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2630
2630
|
homepage: "https://github.com/aversini/ui-components",
|
|
2631
2631
|
license: "MIT"
|
|
2632
2632
|
});
|
|
@@ -2638,7 +2638,7 @@ const ln = ({
|
|
|
2638
2638
|
spacing: r,
|
|
2639
2639
|
...a
|
|
2640
2640
|
}) => /* @__PURE__ */ l(
|
|
2641
|
-
|
|
2641
|
+
He,
|
|
2642
2642
|
{
|
|
2643
2643
|
defaultViewBox: "0 0 1200 500",
|
|
2644
2644
|
defaultClassName: "w-full",
|
|
@@ -2665,7 +2665,7 @@ const ln = ({
|
|
|
2665
2665
|
monotone: n,
|
|
2666
2666
|
...o
|
|
2667
2667
|
}) => /* @__PURE__ */ I(
|
|
2668
|
-
|
|
2668
|
+
He,
|
|
2669
2669
|
{
|
|
2670
2670
|
defaultViewBox: "0 0 640 512",
|
|
2671
2671
|
defaultClassName: "size-5",
|
|
@@ -2695,7 +2695,7 @@ const ln = ({
|
|
|
2695
2695
|
}) => {
|
|
2696
2696
|
const s = n ? "1" : "0.4";
|
|
2697
2697
|
return /* @__PURE__ */ I(
|
|
2698
|
-
|
|
2698
|
+
He,
|
|
2699
2699
|
{
|
|
2700
2700
|
defaultViewBox: "0 0 190 190",
|
|
2701
2701
|
defaultClassName: "size-5",
|
|
@@ -2732,7 +2732,7 @@ const ln = ({
|
|
|
2732
2732
|
monotone: n,
|
|
2733
2733
|
...o
|
|
2734
2734
|
}) => /* @__PURE__ */ I(
|
|
2735
|
-
|
|
2735
|
+
He,
|
|
2736
2736
|
{
|
|
2737
2737
|
defaultViewBox: "0 0 576 512",
|
|
2738
2738
|
defaultClassName: "size-5",
|
|
@@ -2754,26 +2754,26 @@ const ln = ({
|
|
|
2754
2754
|
}
|
|
2755
2755
|
);
|
|
2756
2756
|
/*!
|
|
2757
|
-
@versini/ui-icons v1.15.
|
|
2757
|
+
@versini/ui-icons v1.15.3
|
|
2758
2758
|
© 2024 gizmette.com
|
|
2759
2759
|
*/
|
|
2760
2760
|
try {
|
|
2761
2761
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2762
|
-
version: "1.15.
|
|
2763
|
-
buildTime: "
|
|
2762
|
+
version: "1.15.3",
|
|
2763
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2764
2764
|
homepage: "https://github.com/aversini/ui-components",
|
|
2765
2765
|
license: "MIT"
|
|
2766
2766
|
});
|
|
2767
2767
|
} catch {
|
|
2768
2768
|
}
|
|
2769
2769
|
/*!
|
|
2770
|
-
@versini/ui-main v1.0.
|
|
2770
|
+
@versini/ui-main v1.0.10
|
|
2771
2771
|
© 2024 gizmette.com
|
|
2772
2772
|
*/
|
|
2773
2773
|
try {
|
|
2774
2774
|
window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
|
|
2775
|
-
version: "1.0.
|
|
2776
|
-
buildTime: "
|
|
2775
|
+
version: "1.0.10",
|
|
2776
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2777
2777
|
homepage: "https://github.com/aversini/ui-components",
|
|
2778
2778
|
license: "MIT"
|
|
2779
2779
|
});
|
|
@@ -2807,7 +2807,7 @@ const hn = "av-main", pn = (e) => {
|
|
|
2807
2807
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
2808
2808
|
}
|
|
2809
2809
|
return t;
|
|
2810
|
-
}, yn = "av-flexgrid",
|
|
2810
|
+
}, yn = "av-flexgrid", Ae = "av-flexgrid-item", De = 0.25, er = O.createContext({
|
|
2811
2811
|
columnGap: 0,
|
|
2812
2812
|
rowGap: 0
|
|
2813
2813
|
}), It = ({
|
|
@@ -2920,20 +2920,20 @@ const hn = "av-main", pn = (e) => {
|
|
|
2920
2920
|
span: t
|
|
2921
2921
|
}) => {
|
|
2922
2922
|
if (!t)
|
|
2923
|
-
return f(e,
|
|
2923
|
+
return f(e, Ae, "box-border basis-auto");
|
|
2924
2924
|
if (typeof t == "number")
|
|
2925
|
-
return f(e,
|
|
2925
|
+
return f(e, Ae, "box-border max-w-full", {
|
|
2926
2926
|
[`${ze(t)}`]: !0
|
|
2927
2927
|
});
|
|
2928
2928
|
if (typeof t == "string")
|
|
2929
|
-
return f(e,
|
|
2929
|
+
return f(e, Ae, "box-border basis-auto", {
|
|
2930
2930
|
"max-w-full grow": t === "auto"
|
|
2931
2931
|
});
|
|
2932
2932
|
if (typeof t == "object") {
|
|
2933
2933
|
const r = Object.entries(t).map(([a, n]) => a === "fallback" ? ze(n) : ze(n, a));
|
|
2934
2934
|
return f(
|
|
2935
2935
|
e,
|
|
2936
|
-
|
|
2936
|
+
Ae,
|
|
2937
2937
|
"box-border",
|
|
2938
2938
|
r
|
|
2939
2939
|
);
|
|
@@ -2954,13 +2954,13 @@ const hn = "av-main", pn = (e) => {
|
|
|
2954
2954
|
return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
|
|
2955
2955
|
};
|
|
2956
2956
|
/*!
|
|
2957
|
-
@versini/ui-system v1.4.
|
|
2957
|
+
@versini/ui-system v1.4.21
|
|
2958
2958
|
© 2024 gizmette.com
|
|
2959
2959
|
*/
|
|
2960
2960
|
try {
|
|
2961
2961
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
2962
|
-
version: "1.4.
|
|
2963
|
-
buildTime: "
|
|
2962
|
+
version: "1.4.21",
|
|
2963
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
2964
2964
|
homepage: "https://github.com/aversini/ui-components",
|
|
2965
2965
|
license: "MIT"
|
|
2966
2966
|
});
|
|
@@ -2968,7 +2968,7 @@ try {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
const tr = "av-text-input", En = "av-text-input-wrapper", je = "av-text-input-helper-text";
|
|
2970
2970
|
function wn() {
|
|
2971
|
-
const e =
|
|
2971
|
+
const e = M(!1);
|
|
2972
2972
|
return Q(() => (e.current = !0, () => {
|
|
2973
2973
|
e.current = !1;
|
|
2974
2974
|
}), []), q(() => e.current, []);
|
|
@@ -2984,7 +2984,7 @@ const Tn = {
|
|
|
2984
2984
|
right: 0
|
|
2985
2985
|
};
|
|
2986
2986
|
function In(e) {
|
|
2987
|
-
const t = wn(), r =
|
|
2987
|
+
const t = wn(), r = M(0), a = M(null), [n, o] = j(Tn), s = _t(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
2988
2988
|
const u = i[0];
|
|
2989
2989
|
u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2990
2990
|
a.current && t() && o(u.contentRect);
|
|
@@ -3028,7 +3028,7 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Sn = {
|
|
|
3028
3028
|
default:
|
|
3029
3029
|
return e;
|
|
3030
3030
|
}
|
|
3031
|
-
},
|
|
3031
|
+
}, _n = ({
|
|
3032
3032
|
onAnnouncementClear: e,
|
|
3033
3033
|
dispatch: t
|
|
3034
3034
|
}) => {
|
|
@@ -3042,17 +3042,17 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Sn = {
|
|
|
3042
3042
|
onAnnouncementClear: a,
|
|
3043
3043
|
dispatch: n
|
|
3044
3044
|
}) => {
|
|
3045
|
-
|
|
3045
|
+
clearTimeout(r.current), e !== null && n({
|
|
3046
3046
|
type: rr,
|
|
3047
3047
|
payload: e
|
|
3048
3048
|
}), t && (r.current = setTimeout(
|
|
3049
|
-
() =>
|
|
3049
|
+
() => _n({
|
|
3050
3050
|
onAnnouncementClear: a,
|
|
3051
3051
|
dispatch: n
|
|
3052
3052
|
}),
|
|
3053
3053
|
t
|
|
3054
3054
|
));
|
|
3055
|
-
},
|
|
3055
|
+
}, An = ({
|
|
3056
3056
|
children: e,
|
|
3057
3057
|
announcementTimeoutRef: t,
|
|
3058
3058
|
announcementDelay: r,
|
|
@@ -3086,12 +3086,12 @@ function nr({
|
|
|
3086
3086
|
visible: i,
|
|
3087
3087
|
...u
|
|
3088
3088
|
}) {
|
|
3089
|
-
const h =
|
|
3089
|
+
const h = M(null), p = M(null), [m, c] = St(kn, {
|
|
3090
3090
|
announcement: null
|
|
3091
3091
|
});
|
|
3092
3092
|
let d = r;
|
|
3093
3093
|
typeof d > "u" && (d = a ? Sn[a] : "assertive"), Q(() => {
|
|
3094
|
-
|
|
3094
|
+
An({
|
|
3095
3095
|
announcementTimeoutRef: h,
|
|
3096
3096
|
announcementDelay: n,
|
|
3097
3097
|
children: e,
|
|
@@ -3131,13 +3131,13 @@ const Nn = (e) => {
|
|
|
3131
3131
|
return t;
|
|
3132
3132
|
};
|
|
3133
3133
|
/*!
|
|
3134
|
-
@versini/ui-private v1.4.
|
|
3134
|
+
@versini/ui-private v1.4.19
|
|
3135
3135
|
© 2024 gizmette.com
|
|
3136
3136
|
*/
|
|
3137
3137
|
try {
|
|
3138
3138
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
3139
|
-
version: "1.4.
|
|
3140
|
-
buildTime: "
|
|
3139
|
+
version: "1.4.19",
|
|
3140
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
3141
3141
|
homepage: "https://github.com/aversini/ui-components",
|
|
3142
3142
|
license: "MIT"
|
|
3143
3143
|
});
|
|
@@ -3305,14 +3305,14 @@ const Rn = ({
|
|
|
3305
3305
|
spacing: w,
|
|
3306
3306
|
size: C = "md",
|
|
3307
3307
|
...D
|
|
3308
|
-
},
|
|
3309
|
-
const [Z, N] = In(), [G, P] = j(0), V = vn({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${y}`, ee =
|
|
3308
|
+
}, U) => {
|
|
3309
|
+
const [Z, N] = In(), [G, P] = j(0), V = vn({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${y}`, ee = M(null), R = M(null), L = {
|
|
3310
3310
|
xs: { label: "-25px", helperText: "30px" },
|
|
3311
3311
|
sm: { label: "-29px", helperText: "34px" },
|
|
3312
3312
|
md: { label: "-33px", helperText: "38px" },
|
|
3313
3313
|
lg: { label: "-15px", helperText: "22px" },
|
|
3314
3314
|
xl: { label: "-19px", helperText: "25px" }
|
|
3315
|
-
},
|
|
3315
|
+
}, K = Dn({
|
|
3316
3316
|
className: o,
|
|
3317
3317
|
inputClassName: s,
|
|
3318
3318
|
error: a,
|
|
@@ -3329,31 +3329,31 @@ const Rn = ({
|
|
|
3329
3329
|
N && N.width && P(N.width + 18 + 10);
|
|
3330
3330
|
}, [N]), it(() => {
|
|
3331
3331
|
var g, T;
|
|
3332
|
-
const { label: E, helperText: F } =
|
|
3332
|
+
const { label: E, helperText: F } = L[C];
|
|
3333
3333
|
(g = ee == null ? void 0 : ee.current) == null || g.style.setProperty("--av-text-input-label", E), (T = R == null ? void 0 : R.current) == null || T.style.setProperty(
|
|
3334
3334
|
"--av-text-input-helper-text",
|
|
3335
3335
|
F
|
|
3336
3336
|
);
|
|
3337
|
-
}, [C]), /* @__PURE__ */ I("div", { className:
|
|
3337
|
+
}, [C]), /* @__PURE__ */ I("div", { className: K.wrapper, children: [
|
|
3338
3338
|
/* @__PURE__ */ l(
|
|
3339
3339
|
"label",
|
|
3340
3340
|
{
|
|
3341
3341
|
htmlFor: V,
|
|
3342
3342
|
id: m,
|
|
3343
|
-
className:
|
|
3343
|
+
className: K.accessibleLabel,
|
|
3344
3344
|
children: r
|
|
3345
3345
|
}
|
|
3346
3346
|
),
|
|
3347
3347
|
/* @__PURE__ */ l(
|
|
3348
3348
|
"input",
|
|
3349
3349
|
{
|
|
3350
|
-
ref:
|
|
3350
|
+
ref: U,
|
|
3351
3351
|
id: V,
|
|
3352
3352
|
name: t,
|
|
3353
3353
|
type: d,
|
|
3354
3354
|
disabled: h,
|
|
3355
3355
|
placeholder: n ? void 0 : " ",
|
|
3356
|
-
className:
|
|
3356
|
+
className: K.input,
|
|
3357
3357
|
...y && { "aria-describedby": `${V}-helper` },
|
|
3358
3358
|
...a && { "aria-invalid": "true" },
|
|
3359
3359
|
...b && !n && { style: { paddingRight: G } },
|
|
@@ -3366,7 +3366,7 @@ const Rn = ({
|
|
|
3366
3366
|
ref: ee,
|
|
3367
3367
|
"aria-hidden": !0,
|
|
3368
3368
|
htmlFor: V,
|
|
3369
|
-
className:
|
|
3369
|
+
className: K.visibleLabel,
|
|
3370
3370
|
children: r
|
|
3371
3371
|
}
|
|
3372
3372
|
),
|
|
@@ -3375,7 +3375,7 @@ const Rn = ({
|
|
|
3375
3375
|
{
|
|
3376
3376
|
ref: R,
|
|
3377
3377
|
id: `${V}-helper`,
|
|
3378
|
-
className:
|
|
3378
|
+
className: K.helperText,
|
|
3379
3379
|
children: y
|
|
3380
3380
|
}
|
|
3381
3381
|
),
|
|
@@ -3383,7 +3383,7 @@ const Rn = ({
|
|
|
3383
3383
|
"div",
|
|
3384
3384
|
{
|
|
3385
3385
|
ref: Z,
|
|
3386
|
-
className:
|
|
3386
|
+
className: K.rightElement,
|
|
3387
3387
|
children: b
|
|
3388
3388
|
}
|
|
3389
3389
|
),
|
|
@@ -3392,15 +3392,15 @@ const Rn = ({
|
|
|
3392
3392
|
}
|
|
3393
3393
|
);
|
|
3394
3394
|
ot.displayName = "TextInput";
|
|
3395
|
-
function
|
|
3396
|
-
return
|
|
3395
|
+
function Ln(e) {
|
|
3396
|
+
return _t(() => e.every((t) => t == null) ? () => {
|
|
3397
3397
|
} : (t) => {
|
|
3398
3398
|
e.forEach((r) => {
|
|
3399
3399
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
3400
3400
|
});
|
|
3401
3401
|
}, e);
|
|
3402
3402
|
}
|
|
3403
|
-
const
|
|
3403
|
+
const Mn = 500, Un = 5e3, Kn = 2e4, or = O.forwardRef(
|
|
3404
3404
|
({
|
|
3405
3405
|
name: e,
|
|
3406
3406
|
disabled: t,
|
|
@@ -3418,26 +3418,26 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = O.forwardRef(
|
|
|
3418
3418
|
const [d, y] = j(!0), [b, v] = j({
|
|
3419
3419
|
message: null,
|
|
3420
3420
|
politeness: null
|
|
3421
|
-
}), w =
|
|
3422
|
-
clearTimeout(C.current), w.current || (C.current =
|
|
3421
|
+
}), w = M(!0), C = M(null), D = M(null), U = Ln([c, D]), Z = d ? "Show" : "Hide", N = () => {
|
|
3422
|
+
C.current && clearTimeout(C.current), w.current || (C.current = setTimeout(() => {
|
|
3423
3423
|
w.current = !0, y(!0), v({
|
|
3424
|
-
announcementTimeout:
|
|
3424
|
+
announcementTimeout: Un,
|
|
3425
3425
|
politeness: "polite",
|
|
3426
3426
|
message: `${r} hiding characters`
|
|
3427
3427
|
}), n && n(!0);
|
|
3428
|
-
},
|
|
3428
|
+
}, Kn));
|
|
3429
3429
|
}, G = (R) => {
|
|
3430
3430
|
R.preventDefault();
|
|
3431
|
-
const
|
|
3432
|
-
w.current =
|
|
3433
|
-
announcementTimeout:
|
|
3431
|
+
const L = !w.current;
|
|
3432
|
+
w.current = L, N(), y(L), v({
|
|
3433
|
+
announcementTimeout: Mn,
|
|
3434
3434
|
politeness: "assertive",
|
|
3435
|
-
message:
|
|
3436
|
-
}), n && n(
|
|
3435
|
+
message: L ? "Characters hidden" : "Characters showing"
|
|
3436
|
+
}), n && n(L);
|
|
3437
3437
|
}, P = (R) => {
|
|
3438
|
-
var
|
|
3439
|
-
const { relatedTarget:
|
|
3440
|
-
g != null && g.contains(
|
|
3438
|
+
var L;
|
|
3439
|
+
const { relatedTarget: K } = R, g = (L = D.current) == null ? void 0 : L.parentElement;
|
|
3440
|
+
g != null && g.contains(K) || u && u();
|
|
3441
3441
|
}, V = (R) => {
|
|
3442
3442
|
N(), s && s(R), P(R);
|
|
3443
3443
|
}, pe = (R) => {
|
|
@@ -3446,12 +3446,12 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = O.forwardRef(
|
|
|
3446
3446
|
N(), o && o(R);
|
|
3447
3447
|
};
|
|
3448
3448
|
return Q(() => () => {
|
|
3449
|
-
clearTimeout(C.current);
|
|
3449
|
+
C.current && clearTimeout(C.current);
|
|
3450
3450
|
}, []), /* @__PURE__ */ I(ye, { children: [
|
|
3451
3451
|
/* @__PURE__ */ l(
|
|
3452
3452
|
ot,
|
|
3453
3453
|
{
|
|
3454
|
-
ref:
|
|
3454
|
+
ref: U,
|
|
3455
3455
|
name: e,
|
|
3456
3456
|
label: r,
|
|
3457
3457
|
labelHidden: a,
|
|
@@ -3485,26 +3485,26 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = O.forwardRef(
|
|
|
3485
3485
|
);
|
|
3486
3486
|
or.displayName = "TextInputMask";
|
|
3487
3487
|
/*!
|
|
3488
|
-
@versini/ui-textinput v1.2.
|
|
3488
|
+
@versini/ui-textinput v1.2.3
|
|
3489
3489
|
© 2024 gizmette.com
|
|
3490
3490
|
*/
|
|
3491
3491
|
try {
|
|
3492
3492
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3493
|
-
version: "1.2.
|
|
3494
|
-
buildTime: "
|
|
3493
|
+
version: "1.2.3",
|
|
3494
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
3495
3495
|
homepage: "https://github.com/aversini/ui-components",
|
|
3496
3496
|
license: "MIT"
|
|
3497
3497
|
});
|
|
3498
3498
|
} catch {
|
|
3499
3499
|
}
|
|
3500
|
-
const
|
|
3500
|
+
const Hn = "ASK! ME! ANYTHING!", sr = "LeeLou", $n = "gizmette.com", Wn = "Log in", Bn = "Sign in with a Passkey", zo = "Log out", Gn = "Password", Vn = "Powered by ", jo = "Send", qo = "Profile", Xo = "Statistics", Qo = "Chat history", Zo = "About", es = "Type your question here", ts = {
|
|
3501
3501
|
ACTION_WHILE_STREAMING: {
|
|
3502
3502
|
content: "Cancel chat"
|
|
3503
3503
|
},
|
|
3504
3504
|
ACTION_WHILE_NOT_STREAMING: {
|
|
3505
3505
|
content: "New chat"
|
|
3506
3506
|
}
|
|
3507
|
-
},
|
|
3507
|
+
}, rs = "N/A", as = "Tags 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.", ns = {
|
|
3508
3508
|
PREFERENCES: {
|
|
3509
3509
|
TITLE: "User settings",
|
|
3510
3510
|
NAME: "Name",
|
|
@@ -3540,13 +3540,13 @@ const Kn = "ASK! ME! ANYTHING!", sr = "LeeLou", Hn = "gizmette.com", Wn = "Log i
|
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
3542
|
/*!
|
|
3543
|
-
@versini/ui-footer v1.0.
|
|
3543
|
+
@versini/ui-footer v1.0.10
|
|
3544
3544
|
© 2024 gizmette.com
|
|
3545
3545
|
*/
|
|
3546
3546
|
try {
|
|
3547
3547
|
window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
|
|
3548
|
-
version: "1.0.
|
|
3549
|
-
buildTime: "
|
|
3548
|
+
version: "1.0.10",
|
|
3549
|
+
buildTime: "12/12/2024 05:56 PM EST",
|
|
3550
3550
|
homepage: "https://github.com/aversini/ui-components",
|
|
3551
3551
|
license: "MIT"
|
|
3552
3552
|
});
|
|
@@ -3601,11 +3601,11 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3601
3601
|
engine: Fe,
|
|
3602
3602
|
engines: []
|
|
3603
3603
|
}
|
|
3604
|
-
}),
|
|
3604
|
+
}), os = O.createContext({
|
|
3605
3605
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
3606
3606
|
dispatch: () => {
|
|
3607
3607
|
}
|
|
3608
|
-
}),
|
|
3608
|
+
}), ss = O.createContext({
|
|
3609
3609
|
state: { tag: "" },
|
|
3610
3610
|
dispatch: () => {
|
|
3611
3611
|
}
|
|
@@ -3620,7 +3620,7 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3620
3620
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3621
3621
|
sr,
|
|
3622
3622
|
" v",
|
|
3623
|
-
"5.6.
|
|
3623
|
+
"5.6.5",
|
|
3624
3624
|
" - ",
|
|
3625
3625
|
Vn,
|
|
3626
3626
|
t && t.engine,
|
|
@@ -3630,14 +3630,14 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3630
3630
|
"© ",
|
|
3631
3631
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
3632
3632
|
" ",
|
|
3633
|
-
|
|
3633
|
+
$n
|
|
3634
3634
|
] })
|
|
3635
3635
|
}
|
|
3636
3636
|
);
|
|
3637
|
-
}, qn =
|
|
3637
|
+
}, qn = At(
|
|
3638
3638
|
() => import(
|
|
3639
3639
|
/* webpackChunkName: "LazyHeader" */
|
|
3640
|
-
"./LazyHeader.
|
|
3640
|
+
"./LazyHeader.CtbnJfCu.js"
|
|
3641
3641
|
)
|
|
3642
3642
|
), Xn = () => {
|
|
3643
3643
|
const { isAuthenticated: e } = tt();
|
|
@@ -3645,9 +3645,9 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3645
3645
|
e && /* @__PURE__ */ l(Nt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(qn, {}) }),
|
|
3646
3646
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
|
|
3647
3647
|
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(ln, {}) }),
|
|
3648
|
-
/* @__PURE__ */ I("div", { className: "prose prose-
|
|
3648
|
+
/* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3649
3649
|
/* @__PURE__ */ l("h1", { children: sr }),
|
|
3650
|
-
/* @__PURE__ */ l("h2", { children:
|
|
3650
|
+
/* @__PURE__ */ l("h2", { children: Hn })
|
|
3651
3651
|
] })
|
|
3652
3652
|
] })
|
|
3653
3653
|
] });
|
|
@@ -3746,10 +3746,10 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3746
3746
|
] }),
|
|
3747
3747
|
/* @__PURE__ */ l(jn, {})
|
|
3748
3748
|
] });
|
|
3749
|
-
}, Zn = new URL(document.location.href).searchParams, eo = !!Zn.get("debug") || !1, to =
|
|
3749
|
+
}, Zn = new URL(document.location.href).searchParams, eo = !!Zn.get("debug") || !1, to = At(
|
|
3750
3750
|
() => import(
|
|
3751
3751
|
/* webpackChunkName: "LazyApp" */
|
|
3752
|
-
"./LazyApp.
|
|
3752
|
+
"./LazyApp.By3JU--q.js"
|
|
3753
3753
|
).then((e) => e.LazyApp)
|
|
3754
3754
|
), ro = ({ isComponent: e }) => {
|
|
3755
3755
|
const { isAuthenticated: t } = tt();
|
|
@@ -3757,71 +3757,71 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3757
3757
|
}, ao = ({
|
|
3758
3758
|
isComponent: e = !1,
|
|
3759
3759
|
domain: t = Va
|
|
3760
|
-
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Pa, { clientId: Da, domain: t, debug: eo, children: /* @__PURE__ */ l(ro, { isComponent: e }) }) }),
|
|
3760
|
+
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Pa, { clientId: Da, domain: t, debug: eo, children: /* @__PURE__ */ l(ro, { isComponent: e }) }) }), is = ({ domain: e }) => /* @__PURE__ */ l(ao, { isComponent: !0, domain: e });
|
|
3761
3761
|
export {
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3762
|
+
Zo as ABOUT_TITLE,
|
|
3763
|
+
No as ACTION_ENGINE,
|
|
3764
|
+
vo as ACTION_MESSAGE,
|
|
3765
|
+
ko as ACTION_MODEL,
|
|
3766
|
+
So as ACTION_RESET,
|
|
3767
|
+
Oo as ACTION_RESET_TAGS,
|
|
3768
|
+
_o as ACTION_RESTORE,
|
|
3769
|
+
Ro as ACTION_SEARCH,
|
|
3770
|
+
Po as ACTION_SET_TAGS,
|
|
3771
|
+
xo as ACTION_SORT,
|
|
3772
3772
|
Ao as ACTION_STREAMING,
|
|
3773
|
-
|
|
3773
|
+
Co as ACTION_TOGGLE_TAG,
|
|
3774
3774
|
sr as APP_NAME,
|
|
3775
3775
|
zn as AppContext,
|
|
3776
3776
|
jn as AppFooter,
|
|
3777
|
-
|
|
3777
|
+
ns as CARDS,
|
|
3778
3778
|
Fe as DEFAULT_AI_ENGINE,
|
|
3779
3779
|
sn as E,
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3780
|
+
To as ENGINE_ANTHROPIC,
|
|
3781
|
+
wo as ENGINE_OPENAI,
|
|
3782
|
+
Eo as ERROR_MESSAGE,
|
|
3783
3783
|
ue as G,
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3784
|
+
Io as GPT4_MAX_TOKENS,
|
|
3785
|
+
Qo as HISTORY_TITLE,
|
|
3786
|
+
os as HistoryContext,
|
|
3787
|
+
Lo as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3788
|
+
Ko as LOCAL_STORAGE_ENGINE_TOGGLE,
|
|
3789
|
+
Do as LOCAL_STORAGE_PREFIX,
|
|
3790
|
+
Mo as LOCAL_STORAGE_SEARCH,
|
|
3791
|
+
Uo as LOCAL_STORAGE_SORT,
|
|
3792
|
+
zo as LOG_OUT,
|
|
3793
3793
|
Xn as MessagesContainerHeader,
|
|
3794
|
-
|
|
3794
|
+
rs as NA,
|
|
3795
3795
|
Xe as O,
|
|
3796
|
-
|
|
3796
|
+
qo as PROFILE_TITLE,
|
|
3797
3797
|
Zt as R,
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3798
|
+
go as ROLE_ASSISTANT,
|
|
3799
|
+
bo as ROLE_HIDDEN,
|
|
3800
|
+
yo as ROLE_INTERNAL,
|
|
3801
|
+
fo as ROLE_SYSTEM,
|
|
3802
|
+
po as ROLE_USER,
|
|
3803
|
+
jo as SEND,
|
|
3804
|
+
Xo as STATS,
|
|
3805
|
+
Ho as STATS_SEPARATOR,
|
|
3806
|
+
is as SassySaint,
|
|
3807
|
+
as as TAGS_DESCRIPTION,
|
|
3808
|
+
ts as TOOLBOX,
|
|
3809
|
+
es as TYPE_QUESTION,
|
|
3810
|
+
ss as TagsContext,
|
|
3811
3811
|
It as b,
|
|
3812
3812
|
gn as d,
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3813
|
+
Yo as durationFormatter,
|
|
3814
|
+
Go as extractAverage,
|
|
3815
|
+
He as g,
|
|
3816
|
+
Wo as getCurrentGeoLocation,
|
|
3817
3817
|
Ja as getMessageContaintWrapperClass,
|
|
3818
|
-
|
|
3818
|
+
Vo as isLastMessageFromRole,
|
|
3819
3819
|
le as j,
|
|
3820
3820
|
ot as me,
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3821
|
+
Jo as numberFormatter,
|
|
3822
|
+
Fo as pluralize,
|
|
3823
|
+
Bo as renderDataAsList,
|
|
3824
3824
|
tt as rn,
|
|
3825
|
-
|
|
3825
|
+
$o as truncate,
|
|
3826
3826
|
un as v
|
|
3827
3827
|
};
|