@versini/sassysaint 8.121.2 → 8.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.CA33pEEF.js → AboutChangelog.D41w3Sx-.js} +2 -2
- package/dist/chunks/{AboutEntry.RE-sMgUc.js → AboutEntry.DuChO6in.js} +7 -7
- package/dist/chunks/{App.BZTtEa1X.js → App.CxUJr_cy.js} +4001 -3797
- package/dist/chunks/BubbleActions.C88J_gM0.js +177 -0
- package/dist/chunks/{ButtonIconDelete.BMOWq-aQ.js → ButtonIconDelete.D0wWeckQ.js} +4 -4
- package/dist/chunks/{Chart.DbRz1l7T.js → Chart.CWiDj4EN.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.HRfh23vx.js → ChatBubbleAssistant.DeQmFnwv.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.DKBeRxTV.js → ChatBubbleUser.cl7k5qiB.js} +4 -4
- package/dist/chunks/HistoryEntry.Cfi7wcI_.js +738 -0
- package/dist/chunks/{LoginEntry.fdGg-21A.js → LoginEntry.B0mu2H8B.js} +4 -4
- package/dist/chunks/{LogoEntry.B6ql2jC9.js → LogoEntry.Cila_ZS8.js} +221 -193
- package/dist/chunks/{MemoriesEntry.C47hpH8v.js → MemoriesEntry.CaGCs0O4.js} +5 -5
- package/dist/chunks/{ProfileEntry.YUBGCsYD.js → ProfileEntry.Br4jYLKv.js} +4 -4
- package/dist/chunks/{SettingsEntry.DoymboVB.js → SettingsEntry.DZj5ES_T.js} +199 -186
- package/dist/chunks/{UsageEntry.DGLfDIuf.js → UsageEntry.CvBpWe_Y.js} +5 -5
- package/dist/chunks/{_baseUniq.D83BfBwF.js → _baseUniq.Tpz5e0Wb.js} +1 -1
- package/dist/chunks/{arc.CRqvrVmM.js → arc.yjfXFNle.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DyBq7p-F.js → architecture-U656AL7Q.BqnNSQ8C.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CWYwQr2M.js → architectureDiagram-VXUJARFQ.BJ0nHYsX.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.Buq_PYg5.js → blockDiagram-VD42YOAC.Dg1u8j95.js} +5 -5
- package/dist/chunks/{browser.BlDfjcb8.js → browser.ClDpfkjJ.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CAC2Yr_A.js → c4Diagram-YG6GDRKO.D9KRA2v7.js} +2 -2
- package/dist/chunks/{channel.Dni1EyEH.js → channel.DFmTLPIZ.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.DsLxUxH4.js → chunk-4BX2VUAB.BTN-NLdL.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.vHZECnmr.js → chunk-55IACEB6.D9Um2-KR.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.DrTJniS8.js → chunk-B4BG7PRW.DqLcns0p.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DnichvqR.js → chunk-DI55MBZ5.zgtFJqFi.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.DEv9oMYz.js → chunk-FMBD7UC4.Cug--nbZ.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.BvX9mCUk.js → chunk-QN33PNHL.BO9wjt4n.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.BhvzNfh0.js → chunk-QZHKN3VN.BKyzDfY6.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.ColjztB0.js → chunk-TZMSLE5B.Dr-LQz2w.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.M4b00FrL.js → classDiagram-2ON5EDUG.BFi31wR4.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.M4b00FrL.js → classDiagram-v2-WZHVMYZB.BFi31wR4.js} +2 -2
- package/dist/chunks/{clone.B9QEANo-.js → clone.DnyX-vf_.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.DtEfRJcU.js → cose-bilkent-S5V4N54A.CiupVYNE.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.6nF6t0kI.js → dagre-6UL2VRFP.BtYgSl6q.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.CN0tpcOw.js → diagram-PSM6KHXK.tZPeJP6p.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.5Qu1Dy1e.js → diagram-QEK2KX5R.onrqyfRC.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.C5YPq0jQ.js → diagram-S2PKOQOG.DZjr1jus.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.CfEda118.js → erDiagram-Q2GNP2WA.DricR3bN.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CHtUk6SM.js → flowDiagram-NV44I4VS.BpHV3p8j.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.DHoK3n6q.js → ganttDiagram-JELNMOA3.IfXdDiXM.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.CIVU4QxK.js → gitGraph-F6HP7TQM.Chqw_wcQ.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.deg3TUFD.js → gitGraphDiagram-NY62KEGX.Bj8eA0-X.js} +4 -4
- package/dist/chunks/{graph.DGW-X0wY.js → graph.qYTHLr5H.js} +2 -2
- package/dist/chunks/{index.CRWs4Tnn.js → index.0gL-cU_c.js} +3 -3
- package/dist/chunks/{index.CXWd1-W2.js → index.B4b1uMW7.js} +1 -1
- package/dist/chunks/{index.BqBBgbUD.js → index.BCuqTE0-.js} +1 -1
- package/dist/chunks/{index.Bn--Smwh.js → index.BMn-FII2.js} +1 -1
- package/dist/chunks/{index.Ta0oUBnF.js → index.CFntx-q-.js} +1 -1
- package/dist/chunks/{index.DX7sUMma.js → index.CJMb4eat.js} +1 -1
- package/dist/chunks/{index.BT17WfxW.js → index.DeubPQYV.js} +289 -279
- package/dist/chunks/{index.DxdZPfV-.js → index.Dqd3zZhb.js} +3 -3
- package/dist/chunks/{index.DFVxgFdA.js → index.PxfLXMKx.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.DnYwlaY7.js → info-NVLQJR56.CT2HQfZM.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.QYBsqnvN.js → infoDiagram-WHAUD3N6.DkI26nCN.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.B-RcYNB4.js → journeyDiagram-XKPGCS4Q.SmJ-aYd7.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.C3quuE8G.js → kanban-definition-3W4ZIXB7.QkUfvOxU.js} +2 -2
- package/dist/chunks/{layout.C98wRZLT.js → layout.BPVwnS3C.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.Tx0LTTFG.js → mermaid-parser.core.CC90wBOT.js} +10 -10
- package/dist/chunks/{min.DAAoqkd5.js → min.DW5MR0K7.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.Cy6daGIr.js → mindmap-definition-VGOIOE7T.C4Mv9qPH.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.JAwpS9gJ.js → packet-BFZMPI3H.BSv4TlMo.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.JFJjozd4.js → pie-7BOR55EZ.DV9w_hB7.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.DbLch8HR.js → pieDiagram-ADFJNKIX.C7gur2Xo.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.DjoIHdnw.js → quadrantDiagram-AYHSOK5B.DqP9LUWy.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.DhZ4p_it.js → radar-NHE76QYJ.B-zQTCZa.js} +1 -1
- package/dist/chunks/{rehype-mermaid.BjrrnWYM.js → rehype-mermaid.C_1hNCFQ.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.BGfJ79B6.js → requirementDiagram-UZGBJVZJ.CdGD5VkW.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BV0afQQg.js → sankeyDiagram-TZEHDZUN.CvBk55_M.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.CpTBMqCC.js → sequenceDiagram-WL72ISMW.2ZvUIOjJ.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.CcAM7PFu.js → stateDiagram-FKZM4ZOC.DS8PrIW4.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.DdWeXwFt.js → stateDiagram-v2-4FDKWEC3.DT7LmwqR.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.Ttk8nWu8.js → timeline-definition-IT6M3QCI.Mhk1DenG.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DGacR1wp.js → treemap-KMMF4GRG.COcc1zMf.js} +1 -1
- package/dist/chunks/{useMarkdown.CESnRnq4.js → useMarkdown.D8tFnF_6.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.Dchxs2UM.js → xychartDiagram-PRI3JC2R.BGIoj93u.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/BubbleActions.D8zEgDPJ.js +0 -174
- package/dist/chunks/HistoryEntry.elhISa3G.js +0 -721
|
@@ -3,10 +3,10 @@ import * as D from "react";
|
|
|
3
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
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",
|
|
6
|
+
let qi = "user", Bi = "assistant", Ge = "OpenAI", ht = "Anthropic", dt = "Google", Zs = "Perplexity", ji = Ge, er = [Ge, ht, dt], 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], [ht]: [ss, rs], [dt]: [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", SHARE_CHAT: "addon:share-chat" } }, 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 === Ge || r ===
|
|
9
|
+
for (let s of e) for (let [r, n] of Object.entries(cs)) n.includes(s) && (r === Ge || r === ht || r === dt) && t.add(r);
|
|
10
10
|
return er.filter((s) => t.has(s));
|
|
11
11
|
}, sr = (e) => {
|
|
12
12
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -184,21 +184,21 @@ function st(e, t, s = 0) {
|
|
|
184
184
|
const r = bt(e) && bt(t);
|
|
185
185
|
if (!r && !(rt(e) && rt(t))) return t;
|
|
186
186
|
const i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, c = r ? new Array(o) : {};
|
|
187
|
-
let
|
|
187
|
+
let d = 0;
|
|
188
188
|
for (let u = 0; u < o; u++) {
|
|
189
|
-
const
|
|
189
|
+
const h = r ? u : a[u], l = e[h], p = t[h];
|
|
190
190
|
if (l === p) {
|
|
191
|
-
c[
|
|
191
|
+
c[h] = l, (r ? u < i : lr.call(e, h)) && d++;
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
194
|
if (l === null || p === null || typeof l != "object" || typeof p != "object") {
|
|
195
|
-
c[
|
|
195
|
+
c[h] = p;
|
|
196
196
|
continue;
|
|
197
197
|
}
|
|
198
198
|
const f = st(l, p, s + 1);
|
|
199
|
-
c[
|
|
199
|
+
c[h] = f, f === l && d++;
|
|
200
200
|
}
|
|
201
|
-
return i === o &&
|
|
201
|
+
return i === o && d === i ? e : c;
|
|
202
202
|
}
|
|
203
203
|
function De(e, t) {
|
|
204
204
|
if (!t || Object.keys(e).length !== Object.keys(t).length)
|
|
@@ -223,7 +223,7 @@ function rt(e) {
|
|
|
223
223
|
function It(e) {
|
|
224
224
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function hr(e) {
|
|
227
227
|
return new Promise((t) => {
|
|
228
228
|
se.setTimeout(t, e);
|
|
229
229
|
});
|
|
@@ -244,7 +244,7 @@ function nt(e, t, s) {
|
|
|
244
244
|
}
|
|
245
245
|
return t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function dr(e, t, s = 0) {
|
|
248
248
|
const r = [...e, t];
|
|
249
249
|
return s && r.length > s ? r.slice(1) : r;
|
|
250
250
|
}
|
|
@@ -423,7 +423,7 @@ var T = Er(), gr = class extends Se {
|
|
|
423
423
|
function Sr(e) {
|
|
424
424
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function hs(e) {
|
|
427
427
|
return (e ?? "online") === "online" ? Ue.isOnline() : !0;
|
|
428
428
|
}
|
|
429
429
|
var at = class extends Error {
|
|
@@ -431,7 +431,7 @@ var at = class extends Error {
|
|
|
431
431
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
|
-
function
|
|
434
|
+
function ds(e) {
|
|
435
435
|
let t = !1, s = 0, r;
|
|
436
436
|
const n = it(), i = () => n.status !== "pending", a = (y) => {
|
|
437
437
|
if (!i()) {
|
|
@@ -442,13 +442,13 @@ function hs(e) {
|
|
|
442
442
|
t = !0;
|
|
443
443
|
}, c = () => {
|
|
444
444
|
t = !1;
|
|
445
|
-
},
|
|
445
|
+
}, d = () => yt.isFocused() && (e.networkMode === "always" || Ue.isOnline()) && e.canRun(), u = () => hs(e.networkMode) && e.canRun(), h = (y) => {
|
|
446
446
|
i() || (r?.(), n.resolve(y));
|
|
447
447
|
}, l = (y) => {
|
|
448
448
|
i() || (r?.(), n.reject(y));
|
|
449
449
|
}, p = () => new Promise((y) => {
|
|
450
450
|
r = (O) => {
|
|
451
|
-
(i() ||
|
|
451
|
+
(i() || d()) && y(O);
|
|
452
452
|
}, e.onPause?.();
|
|
453
453
|
}).then(() => {
|
|
454
454
|
r = void 0, i() || e.onContinue?.();
|
|
@@ -459,19 +459,19 @@ function hs(e) {
|
|
|
459
459
|
const O = s === 0 ? e.initialPromise : void 0;
|
|
460
460
|
try {
|
|
461
461
|
y = O ?? e.fn();
|
|
462
|
-
} catch (
|
|
463
|
-
y = Promise.reject(
|
|
462
|
+
} catch (v) {
|
|
463
|
+
y = Promise.reject(v);
|
|
464
464
|
}
|
|
465
|
-
Promise.resolve(y).then(
|
|
465
|
+
Promise.resolve(y).then(h).catch((v) => {
|
|
466
466
|
if (i())
|
|
467
467
|
return;
|
|
468
|
-
const L = e.retry ?? (re ? 0 : 3), H = e.retryDelay ?? Sr, x = typeof H == "function" ? H(s,
|
|
468
|
+
const L = e.retry ?? (re ? 0 : 3), H = e.retryDelay ?? Sr, x = typeof H == "function" ? H(s, v) : H, G = L === !0 || typeof L == "number" && s < L || typeof L == "function" && L(s, v);
|
|
469
469
|
if (t || !G) {
|
|
470
|
-
l(
|
|
470
|
+
l(v);
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
|
-
s++, e.onFail?.(s,
|
|
474
|
-
t ? l(
|
|
473
|
+
s++, e.onFail?.(s, v), hr(x).then(() => d() ? void 0 : p()).then(() => {
|
|
474
|
+
t ? l(v) : f();
|
|
475
475
|
});
|
|
476
476
|
});
|
|
477
477
|
};
|
|
@@ -617,7 +617,7 @@ var fs = class {
|
|
|
617
617
|
get: () => (this.#o = !0, s.signal)
|
|
618
618
|
});
|
|
619
619
|
}, n = () => {
|
|
620
|
-
const o = ls(this.options, t),
|
|
620
|
+
const o = ls(this.options, t), d = (() => {
|
|
621
621
|
const u = {
|
|
622
622
|
client: this.#n,
|
|
623
623
|
queryKey: this.queryKey,
|
|
@@ -627,9 +627,9 @@ var fs = class {
|
|
|
627
627
|
})();
|
|
628
628
|
return this.#o = !1, this.options.persister ? this.options.persister(
|
|
629
629
|
o,
|
|
630
|
-
|
|
630
|
+
d,
|
|
631
631
|
this
|
|
632
|
-
) : o(
|
|
632
|
+
) : o(d);
|
|
633
633
|
}, a = (() => {
|
|
634
634
|
const o = {
|
|
635
635
|
fetchOptions: t,
|
|
@@ -641,7 +641,7 @@ var fs = class {
|
|
|
641
641
|
};
|
|
642
642
|
return r(o), o;
|
|
643
643
|
})();
|
|
644
|
-
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#i({ type: "fetch", meta: a.fetchOptions?.meta }), this.#r =
|
|
644
|
+
this.options.behavior?.onFetch(a, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#i({ type: "fetch", meta: a.fetchOptions?.meta }), this.#r = ds({
|
|
645
645
|
initialPromise: t?.initialPromise,
|
|
646
646
|
fn: a.fetchFn,
|
|
647
647
|
onCancel: (o) => {
|
|
@@ -775,7 +775,7 @@ function ps(e, t) {
|
|
|
775
775
|
return {
|
|
776
776
|
fetchFailureCount: 0,
|
|
777
777
|
fetchFailureReason: null,
|
|
778
|
-
fetchStatus:
|
|
778
|
+
fetchStatus: hs(t.networkMode) ? "fetching" : "paused",
|
|
779
779
|
...e === void 0 && {
|
|
780
780
|
error: null,
|
|
781
781
|
status: "pending"
|
|
@@ -821,7 +821,7 @@ var Tr = class extends Se {
|
|
|
821
821
|
#o;
|
|
822
822
|
#i;
|
|
823
823
|
#y;
|
|
824
|
-
#
|
|
824
|
+
#d;
|
|
825
825
|
// This property keeps track of the last query with defined data.
|
|
826
826
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
827
827
|
#f;
|
|
@@ -833,7 +833,7 @@ var Tr = class extends Se {
|
|
|
833
833
|
this.refetch = this.refetch.bind(this);
|
|
834
834
|
}
|
|
835
835
|
onSubscribe() {
|
|
836
|
-
this.listeners.size === 1 && (this.#t.addObserver(this), Ct(this.#t, this.options) ? this.#
|
|
836
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Ct(this.#t, this.options) ? this.#h() : this.updateResult(), this.#S());
|
|
837
837
|
}
|
|
838
838
|
onUnsubscribe() {
|
|
839
839
|
this.hasListeners() || this.destroy();
|
|
@@ -872,7 +872,7 @@ var Tr = class extends Se {
|
|
|
872
872
|
s,
|
|
873
873
|
this.options,
|
|
874
874
|
t
|
|
875
|
-
) && this.#
|
|
875
|
+
) && this.#h(), this.updateResult(), r && (this.#t !== s || K(this.options.enabled, this.#t) !== K(t.enabled, this.#t) || te(this.options.staleTime, this.#t) !== te(t.staleTime, this.#t)) && this.#m();
|
|
876
876
|
const n = this.#E();
|
|
877
877
|
r && (this.#t !== s || K(this.options.enabled, this.#t) !== K(t.enabled, this.#t) || n !== this.#c) && this.#g(n);
|
|
878
878
|
}
|
|
@@ -908,12 +908,12 @@ var Tr = class extends Se {
|
|
|
908
908
|
return s.fetch().then(() => this.createResult(s, t));
|
|
909
909
|
}
|
|
910
910
|
fetch(e) {
|
|
911
|
-
return this.#
|
|
911
|
+
return this.#h({
|
|
912
912
|
...e,
|
|
913
913
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
914
914
|
}).then(() => (this.updateResult(), this.#n));
|
|
915
915
|
}
|
|
916
|
-
#
|
|
916
|
+
#h(e) {
|
|
917
917
|
this.#A();
|
|
918
918
|
let t = this.#t.fetch(
|
|
919
919
|
this.options,
|
|
@@ -939,7 +939,7 @@ var Tr = class extends Se {
|
|
|
939
939
|
}
|
|
940
940
|
#g(e) {
|
|
941
941
|
this.#T(), this.#c = e, !(re || K(this.options.enabled, this.#t) === !1 || !tt(this.#c) || this.#c === 0) && (this.#l = se.setInterval(() => {
|
|
942
|
-
(this.options.refetchIntervalInBackground || yt.isFocused()) && this.#
|
|
942
|
+
(this.options.refetchIntervalInBackground || yt.isFocused()) && this.#h();
|
|
943
943
|
}, this.#c));
|
|
944
944
|
}
|
|
945
945
|
#S() {
|
|
@@ -952,40 +952,40 @@ var Tr = class extends Se {
|
|
|
952
952
|
this.#l && (se.clearInterval(this.#l), this.#l = void 0);
|
|
953
953
|
}
|
|
954
954
|
createResult(e, t) {
|
|
955
|
-
const s = this.#t, r = this.options, n = this.#n, i = this.#r, a = this.#a, c = e !== s ? e.state : this.#s, { state:
|
|
956
|
-
let u = { ...
|
|
955
|
+
const s = this.#t, r = this.options, n = this.#n, i = this.#r, a = this.#a, c = e !== s ? e.state : this.#s, { state: d } = e;
|
|
956
|
+
let u = { ...d }, h = !1, l;
|
|
957
957
|
if (t._optimisticResults) {
|
|
958
|
-
const
|
|
958
|
+
const R = this.hasListeners(), F = !R && Ct(e, t), ee = R && Pt(e, s, t, r);
|
|
959
959
|
(F || ee) && (u = {
|
|
960
960
|
...u,
|
|
961
|
-
...ps(
|
|
961
|
+
...ps(d.data, e.options)
|
|
962
962
|
}), t._optimisticResults === "isRestoring" && (u.fetchStatus = "idle");
|
|
963
963
|
}
|
|
964
964
|
let { error: p, errorUpdatedAt: f, status: y } = u;
|
|
965
965
|
l = u.data;
|
|
966
966
|
let O = !1;
|
|
967
967
|
if (t.placeholderData !== void 0 && l === void 0 && y === "pending") {
|
|
968
|
-
let
|
|
969
|
-
n?.isPlaceholderData && t.placeholderData === a?.placeholderData ? (
|
|
968
|
+
let R;
|
|
969
|
+
n?.isPlaceholderData && t.placeholderData === a?.placeholderData ? (R = n.data, O = !0) : R = typeof t.placeholderData == "function" ? t.placeholderData(
|
|
970
970
|
this.#f?.state.data,
|
|
971
971
|
this.#f
|
|
972
|
-
) : t.placeholderData,
|
|
972
|
+
) : t.placeholderData, R !== void 0 && (y = "success", l = nt(
|
|
973
973
|
n?.data,
|
|
974
|
-
|
|
974
|
+
R,
|
|
975
975
|
t
|
|
976
|
-
),
|
|
976
|
+
), h = !0);
|
|
977
977
|
}
|
|
978
978
|
if (t.select && l !== void 0 && !O)
|
|
979
979
|
if (n && l === i?.data && t.select === this.#y)
|
|
980
|
-
l = this.#
|
|
980
|
+
l = this.#d;
|
|
981
981
|
else
|
|
982
982
|
try {
|
|
983
|
-
this.#y = t.select, l = t.select(l), l = nt(n?.data, l, t), this.#
|
|
984
|
-
} catch (
|
|
985
|
-
this.#i =
|
|
983
|
+
this.#y = t.select, l = t.select(l), l = nt(n?.data, l, t), this.#d = l, this.#i = null;
|
|
984
|
+
} catch (R) {
|
|
985
|
+
this.#i = R;
|
|
986
986
|
}
|
|
987
|
-
this.#i && (p = this.#i, l = this.#
|
|
988
|
-
const
|
|
987
|
+
this.#i && (p = this.#i, l = this.#d, f = Date.now(), y = "error");
|
|
988
|
+
const v = u.fetchStatus === "fetching", L = y === "pending", H = y === "error", x = L && v, G = l !== void 0, N = {
|
|
989
989
|
status: y,
|
|
990
990
|
fetchStatus: u.fetchStatus,
|
|
991
991
|
isPending: L,
|
|
@@ -1002,11 +1002,11 @@ var Tr = class extends Se {
|
|
|
1002
1002
|
errorUpdateCount: u.errorUpdateCount,
|
|
1003
1003
|
isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
|
|
1004
1004
|
isFetchedAfterMount: u.dataUpdateCount > c.dataUpdateCount || u.errorUpdateCount > c.errorUpdateCount,
|
|
1005
|
-
isFetching:
|
|
1006
|
-
isRefetching:
|
|
1005
|
+
isFetching: v,
|
|
1006
|
+
isRefetching: v && !L,
|
|
1007
1007
|
isLoadingError: H && !G,
|
|
1008
1008
|
isPaused: u.fetchStatus === "paused",
|
|
1009
|
-
isPlaceholderData:
|
|
1009
|
+
isPlaceholderData: h,
|
|
1010
1010
|
isRefetchError: H && G,
|
|
1011
1011
|
isStale: mt(e, t),
|
|
1012
1012
|
refetch: this.refetch,
|
|
@@ -1014,15 +1014,15 @@ var Tr = class extends Se {
|
|
|
1014
1014
|
isEnabled: K(t.enabled, e) !== !1
|
|
1015
1015
|
};
|
|
1016
1016
|
if (this.options.experimental_prefetchInRender) {
|
|
1017
|
-
const
|
|
1017
|
+
const R = (oe) => {
|
|
1018
1018
|
N.status === "error" ? oe.reject(N.error) : N.data !== void 0 && oe.resolve(N.data);
|
|
1019
1019
|
}, F = () => {
|
|
1020
1020
|
const oe = this.#o = N.promise = it();
|
|
1021
|
-
|
|
1021
|
+
R(oe);
|
|
1022
1022
|
}, ee = this.#o;
|
|
1023
1023
|
switch (ee.status) {
|
|
1024
1024
|
case "pending":
|
|
1025
|
-
e.queryHash === s.queryHash &&
|
|
1025
|
+
e.queryHash === s.queryHash && R(ee);
|
|
1026
1026
|
break;
|
|
1027
1027
|
case "fulfilled":
|
|
1028
1028
|
(N.status === "error" || N.data !== ee.value) && F();
|
|
@@ -1103,9 +1103,9 @@ function Mt(e) {
|
|
|
1103
1103
|
onFetch: (t, s) => {
|
|
1104
1104
|
const r = t.options, n = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
|
|
1105
1105
|
let o = { pages: [], pageParams: [] }, c = 0;
|
|
1106
|
-
const
|
|
1106
|
+
const d = async () => {
|
|
1107
1107
|
let u = !1;
|
|
1108
|
-
const
|
|
1108
|
+
const h = (f) => {
|
|
1109
1109
|
pr(
|
|
1110
1110
|
f,
|
|
1111
1111
|
() => t.signal,
|
|
@@ -1124,8 +1124,8 @@ function Mt(e) {
|
|
|
1124
1124
|
direction: O ? "backward" : "forward",
|
|
1125
1125
|
meta: t.options.meta
|
|
1126
1126
|
};
|
|
1127
|
-
return
|
|
1128
|
-
})(), H = await l(L), { maxPages: x } = t.options, G = O ? fr :
|
|
1127
|
+
return h(we), we;
|
|
1128
|
+
})(), H = await l(L), { maxPages: x } = t.options, G = O ? fr : dr;
|
|
1129
1129
|
return {
|
|
1130
1130
|
pages: G(f.pages, H, x),
|
|
1131
1131
|
pageParams: G(f.pageParams, y, x)
|
|
@@ -1135,8 +1135,8 @@ function Mt(e) {
|
|
|
1135
1135
|
const f = n === "backward", y = f ? Rr : kt, O = {
|
|
1136
1136
|
pages: i,
|
|
1137
1137
|
pageParams: a
|
|
1138
|
-
},
|
|
1139
|
-
o = await p(O,
|
|
1138
|
+
}, v = y(r, O);
|
|
1139
|
+
o = await p(O, v, f);
|
|
1140
1140
|
} else {
|
|
1141
1141
|
const f = e ?? i.length;
|
|
1142
1142
|
do {
|
|
@@ -1149,7 +1149,7 @@ function Mt(e) {
|
|
|
1149
1149
|
return o;
|
|
1150
1150
|
};
|
|
1151
1151
|
t.options.persister ? t.fetchFn = () => t.options.persister?.(
|
|
1152
|
-
|
|
1152
|
+
d,
|
|
1153
1153
|
{
|
|
1154
1154
|
client: t.client,
|
|
1155
1155
|
queryKey: t.queryKey,
|
|
@@ -1157,7 +1157,7 @@ function Mt(e) {
|
|
|
1157
1157
|
signal: t.signal
|
|
1158
1158
|
},
|
|
1159
1159
|
s
|
|
1160
|
-
) : t.fetchFn =
|
|
1160
|
+
) : t.fetchFn = d;
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
@@ -1216,7 +1216,7 @@ var br = class extends fs {
|
|
|
1216
1216
|
meta: this.options.meta,
|
|
1217
1217
|
mutationKey: this.options.mutationKey
|
|
1218
1218
|
};
|
|
1219
|
-
this.#n =
|
|
1219
|
+
this.#n = ds({
|
|
1220
1220
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, s) : Promise.reject(new Error("No mutationFn found")),
|
|
1221
1221
|
onFail: (i, a) => {
|
|
1222
1222
|
this.#r({ type: "failed", failureCount: i, error: a });
|
|
@@ -1938,26 +1938,26 @@ function Gr(e, t, s) {
|
|
|
1938
1938
|
process.env.NODE_ENV !== "production" && (a.queryFn || console.error(
|
|
1939
1939
|
`[${a.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`
|
|
1940
1940
|
)), a._optimisticResults = r ? "isRestoring" : "optimistic", Kr(a), Ur(a, n, o), Lr(n);
|
|
1941
|
-
const c = !i.getQueryCache().get(a.queryHash), [
|
|
1941
|
+
const c = !i.getQueryCache().get(a.queryHash), [d] = D.useState(
|
|
1942
1942
|
() => new t(
|
|
1943
1943
|
i,
|
|
1944
1944
|
a
|
|
1945
1945
|
)
|
|
1946
|
-
), u =
|
|
1946
|
+
), u = d.getOptimisticResult(a), h = !r && e.subscribed !== !1;
|
|
1947
1947
|
if (D.useSyncExternalStore(
|
|
1948
1948
|
D.useCallback(
|
|
1949
1949
|
(l) => {
|
|
1950
|
-
const p =
|
|
1951
|
-
return
|
|
1950
|
+
const p = h ? d.subscribe(T.batchCalls(l)) : U;
|
|
1951
|
+
return d.updateResult(), p;
|
|
1952
1952
|
},
|
|
1953
|
-
[
|
|
1953
|
+
[d, h]
|
|
1954
1954
|
),
|
|
1955
|
-
() =>
|
|
1956
|
-
() =>
|
|
1955
|
+
() => d.getCurrentResult(),
|
|
1956
|
+
() => d.getCurrentResult()
|
|
1957
1957
|
), D.useEffect(() => {
|
|
1958
|
-
|
|
1959
|
-
}, [a,
|
|
1960
|
-
throw $t(a,
|
|
1958
|
+
d.setOptions(a);
|
|
1959
|
+
}, [a, d]), xr(a, u))
|
|
1960
|
+
throw $t(a, d, n);
|
|
1961
1961
|
if (Fr({
|
|
1962
1962
|
result: u,
|
|
1963
1963
|
errorResetBoundary: n,
|
|
@@ -1971,13 +1971,13 @@ function Gr(e, t, s) {
|
|
|
1971
1971
|
u
|
|
1972
1972
|
), a.experimental_prefetchInRender && !re && Hr(u, r) && (c ? (
|
|
1973
1973
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
1974
|
-
$t(a,
|
|
1974
|
+
$t(a, d, n)
|
|
1975
1975
|
) : (
|
|
1976
1976
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
1977
1977
|
o?.promise
|
|
1978
1978
|
))?.catch(U).finally(() => {
|
|
1979
|
-
|
|
1980
|
-
}), a.notifyOnChangeProps ? u :
|
|
1979
|
+
d.updateResult();
|
|
1980
|
+
}), a.notifyOnChangeProps ? u : d.trackResult(u);
|
|
1981
1981
|
}
|
|
1982
1982
|
function z(e, t) {
|
|
1983
1983
|
return Gr(e, Tr);
|
|
@@ -2473,7 +2473,7 @@ async function ln(e, t, s) {
|
|
|
2473
2473
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
2474
2474
|
return on(e, t, s);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function hn(e, t, s, r, n) {
|
|
2477
2477
|
if (n.crit !== void 0 && r?.crit === void 0)
|
|
2478
2478
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
2479
2479
|
if (!r || r.crit === void 0)
|
|
@@ -2492,7 +2492,7 @@ function dn(e, t, s, r, n) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
return new Set(r.crit);
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function dn(e, t) {
|
|
2496
2496
|
if (t !== void 0 && (!Array.isArray(t) || t.some((s) => typeof s != "string")))
|
|
2497
2497
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
|
2498
2498
|
if (t)
|
|
@@ -2799,14 +2799,14 @@ async function Rn(e, t, s) {
|
|
|
2799
2799
|
const n = {
|
|
2800
2800
|
...r,
|
|
2801
2801
|
...e.header
|
|
2802
|
-
}, i =
|
|
2802
|
+
}, i = hn(M, /* @__PURE__ */ new Map([["b64", !0]]), s?.crit, r, n);
|
|
2803
2803
|
let a = !0;
|
|
2804
2804
|
if (i.has("b64") && (a = r.b64, typeof a != "boolean"))
|
|
2805
2805
|
throw new M('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
2806
2806
|
const { alg: o } = n;
|
|
2807
2807
|
if (typeof o != "string" || !o)
|
|
2808
2808
|
throw new M('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
2809
|
-
const c = s &&
|
|
2809
|
+
const c = s && dn("algorithms", s.algorithms);
|
|
2810
2810
|
if (c && !c.has(o))
|
|
2811
2811
|
throw new jr('"alg" (Algorithm) Header Parameter value not allowed');
|
|
2812
2812
|
if (a) {
|
|
@@ -2814,17 +2814,17 @@ async function Rn(e, t, s) {
|
|
|
2814
2814
|
throw new M("JWS Payload must be a string");
|
|
2815
2815
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
2816
2816
|
throw new M("JWS Payload must be a string or an Uint8Array instance");
|
|
2817
|
-
let
|
|
2818
|
-
typeof t == "function" && (t = await t(r, e),
|
|
2817
|
+
let d = !1;
|
|
2818
|
+
typeof t == "function" && (t = await t(r, e), d = !0), wn(o, t, "verify");
|
|
2819
2819
|
const u = Br(e.protected !== void 0 ? je(e.protected) : new Uint8Array(), je("."), typeof e.payload == "string" ? a ? je(e.payload) : Dt.encode(e.payload) : e.payload);
|
|
2820
|
-
let
|
|
2820
|
+
let h;
|
|
2821
2821
|
try {
|
|
2822
|
-
|
|
2822
|
+
h = ve(e.signature);
|
|
2823
2823
|
} catch {
|
|
2824
2824
|
throw new M("Failed to base64url decode the signature");
|
|
2825
2825
|
}
|
|
2826
2826
|
const l = await En(t, o);
|
|
2827
|
-
if (!await vn(o, l,
|
|
2827
|
+
if (!await vn(o, l, h, u))
|
|
2828
2828
|
throw new Qr();
|
|
2829
2829
|
let p;
|
|
2830
2830
|
if (a)
|
|
@@ -2835,7 +2835,7 @@ async function Rn(e, t, s) {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
else typeof e.payload == "string" ? p = Dt.encode(e.payload) : p = e.payload;
|
|
2837
2837
|
const f = { payload: p };
|
|
2838
|
-
return e.protected !== void 0 && (f.protectedHeader = r), e.header !== void 0 && (f.unprotectedHeader = e.header),
|
|
2838
|
+
return e.protected !== void 0 && (f.protectedHeader = r), e.header !== void 0 && (f.unprotectedHeader = e.header), d ? { ...f, key: l } : f;
|
|
2839
2839
|
}
|
|
2840
2840
|
async function bn(e, t, s) {
|
|
2841
2841
|
if (e instanceof Uint8Array && (e = ge.decode(e)), typeof e != "string")
|
|
@@ -2903,8 +2903,8 @@ function Mn(e, t, s = {}) {
|
|
|
2903
2903
|
const { typ: n } = s;
|
|
2904
2904
|
if (n && (typeof e.typ != "string" || Ft(e.typ) !== Ft(n)))
|
|
2905
2905
|
throw new q('unexpected "typ" JWT header value', r, "typ", "check_failed");
|
|
2906
|
-
const { requiredClaims: i = [], issuer: a, subject: o, audience: c, maxTokenAge:
|
|
2907
|
-
|
|
2906
|
+
const { requiredClaims: i = [], issuer: a, subject: o, audience: c, maxTokenAge: d } = s, u = [...i];
|
|
2907
|
+
d !== void 0 && u.push("iat"), c !== void 0 && u.push("aud"), o !== void 0 && u.push("sub"), a !== void 0 && u.push("iss");
|
|
2908
2908
|
for (const f of new Set(u.reverse()))
|
|
2909
2909
|
if (!(f in r))
|
|
2910
2910
|
throw new q(`missing required "${f}" claim`, r, f, "missing");
|
|
@@ -2914,40 +2914,40 @@ function Mn(e, t, s = {}) {
|
|
|
2914
2914
|
throw new q('unexpected "sub" claim value', r, "sub", "check_failed");
|
|
2915
2915
|
if (c && !Pn(r.aud, typeof c == "string" ? [c] : c))
|
|
2916
2916
|
throw new q('unexpected "aud" claim value', r, "aud", "check_failed");
|
|
2917
|
-
let
|
|
2917
|
+
let h;
|
|
2918
2918
|
switch (typeof s.clockTolerance) {
|
|
2919
2919
|
case "string":
|
|
2920
|
-
|
|
2920
|
+
h = Lt(s.clockTolerance);
|
|
2921
2921
|
break;
|
|
2922
2922
|
case "number":
|
|
2923
|
-
|
|
2923
|
+
h = s.clockTolerance;
|
|
2924
2924
|
break;
|
|
2925
2925
|
case "undefined":
|
|
2926
|
-
|
|
2926
|
+
h = 0;
|
|
2927
2927
|
break;
|
|
2928
2928
|
default:
|
|
2929
2929
|
throw new TypeError("Invalid clockTolerance option type");
|
|
2930
2930
|
}
|
|
2931
2931
|
const { currentDate: l } = s, p = In(l || /* @__PURE__ */ new Date());
|
|
2932
|
-
if ((r.iat !== void 0 ||
|
|
2932
|
+
if ((r.iat !== void 0 || d) && typeof r.iat != "number")
|
|
2933
2933
|
throw new q('"iat" claim must be a number', r, "iat", "invalid");
|
|
2934
2934
|
if (r.nbf !== void 0) {
|
|
2935
2935
|
if (typeof r.nbf != "number")
|
|
2936
2936
|
throw new q('"nbf" claim must be a number', r, "nbf", "invalid");
|
|
2937
|
-
if (r.nbf > p +
|
|
2937
|
+
if (r.nbf > p + h)
|
|
2938
2938
|
throw new q('"nbf" claim timestamp check failed', r, "nbf", "check_failed");
|
|
2939
2939
|
}
|
|
2940
2940
|
if (r.exp !== void 0) {
|
|
2941
2941
|
if (typeof r.exp != "number")
|
|
2942
2942
|
throw new q('"exp" claim must be a number', r, "exp", "invalid");
|
|
2943
|
-
if (r.exp <= p -
|
|
2943
|
+
if (r.exp <= p - h)
|
|
2944
2944
|
throw new Nt('"exp" claim timestamp check failed', r, "exp", "check_failed");
|
|
2945
2945
|
}
|
|
2946
|
-
if (
|
|
2947
|
-
const f = p - r.iat, y = typeof
|
|
2948
|
-
if (f -
|
|
2946
|
+
if (d) {
|
|
2947
|
+
const f = p - r.iat, y = typeof d == "number" ? d : Lt(d);
|
|
2948
|
+
if (f - h > y)
|
|
2949
2949
|
throw new Nt('"iat" claim timestamp check failed (too far in the past)', r, "iat", "check_failed");
|
|
2950
|
-
if (f < 0 -
|
|
2950
|
+
if (f < 0 - h)
|
|
2951
2951
|
throw new q('"iat" claim timestamp check failed (it should be in the past)', r, "iat", "check_failed");
|
|
2952
2952
|
}
|
|
2953
2953
|
return r;
|
|
@@ -3241,13 +3241,13 @@ async function Vn(e) {
|
|
|
3241
3241
|
}
|
|
3242
3242
|
if (!i)
|
|
3243
3243
|
throw new Error("Registration was not completed");
|
|
3244
|
-
const { id: a, rawId: o, response: c, type:
|
|
3244
|
+
const { id: a, rawId: o, response: c, type: d } = i;
|
|
3245
3245
|
let u;
|
|
3246
3246
|
typeof c.getTransports == "function" && (u = c.getTransports());
|
|
3247
|
-
let
|
|
3247
|
+
let h;
|
|
3248
3248
|
if (typeof c.getPublicKeyAlgorithm == "function")
|
|
3249
3249
|
try {
|
|
3250
|
-
|
|
3250
|
+
h = c.getPublicKeyAlgorithm();
|
|
3251
3251
|
} catch (f) {
|
|
3252
3252
|
Ye("getPublicKeyAlgorithm()", f);
|
|
3253
3253
|
}
|
|
@@ -3273,11 +3273,11 @@ async function Vn(e) {
|
|
|
3273
3273
|
attestationObject: j(c.attestationObject),
|
|
3274
3274
|
clientDataJSON: j(c.clientDataJSON),
|
|
3275
3275
|
transports: u,
|
|
3276
|
-
publicKeyAlgorithm:
|
|
3276
|
+
publicKeyAlgorithm: h,
|
|
3277
3277
|
publicKey: l,
|
|
3278
3278
|
authenticatorData: p
|
|
3279
3279
|
},
|
|
3280
|
-
type:
|
|
3280
|
+
type: d,
|
|
3281
3281
|
clientExtensionResults: i.getClientExtensionResults(),
|
|
3282
3282
|
authenticatorAttachment: Ms(i.authenticatorAttachment)
|
|
3283
3283
|
};
|
|
@@ -3364,18 +3364,18 @@ async function Xn(e) {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
if (!o)
|
|
3366
3366
|
throw new Error("Authentication was not completed");
|
|
3367
|
-
const { id: c, rawId:
|
|
3367
|
+
const { id: c, rawId: d, response: u, type: h } = o;
|
|
3368
3368
|
let l;
|
|
3369
3369
|
return u.userHandle && (l = j(u.userHandle)), {
|
|
3370
3370
|
id: c,
|
|
3371
|
-
rawId: j(
|
|
3371
|
+
rawId: j(d),
|
|
3372
3372
|
response: {
|
|
3373
3373
|
authenticatorData: j(u.authenticatorData),
|
|
3374
3374
|
clientDataJSON: j(u.clientDataJSON),
|
|
3375
3375
|
signature: j(u.signature),
|
|
3376
3376
|
userHandle: l
|
|
3377
3377
|
},
|
|
3378
|
-
type:
|
|
3378
|
+
type: h,
|
|
3379
3379
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
3380
3380
|
authenticatorAttachment: Ms(o.authenticatorAttachment)
|
|
3381
3381
|
};
|
|
@@ -3464,7 +3464,7 @@ function Ze(e, t, s) {
|
|
|
3464
3464
|
throw new Error("Random bytes length must be >= 16");
|
|
3465
3465
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, ti(r);
|
|
3466
3466
|
}
|
|
3467
|
-
const
|
|
3467
|
+
const he = "Your session has expired. For your security, please log in again to continue.", ii = "Your session has been successfully terminated.", et = "Login failed. Please try again.", ai = "Error getting access token, please re-authenticate.", oi = "You forgot to wrap your component in <AuthProvider>.", Pe = "@@auth@@", Te = "LOADING", ke = "LOGIN", $s = "LOGOUT", Oe = "success", W = "failure", Ds = "include", Ns = "POST", Us = "application/json", Me = {
|
|
3468
3468
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
3469
3469
|
$clientId: String!,
|
|
3470
3470
|
$username: String!,
|
|
@@ -3545,7 +3545,7 @@ const de = "Your session has expired. For your security, please log in again to
|
|
|
3545
3545
|
email
|
|
3546
3546
|
}
|
|
3547
3547
|
}`
|
|
3548
|
-
},
|
|
3548
|
+
}, de = {
|
|
3549
3549
|
GET_REGISTRATION_OPTIONS: {
|
|
3550
3550
|
schema: Me.GET_REGISTRATION_OPTIONS,
|
|
3551
3551
|
method: "getPasskeyRegistrationOptions"
|
|
@@ -3633,7 +3633,7 @@ const de = "Your session has expired. For your security, please log in again to
|
|
|
3633
3633
|
} catch {
|
|
3634
3634
|
return "";
|
|
3635
3635
|
}
|
|
3636
|
-
},
|
|
3636
|
+
}, hi = async ({
|
|
3637
3637
|
userId: e,
|
|
3638
3638
|
clientId: t,
|
|
3639
3639
|
domain: s,
|
|
@@ -3658,7 +3658,7 @@ const de = "Your session has expired. For your security, please log in again to
|
|
|
3658
3658
|
status: W
|
|
3659
3659
|
};
|
|
3660
3660
|
}
|
|
3661
|
-
},
|
|
3661
|
+
}, di = async ({
|
|
3662
3662
|
username: e,
|
|
3663
3663
|
password: t,
|
|
3664
3664
|
clientId: s,
|
|
@@ -3668,11 +3668,11 @@ const de = "Your session has expired. For your security, please log in again to
|
|
|
3668
3668
|
code: a,
|
|
3669
3669
|
code_verifier: o,
|
|
3670
3670
|
domain: c,
|
|
3671
|
-
ua:
|
|
3671
|
+
ua: d,
|
|
3672
3672
|
endpoint: u
|
|
3673
3673
|
}) => {
|
|
3674
3674
|
try {
|
|
3675
|
-
const
|
|
3675
|
+
const h = await Be({
|
|
3676
3676
|
endpoint: u,
|
|
3677
3677
|
type: qe.LOGIN,
|
|
3678
3678
|
clientId: s,
|
|
@@ -3685,13 +3685,13 @@ const de = "Your session has expired. For your security, please log in again to
|
|
|
3685
3685
|
code: a,
|
|
3686
3686
|
code_verifier: o,
|
|
3687
3687
|
domain: c,
|
|
3688
|
-
ua:
|
|
3688
|
+
ua: d
|
|
3689
3689
|
}
|
|
3690
|
-
}), l = await Ie(
|
|
3690
|
+
}), l = await Ie(h?.data?.idToken);
|
|
3691
3691
|
return l && l.payload[$.USER_ID_KEY] !== "" && l.payload[$.NONCE_KEY] === r ? {
|
|
3692
|
-
idToken:
|
|
3693
|
-
accessToken:
|
|
3694
|
-
refreshToken:
|
|
3692
|
+
idToken: h.data.idToken,
|
|
3693
|
+
accessToken: h.data.accessToken,
|
|
3694
|
+
refreshToken: h.data.refreshToken,
|
|
3695
3695
|
userId: l.payload[$.USER_ID_KEY],
|
|
3696
3696
|
email: l.payload[$.EMAIL_KEY],
|
|
3697
3697
|
status: !0
|
|
@@ -3880,11 +3880,11 @@ const pe = () => {
|
|
|
3880
3880
|
const [a, o] = Vs(Si, {
|
|
3881
3881
|
...Ls,
|
|
3882
3882
|
debug: n
|
|
3883
|
-
}), c = Ei(n),
|
|
3883
|
+
}), c = Ei(n), d = Ys(!1), [u, h, , l] = Ce({
|
|
3884
3884
|
key: `${Pe}::${s}::@@user@@`
|
|
3885
3885
|
}), [p, f, , y] = Ce({
|
|
3886
3886
|
key: `${Pe}::${s}::@@access@@`
|
|
3887
|
-
}), [O,
|
|
3887
|
+
}), [O, v, , L] = Ce(
|
|
3888
3888
|
{
|
|
3889
3889
|
key: `${Pe}::${s}::@@refresh@@`
|
|
3890
3890
|
}
|
|
@@ -3898,7 +3898,7 @@ const pe = () => {
|
|
|
3898
3898
|
G,
|
|
3899
3899
|
L,
|
|
3900
3900
|
c
|
|
3901
|
-
]),
|
|
3901
|
+
]), R = Q(
|
|
3902
3902
|
(m) => {
|
|
3903
3903
|
c(
|
|
3904
3904
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
@@ -3906,7 +3906,7 @@ const pe = () => {
|
|
|
3906
3906
|
), o({
|
|
3907
3907
|
type: $s,
|
|
3908
3908
|
payload: {
|
|
3909
|
-
logoutReason: m ||
|
|
3909
|
+
logoutReason: m || he
|
|
3910
3910
|
}
|
|
3911
3911
|
}), N(), o({ type: Te, payload: { isLoading: !1 } });
|
|
3912
3912
|
},
|
|
@@ -3917,26 +3917,26 @@ const pe = () => {
|
|
|
3917
3917
|
const { user: _ } = a, E = _?.userId || li(u);
|
|
3918
3918
|
E || c(
|
|
3919
3919
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
3920
|
-
), await
|
|
3920
|
+
), await hi({
|
|
3921
3921
|
userId: E,
|
|
3922
3922
|
clientId: s,
|
|
3923
3923
|
domain: r,
|
|
3924
3924
|
idToken: u,
|
|
3925
3925
|
endpoint: i
|
|
3926
|
-
}),
|
|
3926
|
+
}), R(m || he);
|
|
3927
3927
|
},
|
|
3928
3928
|
[
|
|
3929
3929
|
u,
|
|
3930
3930
|
a,
|
|
3931
3931
|
s,
|
|
3932
3932
|
r,
|
|
3933
|
-
|
|
3933
|
+
R,
|
|
3934
3934
|
c,
|
|
3935
3935
|
i
|
|
3936
3936
|
]
|
|
3937
3937
|
);
|
|
3938
3938
|
me(() => {
|
|
3939
|
-
if (!
|
|
3939
|
+
if (!d.current)
|
|
3940
3940
|
return a.isLoading && u !== null ? (async () => {
|
|
3941
3941
|
try {
|
|
3942
3942
|
const m = await Ie(u);
|
|
@@ -3950,14 +3950,14 @@ const pe = () => {
|
|
|
3950
3950
|
email: m.payload[$.EMAIL_KEY]
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await F(
|
|
3953
|
+
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await F(he));
|
|
3954
3954
|
} catch {
|
|
3955
3955
|
c(
|
|
3956
3956
|
"useEffect: exception validating JWT, invalidating and logging out"
|
|
3957
|
-
), await F(
|
|
3957
|
+
), await F(he);
|
|
3958
3958
|
}
|
|
3959
3959
|
})() : (c("useEffect: setting the loading state to false"), o({ type: Te, payload: { isLoading: !1 } })), () => {
|
|
3960
|
-
|
|
3960
|
+
d.current = !0;
|
|
3961
3961
|
};
|
|
3962
3962
|
}, [a.isLoading, u, F, c]);
|
|
3963
3963
|
const ee = async (m, _) => {
|
|
@@ -3971,7 +3971,7 @@ const pe = () => {
|
|
|
3971
3971
|
code_challenge: Qs
|
|
3972
3972
|
});
|
|
3973
3973
|
if (wt.status) {
|
|
3974
|
-
const ue = await
|
|
3974
|
+
const ue = await di({
|
|
3975
3975
|
endpoint: i,
|
|
3976
3976
|
username: m,
|
|
3977
3977
|
password: _,
|
|
@@ -3984,7 +3984,7 @@ const pe = () => {
|
|
|
3984
3984
|
domain: r,
|
|
3985
3985
|
ua: navigator.userAgent
|
|
3986
3986
|
});
|
|
3987
|
-
return ue.status ? (
|
|
3987
|
+
return ue.status ? (h(ue.idToken), f(ue.accessToken), v(ue.refreshToken), o({
|
|
3988
3988
|
type: ke,
|
|
3989
3989
|
payload: {
|
|
3990
3990
|
authenticationType: Ae.CODE,
|
|
@@ -3994,7 +3994,7 @@ const pe = () => {
|
|
|
3994
3994
|
email: ue.email
|
|
3995
3995
|
}
|
|
3996
3996
|
}
|
|
3997
|
-
}), !0) : (
|
|
3997
|
+
}), !0) : (R(et), !1);
|
|
3998
3998
|
}
|
|
3999
3999
|
return !1;
|
|
4000
4000
|
}, oe = async (m) => {
|
|
@@ -4017,13 +4017,13 @@ const pe = () => {
|
|
|
4017
4017
|
nonce: H,
|
|
4018
4018
|
domain: r
|
|
4019
4019
|
});
|
|
4020
|
-
return E.status && E.status === "success" && E.newAccessToken ? (f(E.newAccessToken),
|
|
4020
|
+
return E.status && E.status === "success" && E.newAccessToken ? (f(E.newAccessToken), v(E.newRefreshToken), E.newAccessToken) : (c(
|
|
4021
4021
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
4022
|
-
), await F(
|
|
4022
|
+
), await F(he), "");
|
|
4023
4023
|
}
|
|
4024
4024
|
return c(
|
|
4025
4025
|
"getAccessToken: user is not authenticated, cannot get access token"
|
|
4026
|
-
), await F(
|
|
4026
|
+
), await F(he), "";
|
|
4027
4027
|
} catch {
|
|
4028
4028
|
return c(
|
|
4029
4029
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
@@ -4035,7 +4035,7 @@ const pe = () => {
|
|
|
4035
4035
|
endpoint: i,
|
|
4036
4036
|
accessToken: p,
|
|
4037
4037
|
clientId: s,
|
|
4038
|
-
type:
|
|
4038
|
+
type: de.GET_REGISTRATION_OPTIONS,
|
|
4039
4039
|
params: {
|
|
4040
4040
|
clientId: s,
|
|
4041
4041
|
id: m?.userId,
|
|
@@ -4051,7 +4051,7 @@ const pe = () => {
|
|
|
4051
4051
|
endpoint: i,
|
|
4052
4052
|
accessToken: p,
|
|
4053
4053
|
clientId: s,
|
|
4054
|
-
type:
|
|
4054
|
+
type: de.VERIFY_REGISTRATION,
|
|
4055
4055
|
params: {
|
|
4056
4056
|
clientId: s,
|
|
4057
4057
|
id: m?.userId,
|
|
@@ -4064,7 +4064,7 @@ const pe = () => {
|
|
|
4064
4064
|
endpoint: i,
|
|
4065
4065
|
accessToken: p,
|
|
4066
4066
|
clientId: s,
|
|
4067
|
-
type:
|
|
4067
|
+
type: de.VERIFY_REGISTRATION,
|
|
4068
4068
|
params: {
|
|
4069
4069
|
clientId: s,
|
|
4070
4070
|
id: m?.userId,
|
|
@@ -4083,7 +4083,7 @@ const pe = () => {
|
|
|
4083
4083
|
endpoint: i,
|
|
4084
4084
|
accessToken: p,
|
|
4085
4085
|
clientId: s,
|
|
4086
|
-
type:
|
|
4086
|
+
type: de.GET_AUTHENTICATION_OPTIONS,
|
|
4087
4087
|
params: {
|
|
4088
4088
|
id: _,
|
|
4089
4089
|
clientId: s
|
|
@@ -4098,7 +4098,7 @@ const pe = () => {
|
|
|
4098
4098
|
endpoint: i,
|
|
4099
4099
|
accessToken: p,
|
|
4100
4100
|
clientId: s,
|
|
4101
|
-
type:
|
|
4101
|
+
type: de.VERIFY_AUTHENTICATION,
|
|
4102
4102
|
params: {
|
|
4103
4103
|
clientId: s,
|
|
4104
4104
|
id: _,
|
|
@@ -4108,7 +4108,7 @@ const pe = () => {
|
|
|
4108
4108
|
sessionExpiration: t,
|
|
4109
4109
|
ua: navigator.userAgent
|
|
4110
4110
|
}
|
|
4111
|
-
}), E.data.status === Oe ? (
|
|
4111
|
+
}), E.data.status === Oe ? (h(E.data.idToken), f(E.data.accessToken), v(E.data.refreshToken), o({
|
|
4112
4112
|
type: ke,
|
|
4113
4113
|
payload: {
|
|
4114
4114
|
authenticationType: Ae.PASSKEY,
|
|
@@ -4118,13 +4118,13 @@ const pe = () => {
|
|
|
4118
4118
|
email: E.data.email
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
|
-
}), !0) : (
|
|
4121
|
+
}), !0) : (R(et), !1);
|
|
4122
4122
|
} catch {
|
|
4123
4123
|
return await fe({
|
|
4124
4124
|
endpoint: i,
|
|
4125
4125
|
accessToken: p,
|
|
4126
4126
|
clientId: s,
|
|
4127
|
-
type:
|
|
4127
|
+
type: de.VERIFY_AUTHENTICATION,
|
|
4128
4128
|
params: {
|
|
4129
4129
|
clientId: s,
|
|
4130
4130
|
id: _,
|
|
@@ -4133,7 +4133,7 @@ const pe = () => {
|
|
|
4133
4133
|
domain: r,
|
|
4134
4134
|
sessionExpiration: t
|
|
4135
4135
|
}
|
|
4136
|
-
}),
|
|
4136
|
+
}), R(et), !1;
|
|
4137
4137
|
}
|
|
4138
4138
|
return !1;
|
|
4139
4139
|
};
|
|
@@ -4167,7 +4167,7 @@ const Ti = () => {
|
|
|
4167
4167
|
if (!e)
|
|
4168
4168
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
|
4169
4169
|
return e;
|
|
4170
|
-
}, 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",
|
|
4170
|
+
}, 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", ha = "sassy-saint-", da = "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 = "history-with-shared-only", Ta = "usage-view-mode", Aa = "usage-time-range", va = "usage-selected-month", Ra = "private-disclosure", ba = "reasoning-disclosure", Ia = "chat-id", Oa = "sassysaint-oled-mode", _a = "sassysaint-full-screen", Qt = "data-oled-mode", Wt = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ca = 20, Pa = 30, Ma = "av-prompt", ka = "av-prompt-editable", $a = "size-5 sm:size-4", Da = 30, Na = 15, Ua = 130, La = 160, Fa = 16, Ka = 24, Ha = 16, xa = 76, Ks = process.env.NODE_ENV === "production", He = !Ks, Hs = He ? "gizmette.local.com" : "gizmette.com", Ai = async () => {
|
|
4171
4171
|
const e = {
|
|
4172
4172
|
/**
|
|
4173
4173
|
* A boolean value that indicates the application would like to receive the
|
|
@@ -4261,7 +4261,7 @@ const Ti = () => {
|
|
|
4261
4261
|
draggable: a = !0,
|
|
4262
4262
|
progress: o = void 0,
|
|
4263
4263
|
theme: c = "colored",
|
|
4264
|
-
transition:
|
|
4264
|
+
transition: d,
|
|
4265
4265
|
icon: u = !1
|
|
4266
4266
|
} = {}) => ({
|
|
4267
4267
|
autoClose: e,
|
|
@@ -4273,7 +4273,7 @@ const Ti = () => {
|
|
|
4273
4273
|
draggable: a,
|
|
4274
4274
|
progress: o,
|
|
4275
4275
|
theme: c,
|
|
4276
|
-
transition:
|
|
4276
|
+
transition: d,
|
|
4277
4277
|
icon: u
|
|
4278
4278
|
}), _i = (e, t) => t === "ready" && !!e && e.length > 0, Ci = (e) => {
|
|
4279
4279
|
e ? document.documentElement.setAttribute(Qt, "true") : document.documentElement.removeAttribute(Qt);
|
|
@@ -4289,7 +4289,7 @@ function Mi(e) {
|
|
|
4289
4289
|
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 ?? "";
|
|
4290
4290
|
return `${r("month")} ${r("day")}, ${r("year")} - ${r("hour")}:${r("minute")} ${r("dayPeriod")}`;
|
|
4291
4291
|
}
|
|
4292
|
-
const
|
|
4292
|
+
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" })), b = {
|
|
4293
4293
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
4294
4294
|
location(latitude: $latitude, longitude: $longitude) {
|
|
4295
4295
|
country
|
|
@@ -4307,7 +4307,8 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4307
4307
|
$truncateSize: Float,
|
|
4308
4308
|
$similarityThreshold: Float,
|
|
4309
4309
|
$keywordMatchAll: Boolean,
|
|
4310
|
-
$withMediaOnly: Boolean
|
|
4310
|
+
$withMediaOnly: Boolean,
|
|
4311
|
+
$withSharedOnly: Boolean) {
|
|
4311
4312
|
chats(
|
|
4312
4313
|
user: $user,
|
|
4313
4314
|
searchString: $searchString,
|
|
@@ -4317,7 +4318,8 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4317
4318
|
truncateSize: $truncateSize,
|
|
4318
4319
|
similarityThreshold: $similarityThreshold,
|
|
4319
4320
|
keywordMatchAll: $keywordMatchAll,
|
|
4320
|
-
withMediaOnly: $withMediaOnly
|
|
4321
|
+
withMediaOnly: $withMediaOnly,
|
|
4322
|
+
withSharedOnly: $withSharedOnly) {
|
|
4321
4323
|
timestamp
|
|
4322
4324
|
id
|
|
4323
4325
|
summary
|
|
@@ -4408,6 +4410,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4408
4410
|
useNestedModelSelection
|
|
4409
4411
|
themeMode
|
|
4410
4412
|
useBranchNewChat
|
|
4413
|
+
allowChatSharing
|
|
4411
4414
|
themePalette {
|
|
4412
4415
|
normal {
|
|
4413
4416
|
colors
|
|
@@ -4448,6 +4451,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4448
4451
|
$useNestedModelSelection: Boolean,
|
|
4449
4452
|
$themeMode: String,
|
|
4450
4453
|
$useBranchNewChat: Boolean,
|
|
4454
|
+
$allowChatSharing: Boolean,
|
|
4451
4455
|
$tags: [TagIn]) {
|
|
4452
4456
|
setUserPreferences(
|
|
4453
4457
|
user: $user,
|
|
@@ -4463,6 +4467,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4463
4467
|
useNestedModelSelection: $useNestedModelSelection,
|
|
4464
4468
|
themeMode: $themeMode,
|
|
4465
4469
|
useBranchNewChat: $useBranchNewChat,
|
|
4470
|
+
allowChatSharing: $allowChatSharing,
|
|
4466
4471
|
tags: $tags)
|
|
4467
4472
|
}`,
|
|
4468
4473
|
GET_USAGE: `query GetUsage(
|
|
@@ -4540,75 +4545,75 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4540
4545
|
}`
|
|
4541
4546
|
}, I = {
|
|
4542
4547
|
GET_LOCATION: {
|
|
4543
|
-
schema:
|
|
4548
|
+
schema: b.GET_LOCATION,
|
|
4544
4549
|
method: "location"
|
|
4545
4550
|
},
|
|
4546
4551
|
GET_CHATS: {
|
|
4547
|
-
schema:
|
|
4552
|
+
schema: b.GET_CHATS,
|
|
4548
4553
|
method: "chats"
|
|
4549
4554
|
},
|
|
4550
4555
|
GET_CHATS_STATS: {
|
|
4551
|
-
schema:
|
|
4556
|
+
schema: b.GET_CHATS_STATS,
|
|
4552
4557
|
method: "chatsStats"
|
|
4553
4558
|
},
|
|
4554
4559
|
GET_CHAT: {
|
|
4555
|
-
schema:
|
|
4560
|
+
schema: b.GET_CHAT,
|
|
4556
4561
|
method: "chatById"
|
|
4557
4562
|
},
|
|
4558
4563
|
DELETE_CHAT: {
|
|
4559
|
-
schema:
|
|
4564
|
+
schema: b.DELETE_CHAT,
|
|
4560
4565
|
method: "deleteChat"
|
|
4561
4566
|
},
|
|
4562
4567
|
SAVE_CHAT: {
|
|
4563
|
-
schema:
|
|
4568
|
+
schema: b.SAVE_CHAT,
|
|
4564
4569
|
method: "saveChat"
|
|
4565
4570
|
},
|
|
4566
4571
|
GET_SERVER_CAPABILITIES: {
|
|
4567
|
-
schema:
|
|
4572
|
+
schema: b.GET_SERVER_CAPABILITIES,
|
|
4568
4573
|
method: "getServerCapabilities"
|
|
4569
4574
|
},
|
|
4570
4575
|
GET_CHANGELOGS: {
|
|
4571
|
-
schema:
|
|
4576
|
+
schema: b.GET_CHANGELOGS,
|
|
4572
4577
|
method: "getChangelogs"
|
|
4573
4578
|
},
|
|
4574
4579
|
GET_USER_PREFERENCES: {
|
|
4575
|
-
schema:
|
|
4580
|
+
schema: b.GET_USER_PREFERENCES,
|
|
4576
4581
|
method: "getUserPreferences"
|
|
4577
4582
|
},
|
|
4578
4583
|
SET_USER_PREFERENCES: {
|
|
4579
|
-
schema:
|
|
4584
|
+
schema: b.SET_USER_PREFERENCES,
|
|
4580
4585
|
method: "setUserPreferences"
|
|
4581
4586
|
},
|
|
4582
4587
|
GET_USAGE: {
|
|
4583
|
-
schema:
|
|
4588
|
+
schema: b.GET_USAGE,
|
|
4584
4589
|
method: "usage"
|
|
4585
4590
|
},
|
|
4586
4591
|
GET_USER_MEMORIES: {
|
|
4587
|
-
schema:
|
|
4592
|
+
schema: b.GET_USER_MEMORIES,
|
|
4588
4593
|
method: "getUserMemories"
|
|
4589
4594
|
},
|
|
4590
4595
|
GET_EXPIRED_MEMORIES: {
|
|
4591
|
-
schema:
|
|
4596
|
+
schema: b.GET_EXPIRED_MEMORIES,
|
|
4592
4597
|
method: "getExpiredMemories"
|
|
4593
4598
|
},
|
|
4594
4599
|
DELETE_MEMORY: {
|
|
4595
|
-
schema:
|
|
4600
|
+
schema: b.DELETE_MEMORY,
|
|
4596
4601
|
method: "deleteMemory"
|
|
4597
4602
|
},
|
|
4598
4603
|
UPDATE_MEMORY: {
|
|
4599
|
-
schema:
|
|
4604
|
+
schema: b.UPDATE_MEMORY,
|
|
4600
4605
|
method: "updateMemory"
|
|
4601
4606
|
},
|
|
4602
4607
|
DELETE_ACTIVE_MEMORIES: {
|
|
4603
|
-
schema:
|
|
4608
|
+
schema: b.DELETE_ACTIVE_MEMORIES,
|
|
4604
4609
|
method: "deleteActiveMemories"
|
|
4605
4610
|
},
|
|
4606
4611
|
DELETE_EXPIRED_MEMORIES: {
|
|
4607
|
-
schema:
|
|
4612
|
+
schema: b.DELETE_EXPIRED_MEMORIES,
|
|
4608
4613
|
method: "deleteExpiredMemories"
|
|
4609
4614
|
},
|
|
4610
4615
|
RESTORE_MEMORY: {
|
|
4611
|
-
schema:
|
|
4616
|
+
schema: b.RESTORE_MEMORY,
|
|
4612
4617
|
method: "restoreMemory"
|
|
4613
4618
|
}
|
|
4614
4619
|
}, ki = process.env.PUBLIC_SASSY_API_SERVER_URL, xe = async ({
|
|
@@ -4661,7 +4666,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4661
4666
|
} catch (s) {
|
|
4662
4667
|
throw console.error(s), s;
|
|
4663
4668
|
}
|
|
4664
|
-
},
|
|
4669
|
+
}, qa = async ({
|
|
4665
4670
|
provider: e,
|
|
4666
4671
|
model: t,
|
|
4667
4672
|
accessToken: s,
|
|
@@ -4676,7 +4681,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4676
4681
|
type: I.SET_USER_PREFERENCES,
|
|
4677
4682
|
params: n
|
|
4678
4683
|
});
|
|
4679
|
-
},
|
|
4684
|
+
}, Ba = async ({
|
|
4680
4685
|
plan: e,
|
|
4681
4686
|
accessToken: t,
|
|
4682
4687
|
username: s
|
|
@@ -4687,7 +4692,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4687
4692
|
user: s,
|
|
4688
4693
|
plan: e
|
|
4689
4694
|
}
|
|
4690
|
-
}),
|
|
4695
|
+
}), A = {
|
|
4691
4696
|
CHAT: "chat",
|
|
4692
4697
|
CHATS: "chats",
|
|
4693
4698
|
CHATS_STATS: "chatsStats",
|
|
@@ -4697,14 +4702,14 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4697
4702
|
USAGE: "usage",
|
|
4698
4703
|
USER_MEMORIES: "userMemories",
|
|
4699
4704
|
EXPIRED_MEMORIES: "expiredMemories"
|
|
4700
|
-
},
|
|
4701
|
-
queryKey: [
|
|
4705
|
+
}, ja = A.CHATS, Qa = () => z({
|
|
4706
|
+
queryKey: [A.CAPABILITIES],
|
|
4702
4707
|
queryFn: async () => await Z({
|
|
4703
4708
|
type: I.GET_SERVER_CAPABILITIES,
|
|
4704
4709
|
noAuth: !0
|
|
4705
4710
|
})
|
|
4706
|
-
}),
|
|
4707
|
-
queryKey: [
|
|
4711
|
+
}), Wa = () => z({
|
|
4712
|
+
queryKey: [A.CHANGELOGS],
|
|
4708
4713
|
queryFn: async () => await Z({
|
|
4709
4714
|
type: I.GET_CHANGELOGS,
|
|
4710
4715
|
noAuth: !0,
|
|
@@ -4716,7 +4721,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4716
4721
|
user: e,
|
|
4717
4722
|
getAccessToken: t
|
|
4718
4723
|
}) => z({
|
|
4719
|
-
queryKey: [
|
|
4724
|
+
queryKey: [A.PREFERENCES, e],
|
|
4720
4725
|
queryFn: async () => await Z({
|
|
4721
4726
|
params: {
|
|
4722
4727
|
user: e
|
|
@@ -4724,11 +4729,11 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4724
4729
|
type: I.GET_USER_PREFERENCES,
|
|
4725
4730
|
getAccessToken: t
|
|
4726
4731
|
})
|
|
4727
|
-
}),
|
|
4732
|
+
}), Ja = ({
|
|
4728
4733
|
user: e,
|
|
4729
4734
|
getAccessToken: t
|
|
4730
4735
|
}) => z({
|
|
4731
|
-
queryKey: [
|
|
4736
|
+
queryKey: [A.CHATS_STATS, e],
|
|
4732
4737
|
queryFn: async () => await Z({
|
|
4733
4738
|
params: {
|
|
4734
4739
|
user: e
|
|
@@ -4736,7 +4741,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4736
4741
|
type: I.GET_CHATS_STATS,
|
|
4737
4742
|
getAccessToken: t
|
|
4738
4743
|
})
|
|
4739
|
-
}),
|
|
4744
|
+
}), Va = ({
|
|
4740
4745
|
user: e,
|
|
4741
4746
|
searchString: t,
|
|
4742
4747
|
sortDirection: s,
|
|
@@ -4750,20 +4755,22 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4750
4755
|
*/
|
|
4751
4756
|
similarityThreshold: a = 0.3,
|
|
4752
4757
|
keywordMatchAll: o = !0,
|
|
4753
|
-
withMediaOnly: c = !1
|
|
4758
|
+
withMediaOnly: c = !1,
|
|
4759
|
+
withSharedOnly: d = !1
|
|
4754
4760
|
}) => z({
|
|
4755
4761
|
enabled: i,
|
|
4756
4762
|
staleTime: 60 * 1e3,
|
|
4757
4763
|
// 1 minute
|
|
4758
4764
|
queryKey: [
|
|
4759
|
-
|
|
4765
|
+
A.CHATS,
|
|
4760
4766
|
e,
|
|
4761
4767
|
t,
|
|
4762
4768
|
s,
|
|
4763
4769
|
r,
|
|
4764
4770
|
a,
|
|
4765
4771
|
o,
|
|
4766
|
-
c
|
|
4772
|
+
c,
|
|
4773
|
+
d
|
|
4767
4774
|
],
|
|
4768
4775
|
queryFn: async () => await Z({
|
|
4769
4776
|
params: {
|
|
@@ -4775,24 +4782,25 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4775
4782
|
truncateSize: 100,
|
|
4776
4783
|
similarityThreshold: a,
|
|
4777
4784
|
keywordMatchAll: o,
|
|
4778
|
-
withMediaOnly: c
|
|
4785
|
+
withMediaOnly: c,
|
|
4786
|
+
withSharedOnly: d
|
|
4779
4787
|
},
|
|
4780
4788
|
type: I.GET_CHATS,
|
|
4781
4789
|
getAccessToken: n
|
|
4782
4790
|
})
|
|
4783
|
-
}),
|
|
4791
|
+
}), Ya = ({
|
|
4784
4792
|
chatId: e,
|
|
4785
4793
|
getAccessToken: t,
|
|
4786
4794
|
enabled: s = !0
|
|
4787
4795
|
}) => z({
|
|
4788
4796
|
enabled: s && !!e,
|
|
4789
|
-
queryKey: [
|
|
4797
|
+
queryKey: [A.CHAT, e],
|
|
4790
4798
|
queryFn: async () => await Z({
|
|
4791
4799
|
params: { id: e },
|
|
4792
4800
|
type: I.GET_CHAT,
|
|
4793
4801
|
getAccessToken: t
|
|
4794
4802
|
})
|
|
4795
|
-
}),
|
|
4803
|
+
}), za = ({
|
|
4796
4804
|
getAccessToken: e
|
|
4797
4805
|
}) => {
|
|
4798
4806
|
const t = Y();
|
|
@@ -4813,10 +4821,10 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4813
4821
|
})).data;
|
|
4814
4822
|
},
|
|
4815
4823
|
onSuccess: (s, r) => {
|
|
4816
|
-
t.invalidateQueries({ queryKey: [
|
|
4824
|
+
t.invalidateQueries({ queryKey: [A.CHATS, r.userId] });
|
|
4817
4825
|
}
|
|
4818
4826
|
});
|
|
4819
|
-
},
|
|
4827
|
+
}, Xa = ({
|
|
4820
4828
|
getAccessToken: e
|
|
4821
4829
|
}) => {
|
|
4822
4830
|
const t = Y();
|
|
@@ -4830,10 +4838,10 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4830
4838
|
})).data;
|
|
4831
4839
|
},
|
|
4832
4840
|
onSuccess: (s, r) => {
|
|
4833
|
-
t.invalidateQueries({ queryKey: [
|
|
4841
|
+
t.invalidateQueries({ queryKey: [A.CHATS, r.userId] });
|
|
4834
4842
|
}
|
|
4835
4843
|
});
|
|
4836
|
-
},
|
|
4844
|
+
}, Za = ({
|
|
4837
4845
|
user: e,
|
|
4838
4846
|
month: t,
|
|
4839
4847
|
year: s = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
|
@@ -4843,7 +4851,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4843
4851
|
enabled: a = !0
|
|
4844
4852
|
}) => z({
|
|
4845
4853
|
enabled: a,
|
|
4846
|
-
queryKey: [
|
|
4854
|
+
queryKey: [A.USAGE, e, t, s, r, n],
|
|
4847
4855
|
queryFn: async () => await Z({
|
|
4848
4856
|
params: {
|
|
4849
4857
|
user: e,
|
|
@@ -4855,20 +4863,20 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4855
4863
|
type: I.GET_USAGE,
|
|
4856
4864
|
getAccessToken: i
|
|
4857
4865
|
})
|
|
4858
|
-
}),
|
|
4866
|
+
}), eo = ({
|
|
4859
4867
|
user: e,
|
|
4860
4868
|
query: t,
|
|
4861
4869
|
getAccessToken: s,
|
|
4862
4870
|
enabled: r = !0
|
|
4863
4871
|
}) => z({
|
|
4864
4872
|
enabled: r && !!e,
|
|
4865
|
-
queryKey: [
|
|
4873
|
+
queryKey: [A.USER_MEMORIES, e, t],
|
|
4866
4874
|
queryFn: async () => await Z({
|
|
4867
4875
|
params: { user: e, query: t },
|
|
4868
4876
|
type: I.GET_USER_MEMORIES,
|
|
4869
4877
|
getAccessToken: s
|
|
4870
4878
|
})
|
|
4871
|
-
}),
|
|
4879
|
+
}), to = ({
|
|
4872
4880
|
getAccessToken: e
|
|
4873
4881
|
}) => {
|
|
4874
4882
|
const t = Y();
|
|
@@ -4888,11 +4896,11 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4888
4896
|
},
|
|
4889
4897
|
onSuccess: (s, r) => {
|
|
4890
4898
|
t.invalidateQueries({
|
|
4891
|
-
queryKey: [
|
|
4899
|
+
queryKey: [A.USER_MEMORIES, r.user]
|
|
4892
4900
|
});
|
|
4893
4901
|
}
|
|
4894
4902
|
});
|
|
4895
|
-
},
|
|
4903
|
+
}, so = ({
|
|
4896
4904
|
getAccessToken: e
|
|
4897
4905
|
}) => {
|
|
4898
4906
|
const t = Y();
|
|
@@ -4910,13 +4918,13 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4910
4918
|
},
|
|
4911
4919
|
onSuccess: (s, r) => {
|
|
4912
4920
|
t.invalidateQueries({
|
|
4913
|
-
queryKey: [
|
|
4921
|
+
queryKey: [A.USER_MEMORIES, r.user]
|
|
4914
4922
|
}), t.invalidateQueries({
|
|
4915
|
-
queryKey: [
|
|
4923
|
+
queryKey: [A.EXPIRED_MEMORIES, r.user]
|
|
4916
4924
|
});
|
|
4917
4925
|
}
|
|
4918
4926
|
});
|
|
4919
|
-
},
|
|
4927
|
+
}, ro = ({
|
|
4920
4928
|
getAccessToken: e
|
|
4921
4929
|
}) => {
|
|
4922
4930
|
const t = Y();
|
|
@@ -4931,11 +4939,11 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4931
4939
|
},
|
|
4932
4940
|
onSuccess: (s, r) => {
|
|
4933
4941
|
t.invalidateQueries({
|
|
4934
|
-
queryKey: [
|
|
4942
|
+
queryKey: [A.USER_MEMORIES, r.user]
|
|
4935
4943
|
});
|
|
4936
4944
|
}
|
|
4937
4945
|
});
|
|
4938
|
-
},
|
|
4946
|
+
}, no = ({
|
|
4939
4947
|
getAccessToken: e
|
|
4940
4948
|
}) => {
|
|
4941
4949
|
const t = Y();
|
|
@@ -4950,24 +4958,24 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4950
4958
|
},
|
|
4951
4959
|
onSuccess: (s, r) => {
|
|
4952
4960
|
t.invalidateQueries({
|
|
4953
|
-
queryKey: [
|
|
4961
|
+
queryKey: [A.EXPIRED_MEMORIES, r.user]
|
|
4954
4962
|
});
|
|
4955
4963
|
}
|
|
4956
4964
|
});
|
|
4957
|
-
},
|
|
4965
|
+
}, io = ({
|
|
4958
4966
|
user: e,
|
|
4959
4967
|
query: t,
|
|
4960
4968
|
getAccessToken: s,
|
|
4961
4969
|
enabled: r = !0
|
|
4962
4970
|
}) => z({
|
|
4963
4971
|
enabled: r && !!e,
|
|
4964
|
-
queryKey: [
|
|
4972
|
+
queryKey: [A.EXPIRED_MEMORIES, e, t],
|
|
4965
4973
|
queryFn: async () => await Z({
|
|
4966
4974
|
params: { user: e, query: t },
|
|
4967
4975
|
type: I.GET_EXPIRED_MEMORIES,
|
|
4968
4976
|
getAccessToken: s
|
|
4969
4977
|
})
|
|
4970
|
-
}),
|
|
4978
|
+
}), ao = ({
|
|
4971
4979
|
getAccessToken: e
|
|
4972
4980
|
}) => {
|
|
4973
4981
|
const t = Y();
|
|
@@ -4985,9 +4993,9 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4985
4993
|
},
|
|
4986
4994
|
onSuccess: (s, r) => {
|
|
4987
4995
|
t.invalidateQueries({
|
|
4988
|
-
queryKey: [
|
|
4996
|
+
queryKey: [A.USER_MEMORIES, r.user]
|
|
4989
4997
|
}), t.invalidateQueries({
|
|
4990
|
-
queryKey: [
|
|
4998
|
+
queryKey: [A.EXPIRED_MEMORIES, r.user]
|
|
4991
4999
|
});
|
|
4992
5000
|
}
|
|
4993
5001
|
});
|
|
@@ -5006,10 +5014,10 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5006
5014
|
data: n
|
|
5007
5015
|
});
|
|
5008
5016
|
else if (r) {
|
|
5009
|
-
const
|
|
5017
|
+
const d = await r();
|
|
5010
5018
|
i = await xe({
|
|
5011
5019
|
headers: {
|
|
5012
|
-
authorization: `Bearer ${
|
|
5020
|
+
authorization: `Bearer ${d}`
|
|
5013
5021
|
},
|
|
5014
5022
|
query: t.schema,
|
|
5015
5023
|
data: n
|
|
@@ -5046,10 +5054,10 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5046
5054
|
if (!i)
|
|
5047
5055
|
return !1;
|
|
5048
5056
|
try {
|
|
5049
|
-
const
|
|
5050
|
-
if (!
|
|
5057
|
+
const h = sessionStorage.getItem(i);
|
|
5058
|
+
if (!h)
|
|
5051
5059
|
return !1;
|
|
5052
|
-
const l = JSON.parse(
|
|
5060
|
+
const l = JSON.parse(h);
|
|
5053
5061
|
if (Array.isArray(l.c))
|
|
5054
5062
|
return n({
|
|
5055
5063
|
capabilities: new Set(l.c),
|
|
@@ -5066,36 +5074,36 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5066
5074
|
}, [a, r.status]);
|
|
5067
5075
|
const o = $i({ user: e, getAccessToken: t });
|
|
5068
5076
|
me(() => {
|
|
5069
|
-
o.isLoading && r.status === "idle" && n((
|
|
5077
|
+
o.isLoading && r.status === "idle" && n((h) => ({ ...h, status: "loading" }));
|
|
5070
5078
|
}, [o.isLoading, r.status]), me(() => {
|
|
5071
|
-
o.isError && n((
|
|
5072
|
-
...
|
|
5079
|
+
o.isError && n((h) => ({
|
|
5080
|
+
...h,
|
|
5073
5081
|
status: "error",
|
|
5074
5082
|
error: String(o.error)
|
|
5075
5083
|
}));
|
|
5076
5084
|
}, [o.isError, o.error]), me(() => {
|
|
5077
|
-
const
|
|
5078
|
-
if (
|
|
5079
|
-
capabilities: new Set(
|
|
5080
|
-
allowedModels:
|
|
5081
|
-
version:
|
|
5085
|
+
const h = o.data?.entitlements;
|
|
5086
|
+
if (h && (n({
|
|
5087
|
+
capabilities: new Set(h.capabilities || []),
|
|
5088
|
+
allowedModels: h.allowedModels || [],
|
|
5089
|
+
version: h.version ?? null,
|
|
5082
5090
|
status: "ready"
|
|
5083
5091
|
}), i))
|
|
5084
5092
|
try {
|
|
5085
5093
|
sessionStorage.setItem(
|
|
5086
5094
|
i,
|
|
5087
5095
|
JSON.stringify({
|
|
5088
|
-
v:
|
|
5089
|
-
c:
|
|
5090
|
-
m:
|
|
5096
|
+
v: h.version ?? null,
|
|
5097
|
+
c: h.capabilities || [],
|
|
5098
|
+
m: h.allowedModels || []
|
|
5091
5099
|
})
|
|
5092
5100
|
);
|
|
5093
5101
|
} catch {
|
|
5094
5102
|
}
|
|
5095
5103
|
}, [o.data, i]);
|
|
5096
5104
|
const c = Q(
|
|
5097
|
-
(
|
|
5098
|
-
const l =
|
|
5105
|
+
(h) => {
|
|
5106
|
+
const l = h?.entitlements;
|
|
5099
5107
|
if (l && (n({
|
|
5100
5108
|
capabilities: new Set(l.capabilities || []),
|
|
5101
5109
|
allowedModels: l.allowedModels || [],
|
|
@@ -5115,7 +5123,7 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5115
5123
|
}
|
|
5116
5124
|
},
|
|
5117
5125
|
[i]
|
|
5118
|
-
),
|
|
5126
|
+
), d = Q(() => {
|
|
5119
5127
|
if (n(Jt), i)
|
|
5120
5128
|
try {
|
|
5121
5129
|
sessionStorage.removeItem(i);
|
|
@@ -5124,15 +5132,15 @@ const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5124
5132
|
}, [i]), u = Tt(
|
|
5125
5133
|
() => ({
|
|
5126
5134
|
...r,
|
|
5127
|
-
check: (
|
|
5135
|
+
check: (h, l) => r.status !== "ready" ? !1 : rr(r.capabilities, h, { any: l?.any }),
|
|
5128
5136
|
loadFromProfile: c,
|
|
5129
|
-
reset:
|
|
5137
|
+
reset: d
|
|
5130
5138
|
}),
|
|
5131
|
-
[r, c,
|
|
5139
|
+
[r, c, d]
|
|
5132
5140
|
);
|
|
5133
5141
|
return /* @__PURE__ */ S(xs.Provider, { value: u, children: s });
|
|
5134
5142
|
};
|
|
5135
|
-
function
|
|
5143
|
+
function oo() {
|
|
5136
5144
|
const e = lt(xs);
|
|
5137
5145
|
if (!e)
|
|
5138
5146
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
|
@@ -5140,11 +5148,11 @@ function io() {
|
|
|
5140
5148
|
}
|
|
5141
5149
|
const Ni = new URL(document.location.href).searchParams, Vt = !!Ni.get("debug") || !1, Ui = zt(() => import(
|
|
5142
5150
|
/* webpackChunkName: "LazyApp" */
|
|
5143
|
-
"./App.
|
|
5151
|
+
"./App.CxUJr_cy.js"
|
|
5144
5152
|
).then((e) => e.App)), Li = zt(
|
|
5145
5153
|
() => import(
|
|
5146
5154
|
/* webpackChunkName: "LazyLogin" */
|
|
5147
|
-
"./LoginEntry.
|
|
5155
|
+
"./LoginEntry.B0mu2H8B.js"
|
|
5148
5156
|
)
|
|
5149
5157
|
), Fi = new Cr(), Yt = ({
|
|
5150
5158
|
isComponent: e,
|
|
@@ -5176,7 +5184,7 @@ const Ni = new URL(document.location.href).searchParams, Vt = !!Ni.get("debug")
|
|
|
5176
5184
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
|
5177
5185
|
children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t })
|
|
5178
5186
|
}
|
|
5179
|
-
) : /* @__PURE__ */ S(jt, { clientId: Wt, domain: s, debug: Vt, children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t }) })),
|
|
5187
|
+
) : /* @__PURE__ */ S(jt, { clientId: Wt, domain: s, debug: Vt, children: /* @__PURE__ */ S(Yt, { isComponent: e, headerHeight: t }) })), co = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ S(
|
|
5180
5188
|
Ki,
|
|
5181
5189
|
{
|
|
5182
5190
|
isComponent: !0,
|
|
@@ -5191,86 +5199,88 @@ export {
|
|
|
5191
5199
|
ca as ACTION_SORT,
|
|
5192
5200
|
ua as ACTION_TOGGLE_PROMPT,
|
|
5193
5201
|
Yi as B,
|
|
5194
|
-
|
|
5202
|
+
ja as CHATS_QUERY_KEY,
|
|
5203
|
+
$a as DEFAULT_ICON_ACTION_SIZE,
|
|
5195
5204
|
w as E,
|
|
5196
5205
|
aa as ERROR_MESSAGE,
|
|
5197
5206
|
zi as F,
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5207
|
+
Pa as INFINITE_SCROLL_LIMIT,
|
|
5208
|
+
Ca as INFINITE_SCROLL_THRESHOLD,
|
|
5209
|
+
Fa as INPUT_BOTTOM_OFFSET,
|
|
5210
|
+
xa as INPUT_BOTTOM_OFFSET_EXTRA,
|
|
5211
|
+
Ha as INPUT_BOTTOM_OFFSET_IPAD,
|
|
5212
|
+
Ka as INPUT_BOTTOM_OFFSET_IPHONE,
|
|
5213
|
+
Ia as LOCAL_STORAGE_CHAT_ID,
|
|
5214
|
+
_a as LOCAL_STORAGE_FULL_SCREEN,
|
|
5206
5215
|
Sa as LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY,
|
|
5216
|
+
wa as LOCAL_STORAGE_HISTORY_WITH_SHARED_ONLY,
|
|
5207
5217
|
ga as LOCAL_STORAGE_KEYWORD_MATCH_ALL,
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5218
|
+
Oa as LOCAL_STORAGE_OLED_MODE,
|
|
5219
|
+
ha as LOCAL_STORAGE_PREFIX,
|
|
5220
|
+
Ra as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
5221
|
+
ba as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
|
5222
|
+
da as LOCAL_STORAGE_SEARCH,
|
|
5213
5223
|
fa as LOCAL_STORAGE_SORT,
|
|
5214
5224
|
Ea as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
|
5215
5225
|
ma as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
|
5216
5226
|
pa as LOCAL_STORAGE_SORT_TIMESTAMP,
|
|
5217
5227
|
ya as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
ji as R,
|
|
5228
|
+
va as LOCAL_STORAGE_USAGE_SELECTED_MONTH,
|
|
5229
|
+
Aa as LOCAL_STORAGE_USAGE_TIME_RANGE,
|
|
5230
|
+
Ta as LOCAL_STORAGE_USAGE_VIEW_MODE,
|
|
5231
|
+
Ma as PROMPT_CLASSNAME,
|
|
5232
|
+
ka as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
5224
5233
|
I as SERVICE_TYPES,
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5234
|
+
co as SassySaint,
|
|
5235
|
+
Na as UI_BUTTON_SCROLL_BUFFER,
|
|
5236
|
+
Ua as UI_DEFAULT_MAIN_HEIGHT,
|
|
5237
|
+
La as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
|
5238
|
+
Da as UI_FOOTER_BUFFER,
|
|
5230
5239
|
Vi as V,
|
|
5231
5240
|
Xi as W,
|
|
5232
5241
|
ea as X,
|
|
5233
5242
|
ta as Z,
|
|
5234
5243
|
Ge as a,
|
|
5235
5244
|
Ci as applyOledMode,
|
|
5236
|
-
Qi as c,
|
|
5237
5245
|
_i as canEvaluateModels,
|
|
5238
5246
|
Mi as formatTimestamp,
|
|
5239
5247
|
Ai as getCurrentGeoLocation,
|
|
5240
5248
|
bi as getLayoutPaddingClass,
|
|
5241
5249
|
Ri as getMessageContaintWrapperClass,
|
|
5242
5250
|
X as graphQLRequest,
|
|
5243
|
-
|
|
5251
|
+
ht as i,
|
|
5244
5252
|
Ii as isTauri,
|
|
5245
5253
|
Zi as j,
|
|
5254
|
+
ji as l,
|
|
5246
5255
|
Ti as n,
|
|
5247
5256
|
qi as n$1,
|
|
5248
5257
|
Bi as o,
|
|
5258
|
+
Qi as p,
|
|
5249
5259
|
vi as renderDataAsList,
|
|
5250
|
-
|
|
5260
|
+
dt as s,
|
|
5251
5261
|
ki as serverUrl,
|
|
5252
|
-
|
|
5253
|
-
|
|
5262
|
+
qa as setNewProvider,
|
|
5263
|
+
Ba as setUserPlan,
|
|
5254
5264
|
Ae as st,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
+
Wa as useChangelogs,
|
|
5266
|
+
Ya as useChat,
|
|
5267
|
+
Va as useChatsHistory,
|
|
5268
|
+
Za as useChatsUsage,
|
|
5269
|
+
ro as useDeleteAllActiveMemories,
|
|
5270
|
+
no as useDeleteAllExpiredMemories,
|
|
5271
|
+
Xa as useDeleteChat,
|
|
5272
|
+
so as useDeleteMemory,
|
|
5273
|
+
oo as useEntitlements,
|
|
5274
|
+
io as useExpiredMemories,
|
|
5265
5275
|
Y as useQueryClient,
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5276
|
+
ao as useRestoreMemory,
|
|
5277
|
+
za as useSaveChat,
|
|
5278
|
+
Qa as useServerCapabilities,
|
|
5279
|
+
to as useUpdateMemory,
|
|
5280
|
+
Ja as useUserChatStats,
|
|
5281
|
+
eo as useUserMemories,
|
|
5272
5282
|
$i as useUserPreferences,
|
|
5273
|
-
|
|
5283
|
+
Ga as utilities,
|
|
5274
5284
|
Wi as v,
|
|
5275
5285
|
sr as x,
|
|
5276
5286
|
Ji as y
|