@versini/sassysaint 7.1.0 → 7.1.2
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.Ds0uId3o.js → App.CBWEb0V8.js} +1362 -1371
- package/dist/chunks/{ChatBubbleAssistant.Dp-agOTo.js → ChatBubbleAssistant.XRTqE2w4.js} +731 -721
- package/dist/chunks/{HeaderEntry.BwH4Isxn.js → HeaderEntry.D5tq2VRC.js} +451 -469
- package/dist/chunks/{MarkdownWithExtra.Co7kRLuz.js → MarkdownWithExtra.-zr5boZg.js} +2 -2
- package/dist/chunks/{index.Ct43f1gn.js → index.DdXdvpdr.js} +145 -135
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as D, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import X, { createContext as sr, useReducer as
|
|
2
|
+
import X, { createContext as sr, useReducer as It, useRef as x, useCallback as q, useEffect as Y, useContext as St, useSyncExternalStore as ir, useLayoutEffect as Ne, useMemo as Le, useState as z, useId as _t, lazy as cr, Suspense as lr } from "react";
|
|
3
3
|
import p from "clsx";
|
|
4
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, We = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
@@ -176,7 +176,7 @@ async function fr(e) {
|
|
|
176
176
|
try {
|
|
177
177
|
d = o.getPublicKeyAlgorithm();
|
|
178
178
|
} catch (c) {
|
|
179
|
-
|
|
179
|
+
Be("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
@@ -184,14 +184,14 @@ async function fr(e) {
|
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
185
|
c !== null && (h = G(c));
|
|
186
186
|
} catch (c) {
|
|
187
|
-
|
|
187
|
+
Be("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
|
+
Be("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -209,7 +209,7 @@ async function fr(e) {
|
|
|
209
209
|
authenticatorAttachment: Nt(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Be(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
|
}
|
|
@@ -359,7 +359,7 @@ function wr(...e) {
|
|
|
359
359
|
r.set(n, a), a += n.length;
|
|
360
360
|
return r;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const Tr = (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 Tr(t);
|
|
372
372
|
} catch {
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
@@ -404,12 +404,12 @@ let W = class extends P {
|
|
|
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
|
-
|
|
412
|
+
Ir.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
413
413
|
class Sr extends P {
|
|
414
414
|
constructor() {
|
|
415
415
|
super(...arguments), this.code = "ERR_JWE_INVALID";
|
|
@@ -470,7 +470,7 @@ function j(e, t = "algorithm.name") {
|
|
|
470
470
|
function we(e, t) {
|
|
471
471
|
return e.name === t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ve(e) {
|
|
474
474
|
return parseInt(e.name.slice(4), 10);
|
|
475
475
|
}
|
|
476
476
|
function vr(e) {
|
|
@@ -503,7 +503,7 @@ function Cr(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 (Ve(e.algorithm.hash) !== a)
|
|
507
507
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -513,7 +513,7 @@ function Cr(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 (Ve(e.algorithm.hash) !== a)
|
|
517
517
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
@@ -523,7 +523,7 @@ function Cr(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 (Ve(e.algorithm.hash) !== a)
|
|
527
527
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
528
528
|
break;
|
|
529
529
|
}
|
|
@@ -737,7 +737,7 @@ const Ut = (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
|
+
}, Br = 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) {
|
|
@@ -784,11 +784,11 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
784
784
|
throw new W('Invalid or unsupported "alg" (Algorithm) value');
|
|
785
785
|
}
|
|
786
786
|
return Me.subtle.importKey(t, i, o, !1, s);
|
|
787
|
-
},
|
|
787
|
+
}, Vr = (e, t, r) => Br(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
788
788
|
async function Jr(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 Vr(e, t);
|
|
792
792
|
}
|
|
793
793
|
async function Gr(e, t) {
|
|
794
794
|
if (!he(e))
|
|
@@ -1196,18 +1196,18 @@ async function ba(e) {
|
|
|
1196
1196
|
code_challenge: r
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Bt(e, t) {
|
|
1200
1200
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
1201
1201
|
}
|
|
1202
1202
|
const ft = (e, t) => {
|
|
1203
1203
|
const r = JSON.stringify(
|
|
1204
1204
|
typeof t == "function" ? t() : t
|
|
1205
1205
|
);
|
|
1206
|
-
window.localStorage.setItem(e, r),
|
|
1206
|
+
window.localStorage.setItem(e, r), Bt(e, r);
|
|
1207
1207
|
}, Ea = (e) => {
|
|
1208
|
-
window.localStorage.removeItem(e),
|
|
1208
|
+
window.localStorage.removeItem(e), Bt(e, null);
|
|
1209
1209
|
}, gt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1210
|
-
function
|
|
1210
|
+
function Te({
|
|
1211
1211
|
key: e,
|
|
1212
1212
|
initialValue: t
|
|
1213
1213
|
}) {
|
|
@@ -1237,18 +1237,18 @@ function Ie({
|
|
|
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 Ta(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
1243
|
let Ge;
|
|
1244
|
-
const
|
|
1244
|
+
const Ia = new Uint8Array(16);
|
|
1245
1245
|
function Sa() {
|
|
1246
1246
|
if (!Ge) {
|
|
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
|
Ge = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return Ge(
|
|
1251
|
+
return Ge(Ia);
|
|
1252
1252
|
}
|
|
1253
1253
|
const _a = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: _a };
|
|
1254
1254
|
function Ye(e, t, r) {
|
|
@@ -1256,12 +1256,12 @@ function Ye(e, t, r) {
|
|
|
1256
1256
|
return yt.randomUUID();
|
|
1257
1257
|
e = e || {};
|
|
1258
1258
|
const a = e.random || (e.rng || Sa)();
|
|
1259
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1259
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ta(a);
|
|
1260
1260
|
}
|
|
1261
1261
|
const ie = "Your session has expired. For your security, please log in again to continue.", ka = "Your session has been successfully terminated.", Fe = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", Ra = "You forgot to wrap your component in <AuthProvider>.", Oe = {
|
|
1262
1262
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1263
1263
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1264
|
-
},
|
|
1264
|
+
}, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Vt = "LOGOUT", be = "success", F = "failure", Jt = "include", Gt = "POST", Yt = "application/json", Se = {
|
|
1265
1265
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1266
1266
|
$clientId: String!,
|
|
1267
1267
|
$username: String!,
|
|
@@ -1650,7 +1650,7 @@ const La = (e) => q(
|
|
|
1650
1650
|
user: t.payload.user,
|
|
1651
1651
|
authenticationType: t.payload.authenticationType,
|
|
1652
1652
|
logoutReason: ""
|
|
1653
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1653
|
+
} : (t == null ? void 0 : t.type) === Vt ? {
|
|
1654
1654
|
...e,
|
|
1655
1655
|
isLoading: !1,
|
|
1656
1656
|
isAuthenticated: !1,
|
|
@@ -1664,20 +1664,20 @@ const La = (e) => q(
|
|
|
1664
1664
|
domain: a = "",
|
|
1665
1665
|
debug: n = !1
|
|
1666
1666
|
}) => {
|
|
1667
|
-
const [o, s] =
|
|
1667
|
+
const [o, s] = It(Ma, {
|
|
1668
1668
|
...jt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i = La(n), d = x(!1), [h, f, , u] =
|
|
1671
|
-
key: `${
|
|
1672
|
-
}), [c, m, , y] =
|
|
1673
|
-
key: `${
|
|
1674
|
-
}), [w,
|
|
1670
|
+
}), i = La(n), d = x(!1), [h, f, , u] = Te({
|
|
1671
|
+
key: `${Ie}::${r}::@@user@@`
|
|
1672
|
+
}), [c, m, , y] = Te({
|
|
1673
|
+
key: `${Ie}::${r}::@@access@@`
|
|
1674
|
+
}), [w, T, , k] = Te(
|
|
1675
1675
|
{
|
|
1676
|
-
key: `${
|
|
1676
|
+
key: `${Ie}::${r}::@@refresh@@`
|
|
1677
1677
|
}
|
|
1678
|
-
), [Q, L, , Z] =
|
|
1679
|
-
key: `${
|
|
1680
|
-
}), $ = new Da(c, w),
|
|
1678
|
+
), [Q, L, , Z] = Te({
|
|
1679
|
+
key: `${Ie}::${r}::@@nonce@@`
|
|
1680
|
+
}), $ = new Da(c, w), B = q(() => {
|
|
1681
1681
|
i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
|
|
1682
1682
|
}, [
|
|
1683
1683
|
y,
|
|
@@ -1691,13 +1691,13 @@ const La = (e) => q(
|
|
|
1691
1691
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1692
1692
|
g
|
|
1693
1693
|
), s({
|
|
1694
|
-
type:
|
|
1694
|
+
type: Vt,
|
|
1695
1695
|
payload: {
|
|
1696
1696
|
logoutReason: g || ie
|
|
1697
1697
|
}
|
|
1698
|
-
}),
|
|
1698
|
+
}), B(), s({ type: fe, payload: { isLoading: !1 } });
|
|
1699
1699
|
},
|
|
1700
|
-
[
|
|
1700
|
+
[B, i]
|
|
1701
1701
|
), S = q(
|
|
1702
1702
|
async (g) => {
|
|
1703
1703
|
i("invalidateAndLogout: invalidating and logging out");
|
|
@@ -1739,7 +1739,7 @@ const La = (e) => q(
|
|
|
1739
1739
|
};
|
|
1740
1740
|
}, [o.isLoading, h, S, i]);
|
|
1741
1741
|
const M = async (g, E) => {
|
|
1742
|
-
s({ type: fe, payload: { isLoading: !0 } }),
|
|
1742
|
+
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1743
1743
|
const b = Ye();
|
|
1744
1744
|
L(b), i("login: Logging in with password");
|
|
1745
1745
|
const { code_verifier: ae, code_challenge: or } = await ba(), st = await Oa({
|
|
@@ -1760,7 +1760,7 @@ const La = (e) => q(
|
|
|
1760
1760
|
domain: a,
|
|
1761
1761
|
ua: navigator.userAgent
|
|
1762
1762
|
});
|
|
1763
|
-
return ne.status ? (f(ne.idToken), m(ne.accessToken),
|
|
1763
|
+
return ne.status ? (f(ne.idToken), m(ne.accessToken), T(ne.refreshToken), s({
|
|
1764
1764
|
type: ke,
|
|
1765
1765
|
payload: {
|
|
1766
1766
|
authenticationType: me.CODE,
|
|
@@ -1775,7 +1775,7 @@ const La = (e) => q(
|
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
}, K = async (g) => {
|
|
1777
1777
|
g == null || g.preventDefault(), await S(ka);
|
|
1778
|
-
},
|
|
1778
|
+
}, I = async () => {
|
|
1779
1779
|
const { isAuthenticated: g, user: E } = o;
|
|
1780
1780
|
try {
|
|
1781
1781
|
if (g && E && E.userId) {
|
|
@@ -1792,7 +1792,7 @@ const La = (e) => q(
|
|
|
1792
1792
|
nonce: Q,
|
|
1793
1793
|
domain: a
|
|
1794
1794
|
});
|
|
1795
|
-
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken),
|
|
1795
|
+
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), T(b.newRefreshToken), b.newAccessToken) : (i(
|
|
1796
1796
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1797
1797
|
), await S(ie), "");
|
|
1798
1798
|
}
|
|
@@ -1844,8 +1844,8 @@ const La = (e) => q(
|
|
|
1844
1844
|
}), !1;
|
|
1845
1845
|
}
|
|
1846
1846
|
return !1;
|
|
1847
|
-
},
|
|
1848
|
-
s({ type: fe, payload: { isLoading: !0 } }),
|
|
1847
|
+
}, V = async () => {
|
|
1848
|
+
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1849
1849
|
const g = Ye();
|
|
1850
1850
|
L(g), i("loginWithPasskey");
|
|
1851
1851
|
const E = Ye();
|
|
@@ -1874,7 +1874,7 @@ const La = (e) => q(
|
|
|
1874
1874
|
sessionExpiration: t,
|
|
1875
1875
|
ua: navigator.userAgent
|
|
1876
1876
|
}
|
|
1877
|
-
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken),
|
|
1877
|
+
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken), T(b.data.refreshToken), s({
|
|
1878
1878
|
type: ke,
|
|
1879
1879
|
payload: {
|
|
1880
1880
|
authenticationType: me.PASSKEY,
|
|
@@ -1909,15 +1909,15 @@ const La = (e) => q(
|
|
|
1909
1909
|
...o,
|
|
1910
1910
|
login: M,
|
|
1911
1911
|
logout: K,
|
|
1912
|
-
getAccessToken:
|
|
1912
|
+
getAccessToken: I,
|
|
1913
1913
|
getIdToken: C,
|
|
1914
1914
|
registeringForPasskey: O,
|
|
1915
|
-
loginWithPasskey:
|
|
1915
|
+
loginWithPasskey: V
|
|
1916
1916
|
},
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
1920
|
-
}, qt = (e = zt) => St(e), Eo = "user", wo = "assistant",
|
|
1920
|
+
}, qt = (e = zt) => St(e), Eo = "user", wo = "assistant", To = "system", Io = "internal", So = "hidden", _o = "I'm having trouble right now. Please try again later.", ko = "OpenAI", Ao = "OpenAI", Ro = "Anthropic", No = "action-search", vo = "action-sort", xo = "action-toggle-prompt", Co = "action-reset-prompt", Oo = "sassy-saint-", Po = "details", Do = "search", Lo = "sort", $o = "private-disclosure", Mo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Uo = 10, Ko = 30, Ho = "av-prompt", Wo = "av-prompt-editable", Bo = "size-5 sm:size-4", bt = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
1921
|
function Ha(e) {
|
|
1922
1922
|
return {
|
|
1923
1923
|
days: Math.trunc(e / 864e5),
|
|
@@ -1940,7 +1940,7 @@ function Wa(e) {
|
|
|
1940
1940
|
nanoseconds: 0n
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ba(e) {
|
|
1944
1944
|
switch (typeof e) {
|
|
1945
1945
|
case "number": {
|
|
1946
1946
|
if (Number.isFinite(e))
|
|
@@ -1952,7 +1952,7 @@ function Va(e) {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
throw new TypeError("Expected a finite number or bigint");
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1955
|
+
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;
|
|
1956
1956
|
function Fa(e, t) {
|
|
1957
1957
|
const r = typeof e == "bigint";
|
|
1958
1958
|
if (!r && !Number.isFinite(e))
|
|
@@ -1965,7 +1965,7 @@ function Fa(e, t) {
|
|
|
1965
1965
|
const c = Math.floor(f * 10 ** u + Ga);
|
|
1966
1966
|
return (Math.round(c) / 10 ** u).toFixed(u);
|
|
1967
1967
|
}, s = (f, u, c, m) => {
|
|
1968
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1968
|
+
if (!((n.length === 0 || !t.colonNotation) && Va(f) && !(t.colonNotation && c === "m"))) {
|
|
1969
1969
|
if (m ?? (m = String(f)), t.colonNotation) {
|
|
1970
1970
|
const y = m.includes(".") ? m.split(".")[0].length : m.length, w = n.length > 0 ? 2 : 1;
|
|
1971
1971
|
m = "0".repeat(Math.max(0, w - y)) + m;
|
|
@@ -1973,14 +1973,14 @@ function Fa(e, t) {
|
|
|
1973
1973
|
m += t.verbose ? " " + Ja(u, f) : c;
|
|
1974
1974
|
n.push(m);
|
|
1975
1975
|
}
|
|
1976
|
-
}, i =
|
|
1976
|
+
}, i = Ba(e), d = BigInt(i.days);
|
|
1977
1977
|
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)
|
|
1978
1978
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1979
1979
|
const f = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
|
|
1980
1980
|
if (s(f, "second", "s"), t.formatSubMilliseconds)
|
|
1981
1981
|
s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(m, "nanosecond", "ns");
|
|
1982
1982
|
else {
|
|
1983
|
-
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0,
|
|
1983
|
+
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, T = y >= 1 ? Math.round(y) : Math.ceil(y), k = w ? y.toFixed(w) : T;
|
|
1984
1984
|
s(
|
|
1985
1985
|
Number.parseFloat(k),
|
|
1986
1986
|
"millisecond",
|
|
@@ -1997,7 +1997,7 @@ function Fa(e, t) {
|
|
|
1997
1997
|
const h = t.colonNotation ? ":" : " ";
|
|
1998
1998
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1999
1999
|
}
|
|
2000
|
-
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com",
|
|
2000
|
+
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Vo = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2049,7 +2049,12 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2049
2049
|
}, Jo = (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: [
|
|
2050
2050
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2051
2051
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2052
|
-
] }) }, `${e}-${r}`)) : null, Go =
|
|
2052
|
+
] }) }, `${e}-${r}`)) : null, Go = new Intl.NumberFormat("en", {
|
|
2053
|
+
style: "decimal",
|
|
2054
|
+
signDisplay: "never",
|
|
2055
|
+
minimumFractionDigits: 0,
|
|
2056
|
+
maximumFractionDigits: 0
|
|
2057
|
+
}), Yo = (e) => e > 0 ? Fa(e, {
|
|
2053
2058
|
secondsDecimalDigits: 2,
|
|
2054
2059
|
unitCount: 2
|
|
2055
2060
|
}) : "N/A", Xa = ({
|
|
@@ -2061,7 +2066,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2061
2066
|
t
|
|
2062
2067
|
), Qa = ({
|
|
2063
2068
|
extraClass: e
|
|
2064
|
-
}) => p("px-2 sm:px-0", e),
|
|
2069
|
+
}) => p("px-2 sm:px-0", e), Fo = (e, t) => t === 1 ? e : `${e}s`, jo = (e, t) => {
|
|
2065
2070
|
let r;
|
|
2066
2071
|
return (...a) => {
|
|
2067
2072
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
@@ -2327,7 +2332,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2327
2332
|
noTruncate: m,
|
|
2328
2333
|
align: y,
|
|
2329
2334
|
radius: w,
|
|
2330
|
-
animated:
|
|
2335
|
+
animated: T
|
|
2331
2336
|
}) => (c || (c = "primary"), r ? p(Et, t) : p(
|
|
2332
2337
|
Et,
|
|
2333
2338
|
rn({
|
|
@@ -2344,7 +2349,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2344
2349
|
labelRight: h,
|
|
2345
2350
|
labelLeft: f,
|
|
2346
2351
|
align: y,
|
|
2347
|
-
animated:
|
|
2352
|
+
animated: T
|
|
2348
2353
|
}),
|
|
2349
2354
|
tn({ type: e, size: i, labelRight: h, labelLeft: f }),
|
|
2350
2355
|
cn({ mode: a, variant: c, noBorder: d }),
|
|
@@ -2356,7 +2361,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2356
2361
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
2357
2362
|
},
|
|
2358
2363
|
p({
|
|
2359
|
-
"transition-[width] duration-300 ease-in-out": e === Ke &&
|
|
2364
|
+
"transition-[width] duration-300 ease-in-out": e === Ke && T
|
|
2360
2365
|
}),
|
|
2361
2366
|
t
|
|
2362
2367
|
)), mn = (e, t, r) => {
|
|
@@ -2486,13 +2491,13 @@ const gn = {
|
|
|
2486
2491
|
labelLeft: m,
|
|
2487
2492
|
noBackground: y = !1,
|
|
2488
2493
|
align: w = "center",
|
|
2489
|
-
radius:
|
|
2494
|
+
radius: T = "large",
|
|
2490
2495
|
variant: k = "primary",
|
|
2491
2496
|
iconClassName: Q,
|
|
2492
2497
|
animated: L = !1,
|
|
2493
2498
|
...Z
|
|
2494
2499
|
}, $) => {
|
|
2495
|
-
const
|
|
2500
|
+
const B = Xt({
|
|
2496
2501
|
type: Ke,
|
|
2497
2502
|
mode: r,
|
|
2498
2503
|
focusMode: a,
|
|
@@ -2506,28 +2511,28 @@ const gn = {
|
|
|
2506
2511
|
labelLeft: m,
|
|
2507
2512
|
noBackground: y,
|
|
2508
2513
|
align: w,
|
|
2509
|
-
radius:
|
|
2514
|
+
radius: T,
|
|
2510
2515
|
variant: k,
|
|
2511
2516
|
animated: L
|
|
2512
|
-
}), U = dn({ mode: r, raw: i, iconClassName: Q }), S = un({ animated: L }), [M, K] = je(), [
|
|
2517
|
+
}), U = dn({ mode: r, raw: i, iconClassName: Q }), S = un({ animated: L }), [M, K] = je(), [I, C] = je(), [O, V] = je(), g = x(0), E = x(null), b = pn([$, E]);
|
|
2513
2518
|
return Ne(() => {
|
|
2514
|
-
O && O.current && L && (g.current =
|
|
2515
|
-
}, [
|
|
2516
|
-
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 ? (
|
|
2519
|
+
O && O.current && L && (g.current = V.width + yn[u] + (d ? 0 : bn));
|
|
2520
|
+
}, [V, O, u, d, L]), Ne(() => {
|
|
2521
|
+
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 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${gn[u]}px`));
|
|
2517
2522
|
}, [
|
|
2518
2523
|
K,
|
|
2519
2524
|
c,
|
|
2520
2525
|
M,
|
|
2521
2526
|
C,
|
|
2522
2527
|
m,
|
|
2523
|
-
|
|
2528
|
+
I,
|
|
2524
2529
|
u,
|
|
2525
2530
|
L
|
|
2526
2531
|
]), /* @__PURE__ */ D(
|
|
2527
2532
|
nt,
|
|
2528
2533
|
{
|
|
2529
2534
|
ref: b,
|
|
2530
|
-
className:
|
|
2535
|
+
className: B,
|
|
2531
2536
|
disabled: t,
|
|
2532
2537
|
type: s,
|
|
2533
2538
|
"aria-label": h || f,
|
|
@@ -2537,7 +2542,7 @@ const gn = {
|
|
|
2537
2542
|
wt,
|
|
2538
2543
|
{
|
|
2539
2544
|
label: m,
|
|
2540
|
-
labelRef:
|
|
2545
|
+
labelRef: I,
|
|
2541
2546
|
labelClass: S,
|
|
2542
2547
|
labelInnerClass: "pr-2"
|
|
2543
2548
|
}
|
|
@@ -2633,7 +2638,7 @@ function wn(e) {
|
|
|
2633
2638
|
const t = _t();
|
|
2634
2639
|
return `${e}${t}`;
|
|
2635
2640
|
}
|
|
2636
|
-
const
|
|
2641
|
+
const Tn = ({
|
|
2637
2642
|
className: e,
|
|
2638
2643
|
headerClassName: t,
|
|
2639
2644
|
bodyClassName: r,
|
|
@@ -2673,7 +2678,7 @@ const In = ({
|
|
|
2673
2678
|
footer: f
|
|
2674
2679
|
};
|
|
2675
2680
|
};
|
|
2676
|
-
function
|
|
2681
|
+
function In({
|
|
2677
2682
|
id: e,
|
|
2678
2683
|
content: t,
|
|
2679
2684
|
userAriaLabelledby: r,
|
|
@@ -2696,7 +2701,7 @@ const Sn = ({
|
|
|
2696
2701
|
...u
|
|
2697
2702
|
}) => {
|
|
2698
2703
|
let c = null, m = null;
|
|
2699
|
-
const y = typeof e == "string", w = wn(Ae),
|
|
2704
|
+
const y = typeof e == "string", w = wn(Ae), T = Tn({
|
|
2700
2705
|
className: o,
|
|
2701
2706
|
headerClassName: t,
|
|
2702
2707
|
bodyClassName: s,
|
|
@@ -2705,26 +2710,26 @@ const Sn = ({
|
|
|
2705
2710
|
compact: h,
|
|
2706
2711
|
noBorder: f
|
|
2707
2712
|
});
|
|
2708
|
-
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:
|
|
2713
|
+
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: T.wrapper, children: /* @__PURE__ */ D(
|
|
2709
2714
|
"section",
|
|
2710
2715
|
{
|
|
2711
2716
|
...m && {
|
|
2712
2717
|
"aria-labelledby": m
|
|
2713
2718
|
},
|
|
2714
|
-
className:
|
|
2719
|
+
className: T.body,
|
|
2715
2720
|
...u,
|
|
2716
2721
|
children: [
|
|
2717
2722
|
/* @__PURE__ */ l(
|
|
2718
|
-
|
|
2723
|
+
In,
|
|
2719
2724
|
{
|
|
2720
2725
|
...c && { id: c },
|
|
2721
2726
|
content: e,
|
|
2722
|
-
className:
|
|
2727
|
+
className: T.header,
|
|
2723
2728
|
userAriaLabelledby: i
|
|
2724
2729
|
}
|
|
2725
2730
|
),
|
|
2726
2731
|
/* @__PURE__ */ l("div", { children: n }),
|
|
2727
|
-
r ? /* @__PURE__ */ l("div", { className:
|
|
2732
|
+
r ? /* @__PURE__ */ l("div", { className: T.footer, children: r }) : null
|
|
2728
2733
|
]
|
|
2729
2734
|
}
|
|
2730
2735
|
) });
|
|
@@ -3146,7 +3151,7 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3146
3151
|
t({
|
|
3147
3152
|
type: tr
|
|
3148
3153
|
}), typeof e == "function" && e();
|
|
3149
|
-
},
|
|
3154
|
+
}, Tt = ({
|
|
3150
3155
|
children: e,
|
|
3151
3156
|
clearAnnouncementDelay: t,
|
|
3152
3157
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -3172,13 +3177,13 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3172
3177
|
onAnnouncementClear: o,
|
|
3173
3178
|
dispatch: s
|
|
3174
3179
|
}) => {
|
|
3175
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
3180
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Tt, r, {
|
|
3176
3181
|
children: e,
|
|
3177
3182
|
clearAnnouncementDelay: a,
|
|
3178
3183
|
clearAnnouncementTimeoutRef: n,
|
|
3179
3184
|
onAnnouncementClear: o,
|
|
3180
3185
|
dispatch: s
|
|
3181
|
-
}) :
|
|
3186
|
+
}) : Tt({
|
|
3182
3187
|
children: e,
|
|
3183
3188
|
clearAnnouncementDelay: a,
|
|
3184
3189
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -3197,7 +3202,7 @@ function rr({
|
|
|
3197
3202
|
visible: i,
|
|
3198
3203
|
...d
|
|
3199
3204
|
}) {
|
|
3200
|
-
const h = x(null), f = x(null), [u, c] =
|
|
3205
|
+
const h = x(null), f = x(null), [u, c] = It(Kn, {
|
|
3201
3206
|
announcement: null
|
|
3202
3207
|
});
|
|
3203
3208
|
let m = r;
|
|
@@ -3244,14 +3249,14 @@ try {
|
|
|
3244
3249
|
});
|
|
3245
3250
|
} catch {
|
|
3246
3251
|
}
|
|
3247
|
-
const
|
|
3252
|
+
const Bn = ({
|
|
3248
3253
|
mode: e
|
|
3249
3254
|
}) => p({
|
|
3250
3255
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
3251
3256
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3252
3257
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3253
3258
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3254
|
-
}),
|
|
3259
|
+
}), Vn = ({
|
|
3255
3260
|
focusMode: e
|
|
3256
3261
|
}) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3257
3262
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -3356,8 +3361,8 @@ const Vn = ({
|
|
|
3356
3361
|
Zt,
|
|
3357
3362
|
u,
|
|
3358
3363
|
"rounded-md text-base px-4",
|
|
3359
|
-
|
|
3360
|
-
|
|
3364
|
+
Bn({ mode: s }),
|
|
3365
|
+
Vn({ focusMode: i }),
|
|
3361
3366
|
Jn({ noBorder: n, error: o }),
|
|
3362
3367
|
{
|
|
3363
3368
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
@@ -3373,14 +3378,14 @@ const Vn = ({
|
|
|
3373
3378
|
raw: r,
|
|
3374
3379
|
mode: s,
|
|
3375
3380
|
disabled: a
|
|
3376
|
-
}),
|
|
3381
|
+
}), T = r ? void 0 : p("absolute right-3", h);
|
|
3377
3382
|
return {
|
|
3378
3383
|
wrapper: f,
|
|
3379
3384
|
input: c,
|
|
3380
3385
|
accessibleLabel: m,
|
|
3381
3386
|
visibleLabel: y,
|
|
3382
3387
|
helperText: w,
|
|
3383
|
-
rightElement:
|
|
3388
|
+
rightElement: T
|
|
3384
3389
|
};
|
|
3385
3390
|
}, ot = X.forwardRef(
|
|
3386
3391
|
({
|
|
@@ -3400,11 +3405,11 @@ const Vn = ({
|
|
|
3400
3405
|
type: m = "text",
|
|
3401
3406
|
helperText: y = "",
|
|
3402
3407
|
rightElement: w,
|
|
3403
|
-
rightElementClassName:
|
|
3408
|
+
rightElementClassName: T,
|
|
3404
3409
|
size: k = "md",
|
|
3405
3410
|
...Q
|
|
3406
3411
|
}, L) => {
|
|
3407
|
-
const [Z, $] = $n(), [
|
|
3412
|
+
const [Z, $] = $n(), [B, U] = z(0), S = Mn({ id: e, prefix: `${Zt}-` }), M = `${t} error, ${y}`, K = x(null), I = x(null), C = {
|
|
3408
3413
|
xs: { label: "-25px", helperText: "30px" },
|
|
3409
3414
|
sm: { label: "-29px", helperText: "34px" },
|
|
3410
3415
|
md: { label: "-33px", helperText: "38px" },
|
|
@@ -3420,14 +3425,14 @@ const Vn = ({
|
|
|
3420
3425
|
noBorder: f,
|
|
3421
3426
|
mode: i,
|
|
3422
3427
|
size: k,
|
|
3423
|
-
rightElementClassName:
|
|
3428
|
+
rightElementClassName: T
|
|
3424
3429
|
});
|
|
3425
3430
|
return Ne(() => {
|
|
3426
3431
|
$ && $.width && U($.width + 18 + 10);
|
|
3427
3432
|
}, [$]), Ne(() => {
|
|
3428
|
-
var
|
|
3433
|
+
var V, g;
|
|
3429
3434
|
const { label: E, helperText: b } = C[k];
|
|
3430
|
-
(
|
|
3435
|
+
(V = K == null ? void 0 : K.current) == null || V.style.setProperty("--av-text-input-label", E), (g = I == null ? void 0 : I.current) == null || g.style.setProperty(
|
|
3431
3436
|
"--av-text-input-helper-text",
|
|
3432
3437
|
b
|
|
3433
3438
|
);
|
|
@@ -3453,7 +3458,7 @@ const Vn = ({
|
|
|
3453
3458
|
className: O.input,
|
|
3454
3459
|
...y && { "aria-describedby": `${S}-helper` },
|
|
3455
3460
|
...a && { "aria-invalid": "true" },
|
|
3456
|
-
...w && !n && { style: { paddingRight:
|
|
3461
|
+
...w && !n && { style: { paddingRight: B } },
|
|
3457
3462
|
...Q
|
|
3458
3463
|
}
|
|
3459
3464
|
),
|
|
@@ -3470,7 +3475,7 @@ const Vn = ({
|
|
|
3470
3475
|
y && /* @__PURE__ */ l(
|
|
3471
3476
|
"div",
|
|
3472
3477
|
{
|
|
3473
|
-
ref:
|
|
3478
|
+
ref: I,
|
|
3474
3479
|
id: `${S}-helper`,
|
|
3475
3480
|
className: O.helperText,
|
|
3476
3481
|
children: y
|
|
@@ -3514,32 +3519,32 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3514
3519
|
const [c, m] = z(!0), [y, w] = z({
|
|
3515
3520
|
message: null,
|
|
3516
3521
|
politeness: null
|
|
3517
|
-
}),
|
|
3518
|
-
k.current && clearTimeout(k.current),
|
|
3519
|
-
|
|
3522
|
+
}), T = x(!0), k = x(null), Q = x(null), L = jn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
|
|
3523
|
+
k.current && clearTimeout(k.current), T.current || (k.current = setTimeout(() => {
|
|
3524
|
+
T.current = !0, m(!0), w({
|
|
3520
3525
|
announcementTimeout: qn,
|
|
3521
3526
|
politeness: "polite",
|
|
3522
3527
|
message: `${r} hiding characters`
|
|
3523
3528
|
}), n && n(!0);
|
|
3524
3529
|
}, Xn));
|
|
3525
|
-
},
|
|
3526
|
-
|
|
3527
|
-
const C = !
|
|
3528
|
-
|
|
3530
|
+
}, B = (I) => {
|
|
3531
|
+
I.preventDefault();
|
|
3532
|
+
const C = !T.current;
|
|
3533
|
+
T.current = C, $(), m(C), w({
|
|
3529
3534
|
announcementTimeout: zn,
|
|
3530
3535
|
politeness: "assertive",
|
|
3531
3536
|
message: C ? "Characters hidden" : "Characters showing"
|
|
3532
3537
|
}), n && n(C);
|
|
3533
|
-
}, U = (
|
|
3538
|
+
}, U = (I) => {
|
|
3534
3539
|
var C;
|
|
3535
|
-
const { relatedTarget: O } =
|
|
3536
|
-
|
|
3537
|
-
}, S = (
|
|
3538
|
-
$(), s && s(
|
|
3539
|
-
}, M = (
|
|
3540
|
-
$(), i && i(
|
|
3541
|
-
}, K = (
|
|
3542
|
-
$(), o && o(
|
|
3540
|
+
const { relatedTarget: O } = I, V = (C = Q.current) == null ? void 0 : C.parentElement;
|
|
3541
|
+
V != null && V.contains(O) || d && d();
|
|
3542
|
+
}, S = (I) => {
|
|
3543
|
+
$(), s && s(I), U(I);
|
|
3544
|
+
}, M = (I) => {
|
|
3545
|
+
$(), i && i(I);
|
|
3546
|
+
}, K = (I) => {
|
|
3547
|
+
$(), o && o(I);
|
|
3543
3548
|
};
|
|
3544
3549
|
return Y(() => () => {
|
|
3545
3550
|
k.current && clearTimeout(k.current);
|
|
@@ -3559,7 +3564,7 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3559
3564
|
rightElement: X.cloneElement(h, {
|
|
3560
3565
|
ref: u,
|
|
3561
3566
|
label: Z,
|
|
3562
|
-
onClick:
|
|
3567
|
+
onClick: B,
|
|
3563
3568
|
onBlur: U,
|
|
3564
3569
|
disabled: t
|
|
3565
3570
|
}),
|
|
@@ -3592,7 +3597,7 @@ try {
|
|
|
3592
3597
|
});
|
|
3593
3598
|
} catch {
|
|
3594
3599
|
}
|
|
3595
|
-
const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in with a Passkey",
|
|
3600
|
+
const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in with a Passkey", zo = "Log out", to = "Password", qo = "Profile", Xo = "Settings", Qo = "Chat history", Zo = "About", es = "Type your question here", ts = "{{clipboard}}", rs = `Sometimes, ${nr} hallucinates. Review important details.`, as = "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.", ns = {
|
|
3596
3601
|
PREFERENCES: {
|
|
3597
3602
|
TITLE: "User profile",
|
|
3598
3603
|
NAME: "Name",
|
|
@@ -3625,8 +3630,12 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3625
3630
|
PROVIDER: "AI model",
|
|
3626
3631
|
PLUGIN: "Plugin"
|
|
3627
3632
|
},
|
|
3628
|
-
|
|
3629
|
-
TITLE: "
|
|
3633
|
+
SETTINGS_PROMPTS: {
|
|
3634
|
+
TITLE: "Prompts"
|
|
3635
|
+
},
|
|
3636
|
+
SETTINGS_DETAILS: {
|
|
3637
|
+
TITLE: "Chat Details",
|
|
3638
|
+
INSTRUCTION: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more."
|
|
3630
3639
|
}
|
|
3631
3640
|
}, ro = () => /* @__PURE__ */ D("div", { className: "flex items-center justify-center", children: [
|
|
3632
3641
|
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(_n, {}) }),
|
|
@@ -3756,29 +3765,29 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3756
3765
|
) });
|
|
3757
3766
|
}, no = new URL(document.location.href).searchParams, oo = !!no.get("debug") || !1, so = cr(() => import(
|
|
3758
3767
|
/* webpackChunkName: "LazyApp" */
|
|
3759
|
-
"./App.
|
|
3768
|
+
"./App.CBWEb0V8.js"
|
|
3760
3769
|
).then((e) => e.App)), io = ({ isComponent: e }) => {
|
|
3761
3770
|
const { isAuthenticated: t } = qt();
|
|
3762
3771
|
return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
|
|
3763
3772
|
}, co = ({
|
|
3764
3773
|
isComponent: e = !1,
|
|
3765
3774
|
domain: t = qa
|
|
3766
|
-
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }),
|
|
3775
|
+
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }), os = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
|
|
3767
3776
|
export {
|
|
3768
|
-
|
|
3777
|
+
Zo as ABOUT_TITLE,
|
|
3769
3778
|
Co as ACTION_RESET_PROMPT,
|
|
3770
3779
|
No as ACTION_SEARCH,
|
|
3771
3780
|
vo as ACTION_SORT,
|
|
3772
3781
|
xo as ACTION_TOGGLE_PROMPT,
|
|
3773
3782
|
nr as APP_NAME,
|
|
3774
3783
|
Qt as C,
|
|
3775
|
-
|
|
3776
|
-
|
|
3784
|
+
ns as CARDS,
|
|
3785
|
+
ts as CLIPBOARD_PROMPT,
|
|
3777
3786
|
ko as DEFAULT_AI_PROVIDER,
|
|
3778
|
-
|
|
3787
|
+
Bo as DEFAULT_ICON_ACTION_SIZE,
|
|
3779
3788
|
_o as ERROR_MESSAGE,
|
|
3780
|
-
|
|
3781
|
-
|
|
3789
|
+
rs as FOOTER_DISCLAIMER,
|
|
3790
|
+
Qo as HISTORY_TITLE,
|
|
3782
3791
|
Ko as INFINITE_SCROLL_LIMIT,
|
|
3783
3792
|
Uo as INFINITE_SCROLL_THRESHOLD,
|
|
3784
3793
|
Cn as L,
|
|
@@ -3787,11 +3796,11 @@ export {
|
|
|
3787
3796
|
$o as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
3788
3797
|
Do as LOCAL_STORAGE_SEARCH,
|
|
3789
3798
|
Lo as LOCAL_STORAGE_SORT,
|
|
3790
|
-
|
|
3799
|
+
zo as LOG_OUT,
|
|
3791
3800
|
ro as Logo,
|
|
3792
3801
|
me as M,
|
|
3793
|
-
|
|
3794
|
-
|
|
3802
|
+
qo as PROFILE_TITLE,
|
|
3803
|
+
as as PROMPTS_DESCRIPTION,
|
|
3795
3804
|
Ho as PROMPT_CLASSNAME,
|
|
3796
3805
|
Wo as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
3797
3806
|
Ro as PROVIDER_ANTHROPIC,
|
|
@@ -3799,24 +3808,25 @@ export {
|
|
|
3799
3808
|
Sn as R,
|
|
3800
3809
|
wo as ROLE_ASSISTANT,
|
|
3801
3810
|
So as ROLE_HIDDEN,
|
|
3802
|
-
|
|
3803
|
-
|
|
3811
|
+
Io as ROLE_INTERNAL,
|
|
3812
|
+
To as ROLE_SYSTEM,
|
|
3804
3813
|
Eo as ROLE_USER,
|
|
3805
|
-
|
|
3814
|
+
Xo as SETTINGS_TITLE,
|
|
3806
3815
|
Mo as STATS_SEPARATOR,
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3816
|
+
os as SassySaint,
|
|
3817
|
+
es as TYPE_QUESTION,
|
|
3818
|
+
jo as debounce,
|
|
3819
|
+
Yo as durationFormatter,
|
|
3811
3820
|
He as f,
|
|
3812
3821
|
ot as fe,
|
|
3813
|
-
|
|
3822
|
+
Vo as getCurrentGeoLocation,
|
|
3814
3823
|
Qa as getMainPaddingClass,
|
|
3815
3824
|
Xa as getMessageContaintWrapperClass,
|
|
3816
3825
|
Za as isElectron,
|
|
3817
3826
|
re as j,
|
|
3818
3827
|
An as l,
|
|
3819
|
-
|
|
3828
|
+
Go as numberFormatter,
|
|
3829
|
+
Fo as pluralize,
|
|
3820
3830
|
vn as r,
|
|
3821
3831
|
Pe as re,
|
|
3822
3832
|
Jo as renderDataAsList,
|