@versini/sassysaint 8.120.2 → 8.121.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chunks/{AboutChangelog.DoiRugZu.js → AboutChangelog.CueW7QKj.js} +2 -2
  2. package/dist/chunks/{AboutEntry.2lb6aCPw.js → AboutEntry.dQ_4JNsz.js} +7 -7
  3. package/dist/chunks/{App.LXYuxuaD.js → App.6iDkXSOb.js} +16 -16
  4. package/dist/chunks/{BubbleActions.BSynTDf9.js → BubbleActions.DB_SDTs9.js} +3 -3
  5. package/dist/chunks/ButtonIconDelete.B3hYKTP6.js +668 -0
  6. package/dist/chunks/{Chart.D4ePChIu.js → Chart.m2plpxTN.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.C1YCh4fN.js → ChatBubbleAssistant.DhP5KHH7.js} +5 -5
  8. package/dist/chunks/{ChatBubbleUser.D7rYXigx.js → ChatBubbleUser.DythvYOo.js} +4 -4
  9. package/dist/chunks/HistoryEntry._G88vZeP.js +721 -0
  10. package/dist/chunks/{LoginEntry.DXYZbzqN.js → LoginEntry.BBF4_rEV.js} +4 -4
  11. package/dist/chunks/{LogoEntry.DfnJLwfC.js → LogoEntry.BtwLANob.js} +82 -116
  12. package/dist/chunks/{MemoriesEntry.CWLD3Ziw.js → MemoriesEntry.r2Wtd8nu.js} +34 -35
  13. package/dist/chunks/{ProfileEntry.CF04C2No.js → ProfileEntry.DwGmWxH2.js} +4 -4
  14. package/dist/chunks/{SettingsEntry.CyITTF2y.js → SettingsEntry.D7b4vTwv.js} +5 -5
  15. package/dist/chunks/{UsageEntry.CYDJzsdG.js → UsageEntry.BB5KalRi.js} +5 -5
  16. package/dist/chunks/{_baseUniq.CSGd2q_x.js → _baseUniq.22z3R--R.js} +1 -1
  17. package/dist/chunks/{arc.BJiHJp13.js → arc.Cg0BJN6o.js} +1 -1
  18. package/dist/chunks/{architecture-U656AL7Q.DsDjCJCZ.js → architecture-U656AL7Q.D7Nmp0uq.js} +1 -1
  19. package/dist/chunks/{architectureDiagram-VXUJARFQ.BY-J8uT9.js → architectureDiagram-VXUJARFQ.D58LaEiy.js} +4 -4
  20. package/dist/chunks/{blockDiagram-VD42YOAC.DK7lHaHz.js → blockDiagram-VD42YOAC.BS_n-q2N.js} +5 -5
  21. package/dist/chunks/{browser.BsROFTmt.js → browser.YA6spcA7.js} +1 -1
  22. package/dist/chunks/{c4Diagram-YG6GDRKO.Qe2wImGt.js → c4Diagram-YG6GDRKO.lVOg2-ZH.js} +2 -2
  23. package/dist/chunks/{channel.DePjU_zU.js → channel.DqxR-oS7.js} +1 -1
  24. package/dist/chunks/{chunk-4BX2VUAB.CpiHY6xd.js → chunk-4BX2VUAB.D5lbe9g-.js} +1 -1
  25. package/dist/chunks/{chunk-55IACEB6.D9v7O2f8.js → chunk-55IACEB6.BlgGY9Q6.js} +1 -1
  26. package/dist/chunks/{chunk-B4BG7PRW.CZiUAwII.js → chunk-B4BG7PRW.Bn-86p3H.js} +4 -4
  27. package/dist/chunks/{chunk-DI55MBZ5.CsrXEMzK.js → chunk-DI55MBZ5.C2fqe7wu.js} +3 -3
  28. package/dist/chunks/{chunk-FMBD7UC4.kvQChVDk.js → chunk-FMBD7UC4.8IJZbT_o.js} +1 -1
  29. package/dist/chunks/{chunk-QN33PNHL.C52xMkBM.js → chunk-QN33PNHL.DOV2bTYS.js} +1 -1
  30. package/dist/chunks/{chunk-QZHKN3VN.DoS3CMXU.js → chunk-QZHKN3VN.CM1K8z3e.js} +1 -1
  31. package/dist/chunks/{chunk-TZMSLE5B.DSg6yj4E.js → chunk-TZMSLE5B.CH_b17FM.js} +1 -1
  32. package/dist/chunks/{classDiagram-2ON5EDUG.sF4InxFe.js → classDiagram-2ON5EDUG.DeWSBBaZ.js} +2 -2
  33. package/dist/chunks/{classDiagram-v2-WZHVMYZB.sF4InxFe.js → classDiagram-v2-WZHVMYZB.DeWSBBaZ.js} +2 -2
  34. package/dist/chunks/{clone.CVPkDcM5.js → clone.B0TtmQHA.js} +1 -1
  35. package/dist/chunks/{cose-bilkent-S5V4N54A.BfP6Pw4_.js → cose-bilkent-S5V4N54A.IzOlhIoo.js} +2 -2
  36. package/dist/chunks/{dagre-6UL2VRFP.CDSC4KTt.js → dagre-6UL2VRFP.COZ3hsXn.js} +5 -5
  37. package/dist/chunks/{diagram-PSM6KHXK.BKu8xN5f.js → diagram-PSM6KHXK.JEnBJXhp.js} +4 -4
  38. package/dist/chunks/{diagram-QEK2KX5R.CV6FCkl1.js → diagram-QEK2KX5R.Bb3EEO2D.js} +3 -3
  39. package/dist/chunks/{diagram-S2PKOQOG.CE2fqmGK.js → diagram-S2PKOQOG.B_aUDr5F.js} +3 -3
  40. package/dist/chunks/{erDiagram-Q2GNP2WA.DvPF0zmB.js → erDiagram-Q2GNP2WA.CYpL6V9w.js} +4 -4
  41. package/dist/chunks/{flowDiagram-NV44I4VS.DuwDLdNV.js → flowDiagram-NV44I4VS.CF9-8TaP.js} +5 -5
  42. package/dist/chunks/{ganttDiagram-JELNMOA3.COhtg4Ox.js → ganttDiagram-JELNMOA3.CdE8GB2s.js} +2 -2
  43. package/dist/chunks/{gitGraph-F6HP7TQM.DlTeaeqU.js → gitGraph-F6HP7TQM.BWmUmcZV.js} +1 -1
  44. package/dist/chunks/{gitGraphDiagram-NY62KEGX.D9HKSUvx.js → gitGraphDiagram-NY62KEGX.Cn0Cu7Ww.js} +4 -4
  45. package/dist/chunks/{graph.CVvFC68c.js → graph.B0nity3n.js} +2 -2
  46. package/dist/chunks/{index.BDAcSpU5.js → index.Biab5cek.js} +1 -1
  47. package/dist/chunks/{index.Bk1zpyWs.js → index.BkSC8d7B.js} +3 -3
  48. package/dist/chunks/{index.DGQNdcmV.js → index.C2WmpF2e.js} +1 -1
  49. package/dist/chunks/{index.B8Hpndux.js → index.CAuXCAe5.js} +1 -1
  50. package/dist/chunks/{index.B0rqfWlE.js → index.CJxTPes-.js} +1 -1
  51. package/dist/chunks/{index.D53DWjsz.js → index.Ci5e_98Z.js} +3 -3
  52. package/dist/chunks/{index.I0YKXWDW.js → index.D3dY6con.js} +1 -1
  53. package/dist/chunks/{index.CPrdgeh7.js → index.D_0HoqM8.js} +1 -1
  54. package/dist/chunks/{index.MdqXJbz5.js → index.Ds4-4dzy.js} +316 -344
  55. package/dist/chunks/{info-NVLQJR56.D3stHz25.js → info-NVLQJR56.DfoQxnaP.js} +1 -1
  56. package/dist/chunks/{infoDiagram-WHAUD3N6.BIvDCJy6.js → infoDiagram-WHAUD3N6.CbDQCj4t.js} +2 -2
  57. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BdAmj6HJ.js → journeyDiagram-XKPGCS4Q.BGwMjBf9.js} +4 -4
  58. package/dist/chunks/{kanban-definition-3W4ZIXB7.CqK6qeLd.js → kanban-definition-3W4ZIXB7.CS-TV1ji.js} +2 -2
  59. package/dist/chunks/{layout.BdufB78T.js → layout.DKjnDekM.js} +4 -4
  60. package/dist/chunks/{mermaid-parser.core.VCpWUlic.js → mermaid-parser.core.CBflstHb.js} +10 -10
  61. package/dist/chunks/{min.DgG7zTox.js → min.eDGqv0vt.js} +2 -2
  62. package/dist/chunks/{mindmap-definition-VGOIOE7T.BW-PNhZD.js → mindmap-definition-VGOIOE7T.GckYx6Fd.js} +3 -3
  63. package/dist/chunks/{packet-BFZMPI3H.BUoS4gNB.js → packet-BFZMPI3H.DzGbdOiU.js} +1 -1
  64. package/dist/chunks/{pie-7BOR55EZ.BlIbPo6j.js → pie-7BOR55EZ.CRxLvxJh.js} +1 -1
  65. package/dist/chunks/{pieDiagram-ADFJNKIX.NE-fVH6e.js → pieDiagram-ADFJNKIX.BuekQ8o8.js} +4 -4
  66. package/dist/chunks/{quadrantDiagram-AYHSOK5B.hstKbyhk.js → quadrantDiagram-AYHSOK5B.Cz1W80fL.js} +1 -1
  67. package/dist/chunks/{radar-NHE76QYJ.BWSNlMTC.js → radar-NHE76QYJ.D_eJ0pAQ.js} +1 -1
  68. package/dist/chunks/{rehype-mermaid.CysVWi5J.js → rehype-mermaid.C6vWaLbm.js} +33 -33
  69. package/dist/chunks/{requirementDiagram-UZGBJVZJ.Chaf_g91.js → requirementDiagram-UZGBJVZJ.D29ENfNv.js} +3 -3
  70. package/dist/chunks/{sankeyDiagram-TZEHDZUN.CK88CAhG.js → sankeyDiagram-TZEHDZUN.BkA8zy0e.js} +1 -1
  71. package/dist/chunks/{sequenceDiagram-WL72ISMW.DaHa-qh1.js → sequenceDiagram-WL72ISMW.CohhptW1.js} +3 -3
  72. package/dist/chunks/{stateDiagram-FKZM4ZOC.CkNLPjIg.js → stateDiagram-FKZM4ZOC.DXcdl9T3.js} +4 -4
  73. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.Dzi34EM6.js → stateDiagram-v2-4FDKWEC3.CyTSxcZ6.js} +2 -2
  74. package/dist/chunks/{timeline-definition-IT6M3QCI.BsHG309-.js → timeline-definition-IT6M3QCI.BvhsFWgy.js} +2 -2
  75. package/dist/chunks/{treemap-KMMF4GRG.CiCns-I1.js → treemap-KMMF4GRG.DdhwEUUj.js} +1 -1
  76. package/dist/chunks/{useMarkdown.CYWo-hGo.js → useMarkdown.CdWXCETb.js} +8 -8
  77. package/dist/chunks/{xychartDiagram-PRI3JC2R.xfQd6NZ0.js → xychartDiagram-PRI3JC2R.vlO9NN_Y.js} +1 -1
  78. package/dist/components/SassySaint/SassySaint.js +1 -1
  79. package/dist/index.js +3 -3
  80. package/package.json +3 -3
  81. package/dist/chunks/ButtonIconDelete.wI-EXJFx.js +0 -550
  82. package/dist/chunks/HistoryDataGrid.B7G6X-Tv.js +0 -467
  83. package/dist/chunks/HistoryEntry.DJE028Vp.js +0 -305
  84. package/dist/chunks/InlineFilter.CdKFyOpD.js +0 -123
@@ -1,12 +1,12 @@
1
1
  import { jsx as S, jsxs as Ws } from "react/jsx-runtime";
2
2
  import * as D from "react";
3
- import Vs, { createContext as ut, useReducer as Js, useCallback as Q, useRef as Ys, useEffect as me, useSyncExternalStore as zs, useContext as lt, useState as Xs, useMemo as Tt, Suspense as At, lazy as zt } from "react";
3
+ import Js, { createContext as ut, useReducer as Vs, useCallback as Q, useRef as Ys, useEffect as me, useSyncExternalStore as zs, useContext as lt, useState as Xs, useMemo as Tt, Suspense as At, lazy as zt } from "react";
4
4
  import $e from "clsx";
5
- var g, T = ((g = {})[g.NewChat = 0] = "NewChat", g[g.Prompts = 1] = "Prompts", g[g.Attachment = 2] = "Attachment", g[g.PrivateChat = 3] = "PrivateChat", g[g.Reasoning = 4] = "Reasoning", g[g.Send = 5] = "Send", g[g.Header = 6] = "Header", g[g.Provider = 7] = "Provider", g[g.Logo = 8] = "Logo", g[g.Placeholder = 9] = "Placeholder", g[g.Footer = 10] = "Footer", g);
6
- let qi = "user", Bi = "assistant", xe = "OpenAI", dt = "Anthropic", ht = "Google", Zs = "Perplexity", ji = xe, er = [xe, dt, ht], Xt = "gpt-5.2", Zt = "gpt-5-mini", es = "gpt-5-nano", ts = "gpt-4.1-nano", ss = "claude-haiku-4-5", rs = "claude-sonnet-4-5", ns = "gemini-3-flash-preview", is = "gemini-3-pro-preview", as = "sonar", os = "sonar-pro", tr = "gemini-3-pro-image-preview", Qi = { [Xt]: "GPT-5.2", [Zt]: "GPT-5 Mini", [es]: "GPT-5 Nano", [ts]: "GPT-4.1 Nano", [ss]: "Claude Haiku 4.5", [rs]: "Claude Sonnet 4.5", [ns]: "Gemini 3 Flash", [is]: "Gemini 3 Pro", [as]: "Sonar", [os]: "Sonar Pro", [tr]: "Nano Banana Pro" }, cs = { [xe]: [ts, Xt, Zt, es], [dt]: [ss, rs], [ht]: [ns, is], [Zs]: [as, os] }, Wi = "x-diggidy-chat-id", Vi = "timestamp", Ji = "tokenUsage", Yi = "Diggidy", zi = { TOOL: { MEMORIES: "getUserMemories" }, ADDON: { ATTACHMENTS: "addon:attachments", REASONING: "addon:reasoning" } }, Xi = (e) => {
5
+ var g, w = ((g = {})[g.NewChat = 0] = "NewChat", g[g.Prompts = 1] = "Prompts", g[g.Attachment = 2] = "Attachment", g[g.PrivateChat = 3] = "PrivateChat", g[g.Reasoning = 4] = "Reasoning", g[g.Send = 5] = "Send", g[g.Header = 6] = "Header", g[g.Provider = 7] = "Provider", g[g.Logo = 8] = "Logo", g[g.Placeholder = 9] = "Placeholder", g[g.Footer = 10] = "Footer", g);
6
+ let qi = "user", Bi = "assistant", Ge = "OpenAI", dt = "Anthropic", ht = "Google", Zs = "Perplexity", ji = Ge, er = [Ge, dt, ht], Xt = "gpt-5.2", Zt = "gpt-5-mini", es = "gpt-5-nano", ts = "gpt-4.1-nano", ss = "claude-haiku-4-5", rs = "claude-sonnet-4-5", ns = "gemini-3-flash-preview", is = "gemini-3-pro-preview", as = "sonar", os = "sonar-pro", tr = "gemini-3-pro-image-preview", Qi = { [Xt]: "GPT-5.2", [Zt]: "GPT-5 Mini", [es]: "GPT-5 Nano", [ts]: "GPT-4.1 Nano", [ss]: "Claude Haiku 4.5", [rs]: "Claude Sonnet 4.5", [ns]: "Gemini 3 Flash", [is]: "Gemini 3 Pro", [as]: "Sonar", [os]: "Sonar Pro", [tr]: "Nano Banana Pro" }, cs = { [Ge]: [ts, Xt, Zt, es], [dt]: [ss, rs], [ht]: [ns, is], [Zs]: [as, os] }, Wi = "x-diggidy-chat-id", Ji = "timestamp", Vi = "tokenUsage", Yi = "Diggidy", zi = { TOOL: { MEMORIES: "getUserMemories" }, ADDON: { ATTACHMENTS: "addon:attachments", REASONING: "addon:reasoning" } }, Xi = (e) => {
7
7
  if (!e || e.length === 0) return [];
8
8
  let t = /* @__PURE__ */ new Set();
9
- for (let s of e) for (let [r, n] of Object.entries(cs)) n.includes(s) && (r === xe || r === dt || r === ht) && t.add(r);
9
+ for (let s of e) for (let [r, n] of Object.entries(cs)) n.includes(s) && (r === Ge || r === dt || r === ht) && t.add(r);
10
10
  return er.filter((s) => t.has(s));
11
11
  }, sr = (e) => {
12
12
  let t = /* @__PURE__ */ new Map();
@@ -27,26 +27,26 @@ function rr(e, t, s) {
27
27
  }
28
28
  var ta = "subtle";
29
29
  const nr = {
30
- [T.NewChat]: "fill-[#7A9BC4]",
31
- [T.Prompts]: "fill-[#B8A4D5]",
32
- [T.Attachment]: "fill-[#D4B896]",
33
- [T.PrivateChat]: "fill-[#DA8787]",
34
- [T.Reasoning]: "fill-[#87BBA2]",
35
- [T.Send]: "fill-[#A8B5D4]",
36
- [T.Header]: "text-copy-medium",
37
- [T.Provider]: "fill-copy-medium",
38
- [T.Placeholder]: "placeholder:text-copy-medium/70"
30
+ [w.NewChat]: "fill-[#7A9BC4]",
31
+ [w.Prompts]: "fill-[#B8A4D5]",
32
+ [w.Attachment]: "fill-[#D4B896]",
33
+ [w.PrivateChat]: "fill-[#DA8787]",
34
+ [w.Reasoning]: "fill-[#87BBA2]",
35
+ [w.Send]: "fill-[#A8B5D4]",
36
+ [w.Header]: "text-copy-medium",
37
+ [w.Provider]: "fill-copy-medium",
38
+ [w.Placeholder]: "placeholder:text-copy-medium/70"
39
39
  }, ir = {
40
- [T.NewChat]: "fill-[#91BBED] dark:fill-[#7A9BC4]",
41
- [T.Prompts]: "fill-[#B89FDC] dark:fill-[#B8A4D5]",
42
- [T.Attachment]: "fill-[#D7B286] dark:fill-[#D4B896]",
43
- [T.PrivateChat]: "fill-[#DA8787] dark:fill-[#DA8787]",
44
- [T.Reasoning]: "fill-[#86D0AC] dark:fill-[#87BBA2]",
45
- [T.Send]: "fill-[#B3C5F0] dark:fill-[#A8B5D4]",
46
- [T.Header]: "text-copy-medium",
47
- [T.Provider]: "fill-copy-medium",
48
- [T.Placeholder]: "placeholder:text-copy-medium dark:placeholder:text-copy-medium/70",
49
- [T.Footer]: "text-copy-dark dark:text-copy-medium"
40
+ [w.NewChat]: "fill-[#91BBED] dark:fill-[#7A9BC4]",
41
+ [w.Prompts]: "fill-[#B89FDC] dark:fill-[#B8A4D5]",
42
+ [w.Attachment]: "fill-[#D7B286] dark:fill-[#D4B896]",
43
+ [w.PrivateChat]: "fill-[#DA8787] dark:fill-[#DA8787]",
44
+ [w.Reasoning]: "fill-[#86D0AC] dark:fill-[#87BBA2]",
45
+ [w.Send]: "fill-[#B3C5F0] dark:fill-[#A8B5D4]",
46
+ [w.Header]: "text-copy-medium",
47
+ [w.Provider]: "fill-copy-medium",
48
+ [w.Placeholder]: "placeholder:text-copy-medium dark:placeholder:text-copy-medium/70",
49
+ [w.Footer]: "text-copy-dark dark:text-copy-medium"
50
50
  };
51
51
  var Se = class {
52
52
  constructor() {
@@ -106,11 +106,11 @@ var Se = class {
106
106
  clearInterval(e) {
107
107
  this.#e.clearInterval(e);
108
108
  }
109
- }, re = new or();
109
+ }, se = new or();
110
110
  function cr(e) {
111
111
  setTimeout(e, 0);
112
112
  }
113
- var ne = typeof window > "u" || "Deno" in globalThis;
113
+ var re = typeof window > "u" || "Deno" in globalThis;
114
114
  function U() {
115
115
  }
116
116
  function ur(e, t) {
@@ -157,7 +157,7 @@ function Rt(e, t) {
157
157
  if (!t.options.mutationKey)
158
158
  return !1;
159
159
  if (s) {
160
- if (ie(t.options.mutationKey) !== ie(i))
160
+ if (ne(t.options.mutationKey) !== ne(i))
161
161
  return !1;
162
162
  } else if (!Re(t.options.mutationKey, i))
163
163
  return !1;
@@ -165,9 +165,9 @@ function Rt(e, t) {
165
165
  return !(r && t.state.status !== r || n && !n(t));
166
166
  }
167
167
  function ft(e, t) {
168
- return (t?.queryKeyHashFn || ie)(e);
168
+ return (t?.queryKeyHashFn || ne)(e);
169
169
  }
170
- function ie(e) {
170
+ function ne(e) {
171
171
  return JSON.stringify(
172
172
  e,
173
173
  (t, s) => rt(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
@@ -224,7 +224,7 @@ function It(e) {
224
224
  }
225
225
  function dr(e) {
226
226
  return new Promise((t) => {
227
- re.setTimeout(t, e);
227
+ se.setTimeout(t, e);
228
228
  });
229
229
  }
230
230
  function nt(e, t, s) {
@@ -273,7 +273,7 @@ var yr = class extends Se {
273
273
  #s;
274
274
  constructor() {
275
275
  super(), this.#s = (e) => {
276
- if (!ne && window.addEventListener) {
276
+ if (!re && window.addEventListener) {
277
277
  const t = () => e();
278
278
  return window.addEventListener("visibilitychange", t, !1), () => {
279
279
  window.removeEventListener("visibilitychange", t);
@@ -387,13 +387,13 @@ function Er() {
387
387
  }
388
388
  };
389
389
  }
390
- var A = Er(), gr = class extends Se {
390
+ var T = Er(), gr = class extends Se {
391
391
  #e = !0;
392
392
  #t;
393
393
  #s;
394
394
  constructor() {
395
395
  super(), this.#s = (e) => {
396
- if (!ne && window.addEventListener) {
396
+ if (!re && window.addEventListener) {
397
397
  const t = () => e(!0), s = () => e(!1);
398
398
  return window.addEventListener("online", t, !1), window.addEventListener("offline", s, !1), () => {
399
399
  window.removeEventListener("online", t), window.removeEventListener("offline", s);
@@ -458,19 +458,19 @@ function hs(e) {
458
458
  const O = s === 0 ? e.initialPromise : void 0;
459
459
  try {
460
460
  y = O ?? e.fn();
461
- } catch (b) {
462
- y = Promise.reject(b);
461
+ } catch (A) {
462
+ y = Promise.reject(A);
463
463
  }
464
- Promise.resolve(y).then(d).catch((b) => {
464
+ Promise.resolve(y).then(d).catch((A) => {
465
465
  if (i())
466
466
  return;
467
- const L = e.retry ?? (ne ? 0 : 3), H = e.retryDelay ?? Sr, G = typeof H == "function" ? H(s, b) : H, x = L === !0 || typeof L == "number" && s < L || typeof L == "function" && L(s, b);
468
- if (t || !x) {
469
- l(b);
467
+ const L = e.retry ?? (re ? 0 : 3), H = e.retryDelay ?? Sr, x = typeof H == "function" ? H(s, A) : H, G = L === !0 || typeof L == "number" && s < L || typeof L == "function" && L(s, A);
468
+ if (t || !G) {
469
+ l(A);
470
470
  return;
471
471
  }
472
- s++, e.onFail?.(s, b), dr(G).then(() => h() ? void 0 : p()).then(() => {
473
- t ? l(b) : f();
472
+ s++, e.onFail?.(s, A), dr(x).then(() => h() ? void 0 : p()).then(() => {
473
+ t ? l(A) : f();
474
474
  });
475
475
  });
476
476
  };
@@ -491,18 +491,18 @@ var fs = class {
491
491
  this.clearGcTimeout();
492
492
  }
493
493
  scheduleGc() {
494
- this.clearGcTimeout(), tt(this.gcTime) && (this.#e = re.setTimeout(() => {
494
+ this.clearGcTimeout(), tt(this.gcTime) && (this.#e = se.setTimeout(() => {
495
495
  this.optionalRemove();
496
496
  }, this.gcTime));
497
497
  }
498
498
  updateGcTime(e) {
499
499
  this.gcTime = Math.max(
500
500
  this.gcTime || 0,
501
- e ?? (ne ? 1 / 0 : 300 * 1e3)
501
+ e ?? (re ? 1 / 0 : 300 * 1e3)
502
502
  );
503
503
  }
504
504
  clearGcTimeout() {
505
- this.#e && (re.clearTimeout(this.#e), this.#e = void 0);
505
+ this.#e && (se.clearTimeout(this.#e), this.#e = void 0);
506
506
  }
507
507
  }, wr = class extends fs {
508
508
  #e;
@@ -763,7 +763,7 @@ var fs = class {
763
763
  };
764
764
  }
765
765
  };
766
- this.state = t(this.state), A.batch(() => {
766
+ this.state = t(this.state), T.batch(() => {
767
767
  this.observers.forEach((s) => {
768
768
  s.onQueryUpdate();
769
769
  }), this.#s.notify({ query: this, type: "updated", action: e });
@@ -926,10 +926,10 @@ var Tr = class extends Se {
926
926
  this.options.staleTime,
927
927
  this.#t
928
928
  );
929
- if (ne || this.#n.isStale || !tt(e))
929
+ if (re || this.#n.isStale || !tt(e))
930
930
  return;
931
931
  const s = us(this.#n.dataUpdatedAt, e) + 1;
932
- this.#u = re.setTimeout(() => {
932
+ this.#u = se.setTimeout(() => {
933
933
  this.#n.isStale || this.updateResult();
934
934
  }, s);
935
935
  }
@@ -937,7 +937,7 @@ var Tr = class extends Se {
937
937
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
938
938
  }
939
939
  #g(e) {
940
- this.#T(), this.#c = e, !(ne || K(this.options.enabled, this.#t) === !1 || !tt(this.#c) || this.#c === 0) && (this.#l = re.setInterval(() => {
940
+ this.#T(), this.#c = e, !(re || K(this.options.enabled, this.#t) === !1 || !tt(this.#c) || this.#c === 0) && (this.#l = se.setInterval(() => {
941
941
  (this.options.refetchIntervalInBackground || yt.isFocused()) && this.#d();
942
942
  }, this.#c));
943
943
  }
@@ -945,16 +945,16 @@ var Tr = class extends Se {
945
945
  this.#m(), this.#g(this.#E());
946
946
  }
947
947
  #w() {
948
- this.#u && (re.clearTimeout(this.#u), this.#u = void 0);
948
+ this.#u && (se.clearTimeout(this.#u), this.#u = void 0);
949
949
  }
950
950
  #T() {
951
- this.#l && (re.clearInterval(this.#l), this.#l = void 0);
951
+ this.#l && (se.clearInterval(this.#l), this.#l = void 0);
952
952
  }
953
953
  createResult(e, t) {
954
954
  const s = this.#t, r = this.options, n = this.#n, i = this.#r, a = this.#a, c = e !== s ? e.state : this.#s, { state: h } = e;
955
955
  let u = { ...h }, d = !1, l;
956
956
  if (t._optimisticResults) {
957
- const I = this.hasListeners(), F = !I && Ct(e, t), ee = I && Pt(e, s, t, r);
957
+ const v = this.hasListeners(), F = !v && Ct(e, t), ee = v && Pt(e, s, t, r);
958
958
  (F || ee) && (u = {
959
959
  ...u,
960
960
  ...ps(h.data, e.options)
@@ -964,13 +964,13 @@ var Tr = class extends Se {
964
964
  l = u.data;
965
965
  let O = !1;
966
966
  if (t.placeholderData !== void 0 && l === void 0 && y === "pending") {
967
- let I;
968
- n?.isPlaceholderData && t.placeholderData === a?.placeholderData ? (I = n.data, O = !0) : I = typeof t.placeholderData == "function" ? t.placeholderData(
967
+ let v;
968
+ n?.isPlaceholderData && t.placeholderData === a?.placeholderData ? (v = n.data, O = !0) : v = typeof t.placeholderData == "function" ? t.placeholderData(
969
969
  this.#f?.state.data,
970
970
  this.#f
971
- ) : t.placeholderData, I !== void 0 && (y = "success", l = nt(
971
+ ) : t.placeholderData, v !== void 0 && (y = "success", l = nt(
972
972
  n?.data,
973
- I,
973
+ v,
974
974
  t
975
975
  ), d = !0);
976
976
  }
@@ -980,18 +980,18 @@ var Tr = class extends Se {
980
980
  else
981
981
  try {
982
982
  this.#y = t.select, l = t.select(l), l = nt(n?.data, l, t), this.#h = l, this.#i = null;
983
- } catch (I) {
984
- this.#i = I;
983
+ } catch (v) {
984
+ this.#i = v;
985
985
  }
986
986
  this.#i && (p = this.#i, l = this.#h, f = Date.now(), y = "error");
987
- const b = u.fetchStatus === "fetching", L = y === "pending", H = y === "error", G = L && b, x = l !== void 0, N = {
987
+ const A = u.fetchStatus === "fetching", L = y === "pending", H = y === "error", x = L && A, G = l !== void 0, N = {
988
988
  status: y,
989
989
  fetchStatus: u.fetchStatus,
990
990
  isPending: L,
991
991
  isSuccess: y === "success",
992
992
  isError: H,
993
- isInitialLoading: G,
994
- isLoading: G,
993
+ isInitialLoading: x,
994
+ isLoading: x,
995
995
  data: l,
996
996
  dataUpdatedAt: u.dataUpdatedAt,
997
997
  error: p,
@@ -1001,27 +1001,27 @@ var Tr = class extends Se {
1001
1001
  errorUpdateCount: u.errorUpdateCount,
1002
1002
  isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
1003
1003
  isFetchedAfterMount: u.dataUpdateCount > c.dataUpdateCount || u.errorUpdateCount > c.errorUpdateCount,
1004
- isFetching: b,
1005
- isRefetching: b && !L,
1006
- isLoadingError: H && !x,
1004
+ isFetching: A,
1005
+ isRefetching: A && !L,
1006
+ isLoadingError: H && !G,
1007
1007
  isPaused: u.fetchStatus === "paused",
1008
1008
  isPlaceholderData: d,
1009
- isRefetchError: H && x,
1009
+ isRefetchError: H && G,
1010
1010
  isStale: mt(e, t),
1011
1011
  refetch: this.refetch,
1012
1012
  promise: this.#o,
1013
1013
  isEnabled: K(t.enabled, e) !== !1
1014
1014
  };
1015
1015
  if (this.options.experimental_prefetchInRender) {
1016
- const I = (oe) => {
1016
+ const v = (oe) => {
1017
1017
  N.status === "error" ? oe.reject(N.error) : N.data !== void 0 && oe.resolve(N.data);
1018
1018
  }, F = () => {
1019
1019
  const oe = this.#o = N.promise = it();
1020
- I(oe);
1020
+ v(oe);
1021
1021
  }, ee = this.#o;
1022
1022
  switch (ee.status) {
1023
1023
  case "pending":
1024
- e.queryHash === s.queryHash && I(ee);
1024
+ e.queryHash === s.queryHash && v(ee);
1025
1025
  break;
1026
1026
  case "fulfilled":
1027
1027
  (N.status === "error" || N.data !== ee.value) && F();
@@ -1065,7 +1065,7 @@ var Tr = class extends Se {
1065
1065
  this.updateResult(), this.hasListeners() && this.#S();
1066
1066
  }
1067
1067
  #v(e) {
1068
- A.batch(() => {
1068
+ T.batch(() => {
1069
1069
  e.listeners && this.listeners.forEach((t) => {
1070
1070
  t(this.#n);
1071
1071
  }), this.#e.getQueryCache().notify({
@@ -1124,18 +1124,18 @@ function Mt(e) {
1124
1124
  meta: t.options.meta
1125
1125
  };
1126
1126
  return d(we), we;
1127
- })(), H = await l(L), { maxPages: G } = t.options, x = O ? fr : hr;
1127
+ })(), H = await l(L), { maxPages: x } = t.options, G = O ? fr : hr;
1128
1128
  return {
1129
- pages: x(f.pages, H, G),
1130
- pageParams: x(f.pageParams, y, G)
1129
+ pages: G(f.pages, H, x),
1130
+ pageParams: G(f.pageParams, y, x)
1131
1131
  };
1132
1132
  };
1133
1133
  if (n && i.length) {
1134
1134
  const f = n === "backward", y = f ? Rr : kt, O = {
1135
1135
  pages: i,
1136
1136
  pageParams: a
1137
- }, b = y(r, O);
1138
- o = await p(O, b, f);
1137
+ }, A = y(r, O);
1138
+ o = await p(O, A, f);
1139
1139
  } else {
1140
1140
  const f = e ?? i.length;
1141
1141
  do {
@@ -1380,7 +1380,7 @@ var br = class extends fs {
1380
1380
  };
1381
1381
  }
1382
1382
  };
1383
- this.state = t(this.state), A.batch(() => {
1383
+ this.state = t(this.state), T.batch(() => {
1384
1384
  this.#t.forEach((s) => {
1385
1385
  s.onMutationUpdate(e);
1386
1386
  }), this.#s.notify({
@@ -1459,7 +1459,7 @@ var Ir = class extends Se {
1459
1459
  return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
1460
1460
  }
1461
1461
  clear() {
1462
- A.batch(() => {
1462
+ T.batch(() => {
1463
1463
  this.#e.forEach((e) => {
1464
1464
  this.notify({ type: "removed", mutation: e });
1465
1465
  }), this.#e.clear(), this.#t.clear();
@@ -1478,7 +1478,7 @@ var Ir = class extends Se {
1478
1478
  return this.getAll().filter((t) => Rt(e, t));
1479
1479
  }
1480
1480
  notify(e) {
1481
- A.batch(() => {
1481
+ T.batch(() => {
1482
1482
  this.listeners.forEach((t) => {
1483
1483
  t(e);
1484
1484
  });
@@ -1486,7 +1486,7 @@ var Ir = class extends Se {
1486
1486
  }
1487
1487
  resumePausedMutations() {
1488
1488
  const e = this.getAll().filter((t) => t.state.isPaused);
1489
- return A.batch(
1489
+ return T.batch(
1490
1490
  () => Promise.all(
1491
1491
  e.map((t) => t.continue().catch(U))
1492
1492
  )
@@ -1513,7 +1513,7 @@ var Or = class extends Se {
1513
1513
  type: "observerOptionsUpdated",
1514
1514
  mutation: this.#s,
1515
1515
  observer: this
1516
- }), t?.mutationKey && this.options.mutationKey && ie(t.mutationKey) !== ie(this.options.mutationKey) ? this.reset() : this.#s?.state.status === "pending" && this.#s.setOptions(this.options);
1516
+ }), t?.mutationKey && this.options.mutationKey && ne(t.mutationKey) !== ne(this.options.mutationKey) ? this.reset() : this.#s?.state.status === "pending" && this.#s.setOptions(this.options);
1517
1517
  }
1518
1518
  onUnsubscribe() {
1519
1519
  this.hasListeners() || this.#s?.removeObserver(this);
@@ -1543,7 +1543,7 @@ var Or = class extends Se {
1543
1543
  };
1544
1544
  }
1545
1545
  #a(e) {
1546
- A.batch(() => {
1546
+ T.batch(() => {
1547
1547
  if (this.#n && this.hasListeners()) {
1548
1548
  const t = this.#t.variables, s = this.#t.context, r = {
1549
1549
  client: this.#e,
@@ -1629,7 +1629,7 @@ var Or = class extends Se {
1629
1629
  t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
1630
1630
  }
1631
1631
  clear() {
1632
- A.batch(() => {
1632
+ T.batch(() => {
1633
1633
  this.getAll().forEach((e) => {
1634
1634
  this.remove(e);
1635
1635
  });
@@ -1652,21 +1652,21 @@ var Or = class extends Se {
1652
1652
  return Object.keys(e).length > 0 ? t.filter((s) => vt(e, s)) : t;
1653
1653
  }
1654
1654
  notify(e) {
1655
- A.batch(() => {
1655
+ T.batch(() => {
1656
1656
  this.listeners.forEach((t) => {
1657
1657
  t(e);
1658
1658
  });
1659
1659
  });
1660
1660
  }
1661
1661
  onFocus() {
1662
- A.batch(() => {
1662
+ T.batch(() => {
1663
1663
  this.getAll().forEach((e) => {
1664
1664
  e.onFocus();
1665
1665
  });
1666
1666
  });
1667
1667
  }
1668
1668
  onOnline() {
1669
- A.batch(() => {
1669
+ T.batch(() => {
1670
1670
  this.getAll().forEach((e) => {
1671
1671
  e.onOnline();
1672
1672
  });
@@ -1729,7 +1729,7 @@ var Or = class extends Se {
1729
1729
  return this.#e.build(this, r).setData(a, { ...s, manual: !0 });
1730
1730
  }
1731
1731
  setQueriesData(e, t, s) {
1732
- return A.batch(
1732
+ return T.batch(
1733
1733
  () => this.#e.findAll(e).map(({ queryKey: r }) => [
1734
1734
  r,
1735
1735
  this.setQueryData(r, t, s)
@@ -1744,7 +1744,7 @@ var Or = class extends Se {
1744
1744
  }
1745
1745
  removeQueries(e) {
1746
1746
  const t = this.#e;
1747
- A.batch(() => {
1747
+ T.batch(() => {
1748
1748
  t.findAll(e).forEach((s) => {
1749
1749
  t.remove(s);
1750
1750
  });
@@ -1752,7 +1752,7 @@ var Or = class extends Se {
1752
1752
  }
1753
1753
  resetQueries(e, t) {
1754
1754
  const s = this.#e;
1755
- return A.batch(() => (s.findAll(e).forEach((r) => {
1755
+ return T.batch(() => (s.findAll(e).forEach((r) => {
1756
1756
  r.reset();
1757
1757
  }), this.refetchQueries(
1758
1758
  {
@@ -1763,13 +1763,13 @@ var Or = class extends Se {
1763
1763
  )));
1764
1764
  }
1765
1765
  cancelQueries(e, t = {}) {
1766
- const s = { revert: !0, ...t }, r = A.batch(
1766
+ const s = { revert: !0, ...t }, r = T.batch(
1767
1767
  () => this.#e.findAll(e).map((n) => n.cancel(s))
1768
1768
  );
1769
1769
  return Promise.all(r).then(U).catch(U);
1770
1770
  }
1771
1771
  invalidateQueries(e, t = {}) {
1772
- return A.batch(() => (this.#e.findAll(e).forEach((s) => {
1772
+ return T.batch(() => (this.#e.findAll(e).forEach((s) => {
1773
1773
  s.invalidate();
1774
1774
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
1775
1775
  {
@@ -1783,7 +1783,7 @@ var Or = class extends Se {
1783
1783
  const s = {
1784
1784
  ...t,
1785
1785
  cancelRefetch: t.cancelRefetch ?? !0
1786
- }, r = A.batch(
1786
+ }, r = T.batch(
1787
1787
  () => this.#e.findAll(e).filter((n) => !n.isDisabled() && !n.isStatic()).map((n) => {
1788
1788
  let i = n.fetch(void 0, s);
1789
1789
  return s.throwOnError || (i = i.catch(U)), n.state.fetchStatus === "paused" ? Promise.resolve() : i;
@@ -1827,7 +1827,7 @@ var Or = class extends Se {
1827
1827
  this.#s = e;
1828
1828
  }
1829
1829
  setQueryDefaults(e, t) {
1830
- this.#n.set(ie(e), {
1830
+ this.#n.set(ne(e), {
1831
1831
  queryKey: e,
1832
1832
  defaultOptions: t
1833
1833
  });
@@ -1839,7 +1839,7 @@ var Or = class extends Se {
1839
1839
  }), s;
1840
1840
  }
1841
1841
  setMutationDefaults(e, t) {
1842
- this.#r.set(ie(e), {
1842
+ this.#r.set(ne(e), {
1843
1843
  mutationKey: e,
1844
1844
  defaultOptions: t
1845
1845
  });
@@ -1877,7 +1877,7 @@ var Or = class extends Se {
1877
1877
  }
1878
1878
  }, ms = D.createContext(
1879
1879
  void 0
1880
- ), V = (e) => {
1880
+ ), Y = (e) => {
1881
1881
  const t = D.useContext(ms);
1882
1882
  if (!t)
1883
1883
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
@@ -1921,15 +1921,15 @@ var Dr = D.createContext($r()), Nr = () => D.useContext(Dr), Ur = (e, t, s) => {
1921
1921
  1e3
1922
1922
  ));
1923
1923
  }
1924
- }, Hr = (e, t) => e.isLoading && e.isFetching && !t, Gr = (e, t) => e?.suspense && t.isPending, $t = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1924
+ }, Hr = (e, t) => e.isLoading && e.isFetching && !t, xr = (e, t) => e?.suspense && t.isPending, $t = (e, t, s) => t.fetchOptimistic(e).catch(() => {
1925
1925
  s.clearReset();
1926
1926
  });
1927
- function xr(e, t, s) {
1927
+ function Gr(e, t, s) {
1928
1928
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1929
1929
  throw new Error(
1930
1930
  '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'
1931
1931
  );
1932
- const r = kr(), n = Nr(), i = V(), a = i.defaultQueryOptions(e);
1932
+ const r = kr(), n = Nr(), i = Y(), a = i.defaultQueryOptions(e);
1933
1933
  i.getDefaultOptions().queries?._experimental_beforeQuery?.(
1934
1934
  a
1935
1935
  );
@@ -1946,7 +1946,7 @@ function xr(e, t, s) {
1946
1946
  if (D.useSyncExternalStore(
1947
1947
  D.useCallback(
1948
1948
  (l) => {
1949
- const p = d ? h.subscribe(A.batchCalls(l)) : U;
1949
+ const p = d ? h.subscribe(T.batchCalls(l)) : U;
1950
1950
  return h.updateResult(), p;
1951
1951
  },
1952
1952
  [h, d]
@@ -1955,7 +1955,7 @@ function xr(e, t, s) {
1955
1955
  () => h.getCurrentResult()
1956
1956
  ), D.useEffect(() => {
1957
1957
  h.setOptions(a);
1958
- }, [a, h]), Gr(a, u))
1958
+ }, [a, h]), xr(a, u))
1959
1959
  throw $t(a, h, n);
1960
1960
  if (Fr({
1961
1961
  result: u,
@@ -1968,7 +1968,7 @@ function xr(e, t, s) {
1968
1968
  return i.getDefaultOptions().queries?._experimental_afterQuery?.(
1969
1969
  a,
1970
1970
  u
1971
- ), a.experimental_prefetchInRender && !ne && Hr(u, r) && (c ? (
1971
+ ), a.experimental_prefetchInRender && !re && Hr(u, r) && (c ? (
1972
1972
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1973
1973
  $t(a, h, n)
1974
1974
  ) : (
@@ -1978,11 +1978,11 @@ function xr(e, t, s) {
1978
1978
  h.updateResult();
1979
1979
  }), a.notifyOnChangeProps ? u : h.trackResult(u);
1980
1980
  }
1981
- function X(e, t) {
1982
- return xr(e, Tr);
1981
+ function z(e, t) {
1982
+ return Gr(e, Tr);
1983
1983
  }
1984
- function se(e, t) {
1985
- const s = V(), [r] = D.useState(
1984
+ function ie(e, t) {
1985
+ const s = Y(), [r] = D.useState(
1986
1986
  () => new Or(
1987
1987
  s,
1988
1988
  e
@@ -1993,7 +1993,7 @@ function se(e, t) {
1993
1993
  }, [r, e]);
1994
1994
  const n = D.useSyncExternalStore(
1995
1995
  D.useCallback(
1996
- (a) => r.subscribe(A.batchCalls(a)),
1996
+ (a) => r.subscribe(T.batchCalls(a)),
1997
1997
  [r]
1998
1998
  ),
1999
1999
  () => r.getCurrentResult(),
@@ -2112,7 +2112,7 @@ class jr extends ae {
2112
2112
  static code = "ERR_JOSE_ALG_NOT_ALLOWED";
2113
2113
  code = "ERR_JOSE_ALG_NOT_ALLOWED";
2114
2114
  }
2115
- class z extends ae {
2115
+ class V extends ae {
2116
2116
  static code = "ERR_JOSE_NOT_SUPPORTED";
2117
2117
  code = "ERR_JOSE_NOT_SUPPORTED";
2118
2118
  }
@@ -2120,7 +2120,7 @@ class M extends ae {
2120
2120
  static code = "ERR_JWS_INVALID";
2121
2121
  code = "ERR_JWS_INVALID";
2122
2122
  }
2123
- class Y extends ae {
2123
+ class J extends ae {
2124
2124
  static code = "ERR_JWT_INVALID";
2125
2125
  code = "ERR_JWT_INVALID";
2126
2126
  }
@@ -2147,11 +2147,11 @@ function Wr(e) {
2147
2147
  throw new Error("unreachable");
2148
2148
  }
2149
2149
  }
2150
- function Vr(e, t) {
2150
+ function Jr(e, t) {
2151
2151
  if (!e.usages.includes(t))
2152
2152
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
2153
2153
  }
2154
- function Jr(e, t, s) {
2154
+ function Vr(e, t, s) {
2155
2155
  switch (t) {
2156
2156
  case "HS256":
2157
2157
  case "HS384":
@@ -2209,7 +2209,7 @@ function Jr(e, t, s) {
2209
2209
  default:
2210
2210
  throw new TypeError("CryptoKey does not support this operation");
2211
2211
  }
2212
- Vr(e, s);
2212
+ Jr(e, s);
2213
2213
  }
2214
2214
  function Ss(e, t, ...s) {
2215
2215
  if (s = s.filter(Boolean), s.length > 2) {
@@ -2350,7 +2350,7 @@ const rn = (e) => {
2350
2350
  const c = r.getNamedCurve(t);
2351
2351
  n = c === "X25519" ? { name: "X25519" } : { name: "ECDH", namedCurve: c };
2352
2352
  } catch {
2353
- throw new z("Invalid or unsupported key format");
2353
+ throw new V("Invalid or unsupported key format");
2354
2354
  }
2355
2355
  i = [];
2356
2356
  break;
@@ -2365,7 +2365,7 @@ const rn = (e) => {
2365
2365
  n = { name: s }, i = a();
2366
2366
  break;
2367
2367
  default:
2368
- throw new z('Invalid or unsupported "alg" (Algorithm) value');
2368
+ throw new V('Invalid or unsupported "alg" (Algorithm) value');
2369
2369
  }
2370
2370
  return crypto.subtle.importKey(e, t, n, r?.extractable ?? !0, i);
2371
2371
  }, an = (e, t) => gs(e.replace(t, "")), on = (e, t, s) => {
@@ -2387,7 +2387,7 @@ function cn(e) {
2387
2387
  t = { name: e.alg }, s = e.priv ? ["sign"] : ["verify"];
2388
2388
  break;
2389
2389
  default:
2390
- throw new z('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2390
+ throw new V('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2391
2391
  }
2392
2392
  break;
2393
2393
  }
@@ -2413,7 +2413,7 @@ function cn(e) {
2413
2413
  }, s = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
2414
2414
  break;
2415
2415
  default:
2416
- throw new z('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2416
+ throw new V('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2417
2417
  }
2418
2418
  break;
2419
2419
  }
@@ -2435,7 +2435,7 @@ function cn(e) {
2435
2435
  t = { name: "ECDH", namedCurve: e.crv }, s = e.d ? ["deriveBits"] : [];
2436
2436
  break;
2437
2437
  default:
2438
- throw new z('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2438
+ throw new V('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2439
2439
  }
2440
2440
  break;
2441
2441
  }
@@ -2452,12 +2452,12 @@ function cn(e) {
2452
2452
  t = { name: e.crv }, s = e.d ? ["deriveBits"] : [];
2453
2453
  break;
2454
2454
  default:
2455
- throw new z('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2455
+ throw new V('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
2456
2456
  }
2457
2457
  break;
2458
2458
  }
2459
2459
  default:
2460
- throw new z('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
2460
+ throw new V('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
2461
2461
  }
2462
2462
  return { algorithm: t, keyUsages: s };
2463
2463
  }
@@ -2483,7 +2483,7 @@ function dn(e, t, s, r, n) {
2483
2483
  s !== void 0 ? i = new Map([...Object.entries(s), ...t.entries()]) : i = t;
2484
2484
  for (const a of r.crit) {
2485
2485
  if (!i.has(a))
2486
- throw new z(`Extension Header Parameter "${a}" is not recognized`);
2486
+ throw new V(`Extension Header Parameter "${a}" is not recognized`);
2487
2487
  if (n[a] === void 0)
2488
2488
  throw new e(`Extension Header Parameter "${a}" is missing`);
2489
2489
  if (i.get(a) && r[a] === void 0)
@@ -2751,7 +2751,7 @@ function Tn(e, t) {
2751
2751
  case "ML-DSA-87":
2752
2752
  return { name: e };
2753
2753
  default:
2754
- throw new z(`alg ${e} is not supported either by JOSE or your javascript runtime`);
2754
+ throw new V(`alg ${e} is not supported either by JOSE or your javascript runtime`);
2755
2755
  }
2756
2756
  }
2757
2757
  async function An(e, t, s) {
@@ -2760,7 +2760,7 @@ async function An(e, t, s) {
2760
2760
  throw new TypeError(Yr(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2761
2761
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [s]);
2762
2762
  }
2763
- return Jr(t, e, s), t;
2763
+ return Vr(t, e, s), t;
2764
2764
  }
2765
2765
  async function vn(e, t, s, r) {
2766
2766
  const n = await An(e, t, "verify");
@@ -2898,7 +2898,7 @@ function Mn(e, t, s = {}) {
2898
2898
  } catch {
2899
2899
  }
2900
2900
  if (!be(r))
2901
- throw new Y("JWT Claims Set must be a top-level JSON object");
2901
+ throw new J("JWT Claims Set must be a top-level JSON object");
2902
2902
  const { typ: n } = s;
2903
2903
  if (n && (typeof e.typ != "string" || Ft(e.typ) !== Ft(n)))
2904
2904
  throw new q('unexpected "typ" JWT header value', r, "typ", "check_failed");
@@ -2954,34 +2954,34 @@ function Mn(e, t, s = {}) {
2954
2954
  async function kn(e, t, s) {
2955
2955
  const r = await bn(e, t, s);
2956
2956
  if (r.protectedHeader.crit?.includes("b64") && r.protectedHeader.b64 === !1)
2957
- throw new Y("JWTs MUST NOT use unencoded payload");
2957
+ throw new J("JWTs MUST NOT use unencoded payload");
2958
2958
  const n = { payload: Mn(r.protectedHeader, r.payload, s), protectedHeader: r.protectedHeader };
2959
2959
  return typeof t == "function" ? { ...n, key: r.key } : n;
2960
2960
  }
2961
2961
  function $n(e) {
2962
2962
  if (typeof e != "string")
2963
- throw new Y("JWTs must use Compact JWS serialization, JWT must be a string");
2963
+ throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
2964
2964
  const { 1: t, length: s } = e.split(".");
2965
2965
  if (s === 5)
2966
- throw new Y("Only JWTs using Compact JWS serialization can be decoded");
2966
+ throw new J("Only JWTs using Compact JWS serialization can be decoded");
2967
2967
  if (s !== 3)
2968
- throw new Y("Invalid JWT");
2968
+ throw new J("Invalid JWT");
2969
2969
  if (!t)
2970
- throw new Y("JWTs must contain a payload");
2970
+ throw new J("JWTs must contain a payload");
2971
2971
  let r;
2972
2972
  try {
2973
2973
  r = ve(t);
2974
2974
  } catch {
2975
- throw new Y("Failed to base64url decode the payload");
2975
+ throw new J("Failed to base64url decode the payload");
2976
2976
  }
2977
2977
  let n;
2978
2978
  try {
2979
2979
  n = JSON.parse(ge.decode(r));
2980
2980
  } catch {
2981
- throw new Y("Failed to parse the decoded payload as JSON");
2981
+ throw new J("Failed to parse the decoded payload as JSON");
2982
2982
  }
2983
2983
  if (!be(n))
2984
- throw new Y("Invalid JWT Claims Set");
2984
+ throw new J("Invalid JWT Claims Set");
2985
2985
  return n;
2986
2986
  }
2987
2987
  const Ie = async (e) => {
@@ -3005,15 +3005,15 @@ for (let e = 0; e < 256; ++e)
3005
3005
  function Nn(e, t = 0) {
3006
3006
  return (C[e[t + 0]] + C[e[t + 1]] + C[e[t + 2]] + C[e[t + 3]] + "-" + C[e[t + 4]] + C[e[t + 5]] + "-" + C[e[t + 6]] + C[e[t + 7]] + "-" + C[e[t + 8]] + C[e[t + 9]] + "-" + C[e[t + 10]] + C[e[t + 11]] + C[e[t + 12]] + C[e[t + 13]] + C[e[t + 14]] + C[e[t + 15]]).toLowerCase();
3007
3007
  }
3008
- let Ve;
3008
+ let Je;
3009
3009
  const Un = new Uint8Array(16);
3010
3010
  function Ln() {
3011
- if (!Ve) {
3011
+ if (!Je) {
3012
3012
  if (typeof crypto > "u" || !crypto.getRandomValues)
3013
3013
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3014
- Ve = crypto.getRandomValues.bind(crypto);
3014
+ Je = crypto.getRandomValues.bind(crypto);
3015
3015
  }
3016
- return Ve(Un);
3016
+ return Je(Un);
3017
3017
  }
3018
3018
  const Fn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Kt = { randomUUID: Fn };
3019
3019
  function Ht(e, t, s) {
@@ -3025,26 +3025,26 @@ function Ht(e, t, s) {
3025
3025
  throw new Error("Random bytes length must be >= 16");
3026
3026
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Nn(r);
3027
3027
  }
3028
- const Gt = globalThis.crypto, Kn = (e) => `${Ht()}${Ht()}`.slice(0, e), Hn = (e) => btoa(
3028
+ const xt = globalThis.crypto, Kn = (e) => `${Ht()}${Ht()}`.slice(0, e), Hn = (e) => btoa(
3029
3029
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
3030
3030
  );
3031
- async function Gn(e) {
3032
- if (!Gt.subtle)
3031
+ async function xn(e) {
3032
+ if (!xt.subtle)
3033
3033
  throw new Error(
3034
3034
  "crypto.subtle is available only in secure contexts (HTTPS)."
3035
3035
  );
3036
- const t = new TextEncoder().encode(e), s = await Gt.subtle.digest("SHA-256", t);
3036
+ const t = new TextEncoder().encode(e), s = await xt.subtle.digest("SHA-256", t);
3037
3037
  return Hn(s).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
3038
3038
  }
3039
- async function xn(e) {
3040
- const s = Kn(43), r = await Gn(s);
3039
+ async function Gn(e) {
3040
+ const s = Kn(43), r = await xn(s);
3041
3041
  return {
3042
3042
  code_verifier: s,
3043
3043
  code_challenge: r
3044
3044
  };
3045
3045
  }
3046
3046
  const Os = ut(null);
3047
- var qn = Object.defineProperty, Bn = (e, t, s) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Je = (e, t, s) => Bn(e, typeof t != "symbol" ? t + "" : t, s);
3047
+ var qn = Object.defineProperty, Bn = (e, t, s) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Ve = (e, t, s) => Bn(e, typeof t != "symbol" ? t + "" : t, s);
3048
3048
  try {
3049
3049
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
3050
3050
  version: "8.1.1",
@@ -3212,12 +3212,12 @@ class Wn {
3212
3212
  }
3213
3213
  }
3214
3214
  }
3215
- const Ps = new Wn(), Vn = ["cross-platform", "platform"];
3215
+ const Ps = new Wn(), Jn = ["cross-platform", "platform"];
3216
3216
  function Ms(e) {
3217
- if (e && !(Vn.indexOf(e) < 0))
3217
+ if (e && !(Jn.indexOf(e) < 0))
3218
3218
  return e;
3219
3219
  }
3220
- async function Jn(e) {
3220
+ async function Vn(e) {
3221
3221
  !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 });
3222
3222
  const { optionsJSON: t, useAutoRegister: s = !1 } = e;
3223
3223
  if (!St())
@@ -3394,7 +3394,7 @@ function ks(e, t) {
3394
3394
  newValue: t
3395
3395
  }));
3396
3396
  }
3397
- const xt = (e, t) => {
3397
+ const Gt = (e, t) => {
3398
3398
  const s = JSON.stringify(typeof t == "function" ? t() : t);
3399
3399
  window.localStorage.setItem(e, s), ks(e, s);
3400
3400
  }, Zn = (e) => {
@@ -3404,7 +3404,7 @@ function Ce({ key: e, initialValue: t }) {
3404
3404
  const s = zs(ei, () => qt(e)), r = Q((a) => {
3405
3405
  try {
3406
3406
  const o = typeof a == "function" ? a(JSON.parse(s)) : a;
3407
- o == null ? Zn(e) : xt(e, o);
3407
+ o == null ? Zn(e) : Gt(e, o);
3408
3408
  } catch (o) {
3409
3409
  console.warn(o);
3410
3410
  }
@@ -3423,7 +3423,7 @@ function Ce({ key: e, initialValue: t }) {
3423
3423
  ]);
3424
3424
  return me(() => {
3425
3425
  try {
3426
- qt(e) === null && typeof t < "u" && xt(e, t);
3426
+ qt(e) === null && typeof t < "u" && Gt(e, t);
3427
3427
  } catch (a) {
3428
3428
  console.warn(a);
3429
3429
  }
@@ -3771,7 +3771,7 @@ const de = "Your session has expired. For your security, please log in again to
3771
3771
  };
3772
3772
  class yi {
3773
3773
  constructor(t = null, s = null) {
3774
- Je(this, "refreshTokenPromise", null), Je(this, "accessToken"), Je(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = s || "";
3774
+ Ve(this, "refreshTokenPromise", null), Ve(this, "accessToken"), Ve(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = s || "";
3775
3775
  }
3776
3776
  async refreshtoken({
3777
3777
  clientId: t,
@@ -3844,7 +3844,7 @@ const pe = () => {
3844
3844
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
3845
3845
  },
3846
3846
  [e]
3847
- ), gi = Vs.createContext({
3847
+ ), gi = Js.createContext({
3848
3848
  state: Ls,
3849
3849
  dispatch: () => {
3850
3850
  }
@@ -3876,28 +3876,28 @@ const pe = () => {
3876
3876
  debug: n = !1,
3877
3877
  endpoint: i = ui ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3878
3878
  }) => {
3879
- const [a, o] = Js(Si, {
3879
+ const [a, o] = Vs(Si, {
3880
3880
  ...Ls,
3881
3881
  debug: n
3882
3882
  }), c = Ei(n), h = Ys(!1), [u, d, , l] = Ce({
3883
3883
  key: `${Pe}::${s}::@@user@@`
3884
3884
  }), [p, f, , y] = Ce({
3885
3885
  key: `${Pe}::${s}::@@access@@`
3886
- }), [O, b, , L] = Ce(
3886
+ }), [O, A, , L] = Ce(
3887
3887
  {
3888
3888
  key: `${Pe}::${s}::@@refresh@@`
3889
3889
  }
3890
- ), [H, G, , x] = Ce({
3890
+ ), [H, x, , G] = Ce({
3891
3891
  key: `${Pe}::${s}::@@nonce@@`
3892
3892
  }), we = new yi(p, O), N = Q(() => {
3893
- c("removeLocalStorage: removing local storage"), l(), y(), L(), x();
3893
+ c("removeLocalStorage: removing local storage"), l(), y(), L(), G();
3894
3894
  }, [
3895
3895
  y,
3896
3896
  l,
3897
- x,
3897
+ G,
3898
3898
  L,
3899
3899
  c
3900
- ]), I = Q(
3900
+ ]), v = Q(
3901
3901
  (m) => {
3902
3902
  c(
3903
3903
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
@@ -3922,14 +3922,14 @@ const pe = () => {
3922
3922
  domain: r,
3923
3923
  idToken: u,
3924
3924
  endpoint: i
3925
- }), I(m || de);
3925
+ }), v(m || de);
3926
3926
  },
3927
3927
  [
3928
3928
  u,
3929
3929
  a,
3930
3930
  s,
3931
3931
  r,
3932
- I,
3932
+ v,
3933
3933
  c,
3934
3934
  i
3935
3935
  ]
@@ -3962,8 +3962,8 @@ const pe = () => {
3962
3962
  const ee = async (m, _) => {
3963
3963
  o({ type: Te, payload: { isLoading: !0 } }), N();
3964
3964
  const E = Ze();
3965
- G(E), c("login: Logging in with password");
3966
- const { code_verifier: ce, code_challenge: Qs } = await xn(), wt = await fi({
3965
+ x(E), c("login: Logging in with password");
3966
+ const { code_verifier: ce, code_challenge: Qs } = await Gn(), wt = await fi({
3967
3967
  endpoint: i,
3968
3968
  nonce: E,
3969
3969
  clientId: s,
@@ -3983,7 +3983,7 @@ const pe = () => {
3983
3983
  domain: r,
3984
3984
  ua: navigator.userAgent
3985
3985
  });
3986
- return ue.status ? (d(ue.idToken), f(ue.accessToken), b(ue.refreshToken), o({
3986
+ return ue.status ? (d(ue.idToken), f(ue.accessToken), A(ue.refreshToken), o({
3987
3987
  type: ke,
3988
3988
  payload: {
3989
3989
  authenticationType: Ae.CODE,
@@ -3993,12 +3993,12 @@ const pe = () => {
3993
3993
  email: ue.email
3994
3994
  }
3995
3995
  }
3996
- }), !0) : (I(et), !1);
3996
+ }), !0) : (v(et), !1);
3997
3997
  }
3998
3998
  return !1;
3999
3999
  }, oe = async (m) => {
4000
4000
  m?.preventDefault(), await F(ii);
4001
- }, xs = async () => {
4001
+ }, Gs = async () => {
4002
4002
  const { isAuthenticated: m, user: _ } = a;
4003
4003
  try {
4004
4004
  if (m && _ && _.userId) {
@@ -4016,7 +4016,7 @@ const pe = () => {
4016
4016
  nonce: H,
4017
4017
  domain: r
4018
4018
  });
4019
- return E.status && E.status === "success" && E.newAccessToken ? (f(E.newAccessToken), b(E.newRefreshToken), E.newAccessToken) : (c(
4019
+ return E.status && E.status === "success" && E.newAccessToken ? (f(E.newAccessToken), A(E.newRefreshToken), E.newAccessToken) : (c(
4020
4020
  "getAccessToken: invalid refresh token, need to re-authenticate"
4021
4021
  ), await F(de), "");
4022
4022
  }
@@ -4043,7 +4043,7 @@ const pe = () => {
4043
4043
  });
4044
4044
  if (_.status)
4045
4045
  try {
4046
- const E = await Jn({
4046
+ const E = await Vn({
4047
4047
  optionsJSON: _.data
4048
4048
  });
4049
4049
  return _ = await fe({
@@ -4076,7 +4076,7 @@ const pe = () => {
4076
4076
  }, js = async () => {
4077
4077
  o({ type: Te, payload: { isLoading: !0 } }), N();
4078
4078
  const m = Ze();
4079
- G(m), c("loginWithPasskey");
4079
+ x(m), c("loginWithPasskey");
4080
4080
  const _ = Ze();
4081
4081
  let E = await fe({
4082
4082
  endpoint: i,
@@ -4107,7 +4107,7 @@ const pe = () => {
4107
4107
  sessionExpiration: t,
4108
4108
  ua: navigator.userAgent
4109
4109
  }
4110
- }), E.data.status === Oe ? (d(E.data.idToken), f(E.data.accessToken), b(E.data.refreshToken), o({
4110
+ }), E.data.status === Oe ? (d(E.data.idToken), f(E.data.accessToken), A(E.data.refreshToken), o({
4111
4111
  type: ke,
4112
4112
  payload: {
4113
4113
  authenticationType: Ae.PASSKEY,
@@ -4117,7 +4117,7 @@ const pe = () => {
4117
4117
  email: E.data.email
4118
4118
  }
4119
4119
  }
4120
- }), !0) : (I(et), !1);
4120
+ }), !0) : (v(et), !1);
4121
4121
  } catch {
4122
4122
  return await fe({
4123
4123
  endpoint: i,
@@ -4132,7 +4132,7 @@ const pe = () => {
4132
4132
  domain: r,
4133
4133
  sessionExpiration: t
4134
4134
  }
4135
- }), I(et), !1;
4135
+ }), v(et), !1;
4136
4136
  }
4137
4137
  return !1;
4138
4138
  };
@@ -4143,7 +4143,7 @@ const pe = () => {
4143
4143
  ...a,
4144
4144
  login: ee,
4145
4145
  logout: oe,
4146
- getAccessToken: xs,
4146
+ getAccessToken: Gs,
4147
4147
  getIdToken: qs,
4148
4148
  registeringForPasskey: Bs,
4149
4149
  loginWithPasskey: js
@@ -4166,7 +4166,7 @@ const Ti = () => {
4166
4166
  if (!e)
4167
4167
  throw new Error("useAuth must be used within an AuthHookProvider");
4168
4168
  return e;
4169
- }, aa = "I'm having trouble right now. Please try again later.", oa = "action-search", ca = "action-sort", ua = "action-toggle-prompt", la = "action-reset-prompt", da = "sassy-saint-", ha = "search", fa = "sort", pa = "sort-timestamp", ya = "sort-token-usage", ma = "sort-memory-direction", Ea = "sort-memory-column", ga = "favorites-only", Sa = "keyword-match-all", wa = "usage-view-mode", Ta = "usage-time-range", Aa = "usage-selected-month", va = "private-disclosure", Ra = "reasoning-disclosure", ba = "chat-id", Ia = "sassysaint-oled-mode", Oa = "sassysaint-full-screen", Qt = "data-oled-mode", Wt = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", _a = 20, Ca = 30, Pa = "av-prompt", Ma = "av-prompt-editable", ka = "size-5 sm:size-4", $a = 30, Da = 15, Na = 130, Ua = 160, La = 16, Fa = 24, Ka = 16, Ha = 76, Ks = process.env.NODE_ENV === "production", He = !Ks, Hs = He ? "gizmette.local.com" : "gizmette.com", Ai = async () => {
4169
+ }, aa = "I'm having trouble right now. Please try again later.", oa = "action-search", ca = "action-sort", ua = "action-toggle-prompt", la = "action-reset-prompt", da = "sassy-saint-", ha = "search", fa = "sort", pa = "sort-timestamp", ya = "sort-token-usage", ma = "sort-memory-direction", Ea = "sort-memory-column", ga = "keyword-match-all", Sa = "history-with-media-only", wa = "usage-view-mode", Ta = "usage-time-range", Aa = "usage-selected-month", va = "private-disclosure", Ra = "reasoning-disclosure", ba = "chat-id", Ia = "sassysaint-oled-mode", Oa = "sassysaint-full-screen", Qt = "data-oled-mode", Wt = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", _a = 20, Ca = 30, Pa = "av-prompt", Ma = "av-prompt-editable", ka = "size-5 sm:size-4", $a = 30, Da = 15, Na = 130, Ua = 160, La = 16, Fa = 24, Ka = 16, Ha = 76, Ks = process.env.NODE_ENV === "production", He = !Ks, Hs = He ? "gizmette.local.com" : "gizmette.com", Ai = async () => {
4170
4170
  const e = {
4171
4171
  /**
4172
4172
  * A boolean value that indicates the application would like to receive the
@@ -4288,7 +4288,7 @@ function Mi(e) {
4288
4288
  const t = typeof e == "string" ? new Date(parseInt(e, 10)) : new Date(e), s = Pi.formatToParts(t), r = (n) => s.find((i) => i.type === n)?.value ?? "";
4289
4289
  return `${r("month")} ${r("day")}, ${r("year")} - ${r("hour")}:${r("minute")} ${r("dayPeriod")}`;
4290
4290
  }
4291
- const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Hs, applyOledMode: Ci, canEvaluateModels: _i, formatTimestamp: Mi, getCurrentGeoLocation: Ai, getLayoutPaddingClass: bi, getMessageContaintWrapperClass: Ri, isDev: He, isProd: Ks, isTauri: Ii, renderDataAsList: vi, toastOptions: Oi }, Symbol.toStringTag, { value: "Module" })), w = {
4291
+ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Hs, applyOledMode: Ci, canEvaluateModels: _i, formatTimestamp: Mi, getCurrentGeoLocation: Ai, getLayoutPaddingClass: bi, getMessageContaintWrapperClass: Ri, isDev: He, isProd: Ks, isTauri: Ii, renderDataAsList: vi, toastOptions: Oi }, Symbol.toStringTag, { value: "Module" })), R = {
4292
4292
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
4293
4293
  location(latitude: $latitude, longitude: $longitude) {
4294
4294
  country
@@ -4305,7 +4305,8 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4305
4305
  $sortBy: String,
4306
4306
  $truncateSize: Float,
4307
4307
  $similarityThreshold: Float,
4308
- $keywordMatchAll: Boolean) {
4308
+ $keywordMatchAll: Boolean,
4309
+ $withMediaOnly: Boolean) {
4309
4310
  chats(
4310
4311
  user: $user,
4311
4312
  searchString: $searchString,
@@ -4314,12 +4315,12 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4314
4315
  sortBy: $sortBy,
4315
4316
  truncateSize: $truncateSize,
4316
4317
  similarityThreshold: $similarityThreshold,
4317
- keywordMatchAll: $keywordMatchAll) {
4318
+ keywordMatchAll: $keywordMatchAll,
4319
+ withMediaOnly: $withMediaOnly) {
4318
4320
  timestamp
4319
4321
  id
4320
4322
  summary
4321
4323
  tokenUsage
4322
- favoriteChat
4323
4324
  similarityScore
4324
4325
  keywordMatch
4325
4326
  }
@@ -4352,16 +4353,6 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4352
4353
  id
4353
4354
  }
4354
4355
  }`,
4355
- TOGGLE_FAVORITE_CHAT: `mutation ToggleFavoriteChat(
4356
- $id: String!,
4357
- $userId: String!) {
4358
- toggleFavoriteChat(
4359
- id: $id,
4360
- user: $userId) {
4361
- id
4362
- favoriteChat
4363
- }
4364
- }`,
4365
4356
  SAVE_CHAT: `mutation SaveChat(
4366
4357
  $id: String!,
4367
4358
  $userId: String!,
@@ -4546,84 +4537,80 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4546
4537
  RESTORE_MEMORY: `mutation RestoreMemory($user: String!, $memoryId: String!) {
4547
4538
  restoreMemory(user: $user, memoryId: $memoryId)
4548
4539
  }`
4549
- }, R = {
4540
+ }, I = {
4550
4541
  GET_LOCATION: {
4551
- schema: w.GET_LOCATION,
4542
+ schema: R.GET_LOCATION,
4552
4543
  method: "location"
4553
4544
  },
4554
4545
  GET_CHATS: {
4555
- schema: w.GET_CHATS,
4546
+ schema: R.GET_CHATS,
4556
4547
  method: "chats"
4557
4548
  },
4558
4549
  GET_CHATS_STATS: {
4559
- schema: w.GET_CHATS_STATS,
4550
+ schema: R.GET_CHATS_STATS,
4560
4551
  method: "chatsStats"
4561
4552
  },
4562
4553
  GET_CHAT: {
4563
- schema: w.GET_CHAT,
4554
+ schema: R.GET_CHAT,
4564
4555
  method: "chatById"
4565
4556
  },
4566
4557
  DELETE_CHAT: {
4567
- schema: w.DELETE_CHAT,
4558
+ schema: R.DELETE_CHAT,
4568
4559
  method: "deleteChat"
4569
4560
  },
4570
- TOGGLE_FAVORITE_CHAT: {
4571
- schema: w.TOGGLE_FAVORITE_CHAT,
4572
- method: "toggleFavoriteChat"
4573
- },
4574
4561
  SAVE_CHAT: {
4575
- schema: w.SAVE_CHAT,
4562
+ schema: R.SAVE_CHAT,
4576
4563
  method: "saveChat"
4577
4564
  },
4578
4565
  GET_SERVER_CAPABILITIES: {
4579
- schema: w.GET_SERVER_CAPABILITIES,
4566
+ schema: R.GET_SERVER_CAPABILITIES,
4580
4567
  method: "getServerCapabilities"
4581
4568
  },
4582
4569
  GET_CHANGELOGS: {
4583
- schema: w.GET_CHANGELOGS,
4570
+ schema: R.GET_CHANGELOGS,
4584
4571
  method: "getChangelogs"
4585
4572
  },
4586
4573
  GET_USER_PREFERENCES: {
4587
- schema: w.GET_USER_PREFERENCES,
4574
+ schema: R.GET_USER_PREFERENCES,
4588
4575
  method: "getUserPreferences"
4589
4576
  },
4590
4577
  SET_USER_PREFERENCES: {
4591
- schema: w.SET_USER_PREFERENCES,
4578
+ schema: R.SET_USER_PREFERENCES,
4592
4579
  method: "setUserPreferences"
4593
4580
  },
4594
4581
  GET_USAGE: {
4595
- schema: w.GET_USAGE,
4582
+ schema: R.GET_USAGE,
4596
4583
  method: "usage"
4597
4584
  },
4598
4585
  GET_USER_MEMORIES: {
4599
- schema: w.GET_USER_MEMORIES,
4586
+ schema: R.GET_USER_MEMORIES,
4600
4587
  method: "getUserMemories"
4601
4588
  },
4602
4589
  GET_EXPIRED_MEMORIES: {
4603
- schema: w.GET_EXPIRED_MEMORIES,
4590
+ schema: R.GET_EXPIRED_MEMORIES,
4604
4591
  method: "getExpiredMemories"
4605
4592
  },
4606
4593
  DELETE_MEMORY: {
4607
- schema: w.DELETE_MEMORY,
4594
+ schema: R.DELETE_MEMORY,
4608
4595
  method: "deleteMemory"
4609
4596
  },
4610
4597
  UPDATE_MEMORY: {
4611
- schema: w.UPDATE_MEMORY,
4598
+ schema: R.UPDATE_MEMORY,
4612
4599
  method: "updateMemory"
4613
4600
  },
4614
4601
  DELETE_ACTIVE_MEMORIES: {
4615
- schema: w.DELETE_ACTIVE_MEMORIES,
4602
+ schema: R.DELETE_ACTIVE_MEMORIES,
4616
4603
  method: "deleteActiveMemories"
4617
4604
  },
4618
4605
  DELETE_EXPIRED_MEMORIES: {
4619
- schema: w.DELETE_EXPIRED_MEMORIES,
4606
+ schema: R.DELETE_EXPIRED_MEMORIES,
4620
4607
  method: "deleteExpiredMemories"
4621
4608
  },
4622
4609
  RESTORE_MEMORY: {
4623
- schema: w.RESTORE_MEMORY,
4610
+ schema: R.RESTORE_MEMORY,
4624
4611
  method: "restoreMemory"
4625
4612
  }
4626
- }, ki = process.env.PUBLIC_SASSY_API_SERVER_URL, Ge = async ({
4613
+ }, ki = process.env.PUBLIC_SASSY_API_SERVER_URL, xe = async ({
4627
4614
  query: e,
4628
4615
  data: t,
4629
4616
  headers: s = {},
@@ -4641,18 +4628,18 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4641
4628
  variables: t
4642
4629
  }),
4643
4630
  ...r
4644
- }), J = async (e) => {
4631
+ }), X = async (e) => {
4645
4632
  const t = e.type?.data ? e.type.data(e.params) : e.params;
4646
4633
  try {
4647
4634
  let s;
4648
4635
  if (e.noAuth === !0)
4649
- s = await Ge({
4636
+ s = await xe({
4650
4637
  query: e.type.schema,
4651
4638
  data: t
4652
4639
  });
4653
4640
  else {
4654
4641
  const i = `Bearer ${e.accessToken}`;
4655
- s = await Ge({
4642
+ s = await xe({
4656
4643
  headers: {
4657
4644
  authorization: i
4658
4645
  },
@@ -4673,7 +4660,7 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4673
4660
  } catch (s) {
4674
4661
  throw console.error(s), s;
4675
4662
  }
4676
- }, xa = async ({
4663
+ }, Ga = async ({
4677
4664
  provider: e,
4678
4665
  model: t,
4679
4666
  accessToken: s,
@@ -4683,23 +4670,23 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4683
4670
  user: r,
4684
4671
  provider: e
4685
4672
  };
4686
- return t && (n.model = t), await J({
4673
+ return t && (n.model = t), await X({
4687
4674
  accessToken: s,
4688
- type: R.SET_USER_PREFERENCES,
4675
+ type: I.SET_USER_PREFERENCES,
4689
4676
  params: n
4690
4677
  });
4691
4678
  }, qa = async ({
4692
4679
  plan: e,
4693
4680
  accessToken: t,
4694
4681
  username: s
4695
- }) => await J({
4682
+ }) => await X({
4696
4683
  accessToken: t,
4697
- type: R.SET_USER_PREFERENCES,
4684
+ type: I.SET_USER_PREFERENCES,
4698
4685
  params: {
4699
4686
  user: s,
4700
4687
  plan: e
4701
4688
  }
4702
- }), v = {
4689
+ }), b = {
4703
4690
  CHAT: "chat",
4704
4691
  CHATS: "chats",
4705
4692
  CHATS_STATS: "chatsStats",
@@ -4709,16 +4696,16 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4709
4696
  USAGE: "usage",
4710
4697
  USER_MEMORIES: "userMemories",
4711
4698
  EXPIRED_MEMORIES: "expiredMemories"
4712
- }, Ba = () => X({
4713
- queryKey: [v.CAPABILITIES],
4699
+ }, Ba = () => z({
4700
+ queryKey: [b.CAPABILITIES],
4714
4701
  queryFn: async () => await Z({
4715
- type: R.GET_SERVER_CAPABILITIES,
4702
+ type: I.GET_SERVER_CAPABILITIES,
4716
4703
  noAuth: !0
4717
4704
  })
4718
- }), ja = () => X({
4719
- queryKey: [v.CHANGELOGS],
4705
+ }), ja = () => z({
4706
+ queryKey: [b.CHANGELOGS],
4720
4707
  queryFn: async () => await Z({
4721
- type: R.GET_CHANGELOGS,
4708
+ type: I.GET_CHANGELOGS,
4722
4709
  noAuth: !0,
4723
4710
  params: {
4724
4711
  client: !0
@@ -4727,25 +4714,25 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4727
4714
  }), $i = ({
4728
4715
  user: e,
4729
4716
  getAccessToken: t
4730
- }) => X({
4731
- queryKey: [v.PREFERENCES, e],
4717
+ }) => z({
4718
+ queryKey: [b.PREFERENCES, e],
4732
4719
  queryFn: async () => await Z({
4733
4720
  params: {
4734
4721
  user: e
4735
4722
  },
4736
- type: R.GET_USER_PREFERENCES,
4723
+ type: I.GET_USER_PREFERENCES,
4737
4724
  getAccessToken: t
4738
4725
  })
4739
4726
  }), Qa = ({
4740
4727
  user: e,
4741
4728
  getAccessToken: t
4742
- }) => X({
4743
- queryKey: [v.CHATS_STATS, e],
4729
+ }) => z({
4730
+ queryKey: [b.CHATS_STATS, e],
4744
4731
  queryFn: async () => await Z({
4745
4732
  params: {
4746
4733
  user: e
4747
4734
  },
4748
- type: R.GET_CHATS_STATS,
4735
+ type: I.GET_CHATS_STATS,
4749
4736
  getAccessToken: t
4750
4737
  })
4751
4738
  }), Wa = ({
@@ -4761,19 +4748,21 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4761
4748
  * scores for semantically related but not identical concepts.
4762
4749
  */
4763
4750
  similarityThreshold: a = 0.3,
4764
- keywordMatchAll: o = !0
4765
- }) => X({
4751
+ keywordMatchAll: o = !0,
4752
+ withMediaOnly: c = !1
4753
+ }) => z({
4766
4754
  enabled: i,
4767
4755
  staleTime: 60 * 1e3,
4768
4756
  // 1 minute
4769
4757
  queryKey: [
4770
- v.CHATS,
4758
+ b.CHATS,
4771
4759
  e,
4772
4760
  t,
4773
4761
  s,
4774
4762
  r,
4775
4763
  a,
4776
- o
4764
+ o,
4765
+ c
4777
4766
  ],
4778
4767
  queryFn: async () => await Z({
4779
4768
  params: {
@@ -4784,28 +4773,29 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4784
4773
  limit: 1,
4785
4774
  truncateSize: 100,
4786
4775
  similarityThreshold: a,
4787
- keywordMatchAll: o
4776
+ keywordMatchAll: o,
4777
+ withMediaOnly: c
4788
4778
  },
4789
- type: R.GET_CHATS,
4779
+ type: I.GET_CHATS,
4790
4780
  getAccessToken: n
4791
4781
  })
4792
- }), Va = ({
4782
+ }), Ja = ({
4793
4783
  chatId: e,
4794
4784
  getAccessToken: t,
4795
4785
  enabled: s = !0
4796
- }) => X({
4786
+ }) => z({
4797
4787
  enabled: s && !!e,
4798
- queryKey: [v.CHAT, e],
4788
+ queryKey: [b.CHAT, e],
4799
4789
  queryFn: async () => await Z({
4800
4790
  params: { id: e },
4801
- type: R.GET_CHAT,
4791
+ type: I.GET_CHAT,
4802
4792
  getAccessToken: t
4803
4793
  })
4804
- }), Ja = ({
4794
+ }), Va = ({
4805
4795
  getAccessToken: e
4806
4796
  }) => {
4807
- const t = V();
4808
- return se({
4797
+ const t = Y();
4798
+ return ie({
4809
4799
  mutationFn: async ({
4810
4800
  userId: s,
4811
4801
  id: r,
@@ -4815,51 +4805,34 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4815
4805
  privateChat: o
4816
4806
  }) => {
4817
4807
  const c = await e();
4818
- return (await J({
4808
+ return (await X({
4819
4809
  accessToken: c,
4820
- type: R.SAVE_CHAT,
4810
+ type: I.SAVE_CHAT,
4821
4811
  params: { userId: s, id: r, messages: n, provider: i, tokenUsage: a, privateChat: o }
4822
4812
  })).data;
4823
4813
  },
4824
4814
  onSuccess: (s, r) => {
4825
- t.invalidateQueries({ queryKey: [v.CHATS, r.userId] });
4815
+ t.invalidateQueries({ queryKey: [b.CHATS, r.userId] });
4826
4816
  }
4827
4817
  });
4828
4818
  }, Ya = ({
4829
4819
  getAccessToken: e
4830
4820
  }) => {
4831
- const t = V();
4832
- return se({
4821
+ const t = Y();
4822
+ return ie({
4833
4823
  mutationFn: async ({ userId: s, id: r }) => {
4834
4824
  const n = await e();
4835
- return (await J({
4825
+ return (await X({
4836
4826
  accessToken: n,
4837
- type: R.DELETE_CHAT,
4827
+ type: I.DELETE_CHAT,
4838
4828
  params: { userId: s, id: r }
4839
4829
  })).data;
4840
4830
  },
4841
4831
  onSuccess: (s, r) => {
4842
- t.invalidateQueries({ queryKey: [v.CHATS, r.userId] });
4832
+ t.invalidateQueries({ queryKey: [b.CHATS, r.userId] });
4843
4833
  }
4844
4834
  });
4845
4835
  }, za = ({
4846
- getAccessToken: e
4847
- }) => {
4848
- const t = V();
4849
- return se({
4850
- mutationFn: async ({ userId: s, id: r }) => {
4851
- const n = await e();
4852
- return (await J({
4853
- accessToken: n,
4854
- type: R.TOGGLE_FAVORITE_CHAT,
4855
- params: { userId: s, id: r }
4856
- })).data;
4857
- },
4858
- onSuccess: (s, r) => {
4859
- t.invalidateQueries({ queryKey: [v.CHATS, r.userId] });
4860
- }
4861
- });
4862
- }, Xa = ({
4863
4836
  user: e,
4864
4837
  month: t,
4865
4838
  year: s = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4867,9 +4840,9 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4867
4840
  timezone: n,
4868
4841
  getAccessToken: i,
4869
4842
  enabled: a = !0
4870
- }) => X({
4843
+ }) => z({
4871
4844
  enabled: a,
4872
- queryKey: [v.USAGE, e, t, s, r, n],
4845
+ queryKey: [b.USAGE, e, t, s, r, n],
4873
4846
  queryFn: async () => await Z({
4874
4847
  params: {
4875
4848
  user: e,
@@ -4878,27 +4851,27 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4878
4851
  timeRange: r,
4879
4852
  timezone: n
4880
4853
  },
4881
- type: R.GET_USAGE,
4854
+ type: I.GET_USAGE,
4882
4855
  getAccessToken: i
4883
4856
  })
4884
- }), Za = ({
4857
+ }), Xa = ({
4885
4858
  user: e,
4886
4859
  query: t,
4887
4860
  getAccessToken: s,
4888
4861
  enabled: r = !0
4889
- }) => X({
4862
+ }) => z({
4890
4863
  enabled: r && !!e,
4891
- queryKey: [v.USER_MEMORIES, e, t],
4864
+ queryKey: [b.USER_MEMORIES, e, t],
4892
4865
  queryFn: async () => await Z({
4893
4866
  params: { user: e, query: t },
4894
- type: R.GET_USER_MEMORIES,
4867
+ type: I.GET_USER_MEMORIES,
4895
4868
  getAccessToken: s
4896
4869
  })
4897
- }), eo = ({
4870
+ }), Za = ({
4898
4871
  getAccessToken: e
4899
4872
  }) => {
4900
- const t = V();
4901
- return se({
4873
+ const t = Y();
4874
+ return ie({
4902
4875
  mutationFn: async ({
4903
4876
  user: s,
4904
4877
  memoryId: r,
@@ -4906,114 +4879,114 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4906
4879
  expiration: i
4907
4880
  }) => {
4908
4881
  const a = await e();
4909
- return (await J({
4882
+ return (await X({
4910
4883
  accessToken: a,
4911
- type: R.UPDATE_MEMORY,
4884
+ type: I.UPDATE_MEMORY,
4912
4885
  params: { user: s, memoryId: r, description: n, expiration: i }
4913
4886
  })).data;
4914
4887
  },
4915
4888
  onSuccess: (s, r) => {
4916
4889
  t.invalidateQueries({
4917
- queryKey: [v.USER_MEMORIES, r.user]
4890
+ queryKey: [b.USER_MEMORIES, r.user]
4918
4891
  });
4919
4892
  }
4920
4893
  });
4921
- }, to = ({
4894
+ }, eo = ({
4922
4895
  getAccessToken: e
4923
4896
  }) => {
4924
- const t = V();
4925
- return se({
4897
+ const t = Y();
4898
+ return ie({
4926
4899
  mutationFn: async ({
4927
4900
  user: s,
4928
4901
  memoryId: r
4929
4902
  }) => {
4930
4903
  const n = await e();
4931
- return (await J({
4904
+ return (await X({
4932
4905
  accessToken: n,
4933
- type: R.DELETE_MEMORY,
4906
+ type: I.DELETE_MEMORY,
4934
4907
  params: { user: s, memoryId: r }
4935
4908
  })).data;
4936
4909
  },
4937
4910
  onSuccess: (s, r) => {
4938
4911
  t.invalidateQueries({
4939
- queryKey: [v.USER_MEMORIES, r.user]
4912
+ queryKey: [b.USER_MEMORIES, r.user]
4940
4913
  }), t.invalidateQueries({
4941
- queryKey: [v.EXPIRED_MEMORIES, r.user]
4914
+ queryKey: [b.EXPIRED_MEMORIES, r.user]
4942
4915
  });
4943
4916
  }
4944
4917
  });
4945
- }, so = ({
4918
+ }, to = ({
4946
4919
  getAccessToken: e
4947
4920
  }) => {
4948
- const t = V();
4949
- return se({
4921
+ const t = Y();
4922
+ return ie({
4950
4923
  mutationFn: async ({ user: s }) => {
4951
4924
  const r = await e();
4952
- return (await J({
4925
+ return (await X({
4953
4926
  accessToken: r,
4954
- type: R.DELETE_ACTIVE_MEMORIES,
4927
+ type: I.DELETE_ACTIVE_MEMORIES,
4955
4928
  params: { user: s }
4956
4929
  })).data;
4957
4930
  },
4958
4931
  onSuccess: (s, r) => {
4959
4932
  t.invalidateQueries({
4960
- queryKey: [v.USER_MEMORIES, r.user]
4933
+ queryKey: [b.USER_MEMORIES, r.user]
4961
4934
  });
4962
4935
  }
4963
4936
  });
4964
- }, ro = ({
4937
+ }, so = ({
4965
4938
  getAccessToken: e
4966
4939
  }) => {
4967
- const t = V();
4968
- return se({
4940
+ const t = Y();
4941
+ return ie({
4969
4942
  mutationFn: async ({ user: s }) => {
4970
4943
  const r = await e();
4971
- return (await J({
4944
+ return (await X({
4972
4945
  accessToken: r,
4973
- type: R.DELETE_EXPIRED_MEMORIES,
4946
+ type: I.DELETE_EXPIRED_MEMORIES,
4974
4947
  params: { user: s }
4975
4948
  })).data;
4976
4949
  },
4977
4950
  onSuccess: (s, r) => {
4978
4951
  t.invalidateQueries({
4979
- queryKey: [v.EXPIRED_MEMORIES, r.user]
4952
+ queryKey: [b.EXPIRED_MEMORIES, r.user]
4980
4953
  });
4981
4954
  }
4982
4955
  });
4983
- }, no = ({
4956
+ }, ro = ({
4984
4957
  user: e,
4985
4958
  query: t,
4986
4959
  getAccessToken: s,
4987
4960
  enabled: r = !0
4988
- }) => X({
4961
+ }) => z({
4989
4962
  enabled: r && !!e,
4990
- queryKey: [v.EXPIRED_MEMORIES, e, t],
4963
+ queryKey: [b.EXPIRED_MEMORIES, e, t],
4991
4964
  queryFn: async () => await Z({
4992
4965
  params: { user: e, query: t },
4993
- type: R.GET_EXPIRED_MEMORIES,
4966
+ type: I.GET_EXPIRED_MEMORIES,
4994
4967
  getAccessToken: s
4995
4968
  })
4996
- }), io = ({
4969
+ }), no = ({
4997
4970
  getAccessToken: e
4998
4971
  }) => {
4999
- const t = V();
5000
- return se({
4972
+ const t = Y();
4973
+ return ie({
5001
4974
  mutationFn: async ({
5002
4975
  user: s,
5003
4976
  memoryId: r
5004
4977
  }) => {
5005
4978
  const n = await e();
5006
- return (await J({
4979
+ return (await X({
5007
4980
  accessToken: n,
5008
- type: R.RESTORE_MEMORY,
4981
+ type: I.RESTORE_MEMORY,
5009
4982
  params: { user: s, memoryId: r }
5010
4983
  })).data;
5011
4984
  },
5012
4985
  onSuccess: (s, r) => {
5013
4986
  t.invalidateQueries({
5014
- queryKey: [v.USER_MEMORIES, r.user]
4987
+ queryKey: [b.USER_MEMORIES, r.user]
5015
4988
  }), t.invalidateQueries({
5016
- queryKey: [v.EXPIRED_MEMORIES, r.user]
4989
+ queryKey: [b.EXPIRED_MEMORIES, r.user]
5017
4990
  });
5018
4991
  }
5019
4992
  });
@@ -5027,13 +5000,13 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5027
5000
  const n = t?.data ? t.data(e) : e;
5028
5001
  let i;
5029
5002
  if (s === !0)
5030
- i = await Ge({
5003
+ i = await xe({
5031
5004
  query: t.schema,
5032
5005
  data: n
5033
5006
  });
5034
5007
  else if (r) {
5035
5008
  const h = await r();
5036
- i = await Ge({
5009
+ i = await xe({
5037
5010
  headers: {
5038
5011
  authorization: `Bearer ${h}`
5039
5012
  },
@@ -5053,9 +5026,9 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5053
5026
  } catch (n) {
5054
5027
  return Promise.reject(n);
5055
5028
  }
5056
- }, Gs = ut(
5029
+ }, xs = ut(
5057
5030
  void 0
5058
- ), Vt = {
5031
+ ), Jt = {
5059
5032
  capabilities: /* @__PURE__ */ new Set(),
5060
5033
  allowedModels: [],
5061
5034
  version: null,
@@ -5065,7 +5038,7 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5065
5038
  getAccessToken: t,
5066
5039
  children: s
5067
5040
  }) => {
5068
- const [r, n] = Xs(Vt), i = Tt(
5041
+ const [r, n] = Xs(Jt), i = Tt(
5069
5042
  () => e ? `entitlements:${e}` : null,
5070
5043
  [e]
5071
5044
  ), a = Q(() => {
@@ -5142,7 +5115,7 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5142
5115
  },
5143
5116
  [i]
5144
5117
  ), h = Q(() => {
5145
- if (n(Vt), i)
5118
+ if (n(Jt), i)
5146
5119
  try {
5147
5120
  sessionStorage.removeItem(i);
5148
5121
  } catch {
@@ -5156,21 +5129,21 @@ const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5156
5129
  }),
5157
5130
  [r, c, h]
5158
5131
  );
5159
- return /* @__PURE__ */ S(Gs.Provider, { value: u, children: s });
5132
+ return /* @__PURE__ */ S(xs.Provider, { value: u, children: s });
5160
5133
  };
5161
- function ao() {
5162
- const e = lt(Gs);
5134
+ function io() {
5135
+ const e = lt(xs);
5163
5136
  if (!e)
5164
5137
  throw new Error("useEntitlements must be used within EntitlementsProvider");
5165
5138
  return e;
5166
5139
  }
5167
- const Ni = new URL(document.location.href).searchParams, Jt = !!Ni.get("debug") || !1, Ui = zt(() => import(
5140
+ const Ni = new URL(document.location.href).searchParams, Vt = !!Ni.get("debug") || !1, Ui = zt(() => import(
5168
5141
  /* webpackChunkName: "LazyApp" */
5169
- "./App.LXYuxuaD.js"
5142
+ "./App.6iDkXSOb.js"
5170
5143
  ).then((e) => e.App)), Li = zt(
5171
5144
  () => import(
5172
5145
  /* webpackChunkName: "LazyLogin" */
5173
- "./LoginEntry.DXYZbzqN.js"
5146
+ "./LoginEntry.BBF4_rEV.js"
5174
5147
  )
5175
5148
  ), Fi = new Cr(), Yt = ({
5176
5149
  isComponent: e,
@@ -5198,11 +5171,11 @@ const Ni = new URL(document.location.href).searchParams, Jt = !!Ni.get("debug")
5198
5171
  {
5199
5172
  clientId: Wt,
5200
5173
  domain: s,
5201
- debug: Jt,
5174
+ debug: Vt,
5202
5175
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
5203
5176
  children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t })
5204
5177
  }
5205
- ) : /* @__PURE__ */ S(jt, { clientId: Wt, domain: s, debug: Jt, children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t }) })), oo = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ S(
5178
+ ) : /* @__PURE__ */ S(jt, { clientId: Wt, domain: s, debug: Vt, children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t }) })), ao = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ S(
5206
5179
  Ki,
5207
5180
  {
5208
5181
  isComponent: !0,
@@ -5218,7 +5191,7 @@ export {
5218
5191
  ua as ACTION_TOGGLE_PROMPT,
5219
5192
  Yi as B,
5220
5193
  ka as DEFAULT_ICON_ACTION_SIZE,
5221
- T as E,
5194
+ w as E,
5222
5195
  aa as ERROR_MESSAGE,
5223
5196
  zi as F,
5224
5197
  Ca as INFINITE_SCROLL_LIMIT,
@@ -5228,9 +5201,9 @@ export {
5228
5201
  Ka as INPUT_BOTTOM_OFFSET_IPAD,
5229
5202
  Fa as INPUT_BOTTOM_OFFSET_IPHONE,
5230
5203
  ba as LOCAL_STORAGE_CHAT_ID,
5231
- ga as LOCAL_STORAGE_FAVORITES_ONLY,
5232
5204
  Oa as LOCAL_STORAGE_FULL_SCREEN,
5233
- Sa as LOCAL_STORAGE_KEYWORD_MATCH_ALL,
5205
+ Sa as LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY,
5206
+ ga as LOCAL_STORAGE_KEYWORD_MATCH_ALL,
5234
5207
  Ia as LOCAL_STORAGE_OLED_MODE,
5235
5208
  da as LOCAL_STORAGE_PREFIX,
5236
5209
  va as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
@@ -5247,17 +5220,17 @@ export {
5247
5220
  Pa as PROMPT_CLASSNAME,
5248
5221
  Ma as PROMPT_EDITABLE_AREA_CLASSNAME,
5249
5222
  ji as R,
5250
- R as SERVICE_TYPES,
5251
- oo as SassySaint,
5223
+ I as SERVICE_TYPES,
5224
+ ao as SassySaint,
5252
5225
  Da as UI_BUTTON_SCROLL_BUFFER,
5253
5226
  Na as UI_DEFAULT_MAIN_HEIGHT,
5254
5227
  Ua as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
5255
5228
  $a as UI_FOOTER_BUFFER,
5256
- Ji as V,
5229
+ Vi as V,
5257
5230
  Xi as W,
5258
5231
  ea as X,
5259
5232
  ta as Z,
5260
- xe as a,
5233
+ Ge as a,
5261
5234
  Ci as applyOledMode,
5262
5235
  Qi as c,
5263
5236
  _i as canEvaluateModels,
@@ -5265,7 +5238,7 @@ export {
5265
5238
  Ai as getCurrentGeoLocation,
5266
5239
  bi as getLayoutPaddingClass,
5267
5240
  Ri as getMessageContaintWrapperClass,
5268
- J as graphQLRequest,
5241
+ X as graphQLRequest,
5269
5242
  dt as i,
5270
5243
  Ii as isTauri,
5271
5244
  Zi as j,
@@ -5275,30 +5248,29 @@ export {
5275
5248
  vi as renderDataAsList,
5276
5249
  ht as s,
5277
5250
  ki as serverUrl,
5278
- xa as setNewProvider,
5251
+ Ga as setNewProvider,
5279
5252
  qa as setUserPlan,
5280
5253
  Ae as st,
5281
5254
  ja as useChangelogs,
5282
- Va as useChat,
5255
+ Ja as useChat,
5283
5256
  Wa as useChatsHistory,
5284
- Xa as useChatsUsage,
5285
- so as useDeleteAllActiveMemories,
5286
- ro as useDeleteAllExpiredMemories,
5257
+ za as useChatsUsage,
5258
+ to as useDeleteAllActiveMemories,
5259
+ so as useDeleteAllExpiredMemories,
5287
5260
  Ya as useDeleteChat,
5288
- to as useDeleteMemory,
5289
- ao as useEntitlements,
5290
- no as useExpiredMemories,
5291
- V as useQueryClient,
5292
- io as useRestoreMemory,
5293
- Ja as useSaveChat,
5261
+ eo as useDeleteMemory,
5262
+ io as useEntitlements,
5263
+ ro as useExpiredMemories,
5264
+ Y as useQueryClient,
5265
+ no as useRestoreMemory,
5266
+ Va as useSaveChat,
5294
5267
  Ba as useServerCapabilities,
5295
- za as useToggleFavoriteChat,
5296
- eo as useUpdateMemory,
5268
+ Za as useUpdateMemory,
5297
5269
  Qa as useUserChatStats,
5298
- Za as useUserMemories,
5270
+ Xa as useUserMemories,
5299
5271
  $i as useUserPreferences,
5300
- Ga as utilities,
5272
+ xa as utilities,
5301
5273
  Wi as v,
5302
5274
  sr as x,
5303
- Vi as y
5275
+ Ji as y
5304
5276
  };