@versini/sassysaint 8.51.3 → 8.51.5

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.
Files changed (23) hide show
  1. package/dist/chunks/{AboutChangelog.CsTDTp1O.js → AboutChangelog.B5fQ66cZ.js} +2 -2
  2. package/dist/chunks/{AboutEntry.IqWgdc3k.js → AboutEntry.DRFkTf3Z.js} +5 -5
  3. package/dist/chunks/{App.CVZzr8SY.js → App.Dgi9EXuN.js} +1468 -1442
  4. package/dist/chunks/{Chart.DT4thI7a.js → Chart.PqAySZVH.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.CvK1C7Aa.js → ChatBubbleAssistant.PMOMVxex.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.CIKGRlTq.js → ChatBubbleUser.DStxPNL-.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.Cv6pi8it.js → ChatHistoryTable.CpwZZ1fA.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.5X5Di1PU.js → HistoryEntry.B3dcvSNE.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.BwM_wIi_.js → ProfileEntry.DtBPcDgq.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.9F-OY_uw.js → SettingsEntry.mqrkoBrh.js} +3 -3
  11. package/dist/chunks/{Table.eToeBbgJ.js → Table.D6XceIb0.js} +2 -2
  12. package/dist/chunks/{UsageEntry.fYjpmAvU.js → UsageEntry.wEiNRoBF.js} +3 -3
  13. package/dist/chunks/{index.CnxWZciF.js → index.C0AhpNkV.js} +1 -1
  14. package/dist/chunks/{index.CMyn63SO.js → index.CD8QBlM8.js} +3 -3
  15. package/dist/chunks/{index.BKtMB4pj.js → index.Cw3-hSiP.js} +660 -607
  16. package/dist/chunks/{index.2NNXtlz-.js → index.CwWwIAw7.js} +2 -2
  17. package/dist/chunks/{index.C-YuTIlc.js → index.CyghD2Hp.js} +1 -1
  18. package/dist/chunks/{index.BcmaA5SM.js → index.DB6Qo1oZ.js} +1 -1
  19. package/dist/chunks/{index.BbvYO71N.js → index.XPqmLIDw.js} +1 -1
  20. package/dist/chunks/{useMarkdown.BwOAW6ja.js → useMarkdown.CeeOSwvK.js} +6 -6
  21. package/dist/components/SassySaint/SassySaint.js +1 -1
  22. package/dist/index.js +4 -4
  23. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
- import { jsx as h, jsxs as W, Fragment as Ar } from "react/jsx-runtime";
1
+ import { jsx as h, jsxs as q, Fragment as Ar } from "react/jsx-runtime";
2
2
  import * as H from "react";
3
- import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as q, useSyncExternalStore as Is, useContext as at, useState as ne, useMemo as Je, useId as _s, useLayoutEffect as Qe, Suspense as Rs, lazy as Cs } from "react";
3
+ import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as _s, useContext as at, useState as ne, useMemo as Je, useId as Rs, useLayoutEffect as Qe, Suspense as Cs, lazy as ks } from "react";
4
4
  import y from "clsx";
5
5
  var Oe = class {
6
6
  constructor() {
@@ -18,7 +18,7 @@ var Oe = class {
18
18
  }
19
19
  onUnsubscribe() {
20
20
  }
21
- }, ks = {
21
+ }, Os = {
22
22
  // We need the wrapper function syntax below instead of direct references to
23
23
  // global setTimeout etc.
24
24
  //
@@ -33,14 +33,14 @@ var Oe = class {
33
33
  clearTimeout: (e) => clearTimeout(e),
34
34
  setInterval: (e, t) => setInterval(e, t),
35
35
  clearInterval: (e) => clearInterval(e)
36
- }, Os = class {
36
+ }, Ns = class {
37
37
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
38
38
  // type at app boot; and if we leave that type, then any new timer provider
39
39
  // would need to support ReturnType<typeof setTimeout>, which is infeasible.
40
40
  //
41
41
  // We settle for type safety for the TimeoutProvider type, and accept that
42
42
  // this class is unsafe internally to allow for extension.
43
- #e = ks;
43
+ #e = Os;
44
44
  #t = !1;
45
45
  setTimeoutProvider(e) {
46
46
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
@@ -60,14 +60,14 @@ var Oe = class {
60
60
  clearInterval(e) {
61
61
  this.#e.clearInterval(e);
62
62
  }
63
- }, fe = new Os();
64
- function Ns(e) {
63
+ }, fe = new Ns();
64
+ function Ps(e) {
65
65
  setTimeout(e, 0);
66
66
  }
67
67
  var me = typeof window > "u" || "Deno" in globalThis;
68
68
  function G() {
69
69
  }
70
- function Ps(e, t) {
70
+ function $s(e, t) {
71
71
  return typeof e == "function" ? e(t) : e;
72
72
  }
73
73
  function Tt(e) {
@@ -130,7 +130,7 @@ function pe(e) {
130
130
  function xe(e, t) {
131
131
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => xe(e[r], t[r])) : !1;
132
132
  }
133
- var $s = Object.prototype.hasOwnProperty;
133
+ var xs = Object.prototype.hasOwnProperty;
134
134
  function At(e, t) {
135
135
  if (e === t)
136
136
  return e;
@@ -141,7 +141,7 @@ function At(e, t) {
141
141
  for (let f = 0; f < i; f++) {
142
142
  const d = r ? f : n[f], u = e[d], l = t[d];
143
143
  if (u === l) {
144
- o[d] = u, (r ? f < a : $s.call(e, d)) && c++;
144
+ o[d] = u, (r ? f < a : xs.call(e, d)) && c++;
145
145
  continue;
146
146
  }
147
147
  if (u === null || l === null || typeof u != "object" || typeof l != "object") {
@@ -176,7 +176,7 @@ function It(e) {
176
176
  function Xt(e) {
177
177
  return Object.prototype.toString.call(e) === "[object Object]";
178
178
  }
179
- function xs(e) {
179
+ function Ds(e) {
180
180
  return new Promise((t) => {
181
181
  fe.setTimeout(t, e);
182
182
  });
@@ -197,11 +197,11 @@ function _t(e, t, r) {
197
197
  }
198
198
  return t;
199
199
  }
200
- function Ds(e, t, r = 0) {
200
+ function Ms(e, t, r = 0) {
201
201
  const s = [...e, t];
202
202
  return r && s.length > r ? s.slice(1) : s;
203
203
  }
204
- function Ms(e, t, r = 0) {
204
+ function Ls(e, t, r = 0) {
205
205
  const s = [t, ...e];
206
206
  return r && s.length > r ? s.slice(0, -1) : s;
207
207
  }
@@ -214,7 +214,7 @@ function Rr(e, t) {
214
214
  function Cr(e, t) {
215
215
  return typeof e == "function" ? e(...t) : !!e;
216
216
  }
217
- var Ls = class extends Oe {
217
+ var Us = class extends Oe {
218
218
  #e;
219
219
  #t;
220
220
  #r;
@@ -251,7 +251,7 @@ var Ls = class extends Oe {
251
251
  isFocused() {
252
252
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
253
253
  }
254
- }, Mt = new Ls();
254
+ }, Mt = new Us();
255
255
  function Rt() {
256
256
  let e, t;
257
257
  const r = new Promise((a, n) => {
@@ -274,13 +274,13 @@ function Rt() {
274
274
  }), t(a);
275
275
  }, r;
276
276
  }
277
- var Us = Ns;
278
- function Fs() {
277
+ var Fs = Ps;
278
+ function Hs() {
279
279
  let e = [], t = 0, r = (o) => {
280
280
  o();
281
281
  }, s = (o) => {
282
282
  o();
283
- }, a = Us;
283
+ }, a = Fs;
284
284
  const n = (o) => {
285
285
  t ? e.push(o) : a(() => {
286
286
  r(o);
@@ -334,7 +334,7 @@ function Fs() {
334
334
  }
335
335
  };
336
336
  }
337
- var $ = Fs(), Hs = class extends Oe {
337
+ var $ = Hs(), Ks = class extends Oe {
338
338
  #e = !0;
339
339
  #t;
340
340
  #r;
@@ -365,8 +365,8 @@ var $ = Fs(), Hs = class extends Oe {
365
365
  isOnline() {
366
366
  return this.#e;
367
367
  }
368
- }, Xe = new Hs();
369
- function Ks(e) {
368
+ }, Xe = new Ks();
369
+ function Gs(e) {
370
370
  return Math.min(1e3 * 2 ** e, 3e4);
371
371
  }
372
372
  function kr(e) {
@@ -411,12 +411,12 @@ function Or(e) {
411
411
  Promise.resolve(g).then(u).catch((E) => {
412
412
  if (n())
413
413
  return;
414
- const k = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? Ks, K = typeof A == "function" ? A(r, E) : A, R = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, E);
414
+ const k = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? Gs, K = typeof A == "function" ? A(r, E) : A, R = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, E);
415
415
  if (t || !R) {
416
416
  l(E);
417
417
  return;
418
418
  }
419
- r++, e.onFail?.(r, E), xs(K).then(() => f() ? void 0 : m()).then(() => {
419
+ r++, e.onFail?.(r, E), Ds(K).then(() => f() ? void 0 : m()).then(() => {
420
420
  t ? l(E) : p();
421
421
  });
422
422
  });
@@ -451,22 +451,22 @@ var Nr = class {
451
451
  clearGcTimeout() {
452
452
  this.#e && (fe.clearTimeout(this.#e), this.#e = void 0);
453
453
  }
454
- }, Gs = class extends Nr {
454
+ }, Bs = class extends Nr {
455
455
  #e;
456
456
  #t;
457
457
  #r;
458
- #s;
459
458
  #a;
459
+ #s;
460
460
  #i;
461
461
  #o;
462
462
  constructor(e) {
463
- super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#s = e.client, this.#r = this.#s.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Zt(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
463
+ super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#a = e.client, this.#r = this.#a.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Zt(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
464
464
  }
465
465
  get meta() {
466
466
  return this.options.meta;
467
467
  }
468
468
  get promise() {
469
- return this.#a?.promise;
469
+ return this.#s?.promise;
470
470
  }
471
471
  setOptions(e) {
472
472
  if (this.options = { ...this.#i, ...e }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
@@ -493,8 +493,8 @@ var Nr = class {
493
493
  this.#n({ type: "setState", state: e, setStateOptions: t });
494
494
  }
495
495
  cancel(e) {
496
- const t = this.#a?.promise;
497
- return this.#a?.cancel(e), t ? t.then(G).catch(G) : Promise.resolve();
496
+ const t = this.#s?.promise;
497
+ return this.#s?.cancel(e), t ? t.then(G).catch(G) : Promise.resolve();
498
498
  }
499
499
  destroy() {
500
500
  super.destroy(), this.cancel({ silent: !0 });
@@ -524,16 +524,16 @@ var Nr = class {
524
524
  return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !_r(this.state.dataUpdatedAt, e);
525
525
  }
526
526
  onFocus() {
527
- this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
527
+ this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
528
528
  }
529
529
  onOnline() {
530
- this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
530
+ this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
531
531
  }
532
532
  addObserver(e) {
533
533
  this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({ type: "observerAdded", query: this, observer: e }));
534
534
  }
535
535
  removeObserver(e) {
536
- this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#o ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({ type: "observerRemoved", query: this, observer: e }));
536
+ this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#s && (this.#o ? this.#s.cancel({ revert: !0 }) : this.#s.cancelRetry()), this.scheduleGc()), this.#r.notify({ type: "observerRemoved", query: this, observer: e }));
537
537
  }
538
538
  getObserversCount() {
539
539
  return this.observers.length;
@@ -545,11 +545,11 @@ var Nr = class {
545
545
  if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
546
546
  // re-start the fetch; there is a chance that the query is still in a
547
547
  // pending state when that happens
548
- this.#a?.status() !== "rejected") {
548
+ this.#s?.status() !== "rejected") {
549
549
  if (this.state.data !== void 0 && t?.cancelRefetch)
550
550
  this.cancel({ silent: !0 });
551
- else if (this.#a)
552
- return this.#a.continueRetry(), this.#a.promise;
551
+ else if (this.#s)
552
+ return this.#s.continueRetry(), this.#s.promise;
553
553
  }
554
554
  if (e && this.setOptions(e), !this.options.queryFn) {
555
555
  const o = this.observers.find((c) => c.options.queryFn);
@@ -566,7 +566,7 @@ var Nr = class {
566
566
  }, a = () => {
567
567
  const o = Rr(this.options, t), f = (() => {
568
568
  const d = {
569
- client: this.#s,
569
+ client: this.#a,
570
570
  queryKey: this.queryKey,
571
571
  meta: this.meta
572
572
  };
@@ -582,13 +582,13 @@ var Nr = class {
582
582
  fetchOptions: t,
583
583
  options: this.options,
584
584
  queryKey: this.queryKey,
585
- client: this.#s,
585
+ client: this.#a,
586
586
  state: this.state,
587
587
  fetchFn: a
588
588
  };
589
589
  return s(o), o;
590
590
  })();
591
- this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#a = Or({
591
+ this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = Or({
592
592
  initialPromise: t?.initialPromise,
593
593
  fn: i.fetchFn,
594
594
  onCancel: (o) => {
@@ -612,7 +612,7 @@ var Nr = class {
612
612
  canRun: () => !0
613
613
  });
614
614
  try {
615
- const o = await this.#a.start();
615
+ const o = await this.#s.start();
616
616
  if (o === void 0)
617
617
  throw process.env.NODE_ENV !== "production" && console.error(
618
618
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -625,7 +625,7 @@ var Nr = class {
625
625
  } catch (o) {
626
626
  if (o instanceof Ct) {
627
627
  if (o.silent)
628
- return this.#a.promise;
628
+ return this.#s.promise;
629
629
  if (o.revert) {
630
630
  if (this.state.data === void 0)
631
631
  throw o;
@@ -747,15 +747,15 @@ function Zt(e) {
747
747
  fetchStatus: "idle"
748
748
  };
749
749
  }
750
- var Bs = class extends Oe {
750
+ var Ws = class extends Oe {
751
751
  constructor(e, t) {
752
752
  super(), this.options = t, this.#e = e, this.#n = null, this.#o = Rt(), this.bindMethods(), this.setOptions(t);
753
753
  }
754
754
  #e;
755
755
  #t = void 0;
756
756
  #r = void 0;
757
- #s = void 0;
758
- #a;
757
+ #a = void 0;
758
+ #s;
759
759
  #i;
760
760
  #o;
761
761
  #n;
@@ -817,10 +817,10 @@ var Bs = class extends Oe {
817
817
  }
818
818
  getOptimisticResult(e) {
819
819
  const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
820
- return Ws(this, r) && (this.#s = r, this.#i = this.options, this.#a = this.#t.state), r;
820
+ return js(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
821
821
  }
822
822
  getCurrentResult() {
823
- return this.#s;
823
+ return this.#a;
824
824
  }
825
825
  trackResult(e, t) {
826
826
  return new Proxy(e, {
@@ -850,7 +850,7 @@ var Bs = class extends Oe {
850
850
  return this.#d({
851
851
  ...e,
852
852
  cancelRefetch: e.cancelRefetch ?? !0
853
- }).then(() => (this.updateResult(), this.#s));
853
+ }).then(() => (this.updateResult(), this.#a));
854
854
  }
855
855
  #d(e) {
856
856
  this.#v();
@@ -866,11 +866,11 @@ var Bs = class extends Oe {
866
866
  this.options.staleTime,
867
867
  this.#t
868
868
  );
869
- if (me || this.#s.isStale || !Tt(e))
869
+ if (me || this.#a.isStale || !Tt(e))
870
870
  return;
871
- const r = _r(this.#s.dataUpdatedAt, e) + 1;
871
+ const r = _r(this.#a.dataUpdatedAt, e) + 1;
872
872
  this.#l = fe.setTimeout(() => {
873
- this.#s.isStale || this.updateResult();
873
+ this.#a.isStale || this.updateResult();
874
874
  }, r);
875
875
  }
876
876
  #g() {
@@ -891,7 +891,7 @@ var Bs = class extends Oe {
891
891
  this.#u && (fe.clearInterval(this.#u), this.#u = void 0);
892
892
  }
893
893
  createResult(e, t) {
894
- const r = this.#t, s = this.options, a = this.#s, n = this.#a, i = this.#i, c = e !== r ? e.state : this.#r, { state: f } = e;
894
+ const r = this.#t, s = this.options, a = this.#a, n = this.#s, i = this.#i, c = e !== r ? e.state : this.#r, { state: f } = e;
895
895
  let d = { ...f }, u = !1, l;
896
896
  if (t._optimisticResults) {
897
897
  const v = this.hasListeners(), x = !v && er(e, t), _ = v && tr(e, r, t, s);
@@ -974,10 +974,10 @@ var Bs = class extends Oe {
974
974
  return C;
975
975
  }
976
976
  updateResult() {
977
- const e = this.#s, t = this.createResult(this.#t, this.options);
978
- if (this.#a = this.#t.state, this.#i = this.options, this.#a.data !== void 0 && (this.#f = this.#t), Ye(t, e))
977
+ const e = this.#a, t = this.createResult(this.#t, this.options);
978
+ if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t), Ye(t, e))
979
979
  return;
980
- this.#s = t;
980
+ this.#a = t;
981
981
  const r = () => {
982
982
  if (!e)
983
983
  return !0;
@@ -987,9 +987,9 @@ var Bs = class extends Oe {
987
987
  const n = new Set(
988
988
  a ?? this.#m
989
989
  );
990
- return this.options.throwOnError && n.add("error"), Object.keys(this.#s).some((i) => {
990
+ return this.options.throwOnError && n.add("error"), Object.keys(this.#a).some((i) => {
991
991
  const o = i;
992
- return this.#s[o] !== e[o] && n.has(o);
992
+ return this.#a[o] !== e[o] && n.has(o);
993
993
  });
994
994
  };
995
995
  this.#T({ listeners: r() });
@@ -1007,7 +1007,7 @@ var Bs = class extends Oe {
1007
1007
  #T(e) {
1008
1008
  $.batch(() => {
1009
1009
  e.listeners && this.listeners.forEach((t) => {
1010
- t(this.#s);
1010
+ t(this.#a);
1011
1011
  }), this.#e.getQueryCache().notify({
1012
1012
  query: this.#t,
1013
1013
  type: "observerResultsUpdated"
@@ -1034,7 +1034,7 @@ function tr(e, t, r, s) {
1034
1034
  function Lt(e, t) {
1035
1035
  return J(t.enabled, e) !== !1 && e.isStaleByTime(de(t.staleTime, e));
1036
1036
  }
1037
- function Ws(e, t) {
1037
+ function js(e, t) {
1038
1038
  return !Ye(e.getCurrentResult(), t);
1039
1039
  }
1040
1040
  function rr(e) {
@@ -1065,14 +1065,14 @@ function rr(e) {
1065
1065
  meta: t.options.meta
1066
1066
  };
1067
1067
  return u(Q), Q;
1068
- })(), A = await l(k), { maxPages: K } = t.options, R = b ? Ms : Ds;
1068
+ })(), A = await l(k), { maxPages: K } = t.options, R = b ? Ls : Ms;
1069
1069
  return {
1070
1070
  pages: R(p.pages, A, K),
1071
1071
  pageParams: R(p.pageParams, g, K)
1072
1072
  };
1073
1073
  };
1074
1074
  if (a && n.length) {
1075
- const p = a === "backward", g = p ? js : sr, b = {
1075
+ const p = a === "backward", g = p ? Vs : sr, b = {
1076
1076
  pages: n,
1077
1077
  pageParams: i
1078
1078
  }, E = g(s, b);
@@ -1110,15 +1110,16 @@ function sr(e, { pages: t, pageParams: r }) {
1110
1110
  r
1111
1111
  ) : void 0;
1112
1112
  }
1113
- function js(e, { pages: t, pageParams: r }) {
1113
+ function Vs(e, { pages: t, pageParams: r }) {
1114
1114
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
1115
1115
  }
1116
- var Vs = class extends Nr {
1116
+ var Js = class extends Nr {
1117
1117
  #e;
1118
1118
  #t;
1119
1119
  #r;
1120
+ #a;
1120
1121
  constructor(e) {
1121
- super(), this.mutationId = e.mutationId, this.#t = e.mutationCache, this.#e = [], this.state = e.state || $r(), this.setOptions(e.options), this.scheduleGc();
1122
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || $r(), this.setOptions(e.options), this.scheduleGc();
1122
1123
  }
1123
1124
  setOptions(e) {
1124
1125
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1127,34 +1128,38 @@ var Vs = class extends Nr {
1127
1128
  return this.options.meta;
1128
1129
  }
1129
1130
  addObserver(e) {
1130
- this.#e.includes(e) || (this.#e.push(e), this.clearGcTimeout(), this.#t.notify({
1131
+ this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#r.notify({
1131
1132
  type: "observerAdded",
1132
1133
  mutation: this,
1133
1134
  observer: e
1134
1135
  }));
1135
1136
  }
1136
1137
  removeObserver(e) {
1137
- this.#e = this.#e.filter((t) => t !== e), this.scheduleGc(), this.#t.notify({
1138
+ this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#r.notify({
1138
1139
  type: "observerRemoved",
1139
1140
  mutation: this,
1140
1141
  observer: e
1141
1142
  });
1142
1143
  }
1143
1144
  optionalRemove() {
1144
- this.#e.length || (this.state.status === "pending" ? this.scheduleGc() : this.#t.remove(this));
1145
+ this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#r.remove(this));
1145
1146
  }
1146
1147
  continue() {
1147
- return this.#r?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
1148
+ return this.#a?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
1148
1149
  this.execute(this.state.variables);
1149
1150
  }
1150
1151
  async execute(e) {
1151
1152
  const t = () => {
1152
1153
  this.#s({ type: "continue" });
1154
+ }, r = {
1155
+ client: this.#e,
1156
+ meta: this.options.meta,
1157
+ mutationKey: this.options.mutationKey
1153
1158
  };
1154
- this.#r = Or({
1155
- fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
1156
- onFail: (a, n) => {
1157
- this.#s({ type: "failed", failureCount: a, error: n });
1159
+ this.#a = Or({
1160
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
1161
+ onFail: (n, i) => {
1162
+ this.#s({ type: "failed", failureCount: n, error: i });
1158
1163
  },
1159
1164
  onPause: () => {
1160
1165
  this.#s({ type: "pause" });
@@ -1163,66 +1168,87 @@ var Vs = class extends Nr {
1163
1168
  retry: this.options.retry ?? 0,
1164
1169
  retryDelay: this.options.retryDelay,
1165
1170
  networkMode: this.options.networkMode,
1166
- canRun: () => this.#t.canRun(this)
1171
+ canRun: () => this.#r.canRun(this)
1167
1172
  });
1168
- const r = this.state.status === "pending", s = !this.#r.canStart();
1173
+ const s = this.state.status === "pending", a = !this.#a.canStart();
1169
1174
  try {
1170
- if (r)
1175
+ if (s)
1171
1176
  t();
1172
1177
  else {
1173
- this.#s({ type: "pending", variables: e, isPaused: s }), await this.#t.config.onMutate?.(
1178
+ this.#s({ type: "pending", variables: e, isPaused: a }), await this.#r.config.onMutate?.(
1174
1179
  e,
1175
- this
1180
+ this,
1181
+ r
1182
+ );
1183
+ const i = await this.options.onMutate?.(
1184
+ e,
1185
+ r
1176
1186
  );
1177
- const n = await this.options.onMutate?.(e);
1178
- n !== this.state.context && this.#s({
1187
+ i !== this.state.context && this.#s({
1179
1188
  type: "pending",
1180
- context: n,
1189
+ context: i,
1181
1190
  variables: e,
1182
- isPaused: s
1191
+ isPaused: a
1183
1192
  });
1184
1193
  }
1185
- const a = await this.#r.start();
1186
- return await this.#t.config.onSuccess?.(
1187
- a,
1194
+ const n = await this.#a.start();
1195
+ return await this.#r.config.onSuccess?.(
1196
+ n,
1188
1197
  e,
1189
1198
  this.state.context,
1190
- this
1191
- ), await this.options.onSuccess?.(a, e, this.state.context), await this.#t.config.onSettled?.(
1192
- a,
1199
+ this,
1200
+ r
1201
+ ), await this.options.onSuccess?.(
1202
+ n,
1203
+ e,
1204
+ this.state.context,
1205
+ r
1206
+ ), await this.#r.config.onSettled?.(
1207
+ n,
1193
1208
  null,
1194
1209
  this.state.variables,
1195
1210
  this.state.context,
1196
- this
1197
- ), await this.options.onSettled?.(a, null, e, this.state.context), this.#s({ type: "success", data: a }), a;
1198
- } catch (a) {
1211
+ this,
1212
+ r
1213
+ ), await this.options.onSettled?.(
1214
+ n,
1215
+ null,
1216
+ e,
1217
+ this.state.context,
1218
+ r
1219
+ ), this.#s({ type: "success", data: n }), n;
1220
+ } catch (n) {
1199
1221
  try {
1200
- throw await this.#t.config.onError?.(
1201
- a,
1222
+ throw await this.#r.config.onError?.(
1223
+ n,
1202
1224
  e,
1203
1225
  this.state.context,
1204
- this
1226
+ this,
1227
+ r
1205
1228
  ), await this.options.onError?.(
1206
- a,
1229
+ n,
1207
1230
  e,
1208
- this.state.context
1209
- ), await this.#t.config.onSettled?.(
1231
+ this.state.context,
1232
+ r
1233
+ ), await this.#r.config.onSettled?.(
1210
1234
  void 0,
1211
- a,
1235
+ n,
1212
1236
  this.state.variables,
1213
1237
  this.state.context,
1214
- this
1238
+ this,
1239
+ r
1215
1240
  ), await this.options.onSettled?.(
1216
1241
  void 0,
1217
- a,
1242
+ n,
1218
1243
  e,
1219
- this.state.context
1220
- ), a;
1244
+ this.state.context,
1245
+ r
1246
+ ), n;
1221
1247
  } finally {
1222
- this.#s({ type: "error", error: a });
1248
+ this.#s({ type: "error", error: n });
1223
1249
  }
1224
1250
  } finally {
1225
- this.#t.runNext(this);
1251
+ this.#r.runNext(this);
1226
1252
  }
1227
1253
  }
1228
1254
  #s(e) {
@@ -1280,9 +1306,9 @@ var Vs = class extends Nr {
1280
1306
  }
1281
1307
  };
1282
1308
  this.state = t(this.state), $.batch(() => {
1283
- this.#e.forEach((r) => {
1309
+ this.#t.forEach((r) => {
1284
1310
  r.onMutationUpdate(e);
1285
- }), this.#t.notify({
1311
+ }), this.#r.notify({
1286
1312
  mutation: this,
1287
1313
  type: "updated",
1288
1314
  action: e
@@ -1303,7 +1329,7 @@ function $r() {
1303
1329
  submittedAt: 0
1304
1330
  };
1305
1331
  }
1306
- var Js = class extends Oe {
1332
+ var Qs = class extends Oe {
1307
1333
  constructor(e = {}) {
1308
1334
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
1309
1335
  }
@@ -1311,7 +1337,8 @@ var Js = class extends Oe {
1311
1337
  #t;
1312
1338
  #r;
1313
1339
  build(e, t, r) {
1314
- const s = new Vs({
1340
+ const s = new Js({
1341
+ client: e,
1315
1342
  mutationCache: this,
1316
1343
  mutationId: ++this.#r,
1317
1344
  options: e.defaultMutationOptions(t),
@@ -1394,13 +1421,13 @@ var Js = class extends Oe {
1394
1421
  function Ue(e) {
1395
1422
  return e.options.scope?.id;
1396
1423
  }
1397
- var Qs = class extends Oe {
1424
+ var Ys = class extends Oe {
1398
1425
  #e;
1399
1426
  #t = void 0;
1400
1427
  #r;
1401
- #s;
1428
+ #a;
1402
1429
  constructor(e, t) {
1403
- super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#a();
1430
+ super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#s();
1404
1431
  }
1405
1432
  bindMethods() {
1406
1433
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -1417,18 +1444,18 @@ var Qs = class extends Oe {
1417
1444
  this.hasListeners() || this.#r?.removeObserver(this);
1418
1445
  }
1419
1446
  onMutationUpdate(e) {
1420
- this.#a(), this.#i(e);
1447
+ this.#s(), this.#i(e);
1421
1448
  }
1422
1449
  getCurrentResult() {
1423
1450
  return this.#t;
1424
1451
  }
1425
1452
  reset() {
1426
- this.#r?.removeObserver(this), this.#r = void 0, this.#a(), this.#i();
1453
+ this.#r?.removeObserver(this), this.#r = void 0, this.#s(), this.#i();
1427
1454
  }
1428
1455
  mutate(e, t) {
1429
- return this.#s = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
1456
+ return this.#a = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
1430
1457
  }
1431
- #a() {
1458
+ #s() {
1432
1459
  const e = this.#r?.state ?? $r();
1433
1460
  this.#t = {
1434
1461
  ...e,
@@ -1442,13 +1469,34 @@ var Qs = class extends Oe {
1442
1469
  }
1443
1470
  #i(e) {
1444
1471
  $.batch(() => {
1445
- if (this.#s && this.hasListeners()) {
1446
- const t = this.#t.variables, r = this.#t.context;
1447
- e?.type === "success" ? (this.#s.onSuccess?.(e.data, t, r), this.#s.onSettled?.(e.data, null, t, r)) : e?.type === "error" && (this.#s.onError?.(e.error, t, r), this.#s.onSettled?.(
1472
+ if (this.#a && this.hasListeners()) {
1473
+ const t = this.#t.variables, r = this.#t.context, s = {
1474
+ client: this.#e,
1475
+ meta: this.options.meta,
1476
+ mutationKey: this.options.mutationKey
1477
+ };
1478
+ e?.type === "success" ? (this.#a.onSuccess?.(
1479
+ e.data,
1480
+ t,
1481
+ r,
1482
+ s
1483
+ ), this.#a.onSettled?.(
1484
+ e.data,
1485
+ null,
1486
+ t,
1487
+ r,
1488
+ s
1489
+ )) : e?.type === "error" && (this.#a.onError?.(
1490
+ e.error,
1491
+ t,
1492
+ r,
1493
+ s
1494
+ ), this.#a.onSettled?.(
1448
1495
  void 0,
1449
1496
  e.error,
1450
1497
  t,
1451
- r
1498
+ r,
1499
+ s
1452
1500
  ));
1453
1501
  }
1454
1502
  this.listeners.forEach((t) => {
@@ -1456,7 +1504,7 @@ var Qs = class extends Oe {
1456
1504
  });
1457
1505
  });
1458
1506
  }
1459
- }, Ys = class extends Oe {
1507
+ }, zs = class extends Oe {
1460
1508
  constructor(e = {}) {
1461
1509
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1462
1510
  }
@@ -1464,7 +1512,7 @@ var Qs = class extends Oe {
1464
1512
  build(e, t, r) {
1465
1513
  const s = t.queryKey, a = t.queryHash ?? Dt(s, t);
1466
1514
  let n = this.get(a);
1467
- return n || (n = new Gs({
1515
+ return n || (n = new Bs({
1468
1516
  client: e,
1469
1517
  queryKey: s,
1470
1518
  queryHash: a,
@@ -1527,17 +1575,17 @@ var Qs = class extends Oe {
1527
1575
  });
1528
1576
  });
1529
1577
  }
1530
- }, zs = class {
1578
+ }, Xs = class {
1531
1579
  #e;
1532
1580
  #t;
1533
1581
  #r;
1534
- #s;
1535
1582
  #a;
1583
+ #s;
1536
1584
  #i;
1537
1585
  #o;
1538
1586
  #n;
1539
1587
  constructor(e = {}) {
1540
- this.#e = e.queryCache || new Ys(), this.#t = e.mutationCache || new Js(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#i = 0;
1588
+ this.#e = e.queryCache || new zs(), this.#t = e.mutationCache || new Qs(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1541
1589
  }
1542
1590
  mount() {
1543
1591
  this.#i++, this.#i === 1 && (this.#o = Mt.subscribe(async (e) => {
@@ -1579,7 +1627,7 @@ var Qs = class extends Oe {
1579
1627
  setQueryData(e, t, r) {
1580
1628
  const s = this.defaultQueryOptions({ queryKey: e }), n = this.#e.get(
1581
1629
  s.queryHash
1582
- )?.state.data, i = Ps(t, n);
1630
+ )?.state.data, i = $s(t, n);
1583
1631
  if (i !== void 0)
1584
1632
  return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
1585
1633
  }
@@ -1682,25 +1730,25 @@ var Qs = class extends Oe {
1682
1730
  this.#r = e;
1683
1731
  }
1684
1732
  setQueryDefaults(e, t) {
1685
- this.#s.set(pe(e), {
1733
+ this.#a.set(pe(e), {
1686
1734
  queryKey: e,
1687
1735
  defaultOptions: t
1688
1736
  });
1689
1737
  }
1690
1738
  getQueryDefaults(e) {
1691
- const t = [...this.#s.values()], r = {};
1739
+ const t = [...this.#a.values()], r = {};
1692
1740
  return t.forEach((s) => {
1693
1741
  xe(e, s.queryKey) && Object.assign(r, s.defaultOptions);
1694
1742
  }), r;
1695
1743
  }
1696
1744
  setMutationDefaults(e, t) {
1697
- this.#a.set(pe(e), {
1745
+ this.#s.set(pe(e), {
1698
1746
  mutationKey: e,
1699
1747
  defaultOptions: t
1700
1748
  });
1701
1749
  }
1702
1750
  getMutationDefaults(e) {
1703
- const t = [...this.#a.values()], r = {};
1751
+ const t = [...this.#s.values()], r = {};
1704
1752
  return t.forEach((s) => {
1705
1753
  xe(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
1706
1754
  }), r;
@@ -1737,13 +1785,13 @@ var Qs = class extends Oe {
1737
1785
  if (!t)
1738
1786
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1739
1787
  return t;
1740
- }, Xs = ({
1788
+ }, Zs = ({
1741
1789
  client: e,
1742
1790
  children: t
1743
1791
  }) => (H.useEffect(() => (e.mount(), () => {
1744
1792
  e.unmount();
1745
- }), [e]), /* @__PURE__ */ h(xr.Provider, { value: e, children: t })), Zs = H.createContext(!1), ea = () => H.useContext(Zs);
1746
- function ta() {
1793
+ }), [e]), /* @__PURE__ */ h(xr.Provider, { value: e, children: t })), ea = H.createContext(!1), ta = () => H.useContext(ea);
1794
+ function ra() {
1747
1795
  let e = !1;
1748
1796
  return {
1749
1797
  clearReset: () => {
@@ -1755,19 +1803,19 @@ function ta() {
1755
1803
  isReset: () => e
1756
1804
  };
1757
1805
  }
1758
- var ra = H.createContext(ta()), sa = () => H.useContext(ra), aa = (e, t) => {
1806
+ var sa = H.createContext(ra()), aa = () => H.useContext(sa), na = (e, t) => {
1759
1807
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
1760
- }, na = (e) => {
1808
+ }, ia = (e) => {
1761
1809
  H.useEffect(() => {
1762
1810
  e.clearReset();
1763
1811
  }, [e]);
1764
- }, ia = ({
1812
+ }, oa = ({
1765
1813
  result: e,
1766
1814
  errorResetBoundary: t,
1767
1815
  throwOnError: r,
1768
1816
  query: s,
1769
1817
  suspense: a
1770
- }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Cr(r, [e.error, s])), oa = (e) => {
1818
+ }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Cr(r, [e.error, s])), ca = (e) => {
1771
1819
  if (e.suspense) {
1772
1820
  const r = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), s = e.staleTime;
1773
1821
  e.staleTime = typeof s == "function" ? (...a) => r(s(...a)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
@@ -1775,20 +1823,20 @@ var ra = H.createContext(ta()), sa = () => H.useContext(ra), aa = (e, t) => {
1775
1823
  1e3
1776
1824
  ));
1777
1825
  }
1778
- }, ca = (e, t) => e.isLoading && e.isFetching && !t, la = (e, t) => e?.suspense && t.isPending, ar = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1826
+ }, la = (e, t) => e.isLoading && e.isFetching && !t, ua = (e, t) => e?.suspense && t.isPending, ar = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1779
1827
  r.clearReset();
1780
1828
  });
1781
- function ua(e, t, r) {
1829
+ function da(e, t, r) {
1782
1830
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1783
1831
  throw new Error(
1784
1832
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1785
1833
  );
1786
- const s = ea(), a = sa(), n = nt(), i = n.defaultQueryOptions(e);
1834
+ const s = ta(), a = aa(), n = nt(), i = n.defaultQueryOptions(e);
1787
1835
  n.getDefaultOptions().queries?._experimental_beforeQuery?.(
1788
1836
  i
1789
1837
  ), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
1790
1838
  `[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1791
- )), i._optimisticResults = s ? "isRestoring" : "optimistic", oa(i), aa(i, a), na(a);
1839
+ )), i._optimisticResults = s ? "isRestoring" : "optimistic", ca(i), na(i, a), ia(a);
1792
1840
  const o = !n.getQueryCache().get(i.queryHash), [c] = H.useState(
1793
1841
  () => new t(
1794
1842
  n,
@@ -1807,9 +1855,9 @@ function ua(e, t, r) {
1807
1855
  () => c.getCurrentResult()
1808
1856
  ), H.useEffect(() => {
1809
1857
  c.setOptions(i);
1810
- }, [i, c]), la(i, f))
1858
+ }, [i, c]), ua(i, f))
1811
1859
  throw ar(i, c, a);
1812
- if (ia({
1860
+ if (oa({
1813
1861
  result: f,
1814
1862
  errorResetBoundary: a,
1815
1863
  throwOnError: i.throwOnError,
@@ -1820,7 +1868,7 @@ function ua(e, t, r) {
1820
1868
  return n.getDefaultOptions().queries?._experimental_afterQuery?.(
1821
1869
  i,
1822
1870
  f
1823
- ), i.experimental_prefetchInRender && !me && ca(f, s) && (o ? (
1871
+ ), i.experimental_prefetchInRender && !me && la(f, s) && (o ? (
1824
1872
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1825
1873
  ar(i, c, a)
1826
1874
  ) : (
@@ -1831,11 +1879,11 @@ function ua(e, t, r) {
1831
1879
  }), i.notifyOnChangeProps ? f : c.trackResult(f);
1832
1880
  }
1833
1881
  function ye(e, t) {
1834
- return ua(e, Bs);
1882
+ return da(e, Ws);
1835
1883
  }
1836
1884
  function Dr(e, t) {
1837
1885
  const r = nt(), [s] = H.useState(
1838
- () => new Qs(
1886
+ () => new Ys(
1839
1887
  r,
1840
1888
  e
1841
1889
  )
@@ -1887,7 +1935,7 @@ const Pe = {
1887
1935
  NONCE_KEY: "_nonce",
1888
1936
  AUTH_TYPE_KEY: "auth_type",
1889
1937
  ISSUER: "gizmette.com"
1890
- }, da = `-----BEGIN PUBLIC KEY-----
1938
+ }, ha = `-----BEGIN PUBLIC KEY-----
1891
1939
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
1892
1940
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
1893
1941
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -1901,7 +1949,7 @@ awIDAQAB
1901
1949
  LOGIN: "login",
1902
1950
  REFRESH: "refresh"
1903
1951
  }, Fe = new TextEncoder(), Ce = new TextDecoder();
1904
- function ha(...e) {
1952
+ function fa(...e) {
1905
1953
  const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
1906
1954
  let s = 0;
1907
1955
  for (const a of e)
@@ -1953,7 +2001,7 @@ let ge = class extends Error {
1953
2001
  constructor(t, r, s = "unspecified", a = "unspecified") {
1954
2002
  super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
1955
2003
  }
1956
- }, fa = class extends ge {
2004
+ }, ma = class extends ge {
1957
2005
  static code = "ERR_JOSE_ALG_NOT_ALLOWED";
1958
2006
  code = "ERR_JOSE_ALG_NOT_ALLOWED";
1959
2007
  }, ae = class extends ge {
@@ -1968,7 +2016,7 @@ let re = class extends ge {
1968
2016
  static code = "ERR_JWT_INVALID";
1969
2017
  code = "ERR_JWT_INVALID";
1970
2018
  };
1971
- class ma extends ge {
2019
+ class pa extends ge {
1972
2020
  static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
1973
2021
  code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
1974
2022
  constructor(t = "signature verification failed", r) {
@@ -1984,7 +2032,7 @@ function Se(e, t) {
1984
2032
  function ut(e) {
1985
2033
  return parseInt(e.name.slice(4), 10);
1986
2034
  }
1987
- function pa(e) {
2035
+ function ya(e) {
1988
2036
  switch (e) {
1989
2037
  case "ES256":
1990
2038
  return "P-256";
@@ -1996,11 +2044,11 @@ function pa(e) {
1996
2044
  throw new Error("unreachable");
1997
2045
  }
1998
2046
  }
1999
- function ya(e, t) {
2047
+ function ga(e, t) {
2000
2048
  if (!e.usages.includes(t))
2001
2049
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
2002
2050
  }
2003
- function ga(e, t, r) {
2051
+ function ba(e, t, r) {
2004
2052
  switch (t) {
2005
2053
  case "HS256":
2006
2054
  case "HS384":
@@ -2050,7 +2098,7 @@ function ga(e, t, r) {
2050
2098
  case "ES512": {
2051
2099
  if (!Se(e.algorithm, "ECDSA"))
2052
2100
  throw X("ECDSA");
2053
- const s = pa(t);
2101
+ const s = ya(t);
2054
2102
  if (e.algorithm.namedCurve !== s)
2055
2103
  throw X(s, "algorithm.namedCurve");
2056
2104
  break;
@@ -2058,7 +2106,7 @@ function ga(e, t, r) {
2058
2106
  default:
2059
2107
  throw new TypeError("CryptoKey does not support this operation");
2060
2108
  }
2061
- ya(e, r);
2109
+ ga(e, r);
2062
2110
  }
2063
2111
  function Ur(e, t, ...r) {
2064
2112
  if (r = r.filter(Boolean), r.length > 2) {
@@ -2067,7 +2115,7 @@ function Ur(e, t, ...r) {
2067
2115
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
2068
2116
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && t.constructor?.name && (e += ` Received an instance of ${t.constructor.name}`), e;
2069
2117
  }
2070
- const ba = (e, ...t) => Ur("Key must be ", e, ...t);
2118
+ const Ea = (e, ...t) => Ur("Key must be ", e, ...t);
2071
2119
  function Fr(e, t, ...r) {
2072
2120
  return Ur(`Key for the ${e} algorithm must be `, t, ...r);
2073
2121
  }
@@ -2077,7 +2125,7 @@ function Hr(e) {
2077
2125
  function Kr(e) {
2078
2126
  return e?.[Symbol.toStringTag] === "KeyObject";
2079
2127
  }
2080
- const Gr = (e) => Hr(e) || Kr(e), Ea = (...e) => {
2128
+ const Gr = (e) => Hr(e) || Kr(e), wa = (...e) => {
2081
2129
  const t = e.filter(Boolean);
2082
2130
  if (t.length === 0 || t.length === 1)
2083
2131
  return !0;
@@ -2096,11 +2144,11 @@ const Gr = (e) => Hr(e) || Kr(e), Ea = (...e) => {
2096
2144
  }
2097
2145
  return !0;
2098
2146
  };
2099
- function wa(e) {
2147
+ function Sa(e) {
2100
2148
  return typeof e == "object" && e !== null;
2101
2149
  }
2102
2150
  const De = (e) => {
2103
- if (!wa(e) || Object.prototype.toString.call(e) !== "[object Object]")
2151
+ if (!Sa(e) || Object.prototype.toString.call(e) !== "[object Object]")
2104
2152
  return !1;
2105
2153
  if (Object.getPrototypeOf(e) === null)
2106
2154
  return !0;
@@ -2108,7 +2156,7 @@ const De = (e) => {
2108
2156
  for (; Object.getPrototypeOf(t) !== null; )
2109
2157
  t = Object.getPrototypeOf(t);
2110
2158
  return Object.getPrototypeOf(e) === t;
2111
- }, Sa = (e, t) => {
2159
+ }, va = (e, t) => {
2112
2160
  if (e.startsWith("RS") || e.startsWith("PS")) {
2113
2161
  const { modulusLength: r } = t.algorithm;
2114
2162
  if (typeof r != "number" || r < 2048)
@@ -2121,7 +2169,7 @@ const De = (e) => {
2121
2169
  if (e[r] !== t[r])
2122
2170
  return !1;
2123
2171
  return !0;
2124
- }, va = (e) => ({ data: e, pos: 0 }), Ze = (e) => {
2172
+ }, Ta = (e) => ({ data: e, pos: 0 }), Ze = (e) => {
2125
2173
  const t = e.data[e.pos++];
2126
2174
  if (t & 128) {
2127
2175
  const r = t & 127;
@@ -2137,18 +2185,18 @@ const De = (e) => {
2137
2185
  }, Br = (e, t) => {
2138
2186
  const r = e.data.subarray(e.pos, e.pos + t);
2139
2187
  return e.pos += t, r;
2140
- }, Ta = (e) => {
2188
+ }, Aa = (e) => {
2141
2189
  et(e, 6, "Expected algorithm OID");
2142
2190
  const t = Ze(e);
2143
2191
  return Br(e, t);
2144
2192
  };
2145
- function Aa(e) {
2193
+ function Ia(e) {
2146
2194
  et(e, 48, "Invalid SPKI structure"), Ze(e), et(e, 48, "Expected algorithm identifier");
2147
2195
  const t = Ze(e);
2148
2196
  return { algIdStart: e.pos, algIdLength: t };
2149
2197
  }
2150
- const Ia = (e) => {
2151
- const t = Ta(e);
2198
+ const _a = (e) => {
2199
+ const t = Aa(e);
2152
2200
  if (dt(t, [43, 101, 110]))
2153
2201
  return "X25519";
2154
2202
  if (!dt(t, [42, 134, 72, 206, 61, 2, 1]))
@@ -2163,7 +2211,7 @@ const Ia = (e) => {
2163
2211
  if (dt(s, n))
2164
2212
  return a;
2165
2213
  throw new Error("Unsupported named curve");
2166
- }, _a = async (e, t, r, s) => {
2214
+ }, Ra = async (e, t, r, s) => {
2167
2215
  let a, n;
2168
2216
  const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
2169
2217
  switch (r) {
@@ -2218,15 +2266,15 @@ const Ia = (e) => {
2218
2266
  throw new ae('Invalid or unsupported "alg" (Algorithm) value');
2219
2267
  }
2220
2268
  return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
2221
- }, Ra = (e, t) => Lr(e.replace(t, "")), Ca = (e, t, r) => {
2222
- const s = Ra(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2269
+ }, Ca = (e, t) => Lr(e.replace(t, "")), ka = (e, t, r) => {
2270
+ const s = Ca(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2223
2271
  let a = r;
2224
2272
  return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
2225
- const i = va(n);
2226
- return Aa(i), Ia(i);
2227
- }), _a("spki", s, t, a);
2273
+ const i = Ta(n);
2274
+ return Ia(i), _a(i);
2275
+ }), Ra("spki", s, t, a);
2228
2276
  };
2229
- function ka(e) {
2277
+ function Oa(e) {
2230
2278
  let t, r;
2231
2279
  switch (e.kty) {
2232
2280
  case "AKP": {
@@ -2311,18 +2359,18 @@ function ka(e) {
2311
2359
  }
2312
2360
  return { algorithm: t, keyUsages: r };
2313
2361
  }
2314
- const Oa = async (e) => {
2362
+ const Na = async (e) => {
2315
2363
  if (!e.alg)
2316
2364
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
2317
- const { algorithm: t, keyUsages: r } = ka(e), s = { ...e };
2365
+ const { algorithm: t, keyUsages: r } = Oa(e), s = { ...e };
2318
2366
  return s.kty !== "AKP" && delete s.alg, delete s.use, crypto.subtle.importKey("jwk", s, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? r);
2319
2367
  };
2320
- async function Na(e, t, r) {
2368
+ async function Pa(e, t, r) {
2321
2369
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
2322
2370
  throw new TypeError('"spki" must be SPKI formatted string');
2323
- return Ca(e, t, r);
2371
+ return ka(e, t, r);
2324
2372
  }
2325
- const Pa = (e, t, r, s, a) => {
2373
+ const $a = (e, t, r, s, a) => {
2326
2374
  if (a.crit !== void 0 && s?.crit === void 0)
2327
2375
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
2328
2376
  if (!s || s.crit === void 0)
@@ -2340,7 +2388,7 @@ const Pa = (e, t, r, s, a) => {
2340
2388
  throw new e(`Extension Header Parameter "${i}" MUST be integrity protected`);
2341
2389
  }
2342
2390
  return new Set(s.crit);
2343
- }, $a = (e, t) => {
2391
+ }, xa = (e, t) => {
2344
2392
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
2345
2393
  throw new TypeError(`"${e}" option must be an array of strings`);
2346
2394
  if (t)
@@ -2349,13 +2397,13 @@ const Pa = (e, t, r, s, a) => {
2349
2397
  function Ut(e) {
2350
2398
  return De(e) && typeof e.kty == "string";
2351
2399
  }
2352
- function xa(e) {
2400
+ function Da(e) {
2353
2401
  return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
2354
2402
  }
2355
- function Da(e) {
2403
+ function Ma(e) {
2356
2404
  return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
2357
2405
  }
2358
- function Ma(e) {
2406
+ function La(e) {
2359
2407
  return e.kty === "oct" && typeof e.k == "string";
2360
2408
  }
2361
2409
  let Re;
@@ -2364,9 +2412,9 @@ const ir = async (e, t, r, s = !1) => {
2364
2412
  let a = Re.get(e);
2365
2413
  if (a?.[r])
2366
2414
  return a[r];
2367
- const n = await Oa({ ...t, alg: r });
2415
+ const n = await Na({ ...t, alg: r });
2368
2416
  return s && Object.freeze(e), a ? a[r] = n : Re.set(e, { [r]: n }), n;
2369
- }, La = (e, t) => {
2417
+ }, Ua = (e, t) => {
2370
2418
  Re ||= /* @__PURE__ */ new WeakMap();
2371
2419
  let r = Re.get(e);
2372
2420
  if (r?.[t])
@@ -2462,7 +2510,7 @@ const ir = async (e, t, r, s = !1) => {
2462
2510
  if (!n)
2463
2511
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
2464
2512
  return r ? r[t] = n : Re.set(e, { [t]: n }), n;
2465
- }, Ua = async (e, t) => {
2513
+ }, Fa = async (e, t) => {
2466
2514
  if (e instanceof Uint8Array || Hr(e))
2467
2515
  return e;
2468
2516
  if (Kr(e)) {
@@ -2470,7 +2518,7 @@ const ir = async (e, t, r, s = !1) => {
2470
2518
  return e.export();
2471
2519
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
2472
2520
  try {
2473
- return La(e, t);
2521
+ return Ua(e, t);
2474
2522
  } catch (s) {
2475
2523
  if (s instanceof TypeError)
2476
2524
  throw s;
@@ -2524,10 +2572,10 @@ const ir = async (e, t, r, s = !1) => {
2524
2572
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
2525
2573
  }
2526
2574
  return !0;
2527
- }, Fa = (e, t, r) => {
2575
+ }, Ha = (e, t, r) => {
2528
2576
  if (!(t instanceof Uint8Array)) {
2529
2577
  if (Ut(t)) {
2530
- if (Ma(t) && Ot(e, t, r))
2578
+ if (La(t) && Ot(e, t, r))
2531
2579
  return;
2532
2580
  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');
2533
2581
  }
@@ -2536,17 +2584,17 @@ const ir = async (e, t, r, s = !1) => {
2536
2584
  if (t.type !== "secret")
2537
2585
  throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
2538
2586
  }
2539
- }, Ha = (e, t, r) => {
2587
+ }, Ka = (e, t, r) => {
2540
2588
  if (Ut(t))
2541
2589
  switch (r) {
2542
2590
  case "decrypt":
2543
2591
  case "sign":
2544
- if (xa(t) && Ot(e, t, r))
2592
+ if (Da(t) && Ot(e, t, r))
2545
2593
  return;
2546
2594
  throw new TypeError("JSON Web Key for this operation be a private JWK");
2547
2595
  case "encrypt":
2548
2596
  case "verify":
2549
- if (Da(t) && Ot(e, t, r))
2597
+ if (Ma(t) && Ot(e, t, r))
2550
2598
  return;
2551
2599
  throw new TypeError("JSON Web Key for this operation be a public JWK");
2552
2600
  }
@@ -2568,9 +2616,9 @@ const ir = async (e, t, r, s = !1) => {
2568
2616
  case "encrypt":
2569
2617
  throw new TypeError(`${_e(t)} instances for asymmetric algorithm encryption must be of type "public"`);
2570
2618
  }
2571
- }, Ka = (e, t, r) => {
2572
- e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? Fa(e, t, r) : Ha(e, t, r);
2573
- }, Ga = (e, t) => {
2619
+ }, Ga = (e, t, r) => {
2620
+ e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? Ha(e, t, r) : Ka(e, t, r);
2621
+ }, Ba = (e, t) => {
2574
2622
  const r = `SHA-${e.slice(-3)}`;
2575
2623
  switch (e) {
2576
2624
  case "HS256":
@@ -2599,24 +2647,24 @@ const ir = async (e, t, r, s = !1) => {
2599
2647
  default:
2600
2648
  throw new ae(`alg ${e} is not supported either by JOSE or your javascript runtime`);
2601
2649
  }
2602
- }, Ba = async (e, t, r) => {
2650
+ }, Wa = async (e, t, r) => {
2603
2651
  if (t instanceof Uint8Array) {
2604
2652
  if (!e.startsWith("HS"))
2605
- throw new TypeError(ba(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2653
+ throw new TypeError(Ea(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2606
2654
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
2607
2655
  }
2608
- return ga(t, e, r), t;
2656
+ return ba(t, e, r), t;
2609
2657
  }, qa = async (e, t, r, s) => {
2610
- const a = await Ba(e, t, "verify");
2611
- Sa(e, a);
2612
- const n = Ga(e, a.algorithm);
2658
+ const a = await Wa(e, t, "verify");
2659
+ va(e, a);
2660
+ const n = Ba(e, a.algorithm);
2613
2661
  try {
2614
2662
  return await crypto.subtle.verify(n, a, r, s);
2615
2663
  } catch {
2616
2664
  return !1;
2617
2665
  }
2618
2666
  };
2619
- async function Wa(e, t, r) {
2667
+ async function ja(e, t, r) {
2620
2668
  if (!De(e))
2621
2669
  throw new L("Flattened JWS must be an object");
2622
2670
  if (e.protected === void 0 && e.header === void 0)
@@ -2637,38 +2685,38 @@ async function Wa(e, t, r) {
2637
2685
  } catch {
2638
2686
  throw new L("JWS Protected Header is invalid");
2639
2687
  }
2640
- if (!Ea(s, e.header))
2688
+ if (!wa(s, e.header))
2641
2689
  throw new L("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
2642
2690
  const a = {
2643
2691
  ...s,
2644
2692
  ...e.header
2645
- }, n = Pa(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2693
+ }, n = $a(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2646
2694
  let i = !0;
2647
2695
  if (n.has("b64") && (i = s.b64, typeof i != "boolean"))
2648
2696
  throw new L('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
2649
2697
  const { alg: o } = a;
2650
2698
  if (typeof o != "string" || !o)
2651
2699
  throw new L('JWS "alg" (Algorithm) Header Parameter missing or invalid');
2652
- const c = r && $a("algorithms", r.algorithms);
2700
+ const c = r && xa("algorithms", r.algorithms);
2653
2701
  if (c && !c.has(o))
2654
- throw new fa('"alg" (Algorithm) Header Parameter value not allowed');
2702
+ throw new ma('"alg" (Algorithm) Header Parameter value not allowed');
2655
2703
  if (i) {
2656
2704
  if (typeof e.payload != "string")
2657
2705
  throw new L("JWS Payload must be a string");
2658
2706
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
2659
2707
  throw new L("JWS Payload must be a string or an Uint8Array instance");
2660
2708
  let f = !1;
2661
- typeof t == "function" && (t = await t(s, e), f = !0), Ka(o, t, "verify");
2662
- const d = ha(Fe.encode(e.protected ?? ""), Fe.encode("."), typeof e.payload == "string" ? Fe.encode(e.payload) : e.payload);
2709
+ typeof t == "function" && (t = await t(s, e), f = !0), Ga(o, t, "verify");
2710
+ const d = fa(Fe.encode(e.protected ?? ""), Fe.encode("."), typeof e.payload == "string" ? Fe.encode(e.payload) : e.payload);
2663
2711
  let u;
2664
2712
  try {
2665
2713
  u = $e(e.signature);
2666
2714
  } catch {
2667
2715
  throw new L("Failed to base64url decode the signature");
2668
2716
  }
2669
- const l = await Ua(t, o);
2717
+ const l = await Fa(t, o);
2670
2718
  if (!await qa(o, l, u, d))
2671
- throw new ma();
2719
+ throw new pa();
2672
2720
  let m;
2673
2721
  if (i)
2674
2722
  try {
@@ -2680,17 +2728,17 @@ async function Wa(e, t, r) {
2680
2728
  const p = { payload: m };
2681
2729
  return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
2682
2730
  }
2683
- async function ja(e, t, r) {
2731
+ async function Va(e, t, r) {
2684
2732
  if (e instanceof Uint8Array && (e = Ce.decode(e)), typeof e != "string")
2685
2733
  throw new L("Compact JWS must be a string or Uint8Array");
2686
2734
  const { 0: s, 1: a, 2: n, length: i } = e.split(".");
2687
2735
  if (i !== 3)
2688
2736
  throw new L("Invalid Compact JWS");
2689
- const o = await Wa({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2737
+ const o = await ja({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2690
2738
  return typeof t == "function" ? { ...c, key: o.key } : c;
2691
2739
  }
2692
- const Va = (e) => Math.floor(e.getTime() / 1e3), qr = 60, Wr = qr * 60, Ft = Wr * 24, Ja = Ft * 7, Qa = Ft * 365.25, Ya = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, or = (e) => {
2693
- const t = Ya.exec(e);
2740
+ const Ja = (e) => Math.floor(e.getTime() / 1e3), Wr = 60, qr = Wr * 60, Ft = qr * 24, Qa = Ft * 7, Ya = Ft * 365.25, za = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, or = (e) => {
2741
+ const t = za.exec(e);
2694
2742
  if (!t || t[4] && t[1])
2695
2743
  throw new TypeError("Invalid time period format");
2696
2744
  const r = parseFloat(t[2]), s = t[3].toLowerCase();
@@ -2708,14 +2756,14 @@ const Va = (e) => Math.floor(e.getTime() / 1e3), qr = 60, Wr = qr * 60, Ft = Wr
2708
2756
  case "min":
2709
2757
  case "mins":
2710
2758
  case "m":
2711
- a = Math.round(r * qr);
2759
+ a = Math.round(r * Wr);
2712
2760
  break;
2713
2761
  case "hour":
2714
2762
  case "hours":
2715
2763
  case "hr":
2716
2764
  case "hrs":
2717
2765
  case "h":
2718
- a = Math.round(r * Wr);
2766
+ a = Math.round(r * qr);
2719
2767
  break;
2720
2768
  case "day":
2721
2769
  case "days":
@@ -2725,15 +2773,15 @@ const Va = (e) => Math.floor(e.getTime() / 1e3), qr = 60, Wr = qr * 60, Ft = Wr
2725
2773
  case "week":
2726
2774
  case "weeks":
2727
2775
  case "w":
2728
- a = Math.round(r * Ja);
2776
+ a = Math.round(r * Qa);
2729
2777
  break;
2730
2778
  default:
2731
- a = Math.round(r * Qa);
2779
+ a = Math.round(r * Ya);
2732
2780
  break;
2733
2781
  }
2734
2782
  return t[1] === "-" || t[4] === "ago" ? -a : a;
2735
- }, cr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, za = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2736
- function Xa(e, t, r = {}) {
2783
+ }, cr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, Xa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2784
+ function Za(e, t, r = {}) {
2737
2785
  let s;
2738
2786
  try {
2739
2787
  s = JSON.parse(Ce.decode(t));
@@ -2753,7 +2801,7 @@ function Xa(e, t, r = {}) {
2753
2801
  throw new z('unexpected "iss" claim value', s, "iss", "check_failed");
2754
2802
  if (o && s.sub !== o)
2755
2803
  throw new z('unexpected "sub" claim value', s, "sub", "check_failed");
2756
- if (c && !za(s.aud, typeof c == "string" ? [c] : c))
2804
+ if (c && !Xa(s.aud, typeof c == "string" ? [c] : c))
2757
2805
  throw new z('unexpected "aud" claim value', s, "aud", "check_failed");
2758
2806
  let u;
2759
2807
  switch (typeof r.clockTolerance) {
@@ -2769,7 +2817,7 @@ function Xa(e, t, r = {}) {
2769
2817
  default:
2770
2818
  throw new TypeError("Invalid clockTolerance option type");
2771
2819
  }
2772
- const { currentDate: l } = r, m = Va(l || /* @__PURE__ */ new Date());
2820
+ const { currentDate: l } = r, m = Ja(l || /* @__PURE__ */ new Date());
2773
2821
  if ((s.iat !== void 0 || f) && typeof s.iat != "number")
2774
2822
  throw new z('"iat" claim must be a number', s, "iat", "invalid");
2775
2823
  if (s.nbf !== void 0) {
@@ -2793,14 +2841,14 @@ function Xa(e, t, r = {}) {
2793
2841
  }
2794
2842
  return s;
2795
2843
  }
2796
- async function Za(e, t, r) {
2797
- const s = await ja(e, t, r);
2844
+ async function en(e, t, r) {
2845
+ const s = await Va(e, t, r);
2798
2846
  if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
2799
2847
  throw new re("JWTs MUST NOT use unencoded payload");
2800
- const a = { payload: Xa(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2848
+ const a = { payload: Za(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2801
2849
  return typeof t == "function" ? { ...a, key: s.key } : a;
2802
2850
  }
2803
- function en(e) {
2851
+ function tn(e) {
2804
2852
  if (typeof e != "string")
2805
2853
  throw new re("JWTs must use Compact JWS serialization, JWT must be a string");
2806
2854
  const { 1: t, length: r } = e.split(".");
@@ -2828,65 +2876,65 @@ function en(e) {
2828
2876
  }
2829
2877
  const Me = async (e) => {
2830
2878
  try {
2831
- const t = F.ALG, r = await Na(da, t);
2832
- return await Za(e, r, {
2879
+ const t = F.ALG, r = await Pa(ha, t);
2880
+ return await en(e, r, {
2833
2881
  issuer: F.ISSUER
2834
2882
  });
2835
2883
  } catch {
2836
2884
  return;
2837
2885
  }
2838
- }, tn = (e) => {
2886
+ }, rn = (e) => {
2839
2887
  try {
2840
- return en(e);
2888
+ return tn(e);
2841
2889
  } catch {
2842
2890
  return;
2843
2891
  }
2844
2892
  }, D = [];
2845
2893
  for (let e = 0; e < 256; ++e)
2846
2894
  D.push((e + 256).toString(16).slice(1));
2847
- function rn(e, t = 0) {
2895
+ function sn(e, t = 0) {
2848
2896
  return (D[e[t + 0]] + D[e[t + 1]] + D[e[t + 2]] + D[e[t + 3]] + "-" + D[e[t + 4]] + D[e[t + 5]] + "-" + D[e[t + 6]] + D[e[t + 7]] + "-" + D[e[t + 8]] + D[e[t + 9]] + "-" + D[e[t + 10]] + D[e[t + 11]] + D[e[t + 12]] + D[e[t + 13]] + D[e[t + 14]] + D[e[t + 15]]).toLowerCase();
2849
2897
  }
2850
2898
  let ht;
2851
- const sn = new Uint8Array(16);
2852
- function an() {
2899
+ const an = new Uint8Array(16);
2900
+ function nn() {
2853
2901
  if (!ht) {
2854
2902
  if (typeof crypto > "u" || !crypto.getRandomValues)
2855
2903
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2856
2904
  ht = crypto.getRandomValues.bind(crypto);
2857
2905
  }
2858
- return ht(sn);
2906
+ return ht(an);
2859
2907
  }
2860
- const nn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), lr = { randomUUID: nn };
2908
+ const on = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), lr = { randomUUID: on };
2861
2909
  function ur(e, t, r) {
2862
2910
  if (lr.randomUUID && !e)
2863
2911
  return lr.randomUUID();
2864
2912
  e = e || {};
2865
- const s = e.random ?? e.rng?.() ?? an();
2913
+ const s = e.random ?? e.rng?.() ?? nn();
2866
2914
  if (s.length < 16)
2867
2915
  throw new Error("Random bytes length must be >= 16");
2868
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, rn(s);
2916
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, sn(s);
2869
2917
  }
2870
- const dr = globalThis.crypto, on = (e) => `${ur()}${ur()}`.slice(0, e), cn = (e) => btoa(
2918
+ const dr = globalThis.crypto, cn = (e) => `${ur()}${ur()}`.slice(0, e), ln = (e) => btoa(
2871
2919
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
2872
2920
  );
2873
- async function ln(e) {
2921
+ async function un(e) {
2874
2922
  if (!dr.subtle)
2875
2923
  throw new Error(
2876
2924
  "crypto.subtle is available only in secure contexts (HTTPS)."
2877
2925
  );
2878
2926
  const t = new TextEncoder().encode(e), r = await dr.subtle.digest("SHA-256", t);
2879
- return cn(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2927
+ return ln(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2880
2928
  }
2881
- async function un(e) {
2882
- const r = on(43), s = await ln(r);
2929
+ async function dn(e) {
2930
+ const r = cn(43), s = await un(r);
2883
2931
  return {
2884
2932
  code_verifier: r,
2885
2933
  code_challenge: s
2886
2934
  };
2887
2935
  }
2888
2936
  const jr = xt(null);
2889
- var dn = Object.defineProperty, hn = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t, r) => hn(e, typeof t != "symbol" ? t + "" : t, r);
2937
+ var hn = Object.defineProperty, fn = (e, t, r) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t, r) => fn(e, typeof t != "symbol" ? t + "" : t, r);
2890
2938
  /*!
2891
2939
  @versini/auth-provider v8.0.5
2892
2940
  © 2025 gizmette.com
@@ -2914,9 +2962,9 @@ function tt(e) {
2914
2962
  return n;
2915
2963
  }
2916
2964
  function Ht() {
2917
- return fn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2965
+ return mn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2918
2966
  }
2919
- const fn = {
2967
+ const mn = {
2920
2968
  stubThis: (e) => e
2921
2969
  };
2922
2970
  function Vr(e) {
@@ -2948,7 +2996,7 @@ let U = class extends Error {
2948
2996
  }), this.name = a ?? s.name, this.code = r;
2949
2997
  }
2950
2998
  };
2951
- function mn({ error: e, options: t }) {
2999
+ function pn({ error: e, options: t }) {
2952
3000
  const { publicKey: r } = t;
2953
3001
  if (!r)
2954
3002
  throw Error("options was missing required publicKey property");
@@ -3034,7 +3082,7 @@ function mn({ error: e, options: t }) {
3034
3082
  }
3035
3083
  return e;
3036
3084
  }
3037
- class pn {
3085
+ class yn {
3038
3086
  constructor() {
3039
3087
  Object.defineProperty(this, "controller", {
3040
3088
  enumerable: !0,
@@ -3058,12 +3106,12 @@ class pn {
3058
3106
  }
3059
3107
  }
3060
3108
  }
3061
- const Qr = new pn(), yn = ["cross-platform", "platform"];
3109
+ const Qr = new yn(), gn = ["cross-platform", "platform"];
3062
3110
  function Yr(e) {
3063
- if (e && !(yn.indexOf(e) < 0))
3111
+ if (e && !(gn.indexOf(e) < 0))
3064
3112
  return e;
3065
3113
  }
3066
- async function gn(e) {
3114
+ async function bn(e) {
3067
3115
  !e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
3068
3116
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
3069
3117
  if (!Ht())
@@ -3082,7 +3130,7 @@ async function gn(e) {
3082
3130
  try {
3083
3131
  n = await navigator.credentials.create(a);
3084
3132
  } catch (p) {
3085
- throw mn({ error: p, options: a });
3133
+ throw pn({ error: p, options: a });
3086
3134
  }
3087
3135
  if (!n)
3088
3136
  throw new Error("Registration was not completed");
@@ -3131,7 +3179,7 @@ function mt(e, t) {
3131
3179
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
3132
3180
  `, t);
3133
3181
  }
3134
- function bn() {
3182
+ function En() {
3135
3183
  if (!Ht())
3136
3184
  return pt.stubThis(new Promise((t) => t(!1)));
3137
3185
  const e = globalThis.PublicKeyCredential;
@@ -3140,7 +3188,7 @@ function bn() {
3140
3188
  const pt = {
3141
3189
  stubThis: (e) => e
3142
3190
  };
3143
- function En({ error: e, options: t }) {
3191
+ function wn({ error: e, options: t }) {
3144
3192
  const { publicKey: r } = t;
3145
3193
  if (!r)
3146
3194
  throw Error("options was missing required publicKey property");
@@ -3181,7 +3229,7 @@ function En({ error: e, options: t }) {
3181
3229
  }
3182
3230
  return e;
3183
3231
  }
3184
- async function wn(e) {
3232
+ async function Sn(e) {
3185
3233
  !e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
3186
3234
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
3187
3235
  if (!Ht())
@@ -3194,7 +3242,7 @@ async function wn(e) {
3194
3242
  allowCredentials: a
3195
3243
  }, i = {};
3196
3244
  if (r) {
3197
- if (!await bn())
3245
+ if (!await En())
3198
3246
  throw Error("Browser does not support WebAuthn autofill");
3199
3247
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
3200
3248
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
@@ -3205,7 +3253,7 @@ async function wn(e) {
3205
3253
  try {
3206
3254
  o = await navigator.credentials.get(i);
3207
3255
  } catch (m) {
3208
- throw En({ error: m, options: i });
3256
+ throw wn({ error: m, options: i });
3209
3257
  }
3210
3258
  if (!o)
3211
3259
  throw new Error("Authentication was not completed");
@@ -3233,18 +3281,18 @@ const hr = (e, t) => {
3233
3281
  typeof t == "function" ? t() : t
3234
3282
  );
3235
3283
  window.localStorage.setItem(e, r), zr(e, r);
3236
- }, Sn = (e) => {
3284
+ }, vn = (e) => {
3237
3285
  window.localStorage.removeItem(e), zr(e, null);
3238
- }, fr = (e) => window.localStorage.getItem(e), vn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3286
+ }, fr = (e) => window.localStorage.getItem(e), Tn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3239
3287
  function He({
3240
3288
  key: e,
3241
3289
  initialValue: t
3242
3290
  }) {
3243
- const r = Is(vn, () => fr(e)), s = Y(
3291
+ const r = _s(Tn, () => fr(e)), s = Y(
3244
3292
  (i) => {
3245
3293
  try {
3246
3294
  const o = typeof i == "function" ? i(JSON.parse(r)) : i;
3247
- o == null ? Sn(e) : hr(e, o);
3295
+ o == null ? vn(e) : hr(e, o);
3248
3296
  } catch (o) {
3249
3297
  console.warn(o);
3250
3298
  }
@@ -3255,7 +3303,7 @@ function He({
3255
3303
  }, [t, s]), n = Y(() => {
3256
3304
  s(null);
3257
3305
  }, [s]);
3258
- return q(() => {
3306
+ return W(() => {
3259
3307
  try {
3260
3308
  fr(e) === null && typeof t < "u" && hr(e, t);
3261
3309
  } catch (i) {
@@ -3266,30 +3314,30 @@ function He({
3266
3314
  const M = [];
3267
3315
  for (let e = 0; e < 256; ++e)
3268
3316
  M.push((e + 256).toString(16).slice(1));
3269
- function Tn(e, t = 0) {
3317
+ function An(e, t = 0) {
3270
3318
  return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
3271
3319
  }
3272
3320
  let yt;
3273
- const An = new Uint8Array(16);
3274
- function In() {
3321
+ const In = new Uint8Array(16);
3322
+ function _n() {
3275
3323
  if (!yt) {
3276
3324
  if (typeof crypto > "u" || !crypto.getRandomValues)
3277
3325
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3278
3326
  yt = crypto.getRandomValues.bind(crypto);
3279
3327
  }
3280
- return yt(An);
3328
+ return yt(In);
3281
3329
  }
3282
- const _n = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mr = { randomUUID: _n };
3330
+ const Rn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mr = { randomUUID: Rn };
3283
3331
  function gt(e, t, r) {
3284
3332
  if (mr.randomUUID && !e)
3285
3333
  return mr.randomUUID();
3286
3334
  e = e || {};
3287
- const s = e.random ?? e.rng?.() ?? In();
3335
+ const s = e.random ?? e.rng?.() ?? _n();
3288
3336
  if (s.length < 16)
3289
3337
  throw new Error("Random bytes length must be >= 16");
3290
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Tn(s);
3338
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, An(s);
3291
3339
  }
3292
- const ve = "Your session has expired. For your security, please log in again to continue.", Rn = "Your session has been successfully terminated.", bt = "Login failed. Please try again.", Cn = "Error getting access token, please re-authenticate.", kn = "You forgot to wrap your component in <AuthProvider>.", Ke = "@@auth@@", Ne = "LOADING", We = "LOGIN", Xr = "LOGOUT", Le = "success", ee = "failure", Zr = "include", es = "POST", ts = "application/json", Ge = {
3340
+ const ve = "Your session has expired. For your security, please log in again to continue.", Cn = "Your session has been successfully terminated.", bt = "Login failed. Please try again.", kn = "Error getting access token, please re-authenticate.", On = "You forgot to wrap your component in <AuthProvider>.", Ke = "@@auth@@", Ne = "LOADING", qe = "LOGIN", Xr = "LOGOUT", Le = "success", ee = "failure", Zr = "include", es = "POST", ts = "application/json", Ge = {
3293
3341
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
3294
3342
  $clientId: String!,
3295
3343
  $username: String!,
@@ -3444,21 +3492,21 @@ const ve = "Your session has expired. For your security, please log in again to
3444
3492
  } catch (a) {
3445
3493
  return console.error(a), { status: ee, data: [] };
3446
3494
  }
3447
- }, On = process.env.NODE_ENV === "production", Nn = !On, rs = {
3495
+ }, Nn = process.env.NODE_ENV === "production", Pn = !Nn, rs = {
3448
3496
  isLoading: !0,
3449
3497
  isAuthenticated: !1,
3450
3498
  user: void 0,
3451
3499
  logoutReason: "",
3452
3500
  debug: !1,
3453
3501
  authenticationType: ""
3454
- }, Pn = (e) => {
3502
+ }, $n = (e) => {
3455
3503
  try {
3456
- const t = tn(e);
3504
+ const t = rn(e);
3457
3505
  return t ? t[F.USER_ID_KEY] : "";
3458
3506
  } catch {
3459
3507
  return "";
3460
3508
  }
3461
- }, $n = async ({
3509
+ }, xn = async ({
3462
3510
  userId: e,
3463
3511
  clientId: t,
3464
3512
  domain: r,
@@ -3483,7 +3531,7 @@ const ve = "Your session has expired. For your security, please log in again to
3483
3531
  status: ee
3484
3532
  };
3485
3533
  }
3486
- }, xn = async ({
3534
+ }, Dn = async ({
3487
3535
  username: e,
3488
3536
  password: t,
3489
3537
  clientId: r,
@@ -3528,7 +3576,7 @@ const ve = "Your session has expired. For your security, please log in again to
3528
3576
  status: !1
3529
3577
  };
3530
3578
  }
3531
- }, Dn = async ({
3579
+ }, Mn = async ({
3532
3580
  nonce: e,
3533
3581
  clientId: t,
3534
3582
  code_challenge: r,
@@ -3558,7 +3606,7 @@ const ve = "Your session has expired. For your security, please log in again to
3558
3606
  data: ""
3559
3607
  };
3560
3608
  }
3561
- }, Mn = async ({
3609
+ }, Ln = async ({
3562
3610
  clientId: e,
3563
3611
  userId: t,
3564
3612
  nonce: r,
@@ -3595,7 +3643,7 @@ const ve = "Your session has expired. For your security, please log in again to
3595
3643
  };
3596
3644
  }
3597
3645
  };
3598
- class Ln {
3646
+ class Un {
3599
3647
  constructor(t = null, r = null) {
3600
3648
  ft(this, "refreshTokenPromise", null), ft(this, "accessToken"), ft(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
3601
3649
  }
@@ -3628,7 +3676,7 @@ class Ln {
3628
3676
  }) {
3629
3677
  const i = await Me(this.refreshToken);
3630
3678
  if (i && i.payload[F.USER_ID_KEY] !== "") {
3631
- const o = await Mn({
3679
+ const o = await Ln({
3632
3680
  endpoint: t,
3633
3681
  clientId: r,
3634
3682
  userId: s,
@@ -3651,7 +3699,7 @@ class Ln {
3651
3699
  }
3652
3700
  }
3653
3701
  const Ie = () => {
3654
- throw new Error(kn);
3702
+ throw new Error(On);
3655
3703
  }, ss = xt({
3656
3704
  isAuthenticated: !1,
3657
3705
  isLoading: !1,
@@ -3663,21 +3711,21 @@ const Ie = () => {
3663
3711
  loginWithPasskey: Ie,
3664
3712
  logoutReason: "",
3665
3713
  authenticationType: ""
3666
- }), Un = () => ({
3714
+ }), Fn = () => ({
3667
3715
  ...at(ss)
3668
- }), Fn = (e) => Y(
3716
+ }), Hn = (e) => Y(
3669
3717
  (...t) => {
3670
3718
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
3671
3719
  },
3672
3720
  [e]
3673
- ), Hn = ie.createContext({
3721
+ ), Kn = ie.createContext({
3674
3722
  state: rs,
3675
3723
  dispatch: () => {
3676
3724
  }
3677
- }), Kn = (e, t) => t?.type === Ne ? {
3725
+ }), Gn = (e, t) => t?.type === Ne ? {
3678
3726
  ...e,
3679
3727
  isLoading: t.payload.isLoading
3680
- } : t?.type === We ? {
3728
+ } : t?.type === qe ? {
3681
3729
  ...e,
3682
3730
  isLoading: !1,
3683
3731
  isAuthenticated: !0,
@@ -3691,8 +3739,8 @@ const Ie = () => {
3691
3739
  user: void 0,
3692
3740
  authenticationType: "",
3693
3741
  logoutReason: t.payload.logoutReason
3694
- } : e, Gn = ({ children: e }) => {
3695
- const t = Un();
3742
+ } : e, Bn = ({ children: e }) => {
3743
+ const t = Fn();
3696
3744
  return /* @__PURE__ */ h(jr.Provider, { value: t, children: e });
3697
3745
  }, pr = ({
3698
3746
  children: e,
@@ -3700,12 +3748,12 @@ const Ie = () => {
3700
3748
  clientId: r,
3701
3749
  domain: s = "",
3702
3750
  debug: a = !1,
3703
- endpoint: n = Nn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3751
+ endpoint: n = Pn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3704
3752
  }) => {
3705
- const [i, o] = Ir(Kn, {
3753
+ const [i, o] = Ir(Gn, {
3706
3754
  ...rs,
3707
3755
  debug: a
3708
- }), c = Fn(a), f = j(!1), [d, u, , l] = He({
3756
+ }), c = Hn(a), f = j(!1), [d, u, , l] = He({
3709
3757
  key: `${Ke}::${r}::@@user@@`
3710
3758
  }), [m, p, , g] = He({
3711
3759
  key: `${Ke}::${r}::@@access@@`
@@ -3715,7 +3763,7 @@ const Ie = () => {
3715
3763
  }
3716
3764
  ), [A, K, , R] = He({
3717
3765
  key: `${Ke}::${r}::@@nonce@@`
3718
- }), Q = new Ln(m, b), C = Y(() => {
3766
+ }), Q = new Un(m, b), C = Y(() => {
3719
3767
  c("removeLocalStorage: removing local storage"), l(), g(), k(), R();
3720
3768
  }, [
3721
3769
  g,
@@ -3739,10 +3787,10 @@ const Ie = () => {
3739
3787
  ), x = Y(
3740
3788
  async (w) => {
3741
3789
  c("invalidateAndLogout: invalidating and logging out");
3742
- const { user: T } = i, S = T?.userId || Pn(d);
3790
+ const { user: T } = i, S = T?.userId || $n(d);
3743
3791
  S || c(
3744
3792
  "invalidateAndLogout: user cannot be identified, logging out without userId"
3745
- ), await $n({
3793
+ ), await xn({
3746
3794
  userId: S,
3747
3795
  clientId: r,
3748
3796
  domain: s,
@@ -3760,13 +3808,13 @@ const Ie = () => {
3760
3808
  n
3761
3809
  ]
3762
3810
  );
3763
- q(() => {
3811
+ W(() => {
3764
3812
  if (!f.current)
3765
3813
  return i.isLoading && d !== null ? (async () => {
3766
3814
  try {
3767
3815
  const w = await Me(d);
3768
3816
  w && w.payload[F.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
3769
- type: We,
3817
+ type: qe,
3770
3818
  payload: {
3771
3819
  authenticationType: w.payload[F.AUTH_TYPE_KEY],
3772
3820
  user: {
@@ -3789,14 +3837,14 @@ const Ie = () => {
3789
3837
  o({ type: Ne, payload: { isLoading: !0 } }), C();
3790
3838
  const S = gt();
3791
3839
  K(S), c("login: Logging in with password");
3792
- const { code_verifier: le, code_challenge: ue } = await un(), Jt = await Dn({
3840
+ const { code_verifier: le, code_challenge: ue } = await dn(), Jt = await Mn({
3793
3841
  endpoint: n,
3794
3842
  nonce: S,
3795
3843
  clientId: r,
3796
3844
  code_challenge: ue
3797
3845
  });
3798
3846
  if (Jt.status) {
3799
- const we = await xn({
3847
+ const we = await Dn({
3800
3848
  endpoint: n,
3801
3849
  username: w,
3802
3850
  password: T,
@@ -3810,7 +3858,7 @@ const Ie = () => {
3810
3858
  ua: navigator.userAgent
3811
3859
  });
3812
3860
  return we.status ? (u(we.idToken), p(we.accessToken), E(we.refreshToken), o({
3813
- type: We,
3861
+ type: qe,
3814
3862
  payload: {
3815
3863
  authenticationType: Pe.CODE,
3816
3864
  user: {
@@ -3823,7 +3871,7 @@ const Ie = () => {
3823
3871
  }
3824
3872
  return !1;
3825
3873
  }, I = async (w) => {
3826
- w?.preventDefault(), await x(Rn);
3874
+ w?.preventDefault(), await x(Cn);
3827
3875
  }, N = async () => {
3828
3876
  const { isAuthenticated: w, user: T } = i;
3829
3877
  try {
@@ -3852,7 +3900,7 @@ const Ie = () => {
3852
3900
  } catch {
3853
3901
  return c(
3854
3902
  "getAccessToken: exception occurred, invalidating and logging out"
3855
- ), await x(Cn), "";
3903
+ ), await x(kn), "";
3856
3904
  }
3857
3905
  }, V = () => i.isAuthenticated && d ? d : "", ce = async () => {
3858
3906
  const { user: w } = i;
@@ -3869,7 +3917,7 @@ const Ie = () => {
3869
3917
  });
3870
3918
  if (T.status)
3871
3919
  try {
3872
- const S = await gn({
3920
+ const S = await bn({
3873
3921
  optionsJSON: T.data
3874
3922
  });
3875
3923
  return T = await Ae({
@@ -3916,7 +3964,7 @@ const Ie = () => {
3916
3964
  });
3917
3965
  if (S.status)
3918
3966
  try {
3919
- const le = await wn({
3967
+ const le = await Sn({
3920
3968
  optionsJSON: S.data
3921
3969
  });
3922
3970
  return S = await Ae({
@@ -3934,7 +3982,7 @@ const Ie = () => {
3934
3982
  ua: navigator.userAgent
3935
3983
  }
3936
3984
  }), S.data.status === Le ? (u(S.data.idToken), p(S.data.accessToken), E(S.data.refreshToken), o({
3937
- type: We,
3985
+ type: qe,
3938
3986
  payload: {
3939
3987
  authenticationType: Pe.PASSKEY,
3940
3988
  user: {
@@ -3962,7 +4010,7 @@ const Ie = () => {
3962
4010
  }
3963
4011
  return !1;
3964
4012
  };
3965
- return /* @__PURE__ */ h(Hn.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
4013
+ return /* @__PURE__ */ h(Kn.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
3966
4014
  ss.Provider,
3967
4015
  {
3968
4016
  value: {
@@ -3974,7 +4022,7 @@ const Ie = () => {
3974
4022
  registeringForPasskey: ce,
3975
4023
  loginWithPasskey: Ee
3976
4024
  },
3977
- children: /* @__PURE__ */ h(Gn, { children: e })
4025
+ children: /* @__PURE__ */ h(Bn, { children: e })
3978
4026
  }
3979
4027
  ) });
3980
4028
  };
@@ -3996,7 +4044,7 @@ const as = () => {
3996
4044
  if (!e)
3997
4045
  throw new Error("useAuth must be used within an AuthHookProvider");
3998
4046
  return e;
3999
- }, Ko = "I'm having trouble right now. Please try again later.", Go = "action-search", Bo = "action-sort", qo = "action-toggle-prompt", Wo = "action-reset-prompt", ns = "sassy-saint-", jo = "search", Vo = "sort", Jo = "sort-timestamp", Qo = "sort-token-usage", Yo = "sort-memory-direction", zo = "sort-memory-column", Xo = "private-disclosure", Zo = "reasoning-disclosure", is = "service-worker", yr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", ec = 10, tc = 30, rc = "av-prompt", sc = "av-prompt-editable", ac = "size-5 sm:size-4", nc = 30, ic = 15, oc = 130, cc = 160, lc = 16, uc = 24, dc = 76;
4047
+ }, Bo = "I'm having trouble right now. Please try again later.", Wo = "action-search", qo = "action-sort", jo = "action-toggle-prompt", Vo = "action-reset-prompt", ns = "sassy-saint-", Jo = "search", Qo = "sort", Yo = "sort-timestamp", zo = "sort-token-usage", Xo = "sort-memory-direction", Zo = "sort-memory-column", ec = "private-disclosure", tc = "reasoning-disclosure", is = "service-worker", yr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", rc = 10, sc = 30, ac = "av-prompt", nc = "av-prompt-editable", ic = "size-5 sm:size-4", oc = 30, cc = 15, lc = 130, uc = 160, dc = 16, hc = 24, fc = 76, mc = 76;
4000
4048
  let Et = null, se = !1;
4001
4049
  typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
4002
4050
  se && (se = !1, window.location.reload());
@@ -4010,7 +4058,7 @@ function Nt() {
4010
4058
  );
4011
4059
  return e === null ? !1 : e === "true";
4012
4060
  }
4013
- function Bn(e) {
4061
+ function Wn(e) {
4014
4062
  localStorage.setItem(
4015
4063
  ns + is,
4016
4064
  e.toString()
@@ -4046,8 +4094,8 @@ async function qn() {
4046
4094
  return console.error("[SW] Service worker un-registration failed:", e), !1;
4047
4095
  }
4048
4096
  }
4049
- async function hc(e) {
4050
- if (Bn(e), e) {
4097
+ async function pc(e) {
4098
+ if (Wn(e), e) {
4051
4099
  se = !0;
4052
4100
  try {
4053
4101
  sessionStorage.setItem("sw-toggle-pending", "enabled");
@@ -4068,14 +4116,14 @@ async function hc(e) {
4068
4116
  } catch {
4069
4117
  }
4070
4118
  try {
4071
- Kt() && await Wn();
4119
+ Kt() && await jn();
4072
4120
  } catch (t) {
4073
4121
  console.warn("[SW] Failed to invalidate cache:", t);
4074
4122
  }
4075
4123
  await qn(), window.location.reload();
4076
4124
  }
4077
4125
  }
4078
- async function Wn() {
4126
+ async function jn() {
4079
4127
  try {
4080
4128
  if ("caches" in window) {
4081
4129
  const e = await caches.keys();
@@ -4101,7 +4149,7 @@ async function Wn() {
4101
4149
  function wt() {
4102
4150
  return "unknown";
4103
4151
  }
4104
- async function fc(e = {}) {
4152
+ async function yc(e = {}) {
4105
4153
  const { urlLimitPerCache: t } = e;
4106
4154
  if (!("caches" in window))
4107
4155
  return { version: wt(), caches: [], totalItems: 0 };
@@ -4128,26 +4176,26 @@ async function fc(e = {}) {
4128
4176
  return console.warn("[SW] getCacheInfo failed:", r), { version: wt(), caches: [], totalItems: 0 };
4129
4177
  }
4130
4178
  }
4131
- const mc = "user", pc = "assistant", yc = "data", cs = "OpenAI", jn = "Anthropic", Vn = "Google", Jn = "Perplexity", gc = cs, Qn = "claude-sonnet-4", Yn = "claude-3", zn = "gpt-", Xn = "o3", Zn = "o4", ei = "gemini", ti = "sonar", ri = {
4132
- [jn]: [
4133
- Qn,
4134
- Yn
4179
+ const gc = "user", bc = "assistant", Ec = "data", cs = "OpenAI", Vn = "Anthropic", Jn = "Google", Qn = "Perplexity", wc = cs, Yn = "claude-sonnet-4", zn = "claude-3", Xn = "gpt-", Zn = "o3", ei = "o4", ti = "gemini", ri = "sonar", si = {
4180
+ [Vn]: [
4181
+ Yn,
4182
+ zn
4135
4183
  ],
4136
4184
  [cs]: [
4137
- zn,
4138
4185
  Xn,
4139
- Zn
4186
+ Zn,
4187
+ ei
4140
4188
  ],
4141
- [Vn]: [ei],
4142
- [Jn]: [ti]
4143
- }, bc = "x-callisto-chat-id", Ec = (e) => {
4189
+ [Jn]: [ti],
4190
+ [Qn]: [ri]
4191
+ }, Sc = "x-callisto-chat-id", vc = (e) => {
4144
4192
  for (const [t, r] of Object.entries(
4145
- ri
4193
+ si
4146
4194
  ))
4147
4195
  if (r.some((s) => e.startsWith(s)))
4148
4196
  return t;
4149
4197
  return null;
4150
- }, wc = "timestamp", Sc = "tokenUsage", O = "Callisto", vc = {
4198
+ }, Tc = "timestamp", Ac = "tokenUsage", O = "Callisto", Ic = {
4151
4199
  TOOL: {
4152
4200
  MEMORIES: "getUserMemories"
4153
4201
  },
@@ -4156,13 +4204,13 @@ const mc = "user", pc = "assistant", yc = "data", cs = "OpenAI", jn = "Anthropic
4156
4204
  REASONING: "addon:reasoning"
4157
4205
  }
4158
4206
  };
4159
- function si(e) {
4207
+ function ai(e) {
4160
4208
  return e ? new Set(e) : null;
4161
4209
  }
4162
- function ai(e, t, r) {
4210
+ function ni(e, t, r) {
4163
4211
  if (!t || Array.isArray(t) && t.length === 0)
4164
4212
  return !0;
4165
- const s = e instanceof Set ? e : si(e);
4213
+ const s = e instanceof Set ? e : ai(e);
4166
4214
  return !s || s.size === 0 ? !1 : typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a));
4167
4215
  }
4168
4216
  const B = {
@@ -4385,12 +4433,12 @@ const B = {
4385
4433
  DELETE_MEMORIES: {
4386
4434
  schema: B.DELETE_MEMORIES
4387
4435
  }
4388
- }, ni = process.env.PUBLIC_SASSY_API_SERVER_URL, ke = async ({
4436
+ }, ii = process.env.PUBLIC_SASSY_API_SERVER_URL, ke = async ({
4389
4437
  query: e,
4390
4438
  data: t,
4391
4439
  headers: r = {},
4392
4440
  ...s
4393
- }) => await fetch(`${ni}/graphql`, {
4441
+ }) => await fetch(`${ii}/graphql`, {
4394
4442
  method: "POST",
4395
4443
  credentials: "include",
4396
4444
  headers: {
@@ -4403,7 +4451,7 @@ const B = {
4403
4451
  variables: t
4404
4452
  }),
4405
4453
  ...s
4406
- }), ii = async (e) => {
4454
+ }), oi = async (e) => {
4407
4455
  const t = e.type?.data ? e.type.data(e.params) : e.params;
4408
4456
  try {
4409
4457
  let r;
@@ -4433,13 +4481,13 @@ const B = {
4433
4481
  } catch (r) {
4434
4482
  return console.error(r), { status: 500, data: [] };
4435
4483
  }
4436
- }, Tc = async ({
4484
+ }, _c = async ({
4437
4485
  provider: e,
4438
4486
  accessToken: t,
4439
4487
  username: r
4440
4488
  }) => {
4441
4489
  try {
4442
- await ii({
4490
+ await oi({
4443
4491
  accessToken: t,
4444
4492
  type: te.SET_USER_PREFERENCES,
4445
4493
  params: {
@@ -4457,13 +4505,13 @@ const B = {
4457
4505
  PREFERENCES: "preferences",
4458
4506
  USAGE: "usage",
4459
4507
  USER_MEMORIES: "userMemories"
4460
- }, Ac = () => ye({
4508
+ }, Rc = () => ye({
4461
4509
  queryKey: [oe.CAPABILITIES],
4462
4510
  queryFn: async () => await be({
4463
4511
  type: te.GET_SERVER_CAPABILITIES,
4464
4512
  noAuth: !0
4465
4513
  })
4466
- }), Ic = () => ye({
4514
+ }), Cc = () => ye({
4467
4515
  queryKey: [oe.CHANGELOGS],
4468
4516
  queryFn: async () => await be({
4469
4517
  type: te.GET_CHANGELOGS,
@@ -4472,7 +4520,7 @@ const B = {
4472
4520
  client: !0
4473
4521
  }
4474
4522
  })
4475
- }), oi = ({
4523
+ }), ci = ({
4476
4524
  user: e,
4477
4525
  getAccessToken: t
4478
4526
  }) => ye({
@@ -4484,7 +4532,7 @@ const B = {
4484
4532
  type: te.GET_USER_PREFERENCES,
4485
4533
  getAccessToken: t
4486
4534
  })
4487
- }), _c = ({
4535
+ }), kc = ({
4488
4536
  user: e,
4489
4537
  getAccessToken: t
4490
4538
  }) => ye({
@@ -4496,7 +4544,7 @@ const B = {
4496
4544
  type: te.GET_CHATS_STATS,
4497
4545
  getAccessToken: t
4498
4546
  })
4499
- }), Rc = ({
4547
+ }), Oc = ({
4500
4548
  user: e,
4501
4549
  searchString: t,
4502
4550
  sortDirection: r,
@@ -4520,7 +4568,7 @@ const B = {
4520
4568
  type: te.GET_CHATS,
4521
4569
  getAccessToken: a
4522
4570
  })
4523
- }), Cc = ({
4571
+ }), Nc = ({
4524
4572
  user: e,
4525
4573
  month: t,
4526
4574
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4538,7 +4586,7 @@ const B = {
4538
4586
  type: te.GET_USAGE,
4539
4587
  getAccessToken: s
4540
4588
  })
4541
- }), kc = ({
4589
+ }), Pc = ({
4542
4590
  user: e,
4543
4591
  query: t,
4544
4592
  getAccessToken: r,
@@ -4551,7 +4599,7 @@ const B = {
4551
4599
  type: te.GET_USER_MEMORIES,
4552
4600
  getAccessToken: r
4553
4601
  })
4554
- }), Oc = ({
4602
+ }), $c = ({
4555
4603
  getAccessToken: e
4556
4604
  }) => {
4557
4605
  const t = nt();
@@ -4575,7 +4623,7 @@ const B = {
4575
4623
  });
4576
4624
  }
4577
4625
  });
4578
- }, Nc = ({
4626
+ }, xc = ({
4579
4627
  getAccessToken: e
4580
4628
  }) => {
4581
4629
  const t = nt();
@@ -4638,7 +4686,7 @@ const B = {
4638
4686
  capabilities: /* @__PURE__ */ new Set(),
4639
4687
  version: null,
4640
4688
  status: "idle"
4641
- }, ci = ({
4689
+ }, li = ({
4642
4690
  user: e,
4643
4691
  getAccessToken: t,
4644
4692
  children: r
@@ -4664,19 +4712,19 @@ const B = {
4664
4712
  }
4665
4713
  return !1;
4666
4714
  }, [n]);
4667
- q(() => {
4715
+ W(() => {
4668
4716
  s.status === "idle" && i();
4669
4717
  }, [i, s.status]);
4670
- const o = oi({ user: e, getAccessToken: t });
4671
- q(() => {
4718
+ const o = ci({ user: e, getAccessToken: t });
4719
+ W(() => {
4672
4720
  o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
4673
- }, [o.isLoading, s.status]), q(() => {
4721
+ }, [o.isLoading, s.status]), W(() => {
4674
4722
  o.isError && a((u) => ({
4675
4723
  ...u,
4676
4724
  status: "error",
4677
4725
  error: String(o.error)
4678
4726
  }));
4679
- }, [o.isError, o.error]), q(() => {
4727
+ }, [o.isError, o.error]), W(() => {
4680
4728
  const u = o.data?.entitlements;
4681
4729
  if (u && (a({
4682
4730
  capabilities: new Set(u.capabilities || []),
@@ -4723,7 +4771,7 @@ const B = {
4723
4771
  }, [n]), d = Je(
4724
4772
  () => ({
4725
4773
  ...s,
4726
- check: (u, l) => s.status !== "ready" ? !1 : ai(s.capabilities, u, { any: l?.any }),
4774
+ check: (u, l) => s.status !== "ready" ? !1 : ni(s.capabilities, u, { any: l?.any }),
4727
4775
  loadFromProfile: c,
4728
4776
  reset: f
4729
4777
  }),
@@ -4731,14 +4779,14 @@ const B = {
4731
4779
  );
4732
4780
  return /* @__PURE__ */ h(ls.Provider, { value: d, children: r });
4733
4781
  };
4734
- function Pc() {
4782
+ function Dc() {
4735
4783
  const e = at(ls);
4736
4784
  if (!e)
4737
4785
  throw new Error("useEntitlements must be used within EntitlementsProvider");
4738
4786
  return e;
4739
4787
  }
4740
4788
  const br = (e) => Number.isFinite(e) ? e : 0;
4741
- function li(e) {
4789
+ function ui(e) {
4742
4790
  return {
4743
4791
  days: Math.trunc(e / 864e5),
4744
4792
  hours: Math.trunc(e / 36e5 % 24),
@@ -4749,7 +4797,7 @@ function li(e) {
4749
4797
  nanoseconds: Math.trunc(br(e * 1e6) % 1e3)
4750
4798
  };
4751
4799
  }
4752
- function ui(e) {
4800
+ function di(e) {
4753
4801
  return {
4754
4802
  days: e / 86400000n,
4755
4803
  hours: e / 3600000n % 24n,
@@ -4760,20 +4808,20 @@ function ui(e) {
4760
4808
  nanoseconds: 0n
4761
4809
  };
4762
4810
  }
4763
- function di(e) {
4811
+ function hi(e) {
4764
4812
  switch (typeof e) {
4765
4813
  case "number": {
4766
4814
  if (Number.isFinite(e))
4767
- return li(e);
4815
+ return ui(e);
4768
4816
  break;
4769
4817
  }
4770
4818
  case "bigint":
4771
- return ui(e);
4819
+ return di(e);
4772
4820
  }
4773
4821
  throw new TypeError("Expected a finite number or bigint");
4774
4822
  }
4775
- const hi = (e) => e === 0 || e === 0n, fi = (e, t) => t === 1 || t === 1n ? e : `${e}s`, mi = 1e-7, pi = 24n * 60n * 60n * 1000n;
4776
- function yi(e, t) {
4823
+ const fi = (e) => e === 0 || e === 0n, mi = (e, t) => t === 1 || t === 1n ? e : `${e}s`, pi = 1e-7, yi = 24n * 60n * 60n * 1000n;
4824
+ function gi(e, t) {
4777
4825
  const r = typeof e == "bigint";
4778
4826
  if (!r && !Number.isFinite(e))
4779
4827
  throw new TypeError("Expected a finite number or bigint");
@@ -4782,20 +4830,20 @@ function yi(e, t) {
4782
4830
  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);
4783
4831
  let a = [];
4784
4832
  const n = (d, u) => {
4785
- const l = Math.floor(d * 10 ** u + mi);
4833
+ const l = Math.floor(d * 10 ** u + pi);
4786
4834
  return (Math.round(l) / 10 ** u).toFixed(u);
4787
4835
  }, i = (d, u, l, m) => {
4788
- if (!((a.length === 0 || !t.colonNotation) && hi(d) && !(t.colonNotation && l === "m"))) {
4836
+ if (!((a.length === 0 || !t.colonNotation) && fi(d) && !(t.colonNotation && l === "m"))) {
4789
4837
  if (m ??= String(d), t.colonNotation) {
4790
4838
  const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
4791
4839
  m = "0".repeat(Math.max(0, g - p)) + m;
4792
4840
  } else
4793
- m += t.verbose ? " " + fi(u, d) : l;
4841
+ m += t.verbose ? " " + mi(u, d) : l;
4794
4842
  a.push(m);
4795
4843
  }
4796
- }, o = di(e), c = BigInt(o.days);
4844
+ }, o = hi(e), c = BigInt(o.days);
4797
4845
  if (t.hideYearAndDays ? i(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(c, "day", "d") : (i(c / 365n, "year", "y"), i(c % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
4798
- if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
4846
+ if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
4799
4847
  const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
4800
4848
  if (i(d, "second", "s"), t.formatSubMilliseconds)
4801
4849
  i(u, "millisecond", "ms"), i(l, "microsecond", "µs"), i(m, "nanosecond", "ns");
@@ -4809,7 +4857,7 @@ function yi(e, t) {
4809
4857
  );
4810
4858
  }
4811
4859
  } else {
4812
- const d = (r ? Number(e % pi) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
4860
+ const d = (r ? Number(e % yi) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
4813
4861
  i(Number.parseFloat(m), "second", "s", m);
4814
4862
  }
4815
4863
  if (a.length === 0)
@@ -4825,17 +4873,17 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
4825
4873
  min: a,
4826
4874
  sec: n
4827
4875
  };
4828
- }, gi = (e) => {
4876
+ }, bi = (e) => {
4829
4877
  if (!e && e !== 0)
4830
4878
  return "N/A";
4831
4879
  const t = Bt(e, !1);
4832
4880
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
4833
- }, bi = (e) => {
4881
+ }, Ei = (e) => {
4834
4882
  if (!e && e !== 0)
4835
4883
  return "N/A";
4836
4884
  const t = Bt(e, !0);
4837
4885
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
4838
- }, Ei = async () => {
4886
+ }, wi = async () => {
4839
4887
  const e = {
4840
4888
  /**
4841
4889
  * A boolean value that indicates the application would like to receive the
@@ -4878,18 +4926,18 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
4878
4926
  e
4879
4927
  );
4880
4928
  });
4881
- }, wi = (e) => window.btoa(
4929
+ }, Si = (e) => window.btoa(
4882
4930
  encodeURIComponent(e).replace(
4883
4931
  /%([0-9A-F]{2})/g,
4884
4932
  function(r, s) {
4885
4933
  return String.fromCharCode(+`0x${s}`);
4886
4934
  }
4887
4935
  )
4888
- ), Si = (e) => decodeURIComponent(
4936
+ ), vi = (e) => decodeURIComponent(
4889
4937
  window.atob(e).split("").map(function(t) {
4890
4938
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
4891
4939
  }).join("")
4892
- ), vi = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ W("div", { className: "flex items-center justify-between", children: [
4940
+ ), Ti = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-between", children: [
4893
4941
  /* @__PURE__ */ h(
4894
4942
  "dt",
4895
4943
  {
@@ -4911,7 +4959,7 @@ const us = process.env.NODE_ENV === "production", Gt = !us, ds = Gt ? "gizmette.
4911
4959
  }
4912
4960
  )
4913
4961
  ] }) }, `${e}-${s}`)) : null;
4914
- function Ti({
4962
+ function Ai({
4915
4963
  data: e,
4916
4964
  formatter: t = (r) => r
4917
4965
  }) {
@@ -4923,12 +4971,12 @@ function Ti({
4923
4971
  );
4924
4972
  return t(s ? s / r.length : 0);
4925
4973
  }
4926
- const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ii = new Intl.NumberFormat("en", {
4974
+ const Ii = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, _i = new Intl.NumberFormat("en", {
4927
4975
  style: "decimal",
4928
4976
  signDisplay: "never",
4929
4977
  minimumFractionDigits: 0,
4930
4978
  maximumFractionDigits: 0
4931
- }), _i = (e) => e > 0 ? yi(e, {
4979
+ }), Ri = (e) => e > 0 ? gi(e, {
4932
4980
  secondsDecimalDigits: 2,
4933
4981
  unitCount: 2
4934
4982
  }) : "N/A", hs = ({
@@ -4948,18 +4996,21 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
4948
4996
  "sm:px-5 px-2",
4949
4997
  "transition-all ease-in-out duration-500",
4950
4998
  e
4951
- ), Ri = (e, t) => t === 1 ? e : `${e}s`, Ci = (e, t) => {
4999
+ ), Ci = (e, t) => t === 1 ? e : `${e}s`, ki = (e, t) => {
4952
5000
  let r;
4953
5001
  return (...s) => {
4954
5002
  window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
4955
5003
  };
4956
- }, ms = () => !!window?.__VERSINI_CALLISTO_TAURI__, ps = () => window.innerWidth < 403, ki = () => {
5004
+ }, ms = () => !!window?.__VERSINI_CALLISTO_TAURI__, ps = () => window.innerWidth < 403, ys = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Oi = () => {
4957
5005
  const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = ps(), s = navigator.maxTouchPoints > 1;
4958
5006
  return e && t && r && s;
4959
- }, Oi = (e) => {
5007
+ }, Ni = () => {
5008
+ const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = ys(), r = navigator.maxTouchPoints > 1;
5009
+ return e && t && r;
5010
+ }, Pi = (e) => {
4960
5011
  const t = e.replace(/([A-Z])/g, " $1");
4961
5012
  return t.charAt(0).toUpperCase() + t.slice(1);
4962
- }, Ni = ({
5013
+ }, $i = ({
4963
5014
  autoClose: e = 3e3,
4964
5015
  containerId: t,
4965
5016
  position: r = "top-center",
@@ -4983,7 +5034,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
4983
5034
  theme: c,
4984
5035
  transition: f,
4985
5036
  icon: d
4986
- }), $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: ds, convertCamelCaseToReadable: Oi, convertDDToDMS: Bt, convertLatitudeToDMS: gi, convertLongitudeToDMS: bi, debounce: Ci, durationFormatter: _i, extractAverage: Ti, getCurrentGeoLocation: Ei, getLayoutPaddingClass: fs, getMessageContaintWrapperClass: hs, isDev: Gt, isLastMessageFromRole: Ai, isProbablyMobile: ps, isProbablyiPhone: ki, isProd: us, isTauri: ms, numberFormatter: Ii, obfuscate: wi, pluralize: Ri, renderDataAsList: vi, toastOptions: Ni, unObfuscate: Si }, Symbol.toStringTag, { value: "Module" })), Er = "av-button", ct = "icon", qt = "button", Pt = "link", Pi = ({
5037
+ }), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: ds, convertCamelCaseToReadable: Pi, convertDDToDMS: Bt, convertLatitudeToDMS: bi, convertLongitudeToDMS: Ei, debounce: ki, durationFormatter: Ri, extractAverage: Ai, getCurrentGeoLocation: wi, getLayoutPaddingClass: fs, getMessageContaintWrapperClass: hs, isDev: Gt, isLastMessageFromRole: Ii, isProbablyMobile: ps, isProbablyTablet: ys, isProbablyiPad: Ni, isProbablyiPhone: Oi, isProd: us, isTauri: ms, numberFormatter: _i, obfuscate: Si, pluralize: Ci, renderDataAsList: Ti, toastOptions: $i, unObfuscate: vi }, Symbol.toStringTag, { value: "Module" })), Er = "av-button", ct = "icon", Wt = "button", Pt = "link", xi = ({
4987
5038
  type: e,
4988
5039
  size: t,
4989
5040
  labelRight: r,
@@ -4993,7 +5044,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
4993
5044
  }) => {
4994
5045
  const i = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
4995
5046
  switch (e) {
4996
- case qt:
5047
+ case Wt:
4997
5048
  case Pt:
4998
5049
  return y({
4999
5050
  [i]: t === "small",
@@ -5019,7 +5070,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5019
5070
  "h-12": t === "large" && n && (r || s)
5020
5071
  });
5021
5072
  }
5022
- }, $i = ({
5073
+ }, Di = ({
5023
5074
  type: e,
5024
5075
  size: t,
5025
5076
  labelRight: r,
@@ -5027,7 +5078,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5027
5078
  }) => {
5028
5079
  const a = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
5029
5080
  switch (e) {
5030
- case qt:
5081
+ case Wt:
5031
5082
  case Pt:
5032
5083
  return y({
5033
5084
  "text-center": e === Pt,
@@ -5042,7 +5093,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5042
5093
  [i]: t === "large" && (r || s)
5043
5094
  });
5044
5095
  }
5045
- }, xi = ({
5096
+ }, Mi = ({
5046
5097
  mode: e,
5047
5098
  noBackground: t,
5048
5099
  truncate: r,
@@ -5078,7 +5129,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5078
5129
  return y("not-prose text-copy-lighter", {
5079
5130
  truncate: r
5080
5131
  });
5081
- }, Di = ({
5132
+ }, Li = ({
5082
5133
  mode: e,
5083
5134
  noBackground: t,
5084
5135
  variant: r
@@ -5108,13 +5159,13 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5108
5159
  if (r === "selected")
5109
5160
  return "bg-action-selected-dark";
5110
5161
  }
5111
- }, Mi = ({
5162
+ }, Ui = ({
5112
5163
  radius: e
5113
5164
  }) => y({
5114
5165
  "rounded-full": e === "large",
5115
5166
  "rounded-md": e === "medium",
5116
5167
  "rounded-xs": e === "small"
5117
- }), Li = ({
5168
+ }), Fi = ({
5118
5169
  mode: e,
5119
5170
  disabled: t,
5120
5171
  variant: r
@@ -5152,7 +5203,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5152
5203
  });
5153
5204
  if (r === "selected")
5154
5205
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5155
- }, Ui = ({
5206
+ }, Hi = ({
5156
5207
  mode: e,
5157
5208
  disabled: t,
5158
5209
  variant: r
@@ -5190,7 +5241,7 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5190
5241
  });
5191
5242
  if (r === "selected")
5192
5243
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5193
- }, Fi = ({
5244
+ }, Ki = ({
5194
5245
  mode: e,
5195
5246
  noBorder: t,
5196
5247
  variant: r
@@ -5220,14 +5271,14 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5220
5271
  });
5221
5272
  if (r === "selected")
5222
5273
  return "border border-border-selected-dark";
5223
- }, Hi = ({
5274
+ }, Gi = ({
5224
5275
  focusMode: e
5225
5276
  }) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5226
5277
  "focus:outline-focus-dark": e === "dark",
5227
5278
  "focus:outline-focus-light": e === "light",
5228
5279
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5229
5280
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5230
- }), Ki = ({
5281
+ }), Bi = ({
5231
5282
  mode: e,
5232
5283
  raw: t,
5233
5284
  iconClassName: r,
@@ -5254,11 +5305,11 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5254
5305
  } : s === "selected" && (a = {
5255
5306
  "text-copy-lighter": !0
5256
5307
  }), y(a, r);
5257
- }, Gi = ({
5308
+ }, Wi = ({
5258
5309
  animated: e
5259
5310
  }) => y({
5260
5311
  "transition-opacity duration-300 ease-in-out": e
5261
- }), ys = ({
5312
+ }), gs = ({
5262
5313
  type: e,
5263
5314
  className: t,
5264
5315
  raw: r,
@@ -5278,15 +5329,15 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5278
5329
  animated: b
5279
5330
  }) => (l || (l = "primary"), r ? y(Er, t) : y(
5280
5331
  Er,
5281
- xi({
5332
+ Mi({
5282
5333
  mode: s,
5283
5334
  variant: l,
5284
5335
  noBackground: u,
5285
5336
  truncate: m
5286
5337
  }),
5287
- Di({ mode: s, noBackground: u, variant: l }),
5288
- Mi({ radius: g }),
5289
- Pi({
5338
+ Li({ mode: s, noBackground: u, variant: l }),
5339
+ Ui({ radius: g }),
5340
+ xi({
5290
5341
  type: e,
5291
5342
  size: o,
5292
5343
  labelRight: f,
@@ -5294,11 +5345,11 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5294
5345
  align: p,
5295
5346
  animated: b
5296
5347
  }),
5297
- $i({ type: e, size: o, labelRight: f, labelLeft: d }),
5298
- Fi({ mode: s, variant: l, noBorder: c }),
5299
- Hi({ focusMode: a }),
5300
- Li({ mode: s, variant: l, disabled: n }),
5301
- Ui({ mode: s, variant: l, disabled: n }),
5348
+ Di({ type: e, size: o, labelRight: f, labelLeft: d }),
5349
+ Ki({ mode: s, variant: l, noBorder: c }),
5350
+ Gi({ focusMode: a }),
5351
+ Fi({ mode: s, variant: l, disabled: n }),
5352
+ Hi({ mode: s, variant: l, disabled: n }),
5302
5353
  {
5303
5354
  "w-full": i,
5304
5355
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -5307,23 +5358,23 @@ const Ai = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5307
5358
  "transition-[width] duration-300 ease-in": e === ct && b
5308
5359
  }),
5309
5360
  t
5310
- )), Bi = (e, t, r) => {
5361
+ )), qi = (e, t, r) => {
5311
5362
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5312
- }, Wt = ie.forwardRef((e, t) => {
5363
+ }, qt = ie.forwardRef((e, t) => {
5313
5364
  const { onClick: r, noInternalClick: s = !1, ...a } = e;
5314
5365
  return /* @__PURE__ */ h(
5315
5366
  "button",
5316
5367
  {
5317
5368
  ref: t,
5318
5369
  onClick: (n) => {
5319
- Bi(n, s, r);
5370
+ qi(n, s, r);
5320
5371
  },
5321
5372
  ...a
5322
5373
  }
5323
5374
  );
5324
5375
  });
5325
- Wt.displayName = "BaseButton";
5326
- const gs = ie.forwardRef(
5376
+ qt.displayName = "BaseButton";
5377
+ const bs = ie.forwardRef(
5327
5378
  ({
5328
5379
  children: e,
5329
5380
  disabled: t = !1,
@@ -5339,8 +5390,8 @@ const gs = ie.forwardRef(
5339
5390
  radius: u = "large",
5340
5391
  ...l
5341
5392
  }, m) => {
5342
- const p = ys({
5343
- type: qt,
5393
+ const p = gs({
5394
+ type: Wt,
5344
5395
  mode: r,
5345
5396
  focusMode: s,
5346
5397
  fullWidth: a,
@@ -5354,7 +5405,7 @@ const gs = ie.forwardRef(
5354
5405
  radius: u
5355
5406
  });
5356
5407
  return /* @__PURE__ */ h(
5357
- Wt,
5408
+ qt,
5358
5409
  {
5359
5410
  ref: m,
5360
5411
  className: p,
@@ -5365,14 +5416,14 @@ const gs = ie.forwardRef(
5365
5416
  );
5366
5417
  }
5367
5418
  );
5368
- gs.displayName = "Button";
5369
- function qi() {
5419
+ bs.displayName = "Button";
5420
+ function ji() {
5370
5421
  const e = j(!1);
5371
- return q(() => (e.current = !0, () => {
5422
+ return W(() => (e.current = !0, () => {
5372
5423
  e.current = !1;
5373
5424
  }), []), Y(() => e.current, []);
5374
5425
  }
5375
- function bs(e) {
5426
+ function Es(e) {
5376
5427
  return Je(() => e.every((t) => t == null) ? () => {
5377
5428
  } : (t) => {
5378
5429
  e.forEach((r) => {
@@ -5380,7 +5431,7 @@ function bs(e) {
5380
5431
  });
5381
5432
  }, [...e]);
5382
5433
  }
5383
- const Wi = {
5434
+ const Vi = {
5384
5435
  x: 0,
5385
5436
  y: 0,
5386
5437
  width: 0,
@@ -5391,18 +5442,18 @@ const Wi = {
5391
5442
  right: 0
5392
5443
  };
5393
5444
  function je(e) {
5394
- const t = qi(), r = j(0), s = j(null), [a, n] = ne(Wi), i = Je(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5445
+ const t = ji(), r = j(0), s = j(null), [a, n] = ne(Vi), i = Je(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5395
5446
  const c = o[0];
5396
5447
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5397
5448
  s.current && t() && n(c.contentRect);
5398
5449
  }));
5399
5450
  }), [t]);
5400
- return q(() => (s.current && i?.observe(s.current, e), () => {
5451
+ return W(() => (s.current && i?.observe(s.current, e), () => {
5401
5452
  i?.disconnect(), r.current && cancelAnimationFrame(r.current);
5402
5453
  }), [i, e]), [s, a];
5403
5454
  }
5404
- function Es(e) {
5405
- const t = _s();
5455
+ function ws(e) {
5456
+ const t = Rs();
5406
5457
  if (!e)
5407
5458
  return t;
5408
5459
  if (typeof e == "number" || typeof e == "string")
@@ -5419,14 +5470,14 @@ const Be = {
5419
5470
  // w-8
5420
5471
  large: 48
5421
5472
  // w-12
5422
- }, ji = {
5473
+ }, Ji = {
5423
5474
  small: 16,
5424
5475
  // px-2 x 2
5425
5476
  medium: 24,
5426
5477
  // px-3 x 2
5427
5478
  large: 32
5428
5479
  // px-4 x 2
5429
- }, Vi = 2, Ji = 300, rt = ie.forwardRef(
5480
+ }, Qi = 2, Yi = 300, rt = ie.forwardRef(
5430
5481
  ({
5431
5482
  children: e,
5432
5483
  disabled: t = !1,
@@ -5450,7 +5501,7 @@ const Be = {
5450
5501
  animated: A = !1,
5451
5502
  ...K
5452
5503
  }, R) => {
5453
- const Q = ys({
5504
+ const Q = gs({
5454
5505
  type: ct,
5455
5506
  mode: r,
5456
5507
  focusMode: s,
@@ -5467,15 +5518,15 @@ const Be = {
5467
5518
  radius: b,
5468
5519
  variant: E,
5469
5520
  animated: A
5470
- }), C = Ki({ mode: r, raw: o, iconClassName: k, variant: E }), v = Gi({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = je(), [N, V] = je(), [ce, Ee] = je(), w = j(0), T = j(null), S = j(null), le = bs([R, T]);
5521
+ }), C = Bi({ mode: r, raw: o, iconClassName: k, variant: E }), v = Wi({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = je(), [N, V] = je(), [ce, Ee] = je(), w = j(0), T = j(null), S = j(null), le = Es([R, T]);
5471
5522
  return Qe(() => {
5472
- ce && ce.current && A && (w.current = Ee.width + ji[u] + (c ? 0 : Vi), T.current && !T.current.style.width && (T.current.style.width = `${Be[u]}px`));
5523
+ ce && ce.current && A && (w.current = Ee.width + Ji[u] + (c ? 0 : Qi), T.current && !T.current.style.width && (T.current.style.width = `${Be[u]}px`));
5473
5524
  }, [Ee, ce, u, c, A]), Qe(() => {
5474
5525
  if (T && T.current && A) {
5475
5526
  let ue = Be[u];
5476
5527
  l && _ && I.width > 0 ? ue = I.width + w.current : m && N && V.width > 0 && (ue = V.width + w.current), S.current && clearTimeout(S.current), ue !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ue}px`, ue > Be[u] && (S.current = setTimeout(() => {
5477
5528
  _.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), S.current = null;
5478
- }, Ji * 0.8))), ue === Be[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5529
+ }, Yi * 0.8))), ue === Be[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5479
5530
  }
5480
5531
  }, [
5481
5532
  I,
@@ -5486,10 +5537,10 @@ const Be = {
5486
5537
  N,
5487
5538
  u,
5488
5539
  A
5489
- ]), q(() => () => {
5540
+ ]), W(() => () => {
5490
5541
  S.current && clearTimeout(S.current);
5491
5542
  }, []), /* @__PURE__ */ h(
5492
- Wt,
5543
+ qt,
5493
5544
  {
5494
5545
  ref: le,
5495
5546
  className: Q,
@@ -5497,7 +5548,7 @@ const Be = {
5497
5548
  type: i,
5498
5549
  "aria-label": f || d,
5499
5550
  ...K,
5500
- children: /* @__PURE__ */ W("div", { className: x, children: [
5551
+ children: /* @__PURE__ */ q("div", { className: x, children: [
5501
5552
  /* @__PURE__ */ h(
5502
5553
  wr,
5503
5554
  {
@@ -5552,7 +5603,7 @@ try {
5552
5603
  });
5553
5604
  } catch {
5554
5605
  }
5555
- const Qi = ie.forwardRef(
5606
+ const zi = ie.forwardRef(
5556
5607
  ({
5557
5608
  children: e,
5558
5609
  mode: t = "system",
@@ -5592,8 +5643,8 @@ const Qi = ie.forwardRef(
5592
5643
  ) });
5593
5644
  }
5594
5645
  );
5595
- Qi.displayName = "ButtonSort";
5596
- const Ve = "av-card", Yi = ({
5646
+ zi.displayName = "ButtonSort";
5647
+ const Ve = "av-card", Xi = ({
5597
5648
  className: e,
5598
5649
  headerClassName: t,
5599
5650
  bodyClassName: r,
@@ -5633,7 +5684,7 @@ const Ve = "av-card", Yi = ({
5633
5684
  footer: d
5634
5685
  };
5635
5686
  };
5636
- function zi({
5687
+ function Zi({
5637
5688
  id: e,
5638
5689
  content: t,
5639
5690
  userAriaLabelledby: r,
@@ -5641,7 +5692,7 @@ function zi({
5641
5692
  }) {
5642
5693
  return typeof t == "string" ? /* @__PURE__ */ h("h2", { id: e, className: s, children: t }) : r ? /* @__PURE__ */ h("div", { className: s, children: t }) : t ? /* @__PURE__ */ h("div", { className: s, id: e, children: t }) : null;
5643
5694
  }
5644
- const Xi = ({
5695
+ const eo = ({
5645
5696
  header: e,
5646
5697
  headerClassName: t,
5647
5698
  footer: r,
@@ -5656,7 +5707,7 @@ const Xi = ({
5656
5707
  ...u
5657
5708
  }) => {
5658
5709
  let l = null, m = null;
5659
- const p = typeof e == "string", g = Es(Ve), b = Yi({
5710
+ const p = typeof e == "string", g = ws(Ve), b = Xi({
5660
5711
  className: n,
5661
5712
  headerClassName: t,
5662
5713
  bodyClassName: i,
@@ -5665,7 +5716,7 @@ const Xi = ({
5665
5716
  compact: f,
5666
5717
  noBorder: d
5667
5718
  });
5668
- return p ? (l = g, m = l) : !p && e && o ? (l = null, m = o) : !p && e && !o ? (l = g, m = l) : (l = null, m = o || null), /* @__PURE__ */ h("div", { className: b.wrapper, children: /* @__PURE__ */ W(
5719
+ return p ? (l = g, m = l) : !p && e && o ? (l = null, m = o) : !p && e && !o ? (l = g, m = l) : (l = null, m = o || null), /* @__PURE__ */ h("div", { className: b.wrapper, children: /* @__PURE__ */ q(
5669
5720
  "section",
5670
5721
  {
5671
5722
  ...m && {
@@ -5675,7 +5726,7 @@ const Xi = ({
5675
5726
  ...u,
5676
5727
  children: [
5677
5728
  /* @__PURE__ */ h(
5678
- zi,
5729
+ Zi,
5679
5730
  {
5680
5731
  ...l && { id: l },
5681
5732
  content: e,
@@ -5714,7 +5765,7 @@ const lt = ({
5714
5765
  ...c
5715
5766
  }) => {
5716
5767
  const f = y(n, s);
5717
- return /* @__PURE__ */ W(
5768
+ return /* @__PURE__ */ q(
5718
5769
  "svg",
5719
5770
  {
5720
5771
  xmlns: "http://www.w3.org/2000/svg",
@@ -5745,7 +5796,7 @@ try {
5745
5796
  });
5746
5797
  } catch {
5747
5798
  }
5748
- const Zi = ({
5799
+ const to = ({
5749
5800
  className: e,
5750
5801
  viewBox: t,
5751
5802
  title: r,
@@ -5762,13 +5813,13 @@ const Zi = ({
5762
5813
  ...a,
5763
5814
  children: /* @__PURE__ */ h("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" })
5764
5815
  }
5765
- ), eo = ({
5816
+ ), ro = ({
5766
5817
  className: e,
5767
5818
  viewBox: t,
5768
5819
  title: r,
5769
5820
  monotone: s,
5770
5821
  ...a
5771
- }) => /* @__PURE__ */ W(
5822
+ }) => /* @__PURE__ */ q(
5772
5823
  lt,
5773
5824
  {
5774
5825
  defaultViewBox: "0 0 640 512",
@@ -5788,7 +5839,7 @@ const Zi = ({
5788
5839
  /* @__PURE__ */ h("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" })
5789
5840
  ]
5790
5841
  }
5791
- ), to = ({
5842
+ ), so = ({
5792
5843
  className: e,
5793
5844
  viewBox: t,
5794
5845
  title: r,
@@ -5796,7 +5847,7 @@ const Zi = ({
5796
5847
  ...a
5797
5848
  }) => {
5798
5849
  const n = s ? "1" : "0.4";
5799
- return /* @__PURE__ */ W(
5850
+ return /* @__PURE__ */ q(
5800
5851
  lt,
5801
5852
  {
5802
5853
  defaultViewBox: "0 0 190 190",
@@ -5824,13 +5875,13 @@ const Zi = ({
5824
5875
  ]
5825
5876
  }
5826
5877
  );
5827
- }, ro = ({
5878
+ }, ao = ({
5828
5879
  className: e,
5829
5880
  viewBox: t,
5830
5881
  title: r,
5831
5882
  monotone: s,
5832
5883
  ...a
5833
- }) => /* @__PURE__ */ W(
5884
+ }) => /* @__PURE__ */ q(
5834
5885
  lt,
5835
5886
  {
5836
5887
  defaultViewBox: "0 0 576 512",
@@ -5864,10 +5915,10 @@ try {
5864
5915
  });
5865
5916
  } catch {
5866
5917
  }
5867
- const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createContext({
5918
+ const no = "av-flexgrid", We = "av-flexgrid-item", st = 0.25, $t = ie.createContext({
5868
5919
  columnGap: 0,
5869
5920
  rowGap: 0
5870
- }), ao = ({
5921
+ }), io = ({
5871
5922
  children: e,
5872
5923
  className: t,
5873
5924
  columnGap: r = 1,
@@ -5893,7 +5944,7 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
5893
5944
  marginLeft: r * -1 * st + "rem",
5894
5945
  marginTop: s * -1 * st + "rem"
5895
5946
  }, u = y(
5896
- so,
5947
+ no,
5897
5948
  "box-border flex flex-wrap"
5898
5949
  ), l = { columnGap: r, rowGap: s };
5899
5950
  return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h($t.Provider, { value: l, children: e }) }) }) : /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h($t.Provider, { value: l, children: e }) });
@@ -5970,25 +6021,25 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
5970
6021
  "lg:basis-full": e === 12 && t === "lg",
5971
6022
  "xl:basis-full": e === 12 && t === "xl",
5972
6023
  "2xl:basis-full": e === 12 && t === "2xl"
5973
- }), no = ({
6024
+ }), oo = ({
5974
6025
  className: e,
5975
6026
  span: t
5976
6027
  }) => {
5977
6028
  if (!t)
5978
- return y(e, qe, "box-border basis-auto");
6029
+ return y(e, We, "box-border basis-auto");
5979
6030
  if (typeof t == "number")
5980
- return y(e, qe, "box-border max-w-full", {
6031
+ return y(e, We, "box-border max-w-full", {
5981
6032
  [`${St(t)}`]: !0
5982
6033
  });
5983
6034
  if (typeof t == "string")
5984
- return y(e, qe, "box-border basis-auto", {
6035
+ return y(e, We, "box-border basis-auto", {
5985
6036
  "max-w-full grow": t === "auto"
5986
6037
  });
5987
6038
  if (typeof t == "object") {
5988
6039
  const r = Object.entries(t).map(([s, a]) => s === "fallback" ? St(a) : St(a, s));
5989
6040
  return y(
5990
6041
  e,
5991
- qe,
6042
+ We,
5992
6043
  "box-border",
5993
6044
  r
5994
6045
  );
@@ -6002,7 +6053,7 @@ const so = "av-flexgrid", qe = "av-flexgrid-item", st = 0.25, $t = ie.createCont
6002
6053
  const { columnGap: a, rowGap: n } = at($t), i = {
6003
6054
  paddingLeft: a * st + "rem",
6004
6055
  paddingTop: n * st + "rem"
6005
- }, o = no({
6056
+ }, o = oo({
6006
6057
  className: t,
6007
6058
  span: r
6008
6059
  });
@@ -6021,7 +6072,7 @@ try {
6021
6072
  });
6022
6073
  } catch {
6023
6074
  }
6024
- const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
6075
+ const Ss = "SET_ANNOUNCEMENT", vs = "CLEAR_ANNOUNCEMENT", co = {
6025
6076
  alert: null,
6026
6077
  alertdialog: null,
6027
6078
  log: "polite",
@@ -6029,14 +6080,14 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
6029
6080
  progressbar: null,
6030
6081
  status: "polite",
6031
6082
  timer: "assertive"
6032
- }, oo = (e, t) => {
6083
+ }, lo = (e, t) => {
6033
6084
  switch (t?.type) {
6034
- case ws:
6085
+ case Ss:
6035
6086
  return {
6036
6087
  ...e,
6037
6088
  announcement: t.payload
6038
6089
  };
6039
- case Ss:
6090
+ case vs:
6040
6091
  return {
6041
6092
  ...e,
6042
6093
  announcement: null
@@ -6044,12 +6095,12 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
6044
6095
  default:
6045
6096
  return e;
6046
6097
  }
6047
- }, co = ({
6098
+ }, uo = ({
6048
6099
  onAnnouncementClear: e,
6049
6100
  dispatch: t
6050
6101
  }) => {
6051
6102
  t({
6052
- type: Ss
6103
+ type: vs
6053
6104
  }), typeof e == "function" && e();
6054
6105
  }, Sr = ({
6055
6106
  children: e,
@@ -6059,16 +6110,16 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
6059
6110
  dispatch: a
6060
6111
  }) => {
6061
6112
  clearTimeout(r.current), e !== null && a({
6062
- type: ws,
6113
+ type: Ss,
6063
6114
  payload: e
6064
6115
  }), t && (r.current = setTimeout(
6065
- () => co({
6116
+ () => uo({
6066
6117
  onAnnouncementClear: s,
6067
6118
  dispatch: a
6068
6119
  }),
6069
6120
  t
6070
6121
  ));
6071
- }, lo = ({
6122
+ }, ho = ({
6072
6123
  children: e,
6073
6124
  announcementTimeoutRef: t,
6074
6125
  announcementDelay: r,
@@ -6091,7 +6142,7 @@ const ws = "SET_ANNOUNCEMENT", Ss = "CLEAR_ANNOUNCEMENT", io = {
6091
6142
  dispatch: i
6092
6143
  });
6093
6144
  };
6094
- function vs({
6145
+ function Ts({
6095
6146
  children: e,
6096
6147
  className: t,
6097
6148
  politeness: r,
@@ -6102,12 +6153,12 @@ function vs({
6102
6153
  visible: o,
6103
6154
  ...c
6104
6155
  }) {
6105
- const f = j(null), d = j(null), [u, l] = Ir(oo, {
6156
+ const f = j(null), d = j(null), [u, l] = Ir(lo, {
6106
6157
  announcement: null
6107
6158
  });
6108
6159
  let m = r;
6109
- typeof m > "u" && (m = s ? io[s] : "assertive"), q(() => {
6110
- lo({
6160
+ typeof m > "u" && (m = s ? co[s] : "assertive"), W(() => {
6161
+ ho({
6111
6162
  announcementTimeoutRef: f,
6112
6163
  announcementDelay: a,
6113
6164
  children: e,
@@ -6149,21 +6200,21 @@ try {
6149
6200
  });
6150
6201
  } catch {
6151
6202
  }
6152
- const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-helper-text", ho = ({
6203
+ const As = "av-text-input", fo = "av-text-input-wrapper", vt = "av-text-input-helper-text", mo = ({
6153
6204
  mode: e
6154
6205
  }) => y({
6155
6206
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6156
6207
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6157
6208
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6158
6209
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6159
- }), fo = ({
6210
+ }), po = ({
6160
6211
  focusMode: e
6161
6212
  }) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
6162
6213
  "focus:outline-focus-dark": e === "dark",
6163
6214
  "focus:outline-focus-light": e === "light",
6164
6215
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6165
6216
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6166
- }), mo = ({
6217
+ }), yo = ({
6167
6218
  noBorder: e,
6168
6219
  error: t
6169
6220
  }) => y("border-2", {
@@ -6171,7 +6222,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6171
6222
  "focus:border-border-dark": !e && t,
6172
6223
  "border-border-error-dark": !e && t,
6173
6224
  "border-transparent": e
6174
- }), po = ({
6225
+ }), go = ({
6175
6226
  disabled: e,
6176
6227
  raw: t,
6177
6228
  error: r,
@@ -6195,7 +6246,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6195
6246
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
6196
6247
  "text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
6197
6248
  });
6198
- }, yo = ({
6249
+ }, bo = ({
6199
6250
  error: e,
6200
6251
  raw: t,
6201
6252
  mode: r,
@@ -6222,7 +6273,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6222
6273
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
6223
6274
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
6224
6275
  });
6225
- }, go = ({
6276
+ }, Eo = ({
6226
6277
  className: e,
6227
6278
  inputClassName: t,
6228
6279
  raw: r,
@@ -6236,7 +6287,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6236
6287
  }) => {
6237
6288
  const d = r ? e : y(
6238
6289
  "relative flex w-full flex-col justify-center",
6239
- uo,
6290
+ fo,
6240
6291
  e
6241
6292
  );
6242
6293
  let u = "";
@@ -6258,22 +6309,22 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6258
6309
  break;
6259
6310
  }
6260
6311
  const l = r ? y(t) : y(
6261
- Ts,
6312
+ As,
6262
6313
  u,
6263
6314
  "rounded-md text-base px-4",
6264
- ho({ mode: i }),
6265
- fo({ focusMode: o }),
6266
- mo({ noBorder: a, error: n }),
6315
+ mo({ mode: i }),
6316
+ po({ focusMode: o }),
6317
+ yo({ noBorder: a, error: n }),
6267
6318
  {
6268
6319
  "disabled:cursor-not-allowed disabled:opacity-50": s
6269
6320
  },
6270
6321
  t
6271
- ), m = r ? void 0 : "sr-only", p = po({
6322
+ ), m = r ? void 0 : "sr-only", p = go({
6272
6323
  disabled: s,
6273
6324
  raw: r,
6274
6325
  error: n,
6275
6326
  mode: i
6276
- }), g = yo({
6327
+ }), g = bo({
6277
6328
  error: n,
6278
6329
  raw: r,
6279
6330
  mode: i,
@@ -6309,13 +6360,13 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6309
6360
  size: E = "md",
6310
6361
  ...k
6311
6362
  }, A) => {
6312
- const [K, R] = je(), [Q, C] = ne(0), v = Es({ id: e, prefix: `${Ts}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
6363
+ const [K, R] = je(), [Q, C] = ne(0), v = ws({ id: e, prefix: `${As}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
6313
6364
  xs: { label: "-25px", helperText: "30px" },
6314
6365
  sm: { label: "-29px", helperText: "34px" },
6315
6366
  md: { label: "-33px", helperText: "38px" },
6316
6367
  lg: { label: "-15px", helperText: "22px" },
6317
6368
  xl: { label: "-19px", helperText: "25px" }
6318
- }, V = go({
6369
+ }, V = Eo({
6319
6370
  className: n,
6320
6371
  inputClassName: i,
6321
6372
  error: s,
@@ -6335,7 +6386,7 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6335
6386
  "--av-text-input-helper-text",
6336
6387
  Ee
6337
6388
  );
6338
- }, [E]), /* @__PURE__ */ W("div", { className: V.wrapper, children: [
6389
+ }, [E]), /* @__PURE__ */ q("div", { className: V.wrapper, children: [
6339
6390
  /* @__PURE__ */ h(
6340
6391
  "label",
6341
6392
  {
@@ -6388,12 +6439,12 @@ const Ts = "av-text-input", uo = "av-text-input-wrapper", vt = "av-text-input-he
6388
6439
  children: g
6389
6440
  }
6390
6441
  ),
6391
- s && p && /* @__PURE__ */ h(vs, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
6442
+ s && p && /* @__PURE__ */ h(Ts, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
6392
6443
  ] });
6393
6444
  }
6394
6445
  );
6395
6446
  jt.displayName = "TextInput";
6396
- const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
6447
+ const wo = 500, So = 5e3, vo = 2e4, Is = ie.forwardRef(
6397
6448
  ({
6398
6449
  name: e,
6399
6450
  disabled: t,
@@ -6410,19 +6461,19 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
6410
6461
  const [l, m] = ne(!0), [p, g] = ne({
6411
6462
  message: null,
6412
6463
  politeness: null
6413
- }), b = j(!0), E = j(null), k = j(null), A = bs([u, k]), K = l ? "Show" : "Hide", R = () => {
6464
+ }), b = j(!0), E = j(null), k = j(null), A = Es([u, k]), K = l ? "Show" : "Hide", R = () => {
6414
6465
  E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
6415
6466
  b.current = !0, m(!0), g({
6416
- announcementTimeout: Eo,
6467
+ announcementTimeout: So,
6417
6468
  politeness: "polite",
6418
6469
  message: `${r} hiding characters`
6419
6470
  }), a && a(!0);
6420
- }, wo));
6471
+ }, vo));
6421
6472
  }, Q = (I) => {
6422
6473
  I.preventDefault();
6423
6474
  const N = !b.current;
6424
6475
  b.current = N, R(), m(N), g({
6425
- announcementTimeout: bo,
6476
+ announcementTimeout: wo,
6426
6477
  politeness: "assertive",
6427
6478
  message: N ? "Characters hidden" : "Characters showing"
6428
6479
  }), a && a(N);
@@ -6436,9 +6487,9 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
6436
6487
  }, _ = (I) => {
6437
6488
  R(), n && n(I);
6438
6489
  };
6439
- return q(() => () => {
6490
+ return W(() => () => {
6440
6491
  E.current && clearTimeout(E.current);
6441
- }, []), /* @__PURE__ */ W(Ar, { children: [
6492
+ }, []), /* @__PURE__ */ q(Ar, { children: [
6442
6493
  /* @__PURE__ */ h(
6443
6494
  jt,
6444
6495
  {
@@ -6462,7 +6513,7 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
6462
6513
  }
6463
6514
  ),
6464
6515
  /* @__PURE__ */ h(
6465
- vs,
6516
+ Ts,
6466
6517
  {
6467
6518
  role: "status",
6468
6519
  politeness: p.politeness,
@@ -6473,7 +6524,7 @@ const bo = 500, Eo = 5e3, wo = 2e4, As = ie.forwardRef(
6473
6524
  ] });
6474
6525
  }
6475
6526
  );
6476
- As.displayName = "TextInputMask";
6527
+ Is.displayName = "TextInputMask";
6477
6528
  /*!
6478
6529
  @versini/ui-textinput v5.0.1
6479
6530
  © 2025 gizmette.com
@@ -6487,9 +6538,9 @@ try {
6487
6538
  });
6488
6539
  } catch {
6489
6540
  }
6490
- const So = "ASK! ME! ANYTHING!", vo = "Log in", To = "Sign in with a Passkey", xc = "Log out", Ao = "Password", Dc = "Usage", Mc = "Profile", Lc = "Settings", Uc = "Chat history", Fc = "About", Vt = "Type your message here.", Hc = Vt, Kc = `${Vt}
6491
- Press Enter to send it or Shift+Enter for new line.`, Gc = `${Vt}
6492
- Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "Review important details.", qc = [
6541
+ const To = "ASK! ME! ANYTHING!", Ao = "Log in", Io = "Sign in with a Passkey", Lc = "Log out", _o = "Password", Uc = "Usage", Fc = "Profile", Hc = "Settings", Kc = "Chat history", Gc = "About", Vt = "Type your message here.", Bc = Vt, Wc = `${Vt}
6542
+ Press Enter to send it or Shift+Enter for new line.`, qc = `${Vt}
6543
+ Press Ctrl+Enter to send it or Enter for new line.`, jc = "{{clipboard}}", P = "Review important details.", Vc = [
6493
6544
  `Sometimes, ${O} just makes stuff up. ${P}`,
6494
6545
  `${O} may invent facts on the fly. ${P}`,
6495
6546
  `${O} may be confidently wrong. ${P}`,
@@ -6510,17 +6561,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6510
6561
  `Sometimes, ${O} howls at the moon. ${P}`,
6511
6562
  `${O} may dig up imaginary bones. ${P}`,
6512
6563
  `${O} may sniff out nonsense. ${P}`
6513
- ], Wc = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", jc = "Default provider set to", Vc = "Chat successfully deleted!", Jc = "Chat successfully saved!", Qc = "Caching enabled. Assets are now stored locally.", Yc = "Caching disabled. Local asset cache cleared.", zc = "av-sassy", Xc = {
6564
+ ], Jc = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", Qc = "Default provider set to", Yc = "Chat successfully deleted!", zc = "Chat successfully saved!", Xc = "Caching enabled. Assets are now stored locally.", Zc = "Caching disabled. Local asset cache cleared.", el = "av-sassy", tl = {
6514
6565
  0: ["January", "February", "March"],
6515
6566
  3: ["April", "May", "June"],
6516
6567
  6: ["July", "August", "September"],
6517
6568
  9: ["October", "November", "December"]
6518
- }, Zc = {
6569
+ }, rl = {
6519
6570
  0: ["Jan", "Feb", "Mar"],
6520
6571
  3: ["Apr", "May", "Jun"],
6521
6572
  6: ["Jul", "Aug", "Sep"],
6522
6573
  9: ["Oct", "Nov", "Dec"]
6523
- }, el = {
6574
+ }, sl = {
6524
6575
  PREFERENCES: {
6525
6576
  TITLE: "User profile",
6526
6577
  NAME: "Name",
@@ -6560,7 +6611,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6560
6611
  SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
6561
6612
  USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Callisto will remember your previous interactions and use them to provide more relevant responses."
6562
6613
  }
6563
- }, Io = ({ className: e }) => /* @__PURE__ */ W(
6614
+ }, Ro = ({ className: e }) => /* @__PURE__ */ q(
6564
6615
  "div",
6565
6616
  {
6566
6617
  className: y(
@@ -6568,37 +6619,37 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6568
6619
  "flex items-center justify-center text-slate-300"
6569
6620
  ),
6570
6621
  children: [
6571
- /* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(Zi, {}) }),
6572
- /* @__PURE__ */ W("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
6622
+ /* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(to, {}) }),
6623
+ /* @__PURE__ */ q("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
6573
6624
  /* @__PURE__ */ h("h1", { children: O }),
6574
- /* @__PURE__ */ h("h2", { children: So })
6625
+ /* @__PURE__ */ h("h2", { children: To })
6575
6626
  ] })
6576
6627
  ]
6577
6628
  }
6578
- ), _o = () => {
6629
+ ), Co = () => {
6579
6630
  const { login: e, logoutReason: t, loginWithPasskey: r } = as(), [s, a] = ne(""), [n, i] = ne(""), [o, c] = ne(!0), [f, d] = ne({
6580
6631
  username: "",
6581
6632
  password: ""
6582
6633
  }), u = async (l) => {
6583
6634
  l.preventDefault(), await e(f.username, f.password) || (i(""), a("Invalid username or password"));
6584
6635
  };
6585
- return q(() => {
6636
+ return W(() => {
6586
6637
  document.getElementById("logo")?.classList.add("fadeOut"), setTimeout(() => {
6587
6638
  document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
6588
6639
  }, 500);
6589
- }), q(() => {
6640
+ }), W(() => {
6590
6641
  t && i(t);
6591
- }, [t]), /* @__PURE__ */ W("main", { className: fs({ extraClass: "mt-5" }), children: [
6642
+ }, [t]), /* @__PURE__ */ q("main", { className: fs({ extraClass: "mt-5" }), children: [
6592
6643
  /* @__PURE__ */ h(
6593
6644
  "div",
6594
6645
  {
6595
6646
  className: hs({
6596
6647
  extraClass: "rounded-md pb-10"
6597
6648
  }),
6598
- children: /* @__PURE__ */ h(Io, {})
6649
+ children: /* @__PURE__ */ h(Ro, {})
6599
6650
  }
6600
6651
  ),
6601
- /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(ao, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ W(Xi, { mode: "dark", children: [
6652
+ /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(io, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(eo, { mode: "dark", children: [
6602
6653
  /* @__PURE__ */ h(he, { span: 12, className: "mt-7", children: n && /* @__PURE__ */ h("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: n }) }),
6603
6654
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6604
6655
  jt,
@@ -6622,7 +6673,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6622
6673
  }
6623
6674
  ) }),
6624
6675
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6625
- As,
6676
+ Is,
6626
6677
  {
6627
6678
  className: "mt-7",
6628
6679
  required: !0,
@@ -6632,14 +6683,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6632
6683
  mode: "dark",
6633
6684
  focusMode: "light",
6634
6685
  name: "password",
6635
- label: Ao,
6686
+ label: _o,
6636
6687
  rightElement: /* @__PURE__ */ h(
6637
6688
  rt,
6638
6689
  {
6639
6690
  focusMode: "light",
6640
6691
  mode: "dark",
6641
6692
  label: o ? "Show" : "Hide",
6642
- children: o ? /* @__PURE__ */ h(ro, {}) : /* @__PURE__ */ h(eo, {})
6693
+ children: o ? /* @__PURE__ */ h(ao, {}) : /* @__PURE__ */ h(ro, {})
6643
6694
  }
6644
6695
  ),
6645
6696
  onMaskChange: c,
@@ -6654,7 +6705,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6654
6705
  }
6655
6706
  ) }),
6656
6707
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6657
- gs,
6708
+ bs,
6658
6709
  {
6659
6710
  mode: "dark",
6660
6711
  focusMode: "light",
@@ -6662,10 +6713,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6662
6713
  noBorder: !0,
6663
6714
  type: "submit",
6664
6715
  className: "mt-7",
6665
- children: vo
6716
+ children: Ao
6666
6717
  }
6667
6718
  ) }),
6668
- !ms() && /* @__PURE__ */ W(Ar, { children: [
6719
+ !ms() && /* @__PURE__ */ q(Ar, { children: [
6669
6720
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
6670
6721
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6671
6722
  rt,
@@ -6675,35 +6726,35 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6675
6726
  focusMode: "light",
6676
6727
  fullWidth: !0,
6677
6728
  className: "mb-4",
6678
- labelRight: To,
6729
+ labelRight: Io,
6679
6730
  onClick: r,
6680
- children: /* @__PURE__ */ h(to, { size: "size-7" })
6731
+ children: /* @__PURE__ */ h(so, { size: "size-7" })
6681
6732
  }
6682
6733
  ) })
6683
6734
  ] })
6684
6735
  ] }) }) }) })
6685
6736
  ] });
6686
- }, Ro = new URL(document.location.href).searchParams, vr = !!Ro.get("debug") || !1, Co = Cs(() => import(
6737
+ }, ko = new URL(document.location.href).searchParams, vr = !!ko.get("debug") || !1, Oo = ks(() => import(
6687
6738
  /* webpackChunkName: "LazyApp" */
6688
- "./App.CVZzr8SY.js"
6689
- ).then((e) => e.App)), ko = new zs(), Tr = ({
6739
+ "./App.Dgi9EXuN.js"
6740
+ ).then((e) => e.App)), No = new Xs(), Tr = ({
6690
6741
  isComponent: e,
6691
6742
  headerHeight: t
6692
6743
  }) => {
6693
6744
  const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = as();
6694
- return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Rs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(Xs, { client: ko, children: /* @__PURE__ */ h(
6695
- ci,
6745
+ return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Cs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(Zs, { client: No, children: /* @__PURE__ */ h(
6746
+ li,
6696
6747
  {
6697
6748
  user: a?.username,
6698
6749
  getAccessToken: n,
6699
- children: /* @__PURE__ */ h(Co, { isComponent: e, headerHeight: t })
6750
+ children: /* @__PURE__ */ h(Oo, { isComponent: e, headerHeight: t })
6700
6751
  }
6701
- ) }) }) : /* @__PURE__ */ h(_o, {});
6702
- }, Oo = ({
6752
+ ) }) }) : /* @__PURE__ */ h(Co, {});
6753
+ }, Po = ({
6703
6754
  isComponent: e = !1,
6704
6755
  headerHeight: t = 0,
6705
6756
  domain: r = ds
6706
- }) => (q(() => {
6757
+ }) => (W(() => {
6707
6758
  e || os().catch((s) => {
6708
6759
  console.error("[SW] Failed to register service worker:", s);
6709
6760
  });
@@ -6716,8 +6767,8 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6716
6767
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
6717
6768
  children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t })
6718
6769
  }
6719
- ) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })), tl = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
6720
- Oo,
6770
+ ) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })), al = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
6771
+ Po,
6721
6772
  {
6722
6773
  isComponent: !0,
6723
6774
  domain: e,
@@ -6725,112 +6776,114 @@ Press Ctrl+Enter to send it or Enter for new line.`, Bc = "{{clipboard}}", P = "
6725
6776
  }
6726
6777
  );
6727
6778
  export {
6728
- Fc as ABOUT_TITLE,
6729
- Wo as ACTION_RESET_PROMPT,
6730
- Go as ACTION_SEARCH,
6731
- Bo as ACTION_SORT,
6732
- qo as ACTION_TOGGLE_PROMPT,
6733
- zc as APP_CLASSNAME,
6734
- wc as Ae,
6735
- gs as C,
6736
- el as CARDS,
6737
- Bc as CLIPBOARD_PROMPT,
6738
- ac as DEFAULT_ICON_ACTION_SIZE,
6739
- jn as E,
6740
- Ko as ERROR_MESSAGE,
6741
- bc as Ee,
6742
- qc as FOOTER_DISCLAIMERS,
6743
- Uc as HISTORY_TITLE,
6779
+ Gc as ABOUT_TITLE,
6780
+ Vo as ACTION_RESET_PROMPT,
6781
+ Wo as ACTION_SEARCH,
6782
+ qo as ACTION_SORT,
6783
+ jo as ACTION_TOGGLE_PROMPT,
6784
+ el as APP_CLASSNAME,
6785
+ Tc as Ae,
6786
+ bs as C,
6787
+ sl as CARDS,
6788
+ jc as CLIPBOARD_PROMPT,
6789
+ ic as DEFAULT_ICON_ACTION_SIZE,
6790
+ Vn as E,
6791
+ Bo as ERROR_MESSAGE,
6792
+ Sc as Ee,
6793
+ Vc as FOOTER_DISCLAIMERS,
6794
+ Kc as HISTORY_TITLE,
6744
6795
  lt as I,
6745
- tc as INFINITE_SCROLL_LIMIT,
6746
- ec as INFINITE_SCROLL_THRESHOLD,
6747
- lc as INPUT_BOTTOM_OFFSET,
6748
- dc as INPUT_BOTTOM_OFFSET_EXTRA,
6749
- uc as INPUT_BOTTOM_OFFSET_IPHONE,
6750
- Gc as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
6751
- Kc as INPUT_PLACEHOLDER_TEXT_ENTER,
6752
- Hc as INPUT_PLACEHOLDER_TEXT_MOBILE,
6753
- ao as L,
6796
+ sc as INFINITE_SCROLL_LIMIT,
6797
+ rc as INFINITE_SCROLL_THRESHOLD,
6798
+ dc as INPUT_BOTTOM_OFFSET,
6799
+ mc as INPUT_BOTTOM_OFFSET_EXTRA,
6800
+ fc as INPUT_BOTTOM_OFFSET_IPAD,
6801
+ hc as INPUT_BOTTOM_OFFSET_IPHONE,
6802
+ qc as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
6803
+ Wc as INPUT_PLACEHOLDER_TEXT_ENTER,
6804
+ Bc as INPUT_PLACEHOLDER_TEXT_MOBILE,
6805
+ io as L,
6754
6806
  ns as LOCAL_STORAGE_PREFIX,
6755
- Xo as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
6756
- Zo as LOCAL_STORAGE_REASONING_DISCLOSURE,
6757
- jo as LOCAL_STORAGE_SEARCH,
6758
- Vo as LOCAL_STORAGE_SORT,
6759
- zo as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
6760
- Yo as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
6761
- Jo as LOCAL_STORAGE_SORT_TIMESTAMP,
6762
- Qo as LOCAL_STORAGE_SORT_TOKEN_USAGE,
6763
- xc as LOG_OUT,
6764
- Io as Logo,
6765
- Mc as PROFILE_TITLE,
6766
- Wc as PROMPTS_DESCRIPTION,
6767
- rc as PROMPT_CLASSNAME,
6768
- sc as PROMPT_EDITABLE_AREA_CLASSNAME,
6769
- Xi as S,
6807
+ ec as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
6808
+ tc as LOCAL_STORAGE_REASONING_DISCLOSURE,
6809
+ Jo as LOCAL_STORAGE_SEARCH,
6810
+ Qo as LOCAL_STORAGE_SORT,
6811
+ Zo as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
6812
+ Xo as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
6813
+ Yo as LOCAL_STORAGE_SORT_TIMESTAMP,
6814
+ zo as LOCAL_STORAGE_SORT_TOKEN_USAGE,
6815
+ Lc as LOG_OUT,
6816
+ Ro as Logo,
6817
+ Fc as PROFILE_TITLE,
6818
+ Jc as PROMPTS_DESCRIPTION,
6819
+ ac as PROMPT_CLASSNAME,
6820
+ nc as PROMPT_EDITABLE_AREA_CLASSNAME,
6821
+ eo as S,
6770
6822
  te as SERVICE_TYPES,
6771
- Lc as SETTINGS_TITLE,
6772
- tl as SassySaint,
6773
- Yc as TOAST_CACHE_DISABLED,
6774
- Qc as TOAST_CACHE_ENABLED,
6775
- Vc as TOAST_CHAT_DELETED,
6776
- Jc as TOAST_CHAT_SAVED,
6777
- jc as TOAST_PROVIDER_CHANGED,
6778
- Xc as TRIMESTERS,
6779
- Zc as TRIMESTERS_SHORT,
6780
- ic as UI_BUTTON_SCROLL_BUFFER,
6781
- oc as UI_DEFAULT_MAIN_HEIGHT,
6782
- cc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
6783
- nc as UI_FOOTER_BUFFER,
6784
- Dc as USAGE_TITLE,
6823
+ Hc as SETTINGS_TITLE,
6824
+ al as SassySaint,
6825
+ Zc as TOAST_CACHE_DISABLED,
6826
+ Xc as TOAST_CACHE_ENABLED,
6827
+ Yc as TOAST_CHAT_DELETED,
6828
+ zc as TOAST_CHAT_SAVED,
6829
+ Qc as TOAST_PROVIDER_CHANGED,
6830
+ tl as TRIMESTERS,
6831
+ rl as TRIMESTERS_SHORT,
6832
+ cc as UI_BUTTON_SCROLL_BUFFER,
6833
+ lc as UI_DEFAULT_MAIN_HEIGHT,
6834
+ uc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
6835
+ oc as UI_FOOTER_BUFFER,
6836
+ Uc as USAGE_TITLE,
6785
6837
  jt as Y,
6786
- mc as a,
6787
- Qi as b,
6788
- pc as c,
6789
- Oi as convertCamelCaseToReadable,
6838
+ gc as a,
6839
+ zi as b,
6840
+ bc as c,
6841
+ Pi as convertCamelCaseToReadable,
6790
6842
  O as de,
6791
- Ci as debounce,
6792
- fc as getCacheInfo,
6793
- Ei as getCurrentGeoLocation,
6843
+ ki as debounce,
6844
+ yc as getCacheInfo,
6845
+ wi as getCurrentGeoLocation,
6794
6846
  fs as getLayoutPaddingClass,
6795
6847
  hs as getMessageContaintWrapperClass,
6796
6848
  je as h,
6797
- hc as handleServiceWorkerToggle,
6798
- Es as i,
6849
+ pc as handleServiceWorkerToggle,
6850
+ ws as i,
6799
6851
  cs as i$1,
6800
6852
  ps as isProbablyMobile,
6801
- ki as isProbablyiPhone,
6853
+ Ni as isProbablyiPad,
6854
+ Oi as isProbablyiPhone,
6802
6855
  Nt as isServiceWorkerEnabled,
6803
6856
  ms as isTauri,
6804
6857
  Pe as it,
6805
6858
  he as j,
6806
- to as l,
6807
- ii as mutateCall,
6859
+ so as l,
6860
+ oi as mutateCall,
6808
6861
  as as n,
6809
- yc as ne,
6810
- Ii as numberFormatter,
6811
- bs as o,
6812
- wi as obfuscate,
6813
- vc as pe,
6814
- Ri as pluralize,
6815
- gc as re,
6816
- vi as renderDataAsList,
6817
- ni as serverUrl,
6818
- Tc as setNewProvider,
6862
+ Ec as ne,
6863
+ _i as numberFormatter,
6864
+ Es as o,
6865
+ Si as obfuscate,
6866
+ Ic as pe,
6867
+ Ci as pluralize,
6868
+ wc as re,
6869
+ Ti as renderDataAsList,
6870
+ ii as serverUrl,
6871
+ _c as setNewProvider,
6819
6872
  rt as te,
6820
- Sc as ue,
6821
- Si as unObfuscate,
6822
- Ic as useChangelogs,
6823
- Rc as useChatsHistory,
6824
- Cc as useChatsUsage,
6825
- Nc as useDeleteAllMemories,
6826
- Oc as useDeleteMemory,
6827
- Pc as useEntitlements,
6828
- Ac as useServerCapabilities,
6829
- _c as useUserChatStats,
6830
- kc as useUserMemories,
6831
- oi as useUserPreferences,
6832
- $c as utilities,
6833
- vs as x,
6834
- Vn as y,
6835
- Ec as ye
6873
+ Ac as ue,
6874
+ vi as unObfuscate,
6875
+ Cc as useChangelogs,
6876
+ Oc as useChatsHistory,
6877
+ Nc as useChatsUsage,
6878
+ xc as useDeleteAllMemories,
6879
+ $c as useDeleteMemory,
6880
+ Dc as useEntitlements,
6881
+ Rc as useServerCapabilities,
6882
+ kc as useUserChatStats,
6883
+ Pc as useUserMemories,
6884
+ ci as useUserPreferences,
6885
+ Mc as utilities,
6886
+ Ts as x,
6887
+ Jn as y,
6888
+ vc as ye
6836
6889
  };