@versini/sassysaint 6.4.2 → 6.5.1

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as M, Fragment as et } from "react/jsx-runtime";
2
- import X, { createContext as or, useReducer as Tt, useRef as x, useCallback as q, useEffect as Y, useContext as It, useSyncExternalStore as sr, useLayoutEffect as Re, useMemo as De, useState as z, useId as St, lazy as ir, Suspense as cr } from "react";
2
+ import X, { createContext as sr, useReducer as Tt, useRef as x, useCallback as q, useEffect as Y, useContext as St, useSyncExternalStore as ir, useLayoutEffect as Re, useMemo as De, useState as z, useId as _t, lazy as cr, Suspense as lr } from "react";
3
3
  import p from "clsx";
4
- var lr = Object.defineProperty, dr = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, He = (e, t, r) => dr(e, typeof t != "symbol" ? t + "" : t, r);
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, He = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
6
  @versini/auth-provider v7.4.0
7
7
  © 2024 gizmette.com
@@ -31,7 +31,7 @@ function Ne(e) {
31
31
  function tt() {
32
32
  return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
33
33
  }
34
- function _t(e) {
34
+ function kt(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
@@ -39,7 +39,7 @@ function _t(e) {
39
39
  transports: e.transports
40
40
  };
41
41
  }
42
- function kt(e) {
42
+ function At(e) {
43
43
  return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
44
44
  }
45
45
  let v = class extends Error {
@@ -47,7 +47,7 @@ let v = class extends Error {
47
47
  super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
48
48
  }
49
49
  };
50
- function ur({ error: e, options: t }) {
50
+ function mr({ error: e, options: t }) {
51
51
  var a, n;
52
52
  const { publicKey: r } = t;
53
53
  if (!r)
@@ -97,7 +97,7 @@ function ur({ error: e, options: t }) {
97
97
  });
98
98
  if (e.name === "SecurityError") {
99
99
  const o = window.location.hostname;
100
- if (kt(o)) {
100
+ if (At(o)) {
101
101
  if (r.rp.id !== o)
102
102
  return new v({
103
103
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
@@ -125,7 +125,7 @@ function ur({ error: e, options: t }) {
125
125
  }
126
126
  return e;
127
127
  }
128
- class mr {
128
+ class hr {
129
129
  createNewAbortSignal() {
130
130
  if (this.controller) {
131
131
  const r = new Error("Cancelling existing WebAuthn API call for new one");
@@ -141,12 +141,12 @@ class mr {
141
141
  }
142
142
  }
143
143
  }
144
- const At = new mr(), hr = ["cross-platform", "platform"];
145
- function Rt(e) {
146
- if (e && !(hr.indexOf(e) < 0))
144
+ const Rt = new hr(), pr = ["cross-platform", "platform"];
145
+ function Nt(e) {
146
+ if (e && !(pr.indexOf(e) < 0))
147
147
  return e;
148
148
  }
149
- async function pr(e) {
149
+ async function fr(e) {
150
150
  var u;
151
151
  if (!tt())
152
152
  throw new Error("WebAuthn is not supported in this browser");
@@ -157,14 +157,14 @@ async function pr(e) {
157
157
  ...e.user,
158
158
  id: Ne(e.user.id)
159
159
  },
160
- excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(_t)
160
+ excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(kt)
161
161
  } };
162
- t.signal = At.createNewAbortSignal();
162
+ t.signal = Rt.createNewAbortSignal();
163
163
  let r;
164
164
  try {
165
165
  r = await navigator.credentials.create(t);
166
166
  } catch (c) {
167
- throw ur({ error: c, options: t });
167
+ throw mr({ error: c, options: t });
168
168
  }
169
169
  if (!r)
170
170
  throw new Error("Registration was not completed");
@@ -206,20 +206,20 @@ async function pr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: Rt(r.authenticatorAttachment)
209
+ authenticatorAttachment: Nt(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function We(e, t) {
213
213
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
214
214
  `, t);
215
215
  }
216
- function fr() {
216
+ function gr() {
217
217
  if (!tt())
218
218
  return new Promise((t) => t(!1));
219
219
  const e = window.PublicKeyCredential;
220
220
  return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
221
221
  }
222
- function gr({ error: e, options: t }) {
222
+ function yr({ error: e, options: t }) {
223
223
  const { publicKey: r } = t;
224
224
  if (!r)
225
225
  throw Error("options was missing required publicKey property");
@@ -239,7 +239,7 @@ function gr({ error: e, options: t }) {
239
239
  });
240
240
  if (e.name === "SecurityError") {
241
241
  const a = window.location.hostname;
242
- if (kt(a)) {
242
+ if (At(a)) {
243
243
  if (r.rpId !== a)
244
244
  return new v({
245
245
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
@@ -260,30 +260,30 @@ function gr({ error: e, options: t }) {
260
260
  }
261
261
  return e;
262
262
  }
263
- async function yr(e, t = !1) {
263
+ async function br(e, t = !1) {
264
264
  var u, c;
265
265
  if (!tt())
266
266
  throw new Error("WebAuthn is not supported in this browser");
267
267
  let r;
268
- ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(_t));
268
+ ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(kt));
269
269
  const a = {
270
270
  ...e,
271
271
  challenge: Ne(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
275
- if (!await fr())
275
+ if (!await gr())
276
276
  throw Error("Browser does not support WebAuthn autofill");
277
277
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1)
278
278
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
279
279
  n.mediation = "conditional", a.allowCredentials = [];
280
280
  }
281
- n.publicKey = a, n.signal = At.createNewAbortSignal();
281
+ n.publicKey = a, n.signal = Rt.createNewAbortSignal();
282
282
  let o;
283
283
  try {
284
284
  o = await navigator.credentials.get(n);
285
285
  } catch (m) {
286
- throw gr({ error: m, options: n });
286
+ throw yr({ error: m, options: n });
287
287
  }
288
288
  if (!o)
289
289
  throw new Error("Authentication was not completed");
@@ -300,7 +300,7 @@ async function yr(e, t = !1) {
300
300
  },
301
301
  type: h,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: Rt(o.authenticatorAttachment)
303
+ authenticatorAttachment: Nt(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
@@ -323,7 +323,7 @@ const me = {
323
323
  CODE: "code",
324
324
  REFRESH_TOKEN: "refresh_token",
325
325
  PASSKEY: "passkey"
326
- }, Nt = {
326
+ }, vt = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
328
  }, N = {
329
329
  ALG: "RS256",
@@ -338,7 +338,7 @@ const me = {
338
338
  SCOPES_KEY: "scopes",
339
339
  CLIENT_ID_KEY: "aud",
340
340
  ISSUER: "gizmette.com"
341
- }, br = `-----BEGIN PUBLIC KEY-----
341
+ }, Er = `-----BEGIN PUBLIC KEY-----
342
342
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
343
343
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
344
344
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -351,15 +351,15 @@ awIDAQAB
351
351
  LOGOUT: "logout",
352
352
  LOGIN: "login",
353
353
  REFRESH: "refresh"
354
- }, $e = crypto, vt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
355
- function Er(...e) {
354
+ }, $e = crypto, xt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
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;
358
358
  for (const n of e)
359
359
  r.set(n, a), a += n.length;
360
360
  return r;
361
361
  }
362
- const wr = (e) => {
362
+ const Ir = (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 wr = (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 wr(t);
371
+ return Ir(t);
372
372
  } catch {
373
373
  throw new TypeError("The input to be decoded is not correctly encoded.");
374
374
  }
@@ -392,12 +392,12 @@ class qe extends P {
392
392
  }
393
393
  }
394
394
  qe.code = "ERR_JWT_EXPIRED";
395
- class xt extends P {
395
+ class Ct extends P {
396
396
  constructor() {
397
397
  super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
398
398
  }
399
399
  }
400
- xt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
400
+ Ct.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
401
  let W = class extends P {
402
402
  constructor() {
403
403
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
@@ -410,12 +410,12 @@ class Tr extends P {
410
410
  }
411
411
  }
412
412
  Tr.code = "ERR_JWE_DECRYPTION_FAILED";
413
- class Ir extends P {
413
+ class Sr extends P {
414
414
  constructor() {
415
415
  super(...arguments), this.code = "ERR_JWE_INVALID";
416
416
  }
417
417
  }
418
- Ir.code = "ERR_JWE_INVALID";
418
+ Sr.code = "ERR_JWE_INVALID";
419
419
  let _ = class extends P {
420
420
  constructor() {
421
421
  super(...arguments), this.code = "ERR_JWS_INVALID";
@@ -428,36 +428,36 @@ let J = class extends P {
428
428
  }
429
429
  };
430
430
  J.code = "ERR_JWT_INVALID";
431
- class Sr extends P {
431
+ class _r extends P {
432
432
  constructor() {
433
433
  super(...arguments), this.code = "ERR_JWK_INVALID";
434
434
  }
435
435
  }
436
- Sr.code = "ERR_JWK_INVALID";
437
- class _r extends P {
436
+ _r.code = "ERR_JWK_INVALID";
437
+ class kr extends P {
438
438
  constructor() {
439
439
  super(...arguments), this.code = "ERR_JWKS_INVALID";
440
440
  }
441
441
  }
442
- _r.code = "ERR_JWKS_INVALID";
443
- class kr extends P {
442
+ kr.code = "ERR_JWKS_INVALID";
443
+ class Ar extends P {
444
444
  constructor(t = "no applicable key found in the JSON Web Key Set", r) {
445
445
  super(t, r), this.code = "ERR_JWKS_NO_MATCHING_KEY";
446
446
  }
447
447
  }
448
- kr.code = "ERR_JWKS_NO_MATCHING_KEY";
449
- class Ar extends P {
448
+ Ar.code = "ERR_JWKS_NO_MATCHING_KEY";
449
+ class Rr extends P {
450
450
  constructor(t = "multiple matching keys found in the JSON Web Key Set", r) {
451
451
  super(t, r), this.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
452
452
  }
453
453
  }
454
- Ar.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
- class Rr extends P {
454
+ Rr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
+ class Nr extends P {
456
456
  constructor(t = "request timed out", r) {
457
457
  super(t, r), this.code = "ERR_JWKS_TIMEOUT";
458
458
  }
459
459
  }
460
- Rr.code = "ERR_JWKS_TIMEOUT";
460
+ Nr.code = "ERR_JWKS_TIMEOUT";
461
461
  class Ot extends P {
462
462
  constructor(t = "signature verification failed", r) {
463
463
  super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
@@ -473,7 +473,7 @@ function we(e, t) {
473
473
  function Be(e) {
474
474
  return parseInt(e.name.slice(4), 10);
475
475
  }
476
- function Nr(e) {
476
+ function vr(e) {
477
477
  switch (e) {
478
478
  case "ES256":
479
479
  return "P-256";
@@ -485,7 +485,7 @@ function Nr(e) {
485
485
  throw new Error("unreachable");
486
486
  }
487
487
  }
488
- function vr(e, t) {
488
+ function xr(e, t) {
489
489
  if (t.length && !t.some((r) => e.usages.includes(r))) {
490
490
  let r = "CryptoKey does not support this operation, its usages must include ";
491
491
  if (t.length > 2) {
@@ -495,7 +495,7 @@ function vr(e, t) {
495
495
  throw new TypeError(r);
496
496
  }
497
497
  }
498
- function xr(e, t, ...r) {
498
+ function Cr(e, t, ...r) {
499
499
  switch (t) {
500
500
  case "HS256":
501
501
  case "HS384":
@@ -537,7 +537,7 @@ function xr(e, t, ...r) {
537
537
  case "ES512": {
538
538
  if (!we(e.algorithm, "ECDSA"))
539
539
  throw j("ECDSA");
540
- const a = Nr(t);
540
+ const a = vr(t);
541
541
  if (e.algorithm.namedCurve !== a)
542
542
  throw j(a, "algorithm.namedCurve");
543
543
  break;
@@ -545,9 +545,9 @@ function xr(e, t, ...r) {
545
545
  default:
546
546
  throw new TypeError("CryptoKey does not support this operation");
547
547
  }
548
- vr(e, r);
548
+ xr(e, r);
549
549
  }
550
- function Ct(e, t, ...r) {
550
+ function Pt(e, t, ...r) {
551
551
  var a;
552
552
  if (r = r.filter(Boolean), r.length > 2) {
553
553
  const n = r.pop();
@@ -555,11 +555,11 @@ function Ct(e, t, ...r) {
555
555
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
556
556
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
557
557
  }
558
- const it = (e, ...t) => Ct("Key must be ", e, ...t);
559
- function Pt(e, t, ...r) {
560
- return Ct(`Key for the ${e} algorithm must be `, t, ...r);
558
+ const it = (e, ...t) => Pt("Key must be ", e, ...t);
559
+ function Dt(e, t, ...r) {
560
+ return Pt(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Or = (...e) => {
562
+ const Lt = (e) => xt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Or = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -578,11 +578,11 @@ const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
578
578
  }
579
579
  return !0;
580
580
  };
581
- function Cr(e) {
581
+ function Pr(e) {
582
582
  return typeof e == "object" && e !== null;
583
583
  }
584
584
  function he(e) {
585
- if (!Cr(e) || Object.prototype.toString.call(e) !== "[object Object]")
585
+ if (!Pr(e) || Object.prototype.toString.call(e) !== "[object Object]")
586
586
  return !1;
587
587
  if (Object.getPrototypeOf(e) === null)
588
588
  return !0;
@@ -591,7 +591,7 @@ function he(e) {
591
591
  t = Object.getPrototypeOf(t);
592
592
  return Object.getPrototypeOf(e) === t;
593
593
  }
594
- const Pr = (e, t) => {
594
+ const Dr = (e, t) => {
595
595
  if (e.startsWith("RS") || e.startsWith("PS")) {
596
596
  const { modulusLength: r } = t.algorithm;
597
597
  if (typeof r != "number" || r < 2048)
@@ -601,16 +601,16 @@ const Pr = (e, t) => {
601
601
  function pe(e) {
602
602
  return he(e) && typeof e.kty == "string";
603
603
  }
604
- function Dr(e) {
604
+ function Lr(e) {
605
605
  return e.kty !== "oct" && typeof e.d == "string";
606
606
  }
607
- function Lr(e) {
607
+ function $r(e) {
608
608
  return e.kty !== "oct" && typeof e.d > "u";
609
609
  }
610
- function $r(e) {
610
+ function Mr(e) {
611
611
  return pe(e) && e.kty === "oct" && typeof e.k == "string";
612
612
  }
613
- function Mr(e) {
613
+ function Ur(e) {
614
614
  let t, r;
615
615
  switch (e.kty) {
616
616
  case "RSA": {
@@ -682,36 +682,36 @@ function Mr(e) {
682
682
  }
683
683
  return { algorithm: t, keyUsages: r };
684
684
  }
685
- const Lt = async (e) => {
685
+ const $t = async (e) => {
686
686
  if (!e.alg)
687
687
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
688
- const { algorithm: t, keyUsages: r } = Mr(e), a = [
688
+ const { algorithm: t, keyUsages: r } = Ur(e), a = [
689
689
  t,
690
690
  e.ext ?? !1,
691
691
  e.key_ops ?? r
692
692
  ], n = { ...e };
693
693
  return delete n.alg, delete n.use, $e.subtle.importKey("jwk", n, ...a);
694
- }, $t = (e) => te(e);
694
+ }, Mt = (e) => te(e);
695
695
  let oe, se;
696
- const Mt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
696
+ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
697
697
  let o = e.get(t);
698
698
  if (o != null && o[a])
699
699
  return o[a];
700
- const s = await Lt({ ...r, alg: a });
700
+ const s = await $t({ ...r, alg: a });
701
701
  return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
702
- }, Ur = (e, t) => {
703
- if (Mt(e)) {
702
+ }, Kr = (e, t) => {
703
+ if (Ut(e)) {
704
704
  let r = e.export({ format: "jwk" });
705
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? $t(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), xe(se, e, r, t));
705
+ return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), xe(se, e, r, t));
706
706
  }
707
707
  return pe(e) ? e.k ? te(e.k) : (se || (se = /* @__PURE__ */ new WeakMap()), xe(se, e, e, t, !0)) : e;
708
- }, Kr = (e, t) => {
709
- if (Mt(e)) {
708
+ }, Hr = (e, t) => {
709
+ if (Ut(e)) {
710
710
  let r = e.export({ format: "jwk" });
711
- return r.k ? $t(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), xe(oe, e, r, t));
711
+ return r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), xe(oe, e, r, t));
712
712
  }
713
713
  return pe(e) ? e.k ? te(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), xe(oe, e, e, t, !0)) : e;
714
- }, Hr = { normalizePublicKey: Ur, normalizePrivateKey: Kr }, ee = (e, t, r = 0) => {
714
+ }, Wr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, ee = (e, t, r = 0) => {
715
715
  r === 0 && (t.unshift(t.length), t.unshift(6));
716
716
  const a = e.indexOf(t[0], r);
717
717
  if (a === -1)
@@ -737,7 +737,7 @@ const Mt = (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
- }, Wr = async (e, t, r, a, n) => {
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,13 +784,13 @@ const Mt = (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 $e.subtle.importKey(t, i, o, !1, s);
787
- }, Br = (e, t, r) => Wr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
- async function Gr(e, t, r) {
787
+ }, Gr = (e, t, r) => Br(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
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 Br(e, t);
791
+ return Gr(e, t);
792
792
  }
793
- async function Jr(e, t) {
793
+ async function Vr(e, t) {
794
794
  if (!he(e))
795
795
  throw new TypeError("JWK must be an object");
796
796
  switch (t || (t = e.alg), e.kty) {
@@ -803,7 +803,7 @@ async function Jr(e, t) {
803
803
  throw new W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
804
804
  case "EC":
805
805
  case "OKP":
806
- return Lt({ ...e, alg: t });
806
+ return $t({ ...e, alg: t });
807
807
  default:
808
808
  throw new W('Unsupported "kty" (Key Type) Parameter value');
809
809
  }
@@ -817,32 +817,32 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
817
817
  if (t.alg !== void 0 && t.alg !== e)
818
818
  throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
819
819
  return !0;
820
- }, Vr = (e, t, r, a) => {
820
+ }, Yr = (e, t, r, a) => {
821
821
  if (!(t instanceof Uint8Array)) {
822
822
  if (a && pe(t)) {
823
- if ($r(t) && Xe(e, t, r))
823
+ if (Mr(t) && Xe(e, t, r))
824
824
  return;
825
825
  throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
826
826
  }
827
- if (!Dt(t))
828
- throw new TypeError(Pt(e, t, ...ve, "Uint8Array", a ? "JSON Web Key" : null));
827
+ if (!Lt(t))
828
+ throw new TypeError(Dt(e, t, ...ve, "Uint8Array", a ? "JSON Web Key" : null));
829
829
  if (t.type !== "secret")
830
830
  throw new TypeError(`${ue(t)} instances for symmetric algorithms must be of type "secret"`);
831
831
  }
832
- }, Yr = (e, t, r, a) => {
832
+ }, Fr = (e, t, r, a) => {
833
833
  if (a && pe(t))
834
834
  switch (r) {
835
835
  case "sign":
836
- if (Dr(t) && Xe(e, t, r))
836
+ if (Lr(t) && Xe(e, t, r))
837
837
  return;
838
838
  throw new TypeError("JSON Web Key for this operation be a private JWK");
839
839
  case "verify":
840
- if (Lr(t) && Xe(e, t, r))
840
+ if ($r(t) && Xe(e, t, r))
841
841
  return;
842
842
  throw new TypeError("JSON Web Key for this operation be a public JWK");
843
843
  }
844
- if (!Dt(t))
845
- throw new TypeError(Pt(e, t, ...ve, a ? "JSON Web Key" : null));
844
+ if (!Lt(t))
845
+ throw new TypeError(Dt(e, t, ...ve, a ? "JSON Web Key" : null));
846
846
  if (t.type === "secret")
847
847
  throw new TypeError(`${ue(t)} instances for asymmetric algorithms must not be of type "secret"`);
848
848
  if (r === "sign" && t.type === "public")
@@ -854,12 +854,12 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
854
854
  if (t.algorithm && r === "encrypt" && t.type === "private")
855
855
  throw new TypeError(`${ue(t)} instances for asymmetric algorithm encryption must be of type "public"`);
856
856
  };
857
- function Ut(e, t, r, a) {
858
- t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Vr(t, r, a, e) : Yr(t, r, a, e);
857
+ function Kt(e, t, r, a) {
858
+ t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Yr(t, r, a, e) : Fr(t, r, a, e);
859
859
  }
860
- Ut.bind(void 0, !1);
861
- const lt = Ut.bind(void 0, !0);
862
- function Fr(e, t, r, a, n) {
860
+ Kt.bind(void 0, !1);
861
+ const lt = Kt.bind(void 0, !0);
862
+ function jr(e, t, r, a, n) {
863
863
  if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
864
864
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
865
865
  if (!a || a.crit === void 0)
@@ -878,13 +878,13 @@ function Fr(e, t, r, a, n) {
878
878
  }
879
879
  return new Set(a.crit);
880
880
  }
881
- const jr = (e, t) => {
881
+ const zr = (e, t) => {
882
882
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
883
883
  throw new TypeError(`"${e}" option must be an array of strings`);
884
884
  if (t)
885
885
  return new Set(t);
886
886
  };
887
- function zr(e, t) {
887
+ function qr(e, t) {
888
888
  const r = `SHA-${e.slice(-3)}`;
889
889
  switch (e) {
890
890
  case "HS256":
@@ -909,9 +909,9 @@ function zr(e, t) {
909
909
  throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`);
910
910
  }
911
911
  }
912
- async function qr(e, t, r) {
913
- if (t = await Hr.normalizePublicKey(t, e), vt(t))
914
- return xr(t, e, r), t;
912
+ async function Xr(e, t, r) {
913
+ if (t = await Wr.normalizePublicKey(t, e), xt(t))
914
+ return Cr(t, e, r), t;
915
915
  if (t instanceof Uint8Array) {
916
916
  if (!e.startsWith("HS"))
917
917
  throw new TypeError(it(t, ...ve));
@@ -919,17 +919,17 @@ async function qr(e, t, r) {
919
919
  }
920
920
  throw new TypeError(it(t, ...ve, "Uint8Array", "JSON Web Key"));
921
921
  }
922
- const Xr = async (e, t, r, a) => {
923
- const n = await qr(e, t, "verify");
924
- Pr(e, n);
925
- const o = zr(e, n.algorithm);
922
+ const Qr = async (e, t, r, a) => {
923
+ const n = await Xr(e, t, "verify");
924
+ Dr(e, n);
925
+ const o = qr(e, n.algorithm);
926
926
  try {
927
927
  return await $e.subtle.verify(o, n, r, a);
928
928
  } catch {
929
929
  return !1;
930
930
  }
931
931
  };
932
- async function Qr(e, t, r) {
932
+ async function Zr(e, t, r) {
933
933
  if (!he(e))
934
934
  throw new _("Flattened JWS must be an object");
935
935
  if (e.protected === void 0 && e.header === void 0)
@@ -955,31 +955,31 @@ async function Qr(e, t, r) {
955
955
  const n = {
956
956
  ...a,
957
957
  ...e.header
958
- }, o = Fr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
958
+ }, o = jr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
959
959
  let s = !0;
960
960
  if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
961
961
  throw new _('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
962
962
  const { alg: i } = n;
963
963
  if (typeof i != "string" || !i)
964
964
  throw new _('JWS "alg" (Algorithm) Header Parameter missing or invalid');
965
- const d = jr("algorithms", r.algorithms);
965
+ const d = zr("algorithms", r.algorithms);
966
966
  if (d && !d.has(i))
967
- throw new xt('"alg" (Algorithm) Header Parameter value not allowed');
967
+ throw new Ct('"alg" (Algorithm) Header Parameter value not allowed');
968
968
  if (s) {
969
969
  if (typeof e.payload != "string")
970
970
  throw new _("JWS Payload must be a string");
971
971
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
972
972
  throw new _("JWS Payload must be a string or an Uint8Array instance");
973
973
  let h = !1;
974
- typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), pe(t) && (t = await Jr(t, i))) : lt(i, t, "verify");
975
- const f = Er(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
974
+ typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), pe(t) && (t = await Vr(t, i))) : lt(i, t, "verify");
975
+ const f = wr(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
976
976
  let u;
977
977
  try {
978
978
  u = te(e.signature);
979
979
  } catch {
980
980
  throw new _("Failed to base64url decode the signature");
981
981
  }
982
- if (!await Xr(i, t, u, f))
982
+ if (!await Qr(i, t, u, f))
983
983
  throw new Ot();
984
984
  let c;
985
985
  if (s)
@@ -992,17 +992,17 @@ async function Qr(e, t, r) {
992
992
  const m = { payload: c };
993
993
  return e.protected !== void 0 && (m.protectedHeader = a), e.header !== void 0 && (m.unprotectedHeader = e.header), h ? { ...m, key: t } : m;
994
994
  }
995
- async function Zr(e, t, r) {
995
+ async function ea(e, t, r) {
996
996
  if (e instanceof Uint8Array && (e = ye.decode(e)), typeof e != "string")
997
997
  throw new _("Compact JWS must be a string or Uint8Array");
998
998
  const { 0: a, 1: n, 2: o, length: s } = e.split(".");
999
999
  if (s !== 3)
1000
1000
  throw new _("Invalid Compact JWS");
1001
- const i = await Qr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1001
+ const i = await Zr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1002
1002
  return typeof t == "function" ? { ...d, key: i.key } : d;
1003
1003
  }
1004
- const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht * 24, ta = rt * 7, ra = rt * 365.25, aa = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
1005
- const t = aa.exec(e);
1004
+ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt * 24, ra = rt * 7, aa = rt * 365.25, na = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
1005
+ const t = na.exec(e);
1006
1006
  if (!t || t[4] && t[1])
1007
1007
  throw new TypeError("Invalid time period format");
1008
1008
  const r = parseFloat(t[2]), a = t[3].toLowerCase();
@@ -1020,14 +1020,14 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1020
1020
  case "min":
1021
1021
  case "mins":
1022
1022
  case "m":
1023
- n = Math.round(r * Kt);
1023
+ n = Math.round(r * Ht);
1024
1024
  break;
1025
1025
  case "hour":
1026
1026
  case "hours":
1027
1027
  case "hr":
1028
1028
  case "hrs":
1029
1029
  case "h":
1030
- n = Math.round(r * Ht);
1030
+ n = Math.round(r * Wt);
1031
1031
  break;
1032
1032
  case "day":
1033
1033
  case "days":
@@ -1037,14 +1037,14 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1037
1037
  case "week":
1038
1038
  case "weeks":
1039
1039
  case "w":
1040
- n = Math.round(r * ta);
1040
+ n = Math.round(r * ra);
1041
1041
  break;
1042
1042
  default:
1043
- n = Math.round(r * ra);
1043
+ n = Math.round(r * aa);
1044
1044
  break;
1045
1045
  }
1046
1046
  return t[1] === "-" || t[4] === "ago" ? -n : n;
1047
- }, ut = (e) => e.toLowerCase().replace(/^application\//, ""), na = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, oa = (e, t, r = {}) => {
1047
+ }, ut = (e) => e.toLowerCase().replace(/^application\//, ""), oa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, sa = (e, t, r = {}) => {
1048
1048
  let a;
1049
1049
  try {
1050
1050
  a = JSON.parse(ye.decode(t));
@@ -1064,7 +1064,7 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1064
1064
  throw new H('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
1066
1066
  throw new H('unexpected "sub" claim value', a, "sub", "check_failed");
1067
- if (d && !na(a.aud, typeof d == "string" ? [d] : d))
1067
+ if (d && !oa(a.aud, typeof d == "string" ? [d] : d))
1068
1068
  throw new H('unexpected "aud" claim value', a, "aud", "check_failed");
1069
1069
  let u;
1070
1070
  switch (typeof r.clockTolerance) {
@@ -1080,7 +1080,7 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1080
1080
  default:
1081
1081
  throw new TypeError("Invalid clockTolerance option type");
1082
1082
  }
1083
- const { currentDate: c } = r, m = ea(c || /* @__PURE__ */ new Date());
1083
+ const { currentDate: c } = r, m = ta(c || /* @__PURE__ */ new Date());
1084
1084
  if ((a.iat !== void 0 || h) && typeof a.iat != "number")
1085
1085
  throw new H('"iat" claim must be a number', a, "iat", "invalid");
1086
1086
  if (a.nbf !== void 0) {
@@ -1104,16 +1104,16 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1104
1104
  }
1105
1105
  return a;
1106
1106
  };
1107
- async function sa(e, t, r) {
1107
+ async function ia(e, t, r) {
1108
1108
  var a;
1109
- const n = await Zr(e, t, r);
1109
+ const n = await ea(e, t, r);
1110
1110
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1111
1111
  throw new J("JWTs MUST NOT use unencoded payload");
1112
- const o = { payload: oa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1112
+ const o = { payload: sa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1113
1113
  return typeof t == "function" ? { ...o, key: n.key } : o;
1114
1114
  }
1115
- const ia = te;
1116
- function ca(e) {
1115
+ const ca = te;
1116
+ function la(e) {
1117
1117
  if (typeof e != "string")
1118
1118
  throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
1119
1119
  const { 1: t, length: r } = e.split(".");
@@ -1125,7 +1125,7 @@ function ca(e) {
1125
1125
  throw new J("JWTs must contain a payload");
1126
1126
  let a;
1127
1127
  try {
1128
- a = ia(t);
1128
+ a = ca(t);
1129
1129
  } catch {
1130
1130
  throw new J("Failed to base64url decode the payload");
1131
1131
  }
@@ -1141,81 +1141,81 @@ function ca(e) {
1141
1141
  }
1142
1142
  const ge = async (e) => {
1143
1143
  try {
1144
- const t = N.ALG, r = await Gr(br, t);
1145
- return await sa(e, r, {
1144
+ const t = N.ALG, r = await Jr(Er, t);
1145
+ return await ia(e, r, {
1146
1146
  issuer: N.ISSUER
1147
1147
  });
1148
1148
  } catch {
1149
1149
  return;
1150
1150
  }
1151
- }, la = (e) => {
1151
+ }, da = (e) => {
1152
1152
  try {
1153
- return ca(e);
1153
+ return la(e);
1154
1154
  } catch {
1155
1155
  return;
1156
1156
  }
1157
1157
  }, A = [];
1158
1158
  for (let e = 0; e < 256; ++e)
1159
1159
  A.push((e + 256).toString(16).slice(1));
1160
- function da(e, t = 0) {
1160
+ function ua(e, t = 0) {
1161
1161
  return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
1162
1162
  }
1163
1163
  let Ge;
1164
- const ua = new Uint8Array(16);
1165
- function ma() {
1164
+ const ma = new Uint8Array(16);
1165
+ function ha() {
1166
1166
  if (!Ge) {
1167
1167
  if (typeof crypto > "u" || !crypto.getRandomValues)
1168
1168
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1169
1169
  Ge = crypto.getRandomValues.bind(crypto);
1170
1170
  }
1171
- return Ge(ua);
1171
+ return Ge(ma);
1172
1172
  }
1173
- const ha = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: ha };
1173
+ const pa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: pa };
1174
1174
  function ht(e, t, r) {
1175
1175
  if (mt.randomUUID && !e)
1176
1176
  return mt.randomUUID();
1177
1177
  e = e || {};
1178
- const a = e.random || (e.rng || ma)();
1179
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, da(a);
1178
+ const a = e.random || (e.rng || ha)();
1179
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
1180
1180
  }
1181
- const pt = globalThis.crypto, pa = (e) => `${ht()}${ht()}`.slice(0, e), fa = (e) => btoa(
1181
+ const pt = globalThis.crypto, fa = (e) => `${ht()}${ht()}`.slice(0, e), ga = (e) => btoa(
1182
1182
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
1183
1183
  );
1184
- async function ga(e) {
1184
+ async function ya(e) {
1185
1185
  if (!pt.subtle)
1186
1186
  throw new Error(
1187
1187
  "crypto.subtle is available only in secure contexts (HTTPS)."
1188
1188
  );
1189
1189
  const t = new TextEncoder().encode(e), r = await pt.subtle.digest("SHA-256", t);
1190
- return fa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1190
+ return ga(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1191
1191
  }
1192
- async function ya(e) {
1193
- const t = pa(43), r = await ga(t);
1192
+ async function ba(e) {
1193
+ const t = fa(43), r = await ya(t);
1194
1194
  return {
1195
1195
  code_verifier: t,
1196
1196
  code_challenge: r
1197
1197
  };
1198
1198
  }
1199
- function Wt(e, t) {
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), Wt(e, r);
1207
- }, ba = (e) => {
1208
- window.localStorage.removeItem(e), Wt(e, null);
1209
- }, gt = (e) => window.localStorage.getItem(e), Ea = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
- function Te({
1206
+ window.localStorage.setItem(e, r), Bt(e, r);
1207
+ }, Ea = (e) => {
1208
+ window.localStorage.removeItem(e), Bt(e, null);
1209
+ }, gt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
+ function Ie({
1211
1211
  key: e,
1212
1212
  initialValue: t
1213
1213
  }) {
1214
- const r = sr(Ea, () => gt(e)), a = q(
1214
+ const r = ir(wa, () => gt(e)), a = q(
1215
1215
  (s) => {
1216
1216
  try {
1217
1217
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
1218
- i == null ? ba(e) : ft(e, i);
1218
+ i == null ? Ea(e) : ft(e, i);
1219
1219
  } catch (i) {
1220
1220
  console.warn(i);
1221
1221
  }
@@ -1237,12 +1237,12 @@ function Te({
1237
1237
  const R = [];
1238
1238
  for (let e = 0; e < 256; ++e)
1239
1239
  R.push((e + 256).toString(16).slice(1));
1240
- function wa(e, t = 0) {
1240
+ function Ia(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 Je;
1244
1244
  const Ta = new Uint8Array(16);
1245
- function Ia() {
1245
+ function Sa() {
1246
1246
  if (!Je) {
1247
1247
  if (typeof crypto > "u" || !crypto.getRandomValues)
1248
1248
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
@@ -1250,18 +1250,18 @@ function Ia() {
1250
1250
  }
1251
1251
  return Je(Ta);
1252
1252
  }
1253
- const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Sa };
1253
+ const _a = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: _a };
1254
1254
  function Ve(e, t, r) {
1255
1255
  if (yt.randomUUID && !e)
1256
1256
  return yt.randomUUID();
1257
1257
  e = e || {};
1258
- const a = e.random || (e.rng || Ia)();
1259
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, wa(a);
1258
+ const a = e.random || (e.rng || Sa)();
1259
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ia(a);
1260
1260
  }
1261
- const ie = "Your session has expired. For your security, please log in again to continue.", _a = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", ka = "Error getting access token, please re-authenticate.", Aa = "You forgot to wrap your component in <AuthProvider>.", Oe = {
1261
+ const ie = "Your session has expired. For your security, please log in again to continue.", ka = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", Ra = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1262
1262
  dev: "https://auth.gizmette.local.com:3003",
1263
1263
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", F = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
1264
+ }, Te = "@@auth@@", fe = "LOADING", ke = "LOGIN", Gt = "LOGOUT", be = "success", F = "failure", Jt = "include", Vt = "POST", Yt = "application/json", Se = {
1265
1265
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1266
  $clientId: String!,
1267
1267
  $username: String!,
@@ -1367,14 +1367,14 @@ const ie = "Your session has expired. For your security, please log in again to
1367
1367
  }) => {
1368
1368
  try {
1369
1369
  const n = `Bearer ${e}`, o = await fetch(
1370
- Yt ? `${Oe.dev}/graphql` : `${Oe.prod}/graphql`,
1370
+ Ft ? `${Ce.dev}/graphql` : `${Ce.prod}/graphql`,
1371
1371
  {
1372
- credentials: Gt,
1373
- method: Jt,
1372
+ credentials: Jt,
1373
+ method: Vt,
1374
1374
  headers: {
1375
1375
  authorization: n,
1376
- "Content-Type": Vt,
1377
- [Nt.CLIENT_ID]: `${r}`
1376
+ "Content-Type": Yt,
1377
+ [vt.CLIENT_ID]: `${r}`
1378
1378
  },
1379
1379
  body: JSON.stringify({
1380
1380
  query: t.schema,
@@ -1399,13 +1399,13 @@ const ie = "Your session has expired. For your security, please log in again to
1399
1399
  }) => {
1400
1400
  try {
1401
1401
  const a = await fetch(
1402
- Yt ? `${Oe.dev}/${e}` : `${Oe.prod}/${e}`,
1402
+ Ft ? `${Ce.dev}/${e}` : `${Ce.prod}/${e}`,
1403
1403
  {
1404
- credentials: Gt,
1405
- method: Jt,
1404
+ credentials: Jt,
1405
+ method: Vt,
1406
1406
  headers: {
1407
- "Content-Type": Vt,
1408
- [Nt.CLIENT_ID]: `${t}`
1407
+ "Content-Type": Yt,
1408
+ [vt.CLIENT_ID]: `${t}`
1409
1409
  },
1410
1410
  body: JSON.stringify(r)
1411
1411
  }
@@ -1420,21 +1420,21 @@ const ie = "Your session has expired. For your security, please log in again to
1420
1420
  } catch (a) {
1421
1421
  return console.error(a), { status: F, data: [] };
1422
1422
  }
1423
- }, Ra = process.env.NODE_ENV === "production", Yt = !Ra, Ft = {
1423
+ }, Na = process.env.NODE_ENV === "production", Ft = !Na, jt = {
1424
1424
  isLoading: !0,
1425
1425
  isAuthenticated: !1,
1426
1426
  user: void 0,
1427
1427
  logoutReason: "",
1428
1428
  debug: !1,
1429
1429
  authenticationType: ""
1430
- }, Na = (e) => {
1430
+ }, va = (e) => {
1431
1431
  try {
1432
- const t = la(e);
1432
+ const t = da(e);
1433
1433
  return t ? t[N.USER_ID_KEY] : "";
1434
1434
  } catch {
1435
1435
  return "";
1436
1436
  }
1437
- }, va = async ({
1437
+ }, xa = async ({
1438
1438
  userId: e,
1439
1439
  clientId: t,
1440
1440
  domain: r,
@@ -1458,7 +1458,7 @@ const ie = "Your session has expired. For your security, please log in again to
1458
1458
  status: F
1459
1459
  };
1460
1460
  }
1461
- }, xa = async ({
1461
+ }, Ca = async ({
1462
1462
  username: e,
1463
1463
  password: t,
1464
1464
  clientId: r,
@@ -1531,7 +1531,7 @@ const ie = "Your session has expired. For your security, please log in again to
1531
1531
  data: ""
1532
1532
  };
1533
1533
  }
1534
- }, Ca = async ({
1534
+ }, Pa = async ({
1535
1535
  clientId: e,
1536
1536
  userId: t,
1537
1537
  nonce: r,
@@ -1567,7 +1567,7 @@ const ie = "Your session has expired. For your security, please log in again to
1567
1567
  };
1568
1568
  }
1569
1569
  };
1570
- class Pa {
1570
+ class Da {
1571
1571
  constructor(t = null, r = null) {
1572
1572
  He(this, "refreshTokenPromise", null), He(this, "accessToken"), He(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
1573
1573
  }
@@ -1597,7 +1597,7 @@ class Pa {
1597
1597
  }) {
1598
1598
  const o = await ge(this.refreshToken);
1599
1599
  if (o && o.payload[N.USER_ID_KEY] !== "") {
1600
- const s = await Ca({
1600
+ const s = await Pa({
1601
1601
  clientId: t,
1602
1602
  userId: r,
1603
1603
  nonce: a,
@@ -1618,14 +1618,14 @@ class Pa {
1618
1618
  };
1619
1619
  }
1620
1620
  }
1621
- const Da = (e) => q(
1621
+ const La = (e) => q(
1622
1622
  (...t) => {
1623
1623
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
1624
1624
  },
1625
1625
  [e]
1626
1626
  ), de = () => {
1627
- throw new Error(Aa);
1628
- }, jt = or({
1627
+ throw new Error(Ra);
1628
+ }, zt = sr({
1629
1629
  isAuthenticated: !1,
1630
1630
  isLoading: !1,
1631
1631
  login: de,
@@ -1636,11 +1636,11 @@ const Da = (e) => q(
1636
1636
  loginWithPasskey: de,
1637
1637
  logoutReason: "",
1638
1638
  authenticationType: ""
1639
- }), La = X.createContext({
1640
- state: Ft,
1639
+ }), $a = X.createContext({
1640
+ state: jt,
1641
1641
  dispatch: () => {
1642
1642
  }
1643
- }), $a = (e, t) => (t == null ? void 0 : t.type) === fe ? {
1643
+ }), Ma = (e, t) => (t == null ? void 0 : t.type) === fe ? {
1644
1644
  ...e,
1645
1645
  isLoading: t.payload.isLoading
1646
1646
  } : (t == null ? void 0 : t.type) === ke ? {
@@ -1650,34 +1650,34 @@ const Da = (e) => q(
1650
1650
  user: t.payload.user,
1651
1651
  authenticationType: t.payload.authenticationType,
1652
1652
  logoutReason: ""
1653
- } : (t == null ? void 0 : t.type) === Bt ? {
1653
+ } : (t == null ? void 0 : t.type) === Gt ? {
1654
1654
  ...e,
1655
1655
  isLoading: !1,
1656
1656
  isAuthenticated: !1,
1657
1657
  user: void 0,
1658
1658
  authenticationType: "",
1659
1659
  logoutReason: t.payload.logoutReason
1660
- } : e, Ma = ({
1660
+ } : e, Ua = ({
1661
1661
  children: e,
1662
1662
  sessionExpiration: t,
1663
1663
  clientId: r,
1664
1664
  domain: a = "",
1665
1665
  debug: n = !1
1666
1666
  }) => {
1667
- const [o, s] = Tt($a, {
1668
- ...Ft,
1667
+ const [o, s] = Tt(Ma, {
1668
+ ...jt,
1669
1669
  debug: n
1670
- }), i = Da(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(
1670
+ }), i = La(n), d = x(!1), [h, f, , u] = Ie({
1671
+ key: `${Te}::${r}::@@user@@`
1672
+ }), [c, m, , y] = Ie({
1673
+ key: `${Te}::${r}::@@access@@`
1674
+ }), [w, I, , k] = Ie(
1675
1675
  {
1676
- key: `${Ie}::${r}::@@refresh@@`
1676
+ key: `${Te}::${r}::@@refresh@@`
1677
1677
  }
1678
- ), [Q, D, , Z] = Te({
1679
- key: `${Ie}::${r}::@@nonce@@`
1680
- }), L = new Pa(c, w), B = q(() => {
1678
+ ), [Q, D, , Z] = Ie({
1679
+ key: `${Te}::${r}::@@nonce@@`
1680
+ }), L = new Da(c, w), B = q(() => {
1681
1681
  i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
1682
1682
  }, [
1683
1683
  y,
@@ -1691,7 +1691,7 @@ const Da = (e) => q(
1691
1691
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1692
1692
  g
1693
1693
  ), s({
1694
- type: Bt,
1694
+ type: Gt,
1695
1695
  payload: {
1696
1696
  logoutReason: g || ie
1697
1697
  }
@@ -1701,10 +1701,10 @@ const Da = (e) => q(
1701
1701
  ), S = q(
1702
1702
  async (g) => {
1703
1703
  i("invalidateAndLogout: invalidating and logging out");
1704
- const { user: E } = o, b = (E == null ? void 0 : E.userId) || Na(h);
1704
+ const { user: E } = o, b = (E == null ? void 0 : E.userId) || va(h);
1705
1705
  b || i(
1706
1706
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1707
- ), await va({
1707
+ ), await xa({
1708
1708
  userId: b,
1709
1709
  clientId: r,
1710
1710
  domain: a,
@@ -1742,13 +1742,13 @@ const Da = (e) => q(
1742
1742
  s({ type: fe, payload: { isLoading: !0 } }), B();
1743
1743
  const b = Ve();
1744
1744
  D(b), i("login: Logging in with password");
1745
- const { code_verifier: ae, code_challenge: nr } = await ya(), st = await Oa({
1745
+ const { code_verifier: ae, code_challenge: or } = await ba(), st = await Oa({
1746
1746
  nonce: b,
1747
1747
  clientId: r,
1748
- code_challenge: nr
1748
+ code_challenge: or
1749
1749
  });
1750
1750
  if (st.status) {
1751
- const ne = await xa({
1751
+ const ne = await Ca({
1752
1752
  username: g,
1753
1753
  password: E,
1754
1754
  clientId: r,
@@ -1760,7 +1760,7 @@ const Da = (e) => q(
1760
1760
  domain: a,
1761
1761
  ua: navigator.userAgent
1762
1762
  });
1763
- return ne.status ? (f(ne.idToken), m(ne.accessToken), T(ne.refreshToken), s({
1763
+ return ne.status ? (f(ne.idToken), m(ne.accessToken), I(ne.refreshToken), s({
1764
1764
  type: ke,
1765
1765
  payload: {
1766
1766
  authenticationType: me.CODE,
@@ -1774,8 +1774,8 @@ const Da = (e) => q(
1774
1774
  }
1775
1775
  return !1;
1776
1776
  }, K = async (g) => {
1777
- g == null || g.preventDefault(), await S(_a);
1778
- }, I = async () => {
1777
+ g == null || g.preventDefault(), await S(ka);
1778
+ }, T = async () => {
1779
1779
  const { isAuthenticated: g, user: E } = o;
1780
1780
  try {
1781
1781
  if (g && E && E.userId) {
@@ -1792,7 +1792,7 @@ const Da = (e) => q(
1792
1792
  nonce: Q,
1793
1793
  domain: a
1794
1794
  });
1795
- return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), T(b.newRefreshToken), b.newAccessToken) : (i(
1795
+ return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), I(b.newRefreshToken), b.newAccessToken) : (i(
1796
1796
  "getAccessToken: invalid refresh token, need to re-authenticate"
1797
1797
  ), await S(ie), "");
1798
1798
  }
@@ -1802,9 +1802,9 @@ const Da = (e) => q(
1802
1802
  } catch {
1803
1803
  return i(
1804
1804
  "getAccessToken: exception occurred, invalidating and logging out"
1805
- ), await S(ka), "";
1805
+ ), await S(Aa), "";
1806
1806
  }
1807
- }, O = () => o.isAuthenticated && h ? h : "", C = async () => {
1807
+ }, C = () => o.isAuthenticated && h ? h : "", O = async () => {
1808
1808
  const { user: g } = o;
1809
1809
  let E = await le({
1810
1810
  accessToken: c,
@@ -1818,7 +1818,7 @@ const Da = (e) => q(
1818
1818
  });
1819
1819
  if (E.status)
1820
1820
  try {
1821
- const b = await pr(E.data);
1821
+ const b = await fr(E.data);
1822
1822
  return E = await le({
1823
1823
  accessToken: c,
1824
1824
  clientId: r,
@@ -1860,7 +1860,7 @@ const Da = (e) => q(
1860
1860
  });
1861
1861
  if (b.status)
1862
1862
  try {
1863
- const ae = await yr(b.data);
1863
+ const ae = await br(b.data);
1864
1864
  return b = await le({
1865
1865
  accessToken: c,
1866
1866
  clientId: r,
@@ -1874,7 +1874,7 @@ const Da = (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), T(b.data.refreshToken), s({
1877
+ }), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken), I(b.data.refreshToken), s({
1878
1878
  type: ke,
1879
1879
  payload: {
1880
1880
  authenticationType: me.PASSKEY,
@@ -1902,23 +1902,23 @@ const Da = (e) => q(
1902
1902
  }
1903
1903
  return !1;
1904
1904
  };
1905
- return /* @__PURE__ */ l(La.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
- jt.Provider,
1905
+ return /* @__PURE__ */ l($a.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
+ zt.Provider,
1907
1907
  {
1908
1908
  value: {
1909
1909
  ...o,
1910
1910
  login: $,
1911
1911
  logout: K,
1912
- getAccessToken: I,
1913
- getIdToken: O,
1914
- registeringForPasskey: C,
1912
+ getAccessToken: T,
1913
+ getIdToken: C,
1914
+ registeringForPasskey: O,
1915
1915
  loginWithPasskey: G
1916
1916
  },
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, zt = (e = jt) => It(e), yo = "user", bo = "assistant", Eo = "system", wo = "internal", To = "hidden", Io = "I'm having trouble right now. Please try again later.", So = "OpenAI", _o = "OpenAI", ko = "Anthropic", Ao = "action-message", Ro = "action-reset", No = "action-model", vo = "action-restore", xo = "action-streaming", Oo = "action-search", Co = "action-sort", Po = "action-toggle-prompt", Do = "action-reset-prompt", Lo = "sassy-saint-", $o = "details", Mo = "search", Uo = "sort", Ko = "private-disclosure", Ho = "==stats==", Ua = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Wo = 10, Bo = 30, Go = "av-prompt", Jo = "av-prompt-editable", Vo = "size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1921
- function Ka(e) {
1920
+ }, qt = (e = zt) => St(e), bo = "user", Eo = "assistant", wo = "system", Io = "internal", To = "hidden", So = "I'm having trouble right now. Please try again later.", _o = "OpenAI", ko = "OpenAI", Ao = "Anthropic", Ro = "action-message", No = "action-reset", vo = "action-model", xo = "action-restore", Co = "action-streaming", Oo = "action-search", Po = "action-sort", Do = "action-toggle-prompt", Lo = "action-reset-prompt", $o = "sassy-saint-", Mo = "details", Uo = "search", Ko = "sort", Ho = "private-disclosure", Wo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Bo = 10, Go = 30, Jo = "av-prompt", Vo = "av-prompt-editable", Yo = "size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1921
+ function Ha(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
1924
1924
  hours: Math.trunc(e / 36e5 % 24),
@@ -1929,7 +1929,7 @@ function Ka(e) {
1929
1929
  nanoseconds: Math.trunc(bt(e * 1e6) % 1e3)
1930
1930
  };
1931
1931
  }
1932
- function Ha(e) {
1932
+ function Wa(e) {
1933
1933
  return {
1934
1934
  days: e / 86400000n,
1935
1935
  hours: e / 3600000n % 24n,
@@ -1940,20 +1940,20 @@ function Ha(e) {
1940
1940
  nanoseconds: 0n
1941
1941
  };
1942
1942
  }
1943
- function Wa(e) {
1943
+ function Ba(e) {
1944
1944
  switch (typeof e) {
1945
1945
  case "number": {
1946
1946
  if (Number.isFinite(e))
1947
- return Ka(e);
1947
+ return Ha(e);
1948
1948
  break;
1949
1949
  }
1950
1950
  case "bigint":
1951
- return Ha(e);
1951
+ return Wa(e);
1952
1952
  }
1953
1953
  throw new TypeError("Expected a finite number or bigint");
1954
1954
  }
1955
- const Ba = (e) => e === 0 || e === 0n, Ga = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ja = 1e-7, Va = 24n * 60n * 60n * 1000n;
1956
- function Ya(e, t) {
1955
+ const Ga = (e) => e === 0 || e === 0n, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Va = 1e-7, Ya = 24n * 60n * 60n * 1000n;
1956
+ function Fa(e, t) {
1957
1957
  const r = typeof e == "bigint";
1958
1958
  if (!r && !Number.isFinite(e))
1959
1959
  throw new TypeError("Expected a finite number or bigint");
@@ -1962,25 +1962,25 @@ function Ya(e, t) {
1962
1962
  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);
1963
1963
  let n = [];
1964
1964
  const o = (f, u) => {
1965
- const c = Math.floor(f * 10 ** u + Ja);
1965
+ const c = Math.floor(f * 10 ** u + Va);
1966
1966
  return (Math.round(c) / 10 ** u).toFixed(u);
1967
1967
  }, s = (f, u, c, m) => {
1968
- if (!((n.length === 0 || !t.colonNotation) && Ba(f) && !(t.colonNotation && c === "m"))) {
1968
+ if (!((n.length === 0 || !t.colonNotation) && Ga(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;
1972
1972
  } else
1973
- m += t.verbose ? " " + Ga(u, f) : c;
1973
+ m += t.verbose ? " " + Ja(u, f) : c;
1974
1974
  n.push(m);
1975
1975
  }
1976
- }, i = Wa(e), d = BigInt(i.days);
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, T = y >= 1 ? Math.round(y) : Math.ceil(y), k = w ? y.toFixed(w) : T;
1983
+ const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, I = y >= 1 ? Math.round(y) : Math.ceil(y), k = w ? y.toFixed(w) : I;
1984
1984
  s(
1985
1985
  Number.parseFloat(k),
1986
1986
  "millisecond",
@@ -1989,7 +1989,7 @@ function Ya(e, t) {
1989
1989
  );
1990
1990
  }
1991
1991
  } else {
1992
- const f = (r ? Number(e % Va) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(f, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1992
+ const f = (r ? Number(e % Ya) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(f, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1993
1993
  s(Number.parseFloat(m), "second", "s", m);
1994
1994
  }
1995
1995
  if (n.length === 0)
@@ -1997,7 +1997,7 @@ function Ya(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 Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.local.com" : "gizmette.com", Yo = async () => {
2000
+ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Fo = async () => {
2001
2001
  const e = {
2002
2002
  /**
2003
2003
  * A boolean value that indicates the application would
@@ -2046,27 +2046,27 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ M("div", { className: "flex items-center justify-between", children: [
2049
+ }, jo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ M("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, jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, zo = (e) => e > 0 ? Ya(e, {
2052
+ ] }) }, `${e}-${r}`)) : null, zo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, qo = (e) => e > 0 ? Fa(e, {
2053
2053
  secondsDecimalDigits: 2,
2054
2054
  unitCount: 2
2055
- }) : "N/A", qa = ({
2055
+ }) : "N/A", Xa = ({
2056
2056
  isAuthenticated: e,
2057
2057
  extraClass: t
2058
2058
  }) => p(
2059
2059
  "flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2060
2060
  e ? "pt-0" : "pt-10",
2061
2061
  t
2062
- ), Xa = ({
2062
+ ), Qa = ({
2063
2063
  extraClass: e
2064
- }) => p("px-2 sm:px-0", e), qo = (e, t) => t === 1 ? e : `${e}s`, Xo = (e, t) => {
2064
+ }) => p("px-2 sm:px-0", e), Xo = (e, t) => t === 1 ? e : `${e}s`, Qo = (e, t) => {
2065
2065
  let r;
2066
2066
  return (...a) => {
2067
2067
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
2068
2068
  };
2069
- }, Et = "av-button", Ue = "icon", at = "button", Qe = "link", Qa = ({
2069
+ }, Et = "av-button", Ue = "icon", at = "button", Qe = "link", Za = ({
2070
2070
  type: e,
2071
2071
  size: t,
2072
2072
  labelRight: r,
@@ -2084,7 +2084,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2084
2084
  [d]: t === "large"
2085
2085
  });
2086
2086
  case Ue:
2087
- return p("inline-flex items-center", {
2087
+ return p("flex items-center", {
2088
2088
  "justify-center": n === "center",
2089
2089
  "justify-start": n === "left",
2090
2090
  "justify-end": n === "right",
@@ -2102,7 +2102,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2102
2102
  "h-12": t === "large" && o && (r || a)
2103
2103
  });
2104
2104
  }
2105
- }, Za = ({
2105
+ }, en = ({
2106
2106
  type: e,
2107
2107
  size: t,
2108
2108
  labelRight: r,
@@ -2125,7 +2125,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2125
2125
  [s]: t === "large" && (r || a)
2126
2126
  });
2127
2127
  }
2128
- }, en = ({
2128
+ }, tn = ({
2129
2129
  mode: e,
2130
2130
  noBackground: t,
2131
2131
  noTruncate: r,
@@ -2161,7 +2161,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2161
2161
  return p("not-prose text-copy-lighter", {
2162
2162
  truncate: !r
2163
2163
  });
2164
- }, tn = ({
2164
+ }, rn = ({
2165
2165
  mode: e,
2166
2166
  noBackground: t,
2167
2167
  variant: r
@@ -2191,13 +2191,13 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2191
2191
  if (r === "selected")
2192
2192
  return "bg-action-selected-dark";
2193
2193
  }
2194
- }, rn = ({
2194
+ }, an = ({
2195
2195
  radius: e
2196
2196
  }) => p({
2197
2197
  "rounded-full": e === "large",
2198
2198
  "rounded-md": e === "medium",
2199
2199
  "rounded-sm": e === "small"
2200
- }), an = ({
2200
+ }), nn = ({
2201
2201
  mode: e,
2202
2202
  disabled: t,
2203
2203
  variant: r
@@ -2227,7 +2227,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2227
2227
  });
2228
2228
  if (r === "selected")
2229
2229
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
2230
- }, nn = ({
2230
+ }, on = ({
2231
2231
  mode: e,
2232
2232
  disabled: t,
2233
2233
  variant: r
@@ -2257,7 +2257,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2257
2257
  });
2258
2258
  if (r === "selected")
2259
2259
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
2260
- }, on = ({
2260
+ }, sn = ({
2261
2261
  mode: e,
2262
2262
  noBorder: t,
2263
2263
  variant: r
@@ -2287,14 +2287,14 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2287
2287
  });
2288
2288
  if (r === "selected")
2289
2289
  return "border border-border-selected-dark";
2290
- }, sn = ({
2290
+ }, cn = ({
2291
2291
  focusMode: e
2292
2292
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2293
2293
  "focus:outline-focus-dark": e === "dark",
2294
2294
  "focus:outline-focus-light": e === "light",
2295
2295
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
2296
2296
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
2297
- }), cn = ({
2297
+ }), ln = ({
2298
2298
  mode: e,
2299
2299
  raw: t,
2300
2300
  iconClassName: r
@@ -2306,11 +2306,11 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2306
2306
  "dark:text-copy-accent-dark": e === "system"
2307
2307
  },
2308
2308
  r
2309
- ), ln = ({
2309
+ ), dn = ({
2310
2310
  animated: e
2311
2311
  }) => p({
2312
2312
  "transition-opacity duration-300 ease-in": e
2313
- }), qt = ({
2313
+ }), Xt = ({
2314
2314
  type: e,
2315
2315
  className: t,
2316
2316
  raw: r,
@@ -2327,39 +2327,39 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2327
2327
  noTruncate: m,
2328
2328
  align: y,
2329
2329
  radius: w,
2330
- animated: T
2330
+ animated: I
2331
2331
  }) => (c || (c = "primary"), r ? p(Et, t) : p(
2332
2332
  Et,
2333
- en({
2333
+ tn({
2334
2334
  mode: a,
2335
2335
  variant: c,
2336
2336
  noBackground: u,
2337
2337
  noTruncate: m
2338
2338
  }),
2339
- tn({ mode: a, noBackground: u, variant: c }),
2340
- rn({ radius: w }),
2341
- Qa({
2339
+ rn({ mode: a, noBackground: u, variant: c }),
2340
+ an({ radius: w }),
2341
+ Za({
2342
2342
  type: e,
2343
2343
  size: i,
2344
2344
  labelRight: h,
2345
2345
  labelLeft: f,
2346
2346
  align: y,
2347
- animated: T
2347
+ animated: I
2348
2348
  }),
2349
- Za({ type: e, size: i, labelRight: h, labelLeft: f }),
2350
- on({ mode: a, variant: c, noBorder: d }),
2351
- sn({ focusMode: n }),
2352
- an({ mode: a, variant: c, disabled: o }),
2349
+ en({ type: e, size: i, labelRight: h, labelLeft: f }),
2350
+ sn({ mode: a, variant: c, noBorder: d }),
2351
+ cn({ focusMode: n }),
2353
2352
  nn({ mode: a, variant: c, disabled: o }),
2353
+ on({ mode: a, variant: c, disabled: o }),
2354
2354
  {
2355
2355
  "w-full": s,
2356
2356
  "disabled:cursor-not-allowed disabled:opacity-50": o
2357
2357
  },
2358
2358
  p({
2359
- "transition-[width] duration-300 ease-in-out": e === Ue && T
2359
+ "transition-[width] duration-300 ease-in-out": e === Ue && I
2360
2360
  }),
2361
2361
  t
2362
- )), dn = (e, t, r) => {
2362
+ )), un = (e, t, r) => {
2363
2363
  var a;
2364
2364
  !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);
2365
2365
  }, nt = X.forwardRef((e, t) => {
@@ -2369,14 +2369,14 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2369
2369
  {
2370
2370
  ref: t,
2371
2371
  onClick: (o) => {
2372
- dn(o, a, r);
2372
+ un(o, a, r);
2373
2373
  },
2374
2374
  ...n
2375
2375
  }
2376
2376
  );
2377
2377
  });
2378
2378
  nt.displayName = "BaseButton";
2379
- const Xt = X.forwardRef(
2379
+ const Qt = X.forwardRef(
2380
2380
  ({
2381
2381
  children: e,
2382
2382
  disabled: t = !1,
@@ -2392,7 +2392,7 @@ const Xt = X.forwardRef(
2392
2392
  radius: u = "large",
2393
2393
  ...c
2394
2394
  }, m) => {
2395
- const y = qt({
2395
+ const y = Xt({
2396
2396
  type: at,
2397
2397
  mode: r,
2398
2398
  focusMode: a,
@@ -2418,14 +2418,14 @@ const Xt = X.forwardRef(
2418
2418
  );
2419
2419
  }
2420
2420
  );
2421
- Xt.displayName = "Button";
2422
- function un() {
2421
+ Qt.displayName = "Button";
2422
+ function mn() {
2423
2423
  const e = x(!1);
2424
2424
  return Y(() => (e.current = !0, () => {
2425
2425
  e.current = !1;
2426
2426
  }), []), q(() => e.current, []);
2427
2427
  }
2428
- function mn(e) {
2428
+ function hn(e) {
2429
2429
  return De(() => e.every((t) => t == null) ? () => {
2430
2430
  } : (t) => {
2431
2431
  e.forEach((r) => {
@@ -2433,7 +2433,7 @@ function mn(e) {
2433
2433
  });
2434
2434
  }, e);
2435
2435
  }
2436
- const hn = {
2436
+ const pn = {
2437
2437
  x: 0,
2438
2438
  y: 0,
2439
2439
  width: 0,
@@ -2444,7 +2444,7 @@ const hn = {
2444
2444
  right: 0
2445
2445
  };
2446
2446
  function Fe(e) {
2447
- const t = un(), r = x(0), a = x(null), [n, o] = z(hn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
2447
+ const t = mn(), r = x(0), a = x(null), [n, o] = z(pn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
2448
2448
  const d = i[0];
2449
2449
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2450
2450
  a.current && t() && o(d.contentRect);
@@ -2454,21 +2454,21 @@ function Fe(e) {
2454
2454
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
2455
2455
  }), [s, e]), [a, n];
2456
2456
  }
2457
- const pn = {
2457
+ const fn = {
2458
2458
  small: 24,
2459
2459
  // w-6
2460
2460
  medium: 32,
2461
2461
  // w-8
2462
2462
  large: 48
2463
2463
  // w-12
2464
- }, fn = {
2464
+ }, gn = {
2465
2465
  small: 8 * 2,
2466
2466
  // px-2 x 2
2467
2467
  medium: 12 * 2,
2468
2468
  // px-3 x 2
2469
2469
  large: 16 * 2
2470
2470
  // px-4 x 2
2471
- }, gn = 2, Ce = X.forwardRef(
2471
+ }, yn = 2, Oe = X.forwardRef(
2472
2472
  ({
2473
2473
  children: e,
2474
2474
  disabled: t = !1,
@@ -2486,13 +2486,13 @@ const pn = {
2486
2486
  labelLeft: m,
2487
2487
  noBackground: y = !1,
2488
2488
  align: w = "center",
2489
- radius: T = "large",
2489
+ radius: I = "large",
2490
2490
  variant: k = "primary",
2491
2491
  iconClassName: Q,
2492
2492
  animated: D = !1,
2493
2493
  ...Z
2494
2494
  }, L) => {
2495
- const B = qt({
2495
+ const B = Xt({
2496
2496
  type: Ue,
2497
2497
  mode: r,
2498
2498
  focusMode: a,
@@ -2506,21 +2506,21 @@ const pn = {
2506
2506
  labelLeft: m,
2507
2507
  noBackground: y,
2508
2508
  align: w,
2509
- radius: T,
2509
+ radius: I,
2510
2510
  variant: k,
2511
2511
  animated: D
2512
- }), U = cn({ mode: r, raw: i, iconClassName: Q }), S = ln({ animated: D }), [$, K] = Fe(), [I, O] = Fe(), [C, G] = Fe(), g = x(0), E = x(null), b = mn([L, E]);
2512
+ }), U = ln({ mode: r, raw: i, iconClassName: Q }), S = dn({ animated: D }), [$, K] = Fe(), [T, C] = Fe(), [O, G] = Fe(), g = x(0), E = x(null), b = hn([L, E]);
2513
2513
  return Re(() => {
2514
- C && C.current && D && (g.current = G.width + fn[u] + (d ? 0 : gn));
2515
- }, [G, C, u, d, D]), Re(() => {
2516
- E && E.current && D && (c && $ && K.width > 0 ? ($.current && ($.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && O.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${O.width + g.current}px`) : ($.current && ($.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${pn[u]}px`));
2514
+ O && O.current && D && (g.current = G.width + gn[u] + (d ? 0 : yn));
2515
+ }, [G, O, u, d, D]), Re(() => {
2516
+ E && E.current && D && (c && $ && K.width > 0 ? ($.current && ($.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : ($.current && ($.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), E.current.style.width = `${fn[u]}px`));
2517
2517
  }, [
2518
2518
  K,
2519
2519
  c,
2520
2520
  $,
2521
- O,
2521
+ C,
2522
2522
  m,
2523
- I,
2523
+ T,
2524
2524
  u,
2525
2525
  D
2526
2526
  ]), /* @__PURE__ */ M(
@@ -2533,29 +2533,50 @@ const pn = {
2533
2533
  "aria-label": h || f,
2534
2534
  ...Z,
2535
2535
  children: [
2536
- /* @__PURE__ */ l("span", { ref: I, className: S, children: m && /* @__PURE__ */ l("span", { className: "pr-2", children: m }) }),
2537
- /* @__PURE__ */ l("span", { ref: C, className: U, children: e }),
2538
- /* @__PURE__ */ l("span", { ref: $, className: S, children: c && /* @__PURE__ */ l("span", { className: "pl-2", children: c }) })
2536
+ /* @__PURE__ */ l(
2537
+ wt,
2538
+ {
2539
+ label: m,
2540
+ labelRef: T,
2541
+ labelClass: S,
2542
+ labelInnerClass: "pr-2"
2543
+ }
2544
+ ),
2545
+ /* @__PURE__ */ l("span", { ref: O, className: U, children: e }),
2546
+ /* @__PURE__ */ l(
2547
+ wt,
2548
+ {
2549
+ label: c,
2550
+ labelRef: $,
2551
+ labelClass: S,
2552
+ labelInnerClass: "pl-2"
2553
+ }
2554
+ )
2539
2555
  ]
2540
2556
  }
2541
2557
  );
2542
2558
  }
2543
- );
2544
- Ce.displayName = "ButtonIcon";
2559
+ ), wt = ({
2560
+ labelRef: e,
2561
+ labelClass: t,
2562
+ label: r,
2563
+ labelInnerClass: a
2564
+ }) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
2565
+ Oe.displayName = "ButtonIcon";
2545
2566
  /*!
2546
- @versini/ui-button v4.2.2
2567
+ @versini/ui-button v4.2.4
2547
2568
  © 2025 gizmette.com
2548
2569
  */
2549
2570
  try {
2550
2571
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
2551
- version: "4.2.2",
2552
- buildTime: "01/26/2025 07:26 PM EST",
2572
+ version: "4.2.4",
2573
+ buildTime: "01/29/2025 03:18 PM EST",
2553
2574
  homepage: "https://github.com/aversini/ui-components",
2554
2575
  license: "MIT"
2555
2576
  });
2556
2577
  } catch {
2557
2578
  }
2558
- const yn = X.forwardRef(
2579
+ const bn = X.forwardRef(
2559
2580
  ({
2560
2581
  children: e,
2561
2582
  mode: t = "system",
@@ -2581,7 +2602,7 @@ const yn = X.forwardRef(
2581
2602
  }
2582
2603
  ) : "";
2583
2604
  return /* @__PURE__ */ l("div", { className: s, children: /* @__PURE__ */ l(
2584
- Ce,
2605
+ Oe,
2585
2606
  {
2586
2607
  className: p("justify-center", r),
2587
2608
  ref: o,
@@ -2593,7 +2614,7 @@ const yn = X.forwardRef(
2593
2614
  ) });
2594
2615
  }
2595
2616
  );
2596
- yn.displayName = "ButtonSort";
2617
+ bn.displayName = "ButtonSort";
2597
2618
  /*!
2598
2619
  @versini/ui-card v3.0.13
2599
2620
  © 2025 gizmette.com
@@ -2608,11 +2629,11 @@ try {
2608
2629
  } catch {
2609
2630
  }
2610
2631
  const Ae = "av-card";
2611
- function bn(e) {
2612
- const t = St();
2632
+ function En(e) {
2633
+ const t = _t();
2613
2634
  return `${e}${t}`;
2614
2635
  }
2615
- const En = ({
2636
+ const wn = ({
2616
2637
  className: e,
2617
2638
  headerClassName: t,
2618
2639
  bodyClassName: r,
@@ -2652,7 +2673,7 @@ const En = ({
2652
2673
  footer: f
2653
2674
  };
2654
2675
  };
2655
- function wn({
2676
+ function In({
2656
2677
  id: e,
2657
2678
  content: t,
2658
2679
  userAriaLabelledby: r,
@@ -2675,7 +2696,7 @@ const Tn = ({
2675
2696
  ...u
2676
2697
  }) => {
2677
2698
  let c = null, m = null;
2678
- const y = typeof e == "string", w = bn(Ae), T = En({
2699
+ const y = typeof e == "string", w = En(Ae), I = wn({
2679
2700
  className: o,
2680
2701
  headerClassName: t,
2681
2702
  bodyClassName: s,
@@ -2684,26 +2705,26 @@ const Tn = ({
2684
2705
  compact: h,
2685
2706
  noBorder: f
2686
2707
  });
2687
- 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__ */ M(
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: I.wrapper, children: /* @__PURE__ */ M(
2688
2709
  "section",
2689
2710
  {
2690
2711
  ...m && {
2691
2712
  "aria-labelledby": m
2692
2713
  },
2693
- className: T.body,
2714
+ className: I.body,
2694
2715
  ...u,
2695
2716
  children: [
2696
2717
  /* @__PURE__ */ l(
2697
- wn,
2718
+ In,
2698
2719
  {
2699
2720
  ...c && { id: c },
2700
2721
  content: e,
2701
- className: T.header,
2722
+ className: I.header,
2702
2723
  userAriaLabelledby: i
2703
2724
  }
2704
2725
  ),
2705
2726
  /* @__PURE__ */ l("div", { children: n }),
2706
- r ? /* @__PURE__ */ l("div", { className: T.footer, children: r }) : null
2727
+ r ? /* @__PURE__ */ l("div", { className: I.footer, children: r }) : null
2707
2728
  ]
2708
2729
  }
2709
2730
  ) });
@@ -2750,7 +2771,7 @@ try {
2750
2771
  });
2751
2772
  } catch {
2752
2773
  }
2753
- const In = ({
2774
+ const Sn = ({
2754
2775
  className: e,
2755
2776
  viewBox: t,
2756
2777
  title: r,
@@ -2767,7 +2788,7 @@ const In = ({
2767
2788
  ...n,
2768
2789
  children: /* @__PURE__ */ l("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
2769
2790
  }
2770
- ), Sn = ({
2791
+ ), _n = ({
2771
2792
  className: e,
2772
2793
  viewBox: t,
2773
2794
  title: r,
@@ -2793,7 +2814,7 @@ const In = ({
2793
2814
  /* @__PURE__ */ l("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
2794
2815
  ]
2795
2816
  }
2796
- ), _n = ({
2817
+ ), kn = ({
2797
2818
  className: e,
2798
2819
  viewBox: t,
2799
2820
  title: r,
@@ -2829,7 +2850,7 @@ const In = ({
2829
2850
  ]
2830
2851
  }
2831
2852
  );
2832
- }, kn = ({
2853
+ }, An = ({
2833
2854
  className: e,
2834
2855
  viewBox: t,
2835
2856
  title: r,
@@ -2882,7 +2903,7 @@ try {
2882
2903
  });
2883
2904
  } catch {
2884
2905
  }
2885
- const An = "av-main", Rn = ({
2906
+ const Rn = "av-main", Nn = ({
2886
2907
  children: e,
2887
2908
  className: t,
2888
2909
  raw: r = !1,
@@ -2890,7 +2911,7 @@ const An = "av-main", Rn = ({
2890
2911
  noPadding: n = !1
2891
2912
  }) => {
2892
2913
  const o = p(
2893
- An,
2914
+ Rn,
2894
2915
  {
2895
2916
  "mt-2 sm:mt-3": !r && !a,
2896
2917
  "p-2": !r && !n,
@@ -2899,10 +2920,10 @@ const An = "av-main", Rn = ({
2899
2920
  t
2900
2921
  );
2901
2922
  return /* @__PURE__ */ l("main", { className: o, children: e });
2902
- }, Nn = "av-flexgrid", _e = "av-flexgrid-item", Pe = 0.25, Ze = X.createContext({
2923
+ }, vn = "av-flexgrid", _e = "av-flexgrid-item", Pe = 0.25, Ze = X.createContext({
2903
2924
  columnGap: 0,
2904
2925
  rowGap: 0
2905
- }), vn = ({
2926
+ }), xn = ({
2906
2927
  children: e,
2907
2928
  className: t,
2908
2929
  columnGap: r = 1,
@@ -2928,7 +2949,7 @@ const An = "av-main", Rn = ({
2928
2949
  marginLeft: r * -1 * Pe + "rem",
2929
2950
  marginTop: a * -1 * Pe + "rem"
2930
2951
  }, u = p(
2931
- Nn,
2952
+ vn,
2932
2953
  "box-border flex flex-wrap"
2933
2954
  ), c = { columnGap: r, rowGap: a };
2934
2955
  return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(Ze.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(Ze.Provider, { value: c, children: e }) });
@@ -3005,7 +3026,7 @@ const An = "av-main", Rn = ({
3005
3026
  "lg:basis-full": e === 12 && t === "lg",
3006
3027
  "xl:basis-full": e === 12 && t === "xl",
3007
3028
  "2xl:basis-full": e === 12 && t === "2xl"
3008
- }), xn = ({
3029
+ }), Cn = ({
3009
3030
  className: e,
3010
3031
  span: t
3011
3032
  }) => {
@@ -3034,10 +3055,10 @@ const An = "av-main", Rn = ({
3034
3055
  span: r,
3035
3056
  ...a
3036
3057
  }) => {
3037
- const { columnGap: n, rowGap: o } = It(Ze), s = {
3058
+ const { columnGap: n, rowGap: o } = St(Ze), s = {
3038
3059
  paddingLeft: n * Pe + "rem",
3039
3060
  paddingTop: o * Pe + "rem"
3040
- }, i = xn({
3061
+ }, i = Cn({
3041
3062
  className: t,
3042
3063
  span: r
3043
3064
  });
@@ -3056,14 +3077,14 @@ try {
3056
3077
  });
3057
3078
  } catch {
3058
3079
  }
3059
- const Qt = "av-text-input", On = "av-text-input-wrapper", ze = "av-text-input-helper-text";
3060
- function Cn() {
3080
+ const Zt = "av-text-input", On = "av-text-input-wrapper", ze = "av-text-input-helper-text";
3081
+ function Pn() {
3061
3082
  const e = x(!1);
3062
3083
  return Y(() => (e.current = !0, () => {
3063
3084
  e.current = !1;
3064
3085
  }), []), q(() => e.current, []);
3065
3086
  }
3066
- const Pn = {
3087
+ const Dn = {
3067
3088
  x: 0,
3068
3089
  y: 0,
3069
3090
  width: 0,
@@ -3073,8 +3094,8 @@ const Pn = {
3073
3094
  bottom: 0,
3074
3095
  right: 0
3075
3096
  };
3076
- function Dn(e) {
3077
- const t = Cn(), r = x(0), a = x(null), [n, o] = z(Pn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3097
+ function Ln(e) {
3098
+ const t = Pn(), r = x(0), a = x(null), [n, o] = z(Dn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3078
3099
  const d = i[0];
3079
3100
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3080
3101
  a.current && t() && o(d.contentRect);
@@ -3084,8 +3105,8 @@ function Dn(e) {
3084
3105
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3085
3106
  }), [s, e]), [a, n];
3086
3107
  }
3087
- function Ln(e) {
3088
- const t = St();
3108
+ function $n(e) {
3109
+ const t = _t();
3089
3110
  if (!e)
3090
3111
  return t;
3091
3112
  if (typeof e == "number" || typeof e == "string")
@@ -3095,7 +3116,7 @@ function Ln(e) {
3095
3116
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
3096
3117
  }
3097
3118
  }
3098
- const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3119
+ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Mn = {
3099
3120
  alert: null,
3100
3121
  alertdialog: null,
3101
3122
  log: "polite",
@@ -3103,14 +3124,14 @@ const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3103
3124
  progressbar: null,
3104
3125
  status: "polite",
3105
3126
  timer: "assertive"
3106
- }, Mn = (e, t) => {
3127
+ }, Un = (e, t) => {
3107
3128
  switch (t == null ? void 0 : t.type) {
3108
- case Zt:
3129
+ case er:
3109
3130
  return {
3110
3131
  ...e,
3111
3132
  announcement: t.payload
3112
3133
  };
3113
- case er:
3134
+ case tr:
3114
3135
  return {
3115
3136
  ...e,
3116
3137
  announcement: null
@@ -3118,14 +3139,14 @@ const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3118
3139
  default:
3119
3140
  return e;
3120
3141
  }
3121
- }, Un = ({
3142
+ }, Kn = ({
3122
3143
  onAnnouncementClear: e,
3123
3144
  dispatch: t
3124
3145
  }) => {
3125
3146
  t({
3126
- type: er
3147
+ type: tr
3127
3148
  }), typeof e == "function" && e();
3128
- }, wt = ({
3149
+ }, It = ({
3129
3150
  children: e,
3130
3151
  clearAnnouncementDelay: t,
3131
3152
  clearAnnouncementTimeoutRef: r,
@@ -3133,16 +3154,16 @@ const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3133
3154
  dispatch: n
3134
3155
  }) => {
3135
3156
  clearTimeout(r.current), e !== null && n({
3136
- type: Zt,
3157
+ type: er,
3137
3158
  payload: e
3138
3159
  }), t && (r.current = setTimeout(
3139
- () => Un({
3160
+ () => Kn({
3140
3161
  onAnnouncementClear: a,
3141
3162
  dispatch: n
3142
3163
  }),
3143
3164
  t
3144
3165
  ));
3145
- }, Kn = ({
3166
+ }, Hn = ({
3146
3167
  children: e,
3147
3168
  announcementTimeoutRef: t,
3148
3169
  announcementDelay: r,
@@ -3151,13 +3172,13 @@ const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3151
3172
  onAnnouncementClear: o,
3152
3173
  dispatch: s
3153
3174
  }) => {
3154
- clearTimeout(t.current), r ? t.current = setTimeout(wt, r, {
3175
+ clearTimeout(t.current), r ? t.current = setTimeout(It, r, {
3155
3176
  children: e,
3156
3177
  clearAnnouncementDelay: a,
3157
3178
  clearAnnouncementTimeoutRef: n,
3158
3179
  onAnnouncementClear: o,
3159
3180
  dispatch: s
3160
- }) : wt({
3181
+ }) : It({
3161
3182
  children: e,
3162
3183
  clearAnnouncementDelay: a,
3163
3184
  clearAnnouncementTimeoutRef: n,
@@ -3165,7 +3186,7 @@ const Zt = "SET_ANNOUNCEMENT", er = "CLEAR_ANNOUNCEMENT", $n = {
3165
3186
  dispatch: s
3166
3187
  });
3167
3188
  };
3168
- function tr({
3189
+ function rr({
3169
3190
  children: e,
3170
3191
  className: t,
3171
3192
  politeness: r,
@@ -3176,12 +3197,12 @@ function tr({
3176
3197
  visible: i,
3177
3198
  ...d
3178
3199
  }) {
3179
- const h = x(null), f = x(null), [u, c] = Tt(Mn, {
3200
+ const h = x(null), f = x(null), [u, c] = Tt(Un, {
3180
3201
  announcement: null
3181
3202
  });
3182
3203
  let m = r;
3183
- typeof m > "u" && (m = a ? $n[a] : "assertive"), Y(() => {
3184
- Kn({
3204
+ typeof m > "u" && (m = a ? Mn[a] : "assertive"), Y(() => {
3205
+ Hn({
3185
3206
  announcementTimeoutRef: h,
3186
3207
  announcementDelay: n,
3187
3208
  children: e,
@@ -3223,21 +3244,21 @@ try {
3223
3244
  });
3224
3245
  } catch {
3225
3246
  }
3226
- const Hn = ({
3247
+ const Wn = ({
3227
3248
  mode: e
3228
3249
  }) => p({
3229
3250
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3230
3251
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3231
3252
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3232
3253
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
3233
- }), Wn = ({
3254
+ }), Bn = ({
3234
3255
  focusMode: e
3235
3256
  }) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
3236
3257
  "focus:outline-focus-dark": e === "dark",
3237
3258
  "focus:outline-focus-light": e === "light",
3238
3259
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3239
3260
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3240
- }), Bn = ({
3261
+ }), Gn = ({
3241
3262
  noBorder: e,
3242
3263
  error: t
3243
3264
  }) => p("border-2", {
@@ -3245,7 +3266,7 @@ const Hn = ({
3245
3266
  "focus:border-border-dark": !e && t,
3246
3267
  "border-border-error-dark": !e && t,
3247
3268
  "border-transparent": e
3248
- }), Gn = ({
3269
+ }), Jn = ({
3249
3270
  disabled: e,
3250
3271
  raw: t,
3251
3272
  error: r,
@@ -3269,7 +3290,7 @@ const Hn = ({
3269
3290
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
3270
3291
  "text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
3271
3292
  });
3272
- }, Jn = ({
3293
+ }, Vn = ({
3273
3294
  error: e,
3274
3295
  raw: t,
3275
3296
  mode: r,
@@ -3296,7 +3317,7 @@ const Hn = ({
3296
3317
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
3297
3318
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
3298
3319
  });
3299
- }, Vn = ({
3320
+ }, Yn = ({
3300
3321
  className: e,
3301
3322
  inputClassName: t,
3302
3323
  raw: r,
@@ -3332,34 +3353,34 @@ const Hn = ({
3332
3353
  break;
3333
3354
  }
3334
3355
  const c = r ? p(t) : p(
3335
- Qt,
3356
+ Zt,
3336
3357
  u,
3337
3358
  "rounded-md text-base px-4",
3338
- Hn({ mode: s }),
3339
- Wn({ focusMode: i }),
3340
- Bn({ noBorder: n, error: o }),
3359
+ Wn({ mode: s }),
3360
+ Bn({ focusMode: i }),
3361
+ Gn({ noBorder: n, error: o }),
3341
3362
  {
3342
3363
  "disabled:cursor-not-allowed disabled:opacity-50": a
3343
3364
  },
3344
3365
  t
3345
- ), m = r ? void 0 : "sr-only", y = Gn({
3366
+ ), m = r ? void 0 : "sr-only", y = Jn({
3346
3367
  disabled: a,
3347
3368
  raw: r,
3348
3369
  error: o,
3349
3370
  mode: s
3350
- }), w = Jn({
3371
+ }), w = Vn({
3351
3372
  error: o,
3352
3373
  raw: r,
3353
3374
  mode: s,
3354
3375
  disabled: a
3355
- }), T = r ? void 0 : p("absolute right-3", h);
3376
+ }), I = r ? void 0 : p("absolute right-3", h);
3356
3377
  return {
3357
3378
  wrapper: f,
3358
3379
  input: c,
3359
3380
  accessibleLabel: m,
3360
3381
  visibleLabel: y,
3361
3382
  helperText: w,
3362
- rightElement: T
3383
+ rightElement: I
3363
3384
  };
3364
3385
  }, ot = X.forwardRef(
3365
3386
  ({
@@ -3379,17 +3400,17 @@ const Hn = ({
3379
3400
  type: m = "text",
3380
3401
  helperText: y = "",
3381
3402
  rightElement: w,
3382
- rightElementClassName: T,
3403
+ rightElementClassName: I,
3383
3404
  size: k = "md",
3384
3405
  ...Q
3385
3406
  }, D) => {
3386
- const [Z, L] = Dn(), [B, U] = z(0), S = Ln({ id: e, prefix: `${Qt}-` }), $ = `${t} error, ${y}`, K = x(null), I = x(null), O = {
3407
+ const [Z, L] = Ln(), [B, U] = z(0), S = $n({ id: e, prefix: `${Zt}-` }), $ = `${t} error, ${y}`, K = x(null), T = x(null), C = {
3387
3408
  xs: { label: "-25px", helperText: "30px" },
3388
3409
  sm: { label: "-29px", helperText: "34px" },
3389
3410
  md: { label: "-33px", helperText: "38px" },
3390
3411
  lg: { label: "-15px", helperText: "22px" },
3391
3412
  xl: { label: "-19px", helperText: "25px" }
3392
- }, C = Vn({
3413
+ }, O = Yn({
3393
3414
  className: o,
3394
3415
  inputClassName: s,
3395
3416
  error: a,
@@ -3399,24 +3420,24 @@ const Hn = ({
3399
3420
  noBorder: f,
3400
3421
  mode: i,
3401
3422
  size: k,
3402
- rightElementClassName: T
3423
+ rightElementClassName: I
3403
3424
  });
3404
3425
  return Re(() => {
3405
3426
  L && L.width && U(L.width + 18 + 10);
3406
3427
  }, [L]), Re(() => {
3407
3428
  var G, g;
3408
- const { label: E, helperText: b } = O[k];
3409
- (G = K == null ? void 0 : K.current) == null || G.style.setProperty("--av-text-input-label", E), (g = I == null ? void 0 : I.current) == null || g.style.setProperty(
3429
+ const { label: E, helperText: b } = C[k];
3430
+ (G = K == null ? void 0 : K.current) == null || G.style.setProperty("--av-text-input-label", E), (g = T == null ? void 0 : T.current) == null || g.style.setProperty(
3410
3431
  "--av-text-input-helper-text",
3411
3432
  b
3412
3433
  );
3413
- }, [k]), /* @__PURE__ */ M("div", { className: C.wrapper, children: [
3434
+ }, [k]), /* @__PURE__ */ M("div", { className: O.wrapper, children: [
3414
3435
  /* @__PURE__ */ l(
3415
3436
  "label",
3416
3437
  {
3417
3438
  htmlFor: S,
3418
3439
  id: u,
3419
- className: C.accessibleLabel,
3440
+ className: O.accessibleLabel,
3420
3441
  children: r
3421
3442
  }
3422
3443
  ),
@@ -3429,7 +3450,7 @@ const Hn = ({
3429
3450
  type: m,
3430
3451
  disabled: h,
3431
3452
  placeholder: n ? void 0 : " ",
3432
- className: C.input,
3453
+ className: O.input,
3433
3454
  ...y && { "aria-describedby": `${S}-helper` },
3434
3455
  ...a && { "aria-invalid": "true" },
3435
3456
  ...w && !n && { style: { paddingRight: B } },
@@ -3442,16 +3463,16 @@ const Hn = ({
3442
3463
  ref: K,
3443
3464
  "aria-hidden": !0,
3444
3465
  htmlFor: S,
3445
- className: C.visibleLabel,
3466
+ className: O.visibleLabel,
3446
3467
  children: r
3447
3468
  }
3448
3469
  ),
3449
3470
  y && /* @__PURE__ */ l(
3450
3471
  "div",
3451
3472
  {
3452
- ref: I,
3473
+ ref: T,
3453
3474
  id: `${S}-helper`,
3454
- className: C.helperText,
3475
+ className: O.helperText,
3455
3476
  children: y
3456
3477
  }
3457
3478
  ),
@@ -3459,16 +3480,16 @@ const Hn = ({
3459
3480
  "div",
3460
3481
  {
3461
3482
  ref: Z,
3462
- className: C.rightElement,
3483
+ className: O.rightElement,
3463
3484
  children: w
3464
3485
  }
3465
3486
  ),
3466
- a && y && /* @__PURE__ */ l(tr, { politeness: "polite", clearAnnouncementDelay: 500, children: $ })
3487
+ a && y && /* @__PURE__ */ l(rr, { politeness: "polite", clearAnnouncementDelay: 500, children: $ })
3467
3488
  ] });
3468
3489
  }
3469
3490
  );
3470
3491
  ot.displayName = "TextInput";
3471
- function Yn(e) {
3492
+ function Fn(e) {
3472
3493
  return De(() => e.every((t) => t == null) ? () => {
3473
3494
  } : (t) => {
3474
3495
  e.forEach((r) => {
@@ -3476,7 +3497,7 @@ function Yn(e) {
3476
3497
  });
3477
3498
  }, e);
3478
3499
  }
3479
- const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3500
+ const jn = 500, zn = 5e3, qn = 2e4, ar = X.forwardRef(
3480
3501
  ({
3481
3502
  name: e,
3482
3503
  disabled: t,
@@ -3493,32 +3514,32 @@ const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3493
3514
  const [c, m] = z(!0), [y, w] = z({
3494
3515
  message: null,
3495
3516
  politeness: null
3496
- }), T = x(!0), k = x(null), Q = x(null), D = Yn([u, Q]), Z = c ? "Show" : "Hide", L = () => {
3497
- k.current && clearTimeout(k.current), T.current || (k.current = setTimeout(() => {
3498
- T.current = !0, m(!0), w({
3499
- announcementTimeout: jn,
3517
+ }), I = x(!0), k = x(null), Q = x(null), D = Fn([u, Q]), Z = c ? "Show" : "Hide", L = () => {
3518
+ k.current && clearTimeout(k.current), I.current || (k.current = setTimeout(() => {
3519
+ I.current = !0, m(!0), w({
3520
+ announcementTimeout: zn,
3500
3521
  politeness: "polite",
3501
3522
  message: `${r} hiding characters`
3502
3523
  }), n && n(!0);
3503
- }, zn));
3504
- }, B = (I) => {
3505
- I.preventDefault();
3506
- const O = !T.current;
3507
- T.current = O, L(), m(O), w({
3508
- announcementTimeout: Fn,
3524
+ }, qn));
3525
+ }, B = (T) => {
3526
+ T.preventDefault();
3527
+ const C = !I.current;
3528
+ I.current = C, L(), m(C), w({
3529
+ announcementTimeout: jn,
3509
3530
  politeness: "assertive",
3510
- message: O ? "Characters hidden" : "Characters showing"
3511
- }), n && n(O);
3512
- }, U = (I) => {
3513
- var O;
3514
- const { relatedTarget: C } = I, G = (O = Q.current) == null ? void 0 : O.parentElement;
3515
- G != null && G.contains(C) || d && d();
3516
- }, S = (I) => {
3517
- L(), s && s(I), U(I);
3518
- }, $ = (I) => {
3519
- L(), i && i(I);
3520
- }, K = (I) => {
3521
- L(), o && o(I);
3531
+ message: C ? "Characters hidden" : "Characters showing"
3532
+ }), n && n(C);
3533
+ }, U = (T) => {
3534
+ var C;
3535
+ const { relatedTarget: O } = T, G = (C = Q.current) == null ? void 0 : C.parentElement;
3536
+ G != null && G.contains(O) || d && d();
3537
+ }, S = (T) => {
3538
+ L(), s && s(T), U(T);
3539
+ }, $ = (T) => {
3540
+ L(), i && i(T);
3541
+ }, K = (T) => {
3542
+ L(), o && o(T);
3522
3543
  };
3523
3544
  return Y(() => () => {
3524
3545
  k.current && clearTimeout(k.current);
@@ -3546,7 +3567,7 @@ const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3546
3567
  }
3547
3568
  ),
3548
3569
  /* @__PURE__ */ l(
3549
- tr,
3570
+ rr,
3550
3571
  {
3551
3572
  role: "status",
3552
3573
  politeness: y.politeness,
@@ -3557,7 +3578,7 @@ const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3557
3578
  ] });
3558
3579
  }
3559
3580
  );
3560
- rr.displayName = "TextInputMask";
3581
+ ar.displayName = "TextInputMask";
3561
3582
  /*!
3562
3583
  @versini/ui-textinput v3.0.13
3563
3584
  © 2025 gizmette.com
@@ -3571,7 +3592,7 @@ try {
3571
3592
  });
3572
3593
  } catch {
3573
3594
  }
3574
- const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in with a Passkey", Qo = "Log out", Zn = "Password", Zo = "Profile", es = "Settings", ts = "Chat history", rs = "About", as = "Type your question here", ns = "{{clipboard}}", os = `Sometimes, ${ar} hallucinates. Review important details.`, ss = "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.", is = {
3595
+ const Xn = "ASK! ME! ANYTHING!", nr = "Callisto", Qn = "Log in", Zn = "Sign in with a Passkey", Zo = "Log out", eo = "Password", es = "Profile", ts = "Settings", rs = "Chat history", as = "About", ns = "Type your question here", os = "{{clipboard}}", ss = `Sometimes, ${nr} hallucinates. Review important details.`, is = "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.", cs = {
3575
3596
  PREFERENCES: {
3576
3597
  TITLE: "User profile",
3577
3598
  NAME: "Name",
@@ -3608,14 +3629,14 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3608
3629
  SETTINGS_ENGINE: {
3609
3630
  TITLE: "AI Engine"
3610
3631
  }
3611
- }, eo = () => /* @__PURE__ */ M("div", { className: "flex items-center justify-center", children: [
3612
- /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(In, {}) }),
3632
+ }, to = () => /* @__PURE__ */ M("div", { className: "flex items-center justify-center", children: [
3633
+ /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(Sn, {}) }),
3613
3634
  /* @__PURE__ */ M("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3614
- /* @__PURE__ */ l("h1", { children: ar }),
3615
- /* @__PURE__ */ l("h2", { children: qn })
3635
+ /* @__PURE__ */ l("h1", { children: nr }),
3636
+ /* @__PURE__ */ l("h2", { children: Xn })
3616
3637
  ] })
3617
- ] }), to = () => {
3618
- const { login: e, logoutReason: t, loginWithPasskey: r } = zt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
3638
+ ] }), ro = () => {
3639
+ const { login: e, logoutReason: t, loginWithPasskey: r } = qt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
3619
3640
  username: "",
3620
3641
  password: ""
3621
3642
  }), u = async (c) => {
@@ -3630,9 +3651,9 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3630
3651
  }), Y(() => {
3631
3652
  t && s(t);
3632
3653
  }, [t]), /* @__PURE__ */ l(et, { children: /* @__PURE__ */ M(
3633
- Rn,
3654
+ Nn,
3634
3655
  {
3635
- className: Xa({
3656
+ className: Qa({
3636
3657
  extraClass: "mt-5"
3637
3658
  }),
3638
3659
  noMargin: !0,
@@ -3641,13 +3662,13 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3641
3662
  /* @__PURE__ */ l(
3642
3663
  "div",
3643
3664
  {
3644
- className: qa({
3665
+ className: Xa({
3645
3666
  extraClass: "rounded-md"
3646
3667
  }),
3647
- children: /* @__PURE__ */ l(eo, {})
3668
+ children: /* @__PURE__ */ l(to, {})
3648
3669
  }
3649
3670
  ),
3650
- /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(vn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ M(Tn, { mode: "dark", children: [
3671
+ /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(xn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ M(Tn, { mode: "dark", children: [
3651
3672
  /* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3652
3673
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3653
3674
  ot,
@@ -3671,7 +3692,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3671
3692
  }
3672
3693
  ) }),
3673
3694
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3674
- rr,
3695
+ ar,
3675
3696
  {
3676
3697
  className: "mt-7",
3677
3698
  required: !0,
@@ -3681,14 +3702,14 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3681
3702
  mode: "dark",
3682
3703
  focusMode: "light",
3683
3704
  name: "password",
3684
- label: Zn,
3705
+ label: eo,
3685
3706
  rightElement: /* @__PURE__ */ l(
3686
- Ce,
3707
+ Oe,
3687
3708
  {
3688
3709
  focusMode: "light",
3689
3710
  mode: "dark",
3690
3711
  label: i ? "Show" : "Hide",
3691
- children: i ? /* @__PURE__ */ l(kn, {}) : /* @__PURE__ */ l(Sn, {})
3712
+ children: i ? /* @__PURE__ */ l(An, {}) : /* @__PURE__ */ l(_n, {})
3692
3713
  }
3693
3714
  ),
3694
3715
  onMaskChange: d,
@@ -3703,7 +3724,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3703
3724
  }
3704
3725
  ) }),
3705
3726
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3706
- Xt,
3727
+ Qt,
3707
3728
  {
3708
3729
  mode: "light",
3709
3730
  focusMode: "light",
@@ -3711,97 +3732,97 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3711
3732
  noBorder: !0,
3712
3733
  type: "submit",
3713
3734
  className: "mt-7",
3714
- children: Xn
3735
+ children: Qn
3715
3736
  }
3716
3737
  ) }),
3717
3738
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
3718
3739
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3719
- Ce,
3740
+ Oe,
3720
3741
  {
3721
3742
  variant: "selected",
3722
3743
  mode: "dark",
3723
3744
  focusMode: "light",
3724
3745
  fullWidth: !0,
3725
3746
  className: "mb-4",
3726
- labelRight: Qn,
3747
+ labelRight: Zn,
3727
3748
  onClick: r,
3728
- children: /* @__PURE__ */ l(_n, { size: "size-7" })
3749
+ children: /* @__PURE__ */ l(kn, { size: "size-7" })
3729
3750
  }
3730
3751
  ) })
3731
3752
  ] }) }) }) })
3732
3753
  ]
3733
3754
  }
3734
3755
  ) });
3735
- }, ro = new URL(document.location.href).searchParams, ao = !!ro.get("debug") || !1, no = ir(() => import(
3756
+ }, ao = new URL(document.location.href).searchParams, no = !!ao.get("debug") || !1, oo = cr(() => import(
3736
3757
  /* webpackChunkName: "LazyApp" */
3737
- "./App.BNj5_p2P.js"
3738
- ).then((e) => e.App)), oo = ({ isComponent: e }) => {
3739
- const { isAuthenticated: t } = zt();
3740
- return t ? /* @__PURE__ */ l(cr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(no, { isComponent: e }) }) : /* @__PURE__ */ l(to, {});
3741
- }, so = ({
3758
+ "./App.DxiuLsPO.js"
3759
+ ).then((e) => e.App)), so = ({ isComponent: e }) => {
3760
+ const { isAuthenticated: t } = qt();
3761
+ return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(oo, { isComponent: e }) }) : /* @__PURE__ */ l(ro, {});
3762
+ }, io = ({
3742
3763
  isComponent: e = !1,
3743
- domain: t = za
3744
- }) => /* @__PURE__ */ l(Ma, { clientId: Ua, domain: t, debug: ao, children: /* @__PURE__ */ l(oo, { isComponent: e }) }), cs = ({ domain: e }) => /* @__PURE__ */ l(so, { isComponent: !0, domain: e });
3764
+ domain: t = qa
3765
+ }) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: no, children: /* @__PURE__ */ l(so, { isComponent: e }) }), ls = ({ domain: e }) => /* @__PURE__ */ l(io, { isComponent: !0, domain: e });
3745
3766
  export {
3746
- rs as ABOUT_TITLE,
3747
- Ao as ACTION_MESSAGE,
3748
- No as ACTION_MODEL,
3749
- Ro as ACTION_RESET,
3750
- Do as ACTION_RESET_PROMPT,
3751
- vo as ACTION_RESTORE,
3767
+ as as ABOUT_TITLE,
3768
+ Ro as ACTION_MESSAGE,
3769
+ vo as ACTION_MODEL,
3770
+ No as ACTION_RESET,
3771
+ Lo as ACTION_RESET_PROMPT,
3772
+ xo as ACTION_RESTORE,
3752
3773
  Oo as ACTION_SEARCH,
3753
- Co as ACTION_SORT,
3754
- xo as ACTION_STREAMING,
3755
- Po as ACTION_TOGGLE_PROMPT,
3756
- ar as APP_NAME,
3757
- Xt as C,
3758
- is as CARDS,
3759
- ns as CLIPBOARD_PROMPT,
3760
- So as DEFAULT_AI_ENGINE,
3761
- Vo as DEFAULT_ICON_ACTION_SIZE,
3762
- ko as ENGINE_ANTHROPIC,
3763
- _o as ENGINE_OPENAI,
3764
- Io as ERROR_MESSAGE,
3765
- os as FOOTER_DISCLAIMER,
3766
- ts as HISTORY_TITLE,
3767
- Bo as INFINITE_SCROLL_LIMIT,
3768
- Wo as INFINITE_SCROLL_THRESHOLD,
3769
- vn as L,
3770
- $o as LOCAL_STORAGE_CHAT_DETAILS,
3771
- Lo as LOCAL_STORAGE_PREFIX,
3772
- Ko as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
3773
- Mo as LOCAL_STORAGE_SEARCH,
3774
- Uo as LOCAL_STORAGE_SORT,
3775
- Qo as LOG_OUT,
3776
- eo as Logo,
3774
+ Po as ACTION_SORT,
3775
+ Co as ACTION_STREAMING,
3776
+ Do as ACTION_TOGGLE_PROMPT,
3777
+ nr as APP_NAME,
3778
+ Qt as C,
3779
+ cs as CARDS,
3780
+ os as CLIPBOARD_PROMPT,
3781
+ _o as DEFAULT_AI_ENGINE,
3782
+ Yo as DEFAULT_ICON_ACTION_SIZE,
3783
+ Ao as ENGINE_ANTHROPIC,
3784
+ ko as ENGINE_OPENAI,
3785
+ So as ERROR_MESSAGE,
3786
+ ss as FOOTER_DISCLAIMER,
3787
+ rs as HISTORY_TITLE,
3788
+ Go as INFINITE_SCROLL_LIMIT,
3789
+ Bo as INFINITE_SCROLL_THRESHOLD,
3790
+ xn as L,
3791
+ Mo as LOCAL_STORAGE_CHAT_DETAILS,
3792
+ $o as LOCAL_STORAGE_PREFIX,
3793
+ Ho as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
3794
+ Uo as LOCAL_STORAGE_SEARCH,
3795
+ Ko as LOCAL_STORAGE_SORT,
3796
+ Zo as LOG_OUT,
3797
+ to as Logo,
3777
3798
  me as M,
3778
- Zo as PROFILE_TITLE,
3779
- ss as PROMPTS_DESCRIPTION,
3780
- Go as PROMPT_CLASSNAME,
3781
- Jo as PROMPT_EDITABLE_AREA_CLASSNAME,
3799
+ es as PROFILE_TITLE,
3800
+ is as PROMPTS_DESCRIPTION,
3801
+ Jo as PROMPT_CLASSNAME,
3802
+ Vo as PROMPT_EDITABLE_AREA_CLASSNAME,
3782
3803
  Tn as R,
3783
- bo as ROLE_ASSISTANT,
3804
+ Eo as ROLE_ASSISTANT,
3784
3805
  To as ROLE_HIDDEN,
3785
- wo as ROLE_INTERNAL,
3786
- Eo as ROLE_SYSTEM,
3787
- yo as ROLE_USER,
3788
- es as SETTINGS_TITLE,
3789
- Ho as STATS_SEPARATOR,
3790
- cs as SassySaint,
3791
- as as TYPE_QUESTION,
3792
- Xo as debounce,
3793
- zo as durationFormatter,
3806
+ Io as ROLE_INTERNAL,
3807
+ wo as ROLE_SYSTEM,
3808
+ bo as ROLE_USER,
3809
+ ts as SETTINGS_TITLE,
3810
+ Wo as STATS_SEPARATOR,
3811
+ ls as SassySaint,
3812
+ ns as TYPE_QUESTION,
3813
+ Qo as debounce,
3814
+ qo as durationFormatter,
3794
3815
  Ke as f,
3795
3816
  ot as fe,
3796
- Yo as getCurrentGeoLocation,
3797
- Xa as getMainPaddingClass,
3798
- qa as getMessageContaintWrapperClass,
3799
- jo as isLastMessageFromRole,
3817
+ Fo as getCurrentGeoLocation,
3818
+ Qa as getMainPaddingClass,
3819
+ Xa as getMessageContaintWrapperClass,
3820
+ zo as isLastMessageFromRole,
3800
3821
  re as j,
3801
- _n as l,
3802
- qo as pluralize,
3803
- Rn as r,
3804
- Fo as renderDataAsList,
3805
- Ce as te,
3806
- zt as un
3822
+ kn as l,
3823
+ Xo as pluralize,
3824
+ Nn as r,
3825
+ Oe as re,
3826
+ jo as renderDataAsList,
3827
+ qt as un
3807
3828
  };