@versini/sassysaint 0.0.0 → 1.0.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.
- package/dist/chunks/{App.BvO5AYgu.js → App.cLV1bpwK.js} +3 -3
- package/dist/chunks/{LazyHeader.DicV3qjN.js → LazyHeader.IkHWXL63.js} +5 -5
- package/dist/chunks/{LazyMarkdownWithExtra.CQOOOxpt.js → LazyMarkdownWithExtra.CbkyblK3.js} +65 -92
- package/dist/chunks/{LazyMessageAssistant.BarQNBL-.js → LazyMessageAssistant.D1gHF9UN.js} +54 -77
- package/dist/chunks/{index.C5AWMLF4.js → index.5k1aFm13.js} +96 -96
- package/dist/chunks/{index.DruzEDnN.BqlYMlVQ.js → index.DruzEDnN.CpJnm_FK.js} +1 -1
- package/dist/chunks/{useLocalStorage.DX6TGv84.js → useLocalStorage.CgBXkOng.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as S, jsx as a, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, ur as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.
|
|
3
|
-
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
2
|
+
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, ur as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.5k1aFm13.js";
|
|
3
|
+
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.CgBXkOng.js";
|
|
4
4
|
import pr, { useState as R, useEffect as N, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
|
|
5
5
|
import y from "clsx";
|
|
6
6
|
const yr = ({
|
|
@@ -475,7 +475,7 @@ const Vr = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, ue = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, ue = mr(() => import("./LazyMessageAssistant.D1gHF9UN.js").then((e) => e.LazyMessageAssistant)), Br = () => {
|
|
479
479
|
const { state: e } = Z(U);
|
|
480
480
|
return /* @__PURE__ */ S(me, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { E as X, S as Oe, O, i$1 as _e, N as Be, p as ze, o as Ve, g as A, CARDS as C, renderDataAsList as V, pluralize as q, ABOUT_TITLE as Pe, MODEL_GPT4 as Fe, numberFormatter as $e, durationFormatter as ge, NA as Ge, ROLE_ASSISTANT as Ue, extractAverage as je, GPT4_MAX_TOKENS as Ke, ur as G, STATS as Ce, b as oe, j as D, x as ce, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SORT as Ye, ACTION_RESET as We, ACTION_RESTORE as Xe, truncate as Je, ACTION_SORT as ae, LOCAL_STORAGE_SEARCH as qe, G as Qe, ACTION_SEARCH as Ze, HISTORY_TITLE as et, LOCAL_STORAGE_CHAT_DETAILS as tt, LOCAL_STORAGE_LOCATION as rt, ACTION_LOCATION as de, getCurrentGeoLocation as at, convertLatitudeToDMS as st, convertLongitudeToDMS as nt, PROFILE_TITLE as ot, LOG_OUT as me } from "./index.
|
|
2
|
+
import { E as X, S as Oe, O, i$1 as _e, N as Be, p as ze, o as Ve, g as A, CARDS as C, renderDataAsList as V, pluralize as q, ABOUT_TITLE as Pe, MODEL_GPT4 as Fe, numberFormatter as $e, durationFormatter as ge, NA as Ge, ROLE_ASSISTANT as Ue, extractAverage as je, GPT4_MAX_TOKENS as Ke, ur as G, STATS as Ce, b as oe, j as D, x as ce, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SORT as Ye, ACTION_RESET as We, ACTION_RESTORE as Xe, truncate as Je, ACTION_SORT as ae, LOCAL_STORAGE_SEARCH as qe, G as Qe, ACTION_SEARCH as Ze, HISTORY_TITLE as et, LOCAL_STORAGE_CHAT_DETAILS as tt, LOCAL_STORAGE_LOCATION as rt, ACTION_LOCATION as de, getCurrentGeoLocation as at, convertLatitudeToDMS as st, convertLongitudeToDMS as nt, PROFILE_TITLE as ot, LOG_OUT as me } from "./index.5k1aFm13.js";
|
|
3
3
|
import * as le from "react";
|
|
4
4
|
import ct, { useId as be, forwardRef as Ne, useState as y, useRef as P, useContext as M, useEffect as R, Suspense as lt, lazy as it } from "react";
|
|
5
|
-
import { g as dt, AppContext as U, serviceCall as ee, SERVICE_TYPES as te, HistoryContext as ye, E as Z, k as v, et as mt, at as ut, lt as se, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.
|
|
5
|
+
import { g as dt, AppContext as U, serviceCall as ee, SERVICE_TYPES as te, HistoryContext as ye, E as Z, k as v, et as mt, at as ut, lt as se, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.CgBXkOng.js";
|
|
6
6
|
import S from "clsx";
|
|
7
7
|
import { useFloatingTree as Te, useFloatingNodeId as gt, useListItem as ke, useFloating as Ct, offset as bt, flip as Nt, shift as yt, autoUpdate as Tt, useClick as kt, useRole as St, useDismiss as wt, useListNavigation as xt, useTypeahead as Et, useInteractions as vt, useMergeRefs as Se, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
|
|
8
8
|
function Lt(e) {
|
|
@@ -299,7 +299,7 @@ const _t = ({ className: e, ...r }) => {
|
|
|
299
299
|
header: "p-4 mb-0",
|
|
300
300
|
close: "p-4"
|
|
301
301
|
}), j = (e) => it(
|
|
302
|
-
() => import("./index.DruzEDnN.
|
|
302
|
+
() => import("./index.DruzEDnN.CpJnm_FK.js").then((r) => ({
|
|
303
303
|
default: r[e]
|
|
304
304
|
}))
|
|
305
305
|
), Vt = j("Modal"), Pt = j("ModalClose"), Ft = j("ModalContent"), $t = j("ModalDescription"), Gt = j("ModalHeading"), K = ({
|
|
@@ -703,8 +703,8 @@ const cr = ({ stats: e }) => {
|
|
|
703
703
|
header: C.ABOUT.TITLE_CLIENT,
|
|
704
704
|
className: "prose-dark dark:prose-lighter",
|
|
705
705
|
children: V(o, {
|
|
706
|
-
[C.ABOUT.VERSION]: "3.
|
|
707
|
-
[C.ABOUT.BUILD_TIMESTAMP]: "07/06/2024 03:
|
|
706
|
+
[C.ABOUT.VERSION]: "3.1.1",
|
|
707
|
+
[C.ABOUT.BUILD_TIMESTAMP]: "07/06/2024 03:45 PM EDT"
|
|
708
708
|
})
|
|
709
709
|
}
|
|
710
710
|
) }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.D1gHF9UN.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -62,8 +62,7 @@ function Li(t) {
|
|
|
62
62
|
function n(...a) {
|
|
63
63
|
let i = -1;
|
|
64
64
|
for (; ++i < e.length; )
|
|
65
|
-
if (e[i].apply(this, a))
|
|
66
|
-
return !0;
|
|
65
|
+
if (e[i].apply(this, a)) return !0;
|
|
67
66
|
return !1;
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -12122,8 +12121,7 @@ class uo {
|
|
|
12122
12121
|
*
|
|
12123
12122
|
* @param {Node} node */
|
|
12124
12123
|
openNode(e) {
|
|
12125
|
-
if (!Q0(e))
|
|
12126
|
-
return;
|
|
12124
|
+
if (!Q0(e)) return;
|
|
12127
12125
|
const r = co(
|
|
12128
12126
|
e.scope,
|
|
12129
12127
|
{ prefix: this.classPrefix }
|
|
@@ -12180,8 +12178,7 @@ class m0 {
|
|
|
12180
12178
|
return this.stack.pop();
|
|
12181
12179
|
}
|
|
12182
12180
|
closeAllNodes() {
|
|
12183
|
-
for (; this.closeNode(); )
|
|
12184
|
-
;
|
|
12181
|
+
for (; this.closeNode(); ) ;
|
|
12185
12182
|
}
|
|
12186
12183
|
toJSON() {
|
|
12187
12184
|
return JSON.stringify(this.rootNode, null, 4);
|
|
@@ -12484,8 +12481,7 @@ function Po(t, e) {
|
|
|
12484
12481
|
}
|
|
12485
12482
|
function Fo(t, e) {
|
|
12486
12483
|
if (t.match) {
|
|
12487
|
-
if (t.begin || t.end)
|
|
12488
|
-
throw new Error("begin & end are not supported with match");
|
|
12484
|
+
if (t.begin || t.end) throw new Error("begin & end are not supported with match");
|
|
12489
12485
|
t.begin = t.match, delete t.match;
|
|
12490
12486
|
}
|
|
12491
12487
|
}
|
|
@@ -12493,10 +12489,8 @@ function Uo(t, e) {
|
|
|
12493
12489
|
t.relevance === void 0 && (t.relevance = 1);
|
|
12494
12490
|
}
|
|
12495
12491
|
const qo = (t, e) => {
|
|
12496
|
-
if (!t.beforeMatch)
|
|
12497
|
-
|
|
12498
|
-
if (t.starts)
|
|
12499
|
-
throw new Error("beforeMatch cannot be used with starts");
|
|
12492
|
+
if (!t.beforeMatch) return;
|
|
12493
|
+
if (t.starts) throw new Error("beforeMatch cannot be used with starts");
|
|
12500
12494
|
const r = Object.assign({}, t);
|
|
12501
12495
|
Object.keys(t).forEach((n) => {
|
|
12502
12496
|
delete t[n];
|
|
@@ -12617,8 +12611,7 @@ function Xo(t) {
|
|
|
12617
12611
|
}
|
|
12618
12612
|
// @ts-ignore
|
|
12619
12613
|
getMatcher(l) {
|
|
12620
|
-
if (this.multiRegexes[l])
|
|
12621
|
-
return this.multiRegexes[l];
|
|
12614
|
+
if (this.multiRegexes[l]) return this.multiRegexes[l];
|
|
12622
12615
|
const u = new r();
|
|
12623
12616
|
return this.rules.slice(l).forEach(([m, p]) => u.addRule(m, p)), u.compile(), this.multiRegexes[l] = u, u;
|
|
12624
12617
|
}
|
|
@@ -12653,8 +12646,7 @@ function Xo(t) {
|
|
|
12653
12646
|
/** @type CompiledMode */
|
|
12654
12647
|
o
|
|
12655
12648
|
);
|
|
12656
|
-
if (o.isCompiled)
|
|
12657
|
-
return u;
|
|
12649
|
+
if (o.isCompiled) return u;
|
|
12658
12650
|
[
|
|
12659
12651
|
Bo,
|
|
12660
12652
|
// do this early so compiler extensions generally don't have to worry about
|
|
@@ -12777,8 +12769,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12777
12769
|
ee += me.substring(L), Se.addText(ee);
|
|
12778
12770
|
}
|
|
12779
12771
|
function We() {
|
|
12780
|
-
if (me === "")
|
|
12781
|
-
return;
|
|
12772
|
+
if (me === "") return;
|
|
12782
12773
|
let L = null;
|
|
12783
12774
|
if (typeof Y.subLanguage == "string") {
|
|
12784
12775
|
if (!e[Y.subLanguage]) {
|
|
@@ -12898,8 +12889,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12898
12889
|
for (Y.matcher.considerAll(); ; ) {
|
|
12899
12890
|
Or++, Rr ? Rr = !1 : Y.matcher.considerAll(), Y.matcher.lastIndex = yt;
|
|
12900
12891
|
const L = Y.matcher.exec(R);
|
|
12901
|
-
if (!L)
|
|
12902
|
-
break;
|
|
12892
|
+
if (!L) break;
|
|
12903
12893
|
const H = R.substring(yt, L.index), ee = Ge(H, L);
|
|
12904
12894
|
yt = L.index + ee;
|
|
12905
12895
|
}
|
|
@@ -12959,8 +12949,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12959
12949
|
);
|
|
12960
12950
|
V.unshift($);
|
|
12961
12951
|
const Q = V.sort((fe, Ne) => {
|
|
12962
|
-
if (fe.relevance !== Ne.relevance)
|
|
12963
|
-
return Ne.relevance - fe.relevance;
|
|
12952
|
+
if (fe.relevance !== Ne.relevance) return Ne.relevance - fe.relevance;
|
|
12964
12953
|
if (fe.language && Ne.language) {
|
|
12965
12954
|
if (U(fe.language).supersetOf === Ne.language)
|
|
12966
12955
|
return 1;
|
|
@@ -12978,8 +12967,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), Q = M, V = R), $ ===
|
|
|
12978
12967
|
function E(M) {
|
|
12979
12968
|
let R = null;
|
|
12980
12969
|
const $ = m(M);
|
|
12981
|
-
if (u($))
|
|
12982
|
-
return;
|
|
12970
|
+
if (u($)) return;
|
|
12983
12971
|
if (se(
|
|
12984
12972
|
"before:highlightElement",
|
|
12985
12973
|
{ el: M, language: $ }
|
|
@@ -13158,8 +13146,7 @@ function al(t) {
|
|
|
13158
13146
|
let v = -1, y = 0, x;
|
|
13159
13147
|
for (; ++v < f.length; ) {
|
|
13160
13148
|
const E = f[v];
|
|
13161
|
-
if (!e.getLanguage(E))
|
|
13162
|
-
continue;
|
|
13149
|
+
if (!e.getLanguage(E)) continue;
|
|
13163
13150
|
const S = r(E, u, m);
|
|
13164
13151
|
S.data && S.data.relevance !== void 0 && S.data.relevance > y && (y = S.data.relevance, x = S);
|
|
13165
13152
|
}
|
|
@@ -13227,8 +13214,7 @@ class il {
|
|
|
13227
13214
|
*
|
|
13228
13215
|
*/
|
|
13229
13216
|
addText(e) {
|
|
13230
|
-
if (e === "")
|
|
13231
|
-
return;
|
|
13217
|
+
if (e === "") return;
|
|
13232
13218
|
const r = this.stack[this.stack.length - 1], n = r.children[r.children.length - 1];
|
|
13233
13219
|
n && n.type === "text" ? n.value += e : r.children.push({ type: "text", value: e });
|
|
13234
13220
|
}
|
|
@@ -13415,11 +13401,9 @@ function ml(t, e, r, n) {
|
|
|
13415
13401
|
let i = -1, o;
|
|
13416
13402
|
if (n != null) {
|
|
13417
13403
|
if (typeof n == "number") {
|
|
13418
|
-
if (Number.isNaN(n))
|
|
13419
|
-
return;
|
|
13404
|
+
if (Number.isNaN(n)) return;
|
|
13420
13405
|
o = n;
|
|
13421
|
-
} else
|
|
13422
|
-
typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = z0(n) : a.commaSeparated ? o = P0(n) : a.commaOrSpaceSeparated ? o = z0(P0(n).join(" ")) : o = sn(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ? hl(n) : String(n);
|
|
13406
|
+
} else typeof n == "boolean" ? o = n : typeof n == "string" ? a.spaceSeparated ? o = z0(n) : a.commaSeparated ? o = P0(n) : a.commaOrSpaceSeparated ? o = z0(P0(n).join(" ")) : o = sn(a, a.property, n) : Array.isArray(n) ? o = n.concat() : o = a.property === "style" ? hl(n) : String(n);
|
|
13423
13407
|
if (Array.isArray(o)) {
|
|
13424
13408
|
const l = [];
|
|
13425
13409
|
for (; ++i < o.length; ) {
|
|
@@ -13443,16 +13427,15 @@ function ml(t, e, r, n) {
|
|
|
13443
13427
|
}
|
|
13444
13428
|
function e0(t, e) {
|
|
13445
13429
|
let r = -1;
|
|
13446
|
-
if (e != null)
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
throw new Error("Expected node, nodes, or string, got `" + e + "`");
|
|
13430
|
+
if (e != null) if (typeof e == "string" || typeof e == "number")
|
|
13431
|
+
t.push({ type: "text", value: String(e) });
|
|
13432
|
+
else if (Array.isArray(e))
|
|
13433
|
+
for (; ++r < e.length; )
|
|
13434
|
+
e0(t, e[r]);
|
|
13435
|
+
else if (typeof e == "object" && "type" in e)
|
|
13436
|
+
e.type === "root" ? e0(t, e.children) : t.push(e);
|
|
13437
|
+
else
|
|
13438
|
+
throw new Error("Expected node, nodes, or string, got `" + e + "`");
|
|
13456
13439
|
}
|
|
13457
13440
|
function sn(t, e, r) {
|
|
13458
13441
|
if (typeof r == "string") {
|
|
@@ -17958,8 +17941,7 @@ var sr = [
|
|
|
17958
17941
|
if (u === "boldsymbol") {
|
|
17959
17942
|
var y = dc(i, a, r, o, n);
|
|
17960
17943
|
f = y.fontName, v = [y.fontClass];
|
|
17961
|
-
} else
|
|
17962
|
-
l ? (f = La[u].fontName, v = [u]) : (f = or(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
17944
|
+
} else l ? (f = La[u].fontName, v = [u]) : (f = or(u, r.fontWeight, r.fontShape), v = [u, r.fontWeight, r.fontShape]);
|
|
17963
17945
|
if (Sr(i, f, a).metrics)
|
|
17964
17946
|
return Ke(i, f, a, r, o.concat(v));
|
|
17965
17947
|
if (Ca.hasOwnProperty(i) && f.slice(0, 10) === "Typewriter") {
|
|
@@ -18440,8 +18422,7 @@ function s0(t, e) {
|
|
|
18440
18422
|
for (var u = !1; l < n.length - 1 && n[l + 1].hasClass("mspace") && !n[l + 1].hasClass("newline"); )
|
|
18441
18423
|
l++, o.push(n[l]), n[l].hasClass("nobreak") && (u = !0);
|
|
18442
18424
|
u || (i.push(lr(o, e)), o = []);
|
|
18443
|
-
} else
|
|
18444
|
-
n[l].hasClass("newline") && (o.pop(), o.length > 0 && (i.push(lr(o, e)), o = []), i.push(n[l]));
|
|
18425
|
+
} else n[l].hasClass("newline") && (o.pop(), o.length > 0 && (i.push(lr(o, e)), o = []), i.push(n[l]));
|
|
18445
18426
|
o.length > 0 && i.push(lr(o, e));
|
|
18446
18427
|
var m;
|
|
18447
18428
|
r ? (m = lr(xe(r, e, !0)), m.classes = ["tag"], i.push(m)) : a && i.push(a);
|
|
@@ -19345,23 +19326,22 @@ function $c(t) {
|
|
|
19345
19326
|
type: "ordgroup",
|
|
19346
19327
|
mode: "math",
|
|
19347
19328
|
body: []
|
|
19348
|
-
}, !("=|.".indexOf(m) > -1))
|
|
19349
|
-
|
|
19350
|
-
for (var
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
break;
|
|
19355
|
-
}
|
|
19356
|
-
if (En(o[y]))
|
|
19357
|
-
throw new O("Missing a " + m + " character to complete a CD arrow.", o[y]);
|
|
19358
|
-
p[f].body.push(o[y]);
|
|
19329
|
+
}, !("=|.".indexOf(m) > -1)) if ("<>AV".indexOf(m) > -1)
|
|
19330
|
+
for (var f = 0; f < 2; f++) {
|
|
19331
|
+
for (var v = !0, y = u + 1; y < o.length; y++) {
|
|
19332
|
+
if (qc(o[y], m)) {
|
|
19333
|
+
v = !1, u = y;
|
|
19334
|
+
break;
|
|
19359
19335
|
}
|
|
19360
|
-
if (
|
|
19361
|
-
throw new O("Missing a " + m + " character to complete a CD arrow.", o[
|
|
19336
|
+
if (En(o[y]))
|
|
19337
|
+
throw new O("Missing a " + m + " character to complete a CD arrow.", o[y]);
|
|
19338
|
+
p[f].body.push(o[y]);
|
|
19362
19339
|
}
|
|
19363
|
-
|
|
19364
|
-
|
|
19340
|
+
if (v)
|
|
19341
|
+
throw new O("Missing a " + m + " character to complete a CD arrow.", o[u]);
|
|
19342
|
+
}
|
|
19343
|
+
else
|
|
19344
|
+
throw new O('Expected one of "<>AV=|." after @', o[u]);
|
|
19365
19345
|
var x = Hc(m, p, t), E = {
|
|
19366
19346
|
type: "styling",
|
|
19367
19347
|
body: [x],
|
|
@@ -20592,8 +20572,7 @@ var Xe = function(e, r) {
|
|
|
20592
20572
|
for (var D = e.cols || [], F = "", P = 1; P < D.length; P++)
|
|
20593
20573
|
F += P % 2 ? "0em " : "1em ";
|
|
20594
20574
|
p.setAttribute("columnspacing", F.trim());
|
|
20595
|
-
} else
|
|
20596
|
-
e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? p.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? p.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? p.setAttribute("columnspacing", "0.5em") : p.setAttribute("columnspacing", "1em");
|
|
20575
|
+
} else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? p.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? p.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? p.setAttribute("columnspacing", "0.5em") : p.setAttribute("columnspacing", "1em");
|
|
20597
20576
|
var q = "", X = e.hLinesBeforeRow;
|
|
20598
20577
|
v += X[0].length > 0 ? "left " : "", v += X[X.length - 1].length > 0 ? "right " : "";
|
|
20599
20578
|
for (var U = 1; U < X.length - 1; U++)
|
|
@@ -22186,25 +22165,24 @@ var mi = (t, e) => {
|
|
|
22186
22165
|
}, ou = (t, e) => {
|
|
22187
22166
|
for (var r = Ie(t.body, e.withFont("mathrm")), n = !0, a = 0; a < r.length; a++) {
|
|
22188
22167
|
var i = r[a];
|
|
22189
|
-
if (!(i instanceof A.SpaceNode))
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
break;
|
|
22202
|
-
}
|
|
22203
|
-
default:
|
|
22204
|
-
n = !1;
|
|
22168
|
+
if (!(i instanceof A.SpaceNode)) if (i instanceof A.MathNode)
|
|
22169
|
+
switch (i.type) {
|
|
22170
|
+
case "mi":
|
|
22171
|
+
case "mn":
|
|
22172
|
+
case "ms":
|
|
22173
|
+
case "mspace":
|
|
22174
|
+
case "mtext":
|
|
22175
|
+
break;
|
|
22176
|
+
case "mo": {
|
|
22177
|
+
var o = i.children[0];
|
|
22178
|
+
i.children.length === 1 && o instanceof A.TextNode ? o.text = o.text.replace(/\u2212/, "-").replace(/\u2217/, "*") : n = !1;
|
|
22179
|
+
break;
|
|
22205
22180
|
}
|
|
22206
|
-
|
|
22207
|
-
|
|
22181
|
+
default:
|
|
22182
|
+
n = !1;
|
|
22183
|
+
}
|
|
22184
|
+
else
|
|
22185
|
+
n = !1;
|
|
22208
22186
|
}
|
|
22209
22187
|
if (n) {
|
|
22210
22188
|
var l = r.map((p) => p.toText()).join("");
|
|
@@ -22687,8 +22665,7 @@ var cu = function(e, r) {
|
|
|
22687
22665
|
} else
|
|
22688
22666
|
return null;
|
|
22689
22667
|
}
|
|
22690
|
-
else
|
|
22691
|
-
return null;
|
|
22668
|
+
else return null;
|
|
22692
22669
|
};
|
|
22693
22670
|
kt({
|
|
22694
22671
|
type: "supsub",
|
|
@@ -22802,8 +22779,7 @@ kt({
|
|
|
22802
22779
|
if (t.family === "bin") {
|
|
22803
22780
|
var n = x0(t, e);
|
|
22804
22781
|
n === "bold-italic" && r.setAttribute("mathvariant", n);
|
|
22805
|
-
} else
|
|
22806
|
-
t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false");
|
|
22782
|
+
} else t.family === "punct" ? r.setAttribute("separator", "true") : (t.family === "open" || t.family === "close") && r.setAttribute("stretchy", "false");
|
|
22807
22783
|
return r;
|
|
22808
22784
|
}
|
|
22809
22785
|
});
|
|
@@ -24615,8 +24591,7 @@ class Ar {
|
|
|
24615
24591
|
if (i) {
|
|
24616
24592
|
if (i.type === "internal")
|
|
24617
24593
|
continue;
|
|
24618
|
-
} else
|
|
24619
|
-
break;
|
|
24594
|
+
} else break;
|
|
24620
24595
|
n.push(i);
|
|
24621
24596
|
}
|
|
24622
24597
|
return this.mode === "text" && this.formLigatures(n), this.handleInfixNodes(n);
|
|
@@ -25254,8 +25229,7 @@ function Nu(t) {
|
|
|
25254
25229
|
if (!l && !u && !m)
|
|
25255
25230
|
return;
|
|
25256
25231
|
let f = i[i.length - 1], v = a;
|
|
25257
|
-
if (a.tagName === "code" && l && f && f.type === "element" && f.tagName === "pre" && (v = f, f = i[i.length - 2], p = !0), !f)
|
|
25258
|
-
return;
|
|
25232
|
+
if (a.tagName === "code" && l && f && f.type === "element" && f.tagName === "pre" && (v = f, f = i[i.length - 2], p = !0), !f) return;
|
|
25259
25233
|
const y = Jr(v, { whitespace: "pre" });
|
|
25260
25234
|
let x;
|
|
25261
25235
|
try {
|
|
@@ -25420,8 +25394,7 @@ function Tu(t) {
|
|
|
25420
25394
|
let f = -1;
|
|
25421
25395
|
for (; ++f < l.unsafe.length; ) {
|
|
25422
25396
|
const v = l.unsafe[f];
|
|
25423
|
-
if (!v.atBreak)
|
|
25424
|
-
continue;
|
|
25397
|
+
if (!v.atBreak) continue;
|
|
25425
25398
|
const y = l.compilePattern(v);
|
|
25426
25399
|
let x;
|
|
25427
25400
|
for (; x = y.exec(u); ) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
2
|
+
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.5k1aFm13.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.CgBXkOng.js";
|
|
4
4
|
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.
|
|
5
|
+
import { T as ut } from "./App.cLV1bpwK.js";
|
|
6
6
|
import cn from "clsx";
|
|
7
7
|
const Li = ({
|
|
8
8
|
spinnerRef: e,
|
|
@@ -1218,8 +1218,7 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1218
1218
|
`, gt = "/", dt = "*", Ae = "", rl = "comment", il = "declaration", ll = function(e, t) {
|
|
1219
1219
|
if (typeof e != "string")
|
|
1220
1220
|
throw new TypeError("First argument must be a string");
|
|
1221
|
-
if (!e)
|
|
1222
|
-
return [];
|
|
1221
|
+
if (!e) return [];
|
|
1223
1222
|
t = t || {};
|
|
1224
1223
|
var n = 1, r = 1;
|
|
1225
1224
|
function i(d) {
|
|
@@ -1242,8 +1241,7 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1242
1241
|
var k = new Error(
|
|
1243
1242
|
t.source + ":" + n + ":" + r + ": " + d
|
|
1244
1243
|
);
|
|
1245
|
-
if (k.reason = d, k.filename = t.source, k.line = n, k.column = r, k.source = e, !t.silent)
|
|
1246
|
-
throw k;
|
|
1244
|
+
if (k.reason = d, k.filename = t.source, k.line = n, k.column = r, k.source = e, !t.silent) throw k;
|
|
1247
1245
|
}
|
|
1248
1246
|
function u(d) {
|
|
1249
1247
|
var k = d.exec(e);
|
|
@@ -1278,8 +1276,7 @@ var gr = {}, mt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Xi = /\n/g, Yi = /^\s*/, Ki
|
|
|
1278
1276
|
function h() {
|
|
1279
1277
|
var d = o(), k = u(Ki);
|
|
1280
1278
|
if (k) {
|
|
1281
|
-
if (c(), !u(Ji))
|
|
1282
|
-
return a("property missing ':'");
|
|
1279
|
+
if (c(), !u(Ji)) return a("property missing ':'");
|
|
1283
1280
|
var S = u(Zi), x = d({
|
|
1284
1281
|
type: il,
|
|
1285
1282
|
property: yt(k[0].replace(mt, Ae)),
|
|
@@ -3136,8 +3133,7 @@ function jo(e, t) {
|
|
|
3136
3133
|
r = 2;
|
|
3137
3134
|
break;
|
|
3138
3135
|
}
|
|
3139
|
-
} else
|
|
3140
|
-
i.type === "labelEnd" && (l = n);
|
|
3136
|
+
} else i.type === "labelEnd" && (l = n);
|
|
3141
3137
|
const u = {
|
|
3142
3138
|
type: e[o][1].type === "labelLink" ? "link" : "image",
|
|
3143
3139
|
start: Object.assign({}, e[o][1].start),
|
|
@@ -3606,8 +3602,7 @@ function fa(e, t) {
|
|
|
3606
3602
|
if (typeof s == "string") {
|
|
3607
3603
|
for (l = s.length; s.charCodeAt(l - 1) === 32; )
|
|
3608
3604
|
a++, l--;
|
|
3609
|
-
if (l)
|
|
3610
|
-
break;
|
|
3605
|
+
if (l) break;
|
|
3611
3606
|
l = -1;
|
|
3612
3607
|
} else if (s === -2)
|
|
3613
3608
|
u = !0, a++;
|
|
@@ -3840,8 +3835,7 @@ function ma(e, t) {
|
|
|
3840
3835
|
break;
|
|
3841
3836
|
}
|
|
3842
3837
|
case -1: {
|
|
3843
|
-
if (!t && i)
|
|
3844
|
-
continue;
|
|
3838
|
+
if (!t && i) continue;
|
|
3845
3839
|
l = " ";
|
|
3846
3840
|
break;
|
|
3847
3841
|
}
|
|
@@ -3953,8 +3947,7 @@ function Ta() {
|
|
|
3953
3947
|
break;
|
|
3954
3948
|
}
|
|
3955
3949
|
case 9: {
|
|
3956
|
-
for (f = Math.ceil(e / 4) * 4, u.push(-2); e++ < f; )
|
|
3957
|
-
u.push(-1);
|
|
3950
|
+
for (f = Math.ceil(e / 4) * 4, u.push(-2); e++ < f; ) u.push(-1);
|
|
3958
3951
|
break;
|
|
3959
3952
|
}
|
|
3960
3953
|
case 10: {
|
|
@@ -4180,11 +4173,9 @@ function va(e) {
|
|
|
4180
4173
|
for (ge = void 0; Le--; ) {
|
|
4181
4174
|
const de = b[Le];
|
|
4182
4175
|
if (de[1].type === "lineEnding" || de[1].type === "lineEndingBlank") {
|
|
4183
|
-
if (de[0] === "exit")
|
|
4184
|
-
continue;
|
|
4176
|
+
if (de[0] === "exit") continue;
|
|
4185
4177
|
ge && (b[ge][1].type = "lineEndingBlank", se = !0), de[1].type = "lineEnding", ge = Le;
|
|
4186
|
-
} else if (!(de[1].type === "linePrefix" || de[1].type === "blockQuotePrefix" || de[1].type === "blockQuotePrefixWhitespace" || de[1].type === "blockQuoteMarker" || de[1].type === "listItemIndent"))
|
|
4187
|
-
break;
|
|
4178
|
+
} else if (!(de[1].type === "linePrefix" || de[1].type === "blockQuotePrefix" || de[1].type === "blockQuotePrefixWhitespace" || de[1].type === "blockQuoteMarker" || de[1].type === "listItemIndent")) break;
|
|
4188
4179
|
}
|
|
4189
4180
|
_e && (!ge || _e < ge) && (Ce._spread = !0), Ce.end = Object.assign(
|
|
4190
4181
|
{},
|
|
@@ -4234,13 +4225,12 @@ function va(e) {
|
|
|
4234
4225
|
const v = this.stack.pop(), _ = this.tokenStack.pop();
|
|
4235
4226
|
if (_)
|
|
4236
4227
|
_[0].type !== b.type && (I ? I.call(this, b, _[0]) : (_[1] || Dt).call(this, b, _[0]));
|
|
4237
|
-
else
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
);
|
|
4228
|
+
else throw new Error(
|
|
4229
|
+
"Cannot close `" + b.type + "` (" + Ne({
|
|
4230
|
+
start: b.start,
|
|
4231
|
+
end: b.end
|
|
4232
|
+
}) + "): it’s not open"
|
|
4233
|
+
);
|
|
4244
4234
|
v.position.end = xe(b.end);
|
|
4245
4235
|
}
|
|
4246
4236
|
function f() {
|
|
@@ -5213,8 +5203,7 @@ function mu(e) {
|
|
|
5213
5203
|
function r(...i) {
|
|
5214
5204
|
let o = -1;
|
|
5215
5205
|
for (; ++o < t.length; )
|
|
5216
|
-
if (t[o].apply(this, i))
|
|
5217
|
-
return !0;
|
|
5206
|
+
if (t[o].apply(this, i)) return !0;
|
|
5218
5207
|
return !1;
|
|
5219
5208
|
}
|
|
5220
5209
|
}
|
|
@@ -5232,8 +5221,7 @@ function gu(e) {
|
|
|
5232
5221
|
);
|
|
5233
5222
|
let o;
|
|
5234
5223
|
for (o in e)
|
|
5235
|
-
if (i[o] !== t[o])
|
|
5236
|
-
return !1;
|
|
5224
|
+
if (i[o] !== t[o]) return !1;
|
|
5237
5225
|
return !0;
|
|
5238
5226
|
}
|
|
5239
5227
|
}
|
|
@@ -5459,8 +5447,7 @@ var Ke = Object.prototype.hasOwnProperty, $r = Object.prototype.toString, Ht = O
|
|
|
5459
5447
|
if (Ke.call(t, n)) {
|
|
5460
5448
|
if (Ut)
|
|
5461
5449
|
return Ut(t, n).value;
|
|
5462
|
-
} else
|
|
5463
|
-
return;
|
|
5450
|
+
} else return;
|
|
5464
5451
|
return t[n];
|
|
5465
5452
|
}, Lu = function e() {
|
|
5466
5453
|
var t, n, r, i, o, l, a = arguments[0], u = 1, s = arguments.length, f = !1;
|
|
@@ -5546,8 +5533,7 @@ function vu(e, t) {
|
|
|
5546
5533
|
n = i + 1;
|
|
5547
5534
|
break;
|
|
5548
5535
|
}
|
|
5549
|
-
} else
|
|
5550
|
-
r < 0 && (o = !0, r = i + 1);
|
|
5536
|
+
} else r < 0 && (o = !0, r = i + 1);
|
|
5551
5537
|
return r < 0 ? "" : e.slice(n, r);
|
|
5552
5538
|
}
|
|
5553
5539
|
if (t === e)
|
|
@@ -5573,8 +5559,7 @@ function Ou(e) {
|
|
|
5573
5559
|
t = n;
|
|
5574
5560
|
break;
|
|
5575
5561
|
}
|
|
5576
|
-
} else
|
|
5577
|
-
r || (r = !0);
|
|
5562
|
+
} else r || (r = !0);
|
|
5578
5563
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5579
5564
|
}
|
|
5580
5565
|
function Fu(e) {
|
|
@@ -5618,25 +5603,23 @@ function Mu(e, t) {
|
|
|
5618
5603
|
a = 47;
|
|
5619
5604
|
}
|
|
5620
5605
|
if (a === 47) {
|
|
5621
|
-
if (!(i === l - 1 || o === 1))
|
|
5622
|
-
if (
|
|
5623
|
-
if (n.length
|
|
5624
|
-
if (n.length
|
|
5625
|
-
|
|
5626
|
-
u < 0 ? (n = "", r = 0) : (n = n.slice(0, u), r = n.length - 1 - n.lastIndexOf("/")), i = l, o = 0;
|
|
5627
|
-
continue;
|
|
5628
|
-
}
|
|
5629
|
-
} else if (n.length > 0) {
|
|
5630
|
-
n = "", r = 0, i = l, o = 0;
|
|
5606
|
+
if (!(i === l - 1 || o === 1)) if (i !== l - 1 && o === 2) {
|
|
5607
|
+
if (n.length < 2 || r !== 2 || n.codePointAt(n.length - 1) !== 46 || n.codePointAt(n.length - 2) !== 46) {
|
|
5608
|
+
if (n.length > 2) {
|
|
5609
|
+
if (u = n.lastIndexOf("/"), u !== n.length - 1) {
|
|
5610
|
+
u < 0 ? (n = "", r = 0) : (n = n.slice(0, u), r = n.length - 1 - n.lastIndexOf("/")), i = l, o = 0;
|
|
5631
5611
|
continue;
|
|
5632
5612
|
}
|
|
5613
|
+
} else if (n.length > 0) {
|
|
5614
|
+
n = "", r = 0, i = l, o = 0;
|
|
5615
|
+
continue;
|
|
5633
5616
|
}
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5617
|
+
}
|
|
5618
|
+
t && (n = n.length > 0 ? n + "/.." : "..", r = 2);
|
|
5619
|
+
} else
|
|
5620
|
+
n.length > 0 ? n += "/" + e.slice(i + 1, l) : n = e.slice(i + 1, l), r = l - i - 1;
|
|
5637
5621
|
i = l, o = 0;
|
|
5638
|
-
} else
|
|
5639
|
-
a === 46 && o > -1 ? o++ : o = -1;
|
|
5622
|
+
} else a === 46 && o > -1 ? o++ : o = -1;
|
|
5640
5623
|
}
|
|
5641
5624
|
return n;
|
|
5642
5625
|
}
|
|
@@ -6541,13 +6524,12 @@ class Kn extends $u {
|
|
|
6541
6524
|
*/
|
|
6542
6525
|
use(t, ...n) {
|
|
6543
6526
|
const r = this.attachers, i = this.namespace;
|
|
6544
|
-
if (wn("use", this.frozen), t != null)
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
throw new TypeError("Expected usable value, not `" + t + "`");
|
|
6527
|
+
if (wn("use", this.frozen), t != null) if (typeof t == "function")
|
|
6528
|
+
u(t, n);
|
|
6529
|
+
else if (typeof t == "object")
|
|
6530
|
+
Array.isArray(t) ? a(t) : l(t);
|
|
6531
|
+
else
|
|
6532
|
+
throw new TypeError("Expected usable value, not `" + t + "`");
|
|
6551
6533
|
return this;
|
|
6552
6534
|
function o(s) {
|
|
6553
6535
|
if (typeof s == "function")
|
|
@@ -6573,14 +6555,13 @@ class Kn extends $u {
|
|
|
6573
6555
|
}
|
|
6574
6556
|
function a(s) {
|
|
6575
6557
|
let f = -1;
|
|
6576
|
-
if (s != null)
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
throw new TypeError("Expected a list of plugins, not `" + s + "`");
|
|
6558
|
+
if (s != null) if (Array.isArray(s))
|
|
6559
|
+
for (; ++f < s.length; ) {
|
|
6560
|
+
const c = s[f];
|
|
6561
|
+
o(c);
|
|
6562
|
+
}
|
|
6563
|
+
else
|
|
6564
|
+
throw new TypeError("Expected a list of plugins, not `" + s + "`");
|
|
6584
6565
|
}
|
|
6585
6566
|
function u(s, f) {
|
|
6586
6567
|
let c = -1, h = -1;
|
|
@@ -6879,8 +6860,7 @@ function ps(e, t, n, r, i) {
|
|
|
6879
6860
|
if (!Vr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !ms(n)))
|
|
6880
6861
|
return !1;
|
|
6881
6862
|
const l = gs(n + r);
|
|
6882
|
-
if (!l[0])
|
|
6883
|
-
return !1;
|
|
6863
|
+
if (!l[0]) return !1;
|
|
6884
6864
|
const a = {
|
|
6885
6865
|
type: "link",
|
|
6886
6866
|
title: null,
|
|
@@ -8317,8 +8297,7 @@ function Xc(e) {
|
|
|
8317
8297
|
const k = Ze(s);
|
|
8318
8298
|
if (d === 126)
|
|
8319
8299
|
return c > 1 ? u(d) : (l.consume(d), c++, p);
|
|
8320
|
-
if (c < 2 && !n)
|
|
8321
|
-
return u(d);
|
|
8300
|
+
if (c < 2 && !n) return u(d);
|
|
8322
8301
|
const S = l.exit("strikethroughSequenceTemporary"), x = Ze(d);
|
|
8323
8302
|
return S._open = !x || x === 2 && !!k, S._close = !k || k === 2 && !!x, a(d);
|
|
8324
8303
|
}
|
|
@@ -8409,8 +8388,7 @@ function Jc(e, t) {
|
|
|
8409
8388
|
}
|
|
8410
8389
|
} else if (i[1].type === "tableDelimiterRow")
|
|
8411
8390
|
break;
|
|
8412
|
-
} else
|
|
8413
|
-
i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
|
|
8391
|
+
} else i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
|
|
8414
8392
|
t += 1;
|
|
8415
8393
|
}
|
|
8416
8394
|
return r;
|
|
@@ -8436,8 +8414,7 @@ function ef(e, t, n) {
|
|
|
8436
8414
|
if (V === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
8437
8415
|
V === "linePrefix")
|
|
8438
8416
|
T--;
|
|
8439
|
-
else
|
|
8440
|
-
break;
|
|
8417
|
+
else break;
|
|
8441
8418
|
}
|
|
8442
8419
|
const P = T > -1 ? r.events[T][1].type : null, H = P === "tableHead" || P === "tableRow" ? w : u;
|
|
8443
8420
|
return H === w && r.parser.lazy[r.now().line] ? n(y) : H(y);
|
|
@@ -8641,7 +8618,7 @@ function sf(e) {
|
|
|
8641
8618
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8642
8619
|
}
|
|
8643
8620
|
const cf = Ii(
|
|
8644
|
-
() => import("./LazyMarkdownWithExtra.
|
|
8621
|
+
() => import("./LazyMarkdownWithExtra.CbkyblK3.js")
|
|
8645
8622
|
), In = {
|
|
8646
8623
|
MODEL: "Model",
|
|
8647
8624
|
PLUGIN: "Plugin",
|
|
@@ -4,13 +4,13 @@ import K, { createContext as It, useRef as B, useState as U, useCallback as Me,
|
|
|
4
4
|
import g from "clsx";
|
|
5
5
|
var Ot = Object.defineProperty, Dt = (e, t, r) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ye = (e, t, r) => (Dt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
6
6
|
/*!
|
|
7
|
-
@versini/auth-provider v5.0.
|
|
7
|
+
@versini/auth-provider v5.0.6
|
|
8
8
|
© 2024 gizmette.com
|
|
9
9
|
*/
|
|
10
10
|
try {
|
|
11
11
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
12
|
-
version: "5.0.
|
|
13
|
-
buildTime: "07/
|
|
12
|
+
version: "5.0.6",
|
|
13
|
+
buildTime: "07/06/2024 03:39 PM EDT",
|
|
14
14
|
homepage: "https://github.com/aversini/auth-client",
|
|
15
15
|
license: "MIT"
|
|
16
16
|
});
|
|
@@ -23,7 +23,7 @@ try {
|
|
|
23
23
|
try {
|
|
24
24
|
window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
|
|
25
25
|
version: "2.10.1",
|
|
26
|
-
buildTime: "07/
|
|
26
|
+
buildTime: "07/06/2024 03:39 PM EDT",
|
|
27
27
|
homepage: "https://github.com/aversini/auth-client",
|
|
28
28
|
license: "MIT"
|
|
29
29
|
});
|
|
@@ -587,16 +587,16 @@ async function cr(e, t, r) {
|
|
|
587
587
|
throw new k("JWS Payload must be a string");
|
|
588
588
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
589
589
|
throw new k("JWS Payload must be a string or an Uint8Array instance");
|
|
590
|
-
let
|
|
591
|
-
typeof t == "function" && (t = await t(a, e),
|
|
590
|
+
let d = !1;
|
|
591
|
+
typeof t == "function" && (t = await t(a, e), d = !0), rr(i, t, "verify");
|
|
592
592
|
const p = Lt(Z.encode(e.protected ?? ""), Z.encode("."), typeof e.payload == "string" ? Z.encode(e.payload) : e.payload);
|
|
593
|
-
let
|
|
593
|
+
let u;
|
|
594
594
|
try {
|
|
595
|
-
|
|
595
|
+
u = le(e.signature);
|
|
596
596
|
} catch {
|
|
597
597
|
throw new k("Failed to base64url decode the signature");
|
|
598
598
|
}
|
|
599
|
-
if (!await ir(i, t,
|
|
599
|
+
if (!await ir(i, t, u, p))
|
|
600
600
|
throw new Ht();
|
|
601
601
|
let m;
|
|
602
602
|
if (s)
|
|
@@ -608,7 +608,7 @@ async function cr(e, t, r) {
|
|
|
608
608
|
else
|
|
609
609
|
typeof e.payload == "string" ? m = Z.encode(e.payload) : m = e.payload;
|
|
610
610
|
const h = { payload: m };
|
|
611
|
-
return e.protected !== void 0 && (h.protectedHeader = a), e.header !== void 0 && (h.unprotectedHeader = e.header),
|
|
611
|
+
return e.protected !== void 0 && (h.protectedHeader = a), e.header !== void 0 && (h.unprotectedHeader = e.header), d ? { ...h, key: t } : h;
|
|
612
612
|
}
|
|
613
613
|
async function lr(e, t, r) {
|
|
614
614
|
if (e instanceof Uint8Array && (e = ge.decode(e)), typeof e != "string")
|
|
@@ -673,8 +673,8 @@ const dr = (e) => Math.floor(e.getTime() / 1e3), lt = 60, dt = lt * 60, Ie = dt
|
|
|
673
673
|
const { typ: n } = r;
|
|
674
674
|
if (n && (typeof e.typ != "string" || He(e.typ) !== He(n)))
|
|
675
675
|
throw new $('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
676
|
-
const { requiredClaims: o = [], issuer: s, subject: i, audience: l, maxTokenAge:
|
|
677
|
-
|
|
676
|
+
const { requiredClaims: o = [], issuer: s, subject: i, audience: l, maxTokenAge: d } = r, p = [...o];
|
|
677
|
+
d !== void 0 && p.push("iat"), l !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
678
678
|
for (const f of new Set(p.reverse()))
|
|
679
679
|
if (!(f in a))
|
|
680
680
|
throw new $(`missing required "${f}" claim`, a, f, "missing");
|
|
@@ -684,40 +684,40 @@ const dr = (e) => Math.floor(e.getTime() / 1e3), lt = 60, dt = lt * 60, Ie = dt
|
|
|
684
684
|
throw new $('unexpected "sub" claim value', a, "sub", "check_failed");
|
|
685
685
|
if (l && !pr(a.aud, typeof l == "string" ? [l] : l))
|
|
686
686
|
throw new $('unexpected "aud" claim value', a, "aud", "check_failed");
|
|
687
|
-
let
|
|
687
|
+
let u;
|
|
688
688
|
switch (typeof r.clockTolerance) {
|
|
689
689
|
case "string":
|
|
690
|
-
|
|
690
|
+
u = Ue(r.clockTolerance);
|
|
691
691
|
break;
|
|
692
692
|
case "number":
|
|
693
|
-
|
|
693
|
+
u = r.clockTolerance;
|
|
694
694
|
break;
|
|
695
695
|
case "undefined":
|
|
696
|
-
|
|
696
|
+
u = 0;
|
|
697
697
|
break;
|
|
698
698
|
default:
|
|
699
699
|
throw new TypeError("Invalid clockTolerance option type");
|
|
700
700
|
}
|
|
701
701
|
const { currentDate: m } = r, h = dr(m || /* @__PURE__ */ new Date());
|
|
702
|
-
if ((a.iat !== void 0 ||
|
|
702
|
+
if ((a.iat !== void 0 || d) && typeof a.iat != "number")
|
|
703
703
|
throw new $('"iat" claim must be a number', a, "iat", "invalid");
|
|
704
704
|
if (a.nbf !== void 0) {
|
|
705
705
|
if (typeof a.nbf != "number")
|
|
706
706
|
throw new $('"nbf" claim must be a number', a, "nbf", "invalid");
|
|
707
|
-
if (a.nbf > h +
|
|
707
|
+
if (a.nbf > h + u)
|
|
708
708
|
throw new $('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
|
|
709
709
|
}
|
|
710
710
|
if (a.exp !== void 0) {
|
|
711
711
|
if (typeof a.exp != "number")
|
|
712
712
|
throw new $('"exp" claim must be a number', a, "exp", "invalid");
|
|
713
|
-
if (a.exp <= h -
|
|
713
|
+
if (a.exp <= h - u)
|
|
714
714
|
throw new $e('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
715
715
|
}
|
|
716
|
-
if (
|
|
717
|
-
const f = h - a.iat, b = typeof
|
|
718
|
-
if (f -
|
|
716
|
+
if (d) {
|
|
717
|
+
const f = h - a.iat, b = typeof d == "number" ? d : Ue(d);
|
|
718
|
+
if (f - u > b)
|
|
719
719
|
throw new $e('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
720
|
-
if (f < 0 -
|
|
720
|
+
if (f < 0 - u)
|
|
721
721
|
throw new $('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
|
722
722
|
}
|
|
723
723
|
return a;
|
|
@@ -923,12 +923,12 @@ const ne = "Oops! It looks like your session has expired. For your security, ple
|
|
|
923
923
|
code: s,
|
|
924
924
|
code_verifier: i
|
|
925
925
|
}
|
|
926
|
-
}),
|
|
927
|
-
return
|
|
926
|
+
}), d = await Y(l.data.idToken);
|
|
927
|
+
return d && d.payload[N.USER_ID_KEY] !== "" && d.payload[N.NONCE_KEY] === a ? {
|
|
928
928
|
idToken: l.data.idToken,
|
|
929
929
|
accessToken: l.data.accessToken,
|
|
930
930
|
refreshToken: l.data.refreshToken,
|
|
931
|
-
userId:
|
|
931
|
+
userId: d.payload[N.USER_ID_KEY],
|
|
932
932
|
status: !0
|
|
933
933
|
} : {
|
|
934
934
|
status: !1
|
|
@@ -1061,9 +1061,9 @@ const se = () => {
|
|
|
1061
1061
|
}) => {
|
|
1062
1062
|
const a = B(!1), [n, o, , s] = re({
|
|
1063
1063
|
key: `${oe}::${r}::@@user@@`
|
|
1064
|
-
}), [i, l, ,
|
|
1064
|
+
}), [i, l, , d] = re({
|
|
1065
1065
|
key: `${oe}::${r}::@@access@@`
|
|
1066
|
-
}), [p,
|
|
1066
|
+
}), [p, u, , m] = re(
|
|
1067
1067
|
{
|
|
1068
1068
|
key: `${oe}::${r}::@@refresh@@`
|
|
1069
1069
|
}
|
|
@@ -1081,9 +1081,9 @@ const se = () => {
|
|
|
1081
1081
|
isAuthenticated: !1,
|
|
1082
1082
|
user: void 0,
|
|
1083
1083
|
logoutReason: y || ne
|
|
1084
|
-
}), s(),
|
|
1084
|
+
}), s(), d(), m(), b();
|
|
1085
1085
|
},
|
|
1086
|
-
[s,
|
|
1086
|
+
[s, d, b, m]
|
|
1087
1087
|
), I = Me(
|
|
1088
1088
|
async (y) => {
|
|
1089
1089
|
_(y || ne), await Lr({
|
|
@@ -1127,7 +1127,7 @@ const se = () => {
|
|
|
1127
1127
|
if (f(w), T((V) => ({
|
|
1128
1128
|
...V,
|
|
1129
1129
|
isLoading: !0
|
|
1130
|
-
})), D === Q.CODE) {
|
|
1130
|
+
})), s(), d(), m(), D === Q.CODE) {
|
|
1131
1131
|
const { code_verifier: V, code_challenge: X } = await Tr(), De = await Pr({
|
|
1132
1132
|
nonce: w,
|
|
1133
1133
|
clientId: r,
|
|
@@ -1144,7 +1144,7 @@ const se = () => {
|
|
|
1144
1144
|
code: De.code,
|
|
1145
1145
|
code_verifier: V
|
|
1146
1146
|
});
|
|
1147
|
-
return J.status ? (o(J.idToken), l(J.accessToken),
|
|
1147
|
+
return J.status ? (o(J.idToken), l(J.accessToken), u(J.refreshToken), T({
|
|
1148
1148
|
isLoading: !1,
|
|
1149
1149
|
isAuthenticated: !0,
|
|
1150
1150
|
user: {
|
|
@@ -1164,7 +1164,7 @@ const se = () => {
|
|
|
1164
1164
|
nonce: w,
|
|
1165
1165
|
type: D
|
|
1166
1166
|
});
|
|
1167
|
-
return x.status ? (o(x.idToken), l(x.accessToken),
|
|
1167
|
+
return x.status ? (o(x.idToken), l(x.accessToken), u(x.refreshToken), T({
|
|
1168
1168
|
isLoading: !1,
|
|
1169
1169
|
isAuthenticated: !0,
|
|
1170
1170
|
user: {
|
|
@@ -1188,7 +1188,7 @@ const se = () => {
|
|
|
1188
1188
|
userId: M.userId,
|
|
1189
1189
|
nonce: h
|
|
1190
1190
|
});
|
|
1191
|
-
return D.status && D.status === "success" ? (l(D.newAccessToken),
|
|
1191
|
+
return D.status && D.status === "success" ? (l(D.newAccessToken), u(D.newRefreshToken), D.newAccessToken) : (await I(Se), "");
|
|
1192
1192
|
}
|
|
1193
1193
|
return await I(Se), "";
|
|
1194
1194
|
} catch {
|
|
@@ -1379,9 +1379,9 @@ const se = () => {
|
|
|
1379
1379
|
fullWidth: s,
|
|
1380
1380
|
size: i,
|
|
1381
1381
|
noBorder: l,
|
|
1382
|
-
labelRight:
|
|
1382
|
+
labelRight: d,
|
|
1383
1383
|
labelLeft: p,
|
|
1384
|
-
spacing:
|
|
1384
|
+
spacing: u,
|
|
1385
1385
|
noBackground: m,
|
|
1386
1386
|
variant: h,
|
|
1387
1387
|
noTruncate: f,
|
|
@@ -1389,9 +1389,9 @@ const se = () => {
|
|
|
1389
1389
|
}) => (h || (h = "primary"), r ? g(Ye, t) : g(
|
|
1390
1390
|
Ye,
|
|
1391
1391
|
t,
|
|
1392
|
-
Ne(
|
|
1392
|
+
Ne(u),
|
|
1393
1393
|
Jr({ mode: a, variant: h, noBackground: m, noTruncate: f }),
|
|
1394
|
-
Vr({ type: e, size: i, labelRight:
|
|
1394
|
+
Vr({ type: e, size: i, labelRight: d, labelLeft: p, align: b }),
|
|
1395
1395
|
Yr({ mode: a, variant: h, noBorder: l }),
|
|
1396
1396
|
qr({ focusMode: n }),
|
|
1397
1397
|
Fr({ mode: a, variant: h, disabled: o }),
|
|
@@ -1430,9 +1430,9 @@ const ft = K.forwardRef(
|
|
|
1430
1430
|
type: s = "button",
|
|
1431
1431
|
raw: i = !1,
|
|
1432
1432
|
noBorder: l = !1,
|
|
1433
|
-
"aria-label":
|
|
1433
|
+
"aria-label": d,
|
|
1434
1434
|
label: p,
|
|
1435
|
-
size:
|
|
1435
|
+
size: u = "medium",
|
|
1436
1436
|
labelRight: m,
|
|
1437
1437
|
labelLeft: h,
|
|
1438
1438
|
spacing: f,
|
|
@@ -1449,7 +1449,7 @@ const ft = K.forwardRef(
|
|
|
1449
1449
|
raw: i,
|
|
1450
1450
|
className: o,
|
|
1451
1451
|
noBorder: l,
|
|
1452
|
-
size:
|
|
1452
|
+
size: u,
|
|
1453
1453
|
labelRight: m,
|
|
1454
1454
|
labelLeft: h,
|
|
1455
1455
|
spacing: f,
|
|
@@ -1468,7 +1468,7 @@ const ft = K.forwardRef(
|
|
|
1468
1468
|
className: _,
|
|
1469
1469
|
disabled: t,
|
|
1470
1470
|
type: s,
|
|
1471
|
-
"aria-label":
|
|
1471
|
+
"aria-label": d || p,
|
|
1472
1472
|
...A,
|
|
1473
1473
|
children: [
|
|
1474
1474
|
h && /* @__PURE__ */ c("span", { className: "pr-2", children: h }),
|
|
@@ -1491,9 +1491,9 @@ const yt = K.forwardRef(
|
|
|
1491
1491
|
size: s = "medium",
|
|
1492
1492
|
raw: i = !1,
|
|
1493
1493
|
noBorder: l = !1,
|
|
1494
|
-
spacing:
|
|
1494
|
+
spacing: d,
|
|
1495
1495
|
variant: p = "primary",
|
|
1496
|
-
noTruncate:
|
|
1496
|
+
noTruncate: u = !1,
|
|
1497
1497
|
...m
|
|
1498
1498
|
}, h) => {
|
|
1499
1499
|
const f = gt({
|
|
@@ -1506,9 +1506,9 @@ const yt = K.forwardRef(
|
|
|
1506
1506
|
className: o,
|
|
1507
1507
|
size: s,
|
|
1508
1508
|
noBorder: l,
|
|
1509
|
-
spacing:
|
|
1509
|
+
spacing: d,
|
|
1510
1510
|
variant: p,
|
|
1511
|
-
noTruncate:
|
|
1511
|
+
noTruncate: u
|
|
1512
1512
|
});
|
|
1513
1513
|
return /* @__PURE__ */ c(
|
|
1514
1514
|
Ce,
|
|
@@ -1668,13 +1668,13 @@ function Et({
|
|
|
1668
1668
|
visible: i,
|
|
1669
1669
|
...l
|
|
1670
1670
|
}) {
|
|
1671
|
-
const
|
|
1671
|
+
const d = B(), p = B(), [u, m] = Ct(aa, {
|
|
1672
1672
|
announcement: null
|
|
1673
1673
|
});
|
|
1674
1674
|
let h = r;
|
|
1675
1675
|
typeof h > "u" && (h = a ? ra[a] : "assertive"), z(() => {
|
|
1676
1676
|
oa({
|
|
1677
|
-
announcementTimeoutRef:
|
|
1677
|
+
announcementTimeoutRef: d,
|
|
1678
1678
|
announcementDelay: n,
|
|
1679
1679
|
children: e,
|
|
1680
1680
|
clearAnnouncementDelay: o,
|
|
@@ -1698,7 +1698,7 @@ function Et({
|
|
|
1698
1698
|
...a && { role: a },
|
|
1699
1699
|
className: f,
|
|
1700
1700
|
...l,
|
|
1701
|
-
children:
|
|
1701
|
+
children: u.announcement
|
|
1702
1702
|
}
|
|
1703
1703
|
);
|
|
1704
1704
|
}
|
|
@@ -1808,7 +1808,7 @@ const sa = (e) => {
|
|
|
1808
1808
|
mode: i,
|
|
1809
1809
|
focusMode: l
|
|
1810
1810
|
}) => {
|
|
1811
|
-
const
|
|
1811
|
+
const d = r ? e : g(
|
|
1812
1812
|
"relative flex w-full flex-col justify-center",
|
|
1813
1813
|
ia,
|
|
1814
1814
|
e,
|
|
@@ -1823,7 +1823,7 @@ const sa = (e) => {
|
|
|
1823
1823
|
{
|
|
1824
1824
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
1825
1825
|
}
|
|
1826
|
-
),
|
|
1826
|
+
), u = r ? void 0 : "sr-only", m = ua({
|
|
1827
1827
|
disabled: a,
|
|
1828
1828
|
raw: r,
|
|
1829
1829
|
error: o,
|
|
@@ -1835,9 +1835,9 @@ const sa = (e) => {
|
|
|
1835
1835
|
disabled: a
|
|
1836
1836
|
});
|
|
1837
1837
|
return {
|
|
1838
|
-
wrapper:
|
|
1838
|
+
wrapper: d,
|
|
1839
1839
|
input: p,
|
|
1840
|
-
accessibleLabel:
|
|
1840
|
+
accessibleLabel: u,
|
|
1841
1841
|
visibleLabel: m,
|
|
1842
1842
|
helperText: h,
|
|
1843
1843
|
rightElement: r ? void 0 : "absolute right-3"
|
|
@@ -1853,9 +1853,9 @@ const sa = (e) => {
|
|
|
1853
1853
|
inputClassName: s,
|
|
1854
1854
|
mode: i = "system",
|
|
1855
1855
|
focusMode: l = "system",
|
|
1856
|
-
disabled:
|
|
1856
|
+
disabled: d = !1,
|
|
1857
1857
|
noBorder: p = !1,
|
|
1858
|
-
labelId:
|
|
1858
|
+
labelId: u,
|
|
1859
1859
|
labelHidden: m = !1,
|
|
1860
1860
|
type: h = "text",
|
|
1861
1861
|
helperText: f = "",
|
|
@@ -1869,7 +1869,7 @@ const sa = (e) => {
|
|
|
1869
1869
|
error: a,
|
|
1870
1870
|
raw: n,
|
|
1871
1871
|
focusMode: l,
|
|
1872
|
-
disabled:
|
|
1872
|
+
disabled: d,
|
|
1873
1873
|
noBorder: p,
|
|
1874
1874
|
spacing: R,
|
|
1875
1875
|
mode: i
|
|
@@ -1881,7 +1881,7 @@ const sa = (e) => {
|
|
|
1881
1881
|
"label",
|
|
1882
1882
|
{
|
|
1883
1883
|
htmlFor: C,
|
|
1884
|
-
id:
|
|
1884
|
+
id: u,
|
|
1885
1885
|
className: O.accessibleLabel,
|
|
1886
1886
|
children: r
|
|
1887
1887
|
}
|
|
@@ -1893,7 +1893,7 @@ const sa = (e) => {
|
|
|
1893
1893
|
id: C,
|
|
1894
1894
|
name: t,
|
|
1895
1895
|
type: h,
|
|
1896
|
-
disabled:
|
|
1896
|
+
disabled: d,
|
|
1897
1897
|
placeholder: n ? void 0 : " ",
|
|
1898
1898
|
className: O.input,
|
|
1899
1899
|
...f && { "aria-describedby": `${C}-helper` },
|
|
@@ -1943,9 +1943,9 @@ const pa = 500, ga = 5e3, fa = 2e4, kt = K.forwardRef(
|
|
|
1943
1943
|
onBlur: s,
|
|
1944
1944
|
onFocus: i,
|
|
1945
1945
|
onTextInputMaskBlur: l,
|
|
1946
|
-
rightElement:
|
|
1946
|
+
rightElement: d,
|
|
1947
1947
|
spacing: p,
|
|
1948
|
-
...
|
|
1948
|
+
...u
|
|
1949
1949
|
}, m) => {
|
|
1950
1950
|
const [h, f] = U(!0), [b, R] = U({
|
|
1951
1951
|
message: null,
|
|
@@ -1993,14 +1993,14 @@ const pa = 500, ga = 5e3, fa = 2e4, kt = K.forwardRef(
|
|
|
1993
1993
|
onBlur: y,
|
|
1994
1994
|
onFocus: M,
|
|
1995
1995
|
onChange: D,
|
|
1996
|
-
rightElement: K.cloneElement(
|
|
1996
|
+
rightElement: K.cloneElement(d, {
|
|
1997
1997
|
ref: m,
|
|
1998
1998
|
label: j,
|
|
1999
1999
|
onClick: G,
|
|
2000
2000
|
onBlur: O,
|
|
2001
2001
|
disabled: t
|
|
2002
2002
|
}),
|
|
2003
|
-
...
|
|
2003
|
+
...u
|
|
2004
2004
|
}
|
|
2005
2005
|
),
|
|
2006
2006
|
/* @__PURE__ */ c(
|
|
@@ -2048,9 +2048,9 @@ const ya = (e) => {
|
|
|
2048
2048
|
spacing: s,
|
|
2049
2049
|
title: i,
|
|
2050
2050
|
semantic: l = !1,
|
|
2051
|
-
...
|
|
2051
|
+
...d
|
|
2052
2052
|
}) => {
|
|
2053
|
-
const p = ya(s),
|
|
2053
|
+
const p = ya(s), u = g(
|
|
2054
2054
|
p,
|
|
2055
2055
|
a || o
|
|
2056
2056
|
);
|
|
@@ -2059,13 +2059,13 @@ const ya = (e) => {
|
|
|
2059
2059
|
"svg",
|
|
2060
2060
|
{
|
|
2061
2061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2062
|
-
className:
|
|
2062
|
+
className: u,
|
|
2063
2063
|
viewBox: r || n,
|
|
2064
2064
|
fill: t || "currentColor",
|
|
2065
2065
|
role: "img",
|
|
2066
2066
|
"aria-hidden": !l,
|
|
2067
2067
|
focusable: !1,
|
|
2068
|
-
...
|
|
2068
|
+
...d,
|
|
2069
2069
|
children: e
|
|
2070
2070
|
}
|
|
2071
2071
|
),
|
|
@@ -2202,10 +2202,10 @@ const va = (e) => {
|
|
|
2202
2202
|
direction: s = "row",
|
|
2203
2203
|
alignHorizontal: i = "normal",
|
|
2204
2204
|
alignVertical: l = "normal",
|
|
2205
|
-
spacing:
|
|
2205
|
+
spacing: d,
|
|
2206
2206
|
...p
|
|
2207
2207
|
}) => {
|
|
2208
|
-
const
|
|
2208
|
+
const u = {
|
|
2209
2209
|
flexDirection: s,
|
|
2210
2210
|
justifyContent: i,
|
|
2211
2211
|
alignItems: l,
|
|
@@ -2222,8 +2222,8 @@ const va = (e) => {
|
|
|
2222
2222
|
ka,
|
|
2223
2223
|
t,
|
|
2224
2224
|
"box-border flex flex-wrap"
|
|
2225
|
-
), h = { columnGap: r, rowGap: a }, f =
|
|
2226
|
-
return /* @__PURE__ */ c(f, { ...
|
|
2225
|
+
), h = { columnGap: r, rowGap: a }, f = d ? "div" : K.Fragment;
|
|
2226
|
+
return /* @__PURE__ */ c(f, { ...d ? { className: va(d) } : {}, children: /* @__PURE__ */ c("div", { className: m, style: u, ...p, children: /* @__PURE__ */ c(St.Provider, { value: h, children: e }) }) });
|
|
2227
2227
|
}, Ae = (e, t) => g({
|
|
2228
2228
|
"basis-1/12": e === 1 && !t,
|
|
2229
2229
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
@@ -2422,25 +2422,25 @@ function Pa(e, t) {
|
|
|
2422
2422
|
throw new TypeError("Expected a finite number or bigint");
|
|
2423
2423
|
t = { ...t }, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
|
|
2424
2424
|
let a = [];
|
|
2425
|
-
const n = (
|
|
2426
|
-
const
|
|
2427
|
-
return (Math.round(
|
|
2428
|
-
}, o = (
|
|
2429
|
-
if (!((a.length === 0 || !t.colonNotation) && Da(
|
|
2430
|
-
if (m = m ?? String(
|
|
2425
|
+
const n = (d, p) => {
|
|
2426
|
+
const u = Math.floor(d * 10 ** p + $a);
|
|
2427
|
+
return (Math.round(u) / 10 ** p).toFixed(p);
|
|
2428
|
+
}, o = (d, p, u, m) => {
|
|
2429
|
+
if (!((a.length === 0 || !t.colonNotation) && Da(d) && !(t.colonNotation && u === "m"))) {
|
|
2430
|
+
if (m = m ?? String(d), t.colonNotation) {
|
|
2431
2431
|
const h = m.includes(".") ? m.split(".")[0].length : m.length, f = a.length > 0 ? 2 : 1;
|
|
2432
2432
|
m = "0".repeat(Math.max(0, f - h)) + m;
|
|
2433
2433
|
} else
|
|
2434
|
-
m += t.verbose ? " " + Ma(p,
|
|
2434
|
+
m += t.verbose ? " " + Ma(p, d) : u;
|
|
2435
2435
|
a.push(m);
|
|
2436
2436
|
}
|
|
2437
2437
|
}, s = Oa(e), i = BigInt(s.days);
|
|
2438
2438
|
if (o(i / 365n, "year", "y"), o(i % 365n, "day", "d"), o(Number(s.hours), "hour", "h"), o(Number(s.minutes), "minute", "m"), t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
2439
|
-
const
|
|
2440
|
-
if (o(
|
|
2441
|
-
o(p, "millisecond", "ms"), o(
|
|
2439
|
+
const d = Number(s.seconds), p = Number(s.milliseconds), u = Number(s.microseconds), m = Number(s.nanoseconds);
|
|
2440
|
+
if (o(d, "second", "s"), t.formatSubMilliseconds)
|
|
2441
|
+
o(p, "millisecond", "ms"), o(u, "microsecond", "µs"), o(m, "nanosecond", "ns");
|
|
2442
2442
|
else {
|
|
2443
|
-
const h = p +
|
|
2443
|
+
const h = p + u / 1e3 + m / 1e6, f = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, b = h >= 1 ? Math.round(h) : Math.ceil(h), R = f ? h.toFixed(f) : b;
|
|
2444
2444
|
o(
|
|
2445
2445
|
Number.parseFloat(R),
|
|
2446
2446
|
"millisecond",
|
|
@@ -2449,7 +2449,7 @@ function Pa(e, t) {
|
|
|
2449
2449
|
);
|
|
2450
2450
|
}
|
|
2451
2451
|
} else {
|
|
2452
|
-
const
|
|
2452
|
+
const d = (r ? Number(e % La) : e) / 1e3 % 60, p = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, u = n(d, p), m = t.keepDecimalsOnWholeSeconds ? u : u.replace(/\.0+$/, "");
|
|
2453
2453
|
o(Number.parseFloat(m), "second", "s", m);
|
|
2454
2454
|
}
|
|
2455
2455
|
if (a.length === 0)
|
|
@@ -2560,7 +2560,7 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2560
2560
|
row1: /* @__PURE__ */ S("div", { children: [
|
|
2561
2561
|
Tt,
|
|
2562
2562
|
" v",
|
|
2563
|
-
"3.
|
|
2563
|
+
"3.1.1",
|
|
2564
2564
|
" - ",
|
|
2565
2565
|
Na,
|
|
2566
2566
|
At && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -2572,7 +2572,7 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2572
2572
|
_a
|
|
2573
2573
|
] })
|
|
2574
2574
|
}
|
|
2575
|
-
), Ba = Ze(() => import("./LazyHeader.
|
|
2575
|
+
), Ba = Ze(() => import("./LazyHeader.IkHWXL63.js")), Wa = () => {
|
|
2576
2576
|
const { isAuthenticated: e } = xe();
|
|
2577
2577
|
return /* @__PURE__ */ S(q, { children: [
|
|
2578
2578
|
e && /* @__PURE__ */ c(et, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Ba, {}) }),
|
|
@@ -2585,19 +2585,19 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2585
2585
|
] })
|
|
2586
2586
|
] });
|
|
2587
2587
|
}, ja = () => {
|
|
2588
|
-
const { login: e, logoutReason: t } = xe(), [r, a] = U(""), [n, o] = U(""), [s, i] = U(!0), [l,
|
|
2588
|
+
const { login: e, logoutReason: t } = xe(), [r, a] = U(""), [n, o] = U(""), [s, i] = U(!0), [l, d] = U({
|
|
2589
2589
|
username: "",
|
|
2590
2590
|
password: ""
|
|
2591
|
-
}), p = async (
|
|
2592
|
-
|
|
2591
|
+
}), p = async (u) => {
|
|
2592
|
+
u.preventDefault(), await e(
|
|
2593
2593
|
l.username,
|
|
2594
2594
|
l.password,
|
|
2595
2595
|
Q.CODE
|
|
2596
2596
|
) || (o(""), a("Invalid username or password"));
|
|
2597
2597
|
};
|
|
2598
2598
|
return z(() => {
|
|
2599
|
-
var
|
|
2600
|
-
(
|
|
2599
|
+
var u;
|
|
2600
|
+
(u = document.getElementById("logo")) == null || u.classList.add("fadeOut"), setTimeout(() => {
|
|
2601
2601
|
var m;
|
|
2602
2602
|
(m = document.getElementById("root")) == null || m.classList.replace("app-hidden", "fadeIn");
|
|
2603
2603
|
}, 500);
|
|
@@ -2619,10 +2619,10 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2619
2619
|
focusMode: "light",
|
|
2620
2620
|
name: "username",
|
|
2621
2621
|
label: "Username",
|
|
2622
|
-
onChange: (
|
|
2623
|
-
|
|
2622
|
+
onChange: (u) => {
|
|
2623
|
+
d({
|
|
2624
2624
|
...l,
|
|
2625
|
-
username:
|
|
2625
|
+
username: u.target.value
|
|
2626
2626
|
}), a("");
|
|
2627
2627
|
},
|
|
2628
2628
|
error: r !== ""
|
|
@@ -2641,10 +2641,10 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2641
2641
|
label: xa,
|
|
2642
2642
|
rightElement: /* @__PURE__ */ c(ft, { focusMode: "light", children: s ? /* @__PURE__ */ c(Ea, {}) : /* @__PURE__ */ c(wa, {}) }),
|
|
2643
2643
|
onMaskChange: i,
|
|
2644
|
-
onChange: (
|
|
2645
|
-
|
|
2644
|
+
onChange: (u) => {
|
|
2645
|
+
d({
|
|
2646
2646
|
...l,
|
|
2647
|
-
password:
|
|
2647
|
+
password: u.target.value
|
|
2648
2648
|
}), a("");
|
|
2649
2649
|
},
|
|
2650
2650
|
error: r !== "",
|
|
@@ -2666,7 +2666,7 @@ const qn = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2666
2666
|
] }),
|
|
2667
2667
|
/* @__PURE__ */ c(Ka, {})
|
|
2668
2668
|
] });
|
|
2669
|
-
}, Ga = Ze(() => import("./App.
|
|
2669
|
+
}, Ga = Ze(() => import("./App.cLV1bpwK.js").then((e) => e.App)), Va = ({ isComponent: e }) => {
|
|
2670
2670
|
const { isAuthenticated: t } = xe();
|
|
2671
2671
|
return t ? /* @__PURE__ */ c(et, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Ga, { isComponent: e }) }) : /* @__PURE__ */ c(ja, {});
|
|
2672
2672
|
}, Ja = ({
|
|
@@ -3,7 +3,7 @@ import A from "clsx";
|
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
|
|
5
5
|
import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as k, useFloating as P, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
|
|
6
|
-
import { S as j } from "./index.
|
|
6
|
+
import { S as j } from "./index.5k1aFm13.js";
|
|
7
7
|
const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
|
|
8
8
|
alert: null,
|
|
9
9
|
alertdialog: null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, Fragment as M, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import m from "clsx";
|
|
3
3
|
import w, { useContext as k, useSyncExternalStore as W, useCallback as S, useEffect as U } from "react";
|
|
4
|
-
import { A as F, i as P, f as q, S as j, MODEL_GPT4 as J } from "./index.
|
|
4
|
+
import { A as F, i as P, f as q, S as j, MODEL_GPT4 as J } from "./index.5k1aFm13.js";
|
|
5
5
|
const Q = (e) => {
|
|
6
6
|
let a = "";
|
|
7
7
|
if (typeof e == "number" || typeof e == "string")
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.5k1aFm13.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v3.
|
|
3
|
+
@sassysaint/client v3.1.1
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "3.
|
|
9
|
-
buildTime: "07/06/2024 03:
|
|
8
|
+
version: "3.1.1",
|
|
9
|
+
buildTime: "07/06/2024 03:45 PM EDT",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@versini/ui-styles": "1.9.
|
|
33
|
+
"@versini/ui-styles": "1.9.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@versini/ui-hooks": "4.0.
|
|
36
|
+
"@versini/ui-hooks": "4.0.1",
|
|
37
37
|
"clsx": "2.1.1",
|
|
38
|
-
"tailwindcss": "3.4.
|
|
38
|
+
"tailwindcss": "3.4.4"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": [
|
|
41
41
|
"**/*.css"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "7d824402182dfb92d46c89363b445c4d01d9aeb5"
|
|
44
44
|
}
|