@scbt-ecom/ui 0.7.26 → 0.7.28
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/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as
|
|
1
|
+
import { t as Jn, d as ri, e as ZS, f as xh, m as JS, h as Wb, k as US, l as KS, n as qS, o as QS, q as eI, i as tI, r as nI, s as rI, w as iI, v as oI, x as Hu, j as C, y as kt, S as Ch, A as Un, C as Nn, D as ps, E as Ze, F as _e, G as hs, J as sI, c as O, I as Fe, K as $b, M as aI, O as lI, Q as cI, R as uI, T as dI, U as fI, b as pI, u as hI, V as mI, H as gI, W as vI, _ as bI, X as yI, B as xI, a as gf, Y as kl, Z as Sc, $ as co, a0 as CI, a1 as uo, p as wI, g as SI, a2 as di, N as Mo, L as II, a3 as Xb, P as Yb, z as EI, a4 as AI, a5 as Co, a6 as TI, a7 as Zb, a8 as Ic, a9 as Ec, aa as kI, ab as MI, ac as OI, ad as PI, ae as RI } from "./utils-tailwind-D31aoXaK.js";
|
|
2
2
|
import * as I from "react";
|
|
3
|
-
import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as
|
|
4
|
-
import * as
|
|
3
|
+
import $, { useCallback as fe, createContext as qe, useContext as Me, useId as Fn, useEffect as Pe, Component as Jb, useLayoutEffect as Qi, useRef as de, useInsertionEffect as Ub, useMemo as we, forwardRef as fi, Fragment as Ht, createElement as Kb, Children as DI, isValidElement as qb, useState as Oe, useReducer as vf, useImperativeHandle as NI, useDebugValue as Qb, cloneElement as FI, useSyncExternalStore as VI, createRef as BI } from "react";
|
|
4
|
+
import * as Wu from "react-dom";
|
|
5
5
|
import LI, { createPortal as Ml, flushSync as Gr } from "react-dom";
|
|
6
6
|
function jI(t, e, n) {
|
|
7
7
|
const r = Jn(t, n == null ? void 0 : n.in);
|
|
@@ -710,7 +710,7 @@ function Ah(t, e, n) {
|
|
|
710
710
|
t,
|
|
711
711
|
e
|
|
712
712
|
);
|
|
713
|
-
return +
|
|
713
|
+
return +Hu(r, n) == +Hu(i, n);
|
|
714
714
|
}
|
|
715
715
|
function nE(t, e, n) {
|
|
716
716
|
const [r, i] = ms(
|
|
@@ -773,7 +773,7 @@ function oE(...t) {
|
|
|
773
773
|
};
|
|
774
774
|
return n.scopeName = e.scopeName, n;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function bf(t) {
|
|
777
777
|
const e = t + "CollectionProvider", [n, r] = iE(e), [i, o] = n(
|
|
778
778
|
e,
|
|
779
779
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -813,7 +813,7 @@ function vf(t) {
|
|
|
813
813
|
r
|
|
814
814
|
];
|
|
815
815
|
}
|
|
816
|
-
var
|
|
816
|
+
var yf = "Collapsible", [sE, ey] = Un(yf), [aE, xf] = sE(yf), ty = I.forwardRef(
|
|
817
817
|
(t, e) => {
|
|
818
818
|
const {
|
|
819
819
|
__scopeCollapsible: n,
|
|
@@ -838,7 +838,7 @@ var bf = "Collapsible", [sE, ey] = Un(bf), [aE, yf] = sE(bf), ty = I.forwardRef(
|
|
|
838
838
|
children: /* @__PURE__ */ C.jsx(
|
|
839
839
|
Ze.div,
|
|
840
840
|
{
|
|
841
|
-
"data-state":
|
|
841
|
+
"data-state": wf(l),
|
|
842
842
|
"data-disabled": o ? "" : void 0,
|
|
843
843
|
...a,
|
|
844
844
|
ref: e
|
|
@@ -848,17 +848,17 @@ var bf = "Collapsible", [sE, ey] = Un(bf), [aE, yf] = sE(bf), ty = I.forwardRef(
|
|
|
848
848
|
);
|
|
849
849
|
}
|
|
850
850
|
);
|
|
851
|
-
ty.displayName =
|
|
851
|
+
ty.displayName = yf;
|
|
852
852
|
var ny = "CollapsibleTrigger", ry = I.forwardRef(
|
|
853
853
|
(t, e) => {
|
|
854
|
-
const { __scopeCollapsible: n, ...r } = t, i =
|
|
854
|
+
const { __scopeCollapsible: n, ...r } = t, i = xf(ny, n);
|
|
855
855
|
return /* @__PURE__ */ C.jsx(
|
|
856
856
|
Ze.button,
|
|
857
857
|
{
|
|
858
858
|
type: "button",
|
|
859
859
|
"aria-controls": i.contentId,
|
|
860
860
|
"aria-expanded": i.open || !1,
|
|
861
|
-
"data-state":
|
|
861
|
+
"data-state": wf(i.open),
|
|
862
862
|
"data-disabled": i.disabled ? "" : void 0,
|
|
863
863
|
disabled: i.disabled,
|
|
864
864
|
...r,
|
|
@@ -869,15 +869,15 @@ var ny = "CollapsibleTrigger", ry = I.forwardRef(
|
|
|
869
869
|
}
|
|
870
870
|
);
|
|
871
871
|
ry.displayName = ny;
|
|
872
|
-
var
|
|
872
|
+
var Cf = "CollapsibleContent", iy = I.forwardRef(
|
|
873
873
|
(t, e) => {
|
|
874
|
-
const { forceMount: n, ...r } = t, i =
|
|
874
|
+
const { forceMount: n, ...r } = t, i = xf(Cf, t.__scopeCollapsible);
|
|
875
875
|
return /* @__PURE__ */ C.jsx(hs, { present: n || i.open, children: ({ present: o }) => /* @__PURE__ */ C.jsx(lE, { ...r, ref: e, present: o }) });
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
|
-
iy.displayName =
|
|
878
|
+
iy.displayName = Cf;
|
|
879
879
|
var lE = I.forwardRef((t, e) => {
|
|
880
|
-
const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s =
|
|
880
|
+
const { __scopeCollapsible: n, present: r, children: i, ...o } = t, s = xf(Cf, n), [a, l] = I.useState(r), c = I.useRef(null), u = kt(e, c), d = I.useRef(0), f = d.current, p = I.useRef(0), h = p.current, m = s.open || a, g = I.useRef(m), v = I.useRef();
|
|
881
881
|
return I.useEffect(() => {
|
|
882
882
|
const b = requestAnimationFrame(() => g.current = !1);
|
|
883
883
|
return () => cancelAnimationFrame(b);
|
|
@@ -894,7 +894,7 @@ var lE = I.forwardRef((t, e) => {
|
|
|
894
894
|
}, [s.open, r]), /* @__PURE__ */ C.jsx(
|
|
895
895
|
Ze.div,
|
|
896
896
|
{
|
|
897
|
-
"data-state":
|
|
897
|
+
"data-state": wf(s.open),
|
|
898
898
|
"data-disabled": s.disabled ? "" : void 0,
|
|
899
899
|
id: s.contentId,
|
|
900
900
|
hidden: !m,
|
|
@@ -909,7 +909,7 @@ var lE = I.forwardRef((t, e) => {
|
|
|
909
909
|
}
|
|
910
910
|
);
|
|
911
911
|
});
|
|
912
|
-
function
|
|
912
|
+
function wf(t) {
|
|
913
913
|
return t ? "open" : "closed";
|
|
914
914
|
}
|
|
915
915
|
var cE = ty, uE = ry, dE = iy, fE = I.createContext(void 0);
|
|
@@ -917,13 +917,13 @@ function gs(t) {
|
|
|
917
917
|
const e = I.useContext(fE);
|
|
918
918
|
return t || e || "ltr";
|
|
919
919
|
}
|
|
920
|
-
var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [
|
|
920
|
+
var Kn = "Accordion", pE = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Sf, hE, mE] = bf(Kn), [Ol, Y5] = Un(Kn, [
|
|
921
921
|
mE,
|
|
922
922
|
ey
|
|
923
|
-
]),
|
|
923
|
+
]), If = ey(), oy = $.forwardRef(
|
|
924
924
|
(t, e) => {
|
|
925
925
|
const { type: n, ...r } = t, i = r, o = r;
|
|
926
|
-
return /* @__PURE__ */ C.jsx(
|
|
926
|
+
return /* @__PURE__ */ C.jsx(Sf.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ C.jsx(yE, { ...o, ref: e }) : /* @__PURE__ */ C.jsx(bE, { ...i, ref: e }) });
|
|
927
927
|
}
|
|
928
928
|
);
|
|
929
929
|
oy.displayName = Kn;
|
|
@@ -1030,7 +1030,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
|
|
|
1030
1030
|
disabled: r,
|
|
1031
1031
|
direction: i,
|
|
1032
1032
|
orientation: o,
|
|
1033
|
-
children: /* @__PURE__ */ C.jsx(
|
|
1033
|
+
children: /* @__PURE__ */ C.jsx(Sf.Slot, { scope: n, children: /* @__PURE__ */ C.jsx(
|
|
1034
1034
|
Ze.div,
|
|
1035
1035
|
{
|
|
1036
1036
|
...s,
|
|
@@ -1042,9 +1042,9 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
|
|
|
1042
1042
|
}
|
|
1043
1043
|
);
|
|
1044
1044
|
}
|
|
1045
|
-
), ha = "AccordionItem", [CE,
|
|
1045
|
+
), ha = "AccordionItem", [CE, Ef] = Ol(ha), cy = $.forwardRef(
|
|
1046
1046
|
(t, e) => {
|
|
1047
|
-
const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a =
|
|
1047
|
+
const { __scopeAccordion: n, value: r, ...i } = t, o = Pl(ha, n), s = gE(ha, n), a = If(n), l = ps(), c = r && s.value.includes(r) || !1, u = o.disabled || t.disabled;
|
|
1048
1048
|
return /* @__PURE__ */ C.jsx(
|
|
1049
1049
|
CE,
|
|
1050
1050
|
{
|
|
@@ -1074,7 +1074,7 @@ var [sy, gE] = Ol(Kn), [ay, vE] = Ol(
|
|
|
1074
1074
|
cy.displayName = ha;
|
|
1075
1075
|
var uy = "AccordionHeader", dy = $.forwardRef(
|
|
1076
1076
|
(t, e) => {
|
|
1077
|
-
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o =
|
|
1077
|
+
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(uy, n);
|
|
1078
1078
|
return /* @__PURE__ */ C.jsx(
|
|
1079
1079
|
Ze.h3,
|
|
1080
1080
|
{
|
|
@@ -1088,10 +1088,10 @@ var uy = "AccordionHeader", dy = $.forwardRef(
|
|
|
1088
1088
|
}
|
|
1089
1089
|
);
|
|
1090
1090
|
dy.displayName = uy;
|
|
1091
|
-
var
|
|
1091
|
+
var $u = "AccordionTrigger", fy = $.forwardRef(
|
|
1092
1092
|
(t, e) => {
|
|
1093
|
-
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o =
|
|
1094
|
-
return /* @__PURE__ */ C.jsx(
|
|
1093
|
+
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef($u, n), s = vE($u, n), a = If(n);
|
|
1094
|
+
return /* @__PURE__ */ C.jsx(Sf.ItemSlot, { scope: n, children: /* @__PURE__ */ C.jsx(
|
|
1095
1095
|
uE,
|
|
1096
1096
|
{
|
|
1097
1097
|
"aria-disabled": o.open && !s.collapsible || void 0,
|
|
@@ -1104,10 +1104,10 @@ var Wu = "AccordionTrigger", fy = $.forwardRef(
|
|
|
1104
1104
|
) });
|
|
1105
1105
|
}
|
|
1106
1106
|
);
|
|
1107
|
-
fy.displayName =
|
|
1107
|
+
fy.displayName = $u;
|
|
1108
1108
|
var py = "AccordionContent", hy = $.forwardRef(
|
|
1109
1109
|
(t, e) => {
|
|
1110
|
-
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o =
|
|
1110
|
+
const { __scopeAccordion: n, ...r } = t, i = Pl(Kn, n), o = Ef(py, n), s = If(n);
|
|
1111
1111
|
return /* @__PURE__ */ C.jsx(
|
|
1112
1112
|
dE,
|
|
1113
1113
|
{
|
|
@@ -1194,7 +1194,7 @@ var kE = "VisuallyHidden", vy = I.forwardRef(
|
|
|
1194
1194
|
vy.displayName = kE;
|
|
1195
1195
|
var ME = vy, [Rl, Z5] = Un("Tooltip", [
|
|
1196
1196
|
$b
|
|
1197
|
-
]), Dl = $b(), by = "TooltipProvider", OE = 700,
|
|
1197
|
+
]), Dl = $b(), by = "TooltipProvider", OE = 700, Xu = "tooltip.open", [PE, Af] = Rl(by), yy = (t) => {
|
|
1198
1198
|
const {
|
|
1199
1199
|
__scopeTooltip: e,
|
|
1200
1200
|
delayDuration: n = OE,
|
|
@@ -1239,11 +1239,11 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
|
|
|
1239
1239
|
onOpenChange: o,
|
|
1240
1240
|
disableHoverableContent: s,
|
|
1241
1241
|
delayDuration: a
|
|
1242
|
-
} = t, l =
|
|
1242
|
+
} = t, l = Af(Nl, t.__scopeTooltip), c = Dl(e), [u, d] = I.useState(null), f = ps(), p = I.useRef(0), h = s ?? l.disableHoverableContent, m = a ?? l.delayDuration, g = I.useRef(!1), [v = !1, b] = Nn({
|
|
1243
1243
|
prop: r,
|
|
1244
1244
|
defaultProp: i,
|
|
1245
1245
|
onChange: (A) => {
|
|
1246
|
-
A ? (l.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
1246
|
+
A ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Xu))) : l.onClose(), o == null || o(A);
|
|
1247
1247
|
}
|
|
1248
1248
|
}), x = I.useMemo(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [v]), w = I.useCallback(() => {
|
|
1249
1249
|
window.clearTimeout(p.current), p.current = 0, g.current = !1, b(!0);
|
|
@@ -1279,9 +1279,9 @@ var Nl = "Tooltip", [RE, Fl] = Rl(Nl), xy = (t) => {
|
|
|
1279
1279
|
) });
|
|
1280
1280
|
};
|
|
1281
1281
|
xy.displayName = Nl;
|
|
1282
|
-
var
|
|
1282
|
+
var Yu = "TooltipTrigger", Cy = I.forwardRef(
|
|
1283
1283
|
(t, e) => {
|
|
1284
|
-
const { __scopeTooltip: n, ...r } = t, i = Fl(
|
|
1284
|
+
const { __scopeTooltip: n, ...r } = t, i = Fl(Yu, n), o = Af(Yu, n), s = Dl(n), a = I.useRef(null), l = kt(e, a, i.onTriggerChange), c = I.useRef(!1), u = I.useRef(!1), d = I.useCallback(() => c.current = !1, []);
|
|
1285
1285
|
return I.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ C.jsx(aI, { asChild: !0, ...s, children: /* @__PURE__ */ C.jsx(
|
|
1286
1286
|
Ze.button,
|
|
1287
1287
|
{
|
|
@@ -1307,7 +1307,7 @@ var Xu = "TooltipTrigger", Cy = I.forwardRef(
|
|
|
1307
1307
|
) });
|
|
1308
1308
|
}
|
|
1309
1309
|
);
|
|
1310
|
-
Cy.displayName =
|
|
1310
|
+
Cy.displayName = Yu;
|
|
1311
1311
|
var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
|
|
1312
1312
|
forceMount: void 0
|
|
1313
1313
|
}), zi = "TooltipContent", wy = I.forwardRef(
|
|
@@ -1316,7 +1316,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
|
|
|
1316
1316
|
return /* @__PURE__ */ C.jsx(hs, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ C.jsx(Sy, { side: i, ...o, ref: e }) : /* @__PURE__ */ C.jsx(FE, { side: i, ...o, ref: e }) });
|
|
1317
1317
|
}
|
|
1318
1318
|
), FE = I.forwardRef((t, e) => {
|
|
1319
|
-
const n = Fl(zi, t.__scopeTooltip), r =
|
|
1319
|
+
const n = Fl(zi, t.__scopeTooltip), r = Af(zi, t.__scopeTooltip), i = I.useRef(null), o = kt(e, i), [s, a] = I.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = I.useCallback(() => {
|
|
1320
1320
|
a(null), d(!1);
|
|
1321
1321
|
}, [d]), p = I.useCallback(
|
|
1322
1322
|
(h, m) => {
|
|
@@ -1351,7 +1351,7 @@ var DE = "TooltipPortal", [J5, NE] = Rl(DE, {
|
|
|
1351
1351
|
onPointerDownOutside: s,
|
|
1352
1352
|
...a
|
|
1353
1353
|
} = t, l = Fl(zi, n), c = Dl(n), { onClose: u } = l;
|
|
1354
|
-
return I.useEffect(() => (document.addEventListener(
|
|
1354
|
+
return I.useEffect(() => (document.addEventListener(Xu, u), () => document.removeEventListener(Xu, u)), [u]), I.useEffect(() => {
|
|
1355
1355
|
if (l.trigger) {
|
|
1356
1356
|
const d = (f) => {
|
|
1357
1357
|
const p = f.target;
|
|
@@ -1497,10 +1497,10 @@ function HE(t) {
|
|
|
1497
1497
|
return n.pop(), e.length === 1 && n.length === 1 && e[0].x === n[0].x && e[0].y === n[0].y ? e : e.concat(n);
|
|
1498
1498
|
}
|
|
1499
1499
|
var WE = yy, $E = xy, XE = Cy, YE = wy, ZE = Ey;
|
|
1500
|
-
const
|
|
1500
|
+
const Ac = (t = !1) => {
|
|
1501
1501
|
const [e, n] = I.useState(t);
|
|
1502
1502
|
return [e, (i) => n((o) => i ?? !o)];
|
|
1503
|
-
},
|
|
1503
|
+
}, Tf = (t, e) => {
|
|
1504
1504
|
const n = (r) => {
|
|
1505
1505
|
t.current && !t.current.contains(r.target) && e();
|
|
1506
1506
|
};
|
|
@@ -1517,7 +1517,7 @@ const Ay = (t) => typeof t == "object";
|
|
|
1517
1517
|
var it = (t) => !Dt(t) && !Array.isArray(t) && Ay(t) && !zr(t), Ty = (t) => it(t) && t.target ? vs(t.target) ? t.target.checked : t.target.value : t, JE = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, ky = (t, e) => t.has(JE(e)), UE = (t) => {
|
|
1518
1518
|
const e = t.constructor && t.constructor.prototype;
|
|
1519
1519
|
return it(e) && e.hasOwnProperty("isPrototypeOf");
|
|
1520
|
-
},
|
|
1520
|
+
}, kf = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
1521
1521
|
function Bt(t) {
|
|
1522
1522
|
let e;
|
|
1523
1523
|
const n = Array.isArray(t);
|
|
@@ -1525,7 +1525,7 @@ function Bt(t) {
|
|
|
1525
1525
|
e = new Date(t);
|
|
1526
1526
|
else if (t instanceof Set)
|
|
1527
1527
|
e = new Set(t);
|
|
1528
|
-
else if (!(
|
|
1528
|
+
else if (!(kf && (t instanceof Blob || t instanceof FileList)) && (n || it(t)))
|
|
1529
1529
|
if (e = n ? [] : {}, !n && !UE(t))
|
|
1530
1530
|
e = t;
|
|
1531
1531
|
else
|
|
@@ -1540,9 +1540,9 @@ var Vl = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Qe = (t) => t === voi
|
|
|
1540
1540
|
return n;
|
|
1541
1541
|
const r = Vl(e.split(/[,[\].]+?/)).reduce((i, o) => Dt(i) ? i : i[o], t);
|
|
1542
1542
|
return Qe(r) || r === t ? Qe(t[e]) ? n : t[e] : r;
|
|
1543
|
-
}, Qt = (t) => typeof t == "boolean",
|
|
1543
|
+
}, Qt = (t) => typeof t == "boolean", Mf = (t) => /^\w*$/.test(t), My = (t) => Vl(t.replace(/["|']|\]/g, "").split(/\.|\[/)), Ge = (t, e, n) => {
|
|
1544
1544
|
let r = -1;
|
|
1545
|
-
const i =
|
|
1545
|
+
const i = Mf(e) ? [e] : My(e), o = i.length, s = o - 1;
|
|
1546
1546
|
for (; ++r < o; ) {
|
|
1547
1547
|
const a = i[r];
|
|
1548
1548
|
let l = n;
|
|
@@ -1574,7 +1574,7 @@ const ma = {
|
|
|
1574
1574
|
pattern: "pattern",
|
|
1575
1575
|
required: "required",
|
|
1576
1576
|
validate: "validate"
|
|
1577
|
-
}, KE = $.createContext(null),
|
|
1577
|
+
}, KE = $.createContext(null), Bl = () => $.useContext(KE);
|
|
1578
1578
|
var Oy = (t, e, n, r = !0) => {
|
|
1579
1579
|
const i = {
|
|
1580
1580
|
defaultValues: e._defaultValues
|
|
@@ -1604,7 +1604,7 @@ function Of(t) {
|
|
|
1604
1604
|
}, [t.disabled]);
|
|
1605
1605
|
}
|
|
1606
1606
|
function qE(t) {
|
|
1607
|
-
const e =
|
|
1607
|
+
const e = Bl(), { control: n = e.control, disabled: r, name: i, exact: o } = t || {}, [s, a] = $.useState(n._formState), l = $.useRef(!0), c = $.useRef({
|
|
1608
1608
|
isDirty: !1,
|
|
1609
1609
|
isLoading: !1,
|
|
1610
1610
|
dirtyFields: !1,
|
|
@@ -1627,7 +1627,7 @@ function qE(t) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
var En = (t) => typeof t == "string", Dy = (t, e, n, r, i) => En(t) ? (r && e.watch.add(t), te(n, t, i)) : Array.isArray(t) ? t.map((o) => (r && e.watch.add(o), te(n, o))) : (r && (e.watchAll = !0), n);
|
|
1629
1629
|
function QE(t) {
|
|
1630
|
-
const e =
|
|
1630
|
+
const e = Bl(), { control: n = e.control, name: r, defaultValue: i, disabled: o, exact: s } = t || {}, a = $.useRef(r);
|
|
1631
1631
|
a.current = r, Of({
|
|
1632
1632
|
disabled: o,
|
|
1633
1633
|
subject: n._subjects.values,
|
|
@@ -1639,7 +1639,7 @@ function QE(t) {
|
|
|
1639
1639
|
return $.useEffect(() => n._removeUnmounted()), l;
|
|
1640
1640
|
}
|
|
1641
1641
|
function eA(t) {
|
|
1642
|
-
const e =
|
|
1642
|
+
const e = Bl(), { name: n, disabled: r, control: i = e.control, shouldUnregister: o } = t, s = ky(i._names.array, n), a = QE({
|
|
1643
1643
|
control: i,
|
|
1644
1644
|
name: n,
|
|
1645
1645
|
defaultValue: te(i._formValues, n, te(i._defaultValues, n, t.defaultValue)),
|
|
@@ -1761,7 +1761,7 @@ var tA = (t, e, n) => {
|
|
|
1761
1761
|
const r = Oo(te(t, n));
|
|
1762
1762
|
return Ge(r, "root", e[n]), Ge(t, n, r), t;
|
|
1763
1763
|
}, Pf = (t) => t.type === "file", In = (t) => typeof t == "function", ga = (t) => {
|
|
1764
|
-
if (!
|
|
1764
|
+
if (!kf)
|
|
1765
1765
|
return !1;
|
|
1766
1766
|
const e = t ? t.ownerDocument : 0;
|
|
1767
1767
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
@@ -1897,10 +1897,10 @@ function rA(t) {
|
|
|
1897
1897
|
return !0;
|
|
1898
1898
|
}
|
|
1899
1899
|
function ct(t, e) {
|
|
1900
|
-
const n = Array.isArray(e) ? e :
|
|
1900
|
+
const n = Array.isArray(e) ? e : Mf(e) ? [e] : My(e), r = n.length === 1 ? t : nA(t, n), i = n.length - 1, o = n[i];
|
|
1901
1901
|
return r && delete r[o], i !== 0 && (it(r) && Lt(r) || Array.isArray(r) && rA(r)) && ct(t, n.slice(0, -1)), t;
|
|
1902
1902
|
}
|
|
1903
|
-
var
|
|
1903
|
+
var Tc = () => {
|
|
1904
1904
|
let t = [];
|
|
1905
1905
|
return {
|
|
1906
1906
|
get observers() {
|
|
@@ -1919,9 +1919,9 @@ var Ac = () => {
|
|
|
1919
1919
|
t = [];
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
|
-
},
|
|
1922
|
+
}, Zu = (t) => Dt(t) || !Ay(t);
|
|
1923
1923
|
function ar(t, e) {
|
|
1924
|
-
if (
|
|
1924
|
+
if (Zu(t) || Zu(e))
|
|
1925
1925
|
return t === e;
|
|
1926
1926
|
if (zr(t) && zr(e))
|
|
1927
1927
|
return t.getTime() === e.getTime();
|
|
@@ -1940,7 +1940,7 @@ function ar(t, e) {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
return !0;
|
|
1942
1942
|
}
|
|
1943
|
-
var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t),
|
|
1943
|
+
var By = (t) => t.type === "select-multiple", iA = (t) => Rf(t) || vs(t), kc = (t) => ga(t) && t.isConnected, Ly = (t) => {
|
|
1944
1944
|
for (const e in t)
|
|
1945
1945
|
if (In(t[e]))
|
|
1946
1946
|
return !0;
|
|
@@ -1957,11 +1957,11 @@ function jy(t, e, n) {
|
|
|
1957
1957
|
const r = Array.isArray(t);
|
|
1958
1958
|
if (it(t) || r)
|
|
1959
1959
|
for (const i in t)
|
|
1960
|
-
Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) ||
|
|
1960
|
+
Array.isArray(t[i]) || it(t[i]) && !Ly(t[i]) ? Qe(e) || Zu(n[i]) ? n[i] = Array.isArray(t[i]) ? ba(t[i], []) : { ...ba(t[i]) } : jy(t[i], Dt(e) ? {} : e[i], n[i]) : n[i] = !ar(t[i], e[i]);
|
|
1961
1961
|
return n;
|
|
1962
1962
|
}
|
|
1963
1963
|
var fo = (t, e) => jy(t, e, ba(e)), Gy = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: r }) => Qe(t) ? t : e ? t === "" ? NaN : t && +t : n && En(t) ? new Date(t) : r ? r(t) : t;
|
|
1964
|
-
function
|
|
1964
|
+
function Mc(t) {
|
|
1965
1965
|
const e = t.ref;
|
|
1966
1966
|
if (!(t.refs ? t.refs.every((n) => n.disabled) : e.disabled))
|
|
1967
1967
|
return Pf(e) ? e.files : Rf(e) ? Vy(t.refs).value : By(e) ? [...e.selectedOptions].map(({ value: n }) => n) : vs(e) ? Fy(t.refs).value : Gy(Qe(e.value) ? t.ref.value : e.value, t);
|
|
@@ -1983,7 +1983,7 @@ const Nh = "AsyncFunction";
|
|
|
1983
1983
|
var sA = (t) => (!t || !t.validate) && !!(In(t.validate) && t.validate.constructor.name === Nh || it(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Nh)), aA = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
|
|
1984
1984
|
function Fh(t, e, n) {
|
|
1985
1985
|
const r = te(t, n);
|
|
1986
|
-
if (r ||
|
|
1986
|
+
if (r || Mf(n))
|
|
1987
1987
|
return {
|
|
1988
1988
|
error: r,
|
|
1989
1989
|
name: n
|
|
@@ -2047,9 +2047,9 @@ function dA(t = {}) {
|
|
|
2047
2047
|
isValid: !1,
|
|
2048
2048
|
errors: !1
|
|
2049
2049
|
}, d = {
|
|
2050
|
-
values:
|
|
2051
|
-
array:
|
|
2052
|
-
state:
|
|
2050
|
+
values: Tc(),
|
|
2051
|
+
array: Tc(),
|
|
2052
|
+
state: Tc()
|
|
2053
2053
|
}, f = Th(e.mode), p = Th(e.reValidateMode), h = e.criteriaMode === ln.all, m = (S) => (k) => {
|
|
2054
2054
|
clearTimeout(c), c = setTimeout(S, k);
|
|
2055
2055
|
}, g = async (S) => {
|
|
@@ -2102,7 +2102,7 @@ function dA(t = {}) {
|
|
|
2102
2102
|
const W = te(r, S);
|
|
2103
2103
|
if (W) {
|
|
2104
2104
|
const j = te(o, S, Qe(M) ? te(i, S) : M);
|
|
2105
|
-
Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j :
|
|
2105
|
+
Qe(j) || q && q.defaultChecked || k ? Ge(o, S, k ? j : Mc(W._f)) : Y(S, j), s.mount && g();
|
|
2106
2106
|
}
|
|
2107
2107
|
}, E = (S, k, M, q, W) => {
|
|
2108
2108
|
let j = !1, N = !1;
|
|
@@ -2173,7 +2173,7 @@ function dA(t = {}) {
|
|
|
2173
2173
|
}, X = () => {
|
|
2174
2174
|
for (const S of a.unMount) {
|
|
2175
2175
|
const k = te(r, S);
|
|
2176
|
-
k && (k._f.refs ? k._f.refs.every((M) => !
|
|
2176
|
+
k && (k._f.refs ? k._f.refs.every((M) => !kc(M)) : !kc(k._f.ref)) && ne(S);
|
|
2177
2177
|
}
|
|
2178
2178
|
a.unMount = /* @__PURE__ */ new Set();
|
|
2179
2179
|
}, z = (S, k) => !e.disabled && (S && k && Ge(o, S, k), !ar(_(), i)), J = (S, k, M) => Dy(S, a, {
|
|
@@ -2211,7 +2211,7 @@ function dA(t = {}) {
|
|
|
2211
2211
|
s.mount = !0;
|
|
2212
2212
|
const k = S.target;
|
|
2213
2213
|
let M = k.name, q = !0;
|
|
2214
|
-
const W = te(r, M), j = () => k.type ?
|
|
2214
|
+
const W = te(r, M), j = () => k.type ? Mc(W._f) : Ty(S), N = (U) => {
|
|
2215
2215
|
q = Number.isNaN(U) || zr(U) && isNaN(U.getTime()) || ar(U, te(o, M, U));
|
|
2216
2216
|
};
|
|
2217
2217
|
if (W) {
|
|
@@ -2292,7 +2292,7 @@ function dA(t = {}) {
|
|
|
2292
2292
|
}), !k.keepIsValid && g();
|
|
2293
2293
|
}, ie = ({ disabled: S, name: k, field: M, fields: q, value: W }) => {
|
|
2294
2294
|
if (Qt(S) && s.mount || S) {
|
|
2295
|
-
const j = S ? void 0 : Qe(W) ?
|
|
2295
|
+
const j = S ? void 0 : Qe(W) ? Mc(M ? M._f : te(q, k)._f) : W;
|
|
2296
2296
|
Ge(o, k, j), E(k, j, !1, !1, !0);
|
|
2297
2297
|
}
|
|
2298
2298
|
}, ae = (S, k = {}) => {
|
|
@@ -2335,7 +2335,7 @@ function dA(t = {}) {
|
|
|
2335
2335
|
...M._f,
|
|
2336
2336
|
...N ? {
|
|
2337
2337
|
refs: [
|
|
2338
|
-
...U.filter(
|
|
2338
|
+
...U.filter(kc),
|
|
2339
2339
|
j,
|
|
2340
2340
|
...Array.isArray(te(i, S)) ? [{}] : []
|
|
2341
2341
|
],
|
|
@@ -2400,7 +2400,7 @@ function dA(t = {}) {
|
|
|
2400
2400
|
for (const U of Array.from(N))
|
|
2401
2401
|
te(n.dirtyFields, U) ? Ge(j, U, te(o, U)) : B(U, te(j, U));
|
|
2402
2402
|
} else {
|
|
2403
|
-
if (
|
|
2403
|
+
if (kf && Qe(S))
|
|
2404
2404
|
for (const N of a.mount) {
|
|
2405
2405
|
const U = te(r, N);
|
|
2406
2406
|
if (U && U._f) {
|
|
@@ -2670,7 +2670,7 @@ const U5 = ({ schema: t, ...e }) => fA({
|
|
|
2670
2670
|
...l
|
|
2671
2671
|
}) => {
|
|
2672
2672
|
const [c, u] = I.useState(!1), d = I.useRef(null), { isMobile: f } = hI();
|
|
2673
|
-
return
|
|
2673
|
+
return Tf(d, () => u(!1)), /* @__PURE__ */ C.jsx(WE, { children: /* @__PURE__ */ C.jsx($E, { open: c, onOpenChange: u, defaultOpen: s, delayDuration: n, children: /* @__PURE__ */ C.jsxs("div", { onClick: () => u(!!f), children: [
|
|
2674
2674
|
/* @__PURE__ */ C.jsx(XE, { asChild: !0, className: O("cursor-pointer", a == null ? void 0 : a.trigger), children: t }),
|
|
2675
2675
|
/* @__PURE__ */ C.jsxs(
|
|
2676
2676
|
YE,
|
|
@@ -2740,13 +2740,13 @@ function CA(...t) {
|
|
|
2740
2740
|
};
|
|
2741
2741
|
return n.scopeName = e.scopeName, n;
|
|
2742
2742
|
}
|
|
2743
|
-
var
|
|
2744
|
-
|
|
2743
|
+
var Oc = "rovingFocusGroup.onEntryFocus", wA = { bubbles: !1, cancelable: !0 }, Ll = "RovingFocusGroup", [Ju, Hy, SA] = bf(Ll), [IA, jl] = xA(
|
|
2744
|
+
Ll,
|
|
2745
2745
|
[SA]
|
|
2746
|
-
), [EA, AA] = IA(
|
|
2747
|
-
(t, e) => /* @__PURE__ */ C.jsx(
|
|
2746
|
+
), [EA, AA] = IA(Ll), Wy = I.forwardRef(
|
|
2747
|
+
(t, e) => /* @__PURE__ */ C.jsx(Ju.Provider, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(Ju.Slot, { scope: t.__scopeRovingFocusGroup, children: /* @__PURE__ */ C.jsx(TA, { ...t, ref: e }) }) })
|
|
2748
2748
|
);
|
|
2749
|
-
Wy.displayName =
|
|
2749
|
+
Wy.displayName = Ll;
|
|
2750
2750
|
var TA = I.forwardRef((t, e) => {
|
|
2751
2751
|
const {
|
|
2752
2752
|
__scopeRovingFocusGroup: n,
|
|
@@ -2767,7 +2767,7 @@ var TA = I.forwardRef((t, e) => {
|
|
|
2767
2767
|
return I.useEffect(() => {
|
|
2768
2768
|
const T = f.current;
|
|
2769
2769
|
if (T)
|
|
2770
|
-
return T.addEventListener(
|
|
2770
|
+
return T.addEventListener(Oc, x), () => T.removeEventListener(Oc, x);
|
|
2771
2771
|
}, [x]), /* @__PURE__ */ C.jsx(
|
|
2772
2772
|
EA,
|
|
2773
2773
|
{
|
|
@@ -2803,7 +2803,7 @@ var TA = I.forwardRef((t, e) => {
|
|
|
2803
2803
|
onFocus: _e(t.onFocus, (T) => {
|
|
2804
2804
|
const R = !y.current;
|
|
2805
2805
|
if (T.target === T.currentTarget && R && !v) {
|
|
2806
|
-
const G = new CustomEvent(
|
|
2806
|
+
const G = new CustomEvent(Oc, wA);
|
|
2807
2807
|
if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
|
|
2808
2808
|
const X = w().filter((F) => F.focusable), z = X.find((F) => F.active), J = X.find((F) => F.id === m), Y = [z, J, ...X].filter(
|
|
2809
2809
|
Boolean
|
|
@@ -2831,7 +2831,7 @@ var TA = I.forwardRef((t, e) => {
|
|
|
2831
2831
|
if (r)
|
|
2832
2832
|
return f(), () => p();
|
|
2833
2833
|
}, [r, f, p]), /* @__PURE__ */ C.jsx(
|
|
2834
|
-
|
|
2834
|
+
Ju.ItemSlot,
|
|
2835
2835
|
{
|
|
2836
2836
|
scope: n,
|
|
2837
2837
|
id: l,
|
|
@@ -2902,8 +2902,8 @@ function PA(t, e) {
|
|
|
2902
2902
|
return t.map((n, r) => t[(e + r) % t.length]);
|
|
2903
2903
|
}
|
|
2904
2904
|
var Zy = Wy, Jy = Xy, Df = "Tabs", [RA, q5] = Un(Df, [
|
|
2905
|
-
|
|
2906
|
-
]), Uy =
|
|
2905
|
+
jl
|
|
2906
|
+
]), Uy = jl(), [DA, Nf] = RA(Df), Ky = I.forwardRef(
|
|
2907
2907
|
(t, e) => {
|
|
2908
2908
|
const {
|
|
2909
2909
|
__scopeTabs: n,
|
|
@@ -3070,13 +3070,13 @@ const Q5 = ({ renderContent: t, defaultActiveTabId: e = "1", value: n, onChangeT
|
|
|
3070
3070
|
}
|
|
3071
3071
|
);
|
|
3072
3072
|
}, Lh = /* @__PURE__ */ new Set();
|
|
3073
|
-
function
|
|
3073
|
+
function Gl(t, e, n) {
|
|
3074
3074
|
t || Lh.has(e) || (console.warn(e), Lh.add(e));
|
|
3075
3075
|
}
|
|
3076
3076
|
function BA(t) {
|
|
3077
3077
|
if (typeof Proxy > "u")
|
|
3078
3078
|
return t;
|
|
3079
|
-
const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" &&
|
|
3079
|
+
const e = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Gl(!1, "motion() is deprecated. Use motion.create() instead."), t(...r));
|
|
3080
3080
|
return new Proxy(n, {
|
|
3081
3081
|
/**
|
|
3082
3082
|
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
@@ -3086,10 +3086,10 @@ function BA(t) {
|
|
|
3086
3086
|
get: (r, i) => i === "create" ? t : (e.has(i) || e.set(i, t(i)), e.get(i))
|
|
3087
3087
|
});
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function zl(t) {
|
|
3090
3090
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
3091
3091
|
}
|
|
3092
|
-
const
|
|
3092
|
+
const Uu = (t) => Array.isArray(t);
|
|
3093
3093
|
function s0(t, e) {
|
|
3094
3094
|
if (!Array.isArray(e))
|
|
3095
3095
|
return !1;
|
|
@@ -3121,7 +3121,7 @@ function Ff(t, e, n, r) {
|
|
|
3121
3121
|
}
|
|
3122
3122
|
return e;
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3124
|
+
function _l(t, e, n) {
|
|
3125
3125
|
const r = t.getProps();
|
|
3126
3126
|
return Ff(r, e, n !== void 0 ? n : r.custom, t);
|
|
3127
3127
|
}
|
|
@@ -3176,7 +3176,7 @@ const HA = {
|
|
|
3176
3176
|
skipAnimations: !1,
|
|
3177
3177
|
useManualTiming: !1
|
|
3178
3178
|
}, WA = (t) => t !== null;
|
|
3179
|
-
function
|
|
3179
|
+
function Hl(t, { repeat: e, repeatType: n = "loop" }, r) {
|
|
3180
3180
|
const i = t.filter(WA), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
|
|
3181
3181
|
return !o || r === void 0 ? i[o] : r;
|
|
3182
3182
|
}
|
|
@@ -3253,7 +3253,7 @@ function a0(t, e) {
|
|
|
3253
3253
|
s[Ps[b]].cancel(v);
|
|
3254
3254
|
}, state: i, steps: s };
|
|
3255
3255
|
}
|
|
3256
|
-
const { schedule: He, cancel: xr, state: gt, steps:
|
|
3256
|
+
const { schedule: He, cancel: xr, state: gt, steps: Pc } = a0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : xt, !0), l0 = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, YA = 1e-7, ZA = 12;
|
|
3257
3257
|
function JA(t, e, n, r, i) {
|
|
3258
3258
|
let o, s, a = 0;
|
|
3259
3259
|
do
|
|
@@ -3367,9 +3367,9 @@ const C0 = (t) => (e) => e.test(t), lT = {
|
|
|
3367
3367
|
test: (t) => t === "auto",
|
|
3368
3368
|
parse: (t) => t
|
|
3369
3369
|
}, w0 = [to, ve, kn, nr, rT, nT, lT], Wh = (t) => w0.find(C0(t)), Jr = /* @__PURE__ */ new Set();
|
|
3370
|
-
let
|
|
3370
|
+
let Ku = !1, qu = !1;
|
|
3371
3371
|
function S0() {
|
|
3372
|
-
if (
|
|
3372
|
+
if (qu) {
|
|
3373
3373
|
const t = Array.from(Jr).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
3374
3374
|
e.forEach((r) => {
|
|
3375
3375
|
const i = aT(r);
|
|
@@ -3385,11 +3385,11 @@ function S0() {
|
|
|
3385
3385
|
r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
|
|
3386
3386
|
});
|
|
3387
3387
|
}
|
|
3388
|
-
|
|
3388
|
+
qu = !1, Ku = !1, Jr.forEach((t) => t.complete()), Jr.clear();
|
|
3389
3389
|
}
|
|
3390
3390
|
function I0() {
|
|
3391
3391
|
Jr.forEach((t) => {
|
|
3392
|
-
t.readKeyframes(), t.needsMeasurement && (
|
|
3392
|
+
t.readKeyframes(), t.needsMeasurement && (qu = !0);
|
|
3393
3393
|
});
|
|
3394
3394
|
}
|
|
3395
3395
|
function cT() {
|
|
@@ -3400,7 +3400,7 @@ class _f {
|
|
|
3400
3400
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = s;
|
|
3401
3401
|
}
|
|
3402
3402
|
scheduleResolve() {
|
|
3403
|
-
this.isScheduled = !0, this.isAsync ? (Jr.add(this),
|
|
3403
|
+
this.isScheduled = !0, this.isAsync ? (Jr.add(this), Ku || (Ku = !0, He.read(I0), He.resolveKeyframes(S0))) : (this.readKeyframes(), this.complete());
|
|
3404
3404
|
}
|
|
3405
3405
|
readKeyframes() {
|
|
3406
3406
|
const { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
|
|
@@ -3450,13 +3450,13 @@ const dT = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
3450
3450
|
[n]: parseFloat(s),
|
|
3451
3451
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
3452
3452
|
};
|
|
3453
|
-
}, fT = (t) => Cr(0, 255, t),
|
|
3453
|
+
}, fT = (t) => Cr(0, 255, t), Rc = {
|
|
3454
3454
|
...to,
|
|
3455
3455
|
transform: (t) => Math.round(fT(t))
|
|
3456
3456
|
}, _r = {
|
|
3457
3457
|
test: /* @__PURE__ */ Wf("rgb", "red"),
|
|
3458
3458
|
parse: /* @__PURE__ */ E0("red", "green", "blue"),
|
|
3459
|
-
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
3459
|
+
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Rc.transform(t) + ", " + Rc.transform(e) + ", " + Rc.transform(n) + ", " + Ro($o.transform(r)) + ")"
|
|
3460
3460
|
};
|
|
3461
3461
|
function pT(t) {
|
|
3462
3462
|
let e = "", n = "", r = "", i = "";
|
|
@@ -3467,7 +3467,7 @@ function pT(t) {
|
|
|
3467
3467
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
3470
|
-
const
|
|
3470
|
+
const Qu = {
|
|
3471
3471
|
test: /* @__PURE__ */ Wf("#"),
|
|
3472
3472
|
parse: pT,
|
|
3473
3473
|
transform: _r.transform
|
|
@@ -3476,8 +3476,8 @@ const qu = {
|
|
|
3476
3476
|
parse: /* @__PURE__ */ E0("hue", "saturation", "lightness"),
|
|
3477
3477
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + kn.transform(Ro(e)) + ", " + kn.transform(Ro(n)) + ", " + Ro($o.transform(r)) + ")"
|
|
3478
3478
|
}, It = {
|
|
3479
|
-
test: (t) => _r.test(t) ||
|
|
3480
|
-
parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) :
|
|
3479
|
+
test: (t) => _r.test(t) || Qu.test(t) || Mi.test(t),
|
|
3480
|
+
parse: (t) => _r.test(t) ? _r.parse(t) : Mi.test(t) ? Mi.parse(t) : Qu.parse(t),
|
|
3481
3481
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? _r.transform(t) : Mi.transform(t)
|
|
3482
3482
|
}, hT = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
3483
3483
|
function mT(t) {
|
|
@@ -3532,7 +3532,7 @@ function wT(t) {
|
|
|
3532
3532
|
let o = CT.has(e) ? 1 : 0;
|
|
3533
3533
|
return r !== n && (o *= 100), e + "(" + o + i + ")";
|
|
3534
3534
|
}
|
|
3535
|
-
const ST = /\b([a-z-]*)\(.*?\)/gu,
|
|
3535
|
+
const ST = /\b([a-z-]*)\(.*?\)/gu, ed = {
|
|
3536
3536
|
...wr,
|
|
3537
3537
|
getAnimatableNone: (t) => {
|
|
3538
3538
|
const e = t.match(ST);
|
|
@@ -3625,12 +3625,12 @@ const ST = /\b([a-z-]*)\(.*?\)/gu, Qu = {
|
|
|
3625
3625
|
borderRightColor: It,
|
|
3626
3626
|
borderBottomColor: It,
|
|
3627
3627
|
borderLeftColor: It,
|
|
3628
|
-
filter:
|
|
3629
|
-
WebkitFilter:
|
|
3628
|
+
filter: ed,
|
|
3629
|
+
WebkitFilter: ed
|
|
3630
3630
|
}, Xf = (t) => AT[t];
|
|
3631
3631
|
function O0(t, e) {
|
|
3632
3632
|
let n = Xf(t);
|
|
3633
|
-
return n !==
|
|
3633
|
+
return n !== ed && (n = wr), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
3634
3634
|
}
|
|
3635
3635
|
const TT = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
3636
3636
|
function kT(t, e, n) {
|
|
@@ -3776,7 +3776,7 @@ class R0 {
|
|
|
3776
3776
|
if (s)
|
|
3777
3777
|
this.options.duration = 0;
|
|
3778
3778
|
else {
|
|
3779
|
-
l == null || l(
|
|
3779
|
+
l == null || l(Hl(e, this.options, n)), a == null || a(), this.resolveFinishedPromise();
|
|
3780
3780
|
return;
|
|
3781
3781
|
}
|
|
3782
3782
|
const u = this.initPlayback(e, n);
|
|
@@ -3813,20 +3813,20 @@ function N0(t, e, n) {
|
|
|
3813
3813
|
const r = Math.max(e - DT, 0);
|
|
3814
3814
|
return D0(n - t(r), e - r);
|
|
3815
3815
|
}
|
|
3816
|
-
const
|
|
3816
|
+
const Dc = 1e-3, NT = 0.01, Zh = 10, FT = 0.05, VT = 1;
|
|
3817
3817
|
function BT({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
3818
3818
|
let i, o;
|
|
3819
3819
|
eo(t <= Tn(Zh), "Spring duration must be 10 seconds or less");
|
|
3820
3820
|
let s = 1 - e;
|
|
3821
3821
|
s = Cr(FT, VT, s), t = Cr(NT, Zh, _n(t)), s < 1 ? (i = (c) => {
|
|
3822
|
-
const u = c * s, d = u * t, f = u - n, p =
|
|
3823
|
-
return
|
|
3822
|
+
const u = c * s, d = u * t, f = u - n, p = td(c, s), h = Math.exp(-d);
|
|
3823
|
+
return Dc - f / p * h;
|
|
3824
3824
|
}, o = (c) => {
|
|
3825
|
-
const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m =
|
|
3826
|
-
return (-i(c) +
|
|
3825
|
+
const d = c * s * t, f = d * n + n, p = Math.pow(s, 2) * Math.pow(c, 2) * t, h = Math.exp(-d), m = td(Math.pow(c, 2), s);
|
|
3826
|
+
return (-i(c) + Dc > 0 ? -1 : 1) * ((f - p) * h) / m;
|
|
3827
3827
|
}) : (i = (c) => {
|
|
3828
3828
|
const u = Math.exp(-c * t), d = (c - n) * t + 1;
|
|
3829
|
-
return -
|
|
3829
|
+
return -Dc + u * d;
|
|
3830
3830
|
}, o = (c) => {
|
|
3831
3831
|
const u = Math.exp(-c * t), d = (n - c) * (t * t);
|
|
3832
3832
|
return u * d;
|
|
@@ -3854,7 +3854,7 @@ function jT(t, e, n) {
|
|
|
3854
3854
|
r = r - t(r) / e(r);
|
|
3855
3855
|
return r;
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function td(t, e) {
|
|
3858
3858
|
return t * Math.sqrt(1 - e * e);
|
|
3859
3859
|
}
|
|
3860
3860
|
const GT = ["duration", "bounce"], zT = ["stiffness", "damping", "mass"];
|
|
@@ -3888,7 +3888,7 @@ function F0({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
|
|
|
3888
3888
|
n || (n = v ? 0.01 : 2), e || (e = v ? 5e-3 : 0.5);
|
|
3889
3889
|
let b;
|
|
3890
3890
|
if (h < 1) {
|
|
3891
|
-
const x =
|
|
3891
|
+
const x = td(g, h);
|
|
3892
3892
|
b = (w) => {
|
|
3893
3893
|
const y = Math.exp(-h * g * w);
|
|
3894
3894
|
return o - y * ((p + h * g * m) / x * Math.sin(x * w) + m * Math.cos(x * w));
|
|
@@ -3974,7 +3974,7 @@ const HT = /* @__PURE__ */ ys(0.42, 0, 1, 1), WT = /* @__PURE__ */ ys(0, 0, 0.58
|
|
|
3974
3974
|
const r = e - t;
|
|
3975
3975
|
return r === 0 ? 1 : (n - t) / r;
|
|
3976
3976
|
}, Ue = (t, e, n) => t + (e - t) * n;
|
|
3977
|
-
function
|
|
3977
|
+
function Nc(t, e, n) {
|
|
3978
3978
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
3979
3979
|
}
|
|
3980
3980
|
function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
@@ -3984,7 +3984,7 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
3984
3984
|
i = o = s = n;
|
|
3985
3985
|
else {
|
|
3986
3986
|
const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
|
|
3987
|
-
i =
|
|
3987
|
+
i = Nc(l, a, t + 1 / 3), o = Nc(l, a, t), s = Nc(l, a, t - 1 / 3);
|
|
3988
3988
|
}
|
|
3989
3989
|
return {
|
|
3990
3990
|
red: Math.round(i * 255),
|
|
@@ -3996,10 +3996,10 @@ function YT({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
3996
3996
|
function ya(t, e) {
|
|
3997
3997
|
return (n) => n > 0 ? e : t;
|
|
3998
3998
|
}
|
|
3999
|
-
const
|
|
3999
|
+
const Fc = (t, e, n) => {
|
|
4000
4000
|
const r = t * t, i = n * (e * e - r) + r;
|
|
4001
4001
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
4002
|
-
}, ZT = [
|
|
4002
|
+
}, ZT = [Qu, _r, Mi], JT = (t) => ZT.find((e) => e.test(t));
|
|
4003
4003
|
function Qh(t) {
|
|
4004
4004
|
const e = JT(t);
|
|
4005
4005
|
if (eo(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
@@ -4012,10 +4012,10 @@ const em = (t, e) => {
|
|
|
4012
4012
|
if (!n || !r)
|
|
4013
4013
|
return ya(t, e);
|
|
4014
4014
|
const i = { ...n };
|
|
4015
|
-
return (o) => (i.red =
|
|
4016
|
-
},
|
|
4015
|
+
return (o) => (i.red = Fc(n.red, r.red, o), i.green = Fc(n.green, r.green, o), i.blue = Fc(n.blue, r.blue, o), i.alpha = Ue(n.alpha, r.alpha, o), _r.transform(i));
|
|
4016
|
+
}, nd = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
4017
4017
|
function UT(t, e) {
|
|
4018
|
-
return
|
|
4018
|
+
return nd.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
4019
4019
|
}
|
|
4020
4020
|
function KT(t, e) {
|
|
4021
4021
|
return (n) => Ue(t, e, n);
|
|
@@ -4052,7 +4052,7 @@ function QT(t, e) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
const ek = (t, e) => {
|
|
4054
4054
|
const n = wr.createTransformer(e), r = Xo(t), i = Xo(e);
|
|
4055
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ?
|
|
4055
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? nd.has(t) && !i.values.length || nd.has(e) && !r.values.length ? UT(t, e) : Hn(B0(QT(r, i), i.values), n) : (eo(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ya(t, e));
|
|
4056
4056
|
};
|
|
4057
4057
|
function L0(t, e, n) {
|
|
4058
4058
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? Ue(t, e, n) : Jf(t)(t, e);
|
|
@@ -4210,7 +4210,7 @@ class Uf extends R0 {
|
|
|
4210
4210
|
let { done: E } = y;
|
|
4211
4211
|
!b && c !== null && (E = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
|
|
4212
4212
|
const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
|
|
4213
|
-
return A && i !== void 0 && (y.value =
|
|
4213
|
+
return A && i !== void 0 && (y.value = Hl(l, this.options, i)), g && g(y.value), A && this.finish(), y;
|
|
4214
4214
|
}
|
|
4215
4215
|
get duration() {
|
|
4216
4216
|
const { resolved: e } = this;
|
|
@@ -4308,9 +4308,9 @@ const Ca = /* @__PURE__ */ mk(() => {
|
|
|
4308
4308
|
return !0;
|
|
4309
4309
|
}, "linearEasing");
|
|
4310
4310
|
function j0(t) {
|
|
4311
|
-
return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in
|
|
4311
|
+
return !!(typeof t == "function" && Ca() || !t || typeof t == "string" && (t in rd || Ca()) || Zf(t) || Array.isArray(t) && t.every(j0));
|
|
4312
4312
|
}
|
|
4313
|
-
const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`,
|
|
4313
|
+
const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, rd = {
|
|
4314
4314
|
linear: "linear",
|
|
4315
4315
|
ease: "ease",
|
|
4316
4316
|
easeIn: "ease-in",
|
|
@@ -4323,7 +4323,7 @@ const wo = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, nd = {
|
|
|
4323
4323
|
};
|
|
4324
4324
|
function G0(t, e) {
|
|
4325
4325
|
if (t)
|
|
4326
|
-
return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) ||
|
|
4326
|
+
return typeof t == "function" && Ca() ? pk(t, e) : Zf(t) ? wo(t) : Array.isArray(t) ? t.map((n) => G0(n, e) || rd.easeOut) : rd[t];
|
|
4327
4327
|
}
|
|
4328
4328
|
function gk(t, e, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
4329
4329
|
const c = { [e]: n };
|
|
@@ -4391,7 +4391,7 @@ class rm extends R0 {
|
|
|
4391
4391
|
const d = gk(l.owner.current, c, e, { ...this.options, duration: i, times: o, ease: s });
|
|
4392
4392
|
return d.startTime = u ?? this.calcStartTime(), this.pendingTimeline ? (nm(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => {
|
|
4393
4393
|
const { onComplete: f } = this.options;
|
|
4394
|
-
l.set(
|
|
4394
|
+
l.set(Hl(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
4395
4395
|
}, {
|
|
4396
4396
|
animation: d,
|
|
4397
4397
|
duration: i,
|
|
@@ -4619,14 +4619,14 @@ const qf = (t, e, n, r = {}, i, o) => (s) => {
|
|
|
4619
4619
|
}), u.duration && (u.duration = Tn(u.duration)), u.repeatDelay && (u.repeatDelay = Tn(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
4620
4620
|
let d = !1;
|
|
4621
4621
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
|
|
4622
|
-
const f =
|
|
4622
|
+
const f = Hl(u.keyframes, a);
|
|
4623
4623
|
if (f !== void 0)
|
|
4624
4624
|
return He.update(() => {
|
|
4625
4625
|
u.onUpdate(f), u.onComplete();
|
|
4626
4626
|
}), new Sk([]);
|
|
4627
4627
|
}
|
|
4628
4628
|
return !o && rm.supports(u) ? new rm(u) : new Uf(u);
|
|
4629
|
-
}, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) =>
|
|
4629
|
+
}, Ek = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Ak = (t) => Uu(t) ? t[t.length - 1] || 0 : t;
|
|
4630
4630
|
function Qf(t, e) {
|
|
4631
4631
|
t.indexOf(e) === -1 && t.push(e);
|
|
4632
4632
|
}
|
|
@@ -4722,7 +4722,7 @@ class kk {
|
|
|
4722
4722
|
* @deprecated
|
|
4723
4723
|
*/
|
|
4724
4724
|
onChange(e) {
|
|
4725
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4725
|
+
return process.env.NODE_ENV !== "production" && Gl(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
4726
4726
|
}
|
|
4727
4727
|
on(e, n) {
|
|
4728
4728
|
this.events[e] || (this.events[e] = new tp());
|
|
@@ -4861,7 +4861,7 @@ function Mk(t, e, n) {
|
|
|
4861
4861
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Yo(n));
|
|
4862
4862
|
}
|
|
4863
4863
|
function Ok(t, e) {
|
|
4864
|
-
const n =
|
|
4864
|
+
const n = _l(t, e);
|
|
4865
4865
|
let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {};
|
|
4866
4866
|
o = { ...o, ...r };
|
|
4867
4867
|
for (const s in o) {
|
|
@@ -4877,7 +4877,7 @@ const At = (t) => !!(t && t.getVelocity);
|
|
|
4877
4877
|
function Rk(t) {
|
|
4878
4878
|
return !!(At(t) && t.add);
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function id(t, e) {
|
|
4881
4881
|
const n = t.getValue("willChange");
|
|
4882
4882
|
if (Rk(n))
|
|
4883
4883
|
return n.add(e);
|
|
@@ -4907,7 +4907,7 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
4907
4907
|
b !== null && (h.startTime = b, m = !0);
|
|
4908
4908
|
}
|
|
4909
4909
|
}
|
|
4910
|
-
|
|
4910
|
+
id(t, d), f.start(qf(d, f, p, t.shouldReduceMotion && pi.has(d) ? { type: !1 } : h, t, m));
|
|
4911
4911
|
const g = f.animation;
|
|
4912
4912
|
g && c.push(g);
|
|
4913
4913
|
}
|
|
@@ -4917,9 +4917,9 @@ function W0(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
4917
4917
|
});
|
|
4918
4918
|
}), c;
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function od(t, e, n = {}) {
|
|
4921
4921
|
var r;
|
|
4922
|
-
const i =
|
|
4922
|
+
const i = _l(t, e, n.type === "exit" ? (r = t.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
|
|
4923
4923
|
let { transition: o = t.getDefaultTransition() || {} } = i || {};
|
|
4924
4924
|
n.transitionOverride && (o = n.transitionOverride);
|
|
4925
4925
|
const s = i ? () => Promise.all(W0(t, i, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
|
@@ -4935,7 +4935,7 @@ function id(t, e, n = {}) {
|
|
|
4935
4935
|
function Nk(t, e, n = 0, r = 0, i = 1, o) {
|
|
4936
4936
|
const s = [], a = (t.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
|
4937
4937
|
return Array.from(t.variantChildren).sort(Fk).forEach((c, u) => {
|
|
4938
|
-
c.notify("AnimationStart", e), s.push(
|
|
4938
|
+
c.notify("AnimationStart", e), s.push(od(c, e, {
|
|
4939
4939
|
...o,
|
|
4940
4940
|
delay: n + l(u)
|
|
4941
4941
|
}).then(() => c.notify("AnimationComplete", e)));
|
|
@@ -4948,12 +4948,12 @@ function Vk(t, e, n = {}) {
|
|
|
4948
4948
|
t.notify("AnimationStart", e);
|
|
4949
4949
|
let r;
|
|
4950
4950
|
if (Array.isArray(e)) {
|
|
4951
|
-
const i = e.map((o) =>
|
|
4951
|
+
const i = e.map((o) => od(t, o, n));
|
|
4952
4952
|
r = Promise.all(i);
|
|
4953
4953
|
} else if (typeof e == "string")
|
|
4954
|
-
r =
|
|
4954
|
+
r = od(t, e, n);
|
|
4955
4955
|
else {
|
|
4956
|
-
const i = typeof e == "function" ?
|
|
4956
|
+
const i = typeof e == "function" ? _l(t, e, n.custom) : e;
|
|
4957
4957
|
r = Promise.all(W0(t, i, n));
|
|
4958
4958
|
}
|
|
4959
4959
|
return r.then(() => {
|
|
@@ -4983,7 +4983,7 @@ function zk(t) {
|
|
|
4983
4983
|
let e = Gk(t), n = om(), r = !0;
|
|
4984
4984
|
const i = (l) => (c, u) => {
|
|
4985
4985
|
var d;
|
|
4986
|
-
const f =
|
|
4986
|
+
const f = _l(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
|
4987
4987
|
if (f) {
|
|
4988
4988
|
const { transition: p, transitionEnd: h, ...m } = f;
|
|
4989
4989
|
c = { ...c, ...m, ...h };
|
|
@@ -5003,7 +5003,7 @@ function zk(t) {
|
|
|
5003
5003
|
if (E && r && t.manuallyAnimateOnMount && (E = !1), b.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
5004
5004
|
!b.isActive && y === null || // If we didn't and don't have any defined prop for this animation type
|
|
5005
5005
|
!x && !b.prevProp || // Or if the prop doesn't define an animation
|
|
5006
|
-
|
|
5006
|
+
zl(x) || typeof x == "boolean")
|
|
5007
5007
|
continue;
|
|
5008
5008
|
const A = _k(b.prevProp, x);
|
|
5009
5009
|
let T = A || // If we're making this variant active, we want to always make it active
|
|
@@ -5025,7 +5025,7 @@ function zk(t) {
|
|
|
5025
5025
|
if (p.hasOwnProperty(B))
|
|
5026
5026
|
continue;
|
|
5027
5027
|
let P = !1;
|
|
5028
|
-
|
|
5028
|
+
Uu(Q) && Uu(re) ? P = !s0(Q, re) : P = Q !== re, P ? Q != null ? L(B) : f.add(B) : Q !== void 0 && f.has(B) ? L(B) : b.protectedKeys[B] = !0;
|
|
5029
5029
|
}
|
|
5030
5030
|
b.prevProp = x, b.prevResolvedValues = X, b.isActive && (p = { ...p, ...X }), r && t.blockInitialAnimation && (T = !1), T && (!(E && A) || R) && d.push(...G.map((B) => ({
|
|
5031
5031
|
animation: B,
|
|
@@ -5105,7 +5105,7 @@ class Hk extends Ir {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
updateAnimationControlsSubscription() {
|
|
5107
5107
|
const { animate: e } = this.node.getProps();
|
|
5108
|
-
|
|
5108
|
+
zl(e) && (this.unmountControls = e.subscribe(this.node));
|
|
5109
5109
|
}
|
|
5110
5110
|
/**
|
|
5111
5111
|
* Subscribe any provided AnimationControls to the component's VisualElement
|
|
@@ -5151,7 +5151,7 @@ const Xk = {
|
|
|
5151
5151
|
Feature: $k
|
|
5152
5152
|
}
|
|
5153
5153
|
}, X0 = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
|
|
5154
|
-
function
|
|
5154
|
+
function Wl(t, e = "page") {
|
|
5155
5155
|
return {
|
|
5156
5156
|
point: {
|
|
5157
5157
|
x: t[`${e}X`],
|
|
@@ -5159,7 +5159,7 @@ function Hl(t, e = "page") {
|
|
|
5159
5159
|
}
|
|
5160
5160
|
};
|
|
5161
5161
|
}
|
|
5162
|
-
const Yk = (t) => (e) => X0(e) && t(e,
|
|
5162
|
+
const Yk = (t) => (e) => X0(e) && t(e, Wl(e));
|
|
5163
5163
|
function zn(t, e, n, r = { passive: !0 }) {
|
|
5164
5164
|
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n);
|
|
5165
5165
|
}
|
|
@@ -5176,7 +5176,7 @@ class Y0 {
|
|
|
5176
5176
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
5177
5177
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
5178
5178
|
return;
|
|
5179
|
-
const d =
|
|
5179
|
+
const d = Bc(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, p = Zk(d.offset, { x: 0, y: 0 }) >= 3;
|
|
5180
5180
|
if (!f && !p)
|
|
5181
5181
|
return;
|
|
5182
5182
|
const { point: h } = d, { timestamp: m } = gt;
|
|
@@ -5184,21 +5184,21 @@ class Y0 {
|
|
|
5184
5184
|
const { onStart: g, onMove: v } = this.handlers;
|
|
5185
5185
|
f || (g && g(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), v && v(this.lastMoveEvent, d);
|
|
5186
5186
|
}, this.handlePointerMove = (d, f) => {
|
|
5187
|
-
this.lastMoveEvent = d, this.lastMoveEventInfo =
|
|
5187
|
+
this.lastMoveEvent = d, this.lastMoveEventInfo = Vc(f, this.transformPagePoint), He.update(this.updatePoint, !0);
|
|
5188
5188
|
}, this.handlePointerUp = (d, f) => {
|
|
5189
5189
|
this.end();
|
|
5190
5190
|
const { onEnd: p, onSessionEnd: h, resumeAnimation: m } = this.handlers;
|
|
5191
5191
|
if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
5192
5192
|
return;
|
|
5193
|
-
const g =
|
|
5193
|
+
const g = Bc(d.type === "pointercancel" ? this.lastMoveEventInfo : Vc(f, this.transformPagePoint), this.history);
|
|
5194
5194
|
this.startEvent && p && p(d, g), h && h(d, g);
|
|
5195
5195
|
}, !X0(e))
|
|
5196
5196
|
return;
|
|
5197
5197
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
5198
|
-
const s =
|
|
5198
|
+
const s = Wl(e), a = Vc(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = gt;
|
|
5199
5199
|
this.history = [{ ...l, timestamp: c }];
|
|
5200
5200
|
const { onSessionStart: u } = n;
|
|
5201
|
-
u && u(e,
|
|
5201
|
+
u && u(e, Bc(a, this.history)), this.removeListeners = Hn(Wn(this.contextWindow, "pointermove", this.handlePointerMove), Wn(this.contextWindow, "pointerup", this.handlePointerUp), Wn(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
5202
5202
|
}
|
|
5203
5203
|
updateHandlers(e) {
|
|
5204
5204
|
this.handlers = e;
|
|
@@ -5207,13 +5207,13 @@ class Y0 {
|
|
|
5207
5207
|
this.removeListeners && this.removeListeners(), xr(this.updatePoint);
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
|
-
function
|
|
5210
|
+
function Vc(t, e) {
|
|
5211
5211
|
return e ? { point: e(t.point) } : t;
|
|
5212
5212
|
}
|
|
5213
5213
|
function am(t, e) {
|
|
5214
5214
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function Bc({ point: t }, e) {
|
|
5217
5217
|
return {
|
|
5218
5218
|
point: t,
|
|
5219
5219
|
delta: am(t, Z0(e)),
|
|
@@ -5335,9 +5335,9 @@ function aM(t, e) {
|
|
|
5335
5335
|
const n = {};
|
|
5336
5336
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
5337
5337
|
}
|
|
5338
|
-
const
|
|
5339
|
-
function lM(t =
|
|
5340
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
5338
|
+
const sd = 0.35;
|
|
5339
|
+
function lM(t = sd) {
|
|
5340
|
+
return t === !1 ? t = 0 : t === !0 && (t = sd), {
|
|
5341
5341
|
x: mm(t, "left", "right"),
|
|
5342
5342
|
y: mm(t, "top", "bottom")
|
|
5343
5343
|
};
|
|
@@ -5386,14 +5386,14 @@ function uM(t, e) {
|
|
|
5386
5386
|
right: r.x
|
|
5387
5387
|
};
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5389
|
+
function Lc(t) {
|
|
5390
5390
|
return t === void 0 || t === 1;
|
|
5391
5391
|
}
|
|
5392
|
-
function
|
|
5393
|
-
return !
|
|
5392
|
+
function ad({ scale: t, scaleX: e, scaleY: n }) {
|
|
5393
|
+
return !Lc(t) || !Lc(e) || !Lc(n);
|
|
5394
5394
|
}
|
|
5395
5395
|
function Dr(t) {
|
|
5396
|
-
return
|
|
5396
|
+
return ad(t) || tx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
5397
5397
|
}
|
|
5398
5398
|
function tx(t) {
|
|
5399
5399
|
return ym(t.x) || ym(t.y);
|
|
@@ -5408,11 +5408,11 @@ function Sa(t, e, n) {
|
|
|
5408
5408
|
function xm(t, e, n, r, i) {
|
|
5409
5409
|
return i !== void 0 && (t = Sa(t, i, r)), Sa(t, n, r) + e;
|
|
5410
5410
|
}
|
|
5411
|
-
function
|
|
5411
|
+
function ld(t, e = 0, n = 1, r, i) {
|
|
5412
5412
|
t.min = xm(t.min, e, n, r, i), t.max = xm(t.max, e, n, r, i);
|
|
5413
5413
|
}
|
|
5414
5414
|
function nx(t, { x: e, y: n }) {
|
|
5415
|
-
|
|
5415
|
+
ld(t.x, e.translate, e.scale, e.originPoint), ld(t.y, n.translate, n.scale, n.originPoint);
|
|
5416
5416
|
}
|
|
5417
5417
|
const Cm = 0.999999999999, wm = 1.0000000000001;
|
|
5418
5418
|
function dM(t, e, n, r = !1) {
|
|
@@ -5436,7 +5436,7 @@ function Ri(t, e) {
|
|
|
5436
5436
|
}
|
|
5437
5437
|
function Sm(t, e, n, r, i = 0.5) {
|
|
5438
5438
|
const o = Ue(t.min, t.max, i);
|
|
5439
|
-
|
|
5439
|
+
ld(t, e, n, o, r);
|
|
5440
5440
|
}
|
|
5441
5441
|
function Di(t, e) {
|
|
5442
5442
|
Sm(t.x, e.x, e.scaleX, e.scale, e.originX), Sm(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
@@ -5459,7 +5459,7 @@ class hM {
|
|
|
5459
5459
|
return;
|
|
5460
5460
|
const i = (u) => {
|
|
5461
5461
|
const { dragSnapToOrigin: d } = this.getProps();
|
|
5462
|
-
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(
|
|
5462
|
+
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Wl(u, "page").point);
|
|
5463
5463
|
}, o = (u, d) => {
|
|
5464
5464
|
const { drag: f, dragPropagation: p, onDragStart: h } = this.getProps();
|
|
5465
5465
|
if (f && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = U0(f), !this.openGlobalLock))
|
|
@@ -5474,7 +5474,7 @@ class hM {
|
|
|
5474
5474
|
}
|
|
5475
5475
|
}
|
|
5476
5476
|
this.originPoint[g] = v;
|
|
5477
|
-
}), h && He.postRender(() => h(u, d)),
|
|
5477
|
+
}), h && He.postRender(() => h(u, d)), id(this.visualElement, "transform");
|
|
5478
5478
|
const { animationState: m } = this.visualElement;
|
|
5479
5479
|
m && m.setActive("whileDrag", !0);
|
|
5480
5480
|
}, s = (u, d) => {
|
|
@@ -5574,7 +5574,7 @@ class hM {
|
|
|
5574
5574
|
}
|
|
5575
5575
|
startAxisValueAnimation(e, n) {
|
|
5576
5576
|
const r = this.getAxisMotionValue(e);
|
|
5577
|
-
return
|
|
5577
|
+
return id(this.visualElement, e), r.start(qf(e, r, 0, n, this.visualElement, !1));
|
|
5578
5578
|
}
|
|
5579
5579
|
stopAnimation() {
|
|
5580
5580
|
qt((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -5662,7 +5662,7 @@ class hM {
|
|
|
5662
5662
|
};
|
|
5663
5663
|
}
|
|
5664
5664
|
getProps() {
|
|
5665
|
-
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s =
|
|
5665
|
+
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: s = sd, dragMomentum: a = !0 } = e;
|
|
5666
5666
|
return {
|
|
5667
5667
|
...e,
|
|
5668
5668
|
drag: n,
|
|
@@ -5727,9 +5727,9 @@ class vM extends Ir {
|
|
|
5727
5727
|
this.removePointerDownListener(), this.session && this.session.end();
|
|
5728
5728
|
}
|
|
5729
5729
|
}
|
|
5730
|
-
const
|
|
5730
|
+
const $l = qe(null);
|
|
5731
5731
|
function bM() {
|
|
5732
|
-
const t = Me(
|
|
5732
|
+
const t = Me($l);
|
|
5733
5733
|
if (t === null)
|
|
5734
5734
|
return [!0, null];
|
|
5735
5735
|
const { isPresent: e, onExitComplete: n, register: r } = t, i = Fn();
|
|
@@ -6013,9 +6013,9 @@ const Nr = {
|
|
|
6013
6013
|
totalNodes: 0,
|
|
6014
6014
|
resolvedTargetDeltas: 0,
|
|
6015
6015
|
recalculatedProjection: 0
|
|
6016
|
-
}, So = typeof window < "u" && window.MotionDebug !== void 0,
|
|
6016
|
+
}, So = typeof window < "u" && window.MotionDebug !== void 0, jc = ["", "X", "Y", "Z"], LM = { visibility: "hidden" }, jm = 1e3;
|
|
6017
6017
|
let jM = 0;
|
|
6018
|
-
function
|
|
6018
|
+
function Gc(t, e, n, r) {
|
|
6019
6019
|
const { latestValues: i } = e;
|
|
6020
6020
|
i[t] && (n[t] = i[t], e.setStaticValue(t, 0), r && (r[t] = 0));
|
|
6021
6021
|
}
|
|
@@ -6140,7 +6140,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6140
6140
|
}
|
|
6141
6141
|
this.isUpdating || this.nodes.forEach($M), this.isUpdating = !1, this.nodes.forEach(XM), this.nodes.forEach(GM), this.nodes.forEach(zM), this.clearAllSnapshots();
|
|
6142
6142
|
const a = Mn.now();
|
|
6143
|
-
gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0,
|
|
6143
|
+
gt.delta = Cr(0, 1e3 / 60, a - gt.timestamp), gt.timestamp = a, gt.isProcessing = !0, Pc.update.process(gt), Pc.preRender.process(gt), Pc.render.process(gt), gt.isProcessing = !1;
|
|
6144
6144
|
}
|
|
6145
6145
|
didUpdate() {
|
|
6146
6146
|
this.updateScheduled || (this.updateScheduled = !0, ip.read(this.scheduleUpdate));
|
|
@@ -6245,7 +6245,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6245
6245
|
const c = this.path[l];
|
|
6246
6246
|
if (!c.instance || !Dr(c.latestValues))
|
|
6247
6247
|
continue;
|
|
6248
|
-
|
|
6248
|
+
ad(c.latestValues) && c.updateSnapshot();
|
|
6249
6249
|
const u = rt(), d = c.measurePageBox();
|
|
6250
6250
|
Jt(u, d), Dm(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
6251
6251
|
}
|
|
@@ -6291,7 +6291,7 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
6293
|
getClosestProjectingParent() {
|
|
6294
|
-
if (!(!this.parent ||
|
|
6294
|
+
if (!(!this.parent || ad(this.parent.latestValues) || tx(this.parent.latestValues)))
|
|
6295
6295
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
6296
6296
|
}
|
|
6297
6297
|
isProjecting() {
|
|
@@ -6423,9 +6423,9 @@ function fx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6423
6423
|
if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
|
|
6424
6424
|
return;
|
|
6425
6425
|
const c = {};
|
|
6426
|
-
l.z &&
|
|
6427
|
-
for (let u = 0; u <
|
|
6428
|
-
|
|
6426
|
+
l.z && Gc("z", s, c, this.animationValues);
|
|
6427
|
+
for (let u = 0; u < jc.length; u++)
|
|
6428
|
+
Gc(`rotate${jc[u]}`, s, c, this.animationValues), Gc(`skew${jc[u]}`, s, c, this.animationValues);
|
|
6429
6429
|
s.render();
|
|
6430
6430
|
for (const u in c)
|
|
6431
6431
|
s.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
|
|
@@ -6593,7 +6593,7 @@ const nO = fx({
|
|
|
6593
6593
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
6594
6594
|
}),
|
|
6595
6595
|
checkIsScrollRoot: () => !0
|
|
6596
|
-
}),
|
|
6596
|
+
}), zc = {
|
|
6597
6597
|
current: void 0
|
|
6598
6598
|
}, hx = fx({
|
|
6599
6599
|
measureScroll: (t) => ({
|
|
@@ -6601,11 +6601,11 @@ const nO = fx({
|
|
|
6601
6601
|
y: t.scrollTop
|
|
6602
6602
|
}),
|
|
6603
6603
|
defaultParent: () => {
|
|
6604
|
-
if (!
|
|
6604
|
+
if (!zc.current) {
|
|
6605
6605
|
const t = new nO({});
|
|
6606
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
6606
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), zc.current = t;
|
|
6607
6607
|
}
|
|
6608
|
-
return
|
|
6608
|
+
return zc.current;
|
|
6609
6609
|
},
|
|
6610
6610
|
resetTransform: (t, e) => {
|
|
6611
6611
|
t.style.transform = e !== void 0 ? e : "none";
|
|
@@ -6664,11 +6664,11 @@ class oO extends Ir {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
}
|
|
6666
6666
|
const mx = (t, e) => e ? t === e ? !0 : mx(t, e.parentElement) : !1;
|
|
6667
|
-
function
|
|
6667
|
+
function _c(t, e) {
|
|
6668
6668
|
if (!e)
|
|
6669
6669
|
return;
|
|
6670
6670
|
const n = new PointerEvent("pointer" + t);
|
|
6671
|
-
e(n,
|
|
6671
|
+
e(n, Wl(n));
|
|
6672
6672
|
}
|
|
6673
6673
|
class sO extends Ir {
|
|
6674
6674
|
constructor() {
|
|
@@ -6692,16 +6692,16 @@ class sO extends Ir {
|
|
|
6692
6692
|
if (o.key !== "Enter" || this.isPressing)
|
|
6693
6693
|
return;
|
|
6694
6694
|
const s = (a) => {
|
|
6695
|
-
a.key !== "Enter" || !this.checkPressEnd() ||
|
|
6695
|
+
a.key !== "Enter" || !this.checkPressEnd() || _c("up", (l, c) => {
|
|
6696
6696
|
const { onTap: u } = this.node.getProps();
|
|
6697
6697
|
u && He.postRender(() => u(l, c));
|
|
6698
6698
|
});
|
|
6699
6699
|
};
|
|
6700
|
-
this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s),
|
|
6700
|
+
this.removeEndListeners(), this.removeEndListeners = zn(this.node.current, "keyup", s), _c("down", (a, l) => {
|
|
6701
6701
|
this.startPress(a, l);
|
|
6702
6702
|
});
|
|
6703
6703
|
}, n = zn(this.node.current, "keydown", e), r = () => {
|
|
6704
|
-
this.isPressing &&
|
|
6704
|
+
this.isPressing && _c("cancel", (o, s) => this.cancelPress(o, s));
|
|
6705
6705
|
}, i = zn(this.node.current, "blur", r);
|
|
6706
6706
|
this.removeAccessibleListeners = Hn(n, i);
|
|
6707
6707
|
};
|
|
@@ -6730,22 +6730,22 @@ class sO extends Ir {
|
|
|
6730
6730
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
6731
6731
|
}
|
|
6732
6732
|
}
|
|
6733
|
-
const
|
|
6734
|
-
const e =
|
|
6733
|
+
const cd = /* @__PURE__ */ new WeakMap(), Hc = /* @__PURE__ */ new WeakMap(), aO = (t) => {
|
|
6734
|
+
const e = cd.get(t.target);
|
|
6735
6735
|
e && e(t);
|
|
6736
6736
|
}, lO = (t) => {
|
|
6737
6737
|
t.forEach(aO);
|
|
6738
6738
|
};
|
|
6739
6739
|
function cO({ root: t, ...e }) {
|
|
6740
6740
|
const n = t || document;
|
|
6741
|
-
|
|
6742
|
-
const r =
|
|
6741
|
+
Hc.has(n) || Hc.set(n, {});
|
|
6742
|
+
const r = Hc.get(n), i = JSON.stringify(e);
|
|
6743
6743
|
return r[i] || (r[i] = new IntersectionObserver(lO, { root: t, ...e })), r[i];
|
|
6744
6744
|
}
|
|
6745
6745
|
function uO(t, e, n) {
|
|
6746
6746
|
const r = cO(e);
|
|
6747
|
-
return
|
|
6748
|
-
|
|
6747
|
+
return cd.set(t, n), r.observe(t), () => {
|
|
6748
|
+
cd.delete(t), r.unobserve(t);
|
|
6749
6749
|
};
|
|
6750
6750
|
}
|
|
6751
6751
|
const dO = {
|
|
@@ -6809,10 +6809,10 @@ const hO = {
|
|
|
6809
6809
|
transformPagePoint: (t) => t,
|
|
6810
6810
|
isStatic: !1,
|
|
6811
6811
|
reducedMotion: "never"
|
|
6812
|
-
}),
|
|
6812
|
+
}), Xl = qe({}), sp = typeof window < "u", gx = sp ? Qi : Pe, vx = qe({ strict: !1 });
|
|
6813
6813
|
function gO(t, e, n, r, i) {
|
|
6814
6814
|
var o, s;
|
|
6815
|
-
const { visualElement: a } = Me(
|
|
6815
|
+
const { visualElement: a } = Me(Xl), l = Me(vx), c = Me($l), u = Me(op).reducedMotion, d = de();
|
|
6816
6816
|
r = r || l.renderer, !d.current && r && (d.current = r(t, {
|
|
6817
6817
|
visualState: e,
|
|
6818
6818
|
parent: a,
|
|
@@ -6874,14 +6874,14 @@ function bO(t, e, n) {
|
|
|
6874
6874
|
[e]
|
|
6875
6875
|
);
|
|
6876
6876
|
}
|
|
6877
|
-
function
|
|
6878
|
-
return
|
|
6877
|
+
function Yl(t) {
|
|
6878
|
+
return zl(t.animate) || Bf.some((e) => Wo(t[e]));
|
|
6879
6879
|
}
|
|
6880
6880
|
function yx(t) {
|
|
6881
|
-
return !!(
|
|
6881
|
+
return !!(Yl(t) || t.variants);
|
|
6882
6882
|
}
|
|
6883
6883
|
function yO(t, e) {
|
|
6884
|
-
if (
|
|
6884
|
+
if (Yl(t)) {
|
|
6885
6885
|
const { initial: n, animate: r } = t;
|
|
6886
6886
|
return {
|
|
6887
6887
|
initial: n === !1 || Wo(n) ? n : void 0,
|
|
@@ -6891,7 +6891,7 @@ function yO(t, e) {
|
|
|
6891
6891
|
return t.inherit !== !1 ? e : {};
|
|
6892
6892
|
}
|
|
6893
6893
|
function xO(t) {
|
|
6894
|
-
const { initial: e, animate: n } = yO(t, Me(
|
|
6894
|
+
const { initial: e, animate: n } = yO(t, Me(Xl));
|
|
6895
6895
|
return we(() => ({ initial: e, animate: n }), [Zm(e), Zm(n)]);
|
|
6896
6896
|
}
|
|
6897
6897
|
function Zm(t) {
|
|
@@ -6943,7 +6943,7 @@ function SO({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
6943
6943
|
const h = AO(u);
|
|
6944
6944
|
c = h.MeasureLayout, f.visualElement = gO(i, p, u, e, h.ProjectionNode);
|
|
6945
6945
|
}
|
|
6946
|
-
return C.jsxs(
|
|
6946
|
+
return C.jsxs(Xl.Provider, { value: f, children: [c && f.visualElement ? C.jsx(c, { visualElement: f.visualElement, ...u }) : null, n(i, a, bO(p, f.visualElement, l), p, d, f.visualElement)] });
|
|
6947
6947
|
}
|
|
6948
6948
|
const s = fi(o);
|
|
6949
6949
|
return s[wO] = i, s;
|
|
@@ -7082,7 +7082,7 @@ function kO({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }
|
|
|
7082
7082
|
return n && (s.mount = (a) => n(r, a, s)), s;
|
|
7083
7083
|
}
|
|
7084
7084
|
const Ex = (t) => (e, n) => {
|
|
7085
|
-
const r = Me(
|
|
7085
|
+
const r = Me(Xl), i = Me($l), o = () => kO(t, e, r, i);
|
|
7086
7086
|
return n ? o() : cp(o);
|
|
7087
7087
|
};
|
|
7088
7088
|
function MO(t, e, n, r) {
|
|
@@ -7090,12 +7090,12 @@ function MO(t, e, n, r) {
|
|
|
7090
7090
|
for (const f in o)
|
|
7091
7091
|
i[f] = na(o[f]);
|
|
7092
7092
|
let { initial: s, animate: a } = t;
|
|
7093
|
-
const l =
|
|
7093
|
+
const l = Yl(t), c = yx(t);
|
|
7094
7094
|
e && c && !l && t.inherit !== !1 && (s === void 0 && (s = e.initial), a === void 0 && (a = e.animate));
|
|
7095
7095
|
let u = n ? n.initial === !1 : !1;
|
|
7096
7096
|
u = u || s === !1;
|
|
7097
7097
|
const d = u ? a : s;
|
|
7098
|
-
if (d && typeof d != "boolean" && !
|
|
7098
|
+
if (d && typeof d != "boolean" && !zl(d)) {
|
|
7099
7099
|
const f = Array.isArray(d) ? d : [d];
|
|
7100
7100
|
for (let p = 0; p < f.length; p++) {
|
|
7101
7101
|
const h = Ff(t, f[p]);
|
|
@@ -7341,20 +7341,20 @@ function YO(t, e) {
|
|
|
7341
7341
|
return SO(s);
|
|
7342
7342
|
};
|
|
7343
7343
|
}
|
|
7344
|
-
const
|
|
7344
|
+
const ud = { current: null }, Ox = { current: !1 };
|
|
7345
7345
|
function ZO() {
|
|
7346
7346
|
if (Ox.current = !0, !!sp)
|
|
7347
7347
|
if (window.matchMedia) {
|
|
7348
|
-
const t = window.matchMedia("(prefers-reduced-motion)"), e = () =>
|
|
7348
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ud.current = t.matches;
|
|
7349
7349
|
t.addListener(e), e();
|
|
7350
7350
|
} else
|
|
7351
|
-
|
|
7351
|
+
ud.current = !1;
|
|
7352
7352
|
}
|
|
7353
7353
|
function JO(t, e, n) {
|
|
7354
7354
|
for (const r in e) {
|
|
7355
7355
|
const i = e[r], o = n[r];
|
|
7356
7356
|
if (At(i))
|
|
7357
|
-
t.addValue(r, i), process.env.NODE_ENV === "development" &&
|
|
7357
|
+
t.addValue(r, i), process.env.NODE_ENV === "development" && Gl(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`);
|
|
7358
7358
|
else if (At(o))
|
|
7359
7359
|
t.addValue(r, Yo(i, { owner: t }));
|
|
7360
7360
|
else if (o !== i)
|
|
@@ -7398,7 +7398,7 @@ class qO {
|
|
|
7398
7398
|
this.renderScheduledAt < f && (this.renderScheduledAt = f, He.render(this.render, !1, !0));
|
|
7399
7399
|
};
|
|
7400
7400
|
const { latestValues: l, renderState: c } = s;
|
|
7401
|
-
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants =
|
|
7401
|
+
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Yl(n), this.isVariantNode = yx(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
7402
7402
|
const { willChange: u, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
7403
7403
|
for (const f in d) {
|
|
7404
7404
|
const p = d[f];
|
|
@@ -7406,7 +7406,7 @@ class qO {
|
|
|
7406
7406
|
}
|
|
7407
7407
|
}
|
|
7408
7408
|
mount(e) {
|
|
7409
|
-
this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 :
|
|
7409
|
+
this.current = e, Km.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Ox.current || ZO(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ud.current, process.env.NODE_ENV !== "production" && Gl(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
7410
7410
|
}
|
|
7411
7411
|
unmount() {
|
|
7412
7412
|
Km.delete(this.current), this.projection && this.projection.unmount(), xr(this.notifyUpdate), xr(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -7653,7 +7653,7 @@ const nP = (t, e) => ap(t) ? new tP(e) : new eP(e, {
|
|
|
7653
7653
|
...hO,
|
|
7654
7654
|
...rO,
|
|
7655
7655
|
...mO
|
|
7656
|
-
}, nP),
|
|
7656
|
+
}, nP), dd = /* @__PURE__ */ BA(rP);
|
|
7657
7657
|
class iP extends I.Component {
|
|
7658
7658
|
getSnapshotBeforeUpdate(e) {
|
|
7659
7659
|
const n = this.props.childRef.current;
|
|
@@ -7725,7 +7725,7 @@ const sP = ({ children: t, initial: e, isPresent: n, onExitComplete: r, custom:
|
|
|
7725
7725
|
a.forEach((d, f) => a.set(f, !1));
|
|
7726
7726
|
}, [n]), I.useEffect(() => {
|
|
7727
7727
|
!n && !a.size && r && r();
|
|
7728
|
-
}, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx(
|
|
7728
|
+
}, [n]), s === "popLayout" && (t = C.jsx(oP, { isPresent: n, children: t })), C.jsx($l.Provider, { value: u, children: t });
|
|
7729
7729
|
};
|
|
7730
7730
|
function aP() {
|
|
7731
7731
|
return /* @__PURE__ */ new Map();
|
|
@@ -7802,7 +7802,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7802
7802
|
classes: s
|
|
7803
7803
|
}) => {
|
|
7804
7804
|
const l = /* @__PURE__ */ C.jsx(Rx, { children: n && /* @__PURE__ */ C.jsx(
|
|
7805
|
-
|
|
7805
|
+
dd.div,
|
|
7806
7806
|
{
|
|
7807
7807
|
tabIndex: -1,
|
|
7808
7808
|
onClick: o,
|
|
@@ -7815,7 +7815,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7815
7815
|
},
|
|
7816
7816
|
...lP,
|
|
7817
7817
|
children: /* @__PURE__ */ C.jsxs(
|
|
7818
|
-
|
|
7818
|
+
dd.div,
|
|
7819
7819
|
{
|
|
7820
7820
|
onClick: (c) => c.stopPropagation(),
|
|
7821
7821
|
className: O(
|
|
@@ -7903,7 +7903,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7903
7903
|
]
|
|
7904
7904
|
}
|
|
7905
7905
|
) }) });
|
|
7906
|
-
}, fP =
|
|
7906
|
+
}, fP = gf("desk-body-regular-m mt-2", {
|
|
7907
7907
|
variants: {
|
|
7908
7908
|
intent: {
|
|
7909
7909
|
simple: "text-color-tetriary",
|
|
@@ -7947,7 +7947,7 @@ const Rx = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
7947
7947
|
t
|
|
7948
7948
|
]
|
|
7949
7949
|
}
|
|
7950
|
-
), pP =
|
|
7950
|
+
), pP = gf("relative flex flex-col group", {
|
|
7951
7951
|
variants: {
|
|
7952
7952
|
intent: {
|
|
7953
7953
|
clear: "!w-full min-w-[140px]",
|
|
@@ -8194,7 +8194,7 @@ var Lx = mP(function(t, e) {
|
|
|
8194
8194
|
function wP(t, e, n) {
|
|
8195
8195
|
return Math.min(Math.max(t, e), n);
|
|
8196
8196
|
}
|
|
8197
|
-
function
|
|
8197
|
+
function Wc(t) {
|
|
8198
8198
|
return Math.max(t.selectionStart, t.selectionEnd);
|
|
8199
8199
|
}
|
|
8200
8200
|
function SP() {
|
|
@@ -8350,7 +8350,7 @@ function _x(t) {
|
|
|
8350
8350
|
S === void 0 && (S = "");
|
|
8351
8351
|
var k = oe.input, M = oe.source, q = oe.event, W = oe.numAsString, j;
|
|
8352
8352
|
if (k) {
|
|
8353
|
-
var N = oe.inputValue || k.value, U =
|
|
8353
|
+
var N = oe.inputValue || k.value, U = Wc(k);
|
|
8354
8354
|
k.value = S, j = V(N, S, U), j !== void 0 && _(k, j, S);
|
|
8355
8355
|
}
|
|
8356
8356
|
S !== T && J(P(S, W), { event: q, source: M });
|
|
@@ -8362,7 +8362,7 @@ function _x(t) {
|
|
|
8362
8362
|
source: Zo.props
|
|
8363
8363
|
});
|
|
8364
8364
|
}, [T, R]);
|
|
8365
|
-
var se = B.current ?
|
|
8365
|
+
var se = B.current ? Wc(B.current) : void 0, ne = typeof window < "u" ? Qi : Pe;
|
|
8366
8366
|
ne(function() {
|
|
8367
8367
|
var oe = B.current;
|
|
8368
8368
|
if (T !== z.current.formattedValue && oe) {
|
|
@@ -8373,7 +8373,7 @@ function _x(t) {
|
|
|
8373
8373
|
var ie = function(oe, S, k) {
|
|
8374
8374
|
var M = S.target, q = X.current ? CP(X.current, M.selectionEnd) : Lx(T, oe), W = Object.assign(Object.assign({}, q), { lastValue: T }), j = a(oe, W), N = re(j);
|
|
8375
8375
|
if (j = a(N, void 0), d && !d(P(N, j))) {
|
|
8376
|
-
var U = S.target, ye =
|
|
8376
|
+
var U = S.target, ye = Wc(U), Ie = V(oe, T, ye);
|
|
8377
8377
|
return U.value = T, _(U, Ie, T), !1;
|
|
8378
8378
|
}
|
|
8379
8379
|
return K({
|
|
@@ -8456,10 +8456,10 @@ function ng(t, e) {
|
|
|
8456
8456
|
var s = e.allowNegative, a = e.thousandsGroupStyle;
|
|
8457
8457
|
if (a === void 0 && (a = "thousand"), t === "" || t === "-")
|
|
8458
8458
|
return t;
|
|
8459
|
-
var l =
|
|
8459
|
+
var l = Zl(e), c = l.thousandSeparator, u = l.decimalSeparator, d = n !== 0 && t.indexOf(".") !== -1 || n && r, f = mp(t, s), p = f.beforeDecimal, h = f.afterDecimal, m = f.addNegation;
|
|
8460
8460
|
return n !== void 0 && (h = Vx(h, n, !!r)), c && (p = bP(p, c, a)), i && (p = i + p), o && (h = h + o), m && (p = "-" + p), t = p + (d && u || "") + h, t;
|
|
8461
8461
|
}
|
|
8462
|
-
function
|
|
8462
|
+
function Zl(t) {
|
|
8463
8463
|
var e = t.decimalSeparator;
|
|
8464
8464
|
e === void 0 && (e = ".");
|
|
8465
8465
|
var n = t.thousandSeparator, r = t.allowedDecimalSeparators;
|
|
@@ -8487,7 +8487,7 @@ function RP(t, e, n) {
|
|
|
8487
8487
|
o === void 0 && (o = "");
|
|
8488
8488
|
var s = n.suffix;
|
|
8489
8489
|
s === void 0 && (s = "");
|
|
8490
|
-
var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f =
|
|
8490
|
+
var a = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Zl(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
|
|
8491
8491
|
if (ii(t) && (t === o || t === s) && e.lastValue === "")
|
|
8492
8492
|
return t;
|
|
8493
8493
|
if (d - u === 1 && p.indexOf(t[u]) !== -1) {
|
|
@@ -8527,7 +8527,7 @@ function DP(t, e) {
|
|
|
8527
8527
|
return i.fill(!1, s - r.length + 1, s + 1), i;
|
|
8528
8528
|
}
|
|
8529
8529
|
function NP(t) {
|
|
8530
|
-
var e =
|
|
8530
|
+
var e = Zl(t), n = e.thousandSeparator, r = e.decimalSeparator, i = t.prefix;
|
|
8531
8531
|
i === void 0 && (i = "");
|
|
8532
8532
|
var o = t.allowNegative;
|
|
8533
8533
|
if (o === void 0 && (o = !0), n === r)
|
|
@@ -8550,7 +8550,7 @@ function FP(t) {
|
|
|
8550
8550
|
o === void 0 && (o = Gn);
|
|
8551
8551
|
var s = t.thousandSeparator, a = t.decimalScale, l = t.fixedDecimalScale, c = t.prefix;
|
|
8552
8552
|
c === void 0 && (c = "");
|
|
8553
|
-
var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m =
|
|
8553
|
+
var u = t.defaultValue, d = t.value, f = t.valueIsNumericString, p = t.onValueChange, h = hp(t, ["decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "suffix", "allowNegative", "allowLeadingZeros", "onKeyDown", "onBlur", "thousandSeparator", "decimalScale", "fixedDecimalScale", "prefix", "defaultValue", "value", "valueIsNumericString", "onValueChange"]), m = Zl(t), g = m.decimalSeparator, v = m.allowedDecimalSeparators, b = function(F) {
|
|
8554
8554
|
return ng(F, t);
|
|
8555
8555
|
}, x = function(F, B) {
|
|
8556
8556
|
return RP(F, B, t);
|
|
@@ -8807,7 +8807,7 @@ const o$ = ({
|
|
|
8807
8807
|
}
|
|
8808
8808
|
);
|
|
8809
8809
|
}, s$ = () => /* @__PURE__ */ C.jsx("div", { className: "", children: "Form example" });
|
|
8810
|
-
function
|
|
8810
|
+
function Jl(t) {
|
|
8811
8811
|
const e = I.useRef({ value: t, previous: t });
|
|
8812
8812
|
return I.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
|
|
8813
8813
|
}
|
|
@@ -8893,7 +8893,7 @@ var Xx = "CheckboxIndicator", Yx = I.forwardRef(
|
|
|
8893
8893
|
);
|
|
8894
8894
|
Yx.displayName = Xx;
|
|
8895
8895
|
var $P = (t) => {
|
|
8896
|
-
const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a =
|
|
8896
|
+
const { control: e, checked: n, bubbles: r = !0, defaultChecked: i, ...o } = t, s = I.useRef(null), a = Jl(n), l = kl(e);
|
|
8897
8897
|
I.useEffect(() => {
|
|
8898
8898
|
const u = s.current, d = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(d, "checked").set;
|
|
8899
8899
|
if (a !== n && p) {
|
|
@@ -9073,7 +9073,7 @@ var Kx = "RadioIndicator", qx = I.forwardRef(
|
|
|
9073
9073
|
);
|
|
9074
9074
|
qx.displayName = Kx;
|
|
9075
9075
|
var KP = (t) => {
|
|
9076
|
-
const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s =
|
|
9076
|
+
const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
|
|
9077
9077
|
return I.useEffect(() => {
|
|
9078
9078
|
const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
9079
9079
|
if (s !== n && d) {
|
|
@@ -9104,9 +9104,9 @@ function Qx(t) {
|
|
|
9104
9104
|
return t ? "checked" : "unchecked";
|
|
9105
9105
|
}
|
|
9106
9106
|
var qP = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], bp = "RadioGroup", [QP, c$] = Un(bp, [
|
|
9107
|
-
|
|
9107
|
+
jl,
|
|
9108
9108
|
Jx
|
|
9109
|
-
]), e1 =
|
|
9109
|
+
]), e1 = jl(), t1 = Jx(), [eR, tR] = QP(bp), n1 = I.forwardRef(
|
|
9110
9110
|
(t, e) => {
|
|
9111
9111
|
const {
|
|
9112
9112
|
__scopeRadioGroup: n,
|
|
@@ -9211,7 +9211,7 @@ var nR = "RadioGroupIndicator", o1 = I.forwardRef(
|
|
|
9211
9211
|
);
|
|
9212
9212
|
o1.displayName = nR;
|
|
9213
9213
|
var rR = n1, iR = i1, oR = o1;
|
|
9214
|
-
const sR =
|
|
9214
|
+
const sR = gf("flex gap-2", {
|
|
9215
9215
|
variants: {
|
|
9216
9216
|
orientation: {
|
|
9217
9217
|
horizontal: "",
|
|
@@ -9383,7 +9383,7 @@ var a1 = "SwitchThumb", l1 = I.forwardRef(
|
|
|
9383
9383
|
);
|
|
9384
9384
|
l1.displayName = a1;
|
|
9385
9385
|
var uR = (t) => {
|
|
9386
|
-
const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s =
|
|
9386
|
+
const { control: e, checked: n, bubbles: r = !0, ...i } = t, o = I.useRef(null), s = Jl(n), a = kl(e);
|
|
9387
9387
|
return I.useEffect(() => {
|
|
9388
9388
|
const l = o.current, c = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(c, "checked").set;
|
|
9389
9389
|
if (s !== n && d) {
|
|
@@ -9516,9 +9516,9 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
9516
9516
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
9517
9517
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
9518
9518
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
9519
|
-
}, io = "Slider", [
|
|
9519
|
+
}, io = "Slider", [fd, bR, yR] = bf(io), [h1, p$] = Un(io, [
|
|
9520
9520
|
yR
|
|
9521
|
-
]), [xR,
|
|
9521
|
+
]), [xR, Ul] = h1(io), xp = I.forwardRef(
|
|
9522
9522
|
(t, e) => {
|
|
9523
9523
|
const {
|
|
9524
9524
|
name: n,
|
|
@@ -9581,7 +9581,7 @@ var d1 = ["PageUp", "PageDown"], f1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
9581
9581
|
values: w,
|
|
9582
9582
|
orientation: s,
|
|
9583
9583
|
form: h,
|
|
9584
|
-
children: /* @__PURE__ */ C.jsx(
|
|
9584
|
+
children: /* @__PURE__ */ C.jsx(fd.Provider, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(fd.Slot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
|
|
9585
9585
|
x,
|
|
9586
9586
|
{
|
|
9587
9587
|
"aria-disabled": a,
|
|
@@ -9738,7 +9738,7 @@ var [m1, g1] = h1(io, {
|
|
|
9738
9738
|
onEndKeyDown: a,
|
|
9739
9739
|
onStepKeyDown: l,
|
|
9740
9740
|
...c
|
|
9741
|
-
} = t, u =
|
|
9741
|
+
} = t, u = Ul(io, n);
|
|
9742
9742
|
return /* @__PURE__ */ C.jsx(
|
|
9743
9743
|
Ze.span,
|
|
9744
9744
|
{
|
|
@@ -9763,7 +9763,7 @@ var [m1, g1] = h1(io, {
|
|
|
9763
9763
|
}
|
|
9764
9764
|
), b1 = "SliderTrack", y1 = I.forwardRef(
|
|
9765
9765
|
(t, e) => {
|
|
9766
|
-
const { __scopeSlider: n, ...r } = t, i =
|
|
9766
|
+
const { __scopeSlider: n, ...r } = t, i = Ul(b1, n);
|
|
9767
9767
|
return /* @__PURE__ */ C.jsx(
|
|
9768
9768
|
Ze.span,
|
|
9769
9769
|
{
|
|
@@ -9776,9 +9776,9 @@ var [m1, g1] = h1(io, {
|
|
|
9776
9776
|
}
|
|
9777
9777
|
);
|
|
9778
9778
|
y1.displayName = b1;
|
|
9779
|
-
var
|
|
9779
|
+
var pd = "SliderRange", x1 = I.forwardRef(
|
|
9780
9780
|
(t, e) => {
|
|
9781
|
-
const { __scopeSlider: n, ...r } = t, i =
|
|
9781
|
+
const { __scopeSlider: n, ...r } = t, i = Ul(pd, n), o = g1(pd, n), s = I.useRef(null), a = kt(e, s), l = i.values.length, c = i.values.map(
|
|
9782
9782
|
(f) => w1(f, i.min, i.max)
|
|
9783
9783
|
), u = l > 1 ? Math.min(...c) : 0, d = 100 - Math.max(...c);
|
|
9784
9784
|
return /* @__PURE__ */ C.jsx(
|
|
@@ -9797,8 +9797,8 @@ var fd = "SliderRange", x1 = I.forwardRef(
|
|
|
9797
9797
|
);
|
|
9798
9798
|
}
|
|
9799
9799
|
);
|
|
9800
|
-
x1.displayName =
|
|
9801
|
-
var
|
|
9800
|
+
x1.displayName = pd;
|
|
9801
|
+
var hd = "SliderThumb", C1 = I.forwardRef(
|
|
9802
9802
|
(t, e) => {
|
|
9803
9803
|
const n = bR(t.__scopeSlider), [r, i] = I.useState(null), o = kt(e, (a) => i(a)), s = I.useMemo(
|
|
9804
9804
|
() => r ? n().findIndex((a) => a.ref.current === r) : -1,
|
|
@@ -9808,7 +9808,7 @@ var pd = "SliderThumb", C1 = I.forwardRef(
|
|
|
9808
9808
|
}
|
|
9809
9809
|
), SR = I.forwardRef(
|
|
9810
9810
|
(t, e) => {
|
|
9811
|
-
const { __scopeSlider: n, index: r, name: i, ...o } = t, s =
|
|
9811
|
+
const { __scopeSlider: n, index: r, name: i, ...o } = t, s = Ul(hd, n), a = g1(hd, n), [l, c] = I.useState(null), u = kt(e, (b) => c(b)), d = l ? s.form || !!l.closest("form") : !0, f = kl(l), p = s.values[r], h = p === void 0 ? 0 : w1(p, s.min, s.max), m = AR(r, s.values.length), g = f == null ? void 0 : f[a.size], v = g ? kR(g, h, a.direction) : 0;
|
|
9812
9812
|
return I.useEffect(() => {
|
|
9813
9813
|
if (l)
|
|
9814
9814
|
return s.thumbs.add(l), () => {
|
|
@@ -9823,7 +9823,7 @@ var pd = "SliderThumb", C1 = I.forwardRef(
|
|
|
9823
9823
|
[a.startEdge]: `calc(${h}% + ${v}px)`
|
|
9824
9824
|
},
|
|
9825
9825
|
children: [
|
|
9826
|
-
/* @__PURE__ */ C.jsx(
|
|
9826
|
+
/* @__PURE__ */ C.jsx(fd.ItemSlot, { scope: t.__scopeSlider, children: /* @__PURE__ */ C.jsx(
|
|
9827
9827
|
Ze.span,
|
|
9828
9828
|
{
|
|
9829
9829
|
role: "slider",
|
|
@@ -9857,9 +9857,9 @@ var pd = "SliderThumb", C1 = I.forwardRef(
|
|
|
9857
9857
|
);
|
|
9858
9858
|
}
|
|
9859
9859
|
);
|
|
9860
|
-
C1.displayName =
|
|
9860
|
+
C1.displayName = hd;
|
|
9861
9861
|
var IR = (t) => {
|
|
9862
|
-
const { value: e, ...n } = t, r = I.useRef(null), i =
|
|
9862
|
+
const { value: e, ...n } = t, r = I.useRef(null), i = Jl(e);
|
|
9863
9863
|
return I.useEffect(() => {
|
|
9864
9864
|
const o = r.current, s = window.HTMLInputElement.prototype, l = Object.getOwnPropertyDescriptor(s, "value").set;
|
|
9865
9865
|
if (i !== e && l) {
|
|
@@ -10140,7 +10140,7 @@ const h$ = ({
|
|
|
10140
10140
|
}
|
|
10141
10141
|
);
|
|
10142
10142
|
}, BR = () => {
|
|
10143
|
-
const [t, e] =
|
|
10143
|
+
const [t, e] = Ac(!1), [n, r] = Ac(!1), [i, o] = Ac(!1);
|
|
10144
10144
|
return {
|
|
10145
10145
|
calendarSetter: o,
|
|
10146
10146
|
toggleCalendar: (c) => {
|
|
@@ -10350,15 +10350,15 @@ const LR = {
|
|
|
10350
10350
|
}, _R = {
|
|
10351
10351
|
any: "{{date}}, {{time}}"
|
|
10352
10352
|
}, HR = {
|
|
10353
|
-
date:
|
|
10353
|
+
date: Sc({
|
|
10354
10354
|
formats: GR,
|
|
10355
10355
|
defaultWidth: "full"
|
|
10356
10356
|
}),
|
|
10357
|
-
time:
|
|
10357
|
+
time: Sc({
|
|
10358
10358
|
formats: zR,
|
|
10359
10359
|
defaultWidth: "full"
|
|
10360
10360
|
}),
|
|
10361
|
-
dateTime:
|
|
10361
|
+
dateTime: Sc({
|
|
10362
10362
|
formats: _R,
|
|
10363
10363
|
defaultWidth: "any"
|
|
10364
10364
|
})
|
|
@@ -10713,7 +10713,7 @@ const XR = {
|
|
|
10713
10713
|
}
|
|
10714
10714
|
}, vD = (t) => {
|
|
10715
10715
|
const [e, n] = Oe(t), [r, i, o] = (e == null ? void 0 : e.split(".")) ?? "", s = sn(new Date(+o, +i - 1, +r), "MMM-yyyy"), a = wI(s, "MMM-yyyy", /* @__PURE__ */ new Date()), l = $I({
|
|
10716
|
-
start:
|
|
10716
|
+
start: Hu(a, { weekStartsOn: 1 }),
|
|
10717
10717
|
end: YI(HI(a))
|
|
10718
10718
|
}), c = we(() => l, [l]), u = sn(i, "MMMM", { locale: gD });
|
|
10719
10719
|
return {
|
|
@@ -10769,7 +10769,7 @@ const XR = {
|
|
|
10769
10769
|
for (let r = e; r >= t; r--)
|
|
10770
10770
|
n.push(r);
|
|
10771
10771
|
return n;
|
|
10772
|
-
}, wD = CD(),
|
|
10772
|
+
}, wD = CD(), $c = [
|
|
10773
10773
|
{ day: "Пн" },
|
|
10774
10774
|
{ day: "Вт" },
|
|
10775
10775
|
{ day: "Ср" },
|
|
@@ -10790,7 +10790,7 @@ const XR = {
|
|
|
10790
10790
|
"Октябрь",
|
|
10791
10791
|
"Ноябрь",
|
|
10792
10792
|
"Декабрь"
|
|
10793
|
-
], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children:
|
|
10793
|
+
], SD = ({ classes: t }) => /* @__PURE__ */ C.jsx("div", { className: O("grid grid-cols-7 pt-2", t == null ? void 0 : t.weekWrapper), children: $c == null ? void 0 : $c.map(({ day: e, isWeekend: n }) => /* @__PURE__ */ C.jsx(
|
|
10794
10794
|
"span",
|
|
10795
10795
|
{
|
|
10796
10796
|
className: O(
|
|
@@ -10989,11 +10989,9 @@ const XR = {
|
|
|
10989
10989
|
swapPosition: d,
|
|
10990
10990
|
onClickIcon: f,
|
|
10991
10991
|
defaultValue: p = kD,
|
|
10992
|
-
|
|
10993
|
-
setValue: m,
|
|
10994
|
-
...g
|
|
10992
|
+
...h
|
|
10995
10993
|
}) => {
|
|
10996
|
-
const v = I.useId(), b = h
|
|
10994
|
+
const { watch: m, setValue: g } = Bl() ?? {}, v = I.useId(), b = m(h.name), x = I.useRef(null), {
|
|
10997
10995
|
memoDaysOfMonth: w,
|
|
10998
10996
|
firstDayOfMonth: y,
|
|
10999
10997
|
selectedDay: E,
|
|
@@ -11005,14 +11003,14 @@ const XR = {
|
|
|
11005
11003
|
onBlurInput: z,
|
|
11006
11004
|
onChangeMonth: J
|
|
11007
11005
|
} = vD(p ?? b), { isCalendarOpen: L, toggleCalendar: Y, calendarSetter: F, isMonthOpen: B, toggleMonthDropdown: Q, isYearsOpen: re, toggleYearDropdown: P } = BR();
|
|
11008
|
-
return
|
|
11006
|
+
return Tf(x, () => F(!1)), /* @__PURE__ */ C.jsx(
|
|
11009
11007
|
Xt,
|
|
11010
11008
|
{
|
|
11011
11009
|
control: t,
|
|
11012
|
-
name:
|
|
11010
|
+
name: h.name,
|
|
11013
11011
|
render: ({ field: { onChange: _, value: H }, fieldState: { error: V } }) => /* @__PURE__ */ C.jsxs("div", { className: O("relative w-full", e == null ? void 0 : e.rootWrapper), ref: x, children: [
|
|
11014
11012
|
/* @__PURE__ */ C.jsx(Rx, { children: L && /* @__PURE__ */ C.jsxs(
|
|
11015
|
-
|
|
11013
|
+
dd.div,
|
|
11016
11014
|
{
|
|
11017
11015
|
...xD,
|
|
11018
11016
|
className: O(
|
|
@@ -11084,7 +11082,7 @@ const XR = {
|
|
|
11084
11082
|
{
|
|
11085
11083
|
id: v,
|
|
11086
11084
|
value: H,
|
|
11087
|
-
name:
|
|
11085
|
+
name: h.name,
|
|
11088
11086
|
format: i,
|
|
11089
11087
|
allowEmptyFormatting: o,
|
|
11090
11088
|
mask: s,
|
|
@@ -11094,7 +11092,7 @@ const XR = {
|
|
|
11094
11092
|
),
|
|
11095
11093
|
onFocus: () => F(!0),
|
|
11096
11094
|
onBlur: (K) => {
|
|
11097
|
-
z(K.target.value, _), K.target.value ||
|
|
11095
|
+
z(K.target.value, _), K.target.value || g(h.name, "");
|
|
11098
11096
|
}
|
|
11099
11097
|
}
|
|
11100
11098
|
),
|
|
@@ -11136,7 +11134,7 @@ const XR = {
|
|
|
11136
11134
|
"image/png": [],
|
|
11137
11135
|
"application/pdf": []
|
|
11138
11136
|
}
|
|
11139
|
-
},
|
|
11137
|
+
}, Xc = {
|
|
11140
11138
|
FileInvalidType: "file-invalid-type",
|
|
11141
11139
|
FileTooLarge: "file-too-large",
|
|
11142
11140
|
FileTooSmall: "file-too-small",
|
|
@@ -11176,7 +11174,7 @@ const XR = {
|
|
|
11176
11174
|
}
|
|
11177
11175
|
);
|
|
11178
11176
|
});
|
|
11179
|
-
var
|
|
11177
|
+
var md = { exports: {} }, Fs = { exports: {} }, Ve = {};
|
|
11180
11178
|
/** @license React v16.13.1
|
|
11181
11179
|
* react-is.production.min.js
|
|
11182
11180
|
*
|
|
@@ -11352,9 +11350,9 @@ object-assign
|
|
|
11352
11350
|
(c) Sindre Sorhus
|
|
11353
11351
|
@license MIT
|
|
11354
11352
|
*/
|
|
11355
|
-
var
|
|
11353
|
+
var Yc, cg;
|
|
11356
11354
|
function RD() {
|
|
11357
|
-
if (cg) return
|
|
11355
|
+
if (cg) return Yc;
|
|
11358
11356
|
cg = 1;
|
|
11359
11357
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
11360
11358
|
function r(o) {
|
|
@@ -11384,7 +11382,7 @@ function RD() {
|
|
|
11384
11382
|
return !1;
|
|
11385
11383
|
}
|
|
11386
11384
|
}
|
|
11387
|
-
return
|
|
11385
|
+
return Yc = i() ? Object.assign : function(o, s) {
|
|
11388
11386
|
for (var a, l = r(o), c, u = 1; u < arguments.length; u++) {
|
|
11389
11387
|
a = Object(arguments[u]);
|
|
11390
11388
|
for (var d in a)
|
|
@@ -11396,22 +11394,22 @@ function RD() {
|
|
|
11396
11394
|
}
|
|
11397
11395
|
}
|
|
11398
11396
|
return l;
|
|
11399
|
-
},
|
|
11397
|
+
}, Yc;
|
|
11400
11398
|
}
|
|
11401
|
-
var
|
|
11399
|
+
var Zc, ug;
|
|
11402
11400
|
function Sp() {
|
|
11403
|
-
if (ug) return
|
|
11401
|
+
if (ug) return Zc;
|
|
11404
11402
|
ug = 1;
|
|
11405
11403
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
11406
|
-
return
|
|
11404
|
+
return Zc = t, Zc;
|
|
11407
11405
|
}
|
|
11408
|
-
var
|
|
11406
|
+
var Jc, dg;
|
|
11409
11407
|
function A1() {
|
|
11410
|
-
return dg || (dg = 1,
|
|
11408
|
+
return dg || (dg = 1, Jc = Function.call.bind(Object.prototype.hasOwnProperty)), Jc;
|
|
11411
11409
|
}
|
|
11412
|
-
var
|
|
11410
|
+
var Uc, fg;
|
|
11413
11411
|
function DD() {
|
|
11414
|
-
if (fg) return
|
|
11412
|
+
if (fg) return Uc;
|
|
11415
11413
|
fg = 1;
|
|
11416
11414
|
var t = function() {
|
|
11417
11415
|
};
|
|
@@ -11456,11 +11454,11 @@ function DD() {
|
|
|
11456
11454
|
}
|
|
11457
11455
|
return i.resetWarningCache = function() {
|
|
11458
11456
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
11459
|
-
},
|
|
11457
|
+
}, Uc = i, Uc;
|
|
11460
11458
|
}
|
|
11461
|
-
var
|
|
11459
|
+
var Kc, pg;
|
|
11462
11460
|
function ND() {
|
|
11463
|
-
if (pg) return
|
|
11461
|
+
if (pg) return Kc;
|
|
11464
11462
|
pg = 1;
|
|
11465
11463
|
var t = E1(), e = RD(), n = Sp(), r = A1(), i = DD(), o = function() {
|
|
11466
11464
|
};
|
|
@@ -11475,7 +11473,7 @@ function ND() {
|
|
|
11475
11473
|
function s() {
|
|
11476
11474
|
return null;
|
|
11477
11475
|
}
|
|
11478
|
-
return
|
|
11476
|
+
return Kc = function(a, l) {
|
|
11479
11477
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
11480
11478
|
function d(P) {
|
|
11481
11479
|
var _ = P && (c && P[c] || P[u]);
|
|
@@ -11777,18 +11775,18 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
11777
11775
|
return !P.constructor || !P.constructor.name ? f : P.constructor.name;
|
|
11778
11776
|
}
|
|
11779
11777
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
11780
|
-
},
|
|
11778
|
+
}, Kc;
|
|
11781
11779
|
}
|
|
11782
|
-
var
|
|
11780
|
+
var qc, hg;
|
|
11783
11781
|
function FD() {
|
|
11784
|
-
if (hg) return
|
|
11782
|
+
if (hg) return qc;
|
|
11785
11783
|
hg = 1;
|
|
11786
11784
|
var t = Sp();
|
|
11787
11785
|
function e() {
|
|
11788
11786
|
}
|
|
11789
11787
|
function n() {
|
|
11790
11788
|
}
|
|
11791
|
-
return n.resetWarningCache = e,
|
|
11789
|
+
return n.resetWarningCache = e, qc = function() {
|
|
11792
11790
|
function r(s, a, l, c, u, d) {
|
|
11793
11791
|
if (d !== t) {
|
|
11794
11792
|
var f = new Error(
|
|
@@ -11825,14 +11823,14 @@ function FD() {
|
|
|
11825
11823
|
resetWarningCache: e
|
|
11826
11824
|
};
|
|
11827
11825
|
return o.PropTypes = o, o;
|
|
11828
|
-
},
|
|
11826
|
+
}, qc;
|
|
11829
11827
|
}
|
|
11830
11828
|
if (process.env.NODE_ENV !== "production") {
|
|
11831
11829
|
var VD = E1(), BD = !0;
|
|
11832
|
-
|
|
11830
|
+
md.exports = ND()(VD.isElement, BD);
|
|
11833
11831
|
} else
|
|
11834
|
-
|
|
11835
|
-
var LD =
|
|
11832
|
+
md.exports = FD()();
|
|
11833
|
+
var LD = md.exports;
|
|
11836
11834
|
const We = /* @__PURE__ */ SI(LD), jD = /* @__PURE__ */ new Map([
|
|
11837
11835
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
11838
11836
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
@@ -13083,7 +13081,7 @@ function Ta(t) {
|
|
|
13083
13081
|
return typeof t == "object" && t !== null;
|
|
13084
13082
|
}
|
|
13085
13083
|
function $D(t) {
|
|
13086
|
-
return
|
|
13084
|
+
return gd(t.target.files).map((e) => $i(e));
|
|
13087
13085
|
}
|
|
13088
13086
|
function XD(t) {
|
|
13089
13087
|
return di(this, void 0, void 0, function* () {
|
|
@@ -13093,19 +13091,19 @@ function XD(t) {
|
|
|
13093
13091
|
function YD(t, e) {
|
|
13094
13092
|
return di(this, void 0, void 0, function* () {
|
|
13095
13093
|
if (t.items) {
|
|
13096
|
-
const n =
|
|
13094
|
+
const n = gd(t.items).filter((i) => i.kind === "file");
|
|
13097
13095
|
if (e !== "drop")
|
|
13098
13096
|
return n;
|
|
13099
13097
|
const r = yield Promise.all(n.map(ZD));
|
|
13100
13098
|
return gg(T1(r));
|
|
13101
13099
|
}
|
|
13102
|
-
return gg(
|
|
13100
|
+
return gg(gd(t.files).map((n) => $i(n)));
|
|
13103
13101
|
});
|
|
13104
13102
|
}
|
|
13105
13103
|
function gg(t) {
|
|
13106
13104
|
return t.filter((e) => zD.indexOf(e.name) === -1);
|
|
13107
13105
|
}
|
|
13108
|
-
function
|
|
13106
|
+
function gd(t) {
|
|
13109
13107
|
if (t === null)
|
|
13110
13108
|
return [];
|
|
13111
13109
|
const e = [];
|
|
@@ -13185,7 +13183,7 @@ function UD(t) {
|
|
|
13185
13183
|
});
|
|
13186
13184
|
});
|
|
13187
13185
|
}
|
|
13188
|
-
var
|
|
13186
|
+
var Qc = function(t, e) {
|
|
13189
13187
|
if (t && e) {
|
|
13190
13188
|
var n = Array.isArray(e) ? e : e.split(",");
|
|
13191
13189
|
if (n.length === 0)
|
|
@@ -13209,7 +13207,7 @@ function qD(t) {
|
|
|
13209
13207
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
13210
13208
|
}
|
|
13211
13209
|
function QD(t) {
|
|
13212
|
-
if (Array.isArray(t)) return
|
|
13210
|
+
if (Array.isArray(t)) return vd(t);
|
|
13213
13211
|
}
|
|
13214
13212
|
function yg(t, e) {
|
|
13215
13213
|
var n = Object.keys(t);
|
|
@@ -13244,13 +13242,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13244
13242
|
}
|
|
13245
13243
|
function O1(t, e) {
|
|
13246
13244
|
if (t) {
|
|
13247
|
-
if (typeof t == "string") return
|
|
13245
|
+
if (typeof t == "string") return vd(t, e);
|
|
13248
13246
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
13249
13247
|
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
|
|
13250
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
13248
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vd(t, e);
|
|
13251
13249
|
}
|
|
13252
13250
|
}
|
|
13253
|
-
function
|
|
13251
|
+
function vd(t, e) {
|
|
13254
13252
|
(e == null || e > t.length) && (e = t.length);
|
|
13255
13253
|
for (var n = 0, r = new Array(e); n < e; n++)
|
|
13256
13254
|
r[n] = t[n];
|
|
@@ -13278,7 +13276,7 @@ function tN(t, e) {
|
|
|
13278
13276
|
function nN(t) {
|
|
13279
13277
|
if (Array.isArray(t)) return t;
|
|
13280
13278
|
}
|
|
13281
|
-
var rN = typeof
|
|
13279
|
+
var rN = typeof Qc == "function" ? Qc : Qc.default, iN = "file-invalid-type", oN = "file-too-large", sN = "file-too-small", aN = "too-many-files", lN = function() {
|
|
13282
13280
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = e.split(","), r = n.length > 1 ? "one of ".concat(n.join(", ")) : n[0];
|
|
13283
13281
|
return {
|
|
13284
13282
|
code: iN,
|
|
@@ -13408,9 +13406,9 @@ function EN(t) {
|
|
|
13408
13406
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
13409
13407
|
}
|
|
13410
13408
|
function AN(t) {
|
|
13411
|
-
if (Array.isArray(t)) return
|
|
13409
|
+
if (Array.isArray(t)) return bd(t);
|
|
13412
13410
|
}
|
|
13413
|
-
function
|
|
13411
|
+
function eu(t, e) {
|
|
13414
13412
|
return MN(t) || kN(t, e) || F1(t, e) || TN();
|
|
13415
13413
|
}
|
|
13416
13414
|
function TN() {
|
|
@@ -13419,13 +13417,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13419
13417
|
}
|
|
13420
13418
|
function F1(t, e) {
|
|
13421
13419
|
if (t) {
|
|
13422
|
-
if (typeof t == "string") return
|
|
13420
|
+
if (typeof t == "string") return bd(t, e);
|
|
13423
13421
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
13424
13422
|
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
|
|
13425
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
13423
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return bd(t, e);
|
|
13426
13424
|
}
|
|
13427
13425
|
}
|
|
13428
|
-
function
|
|
13426
|
+
function bd(t, e) {
|
|
13429
13427
|
(e == null || e > t.length) && (e = t.length);
|
|
13430
13428
|
for (var n = 0, r = new Array(e); n < e; n++)
|
|
13431
13429
|
r[n] = t[n];
|
|
@@ -13467,14 +13465,14 @@ function Je(t) {
|
|
|
13467
13465
|
for (var e = 1; e < arguments.length; e++) {
|
|
13468
13466
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
13469
13467
|
e % 2 ? Ig(Object(n), !0).forEach(function(r) {
|
|
13470
|
-
|
|
13468
|
+
yd(t, r, n[r]);
|
|
13471
13469
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Ig(Object(n)).forEach(function(r) {
|
|
13472
13470
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13473
13471
|
});
|
|
13474
13472
|
}
|
|
13475
13473
|
return t;
|
|
13476
13474
|
}
|
|
13477
|
-
function
|
|
13475
|
+
function yd(t, e, n) {
|
|
13478
13476
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
13479
13477
|
}
|
|
13480
13478
|
function Ma(t, e) {
|
|
@@ -13690,7 +13688,7 @@ Ip.propTypes = {
|
|
|
13690
13688
|
*/
|
|
13691
13689
|
validator: We.func
|
|
13692
13690
|
};
|
|
13693
|
-
var
|
|
13691
|
+
var xd = {
|
|
13694
13692
|
isFocused: !1,
|
|
13695
13693
|
isFileDialogActive: !1,
|
|
13696
13694
|
isDragActive: !1,
|
|
@@ -13708,7 +13706,7 @@ function B1() {
|
|
|
13708
13706
|
return typeof g == "function" ? g : Eg;
|
|
13709
13707
|
}, [g]), J = we(function() {
|
|
13710
13708
|
return typeof m == "function" ? m : Eg;
|
|
13711
|
-
}, [m]), L = de(null), Y = de(null), F =
|
|
13709
|
+
}, [m]), L = de(null), Y = de(null), F = vf(PN, xd), B = eu(F, 2), Q = B[0], re = B[1], P = Q.isFocused, _ = Q.isFileDialogActive, H = de(typeof window < "u" && window.isSecureContext && v && hN()), V = function() {
|
|
13712
13710
|
!H.current && _ && setTimeout(function() {
|
|
13713
13711
|
if (Y.current) {
|
|
13714
13712
|
var U = Y.current.files;
|
|
@@ -13781,14 +13779,14 @@ function B1() {
|
|
|
13781
13779
|
}, [L, u, A]), xe = fe(function(N, U) {
|
|
13782
13780
|
var ye = [], Ie = [];
|
|
13783
13781
|
N.forEach(function(nt) {
|
|
13784
|
-
var Mr = P1(nt, G), gn =
|
|
13785
|
-
if (Or && bi && !
|
|
13782
|
+
var Mr = P1(nt, G), gn = eu(Mr, 2), Or = gn[0], lo = gn[1], gi = R1(nt, s, o), vi = eu(gi, 2), bi = vi[0], xc = vi[1], Cc = R ? R(nt) : null;
|
|
13783
|
+
if (Or && bi && !Cc)
|
|
13786
13784
|
ye.push(nt);
|
|
13787
13785
|
else {
|
|
13788
|
-
var
|
|
13789
|
-
|
|
13786
|
+
var wc = [lo, xc];
|
|
13787
|
+
Cc && (wc = wc.concat(Cc)), Ie.push({
|
|
13790
13788
|
file: nt,
|
|
13791
|
-
errors:
|
|
13789
|
+
errors: wc.filter(function(YS) {
|
|
13792
13790
|
return YS;
|
|
13793
13791
|
})
|
|
13794
13792
|
});
|
|
@@ -13859,8 +13857,8 @@ function B1() {
|
|
|
13859
13857
|
A && U.stopPropagation();
|
|
13860
13858
|
}, q = we(function() {
|
|
13861
13859
|
return function() {
|
|
13862
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop,
|
|
13863
|
-
return Je(Je(
|
|
13860
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.role, nt = N.onKeyDown, Mr = N.onFocus, gn = N.onBlur, Or = N.onClick, lo = N.onDragEnter, gi = N.onDragOver, vi = N.onDragLeave, bi = N.onDrop, xc = Ma(N, CN);
|
|
13861
|
+
return Je(Je(yd({
|
|
13864
13862
|
onKeyDown: S(vn(nt, Xe)),
|
|
13865
13863
|
onFocus: S(vn(Mr, ue)),
|
|
13866
13864
|
onBlur: S(vn(gn, ke)),
|
|
@@ -13872,13 +13870,13 @@ function B1() {
|
|
|
13872
13870
|
role: typeof Ie == "string" && Ie !== "" ? Ie : "presentation"
|
|
13873
13871
|
}, ye, L), !r && !y ? {
|
|
13874
13872
|
tabIndex: 0
|
|
13875
|
-
} : {}),
|
|
13873
|
+
} : {}), xc);
|
|
13876
13874
|
};
|
|
13877
13875
|
}, [L, Xe, ue, ke, wt, ie, ae, he, Re, y, E, r]), W = fe(function(N) {
|
|
13878
13876
|
N.stopPropagation();
|
|
13879
13877
|
}, []), j = we(function() {
|
|
13880
13878
|
return function() {
|
|
13881
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn =
|
|
13879
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, U = N.refKey, ye = U === void 0 ? "ref" : U, Ie = N.onChange, nt = N.onClick, Mr = Ma(N, wN), gn = yd({
|
|
13882
13880
|
accept: G,
|
|
13883
13881
|
multiple: a,
|
|
13884
13882
|
type: "file",
|
|
@@ -13921,7 +13919,7 @@ function PN(t, e) {
|
|
|
13921
13919
|
isFocused: !1
|
|
13922
13920
|
});
|
|
13923
13921
|
case "openDialog":
|
|
13924
|
-
return Je(Je({},
|
|
13922
|
+
return Je(Je({}, xd), {}, {
|
|
13925
13923
|
isFileDialogActive: !0
|
|
13926
13924
|
});
|
|
13927
13925
|
case "closeDialog":
|
|
@@ -13941,7 +13939,7 @@ function PN(t, e) {
|
|
|
13941
13939
|
isDragReject: e.isDragReject
|
|
13942
13940
|
});
|
|
13943
13941
|
case "reset":
|
|
13944
|
-
return Je({},
|
|
13942
|
+
return Je({}, xd);
|
|
13945
13943
|
default:
|
|
13946
13944
|
return t;
|
|
13947
13945
|
}
|
|
@@ -13961,19 +13959,19 @@ const RN = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
|
|
|
13961
13959
|
i((m) => ({ ...m, [p.name]: "success" }));
|
|
13962
13960
|
}, h.readAsArrayBuffer(p);
|
|
13963
13961
|
}), (f = (d = c[0]) == null ? void 0 : d.errors[0]) == null ? void 0 : f.code) {
|
|
13964
|
-
case
|
|
13962
|
+
case Xc.FileInvalidType:
|
|
13965
13963
|
Mo({
|
|
13966
13964
|
intent: "error",
|
|
13967
13965
|
text: "Неверный формат файла. Загрузите в формате jpg/png/pdf"
|
|
13968
13966
|
});
|
|
13969
13967
|
break;
|
|
13970
|
-
case
|
|
13968
|
+
case Xc.FileTooLarge:
|
|
13971
13969
|
Mo({
|
|
13972
13970
|
intent: "error",
|
|
13973
13971
|
text: `Файл слишком большой. Максимальный размер ${t.maxSize} МБ`
|
|
13974
13972
|
});
|
|
13975
13973
|
break;
|
|
13976
|
-
case
|
|
13974
|
+
case Xc.TooManyFiles:
|
|
13977
13975
|
Mo({
|
|
13978
13976
|
intent: "error",
|
|
13979
13977
|
text: `Вы загрузили слишком много файлов. Максимальное количество ${t.maxFiles}`
|
|
@@ -14148,16 +14146,16 @@ function jN(t, e) {
|
|
|
14148
14146
|
return a;
|
|
14149
14147
|
}
|
|
14150
14148
|
}
|
|
14151
|
-
function
|
|
14149
|
+
function Cd(t, e) {
|
|
14152
14150
|
(e == null || e > t.length) && (e = t.length);
|
|
14153
14151
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
14154
14152
|
return r;
|
|
14155
14153
|
}
|
|
14156
14154
|
function j1(t, e) {
|
|
14157
14155
|
if (t) {
|
|
14158
|
-
if (typeof t == "string") return
|
|
14156
|
+
if (typeof t == "string") return Cd(t, e);
|
|
14159
14157
|
var n = {}.toString.call(t).slice(8, -1);
|
|
14160
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
14158
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Cd(t, e) : void 0;
|
|
14161
14159
|
}
|
|
14162
14160
|
}
|
|
14163
14161
|
function GN() {
|
|
@@ -14230,10 +14228,10 @@ function $N(t, e, n) {
|
|
|
14230
14228
|
writable: !1
|
|
14231
14229
|
}), t;
|
|
14232
14230
|
}
|
|
14233
|
-
function
|
|
14234
|
-
return
|
|
14231
|
+
function wd(t, e) {
|
|
14232
|
+
return wd = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
14235
14233
|
return n.__proto__ = r, n;
|
|
14236
|
-
},
|
|
14234
|
+
}, wd(t, e);
|
|
14237
14235
|
}
|
|
14238
14236
|
function XN(t, e) {
|
|
14239
14237
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -14245,7 +14243,7 @@ function XN(t, e) {
|
|
|
14245
14243
|
}
|
|
14246
14244
|
}), Object.defineProperty(t, "prototype", {
|
|
14247
14245
|
writable: !1
|
|
14248
|
-
}), e &&
|
|
14246
|
+
}), e && wd(t, e);
|
|
14249
14247
|
}
|
|
14250
14248
|
function Oa(t) {
|
|
14251
14249
|
return Oa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
@@ -14283,7 +14281,7 @@ function JN(t) {
|
|
|
14283
14281
|
};
|
|
14284
14282
|
}
|
|
14285
14283
|
function UN(t) {
|
|
14286
|
-
if (Array.isArray(t)) return
|
|
14284
|
+
if (Array.isArray(t)) return Cd(t);
|
|
14287
14285
|
}
|
|
14288
14286
|
function KN(t) {
|
|
14289
14287
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
@@ -14336,7 +14334,7 @@ var n2 = /* @__PURE__ */ function() {
|
|
|
14336
14334
|
return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
|
|
14337
14335
|
}), this.tags = [], this.ctr = 0;
|
|
14338
14336
|
}, t;
|
|
14339
|
-
}(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs,
|
|
14337
|
+
}(), St = "-ms-", Pa = "-moz-", De = "-webkit-", z1 = "comm", Ap = "rule", Tp = "decl", r2 = "@import", _1 = "@keyframes", i2 = "@layer", o2 = Math.abs, Kl = String.fromCharCode, s2 = Object.assign;
|
|
14340
14338
|
function a2(t, e) {
|
|
14341
14339
|
return vt(t, 0) ^ 45 ? (((e << 2 ^ vt(t, 0)) << 2 ^ vt(t, 1)) << 2 ^ vt(t, 2)) << 2 ^ vt(t, 3) : 0;
|
|
14342
14340
|
}
|
|
@@ -14349,7 +14347,7 @@ function l2(t, e) {
|
|
|
14349
14347
|
function Ne(t, e, n) {
|
|
14350
14348
|
return t.replace(e, n);
|
|
14351
14349
|
}
|
|
14352
|
-
function
|
|
14350
|
+
function Sd(t, e) {
|
|
14353
14351
|
return t.indexOf(e);
|
|
14354
14352
|
}
|
|
14355
14353
|
function vt(t, e) {
|
|
@@ -14370,21 +14368,21 @@ function Bs(t, e) {
|
|
|
14370
14368
|
function c2(t, e) {
|
|
14371
14369
|
return t.map(e).join("");
|
|
14372
14370
|
}
|
|
14373
|
-
var
|
|
14374
|
-
function
|
|
14375
|
-
return { value: t, root: e, parent: n, type: r, props: i, children: o, line:
|
|
14371
|
+
var ql = 1, Xi = 1, W1 = 0, zt = 0, st = 0, oo = "";
|
|
14372
|
+
function Ql(t, e, n, r, i, o, s) {
|
|
14373
|
+
return { value: t, root: e, parent: n, type: r, props: i, children: o, line: ql, column: Xi, length: s, return: "" };
|
|
14376
14374
|
}
|
|
14377
14375
|
function go(t, e) {
|
|
14378
|
-
return s2(
|
|
14376
|
+
return s2(Ql("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
14379
14377
|
}
|
|
14380
14378
|
function u2() {
|
|
14381
14379
|
return st;
|
|
14382
14380
|
}
|
|
14383
14381
|
function d2() {
|
|
14384
|
-
return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1,
|
|
14382
|
+
return st = zt > 0 ? vt(oo, --zt) : 0, Xi--, st === 10 && (Xi = 1, ql--), st;
|
|
14385
14383
|
}
|
|
14386
14384
|
function Wt() {
|
|
14387
|
-
return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1,
|
|
14385
|
+
return st = zt < W1 ? vt(oo, zt++) : 0, Xi++, st === 10 && (Xi = 1, ql++), st;
|
|
14388
14386
|
}
|
|
14389
14387
|
function On() {
|
|
14390
14388
|
return vt(oo, zt);
|
|
@@ -14428,13 +14426,13 @@ function Ko(t) {
|
|
|
14428
14426
|
return 0;
|
|
14429
14427
|
}
|
|
14430
14428
|
function $1(t) {
|
|
14431
|
-
return
|
|
14429
|
+
return ql = Xi = 1, W1 = wn(oo = t), zt = 0, [];
|
|
14432
14430
|
}
|
|
14433
14431
|
function X1(t) {
|
|
14434
14432
|
return oo = "", t;
|
|
14435
14433
|
}
|
|
14436
14434
|
function ia(t) {
|
|
14437
|
-
return H1(Cs(zt - 1,
|
|
14435
|
+
return H1(Cs(zt - 1, Id(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
14438
14436
|
}
|
|
14439
14437
|
function f2(t) {
|
|
14440
14438
|
for (; (st = On()) && st < 33; )
|
|
@@ -14446,17 +14444,17 @@ function p2(t, e) {
|
|
|
14446
14444
|
;
|
|
14447
14445
|
return Cs(t, ra() + (e < 6 && On() == 32 && Wt() == 32));
|
|
14448
14446
|
}
|
|
14449
|
-
function
|
|
14447
|
+
function Id(t) {
|
|
14450
14448
|
for (; Wt(); )
|
|
14451
14449
|
switch (st) {
|
|
14452
14450
|
case t:
|
|
14453
14451
|
return zt;
|
|
14454
14452
|
case 34:
|
|
14455
14453
|
case 39:
|
|
14456
|
-
t !== 34 && t !== 39 &&
|
|
14454
|
+
t !== 34 && t !== 39 && Id(st);
|
|
14457
14455
|
break;
|
|
14458
14456
|
case 40:
|
|
14459
|
-
t === 41 &&
|
|
14457
|
+
t === 41 && Id(t);
|
|
14460
14458
|
break;
|
|
14461
14459
|
case 92:
|
|
14462
14460
|
Wt();
|
|
@@ -14468,7 +14466,7 @@ function h2(t, e) {
|
|
|
14468
14466
|
for (; Wt() && t + st !== 57; )
|
|
14469
14467
|
if (t + st === 84 && On() === 47)
|
|
14470
14468
|
break;
|
|
14471
|
-
return "/*" + Cs(e, zt - 1) + "*" +
|
|
14469
|
+
return "/*" + Cs(e, zt - 1) + "*" + Kl(t === 47 ? t : Wt());
|
|
14472
14470
|
}
|
|
14473
14471
|
function m2(t) {
|
|
14474
14472
|
for (; !Ko(On()); )
|
|
@@ -14483,7 +14481,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
|
|
|
14483
14481
|
switch (h = b, b = Wt()) {
|
|
14484
14482
|
case 40:
|
|
14485
14483
|
if (h != 108 && vt(A, d - 1) == 58) {
|
|
14486
|
-
|
|
14484
|
+
Sd(A += Ne(ia(b), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
14487
14485
|
break;
|
|
14488
14486
|
}
|
|
14489
14487
|
case 34:
|
|
@@ -14551,7 +14549,7 @@ function oa(t, e, n, r, i, o, s, a, l) {
|
|
|
14551
14549
|
else if (b == 125 && m++ == 0 && d2() == 125)
|
|
14552
14550
|
continue;
|
|
14553
14551
|
}
|
|
14554
|
-
switch (A +=
|
|
14552
|
+
switch (A += Kl(b), b * m) {
|
|
14555
14553
|
case 38:
|
|
14556
14554
|
v = u > 0 ? 1 : (A += "\f", -1);
|
|
14557
14555
|
break;
|
|
@@ -14571,13 +14569,13 @@ function kg(t, e, n, r, i, o, s, a, l, c, u) {
|
|
|
14571
14569
|
for (var d = i - 1, f = i === 0 ? o : [""], p = kp(f), h = 0, m = 0, g = 0; h < r; ++h)
|
|
14572
14570
|
for (var v = 0, b = Uo(t, d + 1, d = o2(m = s[h])), x = t; v < p; ++v)
|
|
14573
14571
|
(x = H1(m > 0 ? f[v] + " " + b : Ne(b, /&\f/g, f[v]))) && (l[g++] = x);
|
|
14574
|
-
return
|
|
14572
|
+
return Ql(t, e, n, i === 0 ? Ap : a, l, c, u);
|
|
14575
14573
|
}
|
|
14576
14574
|
function v2(t, e, n) {
|
|
14577
|
-
return
|
|
14575
|
+
return Ql(t, e, n, z1, Kl(u2()), Uo(t, 2, -2), 0);
|
|
14578
14576
|
}
|
|
14579
14577
|
function Mg(t, e, n, r) {
|
|
14580
|
-
return
|
|
14578
|
+
return Ql(t, e, n, Tp, Uo(t, 0, r), Uo(t, r + 1, -1), r);
|
|
14581
14579
|
}
|
|
14582
14580
|
function Vi(t, e) {
|
|
14583
14581
|
for (var n = "", r = kp(t), i = 0; i < r; i++)
|
|
@@ -14639,7 +14637,7 @@ var w2 = function(e, n, r) {
|
|
|
14639
14637
|
break;
|
|
14640
14638
|
}
|
|
14641
14639
|
default:
|
|
14642
|
-
e[r] +=
|
|
14640
|
+
e[r] += Kl(i);
|
|
14643
14641
|
}
|
|
14644
14642
|
while (i = Wt());
|
|
14645
14643
|
return e;
|
|
@@ -14751,13 +14749,13 @@ function Y1(t, e) {
|
|
|
14751
14749
|
case 102:
|
|
14752
14750
|
return Ne(t, /(.+:)(.+)-([^]+)/, "$1" + De + "$2-$3$1" + Pa + (vt(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
|
|
14753
14751
|
case 115:
|
|
14754
|
-
return ~
|
|
14752
|
+
return ~Sd(t, "stretch") ? Y1(Ne(t, "stretch", "fill-available"), e) + t : t;
|
|
14755
14753
|
}
|
|
14756
14754
|
break;
|
|
14757
14755
|
case 4949:
|
|
14758
14756
|
if (vt(t, e + 1) !== 115) break;
|
|
14759
14757
|
case 6444:
|
|
14760
|
-
switch (vt(t, wn(t) - 3 - (~
|
|
14758
|
+
switch (vt(t, wn(t) - 3 - (~Sd(t, "!important") && 10))) {
|
|
14761
14759
|
case 107:
|
|
14762
14760
|
return Ne(t, ":", ":" + De) + t;
|
|
14763
14761
|
case 101:
|
|
@@ -14853,7 +14851,7 @@ var T2 = function(e, n, r, i) {
|
|
|
14853
14851
|
insert: l
|
|
14854
14852
|
};
|
|
14855
14853
|
return h.sheet.hydrate(a), h;
|
|
14856
|
-
},
|
|
14854
|
+
}, Ed = { exports: {} }, Le = {};
|
|
14857
14855
|
/** @license React v16.13.1
|
|
14858
14856
|
* react-is.production.min.js
|
|
14859
14857
|
*
|
|
@@ -15020,8 +15018,8 @@ function P2() {
|
|
|
15020
15018
|
je.AsyncMode = y, je.ConcurrentMode = E, je.ContextConsumer = A, je.ContextProvider = T, je.Element = R, je.ForwardRef = G, je.Fragment = X, je.Lazy = z, je.Memo = J, je.Portal = L, je.Profiler = Y, je.StrictMode = F, je.Suspense = B, je.isAsyncMode = re, je.isConcurrentMode = P, je.isContextConsumer = _, je.isContextProvider = H, je.isElement = V, je.isForwardRef = K, je.isFragment = se, je.isLazy = ne, je.isMemo = ie, je.isPortal = ae, je.isProfiler = he, je.isStrictMode = xe, je.isSuspense = Re, je.isValidElementType = x, je.typeOf = w;
|
|
15021
15019
|
}()), je;
|
|
15022
15020
|
}
|
|
15023
|
-
process.env.NODE_ENV === "production" ?
|
|
15024
|
-
var R2 =
|
|
15021
|
+
process.env.NODE_ENV === "production" ? Ed.exports = O2() : Ed.exports = P2();
|
|
15022
|
+
var R2 = Ed.exports, Z1 = R2, D2 = {
|
|
15025
15023
|
$$typeof: !0,
|
|
15026
15024
|
render: !0,
|
|
15027
15025
|
defaultProps: !0,
|
|
@@ -15138,7 +15136,7 @@ var j2 = {
|
|
|
15138
15136
|
return e.charCodeAt(1) === 45;
|
|
15139
15137
|
}, Dg = function(e) {
|
|
15140
15138
|
return e != null && typeof e != "boolean";
|
|
15141
|
-
},
|
|
15139
|
+
}, tu = /* @__PURE__ */ C2(function(t) {
|
|
15142
15140
|
return K1(t) ? t : t.replace(z2, "-$&").toLowerCase();
|
|
15143
15141
|
}), Ng = function(e, n) {
|
|
15144
15142
|
switch (e) {
|
|
@@ -15208,19 +15206,19 @@ function W2(t, e, n) {
|
|
|
15208
15206
|
var s = n[o];
|
|
15209
15207
|
if (typeof s != "object") {
|
|
15210
15208
|
var a = s;
|
|
15211
|
-
Dg(a) && (r +=
|
|
15209
|
+
Dg(a) && (r += tu(o) + ":" + Ng(o, a) + ";");
|
|
15212
15210
|
} else {
|
|
15213
15211
|
if (o === "NO_COMPONENT_SELECTOR" && G2)
|
|
15214
15212
|
throw new Error(H2);
|
|
15215
15213
|
if (Array.isArray(s) && typeof s[0] == "string" && e == null)
|
|
15216
15214
|
for (var l = 0; l < s.length; l++)
|
|
15217
|
-
Dg(s[l]) && (r +=
|
|
15215
|
+
Dg(s[l]) && (r += tu(o) + ":" + Ng(o, s[l]) + ";");
|
|
15218
15216
|
else {
|
|
15219
15217
|
var c = qo(t, e, s);
|
|
15220
15218
|
switch (o) {
|
|
15221
15219
|
case "animation":
|
|
15222
15220
|
case "animationName": {
|
|
15223
|
-
r +=
|
|
15221
|
+
r += tu(o) + ":" + c + ";";
|
|
15224
15222
|
break;
|
|
15225
15223
|
}
|
|
15226
15224
|
default:
|
|
@@ -15278,11 +15276,11 @@ var J2 = function(e) {
|
|
|
15278
15276
|
var i = Me(Q1);
|
|
15279
15277
|
return e(n, i, r);
|
|
15280
15278
|
});
|
|
15281
|
-
}, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty,
|
|
15279
|
+
}, U2 = /* @__PURE__ */ I.createContext({}), Mp = {}.hasOwnProperty, Ad = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", K2 = function(e, n) {
|
|
15282
15280
|
var r = {};
|
|
15283
15281
|
for (var i in n)
|
|
15284
15282
|
Mp.call(n, i) && (r[i] = n[i]);
|
|
15285
|
-
return r[
|
|
15283
|
+
return r[Ad] = e, r;
|
|
15286
15284
|
}, q2 = function(e) {
|
|
15287
15285
|
var n = e.cache, r = e.serialized, i = e.isStringTag;
|
|
15288
15286
|
return U1(n, r, i), Y2(function() {
|
|
@@ -15293,13 +15291,13 @@ var J2 = function(e) {
|
|
|
15293
15291
|
function(t, e, n) {
|
|
15294
15292
|
var r = t.css;
|
|
15295
15293
|
typeof r == "string" && e.registered[r] !== void 0 && (r = e.registered[r]);
|
|
15296
|
-
var i = t[
|
|
15294
|
+
var i = t[Ad], o = [r], s = "";
|
|
15297
15295
|
typeof t.className == "string" ? s = V2(e.registered, o, t.className) : t.className != null && (s = t.className + " ");
|
|
15298
15296
|
var a = q1(o, void 0, I.useContext(U2));
|
|
15299
15297
|
s += e.key + "-" + a.name;
|
|
15300
15298
|
var l = {};
|
|
15301
15299
|
for (var c in t)
|
|
15302
|
-
Mp.call(t, c) && c !== "css" && c !==
|
|
15300
|
+
Mp.call(t, c) && c !== "css" && c !== Ad && !Z2 && (l[c] = t[c]);
|
|
15303
15301
|
return l.className = s, n && (l.ref = n), /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(q2, {
|
|
15304
15302
|
cache: e,
|
|
15305
15303
|
serialized: a,
|
|
@@ -15339,7 +15337,7 @@ function nF(t, e) {
|
|
|
15339
15337
|
}
|
|
15340
15338
|
}));
|
|
15341
15339
|
}
|
|
15342
|
-
var
|
|
15340
|
+
var Td = Qi, rF = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ra = function() {
|
|
15343
15341
|
};
|
|
15344
15342
|
function iF(t, e) {
|
|
15345
15343
|
return e ? e[0] === "-" ? t + e : t + "__" + e : t;
|
|
@@ -15370,17 +15368,17 @@ var Vg = function(e) {
|
|
|
15370
15368
|
className: i(r ?? {}, s(n, e), a)
|
|
15371
15369
|
};
|
|
15372
15370
|
};
|
|
15373
|
-
function
|
|
15371
|
+
function ec(t) {
|
|
15374
15372
|
return [document.documentElement, document.body, window].indexOf(t) > -1;
|
|
15375
15373
|
}
|
|
15376
15374
|
function sF(t) {
|
|
15377
|
-
return
|
|
15375
|
+
return ec(t) ? window.innerHeight : t.clientHeight;
|
|
15378
15376
|
}
|
|
15379
15377
|
function tC(t) {
|
|
15380
|
-
return
|
|
15378
|
+
return ec(t) ? window.pageYOffset : t.scrollTop;
|
|
15381
15379
|
}
|
|
15382
15380
|
function Da(t, e) {
|
|
15383
|
-
if (
|
|
15381
|
+
if (ec(t)) {
|
|
15384
15382
|
window.scrollTo(0, e);
|
|
15385
15383
|
return;
|
|
15386
15384
|
}
|
|
@@ -15553,7 +15551,7 @@ var rC = function(e) {
|
|
|
15553
15551
|
});
|
|
15554
15552
|
}, iC = /* @__PURE__ */ qe(null), CF = function(e) {
|
|
15555
15553
|
var n = e.children, r = e.minMenuHeight, i = e.maxMenuHeight, o = e.menuPlacement, s = e.menuPosition, a = e.menuShouldScrollIntoView, l = e.theme, c = Me(iC) || {}, u = c.setPortalPlacement, d = de(null), f = Oe(i), p = $n(f, 2), h = p[0], m = p[1], g = Oe(null), v = $n(g, 2), b = v[0], x = v[1], w = l.spacing.controlHeight;
|
|
15556
|
-
return
|
|
15554
|
+
return Td(function() {
|
|
15557
15555
|
var y = d.current;
|
|
15558
15556
|
if (y) {
|
|
15559
15557
|
var E = s === "fixed", A = a && !E, T = bF({
|
|
@@ -15650,7 +15648,7 @@ var rC = function(e) {
|
|
|
15650
15648
|
});
|
|
15651
15649
|
}
|
|
15652
15650
|
}, [i, a, f, v == null ? void 0 : v.offset, v == null ? void 0 : v.rect.left, v == null ? void 0 : v.rect.width]);
|
|
15653
|
-
|
|
15651
|
+
Td(function() {
|
|
15654
15652
|
x();
|
|
15655
15653
|
}, [x]);
|
|
15656
15654
|
var w = fe(function() {
|
|
@@ -15658,7 +15656,7 @@ var rC = function(e) {
|
|
|
15658
15656
|
elementResize: "ResizeObserver" in window
|
|
15659
15657
|
}));
|
|
15660
15658
|
}, [i, x]);
|
|
15661
|
-
|
|
15659
|
+
Td(function() {
|
|
15662
15660
|
w();
|
|
15663
15661
|
}, [w]);
|
|
15664
15662
|
var y = fe(function(A) {
|
|
@@ -15818,7 +15816,7 @@ var zF = process.env.NODE_ENV === "production" ? {
|
|
|
15818
15816
|
color: r ? s.neutral60 : s.neutral20,
|
|
15819
15817
|
padding: a * 2
|
|
15820
15818
|
});
|
|
15821
|
-
},
|
|
15819
|
+
}, nu = function(e) {
|
|
15822
15820
|
var n = e.delay, r = e.offset;
|
|
15823
15821
|
return pe("span", {
|
|
15824
15822
|
css: /* @__PURE__ */ Op({
|
|
@@ -15841,13 +15839,13 @@ var zF = process.env.NODE_ENV === "production" ? {
|
|
|
15841
15839
|
}), "loadingIndicator", {
|
|
15842
15840
|
indicator: !0,
|
|
15843
15841
|
"loading-indicator": !0
|
|
15844
|
-
}), n), pe(
|
|
15842
|
+
}), n), pe(nu, {
|
|
15845
15843
|
delay: 0,
|
|
15846
15844
|
offset: r
|
|
15847
|
-
}), pe(
|
|
15845
|
+
}), pe(nu, {
|
|
15848
15846
|
delay: 160,
|
|
15849
15847
|
offset: !0
|
|
15850
|
-
}), pe(
|
|
15848
|
+
}), pe(nu, {
|
|
15851
15849
|
delay: 320,
|
|
15852
15850
|
offset: !r
|
|
15853
15851
|
}));
|
|
@@ -16119,7 +16117,7 @@ var bV = function(e) {
|
|
|
16119
16117
|
"single-value": !0,
|
|
16120
16118
|
"single-value--is-disabled": r
|
|
16121
16119
|
}), i), n);
|
|
16122
|
-
}, kV = TV,
|
|
16120
|
+
}, kV = TV, tc = {
|
|
16123
16121
|
ClearIndicator: $F,
|
|
16124
16122
|
Control: QF,
|
|
16125
16123
|
DropdownIndicator: HF,
|
|
@@ -16146,7 +16144,7 @@ var bV = function(e) {
|
|
|
16146
16144
|
SingleValue: kV,
|
|
16147
16145
|
ValueContainer: FF
|
|
16148
16146
|
}, MV = function(e) {
|
|
16149
|
-
return me(me({},
|
|
16147
|
+
return me(me({}, tc), e.components);
|
|
16150
16148
|
}, Gg = Number.isNaN || function(e) {
|
|
16151
16149
|
return typeof e == "number" && e !== e;
|
|
16152
16150
|
};
|
|
@@ -16320,7 +16318,7 @@ var NV = process.env.NODE_ENV === "production" ? {
|
|
|
16320
16318
|
"aria-relevant": "additions text",
|
|
16321
16319
|
role: "log"
|
|
16322
16320
|
}, s && !z && L));
|
|
16323
|
-
}, LV = BV,
|
|
16321
|
+
}, LV = BV, kd = [{
|
|
16324
16322
|
base: "A",
|
|
16325
16323
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
16326
16324
|
}, {
|
|
@@ -16572,12 +16570,12 @@ var NV = process.env.NODE_ENV === "production" ? {
|
|
|
16572
16570
|
}, {
|
|
16573
16571
|
base: "z",
|
|
16574
16572
|
letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
16575
|
-
}], jV = new RegExp("[" +
|
|
16573
|
+
}], jV = new RegExp("[" + kd.map(function(t) {
|
|
16576
16574
|
return t.letters;
|
|
16577
16575
|
}).join("") + "]", "g"), dC = {};
|
|
16578
|
-
for (var
|
|
16579
|
-
for (var
|
|
16580
|
-
dC[
|
|
16576
|
+
for (var ru = 0; ru < kd.length; ru++)
|
|
16577
|
+
for (var iu = kd[ru], ou = 0; ou < iu.letters.length; ou++)
|
|
16578
|
+
dC[iu.letters[ou]] = iu.base;
|
|
16581
16579
|
var fC = function(e) {
|
|
16582
16580
|
return e.replace(jV, function(n) {
|
|
16583
16581
|
return dC[n];
|
|
@@ -16854,7 +16852,7 @@ var sB = function(e) {
|
|
|
16854
16852
|
baseUnit: hC,
|
|
16855
16853
|
controlHeight: pB,
|
|
16856
16854
|
menuGutter: hB
|
|
16857
|
-
},
|
|
16855
|
+
}, su = {
|
|
16858
16856
|
borderRadius: fB,
|
|
16859
16857
|
colors: dB,
|
|
16860
16858
|
spacing: mB
|
|
@@ -16983,7 +16981,7 @@ function yB(t, e) {
|
|
|
16983
16981
|
var n = t.focusedOption;
|
|
16984
16982
|
return n && e.indexOf(n) > -1 ? n : e[0];
|
|
16985
16983
|
}
|
|
16986
|
-
var
|
|
16984
|
+
var au = function(e, n) {
|
|
16987
16985
|
var r, i = (r = e.find(function(o) {
|
|
16988
16986
|
return o.data === n;
|
|
16989
16987
|
})) === null || r === void 0 ? void 0 : r.id;
|
|
@@ -17093,7 +17091,7 @@ var xC = function(e) {
|
|
|
17093
17091
|
removedValue: u
|
|
17094
17092
|
});
|
|
17095
17093
|
}, i.getFocusedOptionId = function(l) {
|
|
17096
|
-
return
|
|
17094
|
+
return au(i.state.focusableOptionsWithIds, l);
|
|
17097
17095
|
}, i.getFocusableOptionsWithIds = function() {
|
|
17098
17096
|
return Kg(sa(i.props, i.state.selectValue), i.getElementId("option"));
|
|
17099
17097
|
}, i.getValue = function() {
|
|
@@ -17153,7 +17151,7 @@ var xC = function(e) {
|
|
|
17153
17151
|
return i.focusInput();
|
|
17154
17152
|
}));
|
|
17155
17153
|
}, i.onScroll = function(l) {
|
|
17156
|
-
typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement &&
|
|
17154
|
+
typeof i.props.closeMenuOnScroll == "boolean" ? l.target instanceof HTMLElement && ec(l.target) && i.props.onMenuClose() : typeof i.props.closeMenuOnScroll == "function" && i.props.closeMenuOnScroll(l) && i.props.onMenuClose();
|
|
17157
17155
|
}, i.onCompositionStart = function() {
|
|
17158
17156
|
i.isComposing = !0;
|
|
17159
17157
|
}, i.onCompositionEnd = function() {
|
|
@@ -17298,7 +17296,7 @@ var xC = function(e) {
|
|
|
17298
17296
|
}
|
|
17299
17297
|
}, i.state.instancePrefix = "react-select-" + (i.props.instanceId || ++xB), i.state.selectValue = Vg(r.value), r.menuIsOpen && i.state.selectValue.length) {
|
|
17300
17298
|
var o = i.getFocusableOptionsWithIds(), s = i.buildFocusableOptions(), a = s.indexOf(i.state.selectValue[0]);
|
|
17301
|
-
i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId =
|
|
17299
|
+
i.state.focusableOptionsWithIds = o, i.state.focusedOption = s[a], i.state.focusedOptionId = au(o, s[a]);
|
|
17302
17300
|
}
|
|
17303
17301
|
return i;
|
|
17304
17302
|
}
|
|
@@ -17423,7 +17421,7 @@ var xC = function(e) {
|
|
|
17423
17421
|
// Getters
|
|
17424
17422
|
// ==============================
|
|
17425
17423
|
function() {
|
|
17426
|
-
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(
|
|
17424
|
+
return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(su) : me(me({}, su), this.props.theme) : su;
|
|
17427
17425
|
}
|
|
17428
17426
|
)
|
|
17429
17427
|
}, {
|
|
@@ -17892,7 +17890,7 @@ var xC = function(e) {
|
|
|
17892
17890
|
value: function(i, o) {
|
|
17893
17891
|
var s = o.prevProps, a = o.clearFocusValueOnUpdate, l = o.inputIsHiddenAfterUpdate, c = o.ariaSelection, u = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, h = i.value, m = i.menuIsOpen, g = i.inputValue, v = i.isMulti, b = Vg(h), x = {};
|
|
17894
17892
|
if (s && (h !== s.value || p !== s.options || m !== s.menuIsOpen || g !== s.inputValue)) {
|
|
17895
|
-
var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T =
|
|
17893
|
+
var w = m ? vB(i, b) : [], y = m ? Kg(sa(i, b), "".concat(f, "-option")) : [], E = a ? bB(o, b) : null, A = yB(o, w), T = au(y, A);
|
|
17896
17894
|
x = {
|
|
17897
17895
|
selectValue: b,
|
|
17898
17896
|
focusedOption: A,
|
|
@@ -17986,9 +17984,9 @@ const SB = (t, e, n) => ({
|
|
|
17986
17984
|
)
|
|
17987
17985
|
}
|
|
17988
17986
|
),
|
|
17989
|
-
/* @__PURE__ */ C.jsx(
|
|
17987
|
+
/* @__PURE__ */ C.jsx(tc.Option, { isSelected: t, ...n })
|
|
17990
17988
|
] });
|
|
17991
|
-
}, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(
|
|
17989
|
+
}, EB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.DropdownIndicator, { ...e, children: /* @__PURE__ */ C.jsx(
|
|
17992
17990
|
Fe,
|
|
17993
17991
|
{
|
|
17994
17992
|
name: "arrows/arrowRight",
|
|
@@ -17998,7 +17996,7 @@ const SB = (t, e, n) => ({
|
|
|
17998
17996
|
t == null ? void 0 : t.indicatorIcon
|
|
17999
17997
|
)
|
|
18000
17998
|
}
|
|
18001
|
-
) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(
|
|
17999
|
+
) }), AB = ({ classes: t, ...e }) => /* @__PURE__ */ C.jsx(tc.MultiValueRemove, { ...e, children: /* @__PURE__ */ C.jsx(Fe, { name: "general/close", className: O("size-4 text-icon-blue-grey-800", t == null ? void 0 : t.multiRemoveIcon) }) }), b$ = ({
|
|
18002
18000
|
options: t,
|
|
18003
18001
|
control: e,
|
|
18004
18002
|
defaultValue: n,
|
|
@@ -18179,7 +18177,7 @@ const SB = (t, e, n) => ({
|
|
|
18179
18177
|
...a
|
|
18180
18178
|
}) => {
|
|
18181
18179
|
const l = I.useId(), c = I.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = kB(s);
|
|
18182
|
-
return
|
|
18180
|
+
return Tf(c, h), /* @__PURE__ */ C.jsx(
|
|
18183
18181
|
Xt,
|
|
18184
18182
|
{
|
|
18185
18183
|
control: r,
|
|
@@ -18635,9 +18633,9 @@ class Z {
|
|
|
18635
18633
|
}
|
|
18636
18634
|
}
|
|
18637
18635
|
Z.empty = new Z([], 0);
|
|
18638
|
-
const
|
|
18636
|
+
const lu = { index: 0, offset: 0 };
|
|
18639
18637
|
function zs(t, e) {
|
|
18640
|
-
return
|
|
18638
|
+
return lu.index = t, lu.offset = e, lu;
|
|
18641
18639
|
}
|
|
18642
18640
|
function Fa(t, e) {
|
|
18643
18641
|
if (t === e)
|
|
@@ -18663,7 +18661,7 @@ function Fa(t, e) {
|
|
|
18663
18661
|
}
|
|
18664
18662
|
return !0;
|
|
18665
18663
|
}
|
|
18666
|
-
let $e = class
|
|
18664
|
+
let $e = class Md {
|
|
18667
18665
|
/**
|
|
18668
18666
|
@internal
|
|
18669
18667
|
*/
|
|
@@ -18761,8 +18759,8 @@ let $e = class kd {
|
|
|
18761
18759
|
*/
|
|
18762
18760
|
static setFrom(e) {
|
|
18763
18761
|
if (!e || Array.isArray(e) && e.length == 0)
|
|
18764
|
-
return
|
|
18765
|
-
if (e instanceof
|
|
18762
|
+
return Md.none;
|
|
18763
|
+
if (e instanceof Md)
|
|
18766
18764
|
return [e];
|
|
18767
18765
|
let n = e.slice();
|
|
18768
18766
|
return n.sort((r, i) => r.type.rank - i.type.rank), n;
|
|
@@ -18896,7 +18894,7 @@ function TC(t, e) {
|
|
|
18896
18894
|
if (!e.type.compatibleContent(t.type))
|
|
18897
18895
|
throw new Va("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
18898
18896
|
}
|
|
18899
|
-
function
|
|
18897
|
+
function Od(t, e, n) {
|
|
18900
18898
|
let r = t.node(n);
|
|
18901
18899
|
return TC(r, e.node(n)), r;
|
|
18902
18900
|
}
|
|
@@ -18915,13 +18913,13 @@ function qr(t, e) {
|
|
|
18915
18913
|
return t.type.checkContent(e), t.copy(e);
|
|
18916
18914
|
}
|
|
18917
18915
|
function kC(t, e, n, r, i) {
|
|
18918
|
-
let o = t.depth > i &&
|
|
18916
|
+
let o = t.depth > i && Od(t, e, i + 1), s = r.depth > i && Od(n, r, i + 1), a = [];
|
|
18919
18917
|
return Fo(null, t, i, a), o && s && e.index(i) == n.index(i) ? (TC(o, s), Kr(qr(o, kC(t, e, n, r, i + 1)), a)) : (o && Kr(qr(o, Ba(t, e, i + 1)), a), Fo(e, n, i, a), s && Kr(qr(s, Ba(n, r, i + 1)), a)), Fo(r, null, i, a), new Z(a);
|
|
18920
18918
|
}
|
|
18921
18919
|
function Ba(t, e, n) {
|
|
18922
18920
|
let r = [];
|
|
18923
18921
|
if (Fo(null, t, n, r), t.depth > n) {
|
|
18924
|
-
let i =
|
|
18922
|
+
let i = Od(t, e, n + 1);
|
|
18925
18923
|
Kr(qr(i, Ba(t, e, n + 1)), r);
|
|
18926
18924
|
}
|
|
18927
18925
|
return Fo(e, null, n, r), new Z(r);
|
|
@@ -19229,7 +19227,7 @@ class La {
|
|
|
19229
19227
|
}
|
|
19230
19228
|
}
|
|
19231
19229
|
const FB = /* @__PURE__ */ Object.create(null);
|
|
19232
|
-
let mr = class
|
|
19230
|
+
let mr = class Pd {
|
|
19233
19231
|
/**
|
|
19234
19232
|
@internal
|
|
19235
19233
|
*/
|
|
@@ -19348,14 +19346,14 @@ let mr = class Od {
|
|
|
19348
19346
|
the given content (or empty, if no content is given).
|
|
19349
19347
|
*/
|
|
19350
19348
|
copy(e = null) {
|
|
19351
|
-
return e == this.content ? this : new
|
|
19349
|
+
return e == this.content ? this : new Pd(this.type, this.attrs, e, this.marks);
|
|
19352
19350
|
}
|
|
19353
19351
|
/**
|
|
19354
19352
|
Create a copy of this node, with the given set of marks instead
|
|
19355
19353
|
of the node's own marks.
|
|
19356
19354
|
*/
|
|
19357
19355
|
mark(e) {
|
|
19358
|
-
return e == this.marks ? this : new
|
|
19356
|
+
return e == this.marks ? this : new Pd(this.type, this.attrs, this.content, e);
|
|
19359
19357
|
}
|
|
19360
19358
|
/**
|
|
19361
19359
|
Create a copy of this node with only the content between the
|
|
@@ -20215,7 +20213,7 @@ class XB {
|
|
|
20215
20213
|
return !this.hasDefault;
|
|
20216
20214
|
}
|
|
20217
20215
|
}
|
|
20218
|
-
class
|
|
20216
|
+
class nc {
|
|
20219
20217
|
/**
|
|
20220
20218
|
@internal
|
|
20221
20219
|
*/
|
|
@@ -20237,7 +20235,7 @@ class tc {
|
|
|
20237
20235
|
*/
|
|
20238
20236
|
static compile(e, n) {
|
|
20239
20237
|
let r = /* @__PURE__ */ Object.create(null), i = 0;
|
|
20240
|
-
return e.forEach((o, s) => r[o] = new
|
|
20238
|
+
return e.forEach((o, s) => r[o] = new nc(o, i++, n, s)), r;
|
|
20241
20239
|
}
|
|
20242
20240
|
/**
|
|
20243
20241
|
When there is a mark of this type in the given set, a new set
|
|
@@ -20279,7 +20277,7 @@ class BC {
|
|
|
20279
20277
|
let n = this.spec = {};
|
|
20280
20278
|
for (let i in e)
|
|
20281
20279
|
n[i] = e[i];
|
|
20282
|
-
n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks =
|
|
20280
|
+
n.nodes = mt.from(e.nodes), n.marks = mt.from(e.marks || {}), this.nodes = nv.compile(this.spec.nodes, this), this.marks = nc.compile(this.spec.marks, this);
|
|
20283
20281
|
let r = /* @__PURE__ */ Object.create(null);
|
|
20284
20282
|
for (let i in this.nodes) {
|
|
20285
20283
|
if (i in this.marks)
|
|
@@ -20884,7 +20882,7 @@ class hi {
|
|
|
20884
20882
|
nodes.
|
|
20885
20883
|
*/
|
|
20886
20884
|
serializeFragment(e, n = {}, r) {
|
|
20887
|
-
r || (r =
|
|
20885
|
+
r || (r = cu(n).createDocumentFragment());
|
|
20888
20886
|
let i = r, o = [];
|
|
20889
20887
|
return e.forEach((s) => {
|
|
20890
20888
|
if (o.length || s.marks.length) {
|
|
@@ -20913,7 +20911,7 @@ class hi {
|
|
|
20913
20911
|
@internal
|
|
20914
20912
|
*/
|
|
20915
20913
|
serializeNodeInner(e, n) {
|
|
20916
|
-
let { dom: r, contentDOM: i } = aa(
|
|
20914
|
+
let { dom: r, contentDOM: i } = aa(cu(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
20917
20915
|
if (i) {
|
|
20918
20916
|
if (e.isLeaf)
|
|
20919
20917
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -20941,7 +20939,7 @@ class hi {
|
|
|
20941
20939
|
*/
|
|
20942
20940
|
serializeMark(e, n, r = {}) {
|
|
20943
20941
|
let i = this.marks[e.type.name];
|
|
20944
|
-
return i && aa(
|
|
20942
|
+
return i && aa(cu(r), i(e, n), null, e.attrs);
|
|
20945
20943
|
}
|
|
20946
20944
|
static renderSpec(e, n, r = null, i) {
|
|
20947
20945
|
return aa(e, n, r, i);
|
|
@@ -20976,7 +20974,7 @@ function lv(t) {
|
|
|
20976
20974
|
}
|
|
20977
20975
|
return e;
|
|
20978
20976
|
}
|
|
20979
|
-
function
|
|
20977
|
+
function cu(t) {
|
|
20980
20978
|
return t.document || window.document;
|
|
20981
20979
|
}
|
|
20982
20980
|
const cv = /* @__PURE__ */ new WeakMap();
|
|
@@ -21051,7 +21049,7 @@ function tL(t) {
|
|
|
21051
21049
|
return (t - (t & GC)) / zC;
|
|
21052
21050
|
}
|
|
21053
21051
|
const _C = 1, HC = 2, la = 4, WC = 8;
|
|
21054
|
-
class
|
|
21052
|
+
class Rd {
|
|
21055
21053
|
/**
|
|
21056
21054
|
@internal
|
|
21057
21055
|
*/
|
|
@@ -21128,11 +21126,11 @@ class _t {
|
|
|
21128
21126
|
if (r)
|
|
21129
21127
|
return p;
|
|
21130
21128
|
let h = e == (n < 0 ? l : d) ? null : eL(a / 3, e - l), m = e == l ? HC : e == d ? _C : la;
|
|
21131
|
-
return (n < 0 ? e != l : e != d) && (m |= WC), new
|
|
21129
|
+
return (n < 0 ? e != l : e != d) && (m |= WC), new Rd(p, m, h);
|
|
21132
21130
|
}
|
|
21133
21131
|
i += u - c;
|
|
21134
21132
|
}
|
|
21135
|
-
return r ? e + i : new
|
|
21133
|
+
return r ? e + i : new Rd(e + i, 0, null);
|
|
21136
21134
|
}
|
|
21137
21135
|
/**
|
|
21138
21136
|
@internal
|
|
@@ -21288,10 +21286,10 @@ class Bi {
|
|
|
21288
21286
|
}
|
|
21289
21287
|
i |= a.delInfo, e = a.pos;
|
|
21290
21288
|
}
|
|
21291
|
-
return r ? e : new
|
|
21289
|
+
return r ? e : new Rd(e, i, null);
|
|
21292
21290
|
}
|
|
21293
21291
|
}
|
|
21294
|
-
const
|
|
21292
|
+
const uu = /* @__PURE__ */ Object.create(null);
|
|
21295
21293
|
class Ot {
|
|
21296
21294
|
/**
|
|
21297
21295
|
Get the step map that represents the changes made by this step,
|
|
@@ -21316,7 +21314,7 @@ class Ot {
|
|
|
21316
21314
|
static fromJSON(e, n) {
|
|
21317
21315
|
if (!n || !n.stepType)
|
|
21318
21316
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
21319
|
-
let r =
|
|
21317
|
+
let r = uu[n.stepType];
|
|
21320
21318
|
if (!r)
|
|
21321
21319
|
throw new RangeError(`No step type ${n.stepType} defined`);
|
|
21322
21320
|
return r.fromJSON(e, n);
|
|
@@ -21328,9 +21326,9 @@ class Ot {
|
|
|
21328
21326
|
that's unlikely to clash with steps from other modules.
|
|
21329
21327
|
*/
|
|
21330
21328
|
static jsonID(e, n) {
|
|
21331
|
-
if (e in
|
|
21329
|
+
if (e in uu)
|
|
21332
21330
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
21333
|
-
return
|
|
21331
|
+
return uu[e] = n, n.prototype.jsonID = e, n;
|
|
21334
21332
|
}
|
|
21335
21333
|
}
|
|
21336
21334
|
class at {
|
|
@@ -21546,7 +21544,7 @@ class dt extends Ot {
|
|
|
21546
21544
|
super(), this.from = e, this.to = n, this.slice = r, this.structure = i;
|
|
21547
21545
|
}
|
|
21548
21546
|
apply(e) {
|
|
21549
|
-
return this.structure &&
|
|
21547
|
+
return this.structure && Dd(e, this.from, this.to) ? at.fail("Structure replace would overwrite content") : at.fromReplace(e, this.from, this.to, this.slice);
|
|
21550
21548
|
}
|
|
21551
21549
|
getMap() {
|
|
21552
21550
|
return new _t([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -21595,7 +21593,7 @@ class ft extends Ot {
|
|
|
21595
21593
|
super(), this.from = e, this.to = n, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = s, this.structure = a;
|
|
21596
21594
|
}
|
|
21597
21595
|
apply(e) {
|
|
21598
|
-
if (this.structure && (
|
|
21596
|
+
if (this.structure && (Dd(e, this.from, this.gapFrom) || Dd(e, this.gapTo, this.to)))
|
|
21599
21597
|
return at.fail("Structure gap-replace would overwrite content");
|
|
21600
21598
|
let n = e.slice(this.gapFrom, this.gapTo);
|
|
21601
21599
|
if (n.openStart || n.openEnd)
|
|
@@ -21642,7 +21640,7 @@ class ft extends Ot {
|
|
|
21642
21640
|
}
|
|
21643
21641
|
}
|
|
21644
21642
|
Ot.jsonID("replaceAround", ft);
|
|
21645
|
-
function
|
|
21643
|
+
function Dd(t, e, n) {
|
|
21646
21644
|
let r = t.resolve(e), i = n - e, o = r.depth;
|
|
21647
21645
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
21648
21646
|
o--, i--;
|
|
@@ -21677,7 +21675,7 @@ function rL(t, e, n, r) {
|
|
|
21677
21675
|
return;
|
|
21678
21676
|
o++;
|
|
21679
21677
|
let l = null;
|
|
21680
|
-
if (r instanceof
|
|
21678
|
+
if (r instanceof nc) {
|
|
21681
21679
|
let c = s.marks, u;
|
|
21682
21680
|
for (; u = r.isInSet(c); )
|
|
21683
21681
|
(l || (l = [])).push(u), c = u.removeFromSet(c);
|
|
@@ -21876,7 +21874,7 @@ function pL(t, e) {
|
|
|
21876
21874
|
function YC(t, e) {
|
|
21877
21875
|
return !!(t && e && !t.isLeaf && pL(t, e));
|
|
21878
21876
|
}
|
|
21879
|
-
function
|
|
21877
|
+
function rc(t, e, n = -1) {
|
|
21880
21878
|
let r = t.resolve(e);
|
|
21881
21879
|
for (let i = r.depth; ; i--) {
|
|
21882
21880
|
let o, s, a = r.index(i);
|
|
@@ -21949,7 +21947,7 @@ function ZC(t, e, n) {
|
|
|
21949
21947
|
}
|
|
21950
21948
|
return null;
|
|
21951
21949
|
}
|
|
21952
|
-
function
|
|
21950
|
+
function ic(t, e, n = e, r = le.empty) {
|
|
21953
21951
|
if (e == n && !r.size)
|
|
21954
21952
|
return null;
|
|
21955
21953
|
let i = t.resolve(e), o = t.resolve(n);
|
|
@@ -22004,7 +22002,7 @@ class gL {
|
|
|
22004
22002
|
for (let n = 1; n <= 2; n++)
|
|
22005
22003
|
for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
22006
22004
|
let i, o = null;
|
|
22007
|
-
r ? (o =
|
|
22005
|
+
r ? (o = du(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
|
|
22008
22006
|
let s = i.firstChild;
|
|
22009
22007
|
for (let a = this.depth; a >= 0; a--) {
|
|
22010
22008
|
let { type: l, match: c } = this.frontier[a], u, d = null;
|
|
@@ -22018,11 +22016,11 @@ class gL {
|
|
|
22018
22016
|
}
|
|
22019
22017
|
}
|
|
22020
22018
|
openMore() {
|
|
22021
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, i =
|
|
22019
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
|
|
22022
22020
|
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new le(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
|
|
22023
22021
|
}
|
|
22024
22022
|
dropNode() {
|
|
22025
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, i =
|
|
22023
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = du(e, n);
|
|
22026
22024
|
if (i.childCount <= 1 && n > 0) {
|
|
22027
22025
|
let o = e.size - n <= n + i.size;
|
|
22028
22026
|
this.unplaced = new le(Ao(e, n - 1, 1), n - 1, o ? n - 1 : r);
|
|
@@ -22063,7 +22061,7 @@ class gL {
|
|
|
22063
22061
|
if (!this.$to.parent.isTextblock)
|
|
22064
22062
|
return -1;
|
|
22065
22063
|
let e = this.frontier[this.depth], n;
|
|
22066
|
-
if (!e.type.isTextblock || !
|
|
22064
|
+
if (!e.type.isTextblock || !fu(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
22067
22065
|
return -1;
|
|
22068
22066
|
let { depth: r } = this.$to, i = this.$to.after(r);
|
|
22069
22067
|
for (; r > 1 && i == this.$to.end(--r); )
|
|
@@ -22072,10 +22070,10 @@ class gL {
|
|
|
22072
22070
|
}
|
|
22073
22071
|
findCloseLevel(e) {
|
|
22074
22072
|
e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
|
|
22075
|
-
let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s =
|
|
22073
|
+
let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = fu(e, n, i, r, o);
|
|
22076
22074
|
if (s) {
|
|
22077
22075
|
for (let a = n - 1; a >= 0; a--) {
|
|
22078
|
-
let { match: l, type: c } = this.frontier[a], u =
|
|
22076
|
+
let { match: l, type: c } = this.frontier[a], u = fu(e, a, c, l, !0);
|
|
22079
22077
|
if (!u || u.childCount)
|
|
22080
22078
|
continue e;
|
|
22081
22079
|
}
|
|
@@ -22111,7 +22109,7 @@ function Ao(t, e, n) {
|
|
|
22111
22109
|
function To(t, e, n) {
|
|
22112
22110
|
return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(To(t.lastChild.content, e - 1, n)));
|
|
22113
22111
|
}
|
|
22114
|
-
function
|
|
22112
|
+
function du(t, e) {
|
|
22115
22113
|
for (let n = 0; n < e; n++)
|
|
22116
22114
|
t = t.firstChild.content;
|
|
22117
22115
|
return t;
|
|
@@ -22122,7 +22120,7 @@ function UC(t, e, n) {
|
|
|
22122
22120
|
let r = t.content;
|
|
22123
22121
|
return e > 1 && (r = r.replaceChild(0, UC(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(Z.empty, !0)))), t.copy(r);
|
|
22124
22122
|
}
|
|
22125
|
-
function
|
|
22123
|
+
function fu(t, e, n, r, i) {
|
|
22126
22124
|
let o = t.node(e), s = i ? t.indexAfter(e) : t.index(e);
|
|
22127
22125
|
if (s == o.childCount && !n.compatibleContent(o.type))
|
|
22128
22126
|
return null;
|
|
@@ -22357,7 +22355,7 @@ class QC {
|
|
|
22357
22355
|
given `slice`.
|
|
22358
22356
|
*/
|
|
22359
22357
|
replace(e, n = e, r = le.empty) {
|
|
22360
|
-
let i =
|
|
22358
|
+
let i = ic(this.doc, e, n, r);
|
|
22361
22359
|
return i && this.step(i), this;
|
|
22362
22360
|
}
|
|
22363
22361
|
/**
|
|
@@ -22528,7 +22526,7 @@ class QC {
|
|
|
22528
22526
|
return Np(this, e, n, r), this;
|
|
22529
22527
|
}
|
|
22530
22528
|
}
|
|
22531
|
-
const
|
|
22529
|
+
const pu = /* @__PURE__ */ Object.create(null);
|
|
22532
22530
|
class Ee {
|
|
22533
22531
|
/**
|
|
22534
22532
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -22664,7 +22662,7 @@ class Ee {
|
|
|
22664
22662
|
static fromJSON(e, n) {
|
|
22665
22663
|
if (!n || !n.type)
|
|
22666
22664
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
22667
|
-
let r =
|
|
22665
|
+
let r = pu[n.type];
|
|
22668
22666
|
if (!r)
|
|
22669
22667
|
throw new RangeError(`No selection type ${n.type} defined`);
|
|
22670
22668
|
return r.fromJSON(e, n);
|
|
@@ -22676,9 +22674,9 @@ class Ee {
|
|
|
22676
22674
|
clash with classes from other modules.
|
|
22677
22675
|
*/
|
|
22678
22676
|
static jsonID(e, n) {
|
|
22679
|
-
if (e in
|
|
22677
|
+
if (e in pu)
|
|
22680
22678
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
22681
|
-
return
|
|
22679
|
+
return pu[e] = n, n.prototype.jsonID = e, n;
|
|
22682
22680
|
}
|
|
22683
22681
|
/**
|
|
22684
22682
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -22737,7 +22735,7 @@ class Ce extends Ee {
|
|
|
22737
22735
|
return e instanceof Ce && e.anchor == this.anchor && e.head == this.head;
|
|
22738
22736
|
}
|
|
22739
22737
|
getBookmark() {
|
|
22740
|
-
return new
|
|
22738
|
+
return new oc(this.anchor, this.head);
|
|
22741
22739
|
}
|
|
22742
22740
|
toJSON() {
|
|
22743
22741
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -22778,12 +22776,12 @@ class Ce extends Ee {
|
|
|
22778
22776
|
}
|
|
22779
22777
|
}
|
|
22780
22778
|
Ee.jsonID("text", Ce);
|
|
22781
|
-
class
|
|
22779
|
+
class oc {
|
|
22782
22780
|
constructor(e, n) {
|
|
22783
22781
|
this.anchor = e, this.head = n;
|
|
22784
22782
|
}
|
|
22785
22783
|
map(e) {
|
|
22786
|
-
return new
|
|
22784
|
+
return new oc(e.map(this.anchor), e.map(this.head));
|
|
22787
22785
|
}
|
|
22788
22786
|
resolve(e) {
|
|
22789
22787
|
return Ce.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -22844,7 +22842,7 @@ class Vp {
|
|
|
22844
22842
|
}
|
|
22845
22843
|
map(e) {
|
|
22846
22844
|
let { deleted: n, pos: r } = e.mapResult(this.anchor);
|
|
22847
|
-
return n ? new
|
|
22845
|
+
return n ? new oc(r, r) : new Vp(r);
|
|
22848
22846
|
}
|
|
22849
22847
|
resolve(e) {
|
|
22850
22848
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -23117,7 +23115,7 @@ const EL = [
|
|
|
23117
23115
|
}
|
|
23118
23116
|
})
|
|
23119
23117
|
];
|
|
23120
|
-
class
|
|
23118
|
+
class hu {
|
|
23121
23119
|
constructor(e, n) {
|
|
23122
23120
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = EL.slice(), n && n.forEach((r) => {
|
|
23123
23121
|
if (this.pluginsByKey[r.key])
|
|
@@ -23218,7 +23216,7 @@ class Ni {
|
|
|
23218
23216
|
Create a new state.
|
|
23219
23217
|
*/
|
|
23220
23218
|
static create(e) {
|
|
23221
|
-
let n = new
|
|
23219
|
+
let n = new hu(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ni(n);
|
|
23222
23220
|
for (let i = 0; i < n.fields.length; i++)
|
|
23223
23221
|
r[n.fields[i].name] = n.fields[i].init(e, r);
|
|
23224
23222
|
return r;
|
|
@@ -23232,7 +23230,7 @@ class Ni {
|
|
|
23232
23230
|
configuration object..
|
|
23233
23231
|
*/
|
|
23234
23232
|
reconfigure(e) {
|
|
23235
|
-
let n = new
|
|
23233
|
+
let n = new hu(this.schema, e.plugins), r = n.fields, i = new Ni(n);
|
|
23236
23234
|
for (let o = 0; o < r.length; o++) {
|
|
23237
23235
|
let s = r[o].name;
|
|
23238
23236
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -23269,7 +23267,7 @@ class Ni {
|
|
|
23269
23267
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
23270
23268
|
if (!e.schema)
|
|
23271
23269
|
throw new RangeError("Required config field 'schema' missing");
|
|
23272
|
-
let i = new
|
|
23270
|
+
let i = new hu(e.schema, e.plugins), o = new Ni(i);
|
|
23273
23271
|
return i.fields.forEach((s) => {
|
|
23274
23272
|
if (s.name == "doc")
|
|
23275
23273
|
o.doc = mr.fromJSON(e.schema, n.doc);
|
|
@@ -23312,9 +23310,9 @@ class Ct {
|
|
|
23312
23310
|
return e[this.key];
|
|
23313
23311
|
}
|
|
23314
23312
|
}
|
|
23315
|
-
const
|
|
23313
|
+
const mu = /* @__PURE__ */ Object.create(null);
|
|
23316
23314
|
function tw(t) {
|
|
23317
|
-
return t in
|
|
23315
|
+
return t in mu ? t + "$" + ++mu[t] : (mu[t] = 0, t + "$");
|
|
23318
23316
|
}
|
|
23319
23317
|
class Zt {
|
|
23320
23318
|
/**
|
|
@@ -23345,12 +23343,12 @@ const bt = function(t) {
|
|
|
23345
23343
|
let e = t.assignedSlot || t.parentNode;
|
|
23346
23344
|
return e && e.nodeType == 11 ? e.host : e;
|
|
23347
23345
|
};
|
|
23348
|
-
let
|
|
23346
|
+
let Nd = null;
|
|
23349
23347
|
const jn = function(t, e, n) {
|
|
23350
|
-
let r =
|
|
23348
|
+
let r = Nd || (Nd = document.createRange());
|
|
23351
23349
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
23352
23350
|
}, AL = function() {
|
|
23353
|
-
|
|
23351
|
+
Nd = null;
|
|
23354
23352
|
}, ai = function(t, e, n, r) {
|
|
23355
23353
|
return n && (bv(t, e, n, r, -1) || bv(t, e, n, r, 1));
|
|
23356
23354
|
}, TL = /^(img|br|input|textarea|hr)$/i;
|
|
@@ -23418,7 +23416,7 @@ function ws(t) {
|
|
|
23418
23416
|
;
|
|
23419
23417
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
23420
23418
|
}
|
|
23421
|
-
const
|
|
23419
|
+
const sc = function(t) {
|
|
23422
23420
|
return t.focusNode && ai(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
23423
23421
|
};
|
|
23424
23422
|
function Br(t, e) {
|
|
@@ -23445,9 +23443,9 @@ function RL(t, e, n) {
|
|
|
23445
23443
|
return { node: r.startContainer, offset: Math.min(nn(r.startContainer), r.startOffset) };
|
|
23446
23444
|
}
|
|
23447
23445
|
}
|
|
23448
|
-
const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "",
|
|
23446
|
+
const Pn = typeof navigator < "u" ? navigator : null, yv = typeof document < "u" ? document : null, Tr = Pn && Pn.userAgent || "", Fd = /Edge\/(\d+)/.exec(Tr), nw = /MSIE \d/.exec(Tr), Vd = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr), Gt = !!(nw || Vd || Fd), vr = nw ? document.documentMode : Vd ? +Vd[1] : Fd ? +Fd[1] : 0, dn = !Gt && /gecko\/(\d+)/i.test(Tr);
|
|
23449
23447
|
dn && +(/Firefox\/(\d+)/.exec(Tr) || [0, 0])[1];
|
|
23450
|
-
const
|
|
23448
|
+
const Bd = !Gt && /Chrome\/(\d+)/.exec(Tr), Tt = !!Bd, rw = Bd ? +Bd[1] : 0, Nt = !Gt && !!Pn && /Apple Computer/.test(Pn.vendor), Ji = Nt && (/Mobile\/\w+/.test(Tr) || !!Pn && Pn.maxTouchPoints > 2), en = Ji || (Pn ? /Mac/.test(Pn.platform) : !1), DL = Pn ? /Win/.test(Pn.platform) : !1, an = /Android \d/.test(Tr), Ss = !!yv && "webkitFontSmoothing" in yv.documentElement.style, NL = Ss ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
23451
23449
|
function FL(t) {
|
|
23452
23450
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
23453
23451
|
return e ? {
|
|
@@ -23681,14 +23679,14 @@ function lw(t, e, n) {
|
|
|
23681
23679
|
if (o == null && i && (n < 0 || i == nn(r))) {
|
|
23682
23680
|
let l = r.childNodes[i - 1];
|
|
23683
23681
|
if (l.nodeType == 1)
|
|
23684
|
-
return
|
|
23682
|
+
return gu(l.getBoundingClientRect(), !1);
|
|
23685
23683
|
}
|
|
23686
23684
|
if (o == null && i < nn(r)) {
|
|
23687
23685
|
let l = r.childNodes[i];
|
|
23688
23686
|
if (l.nodeType == 1)
|
|
23689
|
-
return
|
|
23687
|
+
return gu(l.getBoundingClientRect(), !0);
|
|
23690
23688
|
}
|
|
23691
|
-
return
|
|
23689
|
+
return gu(r.getBoundingClientRect(), n >= 0);
|
|
23692
23690
|
}
|
|
23693
23691
|
if (o == null && i && (n < 0 || i == nn(r))) {
|
|
23694
23692
|
let l = r.childNodes[i - 1], c = l.nodeType == 3 ? jn(l, nn(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
@@ -23711,7 +23709,7 @@ function bo(t, e) {
|
|
|
23711
23709
|
let n = e ? t.left : t.right;
|
|
23712
23710
|
return { top: t.top, bottom: t.bottom, left: n, right: n };
|
|
23713
23711
|
}
|
|
23714
|
-
function
|
|
23712
|
+
function gu(t, e) {
|
|
23715
23713
|
if (t.height == 0)
|
|
23716
23714
|
return t;
|
|
23717
23715
|
let n = e ? t.top : t.bottom;
|
|
@@ -24196,7 +24194,7 @@ class li extends Is {
|
|
|
24196
24194
|
}
|
|
24197
24195
|
slice(e, n, r) {
|
|
24198
24196
|
let i = li.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
|
|
24199
|
-
n < s && (o =
|
|
24197
|
+
n < s && (o = jd(o, n, s, r)), e > 0 && (o = jd(o, 0, e, r));
|
|
24200
24198
|
for (let a = 0; a < o.length; a++)
|
|
24201
24199
|
o[a].parent = i;
|
|
24202
24200
|
return i.children = o, i;
|
|
@@ -24236,7 +24234,7 @@ class br extends Is {
|
|
|
24236
24234
|
} else u || ({ dom: u, contentDOM: d } = hi.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
24237
24235
|
!d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
|
|
24238
24236
|
let f = u;
|
|
24239
|
-
return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new
|
|
24237
|
+
return u = hw(u, r, n), c ? l = new KL(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new ac(e, n, r, i, u, f, o) : new br(e, n, r, i, u, d || null, f, o, s + 1);
|
|
24240
24238
|
}
|
|
24241
24239
|
parseRule() {
|
|
24242
24240
|
if (this.node.type.spec.reparseInView)
|
|
@@ -24306,7 +24304,7 @@ class br extends Is {
|
|
|
24306
24304
|
o.pmViewDesc && (o.pmViewDesc = void 0);
|
|
24307
24305
|
}
|
|
24308
24306
|
let s = new UL(this, o, n, i);
|
|
24309
|
-
e.input.compositionNodes.push(s), this.children =
|
|
24307
|
+
e.input.compositionNodes.push(s), this.children = jd(this.children, r, r + i.length, e, s);
|
|
24310
24308
|
}
|
|
24311
24309
|
// If this desc must be updated to match the given node decoration,
|
|
24312
24310
|
// do so and return true.
|
|
@@ -24320,7 +24318,7 @@ class br extends Is {
|
|
|
24320
24318
|
if (_a(e, this.outerDeco))
|
|
24321
24319
|
return;
|
|
24322
24320
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
24323
|
-
this.dom = pw(this.dom, this.nodeDOM,
|
|
24321
|
+
this.dom = pw(this.dom, this.nodeDOM, Ld(this.outerDeco, this.node, n), Ld(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
24324
24322
|
}
|
|
24325
24323
|
// Mark this node as being the selected node.
|
|
24326
24324
|
selectNode() {
|
|
@@ -24339,7 +24337,7 @@ function Av(t, e, n, r, i) {
|
|
|
24339
24337
|
let o = new br(void 0, t, e, n, r, r, r, i, 0);
|
|
24340
24338
|
return o.contentDOM && o.updateChildren(i, 0), o;
|
|
24341
24339
|
}
|
|
24342
|
-
class
|
|
24340
|
+
class ac extends br {
|
|
24343
24341
|
constructor(e, n, r, i, o, s, a) {
|
|
24344
24342
|
super(e, n, r, i, o, null, s, a, 0);
|
|
24345
24343
|
}
|
|
@@ -24370,7 +24368,7 @@ class sc extends br {
|
|
|
24370
24368
|
}
|
|
24371
24369
|
slice(e, n, r) {
|
|
24372
24370
|
let i = this.node.cut(e, n), o = document.createTextNode(i.text);
|
|
24373
|
-
return new
|
|
24371
|
+
return new ac(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
24374
24372
|
}
|
|
24375
24373
|
markDirty(e, n) {
|
|
24376
24374
|
super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Rn);
|
|
@@ -24454,7 +24452,7 @@ const Bo = function(t) {
|
|
|
24454
24452
|
};
|
|
24455
24453
|
Bo.prototype = /* @__PURE__ */ Object.create(null);
|
|
24456
24454
|
const Wr = [new Bo()];
|
|
24457
|
-
function
|
|
24455
|
+
function Ld(t, e, n) {
|
|
24458
24456
|
if (t.length == 0)
|
|
24459
24457
|
return Wr;
|
|
24460
24458
|
let r = n ? Wr[0] : new Bo(), i = [r];
|
|
@@ -24507,7 +24505,7 @@ function qL(t, e, n) {
|
|
|
24507
24505
|
}
|
|
24508
24506
|
}
|
|
24509
24507
|
function hw(t, e, n) {
|
|
24510
|
-
return pw(t, t, Wr,
|
|
24508
|
+
return pw(t, t, Wr, Ld(e, n, t.nodeType != 1));
|
|
24511
24509
|
}
|
|
24512
24510
|
function _a(t, e) {
|
|
24513
24511
|
if (t.length != e.length)
|
|
@@ -24655,7 +24653,7 @@ class QL {
|
|
|
24655
24653
|
for (; e instanceof li; )
|
|
24656
24654
|
n = e, e = n.children[n.children.length - 1];
|
|
24657
24655
|
(!e || // Empty textblock
|
|
24658
|
-
!(e instanceof
|
|
24656
|
+
!(e instanceof ac) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Nt || Tt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
24659
24657
|
}
|
|
24660
24658
|
addHackNode(e, n) {
|
|
24661
24659
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -24779,7 +24777,7 @@ function ij(t, e, n, r) {
|
|
|
24779
24777
|
}
|
|
24780
24778
|
return -1;
|
|
24781
24779
|
}
|
|
24782
|
-
function
|
|
24780
|
+
function jd(t, e, n, r, i) {
|
|
24783
24781
|
let o = [];
|
|
24784
24782
|
for (let s = 0, a = 0; s < t.length; s++) {
|
|
24785
24783
|
let l = t[s], c = a, u = a += l.size;
|
|
@@ -24795,7 +24793,7 @@ function Lp(t, e = null) {
|
|
|
24795
24793
|
if (s < 0)
|
|
24796
24794
|
return null;
|
|
24797
24795
|
let a = r.resolve(s), l, c;
|
|
24798
|
-
if (
|
|
24796
|
+
if (sc(n)) {
|
|
24799
24797
|
for (l = s; i && !i.node; )
|
|
24800
24798
|
i = i.parent;
|
|
24801
24799
|
let d = i.node;
|
|
@@ -24851,15 +24849,15 @@ const kv = Nt || Tt && rw < 63;
|
|
|
24851
24849
|
function Mv(t, e) {
|
|
24852
24850
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
|
|
24853
24851
|
if (Nt && i && i.contentEditable == "false")
|
|
24854
|
-
return
|
|
24852
|
+
return vu(i);
|
|
24855
24853
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
24856
24854
|
if (i)
|
|
24857
|
-
return
|
|
24855
|
+
return vu(i);
|
|
24858
24856
|
if (o)
|
|
24859
|
-
return
|
|
24857
|
+
return vu(o);
|
|
24860
24858
|
}
|
|
24861
24859
|
}
|
|
24862
|
-
function
|
|
24860
|
+
function vu(t) {
|
|
24863
24861
|
return t.contentEditable = "true", Nt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
24864
24862
|
}
|
|
24865
24863
|
function Ov(t) {
|
|
@@ -24912,7 +24910,7 @@ function aj(t) {
|
|
|
24912
24910
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
24913
24911
|
return ai(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
24914
24912
|
}
|
|
24915
|
-
function
|
|
24913
|
+
function Gd(t, e) {
|
|
24916
24914
|
let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
24917
24915
|
return o && Ee.findFrom(o, e);
|
|
24918
24916
|
}
|
|
@@ -24930,7 +24928,7 @@ function Dv(t, e, n) {
|
|
|
24930
24928
|
return ir(t, new Ce(r.$anchor, s));
|
|
24931
24929
|
} else if (r.empty) {
|
|
24932
24930
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
24933
|
-
let i =
|
|
24931
|
+
let i = Gd(t.state, e);
|
|
24934
24932
|
return i && i instanceof ge ? ir(t, i) : !1;
|
|
24935
24933
|
} else if (!(en && n.indexOf("m") > -1)) {
|
|
24936
24934
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
@@ -24944,7 +24942,7 @@ function Dv(t, e, n) {
|
|
|
24944
24942
|
if (r instanceof ge && r.node.isInline)
|
|
24945
24943
|
return ir(t, new Ce(e > 0 ? r.$to : r.$from));
|
|
24946
24944
|
{
|
|
24947
|
-
let i =
|
|
24945
|
+
let i = Gd(t.state, e);
|
|
24948
24946
|
return i ? ir(t, i) : !1;
|
|
24949
24947
|
}
|
|
24950
24948
|
}
|
|
@@ -24993,7 +24991,7 @@ function lj(t) {
|
|
|
24993
24991
|
}
|
|
24994
24992
|
}
|
|
24995
24993
|
}
|
|
24996
|
-
s ?
|
|
24994
|
+
s ? zd(t, n, r) : i && zd(t, i, o);
|
|
24997
24995
|
}
|
|
24998
24996
|
function cj(t) {
|
|
24999
24997
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
@@ -25025,7 +25023,7 @@ function cj(t) {
|
|
|
25025
25023
|
}
|
|
25026
25024
|
}
|
|
25027
25025
|
}
|
|
25028
|
-
o &&
|
|
25026
|
+
o && zd(t, o, s);
|
|
25029
25027
|
}
|
|
25030
25028
|
function bw(t) {
|
|
25031
25029
|
let e = t.pmViewDesc;
|
|
@@ -25055,7 +25053,7 @@ function dj(t, e) {
|
|
|
25055
25053
|
t = n, e = t.childNodes.length;
|
|
25056
25054
|
}
|
|
25057
25055
|
}
|
|
25058
|
-
function
|
|
25056
|
+
function zd(t, e, n) {
|
|
25059
25057
|
if (e.nodeType != 3) {
|
|
25060
25058
|
let o, s;
|
|
25061
25059
|
(s = uj(e, n)) ? (e = s, n = 0) : (o = dj(e, n)) && (e = o, n = o.nodeValue.length);
|
|
@@ -25063,7 +25061,7 @@ function Gd(t, e, n) {
|
|
|
25063
25061
|
let r = t.domSelection();
|
|
25064
25062
|
if (!r)
|
|
25065
25063
|
return;
|
|
25066
|
-
if (
|
|
25064
|
+
if (sc(r)) {
|
|
25067
25065
|
let o = document.createRange();
|
|
25068
25066
|
o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o);
|
|
25069
25067
|
} else r.extend && r.extend(e, n);
|
|
@@ -25096,7 +25094,7 @@ function Fv(t, e, n) {
|
|
|
25096
25094
|
return !1;
|
|
25097
25095
|
let { $from: i, $to: o } = r;
|
|
25098
25096
|
if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
25099
|
-
let s =
|
|
25097
|
+
let s = Gd(t.state, e);
|
|
25100
25098
|
if (s && s instanceof ge)
|
|
25101
25099
|
return ir(t, s);
|
|
25102
25100
|
}
|
|
@@ -25291,12 +25289,12 @@ function Sw(t, e) {
|
|
|
25291
25289
|
let n = t.content.replaceChild(t.childCount - 1, Sw(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(Z.empty, !0);
|
|
25292
25290
|
return t.copy(n.append(r));
|
|
25293
25291
|
}
|
|
25294
|
-
function
|
|
25292
|
+
function _d(t, e, n, r, i, o) {
|
|
25295
25293
|
let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
|
|
25296
|
-
return t.childCount > 1 && (o = 0), i < r - 1 && (a =
|
|
25294
|
+
return t.childCount > 1 && (o = 0), i < r - 1 && (a = _d(a, e, n, r, i + 1, o)), i >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, o <= i).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(Z.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
|
|
25297
25295
|
}
|
|
25298
25296
|
function Lv(t, e, n) {
|
|
25299
|
-
return e < t.openStart && (t = new le(
|
|
25297
|
+
return e < t.openStart && (t = new le(_d(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new le(_d(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
25300
25298
|
}
|
|
25301
25299
|
const Iw = {
|
|
25302
25300
|
thead: ["table"],
|
|
@@ -25313,10 +25311,10 @@ let jv = null;
|
|
|
25313
25311
|
function Ew() {
|
|
25314
25312
|
return jv || (jv = document.implementation.createHTMLDocument("title"));
|
|
25315
25313
|
}
|
|
25316
|
-
let
|
|
25314
|
+
let bu = null;
|
|
25317
25315
|
function vj(t) {
|
|
25318
25316
|
let e = window.trustedTypes;
|
|
25319
|
-
return e ? (
|
|
25317
|
+
return e ? (bu || (bu = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), bu.createHTML(t)) : t;
|
|
25320
25318
|
}
|
|
25321
25319
|
function bj(t) {
|
|
25322
25320
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
@@ -25365,7 +25363,7 @@ function Sj(t) {
|
|
|
25365
25363
|
Ej(t, r) && !Gp(t, r) && (t.editable || !(r.type in Vt)) && n(t, r);
|
|
25366
25364
|
}, Cj[e] ? { passive: !0 } : void 0);
|
|
25367
25365
|
}
|
|
25368
|
-
Nt && t.dom.addEventListener("input", () => null),
|
|
25366
|
+
Nt && t.dom.addEventListener("input", () => null), Hd(t);
|
|
25369
25367
|
}
|
|
25370
25368
|
function pr(t, e) {
|
|
25371
25369
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
@@ -25376,7 +25374,7 @@ function Ij(t) {
|
|
|
25376
25374
|
t.dom.removeEventListener(e, t.input.eventHandlers[e]);
|
|
25377
25375
|
clearTimeout(t.input.composingTimeout), clearTimeout(t.input.lastIOSEnterFallbackTimeout);
|
|
25378
25376
|
}
|
|
25379
|
-
function
|
|
25377
|
+
function Hd(t) {
|
|
25380
25378
|
t.someProp("handleDOMEvents", (e) => {
|
|
25381
25379
|
for (let n in e)
|
|
25382
25380
|
t.input.eventHandlers[n] || t.dom.addEventListener(n, t.input.eventHandlers[n] = (r) => Gp(t, r));
|
|
@@ -25428,7 +25426,7 @@ Vt.keypress = (t, e) => {
|
|
|
25428
25426
|
!/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
|
|
25429
25427
|
}
|
|
25430
25428
|
};
|
|
25431
|
-
function
|
|
25429
|
+
function lc(t) {
|
|
25432
25430
|
return { left: t.clientX, top: t.clientY };
|
|
25433
25431
|
}
|
|
25434
25432
|
function Tj(t, e) {
|
|
@@ -25507,7 +25505,7 @@ Ft.mousedown = (t, e) => {
|
|
|
25507
25505
|
t.input.shiftKey = n.shiftKey;
|
|
25508
25506
|
let r = _p(t), i = Date.now(), o = "singleClick";
|
|
25509
25507
|
i - t.input.lastClick.time < 500 && Tj(n, t.input.lastClick) && !n[Aw] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
|
|
25510
|
-
let s = t.posAtCoords(
|
|
25508
|
+
let s = t.posAtCoords(lc(n));
|
|
25511
25509
|
s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new Nj(t, s, n, !!r)) : (o == "doubleClick" ? Pj : Rj)(t, s.pos, s.inside, n) ? n.preventDefault() : pr(t, "pointer"));
|
|
25512
25510
|
};
|
|
25513
25511
|
class Nj {
|
|
@@ -25539,7 +25537,7 @@ class Nj {
|
|
|
25539
25537
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
25540
25538
|
return;
|
|
25541
25539
|
let n = this.pos;
|
|
25542
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
25540
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(lc(e))), this.updateAllowDefault(e), this.allowDefault || !n ? pr(this.view, "pointer") : Oj(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
25543
25541
|
Nt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
25544
25542
|
// cursor, but still report that the node is selected
|
|
25545
25543
|
// when asked through getSelection. You'll then get a
|
|
@@ -25697,7 +25695,7 @@ Ft.dragstart = (t, e) => {
|
|
|
25697
25695
|
let n = e, r = t.input.mouseDown;
|
|
25698
25696
|
if (r && r.done(), !n.dataTransfer)
|
|
25699
25697
|
return;
|
|
25700
|
-
let i = t.state.selection, o = i.empty ? null : t.posAtCoords(
|
|
25698
|
+
let i = t.state.selection, o = i.empty ? null : t.posAtCoords(lc(n)), s;
|
|
25701
25699
|
if (!(o && o.pos >= i.from && o.pos <= (i instanceof ge ? i.to - 1 : i.to))) {
|
|
25702
25700
|
if (r && r.mightDrag)
|
|
25703
25701
|
s = ge.create(t.state.doc, r.mightDrag.pos);
|
|
@@ -25720,7 +25718,7 @@ Vt.drop = (t, e) => {
|
|
|
25720
25718
|
let n = e, r = t.dragging;
|
|
25721
25719
|
if (t.dragging = null, !n.dataTransfer)
|
|
25722
25720
|
return;
|
|
25723
|
-
let i = t.posAtCoords(
|
|
25721
|
+
let i = t.posAtCoords(lc(n));
|
|
25724
25722
|
if (!i)
|
|
25725
25723
|
return;
|
|
25726
25724
|
let o = t.state.doc.resolve(i.pos), s = r && r.slice;
|
|
@@ -26278,7 +26276,7 @@ function Gv(t, e, n) {
|
|
|
26278
26276
|
e++;
|
|
26279
26277
|
t.splice(e, 0, n);
|
|
26280
26278
|
}
|
|
26281
|
-
function
|
|
26279
|
+
function yu(t) {
|
|
26282
26280
|
let e = [];
|
|
26283
26281
|
return t.someProp("decorations", (n) => {
|
|
26284
26282
|
let r = n(t.state);
|
|
@@ -26414,7 +26412,7 @@ class Xj {
|
|
|
26414
26412
|
}
|
|
26415
26413
|
}
|
|
26416
26414
|
let c = null;
|
|
26417
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
26415
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && sc(r) && (c = Lp(e)) && c.eq(Ee.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Yj(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Xn(e), this.currentSelection.set(r));
|
|
26418
26416
|
}
|
|
26419
26417
|
registerMutation(e, n) {
|
|
26420
26418
|
if (n.indexOf(e.target) > -1)
|
|
@@ -26483,7 +26481,7 @@ function Jj(t, e) {
|
|
|
26483
26481
|
}
|
|
26484
26482
|
function Uj(t, e, n) {
|
|
26485
26483
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
|
|
26486
|
-
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }],
|
|
26484
|
+
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], sc(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), Tt && t.input.lastKeyCode === 8)
|
|
26487
26485
|
for (let g = o; g > i; g--) {
|
|
26488
26486
|
let v = r.childNodes[g - 1], b = v.pmViewDesc;
|
|
26489
26487
|
if (v.nodeName == "BR" && !b) {
|
|
@@ -26621,7 +26619,7 @@ function t4(t, e, n, r, i) {
|
|
|
26621
26619
|
if (
|
|
26622
26620
|
// The content must have shrunk
|
|
26623
26621
|
n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
26624
|
-
|
|
26622
|
+
xu(r, !0, !1) < i.pos
|
|
26625
26623
|
)
|
|
26626
26624
|
return !1;
|
|
26627
26625
|
let o = t.resolve(e);
|
|
@@ -26631,10 +26629,10 @@ function t4(t, e, n, r, i) {
|
|
|
26631
26629
|
}
|
|
26632
26630
|
if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
|
|
26633
26631
|
return !1;
|
|
26634
|
-
let s = t.resolve(
|
|
26635
|
-
return !s.parent.isTextblock || s.pos > n ||
|
|
26632
|
+
let s = t.resolve(xu(o, !0, !0));
|
|
26633
|
+
return !s.parent.isTextblock || s.pos > n || xu(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
|
|
26636
26634
|
}
|
|
26637
|
-
function
|
|
26635
|
+
function xu(t, e, n) {
|
|
26638
26636
|
let r = t.depth, i = e ? t.end() : t.pos;
|
|
26639
26637
|
for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
|
|
26640
26638
|
r--, i++, e = !1;
|
|
@@ -26678,7 +26676,7 @@ class r4 {
|
|
|
26678
26676
|
added to the document.
|
|
26679
26677
|
*/
|
|
26680
26678
|
constructor(e, n) {
|
|
26681
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this),
|
|
26679
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new wj(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Uv), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Zv(this), Yv(this), this.nodeViews = Jv(this), this.docView = Av(this.state.doc, Xv(this), yu(this), this.dom, this), this.domObserver = new Xj(this, (r, i, o, s) => Qj(this, r, i, o, s)), this.domObserver.start(), Sj(this), this.updatePluginViews();
|
|
26682
26680
|
}
|
|
26683
26681
|
/**
|
|
26684
26682
|
Holds `true` when a
|
|
@@ -26706,7 +26704,7 @@ class r4 {
|
|
|
26706
26704
|
the DOM.
|
|
26707
26705
|
*/
|
|
26708
26706
|
update(e) {
|
|
26709
|
-
e.handleDOMEvents != this._props.handleDOMEvents &&
|
|
26707
|
+
e.handleDOMEvents != this._props.handleDOMEvents && Hd(this);
|
|
26710
26708
|
let n = this._props;
|
|
26711
26709
|
this._props = e, e.plugins && (e.plugins.forEach(Uv), this.directPlugins = e.plugins), this.updateStateInner(e.state, n);
|
|
26712
26710
|
}
|
|
@@ -26740,8 +26738,8 @@ class r4 {
|
|
|
26740
26738
|
let p = Jv(this);
|
|
26741
26739
|
o4(p, this.nodeViews) && (this.nodeViews = p, o = !0);
|
|
26742
26740
|
}
|
|
26743
|
-
(a || n.handleDOMEvents != this._props.handleDOMEvents) &&
|
|
26744
|
-
let l =
|
|
26741
|
+
(a || n.handleDOMEvents != this._props.handleDOMEvents) && Hd(this), this.editable = Zv(this), Yv(this);
|
|
26742
|
+
let l = yu(this), c = Xv(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
|
|
26745
26743
|
(d || !e.selection.eq(i.selection)) && (s = !0);
|
|
26746
26744
|
let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && BL(this);
|
|
26747
26745
|
if (s) {
|
|
@@ -26958,7 +26956,7 @@ class r4 {
|
|
|
26958
26956
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
26959
26957
|
*/
|
|
26960
26958
|
destroy() {
|
|
26961
|
-
this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
26959
|
+
this.docView && (Ij(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], yu(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, AL());
|
|
26962
26960
|
}
|
|
26963
26961
|
/**
|
|
26964
26962
|
This is true when the view has been
|
|
@@ -27129,7 +27127,7 @@ for (var yt = 0; yt < 10; yt++) Sr[48 + yt] = Sr[96 + yt] = String(yt);
|
|
|
27129
27127
|
for (var yt = 1; yt <= 24; yt++) Sr[yt + 111] = "F" + yt;
|
|
27130
27128
|
for (var yt = 65; yt <= 90; yt++)
|
|
27131
27129
|
Sr[yt] = String.fromCharCode(yt + 32), Ya[yt] = String.fromCharCode(yt);
|
|
27132
|
-
for (var
|
|
27130
|
+
for (var Cu in Sr) Ya.hasOwnProperty(Cu) || (Ya[Cu] = Sr[Cu]);
|
|
27133
27131
|
function l4(t) {
|
|
27134
27132
|
var e = s4 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || a4 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Ya : Sr)[t.keyCode] || t.key || "Unidentified";
|
|
27135
27133
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
@@ -27162,7 +27160,7 @@ function d4(t) {
|
|
|
27162
27160
|
e[u4(n)] = t[n];
|
|
27163
27161
|
return e;
|
|
27164
27162
|
}
|
|
27165
|
-
function
|
|
27163
|
+
function wu(t, e, n = !0) {
|
|
27166
27164
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
27167
27165
|
}
|
|
27168
27166
|
function f4(t) {
|
|
@@ -27171,17 +27169,17 @@ function f4(t) {
|
|
|
27171
27169
|
function Vw(t) {
|
|
27172
27170
|
let e = d4(t);
|
|
27173
27171
|
return function(n, r) {
|
|
27174
|
-
let i = l4(r), o, s = e[
|
|
27172
|
+
let i = l4(r), o, s = e[wu(i, r)];
|
|
27175
27173
|
if (s && s(n.state, n.dispatch, n))
|
|
27176
27174
|
return !0;
|
|
27177
27175
|
if (i.length == 1 && i != " ") {
|
|
27178
27176
|
if (r.shiftKey) {
|
|
27179
|
-
let a = e[
|
|
27177
|
+
let a = e[wu(i, r, !1)];
|
|
27180
27178
|
if (a && a(n.state, n.dispatch, n))
|
|
27181
27179
|
return !0;
|
|
27182
27180
|
}
|
|
27183
27181
|
if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Sr[r.keyCode]) && o != i) {
|
|
27184
|
-
let a = e[
|
|
27182
|
+
let a = e[wu(o, r)];
|
|
27185
27183
|
if (a && a(n.state, n.dispatch, n))
|
|
27186
27184
|
return !0;
|
|
27187
27185
|
}
|
|
@@ -27208,7 +27206,7 @@ const h4 = (t, e, n) => {
|
|
|
27208
27206
|
return !0;
|
|
27209
27207
|
if (r.parent.content.size == 0 && (Ui(o, "end") || ge.isSelectable(o)))
|
|
27210
27208
|
for (let s = r.depth; ; s--) {
|
|
27211
|
-
let a =
|
|
27209
|
+
let a = ic(t.doc, r.before(s), r.after(s), le.empty);
|
|
27212
27210
|
if (a && a.slice.size < a.to - a.from) {
|
|
27213
27211
|
if (e) {
|
|
27214
27212
|
let l = t.tr.step(a);
|
|
@@ -27252,7 +27250,7 @@ function Lw(t, e, n) {
|
|
|
27252
27250
|
return !1;
|
|
27253
27251
|
a = u;
|
|
27254
27252
|
}
|
|
27255
|
-
let c =
|
|
27253
|
+
let c = ic(t.doc, o, l, le.empty);
|
|
27256
27254
|
if (!c || c.from != o || c instanceof dt && c.slice.size >= l - o)
|
|
27257
27255
|
return !1;
|
|
27258
27256
|
if (n) {
|
|
@@ -27307,7 +27305,7 @@ const b4 = (t, e, n) => {
|
|
|
27307
27305
|
if (zw(t, i, e, 1))
|
|
27308
27306
|
return !0;
|
|
27309
27307
|
if (r.parent.content.size == 0 && (Ui(o, "start") || ge.isSelectable(o))) {
|
|
27310
|
-
let s =
|
|
27308
|
+
let s = ic(t.doc, r.before(), r.after(), le.empty);
|
|
27311
27309
|
if (s && s.slice.size < s.to - s.from) {
|
|
27312
27310
|
if (e) {
|
|
27313
27311
|
let a = t.tr.step(s);
|
|
@@ -27346,7 +27344,7 @@ const x4 = (t, e) => {
|
|
|
27346
27344
|
if (n.node.isTextblock || !Ar(t.doc, n.from))
|
|
27347
27345
|
return !1;
|
|
27348
27346
|
i = n.from;
|
|
27349
|
-
} else if (i =
|
|
27347
|
+
} else if (i = rc(t.doc, n.from, -1), i == null)
|
|
27350
27348
|
return !1;
|
|
27351
27349
|
if (e) {
|
|
27352
27350
|
let o = t.tr.join(i);
|
|
@@ -27359,7 +27357,7 @@ const x4 = (t, e) => {
|
|
|
27359
27357
|
if (n.node.isTextblock || !Ar(t.doc, n.to))
|
|
27360
27358
|
return !1;
|
|
27361
27359
|
r = n.to;
|
|
27362
|
-
} else if (r =
|
|
27360
|
+
} else if (r = rc(t.doc, n.to, 1), r == null)
|
|
27363
27361
|
return !1;
|
|
27364
27362
|
return e && e(t.tr.join(r).scrollIntoView()), !0;
|
|
27365
27363
|
}, w4 = (t, e) => {
|
|
@@ -27584,7 +27582,7 @@ function B4(t) {
|
|
|
27584
27582
|
return !0;
|
|
27585
27583
|
};
|
|
27586
27584
|
}
|
|
27587
|
-
function
|
|
27585
|
+
function cc(t) {
|
|
27588
27586
|
const { state: e, transaction: n } = t;
|
|
27589
27587
|
let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n;
|
|
27590
27588
|
return {
|
|
@@ -27609,7 +27607,7 @@ function lc(t) {
|
|
|
27609
27607
|
}
|
|
27610
27608
|
};
|
|
27611
27609
|
}
|
|
27612
|
-
class
|
|
27610
|
+
class uc {
|
|
27613
27611
|
constructor(e) {
|
|
27614
27612
|
this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
|
|
27615
27613
|
}
|
|
@@ -27654,7 +27652,7 @@ class cc {
|
|
|
27654
27652
|
tr: e,
|
|
27655
27653
|
editor: i,
|
|
27656
27654
|
view: s,
|
|
27657
|
-
state:
|
|
27655
|
+
state: cc({
|
|
27658
27656
|
state: o,
|
|
27659
27657
|
transaction: e
|
|
27660
27658
|
}),
|
|
@@ -27700,7 +27698,7 @@ function ce(t, e, n) {
|
|
|
27700
27698
|
parent: t.parent ? ce(t.parent, e, n) : null
|
|
27701
27699
|
}) : t.config[e];
|
|
27702
27700
|
}
|
|
27703
|
-
function
|
|
27701
|
+
function dc(t) {
|
|
27704
27702
|
const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark");
|
|
27705
27703
|
return {
|
|
27706
27704
|
baseExtensions: e,
|
|
@@ -27709,7 +27707,7 @@ function uc(t) {
|
|
|
27709
27707
|
};
|
|
27710
27708
|
}
|
|
27711
27709
|
function Hw(t) {
|
|
27712
|
-
const e = [], { nodeExtensions: n, markExtensions: r } =
|
|
27710
|
+
const e = [], { nodeExtensions: n, markExtensions: r } = dc(t), i = [...n, ...r], o = {
|
|
27713
27711
|
default: null,
|
|
27714
27712
|
rendered: !0,
|
|
27715
27713
|
renderHTML: null,
|
|
@@ -27795,7 +27793,7 @@ function lt(...t) {
|
|
|
27795
27793
|
}), r;
|
|
27796
27794
|
}, {});
|
|
27797
27795
|
}
|
|
27798
|
-
function
|
|
27796
|
+
function Wd(t, e) {
|
|
27799
27797
|
return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
|
|
27800
27798
|
[n.name]: t.attrs[n.name]
|
|
27801
27799
|
}).reduce((n, r) => lt(n, r), {});
|
|
@@ -27838,7 +27836,7 @@ function Qv(t) {
|
|
|
27838
27836
|
}
|
|
27839
27837
|
function z4(t, e) {
|
|
27840
27838
|
var n;
|
|
27841
|
-
const r = Hw(t), { nodeExtensions: i, markExtensions: o } =
|
|
27839
|
+
const r = Hw(t), { nodeExtensions: i, markExtensions: o } = dc(t), s = (n = i.find((c) => ce(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
|
|
27842
27840
|
const u = r.filter((v) => v.type === c.name), d = {
|
|
27843
27841
|
name: c.name,
|
|
27844
27842
|
options: c.options,
|
|
@@ -27873,7 +27871,7 @@ function z4(t, e) {
|
|
|
27873
27871
|
const m = ce(c, "renderHTML", d);
|
|
27874
27872
|
m && (p.toDOM = (v) => m({
|
|
27875
27873
|
node: v,
|
|
27876
|
-
HTMLAttributes:
|
|
27874
|
+
HTMLAttributes: Wd(v, u)
|
|
27877
27875
|
}));
|
|
27878
27876
|
const g = ce(c, "renderText", d);
|
|
27879
27877
|
return g && (p.toText = g), [c.name, p];
|
|
@@ -27905,7 +27903,7 @@ function z4(t, e) {
|
|
|
27905
27903
|
const m = ce(c, "renderHTML", d);
|
|
27906
27904
|
return m && (p.toDOM = (g) => m({
|
|
27907
27905
|
mark: g,
|
|
27908
|
-
HTMLAttributes:
|
|
27906
|
+
HTMLAttributes: Wd(g, u)
|
|
27909
27907
|
})), [c.name, p];
|
|
27910
27908
|
}));
|
|
27911
27909
|
return new BC({
|
|
@@ -27914,7 +27912,7 @@ function z4(t, e) {
|
|
|
27914
27912
|
marks: l
|
|
27915
27913
|
});
|
|
27916
27914
|
}
|
|
27917
|
-
function
|
|
27915
|
+
function Su(t, e) {
|
|
27918
27916
|
return e.nodes[t] || e.marks[t] || null;
|
|
27919
27917
|
}
|
|
27920
27918
|
function eb(t, e) {
|
|
@@ -27941,7 +27939,7 @@ const _4 = (t, e = 500) => {
|
|
|
27941
27939
|
function Zp(t) {
|
|
27942
27940
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
27943
27941
|
}
|
|
27944
|
-
class
|
|
27942
|
+
class fc {
|
|
27945
27943
|
constructor(e) {
|
|
27946
27944
|
this.find = e.find, this.handler = e.handler;
|
|
27947
27945
|
}
|
|
@@ -27974,13 +27972,13 @@ function Ws(t) {
|
|
|
27974
27972
|
const p = H4(d, f.find);
|
|
27975
27973
|
if (!p)
|
|
27976
27974
|
return;
|
|
27977
|
-
const h = l.state.tr, m =
|
|
27975
|
+
const h = l.state.tr, m = cc({
|
|
27978
27976
|
state: l.state,
|
|
27979
27977
|
transaction: h
|
|
27980
27978
|
}), g = {
|
|
27981
27979
|
from: r - (p[0].length - o.length),
|
|
27982
27980
|
to: i
|
|
27983
|
-
}, { commands: v, chain: b, can: x } = new
|
|
27981
|
+
}, { commands: v, chain: b, can: x } = new uc({
|
|
27984
27982
|
editor: n,
|
|
27985
27983
|
state: m
|
|
27986
27984
|
});
|
|
@@ -28077,10 +28075,10 @@ function $4(t) {
|
|
|
28077
28075
|
function $s(t) {
|
|
28078
28076
|
return $4(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
|
|
28079
28077
|
}
|
|
28080
|
-
function
|
|
28078
|
+
function pc(t, e) {
|
|
28081
28079
|
const n = { ...t };
|
|
28082
28080
|
return $s(t) && $s(e) && Object.keys(e).forEach((r) => {
|
|
28083
|
-
$s(e[r]) && $s(t[r]) ? n[r] =
|
|
28081
|
+
$s(e[r]) && $s(t[r]) ? n[r] = pc(t[r], e[r]) : n[r] = e[r];
|
|
28084
28082
|
}), n;
|
|
28085
28083
|
}
|
|
28086
28084
|
class fn {
|
|
@@ -28104,7 +28102,7 @@ class fn {
|
|
|
28104
28102
|
configure(e = {}) {
|
|
28105
28103
|
const n = this.extend({
|
|
28106
28104
|
...this.config,
|
|
28107
|
-
addOptions: () =>
|
|
28105
|
+
addOptions: () => pc(this.options, e)
|
|
28108
28106
|
});
|
|
28109
28107
|
return n.name = this.name, n.parent = this.parent, n;
|
|
28110
28108
|
}
|
|
@@ -28147,7 +28145,7 @@ const Z4 = (t, e, n) => {
|
|
|
28147
28145
|
}) : [];
|
|
28148
28146
|
};
|
|
28149
28147
|
function J4(t) {
|
|
28150
|
-
const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new
|
|
28148
|
+
const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new uc({
|
|
28151
28149
|
editor: e,
|
|
28152
28150
|
state: n
|
|
28153
28151
|
}), d = [];
|
|
@@ -28191,7 +28189,7 @@ function K4(t) {
|
|
|
28191
28189
|
a = null;
|
|
28192
28190
|
}
|
|
28193
28191
|
const l = ({ state: u, from: d, to: f, rule: p, pasteEvt: h }) => {
|
|
28194
|
-
const m = u.tr, g =
|
|
28192
|
+
const m = u.tr, g = cc({
|
|
28195
28193
|
state: u,
|
|
28196
28194
|
transaction: m
|
|
28197
28195
|
});
|
|
@@ -28318,7 +28316,7 @@ class Fi {
|
|
|
28318
28316
|
options: n.options,
|
|
28319
28317
|
storage: n.storage,
|
|
28320
28318
|
editor: this.editor,
|
|
28321
|
-
type:
|
|
28319
|
+
type: Su(n.name, this.schema)
|
|
28322
28320
|
}, i = ce(n, "addCommands", r);
|
|
28323
28321
|
return i ? {
|
|
28324
28322
|
...e,
|
|
@@ -28337,7 +28335,7 @@ class Fi {
|
|
|
28337
28335
|
options: s.options,
|
|
28338
28336
|
storage: s.storage,
|
|
28339
28337
|
editor: e,
|
|
28340
|
-
type:
|
|
28338
|
+
type: Su(s.name, this.schema)
|
|
28341
28339
|
}, l = [], c = ce(s, "addKeyboardShortcuts", a);
|
|
28342
28340
|
let u = {};
|
|
28343
28341
|
if (s.type === "mark" && ce(s, "exitable", a) && (u.ArrowRight = () => fn.handleExit({ editor: e, mark: s })), c) {
|
|
@@ -28381,7 +28379,7 @@ class Fi {
|
|
|
28381
28379
|
* @returns An object with all node views where the key is the node name and the value is the node view function
|
|
28382
28380
|
*/
|
|
28383
28381
|
get nodeViews() {
|
|
28384
|
-
const { editor: e } = this, { nodeExtensions: n } =
|
|
28382
|
+
const { editor: e } = this, { nodeExtensions: n } = dc(this.extensions);
|
|
28385
28383
|
return Object.fromEntries(n.filter((r) => !!ce(r, "addNodeView")).map((r) => {
|
|
28386
28384
|
const i = this.attributes.filter((l) => l.type === r.name), o = {
|
|
28387
28385
|
name: r.name,
|
|
@@ -28393,7 +28391,7 @@ class Fi {
|
|
|
28393
28391
|
if (!s)
|
|
28394
28392
|
return [];
|
|
28395
28393
|
const a = (l, c, u, d, f) => {
|
|
28396
|
-
const p =
|
|
28394
|
+
const p = Wd(l, i);
|
|
28397
28395
|
return s()({
|
|
28398
28396
|
// pass-through
|
|
28399
28397
|
node: l,
|
|
@@ -28423,7 +28421,7 @@ class Fi {
|
|
|
28423
28421
|
options: e.options,
|
|
28424
28422
|
storage: e.storage,
|
|
28425
28423
|
editor: this.editor,
|
|
28426
|
-
type:
|
|
28424
|
+
type: Su(e.name, this.schema)
|
|
28427
28425
|
};
|
|
28428
28426
|
e.type === "mark" && (!((n = Te(ce(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
|
|
28429
28427
|
const i = ce(e, "onBeforeCreate", r), o = ce(e, "onCreate", r), s = ce(e, "onUpdate", r), a = ce(e, "onSelectionUpdate", r), l = ce(e, "onTransaction", r), c = ce(e, "onFocus", r), u = ce(e, "onBlur", r), d = ce(e, "onDestroy", r);
|
|
@@ -28452,7 +28450,7 @@ class Mt {
|
|
|
28452
28450
|
configure(e = {}) {
|
|
28453
28451
|
const n = this.extend({
|
|
28454
28452
|
...this.config,
|
|
28455
|
-
addOptions: () =>
|
|
28453
|
+
addOptions: () => pc(this.options, e)
|
|
28456
28454
|
});
|
|
28457
28455
|
return n.name = this.name, n.parent = this.parent, n;
|
|
28458
28456
|
}
|
|
@@ -28792,14 +28790,14 @@ const b3 = (t) => !("type" in t), y3 = (t, e, n) => ({ tr: r, dispatch: i, edito
|
|
|
28792
28790
|
return !0;
|
|
28793
28791
|
}, x3 = () => ({ state: t, dispatch: e }) => x4(t, e), C3 = () => ({ state: t, dispatch: e }) => C4(t, e), w3 = () => ({ state: t, dispatch: e }) => h4(t, e), S3 = () => ({ state: t, dispatch: e }) => b4(t, e), I3 = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
28794
28792
|
try {
|
|
28795
|
-
const r =
|
|
28793
|
+
const r = rc(t.doc, t.selection.$from.pos, -1);
|
|
28796
28794
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
28797
28795
|
} catch {
|
|
28798
28796
|
return !1;
|
|
28799
28797
|
}
|
|
28800
28798
|
}, E3 = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
28801
28799
|
try {
|
|
28802
|
-
const r =
|
|
28800
|
+
const r = rc(t.doc, t.selection.$from.pos, 1);
|
|
28803
28801
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
28804
28802
|
} catch {
|
|
28805
28803
|
return !1;
|
|
@@ -28869,7 +28867,7 @@ const O3 = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
28869
28867
|
const r = ht(t, e.schema);
|
|
28870
28868
|
return N4(r)(e, n);
|
|
28871
28869
|
}, D3 = () => ({ state: t, dispatch: e }) => S4(t, e);
|
|
28872
|
-
function
|
|
28870
|
+
function hc(t, e) {
|
|
28873
28871
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
28874
28872
|
}
|
|
28875
28873
|
function nb(t, e) {
|
|
@@ -28878,7 +28876,7 @@ function nb(t, e) {
|
|
|
28878
28876
|
}
|
|
28879
28877
|
const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
28880
28878
|
let o = null, s = null;
|
|
28881
|
-
const a =
|
|
28879
|
+
const a = hc(typeof t == "string" ? t : t.name, r.schema);
|
|
28882
28880
|
return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
28883
28881
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
|
|
28884
28882
|
o && o === c.type && n.setNodeMarkup(u, void 0, nb(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
|
|
@@ -28890,7 +28888,7 @@ const N3 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
28890
28888
|
from: 0,
|
|
28891
28889
|
to: t.doc.content.size
|
|
28892
28890
|
}), B3 = () => ({ state: t, dispatch: e }) => v4(t, e), L3 = () => ({ state: t, dispatch: e }) => y4(t, e), j3 = () => ({ state: t, dispatch: e }) => T4(t, e), G3 = () => ({ state: t, dispatch: e }) => O4(t, e), z3 = () => ({ state: t, dispatch: e }) => M4(t, e);
|
|
28893
|
-
function
|
|
28891
|
+
function $d(t, e, n = {}, r = {}) {
|
|
28894
28892
|
return Ja(t, e, {
|
|
28895
28893
|
slice: !1,
|
|
28896
28894
|
parseOptions: n,
|
|
@@ -28901,7 +28899,7 @@ const _3 = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
|
|
|
28901
28899
|
var l, c;
|
|
28902
28900
|
const { doc: u } = o;
|
|
28903
28901
|
if (n.preserveWhitespace !== "full") {
|
|
28904
|
-
const d =
|
|
28902
|
+
const d = $d(t, i.schema, n, {
|
|
28905
28903
|
errorOnInvalidContent: (l = r.errorOnInvalidContent) !== null && l !== void 0 ? l : i.options.enableContentCheck
|
|
28906
28904
|
});
|
|
28907
28905
|
return s && o.replaceWith(0, u.content.size, d).setMeta("preventUpdate", !e), !0;
|
|
@@ -28975,7 +28973,7 @@ function Z3(t, e) {
|
|
|
28975
28973
|
return s ? { ...s.attrs } : {};
|
|
28976
28974
|
}
|
|
28977
28975
|
function qw(t, e) {
|
|
28978
|
-
const n =
|
|
28976
|
+
const n = hc(typeof e == "string" ? e : e.name, t.schema);
|
|
28979
28977
|
return n === "node" ? Z3(t, e) : n === "mark" ? Kp(t, e) : {};
|
|
28980
28978
|
}
|
|
28981
28979
|
function J3(t, e = JSON.stringify) {
|
|
@@ -29040,7 +29038,7 @@ function ca(t, e, n) {
|
|
|
29040
29038
|
return i ? i.attribute.keepOnSplit : !1;
|
|
29041
29039
|
}));
|
|
29042
29040
|
}
|
|
29043
|
-
function
|
|
29041
|
+
function Xd(t, e, n = {}) {
|
|
29044
29042
|
const { empty: r, ranges: i } = t.selection, o = e ? kr(e, t.schema) : null;
|
|
29045
29043
|
if (r)
|
|
29046
29044
|
return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Za(d.attrs, n, { strict: !1 }));
|
|
@@ -29065,12 +29063,12 @@ function $d(t, e, n = {}) {
|
|
|
29065
29063
|
}
|
|
29066
29064
|
function q3(t, e, n = {}) {
|
|
29067
29065
|
if (!e)
|
|
29068
|
-
return ss(t, null, n) ||
|
|
29069
|
-
const r =
|
|
29070
|
-
return r === "node" ? ss(t, e, n) : r === "mark" ?
|
|
29066
|
+
return ss(t, null, n) || Xd(t, null, n);
|
|
29067
|
+
const r = hc(e, t.schema);
|
|
29068
|
+
return r === "node" ? ss(t, e, n) : r === "mark" ? Xd(t, e, n) : !1;
|
|
29071
29069
|
}
|
|
29072
29070
|
function rb(t, e) {
|
|
29073
|
-
const { nodeExtensions: n } =
|
|
29071
|
+
const { nodeExtensions: n } = dc(e), r = n.find((s) => s.name === t);
|
|
29074
29072
|
if (!r)
|
|
29075
29073
|
return !1;
|
|
29076
29074
|
const i = {
|
|
@@ -29258,7 +29256,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29258
29256
|
n.ensureMarks(y);
|
|
29259
29257
|
}
|
|
29260
29258
|
return !0;
|
|
29261
|
-
},
|
|
29259
|
+
}, Iu = (t, e) => {
|
|
29262
29260
|
const n = qp((s) => s.type === e)(t.selection);
|
|
29263
29261
|
if (!n)
|
|
29264
29262
|
return !0;
|
|
@@ -29267,7 +29265,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29267
29265
|
return !0;
|
|
29268
29266
|
const i = t.doc.nodeAt(r);
|
|
29269
29267
|
return n.node.type === (i == null ? void 0 : i.type) && Ar(t.doc, n.pos) && t.join(n.pos), !0;
|
|
29270
|
-
},
|
|
29268
|
+
}, Eu = (t, e) => {
|
|
29271
29269
|
const n = qp((s) => s.type === e)(t.selection);
|
|
29272
29270
|
if (!n)
|
|
29273
29271
|
return !0;
|
|
@@ -29285,15 +29283,15 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29285
29283
|
if (y.node.type === p)
|
|
29286
29284
|
return c.liftListItem(h);
|
|
29287
29285
|
if (rb(y.node.type.name, d) && p.validContent(y.node.content) && a)
|
|
29288
|
-
return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() =>
|
|
29286
|
+
return l().command(() => (o.setNodeMarkup(y.pos, p), !0)).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
|
|
29289
29287
|
}
|
|
29290
|
-
return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() =>
|
|
29288
|
+
return !n || !w || !a ? l().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run() : l().command(() => {
|
|
29291
29289
|
const E = u().wrapInList(p, r), A = w.filter((T) => f.includes(T.type.name));
|
|
29292
29290
|
return o.ensureMarks(A), E ? !0 : c.clearNodes();
|
|
29293
|
-
}).wrapInList(p, r).command(() =>
|
|
29291
|
+
}).wrapInList(p, r).command(() => Iu(o, p)).command(() => Eu(o, p)).run();
|
|
29294
29292
|
}, uG = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
29295
29293
|
const { extendEmptyMarkRange: o = !1 } = n, s = kr(t, r.schema);
|
|
29296
|
-
return
|
|
29294
|
+
return Xd(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
|
|
29297
29295
|
}, dG = (t, e, n = {}) => ({ state: r, commands: i }) => {
|
|
29298
29296
|
const o = ht(t, r.schema), s = ht(e, r.schema), a = ss(r, o, n);
|
|
29299
29297
|
let l;
|
|
@@ -29342,7 +29340,7 @@ const aG = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29342
29340
|
return n.removeStoredMark(l), !0;
|
|
29343
29341
|
}, gG = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
29344
29342
|
let o = null, s = null;
|
|
29345
|
-
const a =
|
|
29343
|
+
const a = hc(typeof t == "string" ? t : t.name, r.schema);
|
|
29346
29344
|
return a ? (a === "node" && (o = ht(t, r.schema)), a === "mark" && (s = kr(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
29347
29345
|
const c = l.$from.pos, u = l.$to.pos;
|
|
29348
29346
|
let d, f, p, h;
|
|
@@ -29564,10 +29562,10 @@ const xG = Mt.create({
|
|
|
29564
29562
|
const { empty: o, from: s, to: a } = e.selection, l = Ee.atStart(e.doc).from, c = Ee.atEnd(e.doc).to;
|
|
29565
29563
|
if (o || !(s === l && a === c) || !eh(n.doc))
|
|
29566
29564
|
return;
|
|
29567
|
-
const f = n.tr, p =
|
|
29565
|
+
const f = n.tr, p = cc({
|
|
29568
29566
|
state: n,
|
|
29569
29567
|
transaction: f
|
|
29570
|
-
}), { commands: h } = new
|
|
29568
|
+
}), { commands: h } = new uc({
|
|
29571
29569
|
editor: this.editor,
|
|
29572
29570
|
state: p
|
|
29573
29571
|
});
|
|
@@ -29961,7 +29959,7 @@ let MG = class extends L4 {
|
|
|
29961
29959
|
* Creates an command manager.
|
|
29962
29960
|
*/
|
|
29963
29961
|
createCommandManager() {
|
|
29964
|
-
this.commandManager = new
|
|
29962
|
+
this.commandManager = new uc({
|
|
29965
29963
|
editor: this
|
|
29966
29964
|
});
|
|
29967
29965
|
}
|
|
@@ -29978,7 +29976,7 @@ let MG = class extends L4 {
|
|
|
29978
29976
|
var e;
|
|
29979
29977
|
let n;
|
|
29980
29978
|
try {
|
|
29981
|
-
n =
|
|
29979
|
+
n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
|
|
29982
29980
|
} catch (s) {
|
|
29983
29981
|
if (!(s instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(s.message))
|
|
29984
29982
|
throw s;
|
|
@@ -29988,7 +29986,7 @@ let MG = class extends L4 {
|
|
|
29988
29986
|
disableCollaboration: () => {
|
|
29989
29987
|
this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((a) => a.name !== "collaboration"), this.createExtensionManager();
|
|
29990
29988
|
}
|
|
29991
|
-
}), n =
|
|
29989
|
+
}), n = $d(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
29992
29990
|
}
|
|
29993
29991
|
const r = Jw(n, this.options.autofocus);
|
|
29994
29992
|
this.view = new r4(this.options.element, {
|
|
@@ -30160,7 +30158,7 @@ let MG = class extends L4 {
|
|
|
30160
30158
|
}
|
|
30161
30159
|
};
|
|
30162
30160
|
function Ki(t) {
|
|
30163
|
-
return new
|
|
30161
|
+
return new fc({
|
|
30164
30162
|
find: t.find,
|
|
30165
30163
|
handler: ({ state: e, range: n, match: r }) => {
|
|
30166
30164
|
const i = Te(t.getAttributes, void 0, r);
|
|
@@ -30179,7 +30177,7 @@ function Ki(t) {
|
|
|
30179
30177
|
});
|
|
30180
30178
|
}
|
|
30181
30179
|
function OG(t) {
|
|
30182
|
-
return new
|
|
30180
|
+
return new fc({
|
|
30183
30181
|
find: t.find,
|
|
30184
30182
|
handler: ({ state: e, range: n, match: r }) => {
|
|
30185
30183
|
const i = Te(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
|
|
@@ -30199,8 +30197,8 @@ function OG(t) {
|
|
|
30199
30197
|
}
|
|
30200
30198
|
});
|
|
30201
30199
|
}
|
|
30202
|
-
function
|
|
30203
|
-
return new
|
|
30200
|
+
function Yd(t) {
|
|
30201
|
+
return new fc({
|
|
30204
30202
|
find: t.find,
|
|
30205
30203
|
handler: ({ state: e, range: n, match: r }) => {
|
|
30206
30204
|
const i = e.doc.resolve(n.from), o = Te(t.getAttributes, void 0, r) || {};
|
|
@@ -30211,7 +30209,7 @@ function Xd(t) {
|
|
|
30211
30209
|
});
|
|
30212
30210
|
}
|
|
30213
30211
|
function as(t) {
|
|
30214
|
-
return new
|
|
30212
|
+
return new fc({
|
|
30215
30213
|
find: t.find,
|
|
30216
30214
|
handler: ({ state: e, range: n, match: r, chain: i }) => {
|
|
30217
30215
|
const o = Te(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Fp(l, t.type, o);
|
|
@@ -30233,7 +30231,7 @@ function as(t) {
|
|
|
30233
30231
|
}
|
|
30234
30232
|
});
|
|
30235
30233
|
}
|
|
30236
|
-
let pn = class
|
|
30234
|
+
let pn = class Zd {
|
|
30237
30235
|
constructor(e = {}) {
|
|
30238
30236
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
30239
30237
|
name: this.name,
|
|
@@ -30249,17 +30247,17 @@ let pn = class Yd {
|
|
|
30249
30247
|
})) || {};
|
|
30250
30248
|
}
|
|
30251
30249
|
static create(e = {}) {
|
|
30252
|
-
return new
|
|
30250
|
+
return new Zd(e);
|
|
30253
30251
|
}
|
|
30254
30252
|
configure(e = {}) {
|
|
30255
30253
|
const n = this.extend({
|
|
30256
30254
|
...this.config,
|
|
30257
|
-
addOptions: () =>
|
|
30255
|
+
addOptions: () => pc(this.options, e)
|
|
30258
30256
|
});
|
|
30259
30257
|
return n.name = this.name, n.parent = this.parent, n;
|
|
30260
30258
|
}
|
|
30261
30259
|
extend(e = {}) {
|
|
30262
|
-
const n = new
|
|
30260
|
+
const n = new Zd(e);
|
|
30263
30261
|
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Te(ce(n, "addOptions", {
|
|
30264
30262
|
name: n.name
|
|
30265
30263
|
})), n.storage = Te(ce(n, "addStorage", {
|
|
@@ -30386,7 +30384,7 @@ const PG = fn.create({
|
|
|
30386
30384
|
}), {});
|
|
30387
30385
|
},
|
|
30388
30386
|
addInputRules() {
|
|
30389
|
-
return this.options.levels.map((t) =>
|
|
30387
|
+
return this.options.levels.map((t) => Yd({
|
|
30390
30388
|
find: new RegExp(`^(#{1,${t}})\\s$`),
|
|
30391
30389
|
type: this.type,
|
|
30392
30390
|
getAttributes: {
|
|
@@ -30398,12 +30396,12 @@ const PG = fn.create({
|
|
|
30398
30396
|
for (const n in e)
|
|
30399
30397
|
t[n] = e[n];
|
|
30400
30398
|
return t;
|
|
30401
|
-
},
|
|
30399
|
+
}, Jd = "numeric", Ud = "ascii", Kd = "alpha", ua = "asciinumeric", Ys = "alphanumeric", qd = "domain", eS = "emoji", FG = "scheme", VG = "slashscheme", ob = "whitespace";
|
|
30402
30400
|
function BG(t, e) {
|
|
30403
30401
|
return t in e || (e[t] = []), e[t];
|
|
30404
30402
|
}
|
|
30405
30403
|
function Xr(t, e, n) {
|
|
30406
|
-
e[
|
|
30404
|
+
e[Jd] && (e[ua] = !0, e[Ys] = !0), e[Ud] && (e[ua] = !0, e[Kd] = !0), e[ua] && (e[Ys] = !0), e[Kd] && (e[Ys] = !0), e[Ys] && (e[qd] = !0), e[eS] && (e[qd] = !0);
|
|
30407
30405
|
for (const r in e) {
|
|
30408
30406
|
const i = BG(r, n);
|
|
30409
30407
|
i.indexOf(t) < 0 && i.push(t);
|
|
@@ -30539,14 +30537,14 @@ jt.prototype = {
|
|
|
30539
30537
|
return i.j[t] = s, s;
|
|
30540
30538
|
}
|
|
30541
30539
|
};
|
|
30542
|
-
const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD",
|
|
30540
|
+
const Ae = (t, e, n, r, i) => t.ta(e, n, r, i), Ut = (t, e, n, r, i) => t.tr(e, n, r, i), sb = (t, e, n, r, i) => t.ts(e, n, r, i), ee = (t, e, n, r, i) => t.tt(e, n, r, i), Ln = "WORD", Qd = "UWORD", ls = "LOCALHOST", ef = "TLD", tf = "UTLD", da = "SCHEME", ki = "SLASH_SCHEME", th = "NUM", tS = "WS", nh = "NL", jo = "OPENBRACE", Go = "CLOSEBRACE", Ua = "OPENBRACKET", Ka = "CLOSEBRACKET", qa = "OPENPAREN", Qa = "CLOSEPAREN", el = "OPENANGLEBRACKET", tl = "CLOSEANGLEBRACKET", nl = "FULLWIDTHLEFTPAREN", rl = "FULLWIDTHRIGHTPAREN", il = "LEFTCORNERBRACKET", ol = "RIGHTCORNERBRACKET", sl = "LEFTWHITECORNERBRACKET", al = "RIGHTWHITECORNERBRACKET", ll = "FULLWIDTHLESSTHAN", cl = "FULLWIDTHGREATERTHAN", ul = "AMPERSAND", dl = "APOSTROPHE", fl = "ASTERISK", or = "AT", pl = "BACKSLASH", hl = "BACKTICK", ml = "CARET", ur = "COLON", rh = "COMMA", gl = "DOLLAR", bn = "DOT", vl = "EQUALS", ih = "EXCLAMATION", yn = "HYPHEN", bl = "PERCENT", yl = "PIPE", xl = "PLUS", Cl = "POUND", wl = "QUERY", oh = "QUOTE", nS = "FULLWIDTHMIDDLEDOT", sh = "SEMI", xn = "SLASH", zo = "TILDE", Sl = "UNDERSCORE", rS = "EMOJI", Il = "SYM";
|
|
30543
30541
|
var iS = /* @__PURE__ */ Object.freeze({
|
|
30544
30542
|
__proto__: null,
|
|
30545
30543
|
WORD: Ln,
|
|
30546
|
-
UWORD:
|
|
30544
|
+
UWORD: Qd,
|
|
30547
30545
|
LOCALHOST: ls,
|
|
30548
|
-
TLD:
|
|
30549
|
-
UTLD:
|
|
30546
|
+
TLD: ef,
|
|
30547
|
+
UTLD: tf,
|
|
30550
30548
|
SCHEME: da,
|
|
30551
30549
|
SLASH_SCHEME: ki,
|
|
30552
30550
|
NUM: th,
|
|
@@ -30596,7 +30594,7 @@ var iS = /* @__PURE__ */ Object.freeze({
|
|
|
30596
30594
|
EMOJI: rS,
|
|
30597
30595
|
SYM: Il
|
|
30598
30596
|
});
|
|
30599
|
-
const Ii = /[a-z]/,
|
|
30597
|
+
const Ii = /[a-z]/, Au = new RegExp("\\p{L}", "u"), Tu = new RegExp("\\p{Emoji}", "u"), ku = /\d/, ab = /\s/, lb = `
|
|
30600
30598
|
`, jG = "️", GG = "";
|
|
30601
30599
|
let Zs = null, Js = null;
|
|
30602
30600
|
function zG(t = []) {
|
|
@@ -30604,39 +30602,39 @@ function zG(t = []) {
|
|
|
30604
30602
|
jt.groups = e;
|
|
30605
30603
|
const n = new jt();
|
|
30606
30604
|
Zs == null && (Zs = cb(DG)), Js == null && (Js = cb(NG)), ee(n, "'", dl), ee(n, "{", jo), ee(n, "}", Go), ee(n, "[", Ua), ee(n, "]", Ka), ee(n, "(", qa), ee(n, ")", Qa), ee(n, "<", el), ee(n, ">", tl), ee(n, "(", nl), ee(n, ")", rl), ee(n, "「", il), ee(n, "」", ol), ee(n, "『", sl), ee(n, "』", al), ee(n, "<", ll), ee(n, ">", cl), ee(n, "&", ul), ee(n, "*", fl), ee(n, "@", or), ee(n, "`", hl), ee(n, "^", ml), ee(n, ":", ur), ee(n, ",", rh), ee(n, "$", gl), ee(n, ".", bn), ee(n, "=", vl), ee(n, "!", ih), ee(n, "-", yn), ee(n, "%", bl), ee(n, "|", yl), ee(n, "+", xl), ee(n, "#", Cl), ee(n, "?", wl), ee(n, '"', oh), ee(n, "/", xn), ee(n, ";", sh), ee(n, "~", zo), ee(n, "_", Sl), ee(n, "\\", pl), ee(n, "・", nS);
|
|
30607
|
-
const r = Ut(n,
|
|
30608
|
-
[
|
|
30605
|
+
const r = Ut(n, ku, th, {
|
|
30606
|
+
[Jd]: !0
|
|
30609
30607
|
});
|
|
30610
|
-
Ut(r,
|
|
30608
|
+
Ut(r, ku, r);
|
|
30611
30609
|
const i = Ut(n, Ii, Ln, {
|
|
30612
|
-
[
|
|
30610
|
+
[Ud]: !0
|
|
30613
30611
|
});
|
|
30614
30612
|
Ut(i, Ii, i);
|
|
30615
|
-
const o = Ut(n,
|
|
30616
|
-
[
|
|
30613
|
+
const o = Ut(n, Au, Qd, {
|
|
30614
|
+
[Kd]: !0
|
|
30617
30615
|
});
|
|
30618
|
-
Ut(o, Ii), Ut(o,
|
|
30616
|
+
Ut(o, Ii), Ut(o, Au, o);
|
|
30619
30617
|
const s = Ut(n, ab, tS, {
|
|
30620
30618
|
[ob]: !0
|
|
30621
30619
|
});
|
|
30622
30620
|
ee(n, lb, nh, {
|
|
30623
30621
|
[ob]: !0
|
|
30624
30622
|
}), ee(s, lb), Ut(s, ab, s);
|
|
30625
|
-
const a = Ut(n,
|
|
30623
|
+
const a = Ut(n, Tu, rS, {
|
|
30626
30624
|
[eS]: !0
|
|
30627
30625
|
});
|
|
30628
|
-
Ut(a,
|
|
30626
|
+
Ut(a, Tu, a), ee(a, jG, a);
|
|
30629
30627
|
const l = ee(a, GG);
|
|
30630
|
-
Ut(l,
|
|
30631
|
-
const c = [[Ii, i]], u = [[Ii, null], [
|
|
30628
|
+
Ut(l, Tu, a);
|
|
30629
|
+
const c = [[Ii, i]], u = [[Ii, null], [Au, o]];
|
|
30632
30630
|
for (let d = 0; d < Zs.length; d++)
|
|
30633
|
-
tr(n, Zs[d],
|
|
30631
|
+
tr(n, Zs[d], ef, Ln, c);
|
|
30634
30632
|
for (let d = 0; d < Js.length; d++)
|
|
30635
|
-
tr(n, Js[d],
|
|
30636
|
-
Xr(
|
|
30633
|
+
tr(n, Js[d], tf, Qd, u);
|
|
30634
|
+
Xr(ef, {
|
|
30637
30635
|
tld: !0,
|
|
30638
30636
|
ascii: !0
|
|
30639
|
-
}, e), Xr(
|
|
30637
|
+
}, e), Xr(tf, {
|
|
30640
30638
|
utld: !0,
|
|
30641
30639
|
alpha: !0
|
|
30642
30640
|
}, e), tr(n, "file", da, Ln, c), tr(n, "mailto", da, Ln, c), tr(n, "http", ki, Ln, c), tr(n, "https", ki, Ln, c), tr(n, "ftp", ki, Ln, c), tr(n, "ftps", ki, Ln, c), Xr(da, {
|
|
@@ -30652,7 +30650,7 @@ function zG(t = []) {
|
|
|
30652
30650
|
} : {
|
|
30653
30651
|
[VG]: !0
|
|
30654
30652
|
};
|
|
30655
|
-
f.indexOf("-") >= 0 ? h[
|
|
30653
|
+
f.indexOf("-") >= 0 ? h[qd] = !0 : Ii.test(f) ? ku.test(f) ? h[ua] = !0 : h[Ud] = !0 : h[Jd] = !0, sb(n, f, f, h);
|
|
30656
30654
|
}
|
|
30657
30655
|
return sb(n, "localhost", ls, {
|
|
30658
30656
|
ascii: !0
|
|
@@ -30914,7 +30912,7 @@ sS.prototype = {
|
|
|
30914
30912
|
};
|
|
30915
30913
|
}
|
|
30916
30914
|
};
|
|
30917
|
-
function
|
|
30915
|
+
function mc(t, e) {
|
|
30918
30916
|
class n extends sS {
|
|
30919
30917
|
constructor(i, o) {
|
|
30920
30918
|
super(i, o), this.t = t;
|
|
@@ -30924,12 +30922,12 @@ function hc(t, e) {
|
|
|
30924
30922
|
n.prototype[r] = e[r];
|
|
30925
30923
|
return n.t = t, n;
|
|
30926
30924
|
}
|
|
30927
|
-
const db =
|
|
30925
|
+
const db = mc("email", {
|
|
30928
30926
|
isLink: !0,
|
|
30929
30927
|
toHref() {
|
|
30930
30928
|
return "mailto:" + this.toString();
|
|
30931
30929
|
}
|
|
30932
|
-
}), fb =
|
|
30930
|
+
}), fb = mc("text"), HG = mc("nl"), Us = mc("url", {
|
|
30933
30931
|
isLink: !0,
|
|
30934
30932
|
/**
|
|
30935
30933
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -31023,14 +31021,14 @@ function $G(t, e, n) {
|
|
|
31023
31021
|
if (f < 0)
|
|
31024
31022
|
i -= u, i < r && (s.push(n[i]), i++);
|
|
31025
31023
|
else {
|
|
31026
|
-
s.length > 0 && (o.push(
|
|
31024
|
+
s.length > 0 && (o.push(Mu(fb, e, s)), s = []), i -= f, u -= f;
|
|
31027
31025
|
const p = d.t, h = n.slice(i - u, i);
|
|
31028
|
-
o.push(
|
|
31026
|
+
o.push(Mu(p, e, h));
|
|
31029
31027
|
}
|
|
31030
31028
|
}
|
|
31031
|
-
return s.length > 0 && o.push(
|
|
31029
|
+
return s.length > 0 && o.push(Mu(fb, e, s)), o;
|
|
31032
31030
|
}
|
|
31033
|
-
function
|
|
31031
|
+
function Mu(t, e, n) {
|
|
31034
31032
|
const r = n[0].s, i = n[n.length - 1].e, o = e.slice(r, i);
|
|
31035
31033
|
return new t(o, n);
|
|
31036
31034
|
}
|
|
@@ -31365,7 +31363,7 @@ const tz = fn.create({
|
|
|
31365
31363
|
function rz(t) {
|
|
31366
31364
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
31367
31365
|
}
|
|
31368
|
-
var
|
|
31366
|
+
var nf = { exports: {} }, Ou = {};
|
|
31369
31367
|
/**
|
|
31370
31368
|
* @license React
|
|
31371
31369
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -31377,7 +31375,7 @@ var tf = { exports: {} }, Mu = {};
|
|
|
31377
31375
|
*/
|
|
31378
31376
|
var hb;
|
|
31379
31377
|
function iz() {
|
|
31380
|
-
if (hb) return
|
|
31378
|
+
if (hb) return Ou;
|
|
31381
31379
|
hb = 1;
|
|
31382
31380
|
var t = $;
|
|
31383
31381
|
function e(d, f) {
|
|
@@ -31408,9 +31406,9 @@ function iz() {
|
|
|
31408
31406
|
return f();
|
|
31409
31407
|
}
|
|
31410
31408
|
var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : a;
|
|
31411
|
-
return
|
|
31409
|
+
return Ou.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, Ou;
|
|
31412
31410
|
}
|
|
31413
|
-
var
|
|
31411
|
+
var Pu = {};
|
|
31414
31412
|
/**
|
|
31415
31413
|
* @license React
|
|
31416
31414
|
* use-sync-external-store-shim.development.js
|
|
@@ -31488,17 +31486,17 @@ function oz() {
|
|
|
31488
31486
|
return w();
|
|
31489
31487
|
}
|
|
31490
31488
|
var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !m, v = g ? h : f, b = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : v;
|
|
31491
|
-
|
|
31492
|
-
}()),
|
|
31489
|
+
Pu.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
31490
|
+
}()), Pu;
|
|
31493
31491
|
}
|
|
31494
|
-
process.env.NODE_ENV === "production" ?
|
|
31495
|
-
var
|
|
31492
|
+
process.env.NODE_ENV === "production" ? nf.exports = iz() : nf.exports = oz();
|
|
31493
|
+
var gc = nf.exports;
|
|
31496
31494
|
const sz = (...t) => (e) => {
|
|
31497
31495
|
t.forEach((n) => {
|
|
31498
31496
|
typeof n == "function" ? n(e) : n && (n.current = e);
|
|
31499
31497
|
});
|
|
31500
31498
|
}, az = ({ contentComponent: t }) => {
|
|
31501
|
-
const e =
|
|
31499
|
+
const e = gc.useSyncExternalStore(t.subscribe, t.getSnapshot, t.getServerSnapshot);
|
|
31502
31500
|
return $.createElement($.Fragment, null, Object.values(e));
|
|
31503
31501
|
};
|
|
31504
31502
|
function lz() {
|
|
@@ -31639,7 +31637,7 @@ var fz = function t(e, n) {
|
|
|
31639
31637
|
return !0;
|
|
31640
31638
|
}
|
|
31641
31639
|
return e !== e && n !== n;
|
|
31642
|
-
}, pz = /* @__PURE__ */ rz(fz),
|
|
31640
|
+
}, pz = /* @__PURE__ */ rz(fz), rf = { exports: {} }, Ru = {};
|
|
31643
31641
|
/**
|
|
31644
31642
|
* @license React
|
|
31645
31643
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -31651,14 +31649,14 @@ var fz = function t(e, n) {
|
|
|
31651
31649
|
*/
|
|
31652
31650
|
var gb;
|
|
31653
31651
|
function hz() {
|
|
31654
|
-
if (gb) return
|
|
31652
|
+
if (gb) return Ru;
|
|
31655
31653
|
gb = 1;
|
|
31656
|
-
var t = $, e =
|
|
31654
|
+
var t = $, e = gc;
|
|
31657
31655
|
function n(c, u) {
|
|
31658
31656
|
return c === u && (c !== 0 || 1 / c === 1 / u) || c !== c && u !== u;
|
|
31659
31657
|
}
|
|
31660
31658
|
var r = typeof Object.is == "function" ? Object.is : n, i = e.useSyncExternalStore, o = t.useRef, s = t.useEffect, a = t.useMemo, l = t.useDebugValue;
|
|
31661
|
-
return
|
|
31659
|
+
return Ru.useSyncExternalStoreWithSelector = function(c, u, d, f, p) {
|
|
31662
31660
|
var h = o(null);
|
|
31663
31661
|
if (h.current === null) {
|
|
31664
31662
|
var m = { hasValue: !1, value: null };
|
|
@@ -31688,9 +31686,9 @@ function hz() {
|
|
|
31688
31686
|
return s(function() {
|
|
31689
31687
|
m.hasValue = !0, m.value = g;
|
|
31690
31688
|
}, [g]), l(g), g;
|
|
31691
|
-
},
|
|
31689
|
+
}, Ru;
|
|
31692
31690
|
}
|
|
31693
|
-
var
|
|
31691
|
+
var Du = {};
|
|
31694
31692
|
/**
|
|
31695
31693
|
* @license React
|
|
31696
31694
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -31704,7 +31702,7 @@ var vb;
|
|
|
31704
31702
|
function mz() {
|
|
31705
31703
|
return vb || (vb = 1, process.env.NODE_ENV !== "production" && function() {
|
|
31706
31704
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
31707
|
-
var t = $, e =
|
|
31705
|
+
var t = $, e = gc;
|
|
31708
31706
|
function n(u, d) {
|
|
31709
31707
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
31710
31708
|
}
|
|
@@ -31743,11 +31741,11 @@ function mz() {
|
|
|
31743
31741
|
g.hasValue = !0, g.value = w;
|
|
31744
31742
|
}, [w]), l(w), w;
|
|
31745
31743
|
}
|
|
31746
|
-
|
|
31747
|
-
}()),
|
|
31744
|
+
Du.useSyncExternalStoreWithSelector = c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
31745
|
+
}()), Du;
|
|
31748
31746
|
}
|
|
31749
|
-
process.env.NODE_ENV === "production" ?
|
|
31750
|
-
var gz =
|
|
31747
|
+
process.env.NODE_ENV === "production" ? rf.exports = hz() : rf.exports = mz();
|
|
31748
|
+
var gz = rf.exports;
|
|
31751
31749
|
const vz = typeof window < "u" ? Qi : Pe;
|
|
31752
31750
|
class bz {
|
|
31753
31751
|
constructor(e) {
|
|
@@ -31792,7 +31790,7 @@ function yz(t) {
|
|
|
31792
31790
|
const [n] = Oe(() => new bz(t.editor)), r = gz.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : pz);
|
|
31793
31791
|
return vz(() => n.watch(t.editor), [t.editor, n]), Qb(r), r;
|
|
31794
31792
|
}
|
|
31795
|
-
const bb = process.env.NODE_ENV !== "production",
|
|
31793
|
+
const bb = process.env.NODE_ENV !== "production", of = typeof window > "u", xz = of || !!(typeof window < "u" && window.next);
|
|
31796
31794
|
class Cz {
|
|
31797
31795
|
constructor(e) {
|
|
31798
31796
|
this.editor = null, this.subscriptions = /* @__PURE__ */ new Set(), this.isComponentMounted = !1, this.previousDeps = null, this.instanceId = "", this.options = e, this.subscriptions = /* @__PURE__ */ new Set(), this.setEditor(this.getInitialEditor()), this.scheduleDestroy(), this.getEditor = this.getEditor.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.subscribe = this.subscribe.bind(this), this.refreshEditorInstance = this.refreshEditorInstance.bind(this), this.scheduleDestroy = this.scheduleDestroy.bind(this), this.onRender = this.onRender.bind(this), this.createEditor = this.createEditor.bind(this);
|
|
@@ -31802,8 +31800,8 @@ class Cz {
|
|
|
31802
31800
|
}
|
|
31803
31801
|
getInitialEditor() {
|
|
31804
31802
|
if (this.options.current.immediatelyRender === void 0)
|
|
31805
|
-
return
|
|
31806
|
-
if (this.options.current.immediatelyRender &&
|
|
31803
|
+
return of || xz ? (bb && console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."), null) : this.createEditor();
|
|
31804
|
+
if (this.options.current.immediatelyRender && of && bb)
|
|
31807
31805
|
throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");
|
|
31808
31806
|
return this.options.current.immediatelyRender ? this.createEditor() : null;
|
|
31809
31807
|
}
|
|
@@ -31927,7 +31925,7 @@ class Cz {
|
|
|
31927
31925
|
function wz(t = {}, e = []) {
|
|
31928
31926
|
const n = de(t);
|
|
31929
31927
|
n.current = t;
|
|
31930
|
-
const [r] = Oe(() => new Cz(n)), i =
|
|
31928
|
+
const [r] = Oe(() => new Cz(n)), i = gc.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
31931
31929
|
return Qb(i), Pe(r.onRender(e)), yz({
|
|
31932
31930
|
editor: i,
|
|
31933
31931
|
selector: ({ transactionNumber: o }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && o === 0 ? 0 : o + 1
|
|
@@ -32238,14 +32236,14 @@ const Az = /^\s*>\s$/, Tz = pn.create({
|
|
|
32238
32236
|
},
|
|
32239
32237
|
addInputRules() {
|
|
32240
32238
|
return [
|
|
32241
|
-
|
|
32239
|
+
Yd({
|
|
32242
32240
|
find: Lz,
|
|
32243
32241
|
type: this.type,
|
|
32244
32242
|
getAttributes: (t) => ({
|
|
32245
32243
|
language: t[1]
|
|
32246
32244
|
})
|
|
32247
32245
|
}),
|
|
32248
|
-
|
|
32246
|
+
Yd({
|
|
32249
32247
|
find: jz,
|
|
32250
32248
|
type: this.type,
|
|
32251
32249
|
getAttributes: (t) => ({
|
|
@@ -32883,9 +32881,9 @@ function i_(t, e, n, r) {
|
|
|
32883
32881
|
if (s && s.getMeta(ti))
|
|
32884
32882
|
return s.getMeta(ti).redo ? new sr(t.done.addTransform(n, void 0, r, fa(e)), t.undone, Cb(n.mapping.maps), t.prevTime, t.prevComposition) : new sr(t.done, t.undone.addTransform(n, void 0, r, fa(e)), null, t.prevTime, t.prevComposition);
|
|
32885
32883
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
32886
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ?
|
|
32884
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !o_(n, t.prevRanges)), c = s ? Nu(t.prevRanges, n.mapping) : Cb(n.mapping.maps);
|
|
32887
32885
|
return new sr(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, fa(e)), cn.empty, c, n.time, a ?? t.prevComposition);
|
|
32888
|
-
} else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o),
|
|
32886
|
+
} else return (o = n.getMeta("rebased")) ? new sr(t.done.rebased(n, o), t.undone.rebased(n, o), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new sr(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Nu(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
32889
32887
|
}
|
|
32890
32888
|
function o_(t, e) {
|
|
32891
32889
|
if (!e)
|
|
@@ -32904,7 +32902,7 @@ function Cb(t) {
|
|
|
32904
32902
|
t[n].forEach((r, i, o, s) => e.push(o, s));
|
|
32905
32903
|
return e;
|
|
32906
32904
|
}
|
|
32907
|
-
function
|
|
32905
|
+
function Nu(t, e) {
|
|
32908
32906
|
if (!t)
|
|
32909
32907
|
return null;
|
|
32910
32908
|
let n = [];
|
|
@@ -32921,18 +32919,18 @@ function s_(t, e, n) {
|
|
|
32921
32919
|
let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new sr(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
|
|
32922
32920
|
return o.transform.setSelection(s).setMeta(ti, { redo: n, historyState: l });
|
|
32923
32921
|
}
|
|
32924
|
-
let
|
|
32922
|
+
let Fu = !1, wb = null;
|
|
32925
32923
|
function fa(t) {
|
|
32926
32924
|
let e = t.plugins;
|
|
32927
32925
|
if (wb != e) {
|
|
32928
|
-
|
|
32926
|
+
Fu = !1, wb = e;
|
|
32929
32927
|
for (let n = 0; n < e.length; n++)
|
|
32930
32928
|
if (e[n].spec.historyPreserveItems) {
|
|
32931
|
-
|
|
32929
|
+
Fu = !0;
|
|
32932
32930
|
break;
|
|
32933
32931
|
}
|
|
32934
32932
|
}
|
|
32935
|
-
return
|
|
32933
|
+
return Fu;
|
|
32936
32934
|
}
|
|
32937
32935
|
const ti = new Zt("history"), a_ = new Zt("closeHistory");
|
|
32938
32936
|
function l_(t = {}) {
|
|
@@ -33738,13 +33736,13 @@ function H_(t) {
|
|
|
33738
33736
|
}
|
|
33739
33737
|
};
|
|
33740
33738
|
}
|
|
33741
|
-
let As = null,
|
|
33739
|
+
let As = null, sf = /* @__PURE__ */ new Set(), _o = /* @__PURE__ */ new Map(), ui = !1, af = !1;
|
|
33742
33740
|
const W_ = {
|
|
33743
33741
|
Tab: !0,
|
|
33744
33742
|
Escape: !0
|
|
33745
33743
|
};
|
|
33746
33744
|
function uh(t, e) {
|
|
33747
|
-
for (let n of
|
|
33745
|
+
for (let n of sf) n(t, e);
|
|
33748
33746
|
}
|
|
33749
33747
|
function $_(t) {
|
|
33750
33748
|
return !(t.metaKey || !j_() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
@@ -33759,12 +33757,12 @@ function mS(t) {
|
|
|
33759
33757
|
z_(t) && (ui = !0, As = "virtual");
|
|
33760
33758
|
}
|
|
33761
33759
|
function gS(t) {
|
|
33762
|
-
t.target === window || t.target === document || (!ui && !
|
|
33760
|
+
t.target === window || t.target === document || (!ui && !af && (As = "virtual", uh("virtual", t)), ui = !1, af = !1);
|
|
33763
33761
|
}
|
|
33764
33762
|
function vS() {
|
|
33765
|
-
ui = !1,
|
|
33763
|
+
ui = !1, af = !0;
|
|
33766
33764
|
}
|
|
33767
|
-
function
|
|
33765
|
+
function lf(t) {
|
|
33768
33766
|
if (typeof window > "u" || _o.get(Yr(t))) return;
|
|
33769
33767
|
const e = Yr(t), n = Es(t);
|
|
33770
33768
|
let r = e.HTMLElement.prototype.focus;
|
|
@@ -33785,8 +33783,8 @@ const bS = (t, e) => {
|
|
|
33785
33783
|
function X_(t) {
|
|
33786
33784
|
const e = Es(t);
|
|
33787
33785
|
let n;
|
|
33788
|
-
return e.readyState !== "loading" ?
|
|
33789
|
-
|
|
33786
|
+
return e.readyState !== "loading" ? lf(t) : (n = () => {
|
|
33787
|
+
lf(t);
|
|
33790
33788
|
}, e.addEventListener("DOMContentLoaded", n)), () => bS(t, n);
|
|
33791
33789
|
}
|
|
33792
33790
|
typeof document < "u" && X_();
|
|
@@ -33810,12 +33808,12 @@ function Z_(t, e, n) {
|
|
|
33810
33808
|
return t = t || (n == null ? void 0 : n.target) instanceof i && !Y_.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof s && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof a && !W_[n.key]);
|
|
33811
33809
|
}
|
|
33812
33810
|
function J_(t, e, n) {
|
|
33813
|
-
|
|
33811
|
+
lf(), Pe(() => {
|
|
33814
33812
|
let r = (i, o) => {
|
|
33815
33813
|
Z_(!!(n != null && n.isTextInput), i, o) && t(yS());
|
|
33816
33814
|
};
|
|
33817
|
-
return
|
|
33818
|
-
|
|
33815
|
+
return sf.add(r), () => {
|
|
33816
|
+
sf.delete(r);
|
|
33819
33817
|
};
|
|
33820
33818
|
}, e);
|
|
33821
33819
|
}
|
|
@@ -33848,19 +33846,19 @@ function U_(t) {
|
|
|
33848
33846
|
}
|
|
33849
33847
|
};
|
|
33850
33848
|
}
|
|
33851
|
-
let Tl = !1,
|
|
33852
|
-
function
|
|
33849
|
+
let Tl = !1, Vu = 0;
|
|
33850
|
+
function cf() {
|
|
33853
33851
|
Tl = !0, setTimeout(() => {
|
|
33854
33852
|
Tl = !1;
|
|
33855
33853
|
}, 50);
|
|
33856
33854
|
}
|
|
33857
33855
|
function Eb(t) {
|
|
33858
|
-
t.pointerType === "touch" &&
|
|
33856
|
+
t.pointerType === "touch" && cf();
|
|
33859
33857
|
}
|
|
33860
33858
|
function K_() {
|
|
33861
33859
|
if (!(typeof document > "u"))
|
|
33862
|
-
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend",
|
|
33863
|
-
|
|
33860
|
+
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Eb) : document.addEventListener("touchend", cf), Vu++, () => {
|
|
33861
|
+
Vu--, !(Vu > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Eb) : document.removeEventListener("touchend", cf));
|
|
33864
33862
|
};
|
|
33865
33863
|
}
|
|
33866
33864
|
function xS(t) {
|
|
@@ -33950,10 +33948,10 @@ function CS(t = {}) {
|
|
|
33950
33948
|
focusProps: r ? f : d
|
|
33951
33949
|
};
|
|
33952
33950
|
}
|
|
33953
|
-
var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
33951
|
+
var q_ = Object.defineProperty, Q_ = (t, e, n) => e in t ? q_(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Bu = (t, e, n) => (Q_(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
33954
33952
|
let eH = class {
|
|
33955
33953
|
constructor() {
|
|
33956
|
-
|
|
33954
|
+
Bu(this, "current", this.detect()), Bu(this, "handoffState", "pending"), Bu(this, "currentId", 0);
|
|
33957
33955
|
}
|
|
33958
33956
|
set(e) {
|
|
33959
33957
|
this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
|
|
@@ -34082,7 +34080,7 @@ function Yn(t, e, ...n) {
|
|
|
34082
34080
|
let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((i) => `"${i}"`).join(", ")}.`);
|
|
34083
34081
|
throw Error.captureStackTrace && Error.captureStackTrace(r, Yn), r;
|
|
34084
34082
|
}
|
|
34085
|
-
var
|
|
34083
|
+
var uf = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(uf || {}), oH = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(oH || {});
|
|
34086
34084
|
function hn() {
|
|
34087
34085
|
let t = aH();
|
|
34088
34086
|
return fe((e) => sH({ mergeRefs: t, ...e }), [t]);
|
|
@@ -34107,7 +34105,7 @@ function sH({ ourProps: t, theirProps: e, slot: n, defaultTag: r, features: i, v
|
|
|
34107
34105
|
return qs(l, n, r, s, a);
|
|
34108
34106
|
}
|
|
34109
34107
|
function qs(t, e = {}, n, r, i) {
|
|
34110
|
-
let { as: o = n, children: s, refName: a = "ref", ...l } =
|
|
34108
|
+
let { as: o = n, children: s, refName: a = "ref", ...l } = Lu(t, ["unmount", "static"]), c = t.ref !== void 0 ? { [a]: t.ref } : {}, u = typeof s == "function" ? s(e) : s;
|
|
34111
34109
|
"className" in l && l.className && typeof l.className == "function" && (l.className = l.className(e)), l["aria-labelledby"] && l["aria-labelledby"] === l.id && (l["aria-labelledby"] = void 0);
|
|
34112
34110
|
let d = {};
|
|
34113
34111
|
if (e) {
|
|
@@ -34124,11 +34122,11 @@ function qs(t, e = {}, n, r, i) {
|
|
|
34124
34122
|
`)].join(`
|
|
34125
34123
|
`));
|
|
34126
34124
|
} else {
|
|
34127
|
-
let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(
|
|
34125
|
+
let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => Ab(p(...v), l.className) : Ab(p, l.className), m = h ? { className: h } : {}, g = SS(u.props, Fr(Lu(l, ["ref"])));
|
|
34128
34126
|
for (let v in d) v in g && delete d[v];
|
|
34129
34127
|
return FI(u, Object.assign({}, g, d, c, { ref: i(cH(u), c.ref) }, m));
|
|
34130
34128
|
}
|
|
34131
|
-
return Kb(o, Object.assign({},
|
|
34129
|
+
return Kb(o, Object.assign({}, Lu(l, ["ref"]), o !== Ht && c, o !== Ht && d), u);
|
|
34132
34130
|
}
|
|
34133
34131
|
function aH() {
|
|
34134
34132
|
let t = de([]), e = fe((n) => {
|
|
@@ -34181,7 +34179,7 @@ function Fr(t) {
|
|
|
34181
34179
|
for (let n in e) e[n] === void 0 && delete e[n];
|
|
34182
34180
|
return e;
|
|
34183
34181
|
}
|
|
34184
|
-
function
|
|
34182
|
+
function Lu(t, e = []) {
|
|
34185
34183
|
let n = Object.assign({}, t);
|
|
34186
34184
|
for (let r of e) r in n && delete n[r];
|
|
34187
34185
|
return n;
|
|
@@ -34297,29 +34295,29 @@ function IH(t, e) {
|
|
|
34297
34295
|
let EH = mn(IH);
|
|
34298
34296
|
Object.assign(EH, {});
|
|
34299
34297
|
var Rt = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Rt || {});
|
|
34300
|
-
let
|
|
34301
|
-
|
|
34298
|
+
let vc = qe(null);
|
|
34299
|
+
vc.displayName = "LabelContext";
|
|
34302
34300
|
function PS() {
|
|
34303
|
-
let t = Me(
|
|
34301
|
+
let t = Me(vc);
|
|
34304
34302
|
if (t === null) {
|
|
34305
34303
|
let e = new Error("You used a <Label /> component, but it is not inside a relevant parent.");
|
|
34306
34304
|
throw Error.captureStackTrace && Error.captureStackTrace(e, PS), e;
|
|
34307
34305
|
}
|
|
34308
34306
|
return t;
|
|
34309
34307
|
}
|
|
34310
|
-
function
|
|
34308
|
+
function bc(t) {
|
|
34311
34309
|
var e, n, r;
|
|
34312
|
-
let i = (n = (e = Me(
|
|
34310
|
+
let i = (n = (e = Me(vc)) == null ? void 0 : e.value) != null ? n : void 0;
|
|
34313
34311
|
return ((r = t == null ? void 0 : t.length) != null ? r : 0) > 0 ? [i, ...t].filter(Boolean).join(" ") : i;
|
|
34314
34312
|
}
|
|
34315
34313
|
function AH({ inherit: t = !1 } = {}) {
|
|
34316
|
-
let e =
|
|
34314
|
+
let e = bc(), [n, r] = Oe([]), i = t ? [e, ...n].filter(Boolean) : n;
|
|
34317
34315
|
return [i.length > 0 ? i.join(" ") : void 0, we(() => function(o) {
|
|
34318
34316
|
let s = Se((l) => (r((c) => [...c, l]), () => r((c) => {
|
|
34319
34317
|
let u = c.slice(), d = u.indexOf(l);
|
|
34320
34318
|
return d !== -1 && u.splice(d, 1), u;
|
|
34321
34319
|
}))), a = we(() => ({ register: s, slot: o.slot, name: o.name, props: o.props, value: o.value }), [s, o.slot, o.name, o.props, o.value]);
|
|
34322
|
-
return $.createElement(
|
|
34320
|
+
return $.createElement(vc.Provider, { value: a }, o.children);
|
|
34323
34321
|
}, [r])];
|
|
34324
34322
|
}
|
|
34325
34323
|
let TH = "label";
|
|
@@ -34375,7 +34373,7 @@ function Ei(t, e, n) {
|
|
|
34375
34373
|
return (l = n == null ? void 0 : n.onChange) == null || l.call(n, i), i;
|
|
34376
34374
|
};
|
|
34377
34375
|
}
|
|
34378
|
-
function
|
|
34376
|
+
function ju(t, e) {
|
|
34379
34377
|
if (t === void 0)
|
|
34380
34378
|
throw new Error("Unexpected undefined");
|
|
34381
34379
|
return t;
|
|
@@ -34696,11 +34694,11 @@ class GH {
|
|
|
34696
34694
|
), this.getVirtualItemForOffset = (n) => {
|
|
34697
34695
|
const r = this.getMeasurements();
|
|
34698
34696
|
if (r.length !== 0)
|
|
34699
|
-
return
|
|
34697
|
+
return ju(
|
|
34700
34698
|
r[RS(
|
|
34701
34699
|
0,
|
|
34702
34700
|
r.length - 1,
|
|
34703
|
-
(i) =>
|
|
34701
|
+
(i) => ju(r[i]).start,
|
|
34704
34702
|
n
|
|
34705
34703
|
)]
|
|
34706
34704
|
);
|
|
@@ -34744,7 +34742,7 @@ class GH {
|
|
|
34744
34742
|
if (this.scrollToIndexTimeoutId = null, this.elementsCache.has(
|
|
34745
34743
|
this.options.getItemKey(n)
|
|
34746
34744
|
)) {
|
|
34747
|
-
const [c] =
|
|
34745
|
+
const [c] = ju(
|
|
34748
34746
|
this.getOffsetForIndex(n, a)
|
|
34749
34747
|
);
|
|
34750
34748
|
PH(c, this.getScrollOffset()) || this.scrollToIndex(n, { align: a, behavior: i });
|
|
@@ -34840,7 +34838,7 @@ function YH(t) {
|
|
|
34840
34838
|
return { width: e, height: n };
|
|
34841
34839
|
}
|
|
34842
34840
|
function kb(t, e = !1) {
|
|
34843
|
-
let [n, r] =
|
|
34841
|
+
let [n, r] = vf(() => ({}), {}), i = we(() => YH(t), [t, n]);
|
|
34844
34842
|
return Ke(() => {
|
|
34845
34843
|
if (!t) return;
|
|
34846
34844
|
let o = new ResizeObserver(r);
|
|
@@ -34888,18 +34886,18 @@ function mh(t, e) {
|
|
|
34888
34886
|
let o = i.indexOf(r), s = i.length;
|
|
34889
34887
|
return o === -1 && (o = s, s += 1), o === s - 1;
|
|
34890
34888
|
}
|
|
34891
|
-
let
|
|
34889
|
+
let df = /* @__PURE__ */ new Map(), Ho = /* @__PURE__ */ new Map();
|
|
34892
34890
|
function Mb(t) {
|
|
34893
34891
|
var e;
|
|
34894
34892
|
let n = (e = Ho.get(t)) != null ? e : 0;
|
|
34895
|
-
return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (
|
|
34893
|
+
return Ho.set(t, n + 1), n !== 0 ? () => Ob(t) : (df.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Ob(t));
|
|
34896
34894
|
}
|
|
34897
34895
|
function Ob(t) {
|
|
34898
34896
|
var e;
|
|
34899
34897
|
let n = (e = Ho.get(t)) != null ? e : 1;
|
|
34900
34898
|
if (n === 1 ? Ho.delete(t) : Ho.set(t, n - 1), n !== 1) return;
|
|
34901
|
-
let r =
|
|
34902
|
-
r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert,
|
|
34899
|
+
let r = df.get(t);
|
|
34900
|
+
r && (r["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", r["aria-hidden"]), t.inert = r.inert, df.delete(t));
|
|
34903
34901
|
}
|
|
34904
34902
|
function UH(t, { allowed: e, disallowed: n } = {}) {
|
|
34905
34903
|
let r = mh(t, "inert-others");
|
|
@@ -34943,16 +34941,16 @@ function KH(t, e, n) {
|
|
|
34943
34941
|
return () => o.dispose();
|
|
34944
34942
|
}, [e, r, t]);
|
|
34945
34943
|
}
|
|
34946
|
-
let
|
|
34944
|
+
let ff = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
34947
34945
|
var qH = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(qH || {}), QH = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(QH || {}), eW = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(eW || {}), FS = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(FS || {});
|
|
34948
34946
|
function tW(t, e = 0) {
|
|
34949
34947
|
var n;
|
|
34950
34948
|
return t === ((n = Ts(t)) == null ? void 0 : n.body) ? !1 : Yn(e, { 0() {
|
|
34951
|
-
return t.matches(
|
|
34949
|
+
return t.matches(ff);
|
|
34952
34950
|
}, 1() {
|
|
34953
34951
|
let r = t;
|
|
34954
34952
|
for (; r !== null; ) {
|
|
34955
|
-
if (r.matches(
|
|
34953
|
+
if (r.matches(ff)) return !0;
|
|
34956
34954
|
r = r.parentElement;
|
|
34957
34955
|
}
|
|
34958
34956
|
return !1;
|
|
@@ -35030,7 +35028,7 @@ function sW(t, e, n) {
|
|
|
35030
35028
|
if (!(Math.abs(c.x - a.current.x) >= Pb || Math.abs(c.y - a.current.y) >= Pb)) return o(l, () => l.target instanceof HTMLElement ? l.target : null);
|
|
35031
35029
|
}, !0), oW(r, "blur", (l) => o(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
35032
35030
|
}
|
|
35033
|
-
function
|
|
35031
|
+
function yc(...t) {
|
|
35034
35032
|
return we(() => Ts(...t), [...t]);
|
|
35035
35033
|
}
|
|
35036
35034
|
function aW(t, e, n, r) {
|
|
@@ -35291,7 +35289,7 @@ function GS(t) {
|
|
|
35291
35289
|
return e.current == null ? void 0 : e.current(...r);
|
|
35292
35290
|
}, []);
|
|
35293
35291
|
}
|
|
35294
|
-
var
|
|
35292
|
+
var pf = typeof document < "u" ? Qi : Pe;
|
|
35295
35293
|
let Vb = !1, TW = 0;
|
|
35296
35294
|
const Bb = () => (
|
|
35297
35295
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -35300,7 +35298,7 @@ const Bb = () => (
|
|
|
35300
35298
|
);
|
|
35301
35299
|
function kW() {
|
|
35302
35300
|
const [t, e] = I.useState(() => Vb ? Bb() : void 0);
|
|
35303
|
-
return
|
|
35301
|
+
return pf(() => {
|
|
35304
35302
|
t == null && e(Bb());
|
|
35305
35303
|
}, []), I.useEffect(() => {
|
|
35306
35304
|
Vb = !0;
|
|
@@ -35393,7 +35391,7 @@ function GW(t) {
|
|
|
35393
35391
|
...t.elements
|
|
35394
35392
|
}
|
|
35395
35393
|
}), r = t.rootContext || n, i = r.elements, [o, s] = I.useState(null), [a, l] = I.useState(null), u = (i == null ? void 0 : i.domReference) || o, d = I.useRef(null), f = BW();
|
|
35396
|
-
|
|
35394
|
+
pf(() => {
|
|
35397
35395
|
u && (d.current = u);
|
|
35398
35396
|
}, [u]);
|
|
35399
35397
|
const p = AI({
|
|
@@ -35430,7 +35428,7 @@ function GW(t) {
|
|
|
35430
35428
|
elements: v,
|
|
35431
35429
|
nodeId: e
|
|
35432
35430
|
}), [p, g, v, e, r]);
|
|
35433
|
-
return
|
|
35431
|
+
return pf(() => {
|
|
35434
35432
|
r.dataRef.current.floatingContext = b;
|
|
35435
35433
|
const x = f == null ? void 0 : f.nodesRef.current.find((w) => w.id === e);
|
|
35436
35434
|
x && (x.context = b);
|
|
@@ -35442,7 +35440,7 @@ function GW(t) {
|
|
|
35442
35440
|
}), [p, g, v, b]);
|
|
35443
35441
|
}
|
|
35444
35442
|
const Lb = "active", jb = "selected";
|
|
35445
|
-
function
|
|
35443
|
+
function Gu(t, e, n) {
|
|
35446
35444
|
const r = /* @__PURE__ */ new Map(), i = n === "item";
|
|
35447
35445
|
let o = t;
|
|
35448
35446
|
if (i && t) {
|
|
@@ -35482,15 +35480,15 @@ function ju(t, e, n) {
|
|
|
35482
35480
|
function zW(t) {
|
|
35483
35481
|
t === void 0 && (t = []);
|
|
35484
35482
|
const e = t.map((a) => a == null ? void 0 : a.reference), n = t.map((a) => a == null ? void 0 : a.floating), r = t.map((a) => a == null ? void 0 : a.item), i = I.useCallback(
|
|
35485
|
-
(a) =>
|
|
35483
|
+
(a) => Gu(a, t, "reference"),
|
|
35486
35484
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35487
35485
|
e
|
|
35488
35486
|
), o = I.useCallback(
|
|
35489
|
-
(a) =>
|
|
35487
|
+
(a) => Gu(a, t, "floating"),
|
|
35490
35488
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35491
35489
|
n
|
|
35492
35490
|
), s = I.useCallback(
|
|
35493
|
-
(a) =>
|
|
35491
|
+
(a) => Gu(a, t, "item"),
|
|
35494
35492
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35495
35493
|
r
|
|
35496
35494
|
);
|
|
@@ -35537,15 +35535,15 @@ const _W = (t) => ({
|
|
|
35537
35535
|
const x = {
|
|
35538
35536
|
...e,
|
|
35539
35537
|
...await Zb(-p.offsetTop - f.clientTop - d.reference.height / 2 - p.offsetHeight / 2 - o).fn(e)
|
|
35540
|
-
}, w = await
|
|
35538
|
+
}, w = await Ic(Gb(x, h.scrollHeight + m + f.clientTop), u), y = await Ic(x, {
|
|
35541
35539
|
...u,
|
|
35542
35540
|
elementContext: "reference"
|
|
35543
|
-
}), E =
|
|
35541
|
+
}), E = Ec(0, w.top), A = x.y + E, G = (h.scrollHeight > h.clientHeight ? (X) => X : MI)(Ec(0, h.scrollHeight + (g && b || v ? m * 2 : 0) - E - Ec(0, w.bottom)));
|
|
35544
35542
|
if (h.style.maxHeight = G + "px", h.scrollTop = E, i) {
|
|
35545
35543
|
const X = h.offsetHeight < p.offsetHeight * kI(a, n.current.length) - 1 || y.top >= -l || y.bottom >= -l;
|
|
35546
|
-
|
|
35544
|
+
Wu.flushSync(() => i(X));
|
|
35547
35545
|
}
|
|
35548
|
-
return r && (r.current = await
|
|
35546
|
+
return r && (r.current = await Ic(Gb({
|
|
35549
35547
|
...x,
|
|
35550
35548
|
y: A
|
|
35551
35549
|
}, h.offsetHeight + m + f.clientTop), u)), {
|
|
@@ -35569,7 +35567,7 @@ function HW(t, e) {
|
|
|
35569
35567
|
if (m.ctrlKey || !h || o.current == null)
|
|
35570
35568
|
return;
|
|
35571
35569
|
const g = m.deltaY, v = o.current.top >= -0.5, b = o.current.bottom >= -0.5, x = h.scrollHeight - h.clientHeight, w = g < 0 ? -1 : 1, y = g < 0 ? "max" : "min";
|
|
35572
|
-
h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(),
|
|
35570
|
+
h.scrollHeight <= h.clientHeight || (!v && g > 0 || !b && g < 0 ? (m.preventDefault(), Wu.flushSync(() => {
|
|
35573
35571
|
l((E) => E + Math[y](g, x * w));
|
|
35574
35572
|
})) : /firefox/i.test(IW()) && (h.scrollTop += g));
|
|
35575
35573
|
}
|
|
@@ -35598,7 +35596,7 @@ function HW(t, e) {
|
|
|
35598
35596
|
if (!(!o.current || !p || !c.current)) {
|
|
35599
35597
|
if (u.current !== null) {
|
|
35600
35598
|
const h = p.scrollTop - u.current;
|
|
35601
|
-
(o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) &&
|
|
35599
|
+
(o.current.bottom < -0.5 && h < -1 || o.current.top < -0.5 && h > 1) && Wu.flushSync(() => l((m) => m + h));
|
|
35602
35600
|
}
|
|
35603
35601
|
requestAnimationFrame(() => {
|
|
35604
35602
|
u.current = p.scrollTop;
|
|
@@ -35689,10 +35687,10 @@ function JW(t) {
|
|
|
35689
35687
|
}
|
|
35690
35688
|
function UW(t, e) {
|
|
35691
35689
|
var n, r, i;
|
|
35692
|
-
let o =
|
|
35690
|
+
let o = zu((n = t == null ? void 0 : t.gap) != null ? n : "var(--anchor-gap, 0)", e), s = zu((r = t == null ? void 0 : t.offset) != null ? r : "var(--anchor-offset, 0)", e), a = zu((i = t == null ? void 0 : t.padding) != null ? i : "var(--anchor-padding, 0)", e);
|
|
35693
35691
|
return { ...t, gap: o, offset: s, padding: a };
|
|
35694
35692
|
}
|
|
35695
|
-
function
|
|
35693
|
+
function zu(t, e, n = void 0) {
|
|
35696
35694
|
let r = ks(), i = Se((l, c) => {
|
|
35697
35695
|
if (l == null) return [n, null];
|
|
35698
35696
|
if (typeof l == "number") return [l, null];
|
|
@@ -35745,10 +35743,10 @@ function _b(t, e) {
|
|
|
35745
35743
|
return e.removeChild(n), r;
|
|
35746
35744
|
}
|
|
35747
35745
|
function KW({ children: t, freeze: e }) {
|
|
35748
|
-
let n =
|
|
35746
|
+
let n = hf(e, t);
|
|
35749
35747
|
return $.createElement($.Fragment, null, n);
|
|
35750
35748
|
}
|
|
35751
|
-
function
|
|
35749
|
+
function hf(t, e) {
|
|
35752
35750
|
let [n, r] = Oe(e);
|
|
35753
35751
|
return !t && n !== e && r(e), t ? n : e;
|
|
35754
35752
|
}
|
|
@@ -35772,7 +35770,7 @@ e5(() => {
|
|
|
35772
35770
|
function t(e) {
|
|
35773
35771
|
if (!(e.target instanceof HTMLElement) || e.target === document.body || jr[0] === e.target) return;
|
|
35774
35772
|
let n = e.target;
|
|
35775
|
-
n = n.closest(
|
|
35773
|
+
n = n.closest(ff), jr.unshift(n ?? e.target), jr = jr.filter((r) => r != null && r.isConnected), jr.splice(10);
|
|
35776
35774
|
}
|
|
35777
35775
|
window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
|
|
35778
35776
|
});
|
|
@@ -35837,7 +35835,7 @@ function s5() {
|
|
|
35837
35835
|
return Me(o5);
|
|
35838
35836
|
}
|
|
35839
35837
|
function a5(t) {
|
|
35840
|
-
let e = s5(), n = Me(HS), r =
|
|
35838
|
+
let e = s5(), n = Me(HS), r = yc(t), [i, o] = Oe(() => {
|
|
35841
35839
|
var s;
|
|
35842
35840
|
if (!e && n !== null) return (s = n.current) != null ? s : null;
|
|
35843
35841
|
if (ni.isServer) return null;
|
|
@@ -35856,7 +35854,7 @@ function a5(t) {
|
|
|
35856
35854
|
let _S = Ht, l5 = mn(function(t, e) {
|
|
35857
35855
|
let n = t, r = de(null), i = Qn(CH((d) => {
|
|
35858
35856
|
r.current = d;
|
|
35859
|
-
}), e), o =
|
|
35857
|
+
}), e), o = yc(r), s = a5(r), [a] = Oe(() => {
|
|
35860
35858
|
var d;
|
|
35861
35859
|
return ni.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
|
|
35862
35860
|
}), l = Me(f5), c = i5();
|
|
@@ -35882,7 +35880,7 @@ function d5(t, e) {
|
|
|
35882
35880
|
}
|
|
35883
35881
|
let f5 = qe(null), p5 = mn(c5), h5 = mn(d5), m5 = Object.assign(p5, { Group: h5 });
|
|
35884
35882
|
var g5 = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(g5 || {}), v5 = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(v5 || {}), b5 = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(b5 || {}), y5 = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.SetActivationTrigger = 6] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 7] = "UpdateVirtualConfiguration", t[t.SetInputElement = 8] = "SetInputElement", t[t.SetButtonElement = 9] = "SetButtonElement", t[t.SetOptionsElement = 10] = "SetOptionsElement", t))(y5 || {});
|
|
35885
|
-
function
|
|
35883
|
+
function _u(t, e = (n) => n) {
|
|
35886
35884
|
let n = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = e(t.options.slice()), i = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((s, a) => s.dataRef.current.order - a.dataRef.current.order) : rW(r, (s) => s.dataRef.current.domRef.current), o = n ? i.indexOf(n) : null;
|
|
35887
35885
|
return o === -1 && (o = null), { options: i, activeOptionIndex: o };
|
|
35888
35886
|
}
|
|
@@ -35911,7 +35909,7 @@ let x5 = { 1(t) {
|
|
|
35911
35909
|
} }), f = (i = e.trigger) != null ? i : 2;
|
|
35912
35910
|
return t.activeOptionIndex === d && t.activationTrigger === f ? t : { ...t, activeOptionIndex: d, activationTrigger: f, isTyping: !1, __demoMode: !1 };
|
|
35913
35911
|
}
|
|
35914
|
-
let s =
|
|
35912
|
+
let s = _u(t);
|
|
35915
35913
|
if (s.activeOptionIndex === null) {
|
|
35916
35914
|
let c = s.options.findIndex((u) => !u.dataRef.current.disabled);
|
|
35917
35915
|
c !== -1 && (s.activeOptionIndex = c);
|
|
@@ -35921,14 +35919,14 @@ let x5 = { 1(t) {
|
|
|
35921
35919
|
}, 4: (t, e) => {
|
|
35922
35920
|
var n, r, i;
|
|
35923
35921
|
if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: [...t.options, e.payload] };
|
|
35924
|
-
let o = e.payload, s =
|
|
35922
|
+
let o = e.payload, s = _u(t, (l) => (l.push(o), l));
|
|
35925
35923
|
t.activeOptionIndex === null && (r = t.dataRef.current) != null && r.isSelected(e.payload.dataRef.current.value) && (s.activeOptionIndex = s.options.indexOf(o));
|
|
35926
35924
|
let a = { ...t, ...s, activationTrigger: 2 };
|
|
35927
35925
|
return (i = t.dataRef.current) != null && i.__demoMode && t.dataRef.current.value === void 0 && (a.activeOptionIndex = 0), a;
|
|
35928
35926
|
}, 5: (t, e) => {
|
|
35929
35927
|
var n;
|
|
35930
35928
|
if ((n = t.dataRef.current) != null && n.virtual) return { ...t, options: t.options.filter((i) => i.id !== e.id) };
|
|
35931
|
-
let r =
|
|
35929
|
+
let r = _u(t, (i) => {
|
|
35932
35930
|
let o = i.findIndex((s) => s.id === e.id);
|
|
35933
35931
|
return o !== -1 && i.splice(o, 1), i;
|
|
35934
35932
|
});
|
|
@@ -35992,7 +35990,7 @@ function w5(t, e) {
|
|
|
35992
35990
|
let S5 = Ht;
|
|
35993
35991
|
function I5(t, e) {
|
|
35994
35992
|
var n, r;
|
|
35995
|
-
let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] =
|
|
35993
|
+
let i = dh(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: f, __demoMode: p = !1, multiple: h = !1, immediate: m = !1, virtual: g = null, nullable: v, ...b } = t, x = dH(s), [w = h ? [] : void 0, y] = uH(o, a, x), [E, A] = vf(w5, { dataRef: BI(), comboboxState: p ? 0 : 1, isTyping: !1, options: [], virtual: g ? { options: g.options, disabled: (n = g.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: p }), T = de(!1), R = de({ static: !1, hold: !1 }), G = XH(u), X = Se((ue) => g ? u === null ? g.options.indexOf(ue) : g.options.findIndex((ke) => G(ke, ue)) : E.options.findIndex((ke) => G(ke.dataRef.current.value, ue))), z = fe((ue) => Yn(L.mode, { 1: () => w.some((ke) => G(ke, ue)), 0: () => G(w, ue) }), [w]), J = Se((ue) => E.activeOptionIndex === X(ue)), L = we(() => ({ ...E, immediate: m, optionsPropsRef: R, value: w, defaultValue: x, disabled: d, mode: h ? 1 : 0, virtual: g ? E.virtual : null, get activeOptionIndex() {
|
|
35996
35994
|
if (T.current && E.activeOptionIndex === null && (g ? g.options.length > 0 : E.options.length > 0)) {
|
|
35997
35995
|
if (g) {
|
|
35998
35996
|
let ke = g.options.findIndex((wt) => {
|
|
@@ -36055,7 +36053,7 @@ function I5(t, e) {
|
|
|
36055
36053
|
let E5 = "input";
|
|
36056
36054
|
function A5(t, e) {
|
|
36057
36055
|
var n, r, i, o, s;
|
|
36058
|
-
let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w =
|
|
36056
|
+
let a = ao("Combobox.Input"), l = Os("Combobox.Input"), c = Fn(), u = kS(), { id: d = u || `headlessui-combobox-input-${c}`, onChange: f, displayValue: p, disabled: h = a.disabled || !1, autoFocus: m = !1, type: g = "text", ...v } = t, b = de(null), x = Qn(b, e, $W(), l.setInputElement), w = yc(a.inputElement), y = ks(), E = Se(() => {
|
|
36059
36057
|
l.onChange(null), a.optionsElement && (a.optionsElement.scrollTop = 0), l.goToOption(ot.Nothing);
|
|
36060
36058
|
}), A = we(() => {
|
|
36061
36059
|
var V;
|
|
@@ -36129,7 +36127,7 @@ function A5(t, e) {
|
|
|
36129
36127
|
(se = a.buttonElement) != null && se.contains(ie) || (ne = a.optionsElement) != null && ne.contains(ie) || a.disabled || a.immediate && a.comboboxState !== 0 && y.microTask(() => {
|
|
36130
36128
|
Gr(() => l.openCombobox()), l.setActivationTrigger(1);
|
|
36131
36129
|
});
|
|
36132
|
-
}), Y =
|
|
36130
|
+
}), Y = bc(), F = wH(), { isFocused: B, focusProps: Q } = CS({ autoFocus: m }), { isHovered: re, hoverProps: P } = xS({ isDisabled: h }), _ = we(() => ({ open: a.comboboxState === 0, disabled: h, hover: re, focus: B, autofocus: m }), [a, re, B, m, h]), H = fh({ ref: x, id: d, role: "combobox", type: g, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((V) => !V.dataRef.current.disabled && a.compare(V.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": Y, "aria-describedby": F, "aria-autocomplete": "list", defaultValue: (s = (o = t.defaultValue) != null ? o : a.defaultValue !== void 0 ? p == null ? void 0 : p(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: R, onCompositionEnd: G, onKeyDown: X, onChange: z, onFocus: L, onBlur: J }, Q, P);
|
|
36133
36131
|
return hn()({ ourProps: H, theirProps: v, slot: _, defaultTag: E5, name: "Combobox.Input" });
|
|
36134
36132
|
}
|
|
36135
36133
|
let T5 = "button";
|
|
@@ -36156,15 +36154,15 @@ function k5(t, e) {
|
|
|
36156
36154
|
}
|
|
36157
36155
|
}), p = Se((A) => {
|
|
36158
36156
|
A.preventDefault(), !yH(A.currentTarget) && (A.button === bh.Left && (r.comboboxState === 0 ? i.closeCombobox() : i.openCombobox()), d());
|
|
36159
|
-
}), h =
|
|
36157
|
+
}), h = bc([a]), { isFocusVisible: m, focusProps: g } = CS({ autoFocus: c }), { isHovered: v, hoverProps: b } = xS({ isDisabled: l }), { pressed: x, pressProps: w } = rH({ disabled: l }), y = we(() => ({ open: r.comboboxState === 0, active: x || r.comboboxState === 0, disabled: l, value: r.value, hover: v, focus: m }), [r, v, m, x, l]), E = fh({ ref: o, id: a, type: lW(t, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsElement) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": h, disabled: l || void 0, autoFocus: c, onMouseDown: p, onKeyDown: f }, g, b, w);
|
|
36160
36158
|
return hn()({ ourProps: E, theirProps: u, slot: y, defaultTag: T5, name: "Combobox.Button" });
|
|
36161
36159
|
}
|
|
36162
|
-
let M5 = "div", O5 =
|
|
36160
|
+
let M5 = "div", O5 = uf.RenderStrategy | uf.Static;
|
|
36163
36161
|
function P5(t, e) {
|
|
36164
36162
|
var n, r, i;
|
|
36165
36163
|
let o = Fn(), { id: s = `headlessui-combobox-options-${o}`, hold: a = !1, anchor: l, portal: c = !1, modal: u = !0, transition: d = !1, ...f } = t, p = ao("Combobox.Options"), h = Os("Combobox.Options"), m = WW(l);
|
|
36166
36164
|
m && (c = !0);
|
|
36167
|
-
let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E =
|
|
36165
|
+
let [g, v] = YW(m), [b, x] = Oe(null), w = XW(), y = Qn(e, m ? g : null, h.setOptionsElement, x), E = yc(p.optionsElement), A = qW(), [T, R] = yW(d, b, A !== null ? (A & ds.Open) === ds.Open : p.comboboxState === 0);
|
|
36168
36166
|
KH(T, p.inputElement, h.closeCombobox);
|
|
36169
36167
|
let G = p.__demoMode ? !1 : u && p.comboboxState === 0;
|
|
36170
36168
|
hW(G, E);
|
|
@@ -36179,11 +36177,11 @@ function P5(t, e) {
|
|
|
36179
36177
|
}, walk(H) {
|
|
36180
36178
|
H.setAttribute("role", "none");
|
|
36181
36179
|
} });
|
|
36182
|
-
let z =
|
|
36180
|
+
let z = bc([(n = p.buttonElement) == null ? void 0 : n.id]), J = we(() => ({ open: p.comboboxState === 0, option: void 0 }), [p.comboboxState]), L = Se(() => {
|
|
36183
36181
|
h.setActivationTrigger(0);
|
|
36184
36182
|
}), Y = Se((H) => {
|
|
36185
36183
|
H.preventDefault(), h.setActivationTrigger(0);
|
|
36186
|
-
}), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q =
|
|
36184
|
+
}), F = fh(m ? w() : {}, { "aria-labelledby": z, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: s, ref: y, style: { ...f.style, ...v, "--input-width": kb(p.inputElement, !0).width, "--button-width": kb(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : L, onMouseDown: Y, ...bW(R) }), B = T && p.comboboxState === 1, Q = hf(B, (r = p.virtual) == null ? void 0 : r.options), re = hf(B, p.value), P = Se((H) => p.compare(re, H));
|
|
36187
36185
|
if (p.virtual) {
|
|
36188
36186
|
if (Q === void 0) throw new Error("Missing `options` in virtual mode");
|
|
36189
36187
|
Object.assign(f, { children: $.createElement(fs.Provider, { value: Q !== p.virtual.options ? { ...p, virtual: { ...p.virtual, options: Q } } : p }, $.createElement(C5, { slot: J }, f.children)) });
|
|
@@ -36224,7 +36222,7 @@ function D5(t, e) {
|
|
|
36224
36222
|
}), J = we(() => ({ active: m, focus: m, selected: g, disabled: d }), [m, g, d]), L = { id: c, ref: w, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onMouseDown: A, onFocus: T, onPointerEnter: G, onMouseEnter: G, onPointerMove: X, onMouseMove: X, onPointerLeave: z, onMouseLeave: z };
|
|
36225
36223
|
return hn()({ ourProps: L, theirProps: p, slot: J, defaultTag: R5, name: "Combobox.Option" });
|
|
36226
36224
|
}
|
|
36227
|
-
let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5),
|
|
36225
|
+
let N5 = mn(I5), F5 = mn(k5), $S = mn(A5), V5 = OH, XS = mn(P5), mf = mn(D5), B5 = Object.assign(N5, { Input: $S, Button: F5, Label: V5, Options: XS, Option: mf });
|
|
36228
36226
|
const L5 = (t, e) => {
|
|
36229
36227
|
switch (t) {
|
|
36230
36228
|
case "country":
|
|
@@ -36296,7 +36294,7 @@ const L5 = (t, e) => {
|
|
|
36296
36294
|
"scrollHidden absolute top-14 z-10 mt-2 flex w-full flex-col rounded-md border border-solid border-blue-grey-700 bg-color-white p-2 transition-all empty:invisible data-[closed]:scale-95 data-[closed]:opacity-0"
|
|
36297
36295
|
),
|
|
36298
36296
|
children: /* @__PURE__ */ C.jsx("div", { className: "customScrollbar-y !max-h-[246px] overflow-x-hidden p-2", children: t && (t == null ? void 0 : t.length) > 0 ? /* @__PURE__ */ C.jsx(C.Fragment, { children: t == null ? void 0 : t.map(({ value: e, additionalText: n, isDisabled: r }) => /* @__PURE__ */ C.jsx(
|
|
36299
|
-
|
|
36297
|
+
mf,
|
|
36300
36298
|
{
|
|
36301
36299
|
disabled: r,
|
|
36302
36300
|
value: e ?? "",
|
|
@@ -36307,7 +36305,7 @@ const L5 = (t, e) => {
|
|
|
36307
36305
|
] })
|
|
36308
36306
|
},
|
|
36309
36307
|
e
|
|
36310
|
-
)) }) : /* @__PURE__ */ C.jsx(
|
|
36308
|
+
)) }) : /* @__PURE__ */ C.jsx(mf, { value: "", className: "desk-body-regular-m text-color-tetriary", children: "Ничего не найдено" }) })
|
|
36311
36309
|
}
|
|
36312
36310
|
), H5 = ({
|
|
36313
36311
|
control: t,
|
|
@@ -36408,8 +36406,8 @@ export {
|
|
|
36408
36406
|
Q5 as TabsSwitcher,
|
|
36409
36407
|
m$ as TextareaControl,
|
|
36410
36408
|
vA as debounce,
|
|
36411
|
-
|
|
36412
|
-
|
|
36409
|
+
Ac as useBoolean,
|
|
36410
|
+
Tf as useClickOutside,
|
|
36413
36411
|
K5 as useCombineRef,
|
|
36414
36412
|
U5 as useControlledForm,
|
|
36415
36413
|
bA as useDebounceCallback,
|