@apolitical/component-library 4.7.17-ac.10 → 4.7.17-ac.12
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/index.js +27 -27
- package/index.mjs +621 -563
- package/package.json +1 -1
- package/style.css +1 -1
- package/user/badge/interface/badge.interfaces.d.ts +2 -2
- package/user/badges/badges.interface.d.ts +5 -1
- package/user/member/member.mock.d.ts +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ie, { memo as
|
|
1
|
+
import ie, { memo as Gt, useState as ue, useEffect as de, useRef as _e, useMemo as Vt, forwardRef as Ys, Children as vs, createContext as wt, useContext as Le, useCallback as Me, lazy as Kr, useReducer as dr, useLayoutEffect as hh, Component as mh, Fragment as Rr, Suspense as ph } from "react";
|
|
2
2
|
import { useIntl as le, FormattedMessage as ct, IntlProvider as gh, createIntl as vh } from "react-intl";
|
|
3
3
|
import Bn from "lodash.clonedeep";
|
|
4
4
|
import bh from "lodash.set";
|
|
5
5
|
import Fc from "react-dom";
|
|
6
|
-
import
|
|
6
|
+
import Kt from "markdown-to-jsx";
|
|
7
7
|
import ir from "truncate";
|
|
8
8
|
import { QueryClient as yh, QueryClientProvider as Dh, useMutation as ot, useQueryClient as Gs, useInfiniteQuery as Tc, useQuery as xh } from "@tanstack/react-query";
|
|
9
9
|
import { ReactQueryDevtools as wh } from "@tanstack/react-query-devtools";
|
|
@@ -85,11 +85,11 @@ const Z = /* @__PURE__ */ Mn(kh), Bh = ({
|
|
|
85
85
|
...i,
|
|
86
86
|
className: Z("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
|
-
}), ze =
|
|
88
|
+
}), ze = Gt(Bh), Ah = ({
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
|
-
}) => ie.createElement(e, { ...n, "aria-hidden": !0 }, t), Qs =
|
|
92
|
+
}) => ie.createElement(e, { ...n, "aria-hidden": !0 }, t), Qs = Gt(Ah);
|
|
93
93
|
var ys = { exports: {} }, vr = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
@@ -327,29 +327,29 @@ function Th() {
|
|
|
327
327
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
328
328
|
try {
|
|
329
329
|
Reflect.construct(je, []);
|
|
330
|
-
} catch (
|
|
331
|
-
xe =
|
|
330
|
+
} catch (Jt) {
|
|
331
|
+
xe = Jt;
|
|
332
332
|
}
|
|
333
333
|
Reflect.construct(j, [], je);
|
|
334
334
|
} else {
|
|
335
335
|
try {
|
|
336
336
|
je.call();
|
|
337
|
-
} catch (
|
|
338
|
-
xe =
|
|
337
|
+
} catch (Jt) {
|
|
338
|
+
xe = Jt;
|
|
339
339
|
}
|
|
340
340
|
j.call(je.prototype);
|
|
341
341
|
}
|
|
342
342
|
} else {
|
|
343
343
|
try {
|
|
344
344
|
throw Error();
|
|
345
|
-
} catch (
|
|
346
|
-
xe =
|
|
345
|
+
} catch (Jt) {
|
|
346
|
+
xe = Jt;
|
|
347
347
|
}
|
|
348
348
|
j();
|
|
349
349
|
}
|
|
350
|
-
} catch (
|
|
351
|
-
if (
|
|
352
|
-
for (var Fe =
|
|
350
|
+
} catch (Jt) {
|
|
351
|
+
if (Jt && xe && typeof Jt.stack == "string") {
|
|
352
|
+
for (var Fe = Jt.stack.split(`
|
|
353
353
|
`), ft = xe.stack.split(`
|
|
354
354
|
`), et = Fe.length - 1, tt = ft.length - 1; et >= 1 && tt >= 0 && Fe[et] !== ft[tt]; )
|
|
355
355
|
tt--;
|
|
@@ -358,9 +358,9 @@ function Th() {
|
|
|
358
358
|
if (et !== 1 || tt !== 1)
|
|
359
359
|
do
|
|
360
360
|
if (et--, tt--, tt < 0 || Fe[et] !== ft[tt]) {
|
|
361
|
-
var
|
|
361
|
+
var Ft = `
|
|
362
362
|
` + Fe[et].replace(" at new ", " at ");
|
|
363
|
-
return j.displayName &&
|
|
363
|
+
return j.displayName && Ft.includes("<anonymous>") && (Ft = Ft.replace("<anonymous>", j.displayName)), typeof j == "function" && ae.set(j, Ft), Ft;
|
|
364
364
|
}
|
|
365
365
|
while (et >= 1 && tt >= 0);
|
|
366
366
|
break;
|
|
@@ -474,7 +474,7 @@ function Th() {
|
|
|
474
474
|
}
|
|
475
475
|
return j.ref !== void 0;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Qt(j) {
|
|
478
478
|
if (Te.call(j, "key")) {
|
|
479
479
|
var se = Object.getOwnPropertyDescriptor(j, "key").get;
|
|
480
480
|
if (se && se.isReactWarning)
|
|
@@ -482,7 +482,7 @@ function Th() {
|
|
|
482
482
|
}
|
|
483
483
|
return j.key !== void 0;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Pt(j, se) {
|
|
486
486
|
if (typeof j.ref == "string" && ce.current && se && ce.current.stateNode !== se) {
|
|
487
487
|
var fe = A(ce.current.type);
|
|
488
488
|
Xe[fe] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(ce.current.type), j.ref), Xe[fe] = !0);
|
|
@@ -499,7 +499,7 @@ function Th() {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Lt(j, se) {
|
|
503
503
|
{
|
|
504
504
|
var fe = function() {
|
|
505
505
|
Je || (Je = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
|
|
@@ -510,7 +510,7 @@ function Th() {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
513
|
+
var Et = function(j, se, fe, xe, Ne, Ue, je) {
|
|
514
514
|
var Fe = {
|
|
515
515
|
// This tag allows us to uniquely identify this as a React Element
|
|
516
516
|
$$typeof: t,
|
|
@@ -542,7 +542,7 @@ function Th() {
|
|
|
542
542
|
function pa(j, se, fe, xe, Ne) {
|
|
543
543
|
{
|
|
544
544
|
var Ue, je = {}, Fe = null, ft = null;
|
|
545
|
-
fe !== void 0 && (ee(fe), Fe = "" + fe),
|
|
545
|
+
fe !== void 0 && (ee(fe), Fe = "" + fe), Qt(se) && (ee(se.key), Fe = "" + se.key), ut(se) && (ft = se.ref, Pt(se, Ne));
|
|
546
546
|
for (Ue in se)
|
|
547
547
|
Te.call(se, Ue) && !ge.hasOwnProperty(Ue) && (je[Ue] = se[Ue]);
|
|
548
548
|
if (j && j.defaultProps) {
|
|
@@ -552,9 +552,9 @@ function Th() {
|
|
|
552
552
|
}
|
|
553
553
|
if (Fe || ft) {
|
|
554
554
|
var tt = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
|
|
555
|
-
Fe && at(je, tt), ft &&
|
|
555
|
+
Fe && at(je, tt), ft && Lt(je, tt);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return Et(j, Fe, ft, Ne, xe, ce.current, je);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var gr = v.ReactCurrentOwner, Qr = v.ReactDebugCurrentFrame;
|
|
@@ -690,17 +690,17 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
690
690
|
if (tt == null)
|
|
691
691
|
return tt;
|
|
692
692
|
if (je) {
|
|
693
|
-
var
|
|
694
|
-
if (
|
|
693
|
+
var Ft = se.children;
|
|
694
|
+
if (Ft !== void 0)
|
|
695
695
|
if (xe)
|
|
696
|
-
if (we(
|
|
697
|
-
for (var Un = 0; Un <
|
|
698
|
-
zo(
|
|
699
|
-
Object.freeze && Object.freeze(
|
|
696
|
+
if (we(Ft)) {
|
|
697
|
+
for (var Un = 0; Un < Ft.length; Un++)
|
|
698
|
+
zo(Ft[Un], j);
|
|
699
|
+
Object.freeze && Object.freeze(Ft);
|
|
700
700
|
} else
|
|
701
701
|
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
702
702
|
else
|
|
703
|
-
zo(
|
|
703
|
+
zo(Ft, j);
|
|
704
704
|
}
|
|
705
705
|
return j === r ? uh(tt) : oh(tt), tt;
|
|
706
706
|
}
|
|
@@ -744,7 +744,7 @@ function Nc(e, t, n) {
|
|
|
744
744
|
h.current = !1;
|
|
745
745
|
};
|
|
746
746
|
}, []);
|
|
747
|
-
var B =
|
|
747
|
+
var B = Vt(function() {
|
|
748
748
|
var E = function(N) {
|
|
749
749
|
var z = o.current, w = l.current;
|
|
750
750
|
return o.current = l.current = null, a.current = N, u.current = d.current.apply(w, z);
|
|
@@ -953,7 +953,7 @@ const Vo = {}, hr = Ys(
|
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
955
|
return r;
|
|
956
|
-
}, Oh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ph = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Nh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), C_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()),
|
|
956
|
+
}, Oh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ph = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Nh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), C_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), rn = "https://storage.googleapis.com/apolitical-assets/", kr = {
|
|
957
957
|
general: "hello@apolitical.co",
|
|
958
958
|
support: "concierge@apolitical.co",
|
|
959
959
|
"data-protection": {
|
|
@@ -967,7 +967,7 @@ const Vo = {}, hr = Ys(
|
|
|
967
967
|
}, Ko = "SU:", Si = "DELETED", Mh = "Invalid token error: Logging user out...", E_ = "200,000+", __ = "160+", ji = /@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g, Rh = new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$");
|
|
968
968
|
function k_(e) {
|
|
969
969
|
return e ? {
|
|
970
|
-
"--icon": `url(${
|
|
970
|
+
"--icon": `url(${rn}icons/${e}.svg)`
|
|
971
971
|
} : {};
|
|
972
972
|
}
|
|
973
973
|
const _n = {
|
|
@@ -1552,7 +1552,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1552
1552
|
es: Wh,
|
|
1553
1553
|
fr: Uh,
|
|
1554
1554
|
pt: Hh
|
|
1555
|
-
}, Symbol.toStringTag, { value: "Module" })), Js = (e, t = mr) => e in t,
|
|
1555
|
+
}, Symbol.toStringTag, { value: "Module" })), Js = (e, t = mr) => e in t, Mt = (e, t, n, r, i = {}) => {
|
|
1556
1556
|
let a = "";
|
|
1557
1557
|
return Js(`${t}_${n}`) ? a = e({ id: `${t}_${n}` }, i) : a = e({ id: t }, { [r]: n, ...i }), a;
|
|
1558
1558
|
}, Kh = (e, t, n) => {
|
|
@@ -1698,7 +1698,7 @@ const Ae = ({
|
|
|
1698
1698
|
children: a
|
|
1699
1699
|
});
|
|
1700
1700
|
};
|
|
1701
|
-
const
|
|
1701
|
+
const an = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1702
1702
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1703
1703
|
return /* @__PURE__ */ c.jsx("hr", { className: Z(e, { "has-max-width": t }), style: n });
|
|
1704
1704
|
}, Go = {
|
|
@@ -2049,7 +2049,7 @@ const Xs = ({
|
|
|
2049
2049
|
star: "star_empty_thin"
|
|
2050
2050
|
}, nm = (e) => {
|
|
2051
2051
|
let t = e;
|
|
2052
|
-
return Object.keys(Xo).includes(e) && (t = Xo[e]), `url(${
|
|
2052
|
+
return Object.keys(Xo).includes(e) && (t = Xo[e]), `url(${rn}icons/${t}.svg)`;
|
|
2053
2053
|
};
|
|
2054
2054
|
const eu = {
|
|
2055
2055
|
customCard: "custom",
|
|
@@ -2083,7 +2083,7 @@ const eu = {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
);
|
|
2085
2085
|
};
|
|
2086
|
-
const
|
|
2086
|
+
const Zt = ({
|
|
2087
2087
|
variant: e = "primary",
|
|
2088
2088
|
icon: t,
|
|
2089
2089
|
styling: n = {},
|
|
@@ -2091,7 +2091,7 @@ const Kt = ({
|
|
|
2091
2091
|
children: i,
|
|
2092
2092
|
...a
|
|
2093
2093
|
}) => {
|
|
2094
|
-
const { showHighlight: s = !1, background: o = "default" } = n, l = t ? { "--icon": `url(${
|
|
2094
|
+
const { showHighlight: s = !1, background: o = "default" } = n, l = t ? { "--icon": `url(${rn}icons/${t}.svg)` } : {};
|
|
2095
2095
|
return /* @__PURE__ */ c.jsx(
|
|
2096
2096
|
"div",
|
|
2097
2097
|
{
|
|
@@ -2125,12 +2125,12 @@ const In = ({
|
|
|
2125
2125
|
...d
|
|
2126
2126
|
} = n;
|
|
2127
2127
|
return /* @__PURE__ */ c.jsx(
|
|
2128
|
-
|
|
2128
|
+
Zt,
|
|
2129
2129
|
{
|
|
2130
2130
|
variant: "subtle",
|
|
2131
2131
|
className: Z("empty-state-box", e, r),
|
|
2132
2132
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2133
|
-
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(
|
|
2133
|
+
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2134
2134
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
2135
2135
|
Ae,
|
|
2136
2136
|
{
|
|
@@ -2155,7 +2155,7 @@ const im = ({
|
|
|
2155
2155
|
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: Z("helper-text-box text-small", e, t), children: [
|
|
2156
2156
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2157
2157
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2158
|
-
|
|
2158
|
+
Kt,
|
|
2159
2159
|
{
|
|
2160
2160
|
options: {
|
|
2161
2161
|
wrapper: ie.Fragment,
|
|
@@ -2203,13 +2203,13 @@ const am = ({
|
|
|
2203
2203
|
return null;
|
|
2204
2204
|
const g = ["opening", "open"].includes(h);
|
|
2205
2205
|
return /* @__PURE__ */ c.jsxs(
|
|
2206
|
-
|
|
2206
|
+
Zt,
|
|
2207
2207
|
{
|
|
2208
2208
|
variant: "subtle",
|
|
2209
2209
|
className: Z("hide-show-text-box", t),
|
|
2210
2210
|
children: [
|
|
2211
2211
|
/* @__PURE__ */ c.jsxs("div", { ref: l, id: e, className: Z("content", h), children: [
|
|
2212
|
-
/* @__PURE__ */ c.jsx(
|
|
2212
|
+
/* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0, ...a }, children: h === "closed" ? u : i }),
|
|
2213
2213
|
h !== "closed" && s
|
|
2214
2214
|
] }),
|
|
2215
2215
|
/* @__PURE__ */ c.jsx("p", { className: "cta", children: /* @__PURE__ */ c.jsx(
|
|
@@ -2248,15 +2248,15 @@ const S_ = ({
|
|
|
2248
2248
|
}),
|
|
2249
2249
|
children: r.map((l, u) => {
|
|
2250
2250
|
const d = { wrapper: ie.Fragment, forceInline: !0 }, h = {
|
|
2251
|
-
"--icon": `url(${
|
|
2251
|
+
"--icon": `url(${rn}icons/${l.icon}.svg)`
|
|
2252
2252
|
};
|
|
2253
2253
|
return e === "dl" ? /* @__PURE__ */ c.jsxs(ie.Fragment, { children: [
|
|
2254
|
-
/* @__PURE__ */ c.jsx("dt", { style: h, children: /* @__PURE__ */ c.jsx(
|
|
2255
|
-
/* @__PURE__ */ c.jsx("dd", { children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(
|
|
2256
|
-
] }, `dl-${u}`) : /* @__PURE__ */ c.jsx("li", { style: h, children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(
|
|
2254
|
+
/* @__PURE__ */ c.jsx("dt", { style: h, children: /* @__PURE__ */ c.jsx(Kt, { options: d, children: l.dt || "" }) }, `dt-${u}`),
|
|
2255
|
+
/* @__PURE__ */ c.jsx("dd", { children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(Kt, { options: d, children: l.text }) : l.text }, `dd-${u}`)
|
|
2256
|
+
] }, `dl-${u}`) : /* @__PURE__ */ c.jsx("li", { style: h, children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(Kt, { options: d, children: l.text }) : l.text }, u);
|
|
2257
2257
|
})
|
|
2258
2258
|
});
|
|
2259
|
-
}, lt = () => ie.Fragment, sm = ({ children: e }) => /* @__PURE__ */ c.jsx(
|
|
2259
|
+
}, lt = () => ie.Fragment, sm = ({ children: e }) => /* @__PURE__ */ c.jsx(Zt, { variant: "secondary", children: e }), om = ({ children: e }) => typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ c.jsx("p", { className: "center", children: e }) : /* @__PURE__ */ c.jsx("div", { className: "center", children: e }), um = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], lm = ({ children: e }) => {
|
|
2260
2260
|
const t = le();
|
|
2261
2261
|
if (!e)
|
|
2262
2262
|
return null;
|
|
@@ -2296,19 +2296,19 @@ const S_ = ({
|
|
|
2296
2296
|
if (t.class)
|
|
2297
2297
|
switch (t.class) {
|
|
2298
2298
|
case "casestudy":
|
|
2299
|
-
return /* @__PURE__ */ c.jsx(
|
|
2299
|
+
return /* @__PURE__ */ c.jsx(Zt, { variant: "secondary", children: e });
|
|
2300
2300
|
case "general-textbox":
|
|
2301
2301
|
case "highlight-box":
|
|
2302
|
-
return /* @__PURE__ */ c.jsx(
|
|
2302
|
+
return /* @__PURE__ */ c.jsx(Zt, { variant: "primary", children: e });
|
|
2303
2303
|
case "pink-textbox":
|
|
2304
|
-
return /* @__PURE__ */ c.jsx(
|
|
2304
|
+
return /* @__PURE__ */ c.jsx(Zt, { variant: "tertiary", children: e });
|
|
2305
2305
|
case "content":
|
|
2306
2306
|
return typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ c.jsx("p", { children: e }) : e;
|
|
2307
2307
|
default:
|
|
2308
2308
|
return /* @__PURE__ */ c.jsx("div", { ...t, children: e });
|
|
2309
2309
|
}
|
|
2310
2310
|
return /* @__PURE__ */ c.jsx("div", { ...t, children: e });
|
|
2311
|
-
},
|
|
2311
|
+
}, Nt = ({ children: e }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: e }), dm = (e) => {
|
|
2312
2312
|
const t = le(), n = Date.now().toString();
|
|
2313
2313
|
let r = "default";
|
|
2314
2314
|
const i = e.src;
|
|
@@ -2371,7 +2371,7 @@ const hm = {
|
|
|
2371
2371
|
// Override psuedo-code
|
|
2372
2372
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2373
2373
|
CollapsibleSection: Xs,
|
|
2374
|
-
TextBox:
|
|
2374
|
+
TextBox: Zt,
|
|
2375
2375
|
CaseStudy: sm,
|
|
2376
2376
|
// Override embedded HTML
|
|
2377
2377
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
@@ -2419,7 +2419,7 @@ const hm = {
|
|
|
2419
2419
|
className: Z("markdown-text", t, {
|
|
2420
2420
|
"highlight-titles": s
|
|
2421
2421
|
}),
|
|
2422
|
-
children: /* @__PURE__ */ c.jsx(
|
|
2422
|
+
children: /* @__PURE__ */ c.jsx(Kt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
2423
2423
|
});
|
|
2424
2424
|
};
|
|
2425
2425
|
const mm = ({
|
|
@@ -2442,7 +2442,7 @@ const mm = ({
|
|
|
2442
2442
|
r
|
|
2443
2443
|
] });
|
|
2444
2444
|
};
|
|
2445
|
-
const
|
|
2445
|
+
const vn = ({
|
|
2446
2446
|
size: e = "medium",
|
|
2447
2447
|
variant: t = "default",
|
|
2448
2448
|
className: n = "",
|
|
@@ -2452,7 +2452,7 @@ const gn = ({
|
|
|
2452
2452
|
...s
|
|
2453
2453
|
}) => {
|
|
2454
2454
|
const o = {
|
|
2455
|
-
"--icon": `url(${
|
|
2455
|
+
"--icon": `url(${rn}icons/${r}.svg)`
|
|
2456
2456
|
}, { showTooltip: l, tooltipProps: u } = Ic(!!i), d = /* @__PURE__ */ c.jsx(
|
|
2457
2457
|
"span",
|
|
2458
2458
|
{
|
|
@@ -2510,7 +2510,7 @@ const pm = ({
|
|
|
2510
2510
|
})
|
|
2511
2511
|
}
|
|
2512
2512
|
);
|
|
2513
|
-
}, Vc =
|
|
2513
|
+
}, Vc = Gt(pm);
|
|
2514
2514
|
const Da = "loadingBlock_", gm = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
2515
2515
|
const r = le();
|
|
2516
2516
|
t || (t = {
|
|
@@ -2523,10 +2523,10 @@ const Da = "loadingBlock_", gm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2523
2523
|
for (let o = 0; o < a.length && !(e < parseInt(a[o])); o++)
|
|
2524
2524
|
i = a[o];
|
|
2525
2525
|
const s = i && t[i].icon ? {
|
|
2526
|
-
"--icon": `url(${
|
|
2526
|
+
"--icon": `url(${rn}icons/${t[i].icon}.svg)`
|
|
2527
2527
|
} : {};
|
|
2528
2528
|
return /* @__PURE__ */ c.jsxs(
|
|
2529
|
-
|
|
2529
|
+
Zt,
|
|
2530
2530
|
{
|
|
2531
2531
|
className: Z("loading-block", n, {
|
|
2532
2532
|
"has-icon": i && t[i].icon
|
|
@@ -2539,8 +2539,8 @@ const Da = "loadingBlock_", gm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2539
2539
|
]
|
|
2540
2540
|
}
|
|
2541
2541
|
);
|
|
2542
|
-
}, j_ =
|
|
2543
|
-
const
|
|
2542
|
+
}, j_ = Gt(gm);
|
|
2543
|
+
const $t = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ c.jsx(
|
|
2544
2544
|
Qs,
|
|
2545
2545
|
{
|
|
2546
2546
|
element: e,
|
|
@@ -2597,7 +2597,7 @@ const ws = {
|
|
|
2597
2597
|
"course-navigation": ["button", "button"],
|
|
2598
2598
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2599
2599
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2600
|
-
}, Kc = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => Kc(n, r)) }, t) : /* @__PURE__ */ c.jsx(
|
|
2600
|
+
}, Kc = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => Kc(n, r)) }, t) : /* @__PURE__ */ c.jsx($t, { className: e }, t), Zc = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: Z("loading-state", e), ...t, children: ws[e].map((n, r) => Kc(n, r)) }), Yc = (e) => {
|
|
2601
2601
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2602
2602
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
2603
2603
|
}, ei = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], vm = (e) => {
|
|
@@ -2650,7 +2650,7 @@ const ru = 256, $n = ({
|
|
|
2650
2650
|
) : s ? /* @__PURE__ */ c.jsx("canvas", { ref: d }) : /* @__PURE__ */ c.jsx("span", { className: "fallback" })
|
|
2651
2651
|
}
|
|
2652
2652
|
);
|
|
2653
|
-
}, Gc =
|
|
2653
|
+
}, Gc = wt({
|
|
2654
2654
|
badges: [],
|
|
2655
2655
|
isLoading: !0
|
|
2656
2656
|
});
|
|
@@ -2674,9 +2674,9 @@ const ym = ({ children: e, badges: t }) => /* @__PURE__ */ c.jsx(Gc.Provider, {
|
|
|
2674
2674
|
e && /* @__PURE__ */ c.jsx(wh, { initialIsOpen: !1 })
|
|
2675
2675
|
] });
|
|
2676
2676
|
};
|
|
2677
|
-
var Qc =
|
|
2677
|
+
var Qc = wt({ client: wi });
|
|
2678
2678
|
function xm(e) {
|
|
2679
|
-
var t = e.children, n = e.client, r = e.apiKey, i = e.options, a =
|
|
2679
|
+
var t = e.children, n = e.client, r = e.apiKey, i = e.options, a = Vt(function() {
|
|
2680
2680
|
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (wi.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), wi.init(r, i)), wi);
|
|
2681
2681
|
}, [n, r]);
|
|
2682
2682
|
return ie.createElement(Qc.Provider, { value: { client: a } }, t);
|
|
@@ -2720,16 +2720,16 @@ const _m = ({ children: e, locale: t, messages: n }) => {
|
|
|
2720
2720
|
...n || {}
|
|
2721
2721
|
};
|
|
2722
2722
|
return /* @__PURE__ */ c.jsx(gh, { locale: r, messages: i, children: e });
|
|
2723
|
-
}, Xc =
|
|
2723
|
+
}, Xc = wt({}), xa = {
|
|
2724
2724
|
en: "English",
|
|
2725
2725
|
es: "Español",
|
|
2726
2726
|
fr: "Français",
|
|
2727
2727
|
pt: "Português"
|
|
2728
|
-
},
|
|
2728
|
+
}, At = wt({ isLoading: !0 });
|
|
2729
2729
|
function eo() {
|
|
2730
|
-
return Le(
|
|
2730
|
+
return Le(At);
|
|
2731
2731
|
}
|
|
2732
|
-
const km = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(
|
|
2732
|
+
const km = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(At.Provider, { value: { ...t, updateDetails: n }, children: e }), ed = wt({
|
|
2733
2733
|
registerOverlay: () => {
|
|
2734
2734
|
},
|
|
2735
2735
|
unregisterOverlay: () => {
|
|
@@ -2766,9 +2766,9 @@ const km = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2766
2766
|
};
|
|
2767
2767
|
var it = /* @__PURE__ */ ((e) => (e.DISCUSSION_FORM_SUBMITTED = "discussionFormSubmitted", e.DISCUSSION_POST_ADDED = "discussionPostAdded", e.DISCUSSION_POST_CLICKED = "discussionPostClicked", e.MEMBER_CLICKED = "memberClicked", e))(it || {});
|
|
2768
2768
|
const to = (e) => e === "apolitical" ? {
|
|
2769
|
-
image: `${
|
|
2769
|
+
image: `${rn}logos/member_apolitical.svg`
|
|
2770
2770
|
} : e === "community" || e === "deleted" || typeof e == "object" && !e.name ? {
|
|
2771
|
-
image: `${
|
|
2771
|
+
image: `${rn}logos/member_community.svg`
|
|
2772
2772
|
} : {
|
|
2773
2773
|
name: e.name,
|
|
2774
2774
|
role: e.jobTitle || "",
|
|
@@ -2803,7 +2803,7 @@ const Sm = ({ slug: e }) => {
|
|
|
2803
2803
|
return null;
|
|
2804
2804
|
const { name: r, icon: i, colour: a } = n;
|
|
2805
2805
|
return /* @__PURE__ */ c.jsx(
|
|
2806
|
-
|
|
2806
|
+
vn,
|
|
2807
2807
|
{
|
|
2808
2808
|
className: Z("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2809
2809
|
icon: i && Tm[i],
|
|
@@ -2811,17 +2811,19 @@ const Sm = ({ slug: e }) => {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
);
|
|
2813
2813
|
};
|
|
2814
|
-
const jm = ({ element: e = "
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
}
|
|
2814
|
+
const jm = ({ element: e = "ul", userBadges: t, badgeOptions: n }) => ie.createElement(e, {
|
|
2815
|
+
className: "badges-list",
|
|
2816
|
+
children: n.scopes && n.scopes.map(
|
|
2817
|
+
(r) => {
|
|
2818
|
+
var i, a;
|
|
2819
|
+
return (a = (i = t == null ? void 0 : t[r.scope]) == null ? void 0 : i[r.area]) == null ? void 0 : a.map((s, o) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Sm, { slug: s }, o) }));
|
|
2820
|
+
}
|
|
2821
|
+
)
|
|
2822
|
+
}), Om = Kr(() => Promise.resolve().then(() => em)), Pm = Kr(
|
|
2821
2823
|
() => Promise.resolve().then(() => KE)
|
|
2822
2824
|
);
|
|
2823
2825
|
let ti = null;
|
|
2824
|
-
const
|
|
2826
|
+
const bn = ({
|
|
2825
2827
|
element: e = "div",
|
|
2826
2828
|
member: t = "community",
|
|
2827
2829
|
alt: n = "",
|
|
@@ -2834,7 +2836,7 @@ const vn = ({
|
|
|
2834
2836
|
badges: u,
|
|
2835
2837
|
...d
|
|
2836
2838
|
}) => {
|
|
2837
|
-
const h = le(), { profile: p, ...m } = a, { size: g = "medium", variant: f = "inline", isCondensed: b = !0 } = i, v = Le(
|
|
2839
|
+
const h = le(), { profile: p, ...m } = a, { size: g = "medium", variant: f = "inline", isCondensed: b = !0 } = i, v = Le(At), C = p && v && typeof v.id == "string", [B, E] = ue(!1), x = to(t);
|
|
2838
2840
|
x.name || (x.name = h.formatMessage({
|
|
2839
2841
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
2840
2842
|
}));
|
|
@@ -2939,7 +2941,7 @@ const vn = ({
|
|
|
2939
2941
|
});
|
|
2940
2942
|
}, Nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2941
2943
|
__proto__: null,
|
|
2942
|
-
default:
|
|
2944
|
+
default: bn
|
|
2943
2945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2944
2946
|
const iu = {
|
|
2945
2947
|
small: 24,
|
|
@@ -2968,7 +2970,7 @@ const iu = {
|
|
|
2968
2970
|
if (m < o) {
|
|
2969
2971
|
const { name: b = "", image: v = "" } = to(p);
|
|
2970
2972
|
if (s)
|
|
2971
|
-
return /* @__PURE__ */ c.jsx(
|
|
2973
|
+
return /* @__PURE__ */ c.jsx($t, { element: "li", className: "contributor" }, m);
|
|
2972
2974
|
g = /* @__PURE__ */ c.jsx(
|
|
2973
2975
|
$n,
|
|
2974
2976
|
{
|
|
@@ -3716,12 +3718,12 @@ var ad = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3716
3718
|
return i;
|
|
3717
3719
|
}, ld = function(t) {
|
|
3718
3720
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
3719
|
-
},
|
|
3721
|
+
}, mn = function(t) {
|
|
3720
3722
|
if (!t)
|
|
3721
3723
|
throw new Error("No node provided");
|
|
3722
3724
|
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Hm(t)) && !ld(t) ? 0 : t.tabIndex;
|
|
3723
3725
|
}, Vm = function(t, n) {
|
|
3724
|
-
var r =
|
|
3726
|
+
var r = mn(t);
|
|
3725
3727
|
return r < 0 && n && !ld(t) ? 0 : r;
|
|
3726
3728
|
}, Km = function(t, n) {
|
|
3727
3729
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
@@ -3816,7 +3818,7 @@ var ad = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3816
3818
|
Ri(n) || Zm(n) || tp(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
3817
3819
|
Ym(n) || np(n));
|
|
3818
3820
|
}, Es = function(t, n) {
|
|
3819
|
-
return !(Xm(n) ||
|
|
3821
|
+
return !(Xm(n) || mn(n) < 0 || !Ii(t, n));
|
|
3820
3822
|
}, rp = function(t) {
|
|
3821
3823
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
3822
3824
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -3863,7 +3865,7 @@ var ad = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3863
3865
|
const sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3864
3866
|
__proto__: null,
|
|
3865
3867
|
focusable: fd,
|
|
3866
|
-
getTabIndex:
|
|
3868
|
+
getTabIndex: mn,
|
|
3867
3869
|
isFocusable: Ei,
|
|
3868
3870
|
isTabbable: Cn,
|
|
3869
3871
|
tabbable: dd
|
|
@@ -4047,7 +4049,7 @@ var vu = {
|
|
|
4047
4049
|
}), Y = S.slice().reverse().find(function(D) {
|
|
4048
4050
|
return Cn(D);
|
|
4049
4051
|
}), re = !!A.find(function(D) {
|
|
4050
|
-
return
|
|
4052
|
+
return mn(D) > 0;
|
|
4051
4053
|
});
|
|
4052
4054
|
return {
|
|
4053
4055
|
container: w,
|
|
@@ -4127,7 +4129,7 @@ var vu = {
|
|
|
4127
4129
|
});
|
|
4128
4130
|
if (D < 0 && (re.container === A || Ei(A, a.tabbableOptions) && !Cn(A, a.tabbableOptions) && !re.nextTabbableNode(A, !1)) && (D = Y), D >= 0) {
|
|
4129
4131
|
var L = D === 0 ? s.tabbableGroups.length - 1 : D - 1, G = s.tabbableGroups[L];
|
|
4130
|
-
K =
|
|
4132
|
+
K = mn(A) >= 0 ? G.lastTabbableNode : G.lastDomTabbableNode;
|
|
4131
4133
|
} else
|
|
4132
4134
|
Fr(S) || (K = re.nextTabbableNode(A, !1));
|
|
4133
4135
|
} else {
|
|
@@ -4137,7 +4139,7 @@ var vu = {
|
|
|
4137
4139
|
});
|
|
4138
4140
|
if (_ < 0 && (re.container === A || Ei(A, a.tabbableOptions) && !Cn(A, a.tabbableOptions) && !re.nextTabbableNode(A)) && (_ = Y), _ >= 0) {
|
|
4139
4141
|
var k = _ === s.tabbableGroups.length - 1 ? 0 : _ + 1, R = s.tabbableGroups[k];
|
|
4140
|
-
K =
|
|
4142
|
+
K = mn(A) >= 0 ? R.firstTabbableNode : R.firstDomTabbableNode;
|
|
4141
4143
|
} else
|
|
4142
4144
|
Fr(S) || (K = re.nextTabbableNode(A));
|
|
4143
4145
|
}
|
|
@@ -4169,7 +4171,7 @@ var vu = {
|
|
|
4169
4171
|
w.stopImmediatePropagation();
|
|
4170
4172
|
var $, W = !0;
|
|
4171
4173
|
if (s.mostRecentlyFocusedNode)
|
|
4172
|
-
if (
|
|
4174
|
+
if (mn(s.mostRecentlyFocusedNode) > 0) {
|
|
4173
4175
|
var K = u(s.mostRecentlyFocusedNode), Y = s.containerGroups[K].tabbableNodes;
|
|
4174
4176
|
if (Y.length > 0) {
|
|
4175
4177
|
var re = Y.findIndex(function(D) {
|
|
@@ -4180,7 +4182,7 @@ var vu = {
|
|
|
4180
4182
|
} else
|
|
4181
4183
|
s.containerGroups.some(function(D) {
|
|
4182
4184
|
return D.tabbableNodes.some(function(L) {
|
|
4183
|
-
return
|
|
4185
|
+
return mn(L) > 0;
|
|
4184
4186
|
});
|
|
4185
4187
|
}) || (W = !1);
|
|
4186
4188
|
else
|
|
@@ -4719,10 +4721,10 @@ const Ln = ({
|
|
|
4719
4721
|
}
|
|
4720
4722
|
)
|
|
4721
4723
|
] }),
|
|
4722
|
-
n && /* @__PURE__ */ c.jsx(
|
|
4724
|
+
n && /* @__PURE__ */ c.jsx(an, {}),
|
|
4723
4725
|
l,
|
|
4724
4726
|
u && /* @__PURE__ */ c.jsxs("div", { className: "bottom", children: [
|
|
4725
|
-
/* @__PURE__ */ c.jsx(
|
|
4727
|
+
/* @__PURE__ */ c.jsx(an, {}),
|
|
4726
4728
|
/* @__PURE__ */ c.jsx(Zr, { buttons: u })
|
|
4727
4729
|
] }),
|
|
4728
4730
|
s && /* @__PURE__ */ c.jsx(Pi, { className: "error", children: s })
|
|
@@ -4745,7 +4747,7 @@ const xr = "joinCommunityButton", md = ({
|
|
|
4745
4747
|
}, leave: () => {
|
|
4746
4748
|
} }
|
|
4747
4749
|
}) => {
|
|
4748
|
-
const s = le(), o = Le(
|
|
4750
|
+
const s = le(), o = Le(At), l = o && typeof o.id == "string", u = r || !l, [d, h] = ue(e), [p, m] = ue(e ? "joined" : "notJoined");
|
|
4749
4751
|
de(() => {
|
|
4750
4752
|
p === "joining" ? m("joined") : p === "leaving" && m("notJoined");
|
|
4751
4753
|
}, [d]);
|
|
@@ -5127,7 +5129,7 @@ const Rp = Kr(() => Promise.resolve().then(() => Nm)), Ip = [
|
|
|
5127
5129
|
href: "/communities/"
|
|
5128
5130
|
}
|
|
5129
5131
|
], $p = ({ activeLink: e, profile: t }) => {
|
|
5130
|
-
const n = le(), r = Le(
|
|
5132
|
+
const n = le(), r = Le(At), i = r && typeof r.id == "string";
|
|
5131
5133
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5132
5134
|
Ip.map(({ key: a, href: s }) => {
|
|
5133
5135
|
const o = Mp(s, e), l = {};
|
|
@@ -5479,7 +5481,7 @@ const oi = "emailHelperTextBox_", Hp = ({
|
|
|
5479
5481
|
break;
|
|
5480
5482
|
case "exists":
|
|
5481
5483
|
g += "emailAlreadyExists", f = "error", b = {
|
|
5482
|
-
href: "/
|
|
5484
|
+
href: "/api/next-ui/login",
|
|
5483
5485
|
"data-gtm-event-context": "EmailExistsBox",
|
|
5484
5486
|
"data-gtm-event-type": "login-click"
|
|
5485
5487
|
}, v = {
|
|
@@ -5512,8 +5514,8 @@ const oi = "emailHelperTextBox_", Hp = ({
|
|
|
5512
5514
|
type: s.type,
|
|
5513
5515
|
heading: l ? !1 : a.formatMessage({ id: `${s.path}_title` }),
|
|
5514
5516
|
children: l ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5515
|
-
/* @__PURE__ */ c.jsx(
|
|
5516
|
-
/* @__PURE__ */ c.jsx(
|
|
5517
|
+
/* @__PURE__ */ c.jsx($t, { element: "span" }),
|
|
5518
|
+
/* @__PURE__ */ c.jsx($t, { element: "span" })
|
|
5517
5519
|
] }) : (
|
|
5518
5520
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
5519
5521
|
// @ts-ignore
|
|
@@ -5747,7 +5749,7 @@ const vd = ({
|
|
|
5747
5749
|
b
|
|
5748
5750
|
);
|
|
5749
5751
|
};
|
|
5750
|
-
const Zp =
|
|
5752
|
+
const Zp = Gt(function({
|
|
5751
5753
|
direction: t = "down"
|
|
5752
5754
|
}) {
|
|
5753
5755
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -6485,7 +6487,7 @@ const ui = "passwordRules_", bd = "isMoreThanEightCharacters", yd = "includesNum
|
|
|
6485
6487
|
)
|
|
6486
6488
|
) })
|
|
6487
6489
|
] });
|
|
6488
|
-
}, ng =
|
|
6490
|
+
}, ng = Gt(tg);
|
|
6489
6491
|
const L_ = ({
|
|
6490
6492
|
text: e = {},
|
|
6491
6493
|
topRating: t = 5,
|
|
@@ -6520,7 +6522,7 @@ const L_ = ({
|
|
|
6520
6522
|
if (de(() => {
|
|
6521
6523
|
s && !l.setUp && d();
|
|
6522
6524
|
}, [s]), !s)
|
|
6523
|
-
return /* @__PURE__ */ c.jsx(
|
|
6525
|
+
return /* @__PURE__ */ c.jsx($t, { className: "rating-placeholder" });
|
|
6524
6526
|
const { id: h, rating: p, disabled: m } = l, g = "ratings_", f = {
|
|
6525
6527
|
text: o.formatMessage({ id: `${g}text` }),
|
|
6526
6528
|
low: o.formatMessage({ id: `${g}low` }),
|
|
@@ -7238,7 +7240,7 @@ function st(e) {
|
|
|
7238
7240
|
var t, n;
|
|
7239
7241
|
return Cu(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(Cu(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
7240
7242
|
}
|
|
7241
|
-
var Ad = Symbol.for("immer-nothing"), Eu = Symbol.for("immer-draftable"),
|
|
7243
|
+
var Ad = Symbol.for("immer-nothing"), Eu = Symbol.for("immer-draftable"), kt = Symbol.for("immer-state"), Ag = process.env.NODE_ENV !== "production" ? [
|
|
7242
7244
|
// All error codes, starting by 0:
|
|
7243
7245
|
function(e) {
|
|
7244
7246
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -7269,7 +7271,7 @@ var Ad = Symbol.for("immer-nothing"), Eu = Symbol.for("immer-draftable"), _t = S
|
|
|
7269
7271
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
7270
7272
|
// See Patches.ts for additional errors
|
|
7271
7273
|
] : [];
|
|
7272
|
-
function
|
|
7274
|
+
function Dt(e, ...t) {
|
|
7273
7275
|
if (process.env.NODE_ENV !== "production") {
|
|
7274
7276
|
const n = Ag[e], r = typeof n == "function" ? n.apply(null, t) : n;
|
|
7275
7277
|
throw new Error(`[Immer] ${r}`);
|
|
@@ -7280,7 +7282,7 @@ function yt(e, ...t) {
|
|
|
7280
7282
|
}
|
|
7281
7283
|
var or = Object.getPrototypeOf;
|
|
7282
7284
|
function jn(e) {
|
|
7283
|
-
return !!e && !!e[
|
|
7285
|
+
return !!e && !!e[kt];
|
|
7284
7286
|
}
|
|
7285
7287
|
function On(e) {
|
|
7286
7288
|
var t;
|
|
@@ -7302,7 +7304,7 @@ function zi(e, t) {
|
|
|
7302
7304
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
7303
7305
|
}
|
|
7304
7306
|
function aa(e) {
|
|
7305
|
-
const t = e[
|
|
7307
|
+
const t = e[kt];
|
|
7306
7308
|
return t ? t.type_ : Array.isArray(e) ? 1 : sa(e) ? 2 : oa(e) ? 3 : 0;
|
|
7307
7309
|
}
|
|
7308
7310
|
function Bs(e, t) {
|
|
@@ -7334,7 +7336,7 @@ function As(e, t) {
|
|
|
7334
7336
|
const n = Fd(e);
|
|
7335
7337
|
if (t === !0 || t === "class_only" && !n) {
|
|
7336
7338
|
const r = Object.getOwnPropertyDescriptors(e);
|
|
7337
|
-
delete r[
|
|
7339
|
+
delete r[kt];
|
|
7338
7340
|
let i = Reflect.ownKeys(r);
|
|
7339
7341
|
for (let a = 0; a < i.length; a++) {
|
|
7340
7342
|
const s = i[a], o = r[s];
|
|
@@ -7359,7 +7361,7 @@ function uo(e, t = !1) {
|
|
|
7359
7361
|
return ua(e) || jn(e) || !On(e) || (aa(e) > 1 && (e.set = e.add = e.clear = e.delete = Sg), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => uo(r, !0))), e;
|
|
7360
7362
|
}
|
|
7361
7363
|
function Sg() {
|
|
7362
|
-
|
|
7364
|
+
Dt(2);
|
|
7363
7365
|
}
|
|
7364
7366
|
function ua(e) {
|
|
7365
7367
|
return Object.isFrozen(e);
|
|
@@ -7367,7 +7369,7 @@ function ua(e) {
|
|
|
7367
7369
|
var jg = {};
|
|
7368
7370
|
function Pn(e) {
|
|
7369
7371
|
const t = jg[e];
|
|
7370
|
-
return t ||
|
|
7372
|
+
return t || Dt(0, e), t;
|
|
7371
7373
|
}
|
|
7372
7374
|
var Lr;
|
|
7373
7375
|
function Sd() {
|
|
@@ -7397,14 +7399,14 @@ function ku(e) {
|
|
|
7397
7399
|
return Lr = Og(Lr, e);
|
|
7398
7400
|
}
|
|
7399
7401
|
function Pg(e) {
|
|
7400
|
-
const t = e[
|
|
7402
|
+
const t = e[kt];
|
|
7401
7403
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
7402
7404
|
}
|
|
7403
7405
|
function Bu(e, t) {
|
|
7404
7406
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
7405
7407
|
const n = t.drafts_[0];
|
|
7406
|
-
return e !== void 0 && e !== n ? (n[
|
|
7407
|
-
n[
|
|
7408
|
+
return e !== void 0 && e !== n ? (n[kt].modified_ && (Fs(t), Dt(4)), On(e) && (e = qi(t, e), t.parent_ || Wi(t, e)), t.patches_ && Pn("Patches").generateReplacementPatches_(
|
|
7409
|
+
n[kt].base_,
|
|
7408
7410
|
e,
|
|
7409
7411
|
t.patches_,
|
|
7410
7412
|
t.inversePatches_
|
|
@@ -7413,7 +7415,7 @@ function Bu(e, t) {
|
|
|
7413
7415
|
function qi(e, t, n) {
|
|
7414
7416
|
if (ua(t))
|
|
7415
7417
|
return t;
|
|
7416
|
-
const r = t[
|
|
7418
|
+
const r = t[kt];
|
|
7417
7419
|
if (!r)
|
|
7418
7420
|
return zi(
|
|
7419
7421
|
t,
|
|
@@ -7440,7 +7442,7 @@ function qi(e, t, n) {
|
|
|
7440
7442
|
return r.copy_;
|
|
7441
7443
|
}
|
|
7442
7444
|
function Au(e, t, n, r, i, a, s) {
|
|
7443
|
-
if (process.env.NODE_ENV !== "production" && i === n &&
|
|
7445
|
+
if (process.env.NODE_ENV !== "production" && i === n && Dt(5), jn(i)) {
|
|
7444
7446
|
const o = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
7445
7447
|
!Bs(t.assigned_, r) ? a.concat(r) : void 0, l = qi(e, i, o);
|
|
7446
7448
|
if (Td(n, r, l), jn(l))
|
|
@@ -7489,7 +7491,7 @@ function Ng(e, t) {
|
|
|
7489
7491
|
}
|
|
7490
7492
|
var lo = {
|
|
7491
7493
|
get(e, t) {
|
|
7492
|
-
if (t ===
|
|
7494
|
+
if (t === kt)
|
|
7493
7495
|
return e;
|
|
7494
7496
|
const n = En(e);
|
|
7495
7497
|
if (!Bs(n, t))
|
|
@@ -7508,7 +7510,7 @@ var lo = {
|
|
|
7508
7510
|
if (r != null && r.set)
|
|
7509
7511
|
return r.set.call(e.draft_, n), !0;
|
|
7510
7512
|
if (!e.modified_) {
|
|
7511
|
-
const i = Pa(En(e), t), a = i == null ? void 0 : i[
|
|
7513
|
+
const i = Pa(En(e), t), a = i == null ? void 0 : i[kt];
|
|
7512
7514
|
if (a && a.base_ === n)
|
|
7513
7515
|
return e.copy_[t] = n, e.assigned_[t] = !1, !0;
|
|
7514
7516
|
if (Tg(n, i) && (n !== void 0 || Bs(e.base_, t)))
|
|
@@ -7534,13 +7536,13 @@ var lo = {
|
|
|
7534
7536
|
};
|
|
7535
7537
|
},
|
|
7536
7538
|
defineProperty() {
|
|
7537
|
-
|
|
7539
|
+
Dt(11);
|
|
7538
7540
|
},
|
|
7539
7541
|
getPrototypeOf(e) {
|
|
7540
7542
|
return or(e.base_);
|
|
7541
7543
|
},
|
|
7542
7544
|
setPrototypeOf() {
|
|
7543
|
-
|
|
7545
|
+
Dt(12);
|
|
7544
7546
|
}
|
|
7545
7547
|
}, zr = {};
|
|
7546
7548
|
zi(lo, (e, t) => {
|
|
@@ -7549,13 +7551,13 @@ zi(lo, (e, t) => {
|
|
|
7549
7551
|
};
|
|
7550
7552
|
});
|
|
7551
7553
|
zr.deleteProperty = function(e, t) {
|
|
7552
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
7554
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Dt(13), zr.set.call(this, e, t, void 0);
|
|
7553
7555
|
};
|
|
7554
7556
|
zr.set = function(e, t, n) {
|
|
7555
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
7557
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Dt(14), lo.set.call(this, e[0], t, n, e[0]);
|
|
7556
7558
|
};
|
|
7557
7559
|
function Pa(e, t) {
|
|
7558
|
-
const n = e[
|
|
7560
|
+
const n = e[kt];
|
|
7559
7561
|
return (n ? En(n) : e)[t];
|
|
7560
7562
|
}
|
|
7561
7563
|
function Mg(e, t, n) {
|
|
@@ -7598,7 +7600,7 @@ var Rg = class {
|
|
|
7598
7600
|
return s.produce(l, (d) => n.call(this, d, ...u));
|
|
7599
7601
|
};
|
|
7600
7602
|
}
|
|
7601
|
-
typeof n != "function" &&
|
|
7603
|
+
typeof n != "function" && Dt(6), r !== void 0 && typeof r != "function" && Dt(7);
|
|
7602
7604
|
let i;
|
|
7603
7605
|
if (On(t)) {
|
|
7604
7606
|
const a = ku(this), s = js(t, void 0);
|
|
@@ -7616,7 +7618,7 @@ var Rg = class {
|
|
|
7616
7618
|
}
|
|
7617
7619
|
return i;
|
|
7618
7620
|
} else
|
|
7619
|
-
|
|
7621
|
+
Dt(1, t);
|
|
7620
7622
|
}, this.produceWithPatches = (t, n) => {
|
|
7621
7623
|
if (typeof t == "function")
|
|
7622
7624
|
return (s, ...o) => this.produceWithPatches(s, (l) => t(l, ...o));
|
|
@@ -7627,13 +7629,13 @@ var Rg = class {
|
|
|
7627
7629
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
7628
7630
|
}
|
|
7629
7631
|
createDraft(e) {
|
|
7630
|
-
On(e) ||
|
|
7632
|
+
On(e) || Dt(8), jn(e) && (e = Ig(e));
|
|
7631
7633
|
const t = ku(this), n = js(e, void 0);
|
|
7632
|
-
return n[
|
|
7634
|
+
return n[kt].isManual_ = !0, Ts(t), n;
|
|
7633
7635
|
}
|
|
7634
7636
|
finishDraft(e, t) {
|
|
7635
|
-
const n = e && e[
|
|
7636
|
-
(!n || !n.isManual_) &&
|
|
7637
|
+
const n = e && e[kt];
|
|
7638
|
+
(!n || !n.isManual_) && Dt(9);
|
|
7637
7639
|
const { scope_: r } = n;
|
|
7638
7640
|
return _u(r, t), Bu(void 0, r);
|
|
7639
7641
|
}
|
|
@@ -7675,12 +7677,12 @@ function js(e, t) {
|
|
|
7675
7677
|
return (t ? t.scope_ : Sd()).drafts_.push(n), n;
|
|
7676
7678
|
}
|
|
7677
7679
|
function Ig(e) {
|
|
7678
|
-
return jn(e) ||
|
|
7680
|
+
return jn(e) || Dt(10, e), Od(e);
|
|
7679
7681
|
}
|
|
7680
7682
|
function Od(e) {
|
|
7681
7683
|
if (!On(e) || ua(e))
|
|
7682
7684
|
return e;
|
|
7683
|
-
const t = e[
|
|
7685
|
+
const t = e[kt];
|
|
7684
7686
|
let n;
|
|
7685
7687
|
if (t) {
|
|
7686
7688
|
if (!t.modified_)
|
|
@@ -7692,14 +7694,14 @@ function Od(e) {
|
|
|
7692
7694
|
Td(n, r, Od(i));
|
|
7693
7695
|
}), t && (t.finalized_ = !1), n;
|
|
7694
7696
|
}
|
|
7695
|
-
var
|
|
7696
|
-
|
|
7697
|
-
|
|
7697
|
+
var Bt = new Rg(), co = Bt.produce;
|
|
7698
|
+
Bt.produceWithPatches.bind(
|
|
7699
|
+
Bt
|
|
7698
7700
|
);
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
var Fu =
|
|
7701
|
+
Bt.setAutoFreeze.bind(Bt);
|
|
7702
|
+
Bt.setUseStrictShallowCopy.bind(Bt);
|
|
7703
|
+
Bt.applyPatches.bind(Bt);
|
|
7704
|
+
var Fu = Bt.createDraft.bind(Bt), Tu = Bt.finishDraft.bind(Bt), $g = {
|
|
7703
7705
|
transform(e, t) {
|
|
7704
7706
|
var {
|
|
7705
7707
|
current: n,
|
|
@@ -7944,7 +7946,7 @@ function Wg(e) {
|
|
|
7944
7946
|
var t = qg(e, "string");
|
|
7945
7947
|
return qr(t) === "symbol" ? t : String(t);
|
|
7946
7948
|
}
|
|
7947
|
-
function
|
|
7949
|
+
function vt(e, t, n) {
|
|
7948
7950
|
return t = Wg(t), t in e ? Object.defineProperty(e, t, {
|
|
7949
7951
|
value: n,
|
|
7950
7952
|
enumerable: !0,
|
|
@@ -7966,7 +7968,7 @@ function Cr(e) {
|
|
|
7966
7968
|
for (var t = 1; t < arguments.length; t++) {
|
|
7967
7969
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
7968
7970
|
t % 2 ? Pu(Object(n), !0).forEach(function(r) {
|
|
7969
|
-
|
|
7971
|
+
vt(e, r, n[r]);
|
|
7970
7972
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pu(Object(n)).forEach(function(r) {
|
|
7971
7973
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
7972
7974
|
});
|
|
@@ -8120,19 +8122,19 @@ var Ug = (e, t, n) => {
|
|
|
8120
8122
|
} = n;
|
|
8121
8123
|
if (ge.length === 0)
|
|
8122
8124
|
throw new Error('Cannot apply a "split_node" operation at path ['.concat(ge, "] because the root node cannot be split."));
|
|
8123
|
-
var Xe = oe.get(e, ge), ut = oe.parent(e, ge),
|
|
8125
|
+
var Xe = oe.get(e, ge), ut = oe.parent(e, ge), Qt = ge[ge.length - 1], Pt;
|
|
8124
8126
|
if (pe.isText(Xe)) {
|
|
8125
|
-
var at = Xe.text.slice(0, Ee),
|
|
8126
|
-
Xe.text = at,
|
|
8127
|
-
text:
|
|
8127
|
+
var at = Xe.text.slice(0, Ee), Lt = Xe.text.slice(Ee);
|
|
8128
|
+
Xe.text = at, Pt = Cr(Cr({}, Je), {}, {
|
|
8129
|
+
text: Lt
|
|
8128
8130
|
});
|
|
8129
8131
|
} else {
|
|
8130
|
-
var
|
|
8131
|
-
Xe.children =
|
|
8132
|
+
var Et = Xe.children.slice(0, Ee), pa = Xe.children.slice(Ee);
|
|
8133
|
+
Xe.children = Et, Pt = Cr(Cr({}, Je), {}, {
|
|
8132
8134
|
children: pa
|
|
8133
8135
|
});
|
|
8134
8136
|
}
|
|
8135
|
-
if (ut.children.splice(
|
|
8137
|
+
if (ut.children.splice(Qt + 1, 0, Pt), t)
|
|
8136
8138
|
for (var [gr, Qr] of U.points(t))
|
|
8137
8139
|
t[Qr] = ke.transform(gr, n);
|
|
8138
8140
|
break;
|
|
@@ -8227,7 +8229,7 @@ function Zg(e, t) {
|
|
|
8227
8229
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
8228
8230
|
return n;
|
|
8229
8231
|
}
|
|
8230
|
-
function
|
|
8232
|
+
function sn(e, t) {
|
|
8231
8233
|
if (e == null)
|
|
8232
8234
|
return {};
|
|
8233
8235
|
var n = Zg(e, t), r, i;
|
|
@@ -8253,7 +8255,7 @@ function Gg(e) {
|
|
|
8253
8255
|
for (var t = 1; t < arguments.length; t++) {
|
|
8254
8256
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8255
8257
|
t % 2 ? Nu(Object(n), !0).forEach(function(r) {
|
|
8256
|
-
|
|
8258
|
+
vt(e, r, n[r]);
|
|
8257
8259
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nu(Object(n)).forEach(function(r) {
|
|
8258
8260
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
8259
8261
|
});
|
|
@@ -8288,7 +8290,7 @@ var U = {
|
|
|
8288
8290
|
return ke.isPoint(t) ? (l = ke.compare(t, s) >= 0, u = ke.compare(t, o) <= 0) : (l = O.compare(t, s.path) >= 0, u = O.compare(t, o.path) <= 0), l && u;
|
|
8289
8291
|
},
|
|
8290
8292
|
intersection(e, t) {
|
|
8291
|
-
var n =
|
|
8293
|
+
var n = sn(e, Yg), [r, i] = U.edges(e), [a, s] = U.edges(t), o = ke.isBefore(r, a) ? a : r, l = ke.isBefore(i, s) ? i : s;
|
|
8292
8294
|
return ke.isBefore(l, o) ? null : Gg({
|
|
8293
8295
|
anchor: o,
|
|
8294
8296
|
focus: l
|
|
@@ -8431,10 +8433,10 @@ var U = {
|
|
|
8431
8433
|
},
|
|
8432
8434
|
extractProps(e) {
|
|
8433
8435
|
if (he.isAncestor(e)) {
|
|
8434
|
-
var t =
|
|
8436
|
+
var t = sn(e, Qg);
|
|
8435
8437
|
return t;
|
|
8436
8438
|
} else {
|
|
8437
|
-
var t =
|
|
8439
|
+
var t = sn(e, Jg);
|
|
8438
8440
|
return t;
|
|
8439
8441
|
}
|
|
8440
8442
|
},
|
|
@@ -8594,16 +8596,16 @@ function Ze(e) {
|
|
|
8594
8596
|
for (var t = 1; t < arguments.length; t++) {
|
|
8595
8597
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8596
8598
|
t % 2 ? Iu(Object(n), !0).forEach(function(r) {
|
|
8597
|
-
|
|
8599
|
+
vt(e, r, n[r]);
|
|
8598
8600
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Iu(Object(n)).forEach(function(r) {
|
|
8599
8601
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
8600
8602
|
});
|
|
8601
8603
|
}
|
|
8602
8604
|
return e;
|
|
8603
8605
|
}
|
|
8604
|
-
var
|
|
8606
|
+
var pn = {
|
|
8605
8607
|
isNodeOperation(e) {
|
|
8606
|
-
return
|
|
8608
|
+
return pn.isOperation(e) && e.type.endsWith("_node");
|
|
8607
8609
|
},
|
|
8608
8610
|
isOperation(e) {
|
|
8609
8611
|
if (!st(e))
|
|
@@ -8632,13 +8634,13 @@ var mn = {
|
|
|
8632
8634
|
}
|
|
8633
8635
|
},
|
|
8634
8636
|
isOperationList(e) {
|
|
8635
|
-
return Array.isArray(e) && e.every((t) =>
|
|
8637
|
+
return Array.isArray(e) && e.every((t) => pn.isOperation(t));
|
|
8636
8638
|
},
|
|
8637
8639
|
isSelectionOperation(e) {
|
|
8638
|
-
return
|
|
8640
|
+
return pn.isOperation(e) && e.type.endsWith("_selection");
|
|
8639
8641
|
},
|
|
8640
8642
|
isTextOperation(e) {
|
|
8641
|
-
return
|
|
8643
|
+
return pn.isOperation(e) && e.type.endsWith("_text");
|
|
8642
8644
|
},
|
|
8643
8645
|
inverse(e) {
|
|
8644
8646
|
switch (e.type) {
|
|
@@ -8720,7 +8722,7 @@ var mn = {
|
|
|
8720
8722
|
return t;
|
|
8721
8723
|
if (!st(e))
|
|
8722
8724
|
return !1;
|
|
8723
|
-
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || st(e.marks)) && (e.selection === null || U.isRange(e.selection)) && oe.isNodeList(e.children) &&
|
|
8725
|
+
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || st(e.marks)) && (e.selection === null || U.isRange(e.selection)) && oe.isNodeList(e.children) && pn.isOperationList(e.operations);
|
|
8724
8726
|
return $u.set(e, n), n;
|
|
8725
8727
|
}, y = {
|
|
8726
8728
|
above(e, t) {
|
|
@@ -8926,7 +8928,7 @@ function zu(e) {
|
|
|
8926
8928
|
for (var t = 1; t < arguments.length; t++) {
|
|
8927
8929
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8928
8930
|
t % 2 ? Lu(Object(n), !0).forEach(function(r) {
|
|
8929
|
-
|
|
8931
|
+
vt(e, r, n[r]);
|
|
8930
8932
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Lu(Object(n)).forEach(function(r) {
|
|
8931
8933
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
8932
8934
|
});
|
|
@@ -9017,11 +9019,11 @@ function Wu(e, t) {
|
|
|
9017
9019
|
}
|
|
9018
9020
|
return n;
|
|
9019
9021
|
}
|
|
9020
|
-
function
|
|
9022
|
+
function Xt(e) {
|
|
9021
9023
|
for (var t = 1; t < arguments.length; t++) {
|
|
9022
9024
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9023
9025
|
t % 2 ? Wu(Object(n), !0).forEach(function(r) {
|
|
9024
|
-
|
|
9026
|
+
vt(e, r, n[r]);
|
|
9025
9027
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wu(Object(n)).forEach(function(r) {
|
|
9026
9028
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9027
9029
|
});
|
|
@@ -9034,7 +9036,7 @@ var pe = {
|
|
|
9034
9036
|
loose: r = !1
|
|
9035
9037
|
} = n;
|
|
9036
9038
|
function i(a) {
|
|
9037
|
-
var s =
|
|
9039
|
+
var s = sn(a, tv);
|
|
9038
9040
|
return s;
|
|
9039
9041
|
}
|
|
9040
9042
|
return Nd(r ? i(e) : e, r ? i(t) : t);
|
|
@@ -9055,9 +9057,9 @@ var pe = {
|
|
|
9055
9057
|
return !0;
|
|
9056
9058
|
},
|
|
9057
9059
|
decorations(e, t) {
|
|
9058
|
-
var n = [
|
|
9060
|
+
var n = [Xt({}, e)];
|
|
9059
9061
|
for (var r of t) {
|
|
9060
|
-
var i =
|
|
9062
|
+
var i = sn(r, nv), [a, s] = U.edges(r), o = [], l = 0, u = a.offset, d = s.offset;
|
|
9061
9063
|
for (var h of n) {
|
|
9062
9064
|
var {
|
|
9063
9065
|
length: p
|
|
@@ -9073,17 +9075,17 @@ var pe = {
|
|
|
9073
9075
|
var g = h, f = void 0, b = void 0;
|
|
9074
9076
|
if (d < l) {
|
|
9075
9077
|
var v = d - m;
|
|
9076
|
-
b =
|
|
9078
|
+
b = Xt(Xt({}, g), {}, {
|
|
9077
9079
|
text: g.text.slice(v)
|
|
9078
|
-
}), g =
|
|
9080
|
+
}), g = Xt(Xt({}, g), {}, {
|
|
9079
9081
|
text: g.text.slice(0, v)
|
|
9080
9082
|
});
|
|
9081
9083
|
}
|
|
9082
9084
|
if (u > m) {
|
|
9083
9085
|
var C = u - m;
|
|
9084
|
-
f =
|
|
9086
|
+
f = Xt(Xt({}, g), {}, {
|
|
9085
9087
|
text: g.text.slice(0, C)
|
|
9086
|
-
}), g =
|
|
9088
|
+
}), g = Xt(Xt({}, g), {}, {
|
|
9087
9089
|
text: g.text.slice(C)
|
|
9088
9090
|
});
|
|
9089
9091
|
}
|
|
@@ -9254,7 +9256,7 @@ function li(e) {
|
|
|
9254
9256
|
for (var t = 1; t < arguments.length; t++) {
|
|
9255
9257
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9256
9258
|
t % 2 ? Hu(Object(n), !0).forEach(function(r) {
|
|
9257
|
-
|
|
9259
|
+
vt(e, r, n[r]);
|
|
9258
9260
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hu(Object(n)).forEach(function(r) {
|
|
9259
9261
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9260
9262
|
});
|
|
@@ -9476,7 +9478,7 @@ function Ku(e) {
|
|
|
9476
9478
|
for (var t = 1; t < arguments.length; t++) {
|
|
9477
9479
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9478
9480
|
t % 2 ? Vu(Object(n), !0).forEach(function(r) {
|
|
9479
|
-
|
|
9481
|
+
vt(e, r, n[r]);
|
|
9480
9482
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Vu(Object(n)).forEach(function(r) {
|
|
9481
9483
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9482
9484
|
});
|
|
@@ -9531,7 +9533,7 @@ function Yu(e) {
|
|
|
9531
9533
|
for (var t = 1; t < arguments.length; t++) {
|
|
9532
9534
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9533
9535
|
t % 2 ? Zu(Object(n), !0).forEach(function(r) {
|
|
9534
|
-
|
|
9536
|
+
vt(e, r, n[r]);
|
|
9535
9537
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zu(Object(n)).forEach(function(r) {
|
|
9536
9538
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9537
9539
|
});
|
|
@@ -9570,7 +9572,7 @@ function Qu(e) {
|
|
|
9570
9572
|
for (var t = 1; t < arguments.length; t++) {
|
|
9571
9573
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9572
9574
|
t % 2 ? Gu(Object(n), !0).forEach(function(r) {
|
|
9573
|
-
|
|
9575
|
+
vt(e, r, n[r]);
|
|
9574
9576
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Gu(Object(n)).forEach(function(r) {
|
|
9575
9577
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9576
9578
|
});
|
|
@@ -9634,7 +9636,7 @@ function Xu(e) {
|
|
|
9634
9636
|
for (var t = 1; t < arguments.length; t++) {
|
|
9635
9637
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9636
9638
|
t % 2 ? Ju(Object(n), !0).forEach(function(r) {
|
|
9637
|
-
|
|
9639
|
+
vt(e, r, n[r]);
|
|
9638
9640
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ju(Object(n)).forEach(function(r) {
|
|
9639
9641
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9640
9642
|
});
|
|
@@ -9671,7 +9673,7 @@ function tl(e) {
|
|
|
9671
9673
|
for (var t = 1; t < arguments.length; t++) {
|
|
9672
9674
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9673
9675
|
t % 2 ? el(Object(n), !0).forEach(function(r) {
|
|
9674
|
-
|
|
9676
|
+
vt(e, r, n[r]);
|
|
9675
9677
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : el(Object(n)).forEach(function(r) {
|
|
9676
9678
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9677
9679
|
});
|
|
@@ -9708,7 +9710,7 @@ function e0(e) {
|
|
|
9708
9710
|
for (var t = 1; t < arguments.length; t++) {
|
|
9709
9711
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
9710
9712
|
t % 2 ? nl(Object(n), !0).forEach(function(r) {
|
|
9711
|
-
|
|
9713
|
+
vt(e, r, n[r]);
|
|
9712
9714
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nl(Object(n)).forEach(function(r) {
|
|
9713
9715
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
9714
9716
|
});
|
|
@@ -9804,7 +9806,7 @@ var d0 = ["text"], f0 = ["text"], h0 = function(t) {
|
|
|
9804
9806
|
}
|
|
9805
9807
|
});
|
|
9806
9808
|
if (l) {
|
|
9807
|
-
var [u] = l, d =
|
|
9809
|
+
var [u] = l, d = sn(u, d0);
|
|
9808
9810
|
return d;
|
|
9809
9811
|
} else
|
|
9810
9812
|
return {};
|
|
@@ -9829,7 +9831,7 @@ var d0 = ["text"], f0 = ["text"], h0 = function(t) {
|
|
|
9829
9831
|
}
|
|
9830
9832
|
}
|
|
9831
9833
|
}
|
|
9832
|
-
var B =
|
|
9834
|
+
var B = sn(p, f0);
|
|
9833
9835
|
return B;
|
|
9834
9836
|
}, m0 = function(t) {
|
|
9835
9837
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
@@ -10178,7 +10180,7 @@ function T0(e) {
|
|
|
10178
10180
|
for (var t = 1; t < arguments.length; t++) {
|
|
10179
10181
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
10180
10182
|
t % 2 ? rl(Object(n), !0).forEach(function(r) {
|
|
10181
|
-
|
|
10183
|
+
vt(e, r, n[r]);
|
|
10182
10184
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rl(Object(n)).forEach(function(r) {
|
|
10183
10185
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
10184
10186
|
});
|
|
@@ -10605,7 +10607,7 @@ function al(e) {
|
|
|
10605
10607
|
for (var t = 1; t < arguments.length; t++) {
|
|
10606
10608
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
10607
10609
|
t % 2 ? il(Object(n), !0).forEach(function(r) {
|
|
10608
|
-
|
|
10610
|
+
vt(e, r, n[r]);
|
|
10609
10611
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : il(Object(n)).forEach(function(r) {
|
|
10610
10612
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
10611
10613
|
});
|
|
@@ -10859,10 +10861,10 @@ var W0 = function(t, n) {
|
|
|
10859
10861
|
match: (N) => E.includes(N) && Rd(t, N)
|
|
10860
10862
|
}), F = x && y.pathRef(t, x[1]), T, I;
|
|
10861
10863
|
if (pe.isText(m) && pe.isText(f)) {
|
|
10862
|
-
var P =
|
|
10864
|
+
var P = sn(m, K0);
|
|
10863
10865
|
I = f.text.length, T = P;
|
|
10864
10866
|
} else if (he.isElement(m) && he.isElement(f)) {
|
|
10865
|
-
var P =
|
|
10867
|
+
var P = sn(m, Z0);
|
|
10866
10868
|
I = f.children.length, T = P;
|
|
10867
10869
|
} else
|
|
10868
10870
|
throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(rt.stringify(m), " ").concat(rt.stringify(f)));
|
|
@@ -11169,7 +11171,7 @@ function ol(e) {
|
|
|
11169
11171
|
for (var t = 1; t < arguments.length; t++) {
|
|
11170
11172
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
11171
11173
|
t % 2 ? sl(Object(n), !0).forEach(function(r) {
|
|
11172
|
-
|
|
11174
|
+
vt(e, r, n[r]);
|
|
11173
11175
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sl(Object(n)).forEach(function(r) {
|
|
11174
11176
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
11175
11177
|
});
|
|
@@ -11642,7 +11644,7 @@ var rb = function(t, n) {
|
|
|
11642
11644
|
* Check if a value is a `History` object.
|
|
11643
11645
|
*/
|
|
11644
11646
|
isHistory(e) {
|
|
11645
|
-
return st(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 ||
|
|
11647
|
+
return st(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || pn.isOperationList(e.redos[0].operations)) && (e.undos.length === 0 || pn.isOperationList(e.undos[0].operations));
|
|
11646
11648
|
}
|
|
11647
11649
|
}, Ma = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), Jn = {
|
|
11648
11650
|
/**
|
|
@@ -11723,7 +11725,7 @@ var rb = function(t, n) {
|
|
|
11723
11725
|
var a = i[i.length - 1];
|
|
11724
11726
|
Jn.withoutSaving(t, () => {
|
|
11725
11727
|
y.withoutNormalizing(t, () => {
|
|
11726
|
-
var s = a.operations.map(
|
|
11728
|
+
var s = a.operations.map(pn.inverse).reverse();
|
|
11727
11729
|
for (var o of s)
|
|
11728
11730
|
t.apply(o);
|
|
11729
11731
|
a.selectionBefore && Q.setSelection(t, a.selectionBefore);
|
|
@@ -12028,7 +12030,7 @@ var Fn = function(e) {
|
|
|
12028
12030
|
return !0;
|
|
12029
12031
|
}
|
|
12030
12032
|
return !1;
|
|
12031
|
-
}, Sr = typeof window < "u" ? window : {}, di = /* @__PURE__ */ new WeakMap(), yl = /auto|scroll/, ky = /^tb|vertical/, By = /msie|trident/i.test(Sr.navigator && Sr.navigator.userAgent),
|
|
12033
|
+
}, Sr = typeof window < "u" ? window : {}, di = /* @__PURE__ */ new WeakMap(), yl = /auto|scroll/, ky = /^tb|vertical/, By = /msie|trident/i.test(Sr.navigator && Sr.navigator.userAgent), zt = function(e) {
|
|
12032
12034
|
return parseFloat(e || "0");
|
|
12033
12035
|
}, nr = function(e, t, n) {
|
|
12034
12036
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ey((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -12042,7 +12044,7 @@ var Fn = function(e) {
|
|
|
12042
12044
|
return di.get(e);
|
|
12043
12045
|
if (Vd(e))
|
|
12044
12046
|
return di.set(e, Dl), Dl;
|
|
12045
|
-
var n = getComputedStyle(e), r = go(e) && e.ownerSVGElement && e.getBBox(), i = !By && n.boxSizing === "border-box", a = ky.test(n.writingMode || ""), s = !r && yl.test(n.overflowY || ""), o = !r && yl.test(n.overflowX || ""), l = r ? 0 :
|
|
12047
|
+
var n = getComputedStyle(e), r = go(e) && e.ownerSVGElement && e.getBBox(), i = !By && n.boxSizing === "border-box", a = ky.test(n.writingMode || ""), s = !r && yl.test(n.overflowY || ""), o = !r && yl.test(n.overflowX || ""), l = r ? 0 : zt(n.paddingTop), u = r ? 0 : zt(n.paddingRight), d = r ? 0 : zt(n.paddingBottom), h = r ? 0 : zt(n.paddingLeft), p = r ? 0 : zt(n.borderTopWidth), m = r ? 0 : zt(n.borderRightWidth), g = r ? 0 : zt(n.borderBottomWidth), f = r ? 0 : zt(n.borderLeftWidth), b = h + u, v = l + d, C = f + m, B = p + g, E = o ? e.offsetHeight - B - e.clientHeight : 0, x = s ? e.offsetWidth - C - e.clientWidth : 0, F = i ? b + C : 0, T = i ? v + B : 0, I = r ? r.width : zt(n.width) - F - x, P = r ? r.height : zt(n.height) - T - E, N = I + b + x + C, z = P + v + E + B, w = Fn({
|
|
12046
12048
|
devicePixelContentBoxSize: nr(Math.round(I * devicePixelRatio), Math.round(P * devicePixelRatio), a),
|
|
12047
12049
|
borderBoxSize: nr(N, z, a),
|
|
12048
12050
|
contentBoxSize: nr(I, P, a),
|
|
@@ -12246,8 +12248,8 @@ var Fn = function(e) {
|
|
|
12246
12248
|
}, e.toString = function() {
|
|
12247
12249
|
return "function ResizeObserver () { [polyfill code] }";
|
|
12248
12250
|
}, e;
|
|
12249
|
-
}(),
|
|
12250
|
-
Object.defineProperty(
|
|
12251
|
+
}(), un = {};
|
|
12252
|
+
Object.defineProperty(un, "__esModule", {
|
|
12251
12253
|
value: !0
|
|
12252
12254
|
});
|
|
12253
12255
|
var qy = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), qa = {
|
|
@@ -12376,13 +12378,13 @@ function ef(e) {
|
|
|
12376
12378
|
function bo(e) {
|
|
12377
12379
|
return e = e.toLowerCase(), e = Qd[e] || e, e;
|
|
12378
12380
|
}
|
|
12379
|
-
var Hy =
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12381
|
+
var Hy = un.default = la, Wa = un.isHotkey = la;
|
|
12382
|
+
un.isCodeHotkey = Wy;
|
|
12383
|
+
un.isKeyHotkey = Uy;
|
|
12384
|
+
un.parseHotkey = Jd;
|
|
12385
|
+
un.compareHotkey = Xd;
|
|
12386
|
+
un.toKeyCode = ef;
|
|
12387
|
+
un.toKeyName = bo;
|
|
12386
12388
|
function Vy(e, t) {
|
|
12387
12389
|
if (e == null)
|
|
12388
12390
|
return {};
|
|
@@ -12426,7 +12428,7 @@ function Zy(e) {
|
|
|
12426
12428
|
var t = Ky(e, "string");
|
|
12427
12429
|
return Ur(t) === "symbol" ? t : String(t);
|
|
12428
12430
|
}
|
|
12429
|
-
function
|
|
12431
|
+
function Ot(e, t, n) {
|
|
12430
12432
|
return t = Zy(t), t in e ? Object.defineProperty(e, t, {
|
|
12431
12433
|
value: n,
|
|
12432
12434
|
enumerable: !0,
|
|
@@ -12434,24 +12436,24 @@ function jt(e, t, n) {
|
|
|
12434
12436
|
writable: !0
|
|
12435
12437
|
}) : e[t] = n, e;
|
|
12436
12438
|
}
|
|
12437
|
-
var yo = /* @__PURE__ */
|
|
12439
|
+
var yo = /* @__PURE__ */ wt(null), xn = () => {
|
|
12438
12440
|
var e = Le(yo);
|
|
12439
12441
|
if (!e)
|
|
12440
12442
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
12441
12443
|
return e;
|
|
12442
|
-
}, tf = parseInt(ie.version.split(".")[0], 10), Yy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), pt = typeof navigator < "u" && /Android/.test(navigator.userAgent), Xn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ar = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Gy = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), nf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Qy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), Jy = pt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), Xy = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), e1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), t1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Bi = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u",
|
|
12444
|
+
}, tf = parseInt(ie.version.split(".")[0], 10), Yy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), pt = typeof navigator < "u" && /Android/.test(navigator.userAgent), Xn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Ar = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Gy = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), nf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Qy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), Jy = pt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), Xy = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), e1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), t1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Bi = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", cn = (!Qy || !Jy) && !Gy && // globalThis is undefined in older browsers
|
|
12443
12445
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
12444
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(),
|
|
12446
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), lr = Symbol("placeholder"), sf = Symbol("mark-placeholder"), n1 = globalThis.Text, Co = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, r1 = (e) => yn(e) && e.nodeType === 8, jt = (e) => yn(e) && e.nodeType === 1, yn = (e) => {
|
|
12445
12447
|
var t = Co(e);
|
|
12446
12448
|
return !!t && e instanceof t.Node;
|
|
12447
12449
|
}, Rs = (e) => {
|
|
12448
12450
|
var t = e && e.anchorNode && Co(e.anchorNode);
|
|
12449
12451
|
return !!t && e instanceof t.Selection;
|
|
12450
|
-
}, of = (e) =>
|
|
12452
|
+
}, of = (e) => yn(e) && e.nodeType === 3, i1 = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, a1 = (e) => {
|
|
12451
12453
|
var [t, n] = e;
|
|
12452
|
-
if (
|
|
12454
|
+
if (jt(t) && t.childNodes.length) {
|
|
12453
12455
|
var r = n === t.childNodes.length, i = r ? n - 1 : n;
|
|
12454
|
-
for ([t, i] = uf(t, i, r ? "backward" : "forward"), r = i < n;
|
|
12456
|
+
for ([t, i] = uf(t, i, r ? "backward" : "forward"), r = i < n; jt(t) && t.childNodes.length; ) {
|
|
12455
12457
|
var a = r ? t.childNodes.length - 1 : 0;
|
|
12456
12458
|
t = o1(t, a, r ? "backward" : "forward");
|
|
12457
12459
|
}
|
|
@@ -12468,7 +12470,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @_
|
|
|
12468
12470
|
}, uf = (e, t, n) => {
|
|
12469
12471
|
for (var {
|
|
12470
12472
|
childNodes: r
|
|
12471
|
-
} = e, i = r[t], a = t, s = !1, o = !1; (r1(i) ||
|
|
12473
|
+
} = e, i = r[t], a = t, s = !1, o = !1; (r1(i) || jt(i) && i.childNodes.length === 0 || jt(i) && i.getAttribute("contenteditable") === "false") && !(s && o); ) {
|
|
12472
12474
|
if (a >= r.length) {
|
|
12473
12475
|
s = !0, a = t - 1, n = "backward";
|
|
12474
12476
|
continue;
|
|
@@ -12487,7 +12489,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @_
|
|
|
12487
12489
|
var t = "";
|
|
12488
12490
|
if (of(e) && e.nodeValue)
|
|
12489
12491
|
return e.nodeValue;
|
|
12490
|
-
if (
|
|
12492
|
+
if (jt(e)) {
|
|
12491
12493
|
for (var n of Array.from(e.childNodes))
|
|
12492
12494
|
t += lf(n);
|
|
12493
12495
|
var r = getComputedStyle(e).getPropertyValue("display");
|
|
@@ -12502,7 +12504,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @_
|
|
|
12502
12504
|
var {
|
|
12503
12505
|
target: r
|
|
12504
12506
|
} = t;
|
|
12505
|
-
if (
|
|
12507
|
+
if (jt(r) && r.matches('[contentEditable="false"]'))
|
|
12506
12508
|
return !1;
|
|
12507
12509
|
var {
|
|
12508
12510
|
document: i
|
|
@@ -12527,18 +12529,18 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Do = /* @_
|
|
|
12527
12529
|
}, c1 = 0;
|
|
12528
12530
|
class d1 {
|
|
12529
12531
|
constructor() {
|
|
12530
|
-
|
|
12532
|
+
Ot(this, "id", void 0), this.id = "".concat(c1++);
|
|
12531
12533
|
}
|
|
12532
12534
|
}
|
|
12533
12535
|
var te = {
|
|
12534
|
-
androidPendingDiffs: (e) =>
|
|
12536
|
+
androidPendingDiffs: (e) => yt.get(e),
|
|
12535
12537
|
androidScheduleFlush: (e) => {
|
|
12536
12538
|
var t;
|
|
12537
12539
|
(t = wo.get(e)) === null || t === void 0 || t();
|
|
12538
12540
|
},
|
|
12539
12541
|
blur: (e) => {
|
|
12540
12542
|
var t = te.toDOMNode(e, e), n = te.findDocumentOrShadowRoot(e);
|
|
12541
|
-
|
|
12543
|
+
gn.set(e, !1), n.activeElement === t && t.blur();
|
|
12542
12544
|
},
|
|
12543
12545
|
deselect: (e) => {
|
|
12544
12546
|
var {
|
|
@@ -12609,7 +12611,7 @@ var te = {
|
|
|
12609
12611
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
12610
12612
|
retries: 5
|
|
12611
12613
|
};
|
|
12612
|
-
if (!
|
|
12614
|
+
if (!gn.get(t)) {
|
|
12613
12615
|
if (n.retries <= 0)
|
|
12614
12616
|
throw new Error("Could not set focus, editor seems stuck with pending operations");
|
|
12615
12617
|
if (t.operations.length > 0) {
|
|
@@ -12626,7 +12628,7 @@ var te = {
|
|
|
12626
12628
|
var a = i.getSelection(), s = te.toDOMRange(t, t.selection);
|
|
12627
12629
|
a == null || a.removeAllRanges(), a == null || a.addRange(s);
|
|
12628
12630
|
}
|
|
12629
|
-
t.selection || (Q.select(t, y.start(t, [])), t.onChange()),
|
|
12631
|
+
t.selection || (Q.select(t, y.start(t, [])), t.onChange()), gn.set(t, !0), r.focus({
|
|
12630
12632
|
preventScroll: !0
|
|
12631
12633
|
});
|
|
12632
12634
|
}
|
|
@@ -12643,7 +12645,7 @@ var te = {
|
|
|
12643
12645
|
editable: i = !1
|
|
12644
12646
|
} = r, a = te.toDOMNode(t, t), s;
|
|
12645
12647
|
try {
|
|
12646
|
-
s =
|
|
12648
|
+
s = jt(n) ? n : n.parentElement;
|
|
12647
12649
|
} catch (o) {
|
|
12648
12650
|
if (o instanceof Error && !o.message.includes('Permission denied to access property "nodeType"'))
|
|
12649
12651
|
throw o;
|
|
@@ -12652,7 +12654,7 @@ var te = {
|
|
|
12652
12654
|
// this is the core logic that lets you know you got the right editor.selection instead of null when editor is contenteditable="false"(readOnly)
|
|
12653
12655
|
s.closest('[contenteditable="false"]') === a || !!s.getAttribute("data-slate-zero-width")) : !1;
|
|
12654
12656
|
},
|
|
12655
|
-
hasEditableTarget: (e, t) =>
|
|
12657
|
+
hasEditableTarget: (e, t) => yn(t) && te.hasDOMNode(e, t, {
|
|
12656
12658
|
editable: !0
|
|
12657
12659
|
}),
|
|
12658
12660
|
hasRange: (e, t) => {
|
|
@@ -12663,14 +12665,14 @@ var te = {
|
|
|
12663
12665
|
return y.hasPath(e, n.path) && y.hasPath(e, r.path);
|
|
12664
12666
|
},
|
|
12665
12667
|
hasSelectableTarget: (e, t) => te.hasEditableTarget(e, t) || te.isTargetInsideNonReadonlyVoid(e, t),
|
|
12666
|
-
hasTarget: (e, t) =>
|
|
12668
|
+
hasTarget: (e, t) => yn(t) && te.hasDOMNode(e, t),
|
|
12667
12669
|
insertData: (e, t) => {
|
|
12668
12670
|
e.insertData(t);
|
|
12669
12671
|
},
|
|
12670
12672
|
insertFragmentData: (e, t) => e.insertFragmentData(t),
|
|
12671
12673
|
insertTextData: (e, t) => e.insertTextData(t),
|
|
12672
12674
|
isComposing: (e) => !!kn.get(e),
|
|
12673
|
-
isFocused: (e) => !!
|
|
12675
|
+
isFocused: (e) => !!gn.get(e),
|
|
12674
12676
|
isReadOnly: (e) => !!Ns.get(e),
|
|
12675
12677
|
isTargetInsideNonReadonlyVoid: (e, t) => {
|
|
12676
12678
|
if (Ns.get(e))
|
|
@@ -12728,11 +12730,11 @@ var te = {
|
|
|
12728
12730
|
var {
|
|
12729
12731
|
anchor: n,
|
|
12730
12732
|
focus: r
|
|
12731
|
-
} = t, i = U.isBackward(t), a = te.toDOMPoint(e, n), s = U.isCollapsed(t) ? a : te.toDOMPoint(e, r), o = te.getWindow(e), l = o.document.createRange(), [u, d] = i ? s : a, [h, p] = i ? a : s, m =
|
|
12733
|
+
} = t, i = U.isBackward(t), a = te.toDOMPoint(e, n), s = U.isCollapsed(t) ? a : te.toDOMPoint(e, r), o = te.getWindow(e), l = o.document.createRange(), [u, d] = i ? s : a, [h, p] = i ? a : s, m = jt(u) ? u : u.parentElement, g = !!m.getAttribute("data-slate-zero-width"), f = jt(h) ? h : h.parentElement, b = !!f.getAttribute("data-slate-zero-width");
|
|
12732
12734
|
return l.setStart(u, g ? 1 : d), l.setEnd(h, b ? 1 : p), l;
|
|
12733
12735
|
},
|
|
12734
12736
|
toSlateNode: (e, t) => {
|
|
12735
|
-
var n =
|
|
12737
|
+
var n = jt(t) ? t : t.parentElement;
|
|
12736
12738
|
n && !n.hasAttribute("data-slate-node") && (n = n.closest("[data-slate-node]"));
|
|
12737
12739
|
var r = n ? Hr.get(n) : null;
|
|
12738
12740
|
if (!r)
|
|
@@ -12858,7 +12860,7 @@ var te = {
|
|
|
12858
12860
|
anchor: B,
|
|
12859
12861
|
focus: E
|
|
12860
12862
|
};
|
|
12861
|
-
return U.isExpanded(x) && U.isForward(x) &&
|
|
12863
|
+
return U.isExpanded(x) && U.isForward(x) && jt(u) && y.void(e, {
|
|
12862
12864
|
at: x.focus,
|
|
12863
12865
|
mode: "highest"
|
|
12864
12866
|
}) && (x = y.unhangRange(e, x, {
|
|
@@ -12983,7 +12985,7 @@ function Bl(e, t) {
|
|
|
12983
12985
|
} : null;
|
|
12984
12986
|
}
|
|
12985
12987
|
function $s(e, t, n) {
|
|
12986
|
-
var r =
|
|
12988
|
+
var r = yt.get(e), i = r == null ? void 0 : r.find((d) => {
|
|
12987
12989
|
var {
|
|
12988
12990
|
path: h
|
|
12989
12991
|
} = d;
|
|
@@ -13139,7 +13141,7 @@ function pi(e) {
|
|
|
13139
13141
|
for (var t = 1; t < arguments.length; t++) {
|
|
13140
13142
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13141
13143
|
t % 2 ? Fl(Object(n), !0).forEach(function(r) {
|
|
13142
|
-
|
|
13144
|
+
Ot(e, r, n[r]);
|
|
13143
13145
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fl(Object(n)).forEach(function(r) {
|
|
13144
13146
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13145
13147
|
});
|
|
@@ -13154,16 +13156,16 @@ function w1(e) {
|
|
|
13154
13156
|
scheduleOnDOMSelectionChange: n,
|
|
13155
13157
|
onDOMSelectionChange: r
|
|
13156
13158
|
} = e, i = !1, a = null, s = null, o = null, l = 0, u = !1, d = () => {
|
|
13157
|
-
var w =
|
|
13158
|
-
if (
|
|
13159
|
+
var w = hn.get(t);
|
|
13160
|
+
if (hn.delete(t), w) {
|
|
13159
13161
|
var {
|
|
13160
13162
|
selection: A
|
|
13161
13163
|
} = t, S = Bl(t, w);
|
|
13162
13164
|
S && (!A || !U.equals(S, A)) && Q.select(t, S);
|
|
13163
13165
|
}
|
|
13164
13166
|
}, h = () => {
|
|
13165
|
-
var w =
|
|
13166
|
-
if (
|
|
13167
|
+
var w = fn.get(t);
|
|
13168
|
+
if (fn.delete(t), !!w) {
|
|
13167
13169
|
if (w.at) {
|
|
13168
13170
|
var A = ke.isPoint(w.at) ? Is(t, w.at) : Bl(t, w.at);
|
|
13169
13171
|
if (!A)
|
|
@@ -13182,26 +13184,26 @@ function w1(e) {
|
|
|
13182
13184
|
var w = t.selection && y.rangeRef(t, t.selection, {
|
|
13183
13185
|
affinity: "forward"
|
|
13184
13186
|
});
|
|
13185
|
-
|
|
13186
|
-
for (var A = E(), S; S = ($ =
|
|
13187
|
-
var $, W, K =
|
|
13188
|
-
K !== void 0 && (
|
|
13187
|
+
tn.set(t, t.marks), D1("flush", fn.get(t), yt.get(t));
|
|
13188
|
+
for (var A = E(), S; S = ($ = yt.get(t)) === null || $ === void 0 ? void 0 : $[0]; ) {
|
|
13189
|
+
var $, W, K = Rt.get(t);
|
|
13190
|
+
K !== void 0 && (Rt.delete(t), t.marks = K), K && u === !1 && (u = null);
|
|
13189
13191
|
var Y = g1(S);
|
|
13190
|
-
(!t.selection || !U.equals(t.selection, Y)) && Q.select(t, Y), S.diff.text ? y.insertText(t, S.diff.text) : y.deleteFragment(t),
|
|
13192
|
+
(!t.selection || !U.equals(t.selection, Y)) && Q.select(t, Y), S.diff.text ? y.insertText(t, S.diff.text) : y.deleteFragment(t), yt.set(t, (W = yt.get(t)) === null || W === void 0 ? void 0 : W.filter((L) => {
|
|
13191
13193
|
var {
|
|
13192
13194
|
id: G
|
|
13193
13195
|
} = L;
|
|
13194
13196
|
return G !== S.id;
|
|
13195
|
-
})), f1(t, S) || (A = !1,
|
|
13197
|
+
})), f1(t, S) || (A = !1, fn.delete(t), tn.delete(t), i = "action", hn.delete(t), n.cancel(), r.cancel(), w == null || w.unref());
|
|
13196
13198
|
}
|
|
13197
13199
|
var re = w == null ? void 0 : w.unref();
|
|
13198
|
-
if (re && !
|
|
13200
|
+
if (re && !hn.get(t) && (!t.selection || !U.equals(re, t.selection)) && Q.select(t, re), B()) {
|
|
13199
13201
|
h();
|
|
13200
13202
|
return;
|
|
13201
13203
|
}
|
|
13202
13204
|
A && n(), n.flush(), r.flush(), d();
|
|
13203
|
-
var D =
|
|
13204
|
-
|
|
13205
|
+
var D = tn.get(t);
|
|
13206
|
+
tn.delete(t), D !== void 0 && (t.marks = D, t.onChange());
|
|
13205
13207
|
}, m = (w) => {
|
|
13206
13208
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
13207
13209
|
kn.set(t, !1), p();
|
|
@@ -13218,8 +13220,8 @@ function w1(e) {
|
|
|
13218
13220
|
S.style.removeProperty("display");
|
|
13219
13221
|
}
|
|
13220
13222
|
}, b = (w, A) => {
|
|
13221
|
-
var S, $ = (S =
|
|
13222
|
-
|
|
13223
|
+
var S, $ = (S = yt.get(t)) !== null && S !== void 0 ? S : [];
|
|
13224
|
+
yt.set(t, $);
|
|
13223
13225
|
var W = oe.leaf(t, w), K = $.findIndex((D) => O.equals(D.path, w));
|
|
13224
13226
|
if (K < 0) {
|
|
13225
13227
|
var Y = df(W.text, A);
|
|
@@ -13242,7 +13244,7 @@ function w1(e) {
|
|
|
13242
13244
|
var {
|
|
13243
13245
|
at: S
|
|
13244
13246
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13245
|
-
u = !1,
|
|
13247
|
+
u = !1, hn.delete(t), n.cancel(), r.cancel(), B() && p(), fn.set(t, {
|
|
13246
13248
|
at: S,
|
|
13247
13249
|
run: A
|
|
13248
13250
|
}), o = setTimeout(p);
|
|
@@ -13282,7 +13284,7 @@ function w1(e) {
|
|
|
13282
13284
|
text: "",
|
|
13283
13285
|
start: M.offset,
|
|
13284
13286
|
end: q.offset
|
|
13285
|
-
}, me =
|
|
13287
|
+
}, me = yt.get(t), J = me == null ? void 0 : me.find((ge) => O.equals(ge.path, X)), ye = J ? [J.diff, ae] : [ae], ve = cf(ne.text, ...ye);
|
|
13286
13288
|
if (ve.length === 0 && (D = !1), U.isExpanded($)) {
|
|
13287
13289
|
if (D && O.equals($.anchor.path, $.focus.path)) {
|
|
13288
13290
|
var Be = {
|
|
@@ -13406,7 +13408,7 @@ function w1(e) {
|
|
|
13406
13408
|
at: $
|
|
13407
13409
|
});
|
|
13408
13410
|
var we = W ?? "";
|
|
13409
|
-
if (
|
|
13411
|
+
if (Rt.get(t) && (we = we.replace("\uFEFF", "")), S === "insertText" && /.*\n.*\n$/.test(we) && (we = we.slice(0, -1)), we.includes(`
|
|
13410
13412
|
`))
|
|
13411
13413
|
return v(() => {
|
|
13412
13414
|
var ge = we.split(`
|
|
@@ -13441,11 +13443,11 @@ function w1(e) {
|
|
|
13441
13443
|
}
|
|
13442
13444
|
}
|
|
13443
13445
|
}
|
|
13444
|
-
}, B = () => !!
|
|
13446
|
+
}, B = () => !!fn.get(t), E = () => {
|
|
13445
13447
|
var w;
|
|
13446
|
-
return !!((w =
|
|
13448
|
+
return !!((w = yt.get(t)) !== null && w !== void 0 && w.length);
|
|
13447
13449
|
}, x = () => B() || E(), F = () => i, T = (w) => {
|
|
13448
|
-
|
|
13450
|
+
hn.set(t, w), s && (clearTimeout(s), s = null);
|
|
13449
13451
|
var {
|
|
13450
13452
|
selection: A
|
|
13451
13453
|
} = t;
|
|
@@ -13513,7 +13515,7 @@ function k1(e) {
|
|
|
13513
13515
|
for (var t = 1; t < arguments.length; t++) {
|
|
13514
13516
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13515
13517
|
t % 2 ? Tl(Object(n), !0).forEach(function(r) {
|
|
13516
|
-
|
|
13518
|
+
Ot(e, r, n[r]);
|
|
13517
13519
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tl(Object(n)).forEach(function(r) {
|
|
13518
13520
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13519
13521
|
});
|
|
@@ -13570,7 +13572,7 @@ function P1(e) {
|
|
|
13570
13572
|
for (var t = 1; t < arguments.length; t++) {
|
|
13571
13573
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13572
13574
|
t % 2 ? Sl(Object(n), !0).forEach(function(r) {
|
|
13573
|
-
|
|
13575
|
+
Ot(e, r, n[r]);
|
|
13574
13576
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sl(Object(n)).forEach(function(r) {
|
|
13575
13577
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13576
13578
|
});
|
|
@@ -13610,7 +13612,7 @@ var N1 = (e) => {
|
|
|
13610
13612
|
}), /* @__PURE__ */ ie.createElement(M1, {
|
|
13611
13613
|
ref: r
|
|
13612
13614
|
}, a);
|
|
13613
|
-
}, M1 = /* @__PURE__ */
|
|
13615
|
+
}, M1 = /* @__PURE__ */ Gt(/* @__PURE__ */ Ys((e, t) => /* @__PURE__ */ ie.createElement("span", {
|
|
13614
13616
|
"data-slate-string": !0,
|
|
13615
13617
|
ref: t
|
|
13616
13618
|
}, e.children))), Ua = (e) => {
|
|
@@ -13638,7 +13640,7 @@ function hf(e) {
|
|
|
13638
13640
|
for (var t = 1; t < arguments.length; t++) {
|
|
13639
13641
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13640
13642
|
t % 2 ? Ol(Object(n), !0).forEach(function(r) {
|
|
13641
|
-
|
|
13643
|
+
Ot(e, r, n[r]);
|
|
13642
13644
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ol(Object(n)).forEach(function(r) {
|
|
13643
13645
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13644
13646
|
});
|
|
@@ -13764,7 +13766,7 @@ function Ls(e) {
|
|
|
13764
13766
|
for (var t = 1; t < arguments.length; t++) {
|
|
13765
13767
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13766
13768
|
t % 2 ? Nl(Object(n), !0).forEach(function(r) {
|
|
13767
|
-
|
|
13769
|
+
Ot(e, r, n[r]);
|
|
13768
13770
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nl(Object(n)).forEach(function(r) {
|
|
13769
13771
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
13770
13772
|
});
|
|
@@ -13832,7 +13834,7 @@ var W1 = (e) => {
|
|
|
13832
13834
|
position: "relative"
|
|
13833
13835
|
}
|
|
13834
13836
|
}), n);
|
|
13835
|
-
}, pf = /* @__PURE__ */
|
|
13837
|
+
}, pf = /* @__PURE__ */ wt(() => []), V1 = () => Le(pf), K1 = /* @__PURE__ */ wt(!1), gf = (e) => {
|
|
13836
13838
|
for (var {
|
|
13837
13839
|
decorations: t,
|
|
13838
13840
|
node: n,
|
|
@@ -13868,7 +13870,7 @@ var W1 = (e) => {
|
|
|
13868
13870
|
})), Do.set(g, p), xo.set(g, n);
|
|
13869
13871
|
}
|
|
13870
13872
|
return d;
|
|
13871
|
-
}, vf = /* @__PURE__ */
|
|
13873
|
+
}, vf = /* @__PURE__ */ wt(!1), Z1 = () => Le(vf), bf = /* @__PURE__ */ wt(null), zn = () => {
|
|
13872
13874
|
var e = Le(bf);
|
|
13873
13875
|
if (!e)
|
|
13874
13876
|
throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");
|
|
@@ -13985,7 +13987,7 @@ var G1 = 3, Q1 = {
|
|
|
13985
13987
|
};
|
|
13986
13988
|
class yf extends mh {
|
|
13987
13989
|
constructor() {
|
|
13988
|
-
super(...arguments),
|
|
13990
|
+
super(...arguments), Ot(this, "context", null), Ot(this, "manager", null), Ot(this, "mutationObserver", null);
|
|
13989
13991
|
}
|
|
13990
13992
|
observe() {
|
|
13991
13993
|
var t, {
|
|
@@ -14021,7 +14023,7 @@ class yf extends mh {
|
|
|
14021
14023
|
return this.props.children;
|
|
14022
14024
|
}
|
|
14023
14025
|
}
|
|
14024
|
-
|
|
14026
|
+
Ot(yf, "contextType", yo);
|
|
14025
14027
|
var nD = pt ? yf : (e) => {
|
|
14026
14028
|
var {
|
|
14027
14029
|
children: t
|
|
@@ -14038,11 +14040,11 @@ function Ml(e, t) {
|
|
|
14038
14040
|
}
|
|
14039
14041
|
return n;
|
|
14040
14042
|
}
|
|
14041
|
-
function
|
|
14043
|
+
function Wt(e) {
|
|
14042
14044
|
for (var t = 1; t < arguments.length; t++) {
|
|
14043
14045
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
14044
14046
|
t % 2 ? Ml(Object(n), !0).forEach(function(r) {
|
|
14045
|
-
|
|
14047
|
+
Ot(e, r, n[r]);
|
|
14046
14048
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ml(Object(n)).forEach(function(r) {
|
|
14047
14049
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
14048
14050
|
});
|
|
@@ -14050,7 +14052,7 @@ function qt(e) {
|
|
|
14050
14052
|
return e;
|
|
14051
14053
|
}
|
|
14052
14054
|
var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD = (e) => {
|
|
14053
|
-
var t = Me((k) => /* @__PURE__ */ ie.createElement(oD,
|
|
14055
|
+
var t = Me((k) => /* @__PURE__ */ ie.createElement(oD, Wt({}, k)), []), {
|
|
14054
14056
|
autoFocus: n,
|
|
14055
14057
|
decorate: r = uD,
|
|
14056
14058
|
onDOMBeforeInput: i,
|
|
@@ -14068,7 +14070,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14068
14070
|
receivedUserInput: T
|
|
14069
14071
|
} = Y1(), [, I] = dr((k) => k + 1, 0);
|
|
14070
14072
|
af.set(f, I), Ns.set(f, s);
|
|
14071
|
-
var P =
|
|
14073
|
+
var P = Vt(() => ({
|
|
14072
14074
|
isDraggingInternally: !1,
|
|
14073
14075
|
isUpdatingSelection: !1,
|
|
14074
14076
|
latestElement: null,
|
|
@@ -14077,13 +14079,13 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14077
14079
|
de(() => {
|
|
14078
14080
|
C.current && n && C.current.focus();
|
|
14079
14081
|
}, [n]);
|
|
14080
|
-
var N = _e(), z =
|
|
14082
|
+
var N = _e(), z = Vt(() => vy(() => {
|
|
14081
14083
|
var k = N.current;
|
|
14082
14084
|
if ((pt || !te.isComposing(f)) && (!P.isUpdatingSelection || k != null && k.isFlushing()) && !P.isDraggingInternally) {
|
|
14083
14085
|
var R = te.findDocumentOrShadowRoot(f), {
|
|
14084
14086
|
activeElement: M
|
|
14085
14087
|
} = R, q = te.toDOMNode(f, f), ne = R.getSelection();
|
|
14086
|
-
if (M === q ? (P.latestElement = M,
|
|
14088
|
+
if (M === q ? (P.latestElement = M, gn.set(f, !0)) : gn.delete(f), !ne)
|
|
14087
14089
|
return Q.deselect(f);
|
|
14088
14090
|
var {
|
|
14089
14091
|
anchorNode: X,
|
|
@@ -14098,7 +14100,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14098
14100
|
}
|
|
14099
14101
|
s && (!me || !J) && Q.deselect(f);
|
|
14100
14102
|
}
|
|
14101
|
-
}, 100), [f, s, P]), w =
|
|
14103
|
+
}, 100), [f, s, P]), w = Vt(() => dy(z, 0), [z]);
|
|
14102
14104
|
N.current = A1({
|
|
14103
14105
|
node: C,
|
|
14104
14106
|
onDOMSelectionChange: z,
|
|
@@ -14314,7 +14316,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14314
14316
|
jr.delete(f), H && (!f.selection || !U.equals(f.selection, H)) && Q.select(f, H);
|
|
14315
14317
|
}
|
|
14316
14318
|
}, [f, z, F, i, s, w]), S = Me((k) => {
|
|
14317
|
-
k == null ? (z.cancel(), w.cancel(), Ai.delete(f), Tn.delete(f), C.current &&
|
|
14319
|
+
k == null ? (z.cancel(), w.cancel(), Ai.delete(f), Tn.delete(f), C.current && cn && C.current.removeEventListener("beforeinput", A)) : cn && k.addEventListener("beforeinput", A), C.current = k;
|
|
14318
14320
|
}, [z, w, f, A]);
|
|
14319
14321
|
Vr(() => {
|
|
14320
14322
|
var k = te.getWindow(f);
|
|
@@ -14351,7 +14353,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14351
14353
|
})) {
|
|
14352
14354
|
P.hasMarkPlaceholder = !0;
|
|
14353
14355
|
var _ = Object.fromEntries(Object.keys(G).map((k) => [k, null]));
|
|
14354
|
-
$.push(
|
|
14356
|
+
$.push(Wt(Wt(Wt({
|
|
14355
14357
|
[sf]: !0
|
|
14356
14358
|
}, _), re), {}, {
|
|
14357
14359
|
anchor: D,
|
|
@@ -14371,11 +14373,11 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14371
14373
|
if (re && !pe.equals(M, re, {
|
|
14372
14374
|
loose: !0
|
|
14373
14375
|
})) {
|
|
14374
|
-
|
|
14376
|
+
Rt.set(f, re);
|
|
14375
14377
|
return;
|
|
14376
14378
|
}
|
|
14377
14379
|
}
|
|
14378
|
-
|
|
14380
|
+
Rt.delete(f);
|
|
14379
14381
|
});
|
|
14380
14382
|
}), /* @__PURE__ */ ie.createElement(vf.Provider, {
|
|
14381
14383
|
value: s
|
|
@@ -14384,7 +14386,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14384
14386
|
}, /* @__PURE__ */ ie.createElement(nD, {
|
|
14385
14387
|
node: C,
|
|
14386
14388
|
receivedUserInput: T
|
|
14387
|
-
}, /* @__PURE__ */ ie.createElement(p,
|
|
14389
|
+
}, /* @__PURE__ */ ie.createElement(p, Wt(Wt({
|
|
14388
14390
|
role: s ? void 0 : "textbox",
|
|
14389
14391
|
"aria-multiline": s ? void 0 : !0
|
|
14390
14392
|
}, g), {}, {
|
|
@@ -14393,9 +14395,9 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14393
14395
|
// For SSR situations HAS_BEFORE_INPUT_SUPPORT is false and results in prop
|
|
14394
14396
|
// mismatch warning app moves to browser. Pass-through consumer props when
|
|
14395
14397
|
// not CAN_USE_DOM (SSR) and default to falsy value
|
|
14396
|
-
spellCheck:
|
|
14397
|
-
autoCorrect:
|
|
14398
|
-
autoCapitalize:
|
|
14398
|
+
spellCheck: cn || !Bi ? g.spellCheck : !1,
|
|
14399
|
+
autoCorrect: cn || !Bi ? g.autoCorrect : "false",
|
|
14400
|
+
autoCapitalize: cn || !Bi ? g.autoCapitalize : "false",
|
|
14399
14401
|
"data-slate-editor": !0,
|
|
14400
14402
|
"data-slate-node": "value",
|
|
14401
14403
|
// explicitly set this
|
|
@@ -14406,7 +14408,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14406
14408
|
zindex: -1,
|
|
14407
14409
|
suppressContentEditableWarning: !0,
|
|
14408
14410
|
ref: S,
|
|
14409
|
-
style:
|
|
14411
|
+
style: Wt(Wt({}, m ? {} : Wt({
|
|
14410
14412
|
// Allow positioning relative to the editable element.
|
|
14411
14413
|
position: "relative",
|
|
14412
14414
|
// Preserve adjacent whitespace and new lines.
|
|
@@ -14417,7 +14419,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14417
14419
|
minHeight: E
|
|
14418
14420
|
} : {})), h),
|
|
14419
14421
|
onBeforeInput: Me((k) => {
|
|
14420
|
-
if (!
|
|
14422
|
+
if (!cn && !s && !ht(k, g.onBeforeInput) && te.hasSelectableTarget(f, k.target) && (k.preventDefault(), !te.isComposing(f))) {
|
|
14421
14423
|
var R = k.data;
|
|
14422
14424
|
y.insertText(f, R);
|
|
14423
14425
|
}
|
|
@@ -14440,8 +14442,8 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14440
14442
|
var {
|
|
14441
14443
|
relatedTarget: M
|
|
14442
14444
|
} = k, q = te.toDOMNode(f, f);
|
|
14443
|
-
if (M !== q && !(
|
|
14444
|
-
if (M != null &&
|
|
14445
|
+
if (M !== q && !(jt(M) && M.hasAttribute("data-slate-spacer"))) {
|
|
14446
|
+
if (M != null && yn(M) && te.hasDOMNode(f, M)) {
|
|
14445
14447
|
var ne = te.toSlateNode(f, M);
|
|
14446
14448
|
if (he.isElement(ne) && !f.isVoid(ne))
|
|
14447
14449
|
return;
|
|
@@ -14450,13 +14452,13 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14450
14452
|
var X = R.getSelection();
|
|
14451
14453
|
X == null || X.removeAllRanges();
|
|
14452
14454
|
}
|
|
14453
|
-
|
|
14455
|
+
gn.delete(f);
|
|
14454
14456
|
}
|
|
14455
14457
|
}
|
|
14456
14458
|
}
|
|
14457
14459
|
}, [s, P.isUpdatingSelection, P.latestElement, f, g.onBlur]),
|
|
14458
14460
|
onClick: Me((k) => {
|
|
14459
|
-
if (te.hasTarget(f, k.target) && !ht(k, g.onClick) &&
|
|
14461
|
+
if (te.hasTarget(f, k.target) && !ht(k, g.onClick) && yn(k.target)) {
|
|
14460
14462
|
var R = te.toSlateNode(f, k.target), M = te.findPath(f, R);
|
|
14461
14463
|
if (!y.hasPath(f, M) || oe.get(f, M) !== R)
|
|
14462
14464
|
return;
|
|
@@ -14494,10 +14496,10 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14494
14496
|
}), (R = N.current) === null || R === void 0 || R.handleCompositionEnd(k), ht(k, g.onCompositionEnd) || pt)
|
|
14495
14497
|
return;
|
|
14496
14498
|
if (!Ar && !Xy && !Yy && !t1 && !e1 && k.data) {
|
|
14497
|
-
var M =
|
|
14498
|
-
|
|
14499
|
-
var q =
|
|
14500
|
-
|
|
14499
|
+
var M = Rt.get(f);
|
|
14500
|
+
Rt.delete(f), M !== void 0 && (tn.set(f, f.marks), f.marks = M), y.insertText(f, k.data);
|
|
14501
|
+
var q = tn.get(f);
|
|
14502
|
+
tn.delete(f), q !== void 0 && (f.marks = q);
|
|
14501
14503
|
}
|
|
14502
14504
|
}
|
|
14503
14505
|
}, [g.onCompositionEnd, f]),
|
|
@@ -14579,7 +14581,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14579
14581
|
R.focus();
|
|
14580
14582
|
return;
|
|
14581
14583
|
}
|
|
14582
|
-
|
|
14584
|
+
gn.set(f, !0);
|
|
14583
14585
|
}
|
|
14584
14586
|
}, [s, P, f, g.onFocus]),
|
|
14585
14587
|
onKeyDown: Me((k) => {
|
|
@@ -14668,7 +14670,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14668
14670
|
});
|
|
14669
14671
|
return;
|
|
14670
14672
|
}
|
|
14671
|
-
if (
|
|
14673
|
+
if (cn) {
|
|
14672
14674
|
if ((nf || Ar) && q && (Qe.isDeleteBackward(M) || Qe.isDeleteForward(M)) && U.isCollapsed(q)) {
|
|
14673
14675
|
var J = oe.parent(f, q.anchor.path);
|
|
14674
14676
|
if (he.isElement(J) && y.isVoid(f, J) && (y.isInline(f, J) || y.isBlock(f, J))) {
|
|
@@ -14739,7 +14741,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14739
14741
|
}
|
|
14740
14742
|
}, [s, f, g.onKeyDown]),
|
|
14741
14743
|
onPaste: Me((k) => {
|
|
14742
|
-
!s && te.hasEditableTarget(f, k.target) && !ht(k, g.onPaste) && (!
|
|
14744
|
+
!s && te.hasEditableTarget(f, k.target) && !ht(k, g.onPaste) && (!cn || i1(k.nativeEvent) || Ar) && (k.preventDefault(), te.insertData(f, k.clipboardData));
|
|
14743
14745
|
}, [s, f, g.onPaste])
|
|
14744
14746
|
}), /* @__PURE__ */ ie.createElement(aD, {
|
|
14745
14747
|
decorations: $,
|
|
@@ -14757,7 +14759,7 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14757
14759
|
return (
|
|
14758
14760
|
// COMPAT: Artificially add a line-break to the end on the placeholder element
|
|
14759
14761
|
// to prevent Android IMEs to pick up its content in autocorrect and to auto-capitalize the first letter
|
|
14760
|
-
/* @__PURE__ */ ie.createElement("span",
|
|
14762
|
+
/* @__PURE__ */ ie.createElement("span", Wt({}, t), n, pt && /* @__PURE__ */ ie.createElement("br", null))
|
|
14761
14763
|
);
|
|
14762
14764
|
}, uD = () => [], lD = (e, t) => {
|
|
14763
14765
|
if (t.getBoundingClientRect && (!e.selection || e.selection && U.isCollapsed(e.selection))) {
|
|
@@ -14771,18 +14773,18 @@ var aD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, gf(e)), sD =
|
|
|
14771
14773
|
return !1;
|
|
14772
14774
|
var n = t(e);
|
|
14773
14775
|
return n ?? (e.isDefaultPrevented() || e.isPropagationStopped());
|
|
14774
|
-
}, Rl = (e) =>
|
|
14776
|
+
}, Rl = (e) => yn(e.target) && (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement), cD = (e, t) => {
|
|
14775
14777
|
if (!t)
|
|
14776
14778
|
return !1;
|
|
14777
14779
|
var n = t(e);
|
|
14778
14780
|
return n ?? e.defaultPrevented;
|
|
14779
|
-
}, dD = /* @__PURE__ */
|
|
14781
|
+
}, dD = /* @__PURE__ */ wt(!1), fD = /* @__PURE__ */ wt({});
|
|
14780
14782
|
function hD(e) {
|
|
14781
14783
|
var t = _e([]).current, n = _e({
|
|
14782
14784
|
editor: e
|
|
14783
14785
|
}).current, r = Me((a) => {
|
|
14784
14786
|
n.editor = a, t.forEach((s) => s(a));
|
|
14785
|
-
}, [t, n]), i =
|
|
14787
|
+
}, [t, n]), i = Vt(() => ({
|
|
14786
14788
|
getSlate: () => n.editor,
|
|
14787
14789
|
addEventListener: (a) => (t.push(a), () => {
|
|
14788
14790
|
t.splice(t.indexOf(a), 1);
|
|
@@ -14882,7 +14884,7 @@ function zl(e) {
|
|
|
14882
14884
|
for (var t = 1; t < arguments.length; t++) {
|
|
14883
14885
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
14884
14886
|
t % 2 ? Ll(Object(n), !0).forEach(function(r) {
|
|
14885
|
-
|
|
14887
|
+
Ot(e, r, n[r]);
|
|
14886
14888
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ll(Object(n)).forEach(function(r) {
|
|
14887
14889
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
14888
14890
|
});
|
|
@@ -14899,10 +14901,10 @@ var vD = function(t) {
|
|
|
14899
14901
|
} = r;
|
|
14900
14902
|
return ca.set(r, /* @__PURE__ */ new WeakMap()), r.addMark = (u, d) => {
|
|
14901
14903
|
var h, p;
|
|
14902
|
-
(h = wo.get(r)) === null || h === void 0 || h(), !
|
|
14904
|
+
(h = wo.get(r)) === null || h === void 0 || h(), !Rt.get(r) && (p = yt.get(r)) !== null && p !== void 0 && p.length && Rt.set(r, null), tn.delete(r), o(u, d);
|
|
14903
14905
|
}, r.removeMark = (u) => {
|
|
14904
14906
|
var d;
|
|
14905
|
-
!
|
|
14907
|
+
!Rt.get(r) && (d = yt.get(r)) !== null && d !== void 0 && d.length && Rt.set(r, null), tn.delete(r), l(u);
|
|
14906
14908
|
}, r.deleteBackward = (u) => {
|
|
14907
14909
|
if (u !== "line")
|
|
14908
14910
|
return s(u);
|
|
@@ -14919,17 +14921,17 @@ var vD = function(t) {
|
|
|
14919
14921
|
}
|
|
14920
14922
|
}
|
|
14921
14923
|
}, r.apply = (u) => {
|
|
14922
|
-
var d = [], h = [], p =
|
|
14924
|
+
var d = [], h = [], p = yt.get(r);
|
|
14923
14925
|
if (p != null && p.length) {
|
|
14924
14926
|
var m = p.map((S) => v1(S, u)).filter(Boolean);
|
|
14925
|
-
|
|
14927
|
+
yt.set(r, m);
|
|
14926
14928
|
}
|
|
14927
|
-
var g =
|
|
14928
|
-
g &&
|
|
14929
|
-
var f =
|
|
14929
|
+
var g = hn.get(r);
|
|
14930
|
+
g && hn.set(r, Al(r, g, u));
|
|
14931
|
+
var f = fn.get(r);
|
|
14930
14932
|
if (f != null && f.at) {
|
|
14931
14933
|
var b = ke.isPoint(f == null ? void 0 : f.at) ? $s(r, f.at, u) : Al(r, f.at, u);
|
|
14932
|
-
|
|
14934
|
+
fn.set(r, b ? zl(zl({}, f), {}, {
|
|
14933
14935
|
at: b
|
|
14934
14936
|
}) : null);
|
|
14935
14937
|
}
|
|
@@ -15068,8 +15070,8 @@ const bD = {
|
|
|
15068
15070
|
reportError: (e) => {
|
|
15069
15071
|
console.error(e);
|
|
15070
15072
|
}
|
|
15071
|
-
},
|
|
15072
|
-
var V = /* @__PURE__ */ ((e) => (e.blockquote = "block_quote", e.bold = "bold", e.code = "code", e.codeblock = "code_block", e.heading = "heading", e.hr = "thematic_break", e.image = "image", e.italic = "italic", e.li = "list_item", e.link = "link", e.mention = "mention", e.ol = "ol_list", e.paragraph = "paragraph", e.ul = "ul_list", e.strikethrough = "strikeThrough", e.span = "span", e))(V || {}),
|
|
15073
|
+
}, ln = wt(bD);
|
|
15074
|
+
var V = /* @__PURE__ */ ((e) => (e.blockquote = "block_quote", e.bold = "bold", e.code = "code", e.codeblock = "code_block", e.heading = "heading", e.hr = "thematic_break", e.image = "image", e.italic = "italic", e.li = "list_item", e.link = "link", e.mention = "mention", e.ol = "ol_list", e.paragraph = "paragraph", e.ul = "ul_list", e.strikethrough = "strikeThrough", e.span = "span", e))(V || {}), nn = /* @__PURE__ */ ((e) => (e.delete = "delete_mark", e.emphasis = "emphasis_mark", e.code = "inline_code_mark", e.strong = "strong_mark", e))(nn || {});
|
|
15073
15075
|
const yD = ({
|
|
15074
15076
|
attributes: e,
|
|
15075
15077
|
children: t,
|
|
@@ -15112,7 +15114,7 @@ const yD = ({
|
|
|
15112
15114
|
anchor: { offset: 0, path: [0, 0] },
|
|
15113
15115
|
focus: { offset: 0, path: [0, 0] }
|
|
15114
15116
|
}, ql = { "mention-popover": 35, default: -52 }, Ha = 16, xf = (e, t, n) => {
|
|
15115
|
-
const r = _e(null), { showLinkEditor: i, mentionPopover: a } = Le(
|
|
15117
|
+
const r = _e(null), { showLinkEditor: i, mentionPopover: a } = Le(ln), s = t === "link-editor" ? i : a.show, o = [s];
|
|
15116
15118
|
return e && t === "link-editor" && o.push(e.selection), de(() => {
|
|
15117
15119
|
var m, g;
|
|
15118
15120
|
if (!(r != null && r.current) || !s)
|
|
@@ -15189,10 +15191,10 @@ const er = {
|
|
|
15189
15191
|
5: "heading_five",
|
|
15190
15192
|
6: "heading_six"
|
|
15191
15193
|
},
|
|
15192
|
-
[
|
|
15193
|
-
[
|
|
15194
|
-
[
|
|
15195
|
-
[
|
|
15194
|
+
[nn.emphasis]: V.italic,
|
|
15195
|
+
[nn.strong]: V.bold,
|
|
15196
|
+
[nn.delete]: V.strikethrough,
|
|
15197
|
+
[nn.code]: V.code,
|
|
15196
15198
|
[V.hr]: V.hr,
|
|
15197
15199
|
[V.image]: V.image
|
|
15198
15200
|
};
|
|
@@ -15310,7 +15312,7 @@ function Gl(e) {
|
|
|
15310
15312
|
function Ql(e) {
|
|
15311
15313
|
return e && typeof e == "number" ? e : 1;
|
|
15312
15314
|
}
|
|
15313
|
-
class
|
|
15315
|
+
class Ct extends Error {
|
|
15314
15316
|
/**
|
|
15315
15317
|
* Create a message for `reason`.
|
|
15316
15318
|
*
|
|
@@ -15384,20 +15386,20 @@ class wt extends Error {
|
|
|
15384
15386
|
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = o ? o.line : void 0, this.name = Or(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = s && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
15385
15387
|
}
|
|
15386
15388
|
}
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
|
|
15390
|
-
|
|
15391
|
-
|
|
15392
|
-
|
|
15393
|
-
|
|
15394
|
-
|
|
15395
|
-
|
|
15396
|
-
|
|
15397
|
-
|
|
15398
|
-
|
|
15399
|
-
|
|
15400
|
-
const
|
|
15389
|
+
Ct.prototype.file = "";
|
|
15390
|
+
Ct.prototype.name = "";
|
|
15391
|
+
Ct.prototype.reason = "";
|
|
15392
|
+
Ct.prototype.message = "";
|
|
15393
|
+
Ct.prototype.stack = "";
|
|
15394
|
+
Ct.prototype.column = void 0;
|
|
15395
|
+
Ct.prototype.line = void 0;
|
|
15396
|
+
Ct.prototype.ancestors = void 0;
|
|
15397
|
+
Ct.prototype.cause = void 0;
|
|
15398
|
+
Ct.prototype.fatal = void 0;
|
|
15399
|
+
Ct.prototype.place = void 0;
|
|
15400
|
+
Ct.prototype.ruleId = void 0;
|
|
15401
|
+
Ct.prototype.source = void 0;
|
|
15402
|
+
const Ut = { basename: _D, dirname: kD, extname: BD, join: AD, sep: "/" };
|
|
15401
15403
|
function _D(e, t) {
|
|
15402
15404
|
if (t !== void 0 && typeof t != "string")
|
|
15403
15405
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -15607,7 +15609,7 @@ class ND {
|
|
|
15607
15609
|
* Basename.
|
|
15608
15610
|
*/
|
|
15609
15611
|
get basename() {
|
|
15610
|
-
return typeof this.path == "string" ?
|
|
15612
|
+
return typeof this.path == "string" ? Ut.basename(this.path) : void 0;
|
|
15611
15613
|
}
|
|
15612
15614
|
/**
|
|
15613
15615
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -15622,7 +15624,7 @@ class ND {
|
|
|
15622
15624
|
* Nothing.
|
|
15623
15625
|
*/
|
|
15624
15626
|
set basename(t) {
|
|
15625
|
-
Ya(t, "basename"), Za(t, "basename"), this.path =
|
|
15627
|
+
Ya(t, "basename"), Za(t, "basename"), this.path = Ut.join(this.dirname || "", t);
|
|
15626
15628
|
}
|
|
15627
15629
|
/**
|
|
15628
15630
|
* Get the parent path (example: `'~'`).
|
|
@@ -15631,7 +15633,7 @@ class ND {
|
|
|
15631
15633
|
* Dirname.
|
|
15632
15634
|
*/
|
|
15633
15635
|
get dirname() {
|
|
15634
|
-
return typeof this.path == "string" ?
|
|
15636
|
+
return typeof this.path == "string" ? Ut.dirname(this.path) : void 0;
|
|
15635
15637
|
}
|
|
15636
15638
|
/**
|
|
15637
15639
|
* Set the parent path (example: `'~'`).
|
|
@@ -15644,7 +15646,7 @@ class ND {
|
|
|
15644
15646
|
* Nothing.
|
|
15645
15647
|
*/
|
|
15646
15648
|
set dirname(t) {
|
|
15647
|
-
Jl(this.basename, "dirname"), this.path =
|
|
15649
|
+
Jl(this.basename, "dirname"), this.path = Ut.join(t || "", this.basename);
|
|
15648
15650
|
}
|
|
15649
15651
|
/**
|
|
15650
15652
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -15653,7 +15655,7 @@ class ND {
|
|
|
15653
15655
|
* Extname.
|
|
15654
15656
|
*/
|
|
15655
15657
|
get extname() {
|
|
15656
|
-
return typeof this.path == "string" ?
|
|
15658
|
+
return typeof this.path == "string" ? Ut.extname(this.path) : void 0;
|
|
15657
15659
|
}
|
|
15658
15660
|
/**
|
|
15659
15661
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -15674,7 +15676,7 @@ class ND {
|
|
|
15674
15676
|
if (t.includes(".", 1))
|
|
15675
15677
|
throw new Error("`extname` cannot contain multiple dots");
|
|
15676
15678
|
}
|
|
15677
|
-
this.path =
|
|
15679
|
+
this.path = Ut.join(this.dirname, this.stem + (t || ""));
|
|
15678
15680
|
}
|
|
15679
15681
|
/**
|
|
15680
15682
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -15707,7 +15709,7 @@ class ND {
|
|
|
15707
15709
|
* Stem.
|
|
15708
15710
|
*/
|
|
15709
15711
|
get stem() {
|
|
15710
|
-
return typeof this.path == "string" ?
|
|
15712
|
+
return typeof this.path == "string" ? Ut.basename(this.path, this.extname) : void 0;
|
|
15711
15713
|
}
|
|
15712
15714
|
/**
|
|
15713
15715
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -15722,7 +15724,7 @@ class ND {
|
|
|
15722
15724
|
* Nothing.
|
|
15723
15725
|
*/
|
|
15724
15726
|
set stem(t) {
|
|
15725
|
-
Ya(t, "stem"), Za(t, "stem"), this.path =
|
|
15727
|
+
Ya(t, "stem"), Za(t, "stem"), this.path = Ut.join(this.dirname || "", t + (this.extname || ""));
|
|
15726
15728
|
}
|
|
15727
15729
|
// Normal prototypal methods.
|
|
15728
15730
|
/**
|
|
@@ -15910,7 +15912,7 @@ class ND {
|
|
|
15910
15912
|
* Message.
|
|
15911
15913
|
*/
|
|
15912
15914
|
message(t, n, r) {
|
|
15913
|
-
const i = new
|
|
15915
|
+
const i = new Ct(
|
|
15914
15916
|
// @ts-expect-error: the overloads are fine.
|
|
15915
15917
|
t,
|
|
15916
15918
|
n,
|
|
@@ -15936,9 +15938,9 @@ class ND {
|
|
|
15936
15938
|
}
|
|
15937
15939
|
}
|
|
15938
15940
|
function Za(e, t) {
|
|
15939
|
-
if (e && e.includes(
|
|
15941
|
+
if (e && e.includes(Ut.sep))
|
|
15940
15942
|
throw new Error(
|
|
15941
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
15943
|
+
"`" + t + "` cannot be a path: did not expect `" + Ut.sep + "`"
|
|
15942
15944
|
);
|
|
15943
15945
|
}
|
|
15944
15946
|
function Ya(e, t) {
|
|
@@ -16533,7 +16535,7 @@ function ko(e) {
|
|
|
16533
16535
|
const n = nc.textContent;
|
|
16534
16536
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
16535
16537
|
}
|
|
16536
|
-
function
|
|
16538
|
+
function on(e, t, n, r) {
|
|
16537
16539
|
const i = e.length;
|
|
16538
16540
|
let a = 0, s;
|
|
16539
16541
|
if (t < 0 ? t = -t > i ? 0 : i + t : t = t > i ? i : t, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -16542,8 +16544,8 @@ function sn(e, t, n, r) {
|
|
|
16542
16544
|
for (n && e.splice(t, n); a < r.length; )
|
|
16543
16545
|
s = r.slice(a, a + 1e4), s.unshift(t, 0), e.splice(...s), a += 1e4, t += 1e4;
|
|
16544
16546
|
}
|
|
16545
|
-
function
|
|
16546
|
-
return e.length > 0 ? (
|
|
16547
|
+
function St(e, t) {
|
|
16548
|
+
return e.length > 0 ? (on(e, e.length, 0, t), e) : t;
|
|
16547
16549
|
}
|
|
16548
16550
|
const rc = {}.hasOwnProperty;
|
|
16549
16551
|
function VD(e) {
|
|
@@ -16575,7 +16577,7 @@ function ZD(e, t) {
|
|
|
16575
16577
|
const r = [];
|
|
16576
16578
|
for (; ++n < t.length; )
|
|
16577
16579
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
16578
|
-
|
|
16580
|
+
on(e, 0, 0, r);
|
|
16579
16581
|
}
|
|
16580
16582
|
function Ef(e, t) {
|
|
16581
16583
|
const n = Number.parseInt(e, t);
|
|
@@ -16593,7 +16595,7 @@ function Ef(e, t) {
|
|
|
16593
16595
|
function rr(e) {
|
|
16594
16596
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
16595
16597
|
}
|
|
16596
|
-
const
|
|
16598
|
+
const Ht = wn(/[A-Za-z]/), It = wn(/[\dA-Za-z]/), YD = wn(/[#-'*+\--9=?A-Z^-~]/);
|
|
16597
16599
|
function Hs(e) {
|
|
16598
16600
|
return (
|
|
16599
16601
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -16605,7 +16607,7 @@ const Vs = wn(/\d/), GD = wn(/[\dA-Fa-f]/), QD = wn(/[!-/:-@[-`{-~]/);
|
|
|
16605
16607
|
function De(e) {
|
|
16606
16608
|
return e !== null && e < -2;
|
|
16607
16609
|
}
|
|
16608
|
-
function
|
|
16610
|
+
function xt(e) {
|
|
16609
16611
|
return e !== null && (e < 0 || e === 32);
|
|
16610
16612
|
}
|
|
16611
16613
|
function Re(e) {
|
|
@@ -16699,7 +16701,7 @@ function rx(e) {
|
|
|
16699
16701
|
let T = E;
|
|
16700
16702
|
for (; T < t.events.length; )
|
|
16701
16703
|
t.events[T][1].end = Object.assign({}, F), T++;
|
|
16702
|
-
return
|
|
16704
|
+
return on(
|
|
16703
16705
|
t.events,
|
|
16704
16706
|
x + 1,
|
|
16705
16707
|
0,
|
|
@@ -16780,7 +16782,7 @@ function rx(e) {
|
|
|
16780
16782
|
}
|
|
16781
16783
|
for (v(r), F = T; F < t.events.length; )
|
|
16782
16784
|
t.events[F][1].end = Object.assign({}, N), F++;
|
|
16783
|
-
|
|
16785
|
+
on(
|
|
16784
16786
|
t.events,
|
|
16785
16787
|
I + 1,
|
|
16786
16788
|
0,
|
|
@@ -16809,7 +16811,7 @@ function ix(e, t, n) {
|
|
|
16809
16811
|
);
|
|
16810
16812
|
}
|
|
16811
16813
|
function ac(e) {
|
|
16812
|
-
if (e === null ||
|
|
16814
|
+
if (e === null || xt(e) || XD(e))
|
|
16813
16815
|
return 1;
|
|
16814
16816
|
if (JD(e))
|
|
16815
16817
|
return 2;
|
|
@@ -16855,7 +16857,7 @@ function ax(e, t) {
|
|
|
16855
16857
|
type: l > 1 ? "strong" : "emphasis",
|
|
16856
16858
|
start: Object.assign({}, s.start),
|
|
16857
16859
|
end: Object.assign({}, o.end)
|
|
16858
|
-
}, e[r][1].end = Object.assign({}, s.start), e[n][1].start = Object.assign({}, o.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u =
|
|
16860
|
+
}, e[r][1].end = Object.assign({}, s.start), e[n][1].start = Object.assign({}, o.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = St(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = St(u, [["enter", i, t], ["enter", s, t], ["exit", s, t], ["enter", a, t]]), u = St(u, Bo(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = St(u, [["exit", a, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (d = 2, u = St(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : d = 0, on(e, r - 1, n - r + 3, u), n = r + u.length - d - 2;
|
|
16859
16861
|
break;
|
|
16860
16862
|
}
|
|
16861
16863
|
}
|
|
@@ -16891,13 +16893,13 @@ function ux(e, t, n) {
|
|
|
16891
16893
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), a;
|
|
16892
16894
|
}
|
|
16893
16895
|
function a(m) {
|
|
16894
|
-
return
|
|
16896
|
+
return Ht(m) ? (e.consume(m), s) : m === 64 ? n(m) : u(m);
|
|
16895
16897
|
}
|
|
16896
16898
|
function s(m) {
|
|
16897
|
-
return m === 43 || m === 45 || m === 46 ||
|
|
16899
|
+
return m === 43 || m === 45 || m === 46 || It(m) ? (r = 1, o(m)) : u(m);
|
|
16898
16900
|
}
|
|
16899
16901
|
function o(m) {
|
|
16900
|
-
return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 ||
|
|
16902
|
+
return m === 58 ? (e.consume(m), r = 0, l) : (m === 43 || m === 45 || m === 46 || It(m)) && r++ < 32 ? (e.consume(m), o) : (r = 0, u(m));
|
|
16901
16903
|
}
|
|
16902
16904
|
function l(m) {
|
|
16903
16905
|
return m === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : m === null || m === 32 || m === 60 || Hs(m) ? n(m) : (e.consume(m), l);
|
|
@@ -16906,13 +16908,13 @@ function ux(e, t, n) {
|
|
|
16906
16908
|
return m === 64 ? (e.consume(m), d) : YD(m) ? (e.consume(m), u) : n(m);
|
|
16907
16909
|
}
|
|
16908
16910
|
function d(m) {
|
|
16909
|
-
return
|
|
16911
|
+
return It(m) ? h(m) : n(m);
|
|
16910
16912
|
}
|
|
16911
16913
|
function h(m) {
|
|
16912
16914
|
return m === 46 ? (e.consume(m), r = 0, d) : m === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(m), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(m);
|
|
16913
16915
|
}
|
|
16914
16916
|
function p(m) {
|
|
16915
|
-
if ((m === 45 ||
|
|
16917
|
+
if ((m === 45 || It(m)) && r++ < 63) {
|
|
16916
16918
|
const g = m === 45 ? p : h;
|
|
16917
16919
|
return e.consume(m), g;
|
|
16918
16920
|
}
|
|
@@ -16994,7 +16996,7 @@ function mx(e, t, n) {
|
|
|
16994
16996
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), l;
|
|
16995
16997
|
}
|
|
16996
16998
|
function l(h) {
|
|
16997
|
-
return h === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(h), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, s =
|
|
16999
|
+
return h === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(h), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, s = It, d(h));
|
|
16998
17000
|
}
|
|
16999
17001
|
function u(h) {
|
|
17000
17002
|
return h === 88 || h === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(h), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, s = GD, d) : (e.enter("characterReferenceValue"), a = 7, s = Vs, d(h));
|
|
@@ -17002,7 +17004,7 @@ function mx(e, t, n) {
|
|
|
17002
17004
|
function d(h) {
|
|
17003
17005
|
if (h === 59 && i) {
|
|
17004
17006
|
const p = e.exit("characterReferenceValue");
|
|
17005
|
-
return s ===
|
|
17007
|
+
return s === It && !ko(r.sliceSerialize(p)) ? n(h) : (e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
17006
17008
|
}
|
|
17007
17009
|
return s(h) && i++ < a ? (e.consume(h), d) : n(h);
|
|
17008
17010
|
}
|
|
@@ -17365,7 +17367,7 @@ function Af(e) {
|
|
|
17365
17367
|
i && (r[1].end = Object.assign({}, d.get(i)[1].start), o = d.slice(i, n), o.unshift(r), d.splice(i, n - i + 1, o));
|
|
17366
17368
|
}
|
|
17367
17369
|
}
|
|
17368
|
-
return
|
|
17370
|
+
return on(e, 0, Number.POSITIVE_INFINITY, d.slice(0)), !u;
|
|
17369
17371
|
}
|
|
17370
17372
|
function _x(e, t) {
|
|
17371
17373
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
@@ -17454,7 +17456,7 @@ function Ff(e, t, n, r, i, a, s, o, l) {
|
|
|
17454
17456
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), m) : m(v);
|
|
17455
17457
|
}
|
|
17456
17458
|
function f(v) {
|
|
17457
|
-
return !d && (v === null || v === 41 ||
|
|
17459
|
+
return !d && (v === null || v === 41 || xt(v)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(v)) : d < u && v === 40 ? (e.consume(v), d++, f) : v === 41 ? (e.consume(v), d--, f) : v === null || v === 32 || v === 40 || Hs(v) ? n(v) : (e.consume(v), v === 92 ? b : f);
|
|
17458
17460
|
}
|
|
17459
17461
|
function b(v) {
|
|
17460
17462
|
return v === 40 || v === 41 || v === 92 ? (e.consume(v), f) : f(v);
|
|
@@ -17546,7 +17548,7 @@ function Ox(e, t, n) {
|
|
|
17546
17548
|
return i = rr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : n(m);
|
|
17547
17549
|
}
|
|
17548
17550
|
function l(m) {
|
|
17549
|
-
return
|
|
17551
|
+
return xt(m) ? Pr(e, u)(m) : u(m);
|
|
17550
17552
|
}
|
|
17551
17553
|
function u(m) {
|
|
17552
17554
|
return Ff(
|
|
@@ -17574,7 +17576,7 @@ function Ox(e, t, n) {
|
|
|
17574
17576
|
function Px(e, t, n) {
|
|
17575
17577
|
return r;
|
|
17576
17578
|
function r(o) {
|
|
17577
|
-
return
|
|
17579
|
+
return xt(o) ? Pr(e, i)(o) : n(o);
|
|
17578
17580
|
}
|
|
17579
17581
|
function i(o) {
|
|
17580
17582
|
return Sf(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
@@ -17615,7 +17617,7 @@ function Ix(e, t) {
|
|
|
17615
17617
|
start: e[r][1].start,
|
|
17616
17618
|
end: e[n][1].end,
|
|
17617
17619
|
contentType: "text"
|
|
17618
|
-
},
|
|
17620
|
+
}, on(e, r, n - r + 1, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]])), e;
|
|
17619
17621
|
}
|
|
17620
17622
|
function $x(e, t, n) {
|
|
17621
17623
|
let r = 0;
|
|
@@ -17627,7 +17629,7 @@ function $x(e, t, n) {
|
|
|
17627
17629
|
return e.enter("atxHeadingSequence"), s(d);
|
|
17628
17630
|
}
|
|
17629
17631
|
function s(d) {
|
|
17630
|
-
return d === 35 && r++ < 6 ? (e.consume(d), s) : d === null ||
|
|
17632
|
+
return d === 35 && r++ < 6 ? (e.consume(d), s) : d === null || xt(d) ? (e.exit("atxHeadingSequence"), o(d)) : n(d);
|
|
17631
17633
|
}
|
|
17632
17634
|
function o(d) {
|
|
17633
17635
|
return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || De(d) ? (e.exit("atxHeading"), t(d)) : Re(d) ? He(e, o, "whitespace")(d) : (e.enter("atxHeadingText"), u(d));
|
|
@@ -17636,7 +17638,7 @@ function $x(e, t, n) {
|
|
|
17636
17638
|
return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), o(d));
|
|
17637
17639
|
}
|
|
17638
17640
|
function u(d) {
|
|
17639
|
-
return d === null || d === 35 ||
|
|
17641
|
+
return d === null || d === 35 || xt(d) ? (e.exit("atxHeadingText"), o(d)) : (e.consume(d), u);
|
|
17640
17642
|
}
|
|
17641
17643
|
}
|
|
17642
17644
|
const Lx = [
|
|
@@ -17731,10 +17733,10 @@ function Hx(e, t, n) {
|
|
|
17731
17733
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(_), h;
|
|
17732
17734
|
}
|
|
17733
17735
|
function h(_) {
|
|
17734
|
-
return _ === 33 ? (e.consume(_), p) : _ === 47 ? (e.consume(_), a = !0, f) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : D) :
|
|
17736
|
+
return _ === 33 ? (e.consume(_), p) : _ === 47 ? (e.consume(_), a = !0, f) : _ === 63 ? (e.consume(_), i = 3, r.interrupt ? t : D) : Ht(_) ? (e.consume(_), s = String.fromCharCode(_), b) : n(_);
|
|
17735
17737
|
}
|
|
17736
17738
|
function p(_) {
|
|
17737
|
-
return _ === 45 ? (e.consume(_), i = 2, m) : _ === 91 ? (e.consume(_), i = 5, o = 0, g) :
|
|
17739
|
+
return _ === 45 ? (e.consume(_), i = 2, m) : _ === 91 ? (e.consume(_), i = 5, o = 0, g) : Ht(_) ? (e.consume(_), i = 4, r.interrupt ? t : D) : n(_);
|
|
17738
17740
|
}
|
|
17739
17741
|
function m(_) {
|
|
17740
17742
|
return _ === 45 ? (e.consume(_), r.interrupt ? t : D) : n(_);
|
|
@@ -17744,14 +17746,14 @@ function Hx(e, t, n) {
|
|
|
17744
17746
|
return _ === k.charCodeAt(o++) ? (e.consume(_), o === k.length ? r.interrupt ? t : w : g) : n(_);
|
|
17745
17747
|
}
|
|
17746
17748
|
function f(_) {
|
|
17747
|
-
return
|
|
17749
|
+
return Ht(_) ? (e.consume(_), s = String.fromCharCode(_), b) : n(_);
|
|
17748
17750
|
}
|
|
17749
17751
|
function b(_) {
|
|
17750
|
-
if (_ === null || _ === 47 || _ === 62 ||
|
|
17752
|
+
if (_ === null || _ === 47 || _ === 62 || xt(_)) {
|
|
17751
17753
|
const k = _ === 47, R = s.toLowerCase();
|
|
17752
17754
|
return !k && !a && lc.includes(R) ? (i = 1, r.interrupt ? t(_) : w(_)) : Lx.includes(s.toLowerCase()) ? (i = 6, k ? (e.consume(_), v) : r.interrupt ? t(_) : w(_)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(_) : a ? C(_) : B(_));
|
|
17753
17755
|
}
|
|
17754
|
-
return _ === 45 ||
|
|
17756
|
+
return _ === 45 || It(_) ? (e.consume(_), s += String.fromCharCode(_), b) : n(_);
|
|
17755
17757
|
}
|
|
17756
17758
|
function v(_) {
|
|
17757
17759
|
return _ === 62 ? (e.consume(_), r.interrupt ? t : w) : n(_);
|
|
@@ -17760,10 +17762,10 @@ function Hx(e, t, n) {
|
|
|
17760
17762
|
return Re(_) ? (e.consume(_), C) : N(_);
|
|
17761
17763
|
}
|
|
17762
17764
|
function B(_) {
|
|
17763
|
-
return _ === 47 ? (e.consume(_), N) : _ === 58 || _ === 95 ||
|
|
17765
|
+
return _ === 47 ? (e.consume(_), N) : _ === 58 || _ === 95 || Ht(_) ? (e.consume(_), E) : Re(_) ? (e.consume(_), B) : N(_);
|
|
17764
17766
|
}
|
|
17765
17767
|
function E(_) {
|
|
17766
|
-
return _ === 45 || _ === 46 || _ === 58 || _ === 95 ||
|
|
17768
|
+
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || It(_) ? (e.consume(_), E) : x(_);
|
|
17767
17769
|
}
|
|
17768
17770
|
function x(_) {
|
|
17769
17771
|
return _ === 61 ? (e.consume(_), F) : Re(_) ? (e.consume(_), x) : B(_);
|
|
@@ -17775,7 +17777,7 @@ function Hx(e, t, n) {
|
|
|
17775
17777
|
return _ === l ? (e.consume(_), l = null, P) : _ === null || De(_) ? n(_) : (e.consume(_), T);
|
|
17776
17778
|
}
|
|
17777
17779
|
function I(_) {
|
|
17778
|
-
return _ === null || _ === 34 || _ === 39 || _ === 47 || _ === 60 || _ === 61 || _ === 62 || _ === 96 ||
|
|
17780
|
+
return _ === null || _ === 34 || _ === 39 || _ === 47 || _ === 60 || _ === 61 || _ === 62 || _ === 96 || xt(_) ? x(_) : (e.consume(_), I);
|
|
17779
17781
|
}
|
|
17780
17782
|
function P(_) {
|
|
17781
17783
|
return _ === 47 || _ === 62 || Re(_) ? B(_) : n(_);
|
|
@@ -17809,7 +17811,7 @@ function Hx(e, t, n) {
|
|
|
17809
17811
|
const k = s.toLowerCase();
|
|
17810
17812
|
return lc.includes(k) ? (e.consume(_), L) : w(_);
|
|
17811
17813
|
}
|
|
17812
|
-
return
|
|
17814
|
+
return Ht(_) && s.length < 8 ? (e.consume(_), s += String.fromCharCode(_), Y) : w(_);
|
|
17813
17815
|
}
|
|
17814
17816
|
function re(_) {
|
|
17815
17817
|
return _ === 93 ? (e.consume(_), D) : w(_);
|
|
@@ -17852,10 +17854,10 @@ function Yx(e, t, n) {
|
|
|
17852
17854
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(D), l;
|
|
17853
17855
|
}
|
|
17854
17856
|
function l(D) {
|
|
17855
|
-
return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), x) : D === 63 ? (e.consume(D), B) :
|
|
17857
|
+
return D === 33 ? (e.consume(D), u) : D === 47 ? (e.consume(D), x) : D === 63 ? (e.consume(D), B) : Ht(D) ? (e.consume(D), I) : n(D);
|
|
17856
17858
|
}
|
|
17857
17859
|
function u(D) {
|
|
17858
|
-
return D === 45 ? (e.consume(D), d) : D === 91 ? (e.consume(D), a = 0, g) :
|
|
17860
|
+
return D === 45 ? (e.consume(D), d) : D === 91 ? (e.consume(D), a = 0, g) : Ht(D) ? (e.consume(D), C) : n(D);
|
|
17859
17861
|
}
|
|
17860
17862
|
function d(D) {
|
|
17861
17863
|
return D === 45 ? (e.consume(D), m) : n(D);
|
|
@@ -17892,22 +17894,22 @@ function Yx(e, t, n) {
|
|
|
17892
17894
|
return D === 62 ? W(D) : B(D);
|
|
17893
17895
|
}
|
|
17894
17896
|
function x(D) {
|
|
17895
|
-
return
|
|
17897
|
+
return Ht(D) ? (e.consume(D), F) : n(D);
|
|
17896
17898
|
}
|
|
17897
17899
|
function F(D) {
|
|
17898
|
-
return D === 45 ||
|
|
17900
|
+
return D === 45 || It(D) ? (e.consume(D), F) : T(D);
|
|
17899
17901
|
}
|
|
17900
17902
|
function T(D) {
|
|
17901
17903
|
return De(D) ? (s = T, K(D)) : Re(D) ? (e.consume(D), T) : W(D);
|
|
17902
17904
|
}
|
|
17903
17905
|
function I(D) {
|
|
17904
|
-
return D === 45 ||
|
|
17906
|
+
return D === 45 || It(D) ? (e.consume(D), I) : D === 47 || D === 62 || xt(D) ? P(D) : n(D);
|
|
17905
17907
|
}
|
|
17906
17908
|
function P(D) {
|
|
17907
|
-
return D === 47 ? (e.consume(D), W) : D === 58 || D === 95 ||
|
|
17909
|
+
return D === 47 ? (e.consume(D), W) : D === 58 || D === 95 || Ht(D) ? (e.consume(D), N) : De(D) ? (s = P, K(D)) : Re(D) ? (e.consume(D), P) : W(D);
|
|
17908
17910
|
}
|
|
17909
17911
|
function N(D) {
|
|
17910
|
-
return D === 45 || D === 46 || D === 58 || D === 95 ||
|
|
17912
|
+
return D === 45 || D === 46 || D === 58 || D === 95 || It(D) ? (e.consume(D), N) : z(D);
|
|
17911
17913
|
}
|
|
17912
17914
|
function z(D) {
|
|
17913
17915
|
return D === 61 ? (e.consume(D), w) : De(D) ? (s = z, K(D)) : Re(D) ? (e.consume(D), z) : P(D);
|
|
@@ -17919,10 +17921,10 @@ function Yx(e, t, n) {
|
|
|
17919
17921
|
return D === i ? (e.consume(D), i = void 0, $) : D === null ? n(D) : De(D) ? (s = A, K(D)) : (e.consume(D), A);
|
|
17920
17922
|
}
|
|
17921
17923
|
function S(D) {
|
|
17922
|
-
return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 ||
|
|
17924
|
+
return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || xt(D) ? P(D) : (e.consume(D), S);
|
|
17923
17925
|
}
|
|
17924
17926
|
function $(D) {
|
|
17925
|
-
return D === 47 || D === 62 ||
|
|
17927
|
+
return D === 47 || D === 62 || xt(D) ? P(D) : n(D);
|
|
17926
17928
|
}
|
|
17927
17929
|
function W(D) {
|
|
17928
17930
|
return D === 62 ? (e.consume(D), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(D);
|
|
@@ -17984,7 +17986,7 @@ function ew(e, t) {
|
|
|
17984
17986
|
start: Object.assign({}, e[a + r + 2][1].end),
|
|
17985
17987
|
end: Object.assign({}, e[s - 2][1].start)
|
|
17986
17988
|
};
|
|
17987
|
-
return o = [["enter", l, t], ["enter", u, t]], o =
|
|
17989
|
+
return o = [["enter", l, t], ["enter", u, t]], o = St(o, e.slice(a + 1, a + r + 3)), o = St(o, [["enter", d, t]]), o = St(o, Bo(t.parser.constructs.insideSpan.null, e.slice(a + r + 4, s - 3), t)), o = St(o, [["exit", d, t], e[s - 2], e[s - 1], ["exit", u, t]]), o = St(o, e.slice(s + 1)), o = St(o, [["exit", l, t]]), on(e, a, e.length, o), e;
|
|
17988
17990
|
}
|
|
17989
17991
|
function tw(e, t, n) {
|
|
17990
17992
|
const r = this;
|
|
@@ -18020,13 +18022,13 @@ function nw(e, t, n) {
|
|
|
18020
18022
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
|
|
18021
18023
|
}
|
|
18022
18024
|
function i(h) {
|
|
18023
|
-
return
|
|
18025
|
+
return xt(h) ? Pr(e, a)(h) : a(h);
|
|
18024
18026
|
}
|
|
18025
18027
|
function a(h) {
|
|
18026
18028
|
return h === 41 ? d(h) : Ff(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
18027
18029
|
}
|
|
18028
18030
|
function s(h) {
|
|
18029
|
-
return
|
|
18031
|
+
return xt(h) ? Pr(e, l)(h) : d(h);
|
|
18030
18032
|
}
|
|
18031
18033
|
function o(h) {
|
|
18032
18034
|
return n(h);
|
|
@@ -18035,7 +18037,7 @@ function nw(e, t, n) {
|
|
|
18035
18037
|
return h === 34 || h === 39 || h === 40 ? Sf(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
|
|
18036
18038
|
}
|
|
18037
18039
|
function u(h) {
|
|
18038
|
-
return
|
|
18040
|
+
return xt(h) ? Pr(e, d)(h) : d(h);
|
|
18039
18041
|
}
|
|
18040
18042
|
function d(h) {
|
|
18041
18043
|
return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
|
|
@@ -18126,7 +18128,7 @@ function cw(e, t, n) {
|
|
|
18126
18128
|
return u === i ? (e.consume(u), r++, l) : (e.exit("thematicBreakSequence"), Re(u) ? He(e, o, "whitespace")(u) : o(u));
|
|
18127
18129
|
}
|
|
18128
18130
|
}
|
|
18129
|
-
const
|
|
18131
|
+
const bt = {
|
|
18130
18132
|
name: "list",
|
|
18131
18133
|
tokenize: hw,
|
|
18132
18134
|
continuation: {
|
|
@@ -18187,7 +18189,7 @@ function mw(e, t, n) {
|
|
|
18187
18189
|
return r.containerState.furtherBlankLines || !Re(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, s(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(fw, t, s)(o));
|
|
18188
18190
|
}
|
|
18189
18191
|
function s(o) {
|
|
18190
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0, He(e, e.attempt(
|
|
18192
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, He(e, e.attempt(bt, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o);
|
|
18191
18193
|
}
|
|
18192
18194
|
}
|
|
18193
18195
|
function pw(e, t, n) {
|
|
@@ -18426,7 +18428,7 @@ function kw(e, t, n) {
|
|
|
18426
18428
|
let d = t.tokenize.call(u, l);
|
|
18427
18429
|
return t.resolveAll && a.push(t), u;
|
|
18428
18430
|
function h(z) {
|
|
18429
|
-
return s =
|
|
18431
|
+
return s = St(s, z), b(), s[s.length - 1] !== null ? [] : (I(t, 0), u.events = Bo(a, u.events, u), u.events);
|
|
18430
18432
|
}
|
|
18431
18433
|
function p(z, w) {
|
|
18432
18434
|
return Aw(m(z), w);
|
|
@@ -18524,7 +18526,7 @@ function kw(e, t, n) {
|
|
|
18524
18526
|
}
|
|
18525
18527
|
}
|
|
18526
18528
|
function I(z, w) {
|
|
18527
|
-
z.resolveAll && !a.includes(z) && a.push(z), z.resolve &&
|
|
18529
|
+
z.resolveAll && !a.includes(z) && a.push(z), z.resolve && on(
|
|
18528
18530
|
u.events,
|
|
18529
18531
|
w,
|
|
18530
18532
|
u.events.length - w,
|
|
@@ -18602,19 +18604,19 @@ function Aw(e, t) {
|
|
|
18602
18604
|
return r.join("");
|
|
18603
18605
|
}
|
|
18604
18606
|
const Fw = {
|
|
18605
|
-
42:
|
|
18606
|
-
43:
|
|
18607
|
-
45:
|
|
18608
|
-
48:
|
|
18609
|
-
49:
|
|
18610
|
-
50:
|
|
18611
|
-
51:
|
|
18612
|
-
52:
|
|
18613
|
-
53:
|
|
18614
|
-
54:
|
|
18615
|
-
55:
|
|
18616
|
-
56:
|
|
18617
|
-
57:
|
|
18607
|
+
42: bt,
|
|
18608
|
+
43: bt,
|
|
18609
|
+
45: bt,
|
|
18610
|
+
48: bt,
|
|
18611
|
+
49: bt,
|
|
18612
|
+
50: bt,
|
|
18613
|
+
51: bt,
|
|
18614
|
+
52: bt,
|
|
18615
|
+
53: bt,
|
|
18616
|
+
54: bt,
|
|
18617
|
+
55: bt,
|
|
18618
|
+
56: bt,
|
|
18619
|
+
57: bt,
|
|
18618
18620
|
62: _f
|
|
18619
18621
|
}, Tw = {
|
|
18620
18622
|
91: Sx
|
|
@@ -18892,14 +18894,14 @@ function Vw(e) {
|
|
|
18892
18894
|
(Je[1] || fc).call(ce, void 0, Je[0]);
|
|
18893
18895
|
}
|
|
18894
18896
|
for (ee.position = {
|
|
18895
|
-
start:
|
|
18897
|
+
start: dn(
|
|
18896
18898
|
H.length > 0 ? H[0][1].start : {
|
|
18897
18899
|
line: 1,
|
|
18898
18900
|
column: 1,
|
|
18899
18901
|
offset: 0
|
|
18900
18902
|
}
|
|
18901
18903
|
),
|
|
18902
|
-
end:
|
|
18904
|
+
end: dn(
|
|
18903
18905
|
H.length > 0 ? H[H.length - 2][1].end : {
|
|
18904
18906
|
line: 1,
|
|
18905
18907
|
column: 1,
|
|
@@ -18911,18 +18913,18 @@ function Vw(e) {
|
|
|
18911
18913
|
return ee;
|
|
18912
18914
|
}
|
|
18913
18915
|
function i(H, ee, ce) {
|
|
18914
|
-
let ge = ee - 1, Ee = -1, Je = !1, Xe, ut,
|
|
18916
|
+
let ge = ee - 1, Ee = -1, Je = !1, Xe, ut, Qt, Pt;
|
|
18915
18917
|
for (; ++ge <= ce; ) {
|
|
18916
18918
|
const at = H[ge];
|
|
18917
18919
|
switch (at[1].type) {
|
|
18918
18920
|
case "listUnordered":
|
|
18919
18921
|
case "listOrdered":
|
|
18920
18922
|
case "blockQuote": {
|
|
18921
|
-
at[0] === "enter" ? Ee++ : Ee--,
|
|
18923
|
+
at[0] === "enter" ? Ee++ : Ee--, Pt = void 0;
|
|
18922
18924
|
break;
|
|
18923
18925
|
}
|
|
18924
18926
|
case "lineEndingBlank": {
|
|
18925
|
-
at[0] === "enter" && (Xe && !
|
|
18927
|
+
at[0] === "enter" && (Xe && !Pt && !Ee && !Qt && (Qt = ge), Pt = void 0);
|
|
18926
18928
|
break;
|
|
18927
18929
|
}
|
|
18928
18930
|
case "linePrefix":
|
|
@@ -18932,34 +18934,34 @@ function Vw(e) {
|
|
|
18932
18934
|
case "listItemPrefixWhitespace":
|
|
18933
18935
|
break;
|
|
18934
18936
|
default:
|
|
18935
|
-
|
|
18937
|
+
Pt = void 0;
|
|
18936
18938
|
}
|
|
18937
18939
|
if (!Ee && at[0] === "enter" && at[1].type === "listItemPrefix" || Ee === -1 && at[0] === "exit" && (at[1].type === "listUnordered" || at[1].type === "listOrdered")) {
|
|
18938
18940
|
if (Xe) {
|
|
18939
|
-
let
|
|
18940
|
-
for (ut = void 0;
|
|
18941
|
-
const
|
|
18942
|
-
if (
|
|
18943
|
-
if (
|
|
18941
|
+
let Lt = ge;
|
|
18942
|
+
for (ut = void 0; Lt--; ) {
|
|
18943
|
+
const Et = H[Lt];
|
|
18944
|
+
if (Et[1].type === "lineEnding" || Et[1].type === "lineEndingBlank") {
|
|
18945
|
+
if (Et[0] === "exit")
|
|
18944
18946
|
continue;
|
|
18945
|
-
ut && (H[ut][1].type = "lineEndingBlank", Je = !0),
|
|
18946
|
-
} else if (!(
|
|
18947
|
+
ut && (H[ut][1].type = "lineEndingBlank", Je = !0), Et[1].type = "lineEnding", ut = Lt;
|
|
18948
|
+
} else if (!(Et[1].type === "linePrefix" || Et[1].type === "blockQuotePrefix" || Et[1].type === "blockQuotePrefixWhitespace" || Et[1].type === "blockQuoteMarker" || Et[1].type === "listItemIndent"))
|
|
18947
18949
|
break;
|
|
18948
18950
|
}
|
|
18949
|
-
|
|
18951
|
+
Qt && (!ut || Qt < ut) && (Xe._spread = !0), Xe.end = Object.assign(
|
|
18950
18952
|
{},
|
|
18951
18953
|
ut ? H[ut][1].start : at[1].end
|
|
18952
18954
|
), H.splice(ut || ge, 0, ["exit", Xe, at[2]]), ge++, ce++;
|
|
18953
18955
|
}
|
|
18954
18956
|
if (at[1].type === "listItemPrefix") {
|
|
18955
|
-
const
|
|
18957
|
+
const Lt = {
|
|
18956
18958
|
type: "listItem",
|
|
18957
18959
|
_spread: !1,
|
|
18958
18960
|
start: Object.assign({}, at[1].start),
|
|
18959
18961
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
18960
18962
|
end: void 0
|
|
18961
18963
|
};
|
|
18962
|
-
Xe =
|
|
18964
|
+
Xe = Lt, H.splice(ge, 0, ["enter", Lt, at[2]]), ge++, ce++, Qt = void 0, Pt = !0;
|
|
18963
18965
|
}
|
|
18964
18966
|
}
|
|
18965
18967
|
}
|
|
@@ -18979,7 +18981,7 @@ function Vw(e) {
|
|
|
18979
18981
|
}
|
|
18980
18982
|
function o(H, ee, ce) {
|
|
18981
18983
|
this.stack[this.stack.length - 1].children.push(H), this.stack.push(H), this.tokenStack.push([ee, ce]), H.position = {
|
|
18982
|
-
start:
|
|
18984
|
+
start: dn(ee.start),
|
|
18983
18985
|
// @ts-expect-error: `end` will be patched later.
|
|
18984
18986
|
end: void 0
|
|
18985
18987
|
};
|
|
@@ -19001,7 +19003,7 @@ function Vw(e) {
|
|
|
19001
19003
|
end: H.end
|
|
19002
19004
|
}) + "): it’s not open"
|
|
19003
19005
|
);
|
|
19004
|
-
ce.position.end =
|
|
19006
|
+
ce.position.end = dn(H.end);
|
|
19005
19007
|
}
|
|
19006
19008
|
function d() {
|
|
19007
19009
|
return UD(this.stack.pop());
|
|
@@ -19069,20 +19071,20 @@ function Vw(e) {
|
|
|
19069
19071
|
const ce = this.stack[this.stack.length - 1].children;
|
|
19070
19072
|
let ge = ce[ce.length - 1];
|
|
19071
19073
|
(!ge || ge.type !== "text") && (ge = qe(), ge.position = {
|
|
19072
|
-
start:
|
|
19074
|
+
start: dn(H.start),
|
|
19073
19075
|
// @ts-expect-error: we’ll add `end` later.
|
|
19074
19076
|
end: void 0
|
|
19075
19077
|
}, ce.push(ge)), this.stack.push(ge);
|
|
19076
19078
|
}
|
|
19077
19079
|
function N(H) {
|
|
19078
19080
|
const ee = this.stack.pop();
|
|
19079
|
-
ee.value += this.sliceSerialize(H), ee.position.end =
|
|
19081
|
+
ee.value += this.sliceSerialize(H), ee.position.end = dn(H.end);
|
|
19080
19082
|
}
|
|
19081
19083
|
function z(H) {
|
|
19082
19084
|
const ee = this.stack[this.stack.length - 1];
|
|
19083
19085
|
if (this.data.atHardBreak) {
|
|
19084
19086
|
const ce = ee.children[ee.children.length - 1];
|
|
19085
|
-
ce.position.end =
|
|
19087
|
+
ce.position.end = dn(H.end), this.data.atHardBreak = void 0;
|
|
19086
19088
|
return;
|
|
19087
19089
|
}
|
|
19088
19090
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (P.call(this, H), N.call(this, H));
|
|
@@ -19163,7 +19165,7 @@ function Vw(e) {
|
|
|
19163
19165
|
ce === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19164
19166
|
), this.data.characterReferenceType = void 0) : ge = ko(ee);
|
|
19165
19167
|
const Ee = this.stack.pop();
|
|
19166
|
-
Ee.value += ge, Ee.position.end =
|
|
19168
|
+
Ee.value += ge, Ee.position.end = dn(H.end);
|
|
19167
19169
|
}
|
|
19168
19170
|
function q(H) {
|
|
19169
19171
|
N.call(this, H);
|
|
@@ -19286,7 +19288,7 @@ function Vw(e) {
|
|
|
19286
19288
|
};
|
|
19287
19289
|
}
|
|
19288
19290
|
}
|
|
19289
|
-
function
|
|
19291
|
+
function dn(e) {
|
|
19290
19292
|
return {
|
|
19291
19293
|
line: e.line,
|
|
19292
19294
|
column: e.column,
|
|
@@ -19418,25 +19420,25 @@ function Mf(e, t) {
|
|
|
19418
19420
|
} : { type: V.paragraph, children: [{ text: e.value || "" }] };
|
|
19419
19421
|
case mt.emphasis:
|
|
19420
19422
|
return {
|
|
19421
|
-
[n[
|
|
19423
|
+
[n[nn.emphasis]]: !0,
|
|
19422
19424
|
...ts(s),
|
|
19423
19425
|
...vi(s)
|
|
19424
19426
|
};
|
|
19425
19427
|
case mt.strong:
|
|
19426
19428
|
return {
|
|
19427
|
-
[n[
|
|
19429
|
+
[n[nn.strong]]: !0,
|
|
19428
19430
|
...ts(s),
|
|
19429
19431
|
...vi(s)
|
|
19430
19432
|
};
|
|
19431
19433
|
case mt.delete:
|
|
19432
19434
|
return {
|
|
19433
|
-
[n[
|
|
19435
|
+
[n[nn.delete]]: !0,
|
|
19434
19436
|
...ts(s),
|
|
19435
19437
|
...vi(s)
|
|
19436
19438
|
};
|
|
19437
19439
|
case mt.inlineCode:
|
|
19438
19440
|
return {
|
|
19439
|
-
[n[
|
|
19441
|
+
[n[nn.code]]: !0,
|
|
19440
19442
|
text: e.value,
|
|
19441
19443
|
...vi(s)
|
|
19442
19444
|
};
|
|
@@ -19730,7 +19732,7 @@ const rC = ({
|
|
|
19730
19732
|
onFallbackClick: e = () => {
|
|
19731
19733
|
}
|
|
19732
19734
|
}) => {
|
|
19733
|
-
const t = le(), n = zn(), { dispatch: r, isInOverlay: i, mentionPopover: a, id: s, onMention: o } = Le(
|
|
19735
|
+
const t = le(), n = zn(), { dispatch: r, isInOverlay: i, mentionPopover: a, id: s, onMention: o } = Le(ln), { show: l, selectedUser: u, possibleUsers: d } = a, h = xf(n, "mention-popover", `toolbar-${s}`);
|
|
19734
19736
|
if (!l)
|
|
19735
19737
|
return /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
19736
19738
|
const p = If(i);
|
|
@@ -19744,7 +19746,7 @@ const rC = ({
|
|
|
19744
19746
|
},
|
|
19745
19747
|
children: /* @__PURE__ */ c.jsxs("ul", { children: [
|
|
19746
19748
|
d.map(({ userId: m, user: g }, f) => /* @__PURE__ */ c.jsx(
|
|
19747
|
-
|
|
19749
|
+
bn,
|
|
19748
19750
|
{
|
|
19749
19751
|
element: "li",
|
|
19750
19752
|
className: Z({ selected: f === u }),
|
|
@@ -19765,7 +19767,7 @@ const rC = ({
|
|
|
19765
19767
|
m
|
|
19766
19768
|
)),
|
|
19767
19769
|
/* @__PURE__ */ c.jsx(
|
|
19768
|
-
|
|
19770
|
+
bn,
|
|
19769
19771
|
{
|
|
19770
19772
|
element: "li",
|
|
19771
19773
|
className: Z("fallback", {
|
|
@@ -19775,7 +19777,7 @@ const rC = ({
|
|
|
19775
19777
|
id: "0",
|
|
19776
19778
|
name: t.formatMessage({ id: "richTextEditor_mention_fallback" }),
|
|
19777
19779
|
image: {
|
|
19778
|
-
thumbnail: `${
|
|
19780
|
+
thumbnail: `${rn}icons/invite-user.svg`
|
|
19779
19781
|
},
|
|
19780
19782
|
link: !1
|
|
19781
19783
|
},
|
|
@@ -19814,7 +19816,7 @@ const rC = ({
|
|
|
19814
19816
|
setFocus: h,
|
|
19815
19817
|
openTooltip: p,
|
|
19816
19818
|
dispatch: m
|
|
19817
|
-
} = Le(
|
|
19819
|
+
} = Le(ln), g = {};
|
|
19818
19820
|
return e !== d && (g.tabIndex = -1), /* @__PURE__ */ c.jsxs(
|
|
19819
19821
|
"li",
|
|
19820
19822
|
{
|
|
@@ -19965,7 +19967,7 @@ const rC = ({
|
|
|
19965
19967
|
n(`Error toggling block: ${i}`);
|
|
19966
19968
|
}
|
|
19967
19969
|
}, aC = ({ format: e, hasDivider: t = !1 }) => {
|
|
19968
|
-
const { setFocus: n, reportError: r } = Le(
|
|
19970
|
+
const { setFocus: n, reportError: r } = Le(ln), i = zn(), a = Lf(i, e);
|
|
19969
19971
|
return /* @__PURE__ */ c.jsx(
|
|
19970
19972
|
To,
|
|
19971
19973
|
{
|
|
@@ -20027,7 +20029,7 @@ const rC = ({
|
|
|
20027
20029
|
};
|
|
20028
20030
|
let ns = null;
|
|
20029
20031
|
const uC = () => {
|
|
20030
|
-
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Le(
|
|
20032
|
+
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Le(ln), o = zn(), l = xD(o), u = (l == null ? void 0 : l.text) || Jw(o), [d, h] = ue(Nr(o)), p = xf(o, "link-editor", `${n}-link`), m = _e(null);
|
|
20031
20033
|
de(() => {
|
|
20032
20034
|
var C;
|
|
20033
20035
|
!d && r && ((C = m.current) == null || C.focus());
|
|
@@ -20149,7 +20151,7 @@ const uC = () => {
|
|
|
20149
20151
|
}
|
|
20150
20152
|
) });
|
|
20151
20153
|
}, lC = () => {
|
|
20152
|
-
const e = zn(), { setFocus: t, dispatch: n } = Le(
|
|
20154
|
+
const e = zn(), { setFocus: t, dispatch: n } = Le(ln), [r, i] = ue(!1);
|
|
20153
20155
|
return de(() => {
|
|
20154
20156
|
i(Nr(e));
|
|
20155
20157
|
}, [e.selection]), /* @__PURE__ */ c.jsx(
|
|
@@ -20176,7 +20178,7 @@ const uC = () => {
|
|
|
20176
20178
|
n(`Error toggling mark: ${i}`);
|
|
20177
20179
|
}
|
|
20178
20180
|
}, dC = ({ format: e, hasDivider: t = !1 }) => {
|
|
20179
|
-
const { setFocus: n, reportError: r } = Le(
|
|
20181
|
+
const { setFocus: n, reportError: r } = Le(ln), i = zn(), a = Wf(i, e);
|
|
20180
20182
|
return /* @__PURE__ */ c.jsx(
|
|
20181
20183
|
To,
|
|
20182
20184
|
{
|
|
@@ -20198,7 +20200,7 @@ const uC = () => {
|
|
|
20198
20200
|
V.blockquote
|
|
20199
20201
|
];
|
|
20200
20202
|
const hC = ({ ...e }) => {
|
|
20201
|
-
const t = le(), { id: n } = Le(
|
|
20203
|
+
const t = le(), { id: n } = Le(ln);
|
|
20202
20204
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
20203
20205
|
/* @__PURE__ */ c.jsxs("fieldset", { id: `toolbar-${n}`, className: "toolbar", ...e, children: [
|
|
20204
20206
|
/* @__PURE__ */ c.jsx(ze, { element: "legend", showOnFocus: !1, children: t.formatMessage({ id: "richTextEditor_toolbar" }) }),
|
|
@@ -20325,7 +20327,7 @@ const CC = ({
|
|
|
20325
20327
|
}, $ = `rte-${e}`, W = Me(
|
|
20326
20328
|
(L) => /* @__PURE__ */ c.jsx(yD, { ...L }),
|
|
20327
20329
|
[]
|
|
20328
|
-
), K = Me((L) => /* @__PURE__ */ c.jsx(DD, { ...L }), []), Y =
|
|
20330
|
+
), K = Me((L) => /* @__PURE__ */ c.jsx(DD, { ...L }), []), Y = Vt(
|
|
20329
20331
|
() => DC(
|
|
20330
20332
|
xC(
|
|
20331
20333
|
wC(sb(vD(ib())), b),
|
|
@@ -20414,7 +20416,7 @@ const CC = ({
|
|
|
20414
20416
|
});
|
|
20415
20417
|
}, 100);
|
|
20416
20418
|
return T ? /* @__PURE__ */ c.jsx("div", { id: $, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
|
|
20417
|
-
|
|
20419
|
+
ln.Provider,
|
|
20418
20420
|
{
|
|
20419
20421
|
value: {
|
|
20420
20422
|
...B,
|
|
@@ -20771,7 +20773,7 @@ const kC = ({
|
|
|
20771
20773
|
" ",
|
|
20772
20774
|
b({ id: "inviteForm_error" })
|
|
20773
20775
|
] }) }),
|
|
20774
|
-
/* @__PURE__ */ c.jsx(
|
|
20776
|
+
/* @__PURE__ */ c.jsx(an, {}),
|
|
20775
20777
|
/* @__PURE__ */ c.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
20776
20778
|
/* @__PURE__ */ c.jsx(Ae, { variant: "secondary", onClick: C, children: b({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
20777
20779
|
/* @__PURE__ */ c.jsx(Ae, { onClick: B, children: b({ id: "inviteForm_ctaDone" }) })
|
|
@@ -20816,12 +20818,12 @@ const kC = ({
|
|
|
20816
20818
|
}
|
|
20817
20819
|
)
|
|
20818
20820
|
] }),
|
|
20819
|
-
/* @__PURE__ */ c.jsx(
|
|
20821
|
+
/* @__PURE__ */ c.jsx(an, {}),
|
|
20820
20822
|
/* @__PURE__ */ c.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ c.jsx(Ae, { className: "sendEmailsButton", disabled: p, children: n }) })
|
|
20821
20823
|
]
|
|
20822
20824
|
}
|
|
20823
20825
|
) });
|
|
20824
|
-
}, rs = (e) => e.map((t) => ({ condition: t })),
|
|
20826
|
+
}, rs = (e) => e.map((t) => ({ condition: t })), Tt = {
|
|
20825
20827
|
FORM_ID: "manage-account-password-change",
|
|
20826
20828
|
NEW_PASSWORD: "newPassword",
|
|
20827
20829
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
@@ -20831,10 +20833,10 @@ const kC = ({
|
|
|
20831
20833
|
isMoreThanEightCharacters: !1,
|
|
20832
20834
|
includesNumberAndSymbol: !1,
|
|
20833
20835
|
includesLowerAndUppercase: !1
|
|
20834
|
-
}), u = (m) => m[
|
|
20836
|
+
}), u = (m) => m[Tt.NEW_PASSWORD] !== m[Tt.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, d = (m) => !Yo(m[Tt.NEW_PASSWORD]).isValid, h = [
|
|
20835
20837
|
{
|
|
20836
|
-
"data-testid":
|
|
20837
|
-
id:
|
|
20838
|
+
"data-testid": Tt.NEW_PASSWORD,
|
|
20839
|
+
id: Tt.NEW_PASSWORD,
|
|
20838
20840
|
type: "password",
|
|
20839
20841
|
autoComplete: "new-password",
|
|
20840
20842
|
placeholder: "",
|
|
@@ -20847,8 +20849,8 @@ const kC = ({
|
|
|
20847
20849
|
}
|
|
20848
20850
|
},
|
|
20849
20851
|
{
|
|
20850
|
-
"data-testid":
|
|
20851
|
-
id:
|
|
20852
|
+
"data-testid": Tt.CONFIRMED_PASSWORD,
|
|
20853
|
+
id: Tt.CONFIRMED_PASSWORD,
|
|
20852
20854
|
type: "password",
|
|
20853
20855
|
autoComplete: "new-password",
|
|
20854
20856
|
placeholder: "",
|
|
@@ -20857,8 +20859,8 @@ const kC = ({
|
|
|
20857
20859
|
}
|
|
20858
20860
|
];
|
|
20859
20861
|
t.isPasswordChange && h.unshift({
|
|
20860
|
-
"data-testid":
|
|
20861
|
-
id:
|
|
20862
|
+
"data-testid": Tt.CURRENT_PASSWORD,
|
|
20863
|
+
id: Tt.CURRENT_PASSWORD,
|
|
20862
20864
|
type: "password",
|
|
20863
20865
|
autoComplete: "current-password",
|
|
20864
20866
|
placeholder: "",
|
|
@@ -20869,7 +20871,7 @@ const kC = ({
|
|
|
20869
20871
|
props: { matchingRules: o }
|
|
20870
20872
|
});
|
|
20871
20873
|
const p = {
|
|
20872
|
-
id:
|
|
20874
|
+
id: Tt.FORM_ID,
|
|
20873
20875
|
fields: h,
|
|
20874
20876
|
functions: {
|
|
20875
20877
|
...e,
|
|
@@ -20878,7 +20880,7 @@ const kC = ({
|
|
|
20878
20880
|
onCatch: (m) => i(m == null ? void 0 : m.statusCode),
|
|
20879
20881
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20880
20882
|
onFailure: (m, g) => {
|
|
20881
|
-
(g.includes(
|
|
20883
|
+
(g.includes(Tt.NEW_PASSWORD) || g.includes(Tt.CONFIRMED_PASSWORD)) && s(!0);
|
|
20882
20884
|
}
|
|
20883
20885
|
},
|
|
20884
20886
|
meta: {
|
|
@@ -20893,7 +20895,7 @@ const kC = ({
|
|
|
20893
20895
|
};
|
|
20894
20896
|
const BC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
|
|
20895
20897
|
var E, x;
|
|
20896
|
-
const i = le(), a = "profileForm_", s = Le(
|
|
20898
|
+
const i = le(), a = "profileForm_", s = Le(At), [o, l] = ue(s.image), [u, d] = ue(!1), {
|
|
20897
20899
|
uploadImage: h,
|
|
20898
20900
|
onSuccess: p = async (F) => {
|
|
20899
20901
|
},
|
|
@@ -20980,7 +20982,7 @@ const BC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
|
|
|
20980
20982
|
value: s.biography
|
|
20981
20983
|
},
|
|
20982
20984
|
{
|
|
20983
|
-
component:
|
|
20985
|
+
component: an
|
|
20984
20986
|
}
|
|
20985
20987
|
],
|
|
20986
20988
|
meta: {
|
|
@@ -21407,7 +21409,7 @@ const OC = {
|
|
|
21407
21409
|
maxAge: 3600
|
|
21408
21410
|
});
|
|
21409
21411
|
}, [x]);
|
|
21410
|
-
const N =
|
|
21412
|
+
const N = Vt(() => SC({
|
|
21411
21413
|
placeholders: n,
|
|
21412
21414
|
labels: t,
|
|
21413
21415
|
shouldShow: g,
|
|
@@ -21453,7 +21455,7 @@ const OC = {
|
|
|
21453
21455
|
styling: { fullWidth: !0 },
|
|
21454
21456
|
variant: "tertiary",
|
|
21455
21457
|
size: "medium",
|
|
21456
|
-
href: "/
|
|
21458
|
+
href: "/api/next-ui/login",
|
|
21457
21459
|
"data-gtm-event-context": "SignupForm",
|
|
21458
21460
|
"data-gtm-event-type": "login-click",
|
|
21459
21461
|
text: l.formatMessage({ id: "signup_button_login" })
|
|
@@ -21545,7 +21547,7 @@ const PC = ({
|
|
|
21545
21547
|
setShowModal: a
|
|
21546
21548
|
}) => {
|
|
21547
21549
|
const { formatMessage: s } = le();
|
|
21548
|
-
return /* @__PURE__ */ c.jsxs(
|
|
21550
|
+
return /* @__PURE__ */ c.jsxs(Zt, { variant: "muted", icon: e, children: [
|
|
21549
21551
|
/* @__PURE__ */ c.jsx("p", { children: t || s({ id: `${Zs}placeholder_description` }) }),
|
|
21550
21552
|
i && /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
21551
21553
|
Ae,
|
|
@@ -21643,7 +21645,7 @@ const PC = ({
|
|
|
21643
21645
|
showEditButton: f
|
|
21644
21646
|
}
|
|
21645
21647
|
),
|
|
21646
|
-
u && /* @__PURE__ */ c.jsx(
|
|
21648
|
+
u && /* @__PURE__ */ c.jsx(an, {})
|
|
21647
21649
|
] });
|
|
21648
21650
|
};
|
|
21649
21651
|
const V_ = ({
|
|
@@ -21799,7 +21801,7 @@ const ss = "cookieBanner_", os = [
|
|
|
21799
21801
|
/* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${ss}text` }) }),
|
|
21800
21802
|
/* @__PURE__ */ c.jsx(Zr, { buttons: u })
|
|
21801
21803
|
] });
|
|
21802
|
-
},
|
|
21804
|
+
}, en = {
|
|
21803
21805
|
platform: {
|
|
21804
21806
|
order: ["events", "courses", "articles", "communities"],
|
|
21805
21807
|
// An array guarantees the right order
|
|
@@ -21906,14 +21908,14 @@ const ss = "cookieBanner_", os = [
|
|
|
21906
21908
|
}
|
|
21907
21909
|
};
|
|
21908
21910
|
const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
21909
|
-
const t =
|
|
21911
|
+
const t = en[e].order || [];
|
|
21910
21912
|
let n = !1;
|
|
21911
|
-
return "text" in
|
|
21913
|
+
return "text" in en[e] && (n = en[e].text), /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
21912
21914
|
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ct, { id: `${tr}${e}` }) }),
|
|
21913
21915
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
21914
21916
|
if (["order", "child", "text"].includes(r))
|
|
21915
21917
|
return null;
|
|
21916
|
-
const { href: i, gtmType: a } =
|
|
21918
|
+
const { href: i, gtmType: a } = en[e][r], s = {};
|
|
21917
21919
|
return ["legal"].includes(e) && (s.target = "_blank", s.rel = "noopener"), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
21918
21920
|
"a",
|
|
21919
21921
|
{
|
|
@@ -21963,12 +21965,12 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
21963
21965
|
),
|
|
21964
21966
|
/* @__PURE__ */ c.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ c.jsxs("div", { className: "group", children: [
|
|
21965
21967
|
/* @__PURE__ */ c.jsx(yc, { group: e }),
|
|
21966
|
-
Object.keys(
|
|
21968
|
+
Object.keys(en[e]).includes("child") && /* @__PURE__ */ c.jsx(yc, { group: en[e].child })
|
|
21967
21969
|
] }, e)) }),
|
|
21968
21970
|
/* @__PURE__ */ c.jsx("hr", {}),
|
|
21969
21971
|
/* @__PURE__ */ c.jsxs("div", { className: "sub-footer", children: [
|
|
21970
|
-
/* @__PURE__ */ c.jsx("ul", { children: Array.isArray(
|
|
21971
|
-
const t =
|
|
21972
|
+
/* @__PURE__ */ c.jsx("ul", { children: Array.isArray(en.social.order) && en.social.order.map((e) => {
|
|
21973
|
+
const t = en.social[e];
|
|
21972
21974
|
return /* @__PURE__ */ c.jsx("li", { className: e, children: /* @__PURE__ */ c.jsx(
|
|
21973
21975
|
"a",
|
|
21974
21976
|
{
|
|
@@ -22010,7 +22012,7 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22010
22012
|
Object.values(t).filter((i) => i === !0).length || n([{ type: "headerIsVisible", value: e }]);
|
|
22011
22013
|
},
|
|
22012
22014
|
handleMenus: ({ id: e, value: t, menus: n, dispatch: r, forceHandle: i = !1 }) => {
|
|
22013
|
-
if (!i && n[e] === t || !i && e ===
|
|
22015
|
+
if (!i && n[e] === t || !i && e === _t.ACCOUNT && t === !1 && n[_t.SITE] === !0)
|
|
22014
22016
|
return;
|
|
22015
22017
|
const a = Date.now();
|
|
22016
22018
|
if (!i && !t && We.handlerCalled[e] && a - We.handlerCalled[e] < 500)
|
|
@@ -22024,13 +22026,13 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22024
22026
|
else {
|
|
22025
22027
|
let o = null;
|
|
22026
22028
|
switch (e) {
|
|
22027
|
-
case
|
|
22029
|
+
case _t.SITE:
|
|
22028
22030
|
o = document.querySelector("#header .menu-button"), o || (o = document.querySelector("#navigation .navigation-button"));
|
|
22029
22031
|
break;
|
|
22030
|
-
case
|
|
22032
|
+
case _t.SEARCH:
|
|
22031
22033
|
o = document.querySelector("#header .toggle-search-button");
|
|
22032
22034
|
break;
|
|
22033
|
-
case
|
|
22035
|
+
case _t.ACCOUNT:
|
|
22034
22036
|
o = document.querySelector("#header .account-button");
|
|
22035
22037
|
break;
|
|
22036
22038
|
default:
|
|
@@ -22072,18 +22074,18 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22072
22074
|
}
|
|
22073
22075
|
let s, o;
|
|
22074
22076
|
switch (e) {
|
|
22075
|
-
case
|
|
22077
|
+
case _t.SITE:
|
|
22076
22078
|
if (n) {
|
|
22077
22079
|
const u = We.findFirstChild(
|
|
22078
22080
|
t.current.children,
|
|
22079
22081
|
"attributes.aria-controls",
|
|
22080
|
-
|
|
22082
|
+
_t.SITE
|
|
22081
22083
|
);
|
|
22082
22084
|
s = We.findFirstChild(u.children, "href");
|
|
22083
22085
|
} else
|
|
22084
22086
|
s = We.findFirstChild(t.current.children, "href");
|
|
22085
22087
|
break;
|
|
22086
|
-
case
|
|
22088
|
+
case _t.ACCOUNT:
|
|
22087
22089
|
if (o = We.findFirstChild(
|
|
22088
22090
|
t.current.children,
|
|
22089
22091
|
"className",
|
|
@@ -22190,7 +22192,7 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22190
22192
|
},
|
|
22191
22193
|
buttons: {
|
|
22192
22194
|
order: ["login", "signup"],
|
|
22193
|
-
login: { href: "/
|
|
22195
|
+
login: { href: "/api/next-ui/login" },
|
|
22194
22196
|
signup: {
|
|
22195
22197
|
href: "/signup?ref=header-banner",
|
|
22196
22198
|
props: { variant: "primary" }
|
|
@@ -22244,7 +22246,7 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22244
22246
|
};
|
|
22245
22247
|
v = {
|
|
22246
22248
|
...E,
|
|
22247
|
-
id: B ===
|
|
22249
|
+
id: B === _t.SITE ? _t.SITE : _t.ACCOUNT
|
|
22248
22250
|
}, n && (g && (C = {
|
|
22249
22251
|
...E,
|
|
22250
22252
|
className: "navigation-button",
|
|
@@ -22276,7 +22278,7 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22276
22278
|
) : n && o.order && g ? /* @__PURE__ */ c.jsxs("button", { ...C, children: [
|
|
22277
22279
|
s.formatMessage({ id: h }),
|
|
22278
22280
|
/* @__PURE__ */ c.jsx(ze, { children: s.formatMessage({
|
|
22279
|
-
id: `header_menu_${r[
|
|
22281
|
+
id: `header_menu_${r[_t.SITE] ? "hide" : "show"}`
|
|
22280
22282
|
}) })
|
|
22281
22283
|
] }) : s.formatMessage({ id: h }),
|
|
22282
22284
|
o.order && /* @__PURE__ */ c.jsx("ul", { ...v, children: o.order.map((B) => {
|
|
@@ -22323,9 +22325,9 @@ const tr = "footer_", Zi = "SiteFooter", yc = ({ group: e }) => {
|
|
|
22323
22325
|
);
|
|
22324
22326
|
};
|
|
22325
22327
|
const MC = { height: 67, height_desktop: 83 };
|
|
22326
|
-
var
|
|
22328
|
+
var _t = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(_t || {});
|
|
22327
22329
|
const Kf = ({ showNavigation: e = !0 }) => {
|
|
22328
|
-
const t = le(), n = Le(
|
|
22330
|
+
const t = le(), n = Le(At), r = fr(!0, !0), i = n && typeof n.id == "string", a = Vt(
|
|
22329
22331
|
() => We.getIsDesktopVersion(i, r),
|
|
22330
22332
|
[i, r]
|
|
22331
22333
|
), [s, o] = dr(na, {
|
|
@@ -22753,7 +22755,7 @@ const Y_ = ({
|
|
|
22753
22755
|
}
|
|
22754
22756
|
);
|
|
22755
22757
|
};
|
|
22756
|
-
var
|
|
22758
|
+
var gt = /* @__PURE__ */ ((e) => (e.COMMUNITIES = "communities", e.PLATFORM = "platform", e))(gt || {});
|
|
22757
22759
|
const G_ = ({
|
|
22758
22760
|
members: { data: e = [], total: t = e.length },
|
|
22759
22761
|
communitySlug: n,
|
|
@@ -22766,7 +22768,7 @@ const G_ = ({
|
|
|
22766
22768
|
gtmType: l = "member-click",
|
|
22767
22769
|
className: u = ""
|
|
22768
22770
|
}) => {
|
|
22769
|
-
const d = le(), h = "membersList", p = Le(
|
|
22771
|
+
const d = le(), h = "membersList", p = Le(At), [m, g] = ue(!1);
|
|
22770
22772
|
return e.length === 0 ? null : /* @__PURE__ */ c.jsxs("div", { className: Z("members-list", u), children: [
|
|
22771
22773
|
/* @__PURE__ */ c.jsxs("h1", { children: [
|
|
22772
22774
|
d.formatMessage({ id: h }),
|
|
@@ -22775,15 +22777,23 @@ const G_ = ({
|
|
|
22775
22777
|
/* @__PURE__ */ c.jsxs("ul", { children: [
|
|
22776
22778
|
r ? /* @__PURE__ */ c.jsxs("li", { children: [
|
|
22777
22779
|
/* @__PURE__ */ c.jsx(
|
|
22778
|
-
|
|
22780
|
+
bn,
|
|
22779
22781
|
{
|
|
22780
22782
|
member: p,
|
|
22781
22783
|
gtmContext: o,
|
|
22782
22784
|
gtmType: l,
|
|
22783
22785
|
badges: {
|
|
22784
22786
|
showBadges: !0,
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
+
scopes: [
|
|
22788
|
+
{
|
|
22789
|
+
scope: gt.COMMUNITIES,
|
|
22790
|
+
area: n || ""
|
|
22791
|
+
},
|
|
22792
|
+
{
|
|
22793
|
+
scope: gt.PLATFORM,
|
|
22794
|
+
area: "all"
|
|
22795
|
+
}
|
|
22796
|
+
]
|
|
22787
22797
|
}
|
|
22788
22798
|
}
|
|
22789
22799
|
),
|
|
@@ -22801,19 +22811,27 @@ const G_ = ({
|
|
|
22801
22811
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
22802
22812
|
e.map((f, b) => /* @__PURE__ */ c.jsxs("li", { children: [
|
|
22803
22813
|
/* @__PURE__ */ c.jsx(
|
|
22804
|
-
|
|
22814
|
+
bn,
|
|
22805
22815
|
{
|
|
22806
22816
|
member: f,
|
|
22807
22817
|
gtmContext: o,
|
|
22808
22818
|
gtmType: l,
|
|
22809
22819
|
badges: {
|
|
22810
22820
|
showBadges: !0,
|
|
22811
|
-
|
|
22812
|
-
|
|
22821
|
+
scopes: [
|
|
22822
|
+
{
|
|
22823
|
+
scope: gt.COMMUNITIES,
|
|
22824
|
+
area: n || ""
|
|
22825
|
+
},
|
|
22826
|
+
{
|
|
22827
|
+
scope: gt.PLATFORM,
|
|
22828
|
+
area: "all"
|
|
22829
|
+
}
|
|
22830
|
+
]
|
|
22813
22831
|
}
|
|
22814
22832
|
}
|
|
22815
22833
|
),
|
|
22816
|
-
f.isAdmin && /* @__PURE__ */ c.jsx(
|
|
22834
|
+
f.isAdmin && /* @__PURE__ */ c.jsx(vn, { children: d.formatMessage({ id: `${h}_admin` }) })
|
|
22817
22835
|
] }, b))
|
|
22818
22836
|
] }),
|
|
22819
22837
|
i && /* @__PURE__ */ c.jsx(
|
|
@@ -22841,7 +22859,7 @@ const G_ = ({
|
|
|
22841
22859
|
] });
|
|
22842
22860
|
}, LC = {
|
|
22843
22861
|
showForm: !1
|
|
22844
|
-
}, jo =
|
|
22862
|
+
}, jo = wt(LC), zC = ({ children: e }) => {
|
|
22845
22863
|
const [t, n] = ue({
|
|
22846
22864
|
showForm: !1
|
|
22847
22865
|
});
|
|
@@ -22864,7 +22882,7 @@ const G_ = ({
|
|
|
22864
22882
|
} : "deleted";
|
|
22865
22883
|
}, qC = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
|
|
22866
22884
|
const i = le();
|
|
22867
|
-
return t ? /* @__PURE__ */ c.jsx("small", { children:
|
|
22885
|
+
return t ? /* @__PURE__ */ c.jsx("small", { children: Mt(i.formatMessage, `${e}explainer`, n, "action", {
|
|
22868
22886
|
a: (a) => /* @__PURE__ */ c.jsx(
|
|
22869
22887
|
"a",
|
|
22870
22888
|
{
|
|
@@ -22894,7 +22912,7 @@ const G_ = ({
|
|
|
22894
22912
|
},
|
|
22895
22913
|
children: i.formatMessage({ id: `${t}label` })
|
|
22896
22914
|
}
|
|
22897
|
-
) : /* @__PURE__ */ c.jsx(ze, { element: "label", showOnFocus: !1, htmlFor: `${e}-input`, children:
|
|
22915
|
+
) : /* @__PURE__ */ c.jsx(ze, { element: "label", showOnFocus: !1, htmlFor: `${e}-input`, children: Mt(i.formatMessage, `${t}label_action`, r, "action") });
|
|
22898
22916
|
};
|
|
22899
22917
|
let bi = null;
|
|
22900
22918
|
const nt = "discussion_form_", ha = ({
|
|
@@ -22916,7 +22934,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
22916
22934
|
gtmContext: p = "DiscussionForm"
|
|
22917
22935
|
}) => {
|
|
22918
22936
|
var Oe, Ge, Ke;
|
|
22919
|
-
const m = le(), g = Le(
|
|
22937
|
+
const m = le(), g = Le(At), [f, b] = ue(""), {
|
|
22920
22938
|
isLoading: v = !1,
|
|
22921
22939
|
isInWrapper: C = !1,
|
|
22922
22940
|
isInOverlay: B = !1,
|
|
@@ -22955,7 +22973,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
22955
22973
|
u && !x && T && T !== L.body && G({ ...L, body: T.text || "" });
|
|
22956
22974
|
}, [T]), v)
|
|
22957
22975
|
return /* @__PURE__ */ c.jsx(
|
|
22958
|
-
|
|
22976
|
+
$t,
|
|
22959
22977
|
{
|
|
22960
22978
|
className: "discussion-card discussion-form",
|
|
22961
22979
|
"data-testid": "loading-placeholder"
|
|
@@ -22964,12 +22982,12 @@ const nt = "discussion_form_", ha = ({
|
|
|
22964
22982
|
const q = (Se) => {
|
|
22965
22983
|
G({ ...L, body: Se }), w({ body: Se });
|
|
22966
22984
|
let Pe;
|
|
22967
|
-
!g || !g.id ? Pe =
|
|
22985
|
+
!g || !g.id ? Pe = Mt(
|
|
22968
22986
|
m.formatMessage,
|
|
22969
22987
|
`${nt}error_loggedOut`,
|
|
22970
22988
|
n.type,
|
|
22971
22989
|
"action"
|
|
22972
|
-
) : r ? s > 0 && Se.length >= s && (Pe = `${nt}error_tooLong`) : Pe =
|
|
22990
|
+
) : r ? s > 0 && Se.length >= s && (Pe = `${nt}error_tooLong`) : Pe = Mt(
|
|
22973
22991
|
m.formatMessage,
|
|
22974
22992
|
`${nt}error_noPermission`,
|
|
22975
22993
|
n.type,
|
|
@@ -23017,7 +23035,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
23017
23035
|
}
|
|
23018
23036
|
await zh(1e3), W && await W(Pe), bi = setTimeout(() => {
|
|
23019
23037
|
G({ title: "", body: "" }), M("submitted"), b(
|
|
23020
|
-
|
|
23038
|
+
Mt(m.formatMessage, `${nt}success`, n.type, "action")
|
|
23021
23039
|
);
|
|
23022
23040
|
const we = new Event(it.DISCUSSION_FORM_SUBMITTED);
|
|
23023
23041
|
document.dispatchEvent(we), ae();
|
|
@@ -23025,12 +23043,12 @@ const nt = "discussion_form_", ha = ({
|
|
|
23025
23043
|
} catch (Pe) {
|
|
23026
23044
|
const we = Pe;
|
|
23027
23045
|
let qe = `${nt}error`;
|
|
23028
|
-
we != null && we.message.includes("entry already exists") && (qe =
|
|
23046
|
+
we != null && we.message.includes("entry already exists") && (qe = Mt(
|
|
23029
23047
|
m.formatMessage,
|
|
23030
23048
|
`${nt}error_alreadyExists`,
|
|
23031
23049
|
n.type,
|
|
23032
23050
|
"action"
|
|
23033
|
-
)), we != null && we.message.includes("429") ? qe =
|
|
23051
|
+
)), we != null && we.message.includes("429") ? qe = Mt(
|
|
23034
23052
|
m.formatMessage,
|
|
23035
23053
|
`${nt}error_tooMany`,
|
|
23036
23054
|
n.type,
|
|
@@ -23059,7 +23077,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
23059
23077
|
props: {
|
|
23060
23078
|
id: `${ne}-input`,
|
|
23061
23079
|
value: R === "submitting" && !_ ? "" : L.body,
|
|
23062
|
-
placeholder: a ||
|
|
23080
|
+
placeholder: a || Mt(
|
|
23063
23081
|
m.formatMessage,
|
|
23064
23082
|
`${nt}placeholder`,
|
|
23065
23083
|
n.type,
|
|
@@ -23084,7 +23102,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
23084
23102
|
props: { intlPath: nt, showGuidelines: P, type: n.type, gtmContext: p }
|
|
23085
23103
|
}
|
|
23086
23104
|
];
|
|
23087
|
-
N && Be.push({ component:
|
|
23105
|
+
N && Be.push({ component: an }), F && Be.unshift({
|
|
23088
23106
|
id: "title",
|
|
23089
23107
|
type: "text",
|
|
23090
23108
|
value: F.text,
|
|
@@ -23160,24 +23178,32 @@ const nt = "discussion_form_", ha = ({
|
|
|
23160
23178
|
gtm: { context: p, event: `${n.type}-form` },
|
|
23161
23179
|
"data-testid": `discussion-${n.type}-form`,
|
|
23162
23180
|
children: [
|
|
23163
|
-
I && !x && ["question"].includes(n.type) && /* @__PURE__ */ c.jsx("h2", { children:
|
|
23181
|
+
I && !x && ["question"].includes(n.type) && /* @__PURE__ */ c.jsx("h2", { children: Mt(m.formatMessage, `${nt}title`, n.type, "action") }),
|
|
23164
23182
|
/* @__PURE__ */ c.jsx(
|
|
23165
|
-
|
|
23183
|
+
bn,
|
|
23166
23184
|
{
|
|
23167
23185
|
member: g ? { ...g, link: !1 } : "community",
|
|
23168
23186
|
gtmContext: p,
|
|
23169
23187
|
gtmType: "profile-click",
|
|
23170
23188
|
badges: {
|
|
23171
23189
|
showBadges: !0,
|
|
23172
|
-
|
|
23173
|
-
|
|
23190
|
+
scopes: [
|
|
23191
|
+
{
|
|
23192
|
+
scope: gt.COMMUNITIES,
|
|
23193
|
+
area: t || ""
|
|
23194
|
+
},
|
|
23195
|
+
{
|
|
23196
|
+
scope: gt.PLATFORM,
|
|
23197
|
+
area: "all"
|
|
23198
|
+
}
|
|
23199
|
+
]
|
|
23174
23200
|
}
|
|
23175
23201
|
}
|
|
23176
23202
|
)
|
|
23177
23203
|
]
|
|
23178
23204
|
}
|
|
23179
23205
|
),
|
|
23180
|
-
R === "submitted" && z && /* @__PURE__ */ c.jsx(Pi, { className: "success", "data-testid": "success", children:
|
|
23206
|
+
R === "submitted" && z && /* @__PURE__ */ c.jsx(Pi, { className: "success", "data-testid": "success", children: Mt(m.formatMessage, `${nt}success`, n.type, "action") }),
|
|
23181
23207
|
_ && /* @__PURE__ */ c.jsx(Pi, { id: "error-message", className: "error", "data-testid": "error", children: l.error ? l.error : typeof _ == "string" ? _.includes(" ") ? _ : m.formatMessage(
|
|
23182
23208
|
{ id: _ },
|
|
23183
23209
|
{
|
|
@@ -23247,7 +23273,7 @@ const KC = ({
|
|
|
23247
23273
|
de(() => {
|
|
23248
23274
|
p([{ type: "userLikedContent", value: i }]);
|
|
23249
23275
|
}, [i]);
|
|
23250
|
-
const C =
|
|
23276
|
+
const C = Vt(
|
|
23251
23277
|
() => VC(n, ds),
|
|
23252
23278
|
[n]
|
|
23253
23279
|
), B = (T) => {
|
|
@@ -23495,7 +23521,7 @@ const YC = 3e3, GC = ({
|
|
|
23495
23521
|
}
|
|
23496
23522
|
)
|
|
23497
23523
|
] });
|
|
23498
|
-
},
|
|
23524
|
+
}, qt = "discussion_", QC = 195;
|
|
23499
23525
|
let yi = null;
|
|
23500
23526
|
const ma = ({
|
|
23501
23527
|
element: e = "div",
|
|
@@ -23521,7 +23547,7 @@ const ma = ({
|
|
|
23521
23547
|
badges: b
|
|
23522
23548
|
}) => {
|
|
23523
23549
|
var Ge, Ke, Se, Pe, we, qe, Ve, H;
|
|
23524
|
-
const v = le(), C = Le(
|
|
23550
|
+
const v = le(), C = Le(At), B = Le(jo), {
|
|
23525
23551
|
createContent: E = async () => {
|
|
23526
23552
|
},
|
|
23527
23553
|
deleteContent: x = async () => {
|
|
@@ -23592,7 +23618,7 @@ const ma = ({
|
|
|
23592
23618
|
), _.current && _.current.removeEventListener("transitionend", ye)), ce === "fading" ? "default" : ce));
|
|
23593
23619
|
};
|
|
23594
23620
|
if (i || !t || t.type === "answer" && (!t.slugs || !t.slugs.question) || k.postBody === "" && t.title === "")
|
|
23595
|
-
return /* @__PURE__ */ c.jsx(
|
|
23621
|
+
return /* @__PURE__ */ c.jsx($t, { className: "discussion-card" });
|
|
23596
23622
|
const ve = async ({
|
|
23597
23623
|
title: ee,
|
|
23598
23624
|
body: ce
|
|
@@ -23605,7 +23631,7 @@ const ma = ({
|
|
|
23605
23631
|
}
|
|
23606
23632
|
R({ ...k, title: ee, body: ce, isEditing: !1, didEdit: !0 });
|
|
23607
23633
|
} catch {
|
|
23608
|
-
me(`${
|
|
23634
|
+
me(`${qt}form_error`);
|
|
23609
23635
|
}
|
|
23610
23636
|
}, Be = () => {
|
|
23611
23637
|
if (B && B.updateConversation) {
|
|
@@ -23626,15 +23652,15 @@ const ma = ({
|
|
|
23626
23652
|
}
|
|
23627
23653
|
}, Oe = [
|
|
23628
23654
|
{
|
|
23629
|
-
text: v.formatMessage({ id: `${
|
|
23655
|
+
text: v.formatMessage({ id: `${qt}moreMenu_report` }),
|
|
23630
23656
|
onClick: (ee) => {
|
|
23631
23657
|
ee.stopPropagation();
|
|
23632
23658
|
},
|
|
23633
23659
|
href: `mailto:community@apolitical.co?subject=${encodeURI(
|
|
23634
|
-
v.formatMessage({ id: `${
|
|
23660
|
+
v.formatMessage({ id: `${qt}report_subject` })
|
|
23635
23661
|
)}&body=${encodeURI(
|
|
23636
23662
|
v.formatMessage(
|
|
23637
|
-
{ id: `${
|
|
23663
|
+
{ id: `${qt}report_body` },
|
|
23638
23664
|
{
|
|
23639
23665
|
contentType: t.type || "",
|
|
23640
23666
|
contentSlug: t.slug || "",
|
|
@@ -23647,7 +23673,7 @@ const ma = ({
|
|
|
23647
23673
|
];
|
|
23648
23674
|
return n && D && Oe.push(
|
|
23649
23675
|
{
|
|
23650
|
-
text: v.formatMessage({ id: `${
|
|
23676
|
+
text: v.formatMessage({ id: `${qt}moreMenu_edit` }),
|
|
23651
23677
|
onClick: () => R({ ...k, isEditing: !0 }),
|
|
23652
23678
|
icon: "pencil-paper",
|
|
23653
23679
|
className: "gtm-trackable",
|
|
@@ -23655,7 +23681,7 @@ const ma = ({
|
|
|
23655
23681
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
23656
23682
|
},
|
|
23657
23683
|
{
|
|
23658
|
-
text: v.formatMessage({ id: `${
|
|
23684
|
+
text: v.formatMessage({ id: `${qt}moreMenu_delete` }),
|
|
23659
23685
|
onClick: (ee) => {
|
|
23660
23686
|
ee.preventDefault(), ee.stopPropagation(), q(!0);
|
|
23661
23687
|
},
|
|
@@ -23667,7 +23693,7 @@ const ma = ({
|
|
|
23667
23693
|
}
|
|
23668
23694
|
), r && o.pins && Oe.push({
|
|
23669
23695
|
text: v.formatMessage({
|
|
23670
|
-
id: `${
|
|
23696
|
+
id: `${qt}moreMenu_${t.pinned ? "unpin" : "pin"}`
|
|
23671
23697
|
}),
|
|
23672
23698
|
onClick: t.pinned ? o.pins.deletePin : o.pins.createPin,
|
|
23673
23699
|
icon: t.pinned ? "unpin" : "pin",
|
|
@@ -23707,7 +23733,7 @@ const ma = ({
|
|
|
23707
23733
|
children: [
|
|
23708
23734
|
!k.isEditing && /* @__PURE__ */ c.jsxs("div", { className: "author-section", children: [
|
|
23709
23735
|
/* @__PURE__ */ c.jsx(
|
|
23710
|
-
|
|
23736
|
+
bn,
|
|
23711
23737
|
{
|
|
23712
23738
|
member: w,
|
|
23713
23739
|
additionalContent: { createdAt: S, didEdit: k.didEdit },
|
|
@@ -23717,7 +23743,7 @@ const ma = ({
|
|
|
23717
23743
|
badges: b
|
|
23718
23744
|
}
|
|
23719
23745
|
),
|
|
23720
|
-
t.pinned && /* @__PURE__ */ c.jsx(
|
|
23746
|
+
t.pinned && /* @__PURE__ */ c.jsx(vn, { variant: "naked", size: "xlarge", icon: "pin", children: /* @__PURE__ */ c.jsx(ze, { children: "Pinned Post" }) })
|
|
23721
23747
|
] }),
|
|
23722
23748
|
k.isEditing ? /* @__PURE__ */ c.jsx(
|
|
23723
23749
|
ha,
|
|
@@ -23827,11 +23853,11 @@ const ma = ({
|
|
|
23827
23853
|
"data-gtm-event-context": d,
|
|
23828
23854
|
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
23829
23855
|
screenreaderText: v.formatMessage(
|
|
23830
|
-
{ id: `${
|
|
23856
|
+
{ id: `${qt}comments_screenReader` },
|
|
23831
23857
|
{ count: Y }
|
|
23832
23858
|
),
|
|
23833
23859
|
children: v.formatMessage(
|
|
23834
|
-
{ id: `${
|
|
23860
|
+
{ id: `${qt}comments` },
|
|
23835
23861
|
{ count: Y }
|
|
23836
23862
|
)
|
|
23837
23863
|
}
|
|
@@ -23842,7 +23868,7 @@ const ma = ({
|
|
|
23842
23868
|
styling: { muted: !0 },
|
|
23843
23869
|
onClick: Be,
|
|
23844
23870
|
icon: { icon: "speech-bubble_square" },
|
|
23845
|
-
children: v.formatMessage({ id: `${
|
|
23871
|
+
children: v.formatMessage({ id: `${qt}reply` })
|
|
23846
23872
|
}
|
|
23847
23873
|
) }),
|
|
23848
23874
|
m && /* @__PURE__ */ c.jsx(
|
|
@@ -23922,7 +23948,7 @@ const ma = ({
|
|
|
23922
23948
|
const JC = Kr(
|
|
23923
23949
|
() => Promise.resolve().then(() => VE)
|
|
23924
23950
|
), XC = 65, eE = ({ forceShow: e, form: t, className: n }) => {
|
|
23925
|
-
const r = le(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Le(
|
|
23951
|
+
const r = le(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Le(At) || "community", l = to(o);
|
|
23926
23952
|
l.name || (l.name = r.formatMessage({
|
|
23927
23953
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
23928
23954
|
}));
|
|
@@ -24011,17 +24037,17 @@ const JC = Kr(
|
|
|
24011
24037
|
options: {
|
|
24012
24038
|
forceInline: !0,
|
|
24013
24039
|
overrides: {
|
|
24014
|
-
a:
|
|
24015
|
-
blockquote:
|
|
24016
|
-
br:
|
|
24017
|
-
em:
|
|
24018
|
-
li:
|
|
24019
|
-
ol:
|
|
24020
|
-
p:
|
|
24021
|
-
s:
|
|
24022
|
-
span:
|
|
24023
|
-
strong:
|
|
24024
|
-
ul:
|
|
24040
|
+
a: Nt,
|
|
24041
|
+
blockquote: Nt,
|
|
24042
|
+
br: Nt,
|
|
24043
|
+
em: Nt,
|
|
24044
|
+
li: Nt,
|
|
24045
|
+
ol: Nt,
|
|
24046
|
+
p: Nt,
|
|
24047
|
+
s: Nt,
|
|
24048
|
+
span: Nt,
|
|
24049
|
+
strong: Nt,
|
|
24050
|
+
ul: Nt
|
|
24025
24051
|
}
|
|
24026
24052
|
},
|
|
24027
24053
|
children: f
|
|
@@ -24119,7 +24145,7 @@ const JC = Kr(
|
|
|
24119
24145
|
};
|
|
24120
24146
|
return e ? /* @__PURE__ */ c.jsx(eE, { form: p }) : /* @__PURE__ */ c.jsx(tE, { ...p });
|
|
24121
24147
|
}, Gf = ({ form: e }) => {
|
|
24122
|
-
const t = Le(
|
|
24148
|
+
const t = Le(At), n = le(), [r, i] = ue(!1), a = () => {
|
|
24123
24149
|
Yh(t) || i(!0);
|
|
24124
24150
|
};
|
|
24125
24151
|
de(() => (document.addEventListener(it.DISCUSSION_POST_ADDED, a), () => {
|
|
@@ -24153,7 +24179,7 @@ const ms = "discussion_responses_", nE = ({
|
|
|
24153
24179
|
{ id: `${ms}title` },
|
|
24154
24180
|
{ action: r.formatMessage({ id: `${ms}${e}` }), count: t }
|
|
24155
24181
|
) }),
|
|
24156
|
-
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children:
|
|
24182
|
+
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children: Mt(r.formatMessage, `${ms}empty`, e, e) })
|
|
24157
24183
|
] });
|
|
24158
24184
|
};
|
|
24159
24185
|
const rE = ({
|
|
@@ -24429,7 +24455,7 @@ const nh = () => {
|
|
|
24429
24455
|
thumbnail: "https://some-user-thumbnail.com/avatar1.png"
|
|
24430
24456
|
},
|
|
24431
24457
|
isLoading: !1
|
|
24432
|
-
}),
|
|
24458
|
+
}), Yt = Object.freeze({
|
|
24433
24459
|
id: "some-user-id-2",
|
|
24434
24460
|
name: "some user name 2",
|
|
24435
24461
|
organization: "some user organization 2",
|
|
@@ -24449,7 +24475,7 @@ const nh = () => {
|
|
|
24449
24475
|
time: "2023-11-24T17:52:36.162000",
|
|
24450
24476
|
verb: "post"
|
|
24451
24477
|
}), dE = Object.freeze({
|
|
24452
|
-
actor: `SU:${
|
|
24478
|
+
actor: `SU:${Yt.id}`,
|
|
24453
24479
|
content: "some content 2",
|
|
24454
24480
|
duration: "5.53ms",
|
|
24455
24481
|
feed_id: "some-feed-id-2",
|
|
@@ -24469,7 +24495,7 @@ const nh = () => {
|
|
|
24469
24495
|
time: "2023-11-24T17:56:36.162000",
|
|
24470
24496
|
verb: "post"
|
|
24471
24497
|
}), hE = Object.freeze({
|
|
24472
|
-
actor: `SU:${
|
|
24498
|
+
actor: `SU:${Yt.id}`,
|
|
24473
24499
|
content: "some content 4",
|
|
24474
24500
|
duration: "5.53ms",
|
|
24475
24501
|
feed_id: "some-feed-id-4",
|
|
@@ -24487,13 +24513,13 @@ Object.freeze({
|
|
|
24487
24513
|
data: {},
|
|
24488
24514
|
parent: "",
|
|
24489
24515
|
updated_at: "2023-11-24T17:58:36.162000",
|
|
24490
|
-
user_id:
|
|
24516
|
+
user_id: Yt.id,
|
|
24491
24517
|
children_counts: {},
|
|
24492
24518
|
latest_children: {},
|
|
24493
24519
|
latest_children_extra: {},
|
|
24494
24520
|
own_children: {},
|
|
24495
24521
|
user: {
|
|
24496
|
-
id:
|
|
24522
|
+
id: Yt.id,
|
|
24497
24523
|
data: {},
|
|
24498
24524
|
created_at: "2023-11-24T17:58:36.162000",
|
|
24499
24525
|
updated_at: "2023-11-24T17:58:36.162000"
|
|
@@ -24507,13 +24533,13 @@ Object.freeze({
|
|
|
24507
24533
|
data: {},
|
|
24508
24534
|
parent: "",
|
|
24509
24535
|
updated_at: "2023-11-24T17:58:36.162000",
|
|
24510
|
-
user_id:
|
|
24536
|
+
user_id: Yt.id,
|
|
24511
24537
|
children_counts: {},
|
|
24512
24538
|
latest_children: {},
|
|
24513
24539
|
latest_children_extra: {},
|
|
24514
24540
|
own_children: {},
|
|
24515
24541
|
user: {
|
|
24516
|
-
id:
|
|
24542
|
+
id: Yt.id,
|
|
24517
24543
|
data: {},
|
|
24518
24544
|
created_at: "2023-11-24T17:58:36.162000",
|
|
24519
24545
|
updated_at: "2023-11-24T17:58:36.162000"
|
|
@@ -24523,9 +24549,9 @@ Object.freeze({
|
|
|
24523
24549
|
created_at: "2023-12-03T21:53:45.999851Z",
|
|
24524
24550
|
updated_at: "2023-12-03T21:53:45.999851Z",
|
|
24525
24551
|
id: "some-reply-id-1",
|
|
24526
|
-
user_id:
|
|
24552
|
+
user_id: Yt.id,
|
|
24527
24553
|
user: {
|
|
24528
|
-
id:
|
|
24554
|
+
id: Yt.id,
|
|
24529
24555
|
data: {},
|
|
24530
24556
|
created_at: "2023-08-31T07:11:38.677184Z",
|
|
24531
24557
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
@@ -24563,9 +24589,9 @@ Object.freeze({
|
|
|
24563
24589
|
created_at: "2023-12-03T21:53:45.999851Z",
|
|
24564
24590
|
updated_at: "2023-12-03T21:53:45.999851Z",
|
|
24565
24591
|
id: "some-reply-id-3",
|
|
24566
|
-
user_id:
|
|
24592
|
+
user_id: Yt.id,
|
|
24567
24593
|
user: {
|
|
24568
|
-
id:
|
|
24594
|
+
id: Yt.id,
|
|
24569
24595
|
data: {},
|
|
24570
24596
|
created_at: "2023-08-31T07:11:38.677184Z",
|
|
24571
24597
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
@@ -24987,8 +25013,16 @@ const Q_ = ({
|
|
|
24987
25013
|
userHasOwnerPermissions: r,
|
|
24988
25014
|
badges: {
|
|
24989
25015
|
showBadges: !0,
|
|
24990
|
-
|
|
24991
|
-
|
|
25016
|
+
scopes: [
|
|
25017
|
+
{
|
|
25018
|
+
scope: gt.COMMUNITIES,
|
|
25019
|
+
area: t || ""
|
|
25020
|
+
},
|
|
25021
|
+
{
|
|
25022
|
+
scope: gt.PLATFORM,
|
|
25023
|
+
area: "all"
|
|
25024
|
+
}
|
|
25025
|
+
]
|
|
24992
25026
|
}
|
|
24993
25027
|
}
|
|
24994
25028
|
) }, W);
|
|
@@ -25890,8 +25924,16 @@ const ME = ({
|
|
|
25890
25924
|
styling: { showShareLinkButton: !0 },
|
|
25891
25925
|
badges: {
|
|
25892
25926
|
showBadges: !0,
|
|
25893
|
-
|
|
25894
|
-
|
|
25927
|
+
scopes: [
|
|
25928
|
+
{
|
|
25929
|
+
scope: gt.COMMUNITIES,
|
|
25930
|
+
area: t || ""
|
|
25931
|
+
},
|
|
25932
|
+
{
|
|
25933
|
+
scope: gt.PLATFORM,
|
|
25934
|
+
area: "all"
|
|
25935
|
+
}
|
|
25936
|
+
]
|
|
25895
25937
|
}
|
|
25896
25938
|
},
|
|
25897
25939
|
x
|
|
@@ -26012,8 +26054,16 @@ const RE = ({
|
|
|
26012
26054
|
},
|
|
26013
26055
|
badges: {
|
|
26014
26056
|
showBadges: !0,
|
|
26015
|
-
|
|
26016
|
-
|
|
26057
|
+
scopes: [
|
|
26058
|
+
{
|
|
26059
|
+
scope: gt.COMMUNITIES,
|
|
26060
|
+
area: t || ""
|
|
26061
|
+
},
|
|
26062
|
+
{
|
|
26063
|
+
scope: gt.PLATFORM,
|
|
26064
|
+
area: "all"
|
|
26065
|
+
}
|
|
26066
|
+
]
|
|
26017
26067
|
},
|
|
26018
26068
|
children: /* @__PURE__ */ c.jsx(
|
|
26019
26069
|
ME,
|
|
@@ -26191,7 +26241,7 @@ const X_ = ({
|
|
|
26191
26241
|
queryKey: [e, t, n]
|
|
26192
26242
|
});
|
|
26193
26243
|
if (f)
|
|
26194
|
-
return /* @__PURE__ */ c.jsx(
|
|
26244
|
+
return /* @__PURE__ */ c.jsx($t, { style: { height: "400px" } });
|
|
26195
26245
|
if (g || !m)
|
|
26196
26246
|
return /* @__PURE__ */ c.jsx(
|
|
26197
26247
|
In,
|
|
@@ -26264,8 +26314,16 @@ const X_ = ({
|
|
|
26264
26314
|
userHasOwnerPermissions: i,
|
|
26265
26315
|
badges: {
|
|
26266
26316
|
showBadges: !0,
|
|
26267
|
-
|
|
26268
|
-
|
|
26317
|
+
scopes: [
|
|
26318
|
+
{
|
|
26319
|
+
scope: gt.COMMUNITIES,
|
|
26320
|
+
area: t || ""
|
|
26321
|
+
},
|
|
26322
|
+
{
|
|
26323
|
+
scope: gt.PLATFORM,
|
|
26324
|
+
area: "all"
|
|
26325
|
+
}
|
|
26326
|
+
]
|
|
26269
26327
|
}
|
|
26270
26328
|
},
|
|
26271
26329
|
n
|
|
@@ -26507,8 +26565,8 @@ const ZE = ({
|
|
|
26507
26565
|
member: r,
|
|
26508
26566
|
className: i = ""
|
|
26509
26567
|
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: Z("testimonial-block", i), children: [
|
|
26510
|
-
/* @__PURE__ */ c.jsx(
|
|
26511
|
-
r ? /* @__PURE__ */ c.jsx(
|
|
26568
|
+
/* @__PURE__ */ c.jsx(Kt, { className: "testimonial", children: n }),
|
|
26569
|
+
r ? /* @__PURE__ */ c.jsx(bn, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26512
26570
|
e && /* @__PURE__ */ c.jsx(
|
|
26513
26571
|
"p",
|
|
26514
26572
|
{
|
|
@@ -26528,7 +26586,7 @@ const ZE = ({
|
|
|
26528
26586
|
}
|
|
26529
26587
|
)
|
|
26530
26588
|
] })
|
|
26531
|
-
] }), nk =
|
|
26589
|
+
] }), nk = Gt(ZE);
|
|
26532
26590
|
const rk = ({
|
|
26533
26591
|
items: e = [],
|
|
26534
26592
|
selector: t = "",
|
|
@@ -26550,7 +26608,7 @@ const rk = ({
|
|
|
26550
26608
|
}));
|
|
26551
26609
|
a(l);
|
|
26552
26610
|
}, []), i && i.length > 0 && /* @__PURE__ */ c.jsxs(
|
|
26553
|
-
|
|
26611
|
+
Zt,
|
|
26554
26612
|
{
|
|
26555
26613
|
variant: "subtle",
|
|
26556
26614
|
className: Z("table-of-contents", n),
|
|
@@ -26725,7 +26783,7 @@ const YE = [
|
|
|
26725
26783
|
] })
|
|
26726
26784
|
}
|
|
26727
26785
|
);
|
|
26728
|
-
}, ak =
|
|
26786
|
+
}, ak = Gt(GE);
|
|
26729
26787
|
const sk = ({
|
|
26730
26788
|
image: e,
|
|
26731
26789
|
variant: t = "default",
|
|
@@ -26787,7 +26845,7 @@ const QE = ({
|
|
|
26787
26845
|
}
|
|
26788
26846
|
)
|
|
26789
26847
|
] });
|
|
26790
|
-
}, ok =
|
|
26848
|
+
}, ok = Gt(QE);
|
|
26791
26849
|
const uk = ({
|
|
26792
26850
|
variant: e = "primary",
|
|
26793
26851
|
button: t = null,
|
|
@@ -26844,7 +26902,7 @@ const uk = ({
|
|
|
26844
26902
|
return /* @__PURE__ */ c.jsx("p", { className: "details", children: s ? n.formatMessage({ id: "card_bootcamp" }) : zc(d) });
|
|
26845
26903
|
if (o)
|
|
26846
26904
|
return /* @__PURE__ */ c.jsx(
|
|
26847
|
-
|
|
26905
|
+
vn,
|
|
26848
26906
|
{
|
|
26849
26907
|
variant: o === "free" ? "subtle" : "highlighted",
|
|
26850
26908
|
className: o,
|
|
@@ -27029,7 +27087,7 @@ function t_({ buildMemberData: e, communitySlug: t }) {
|
|
|
27029
27087
|
});
|
|
27030
27088
|
}, [t, e]), /* @__PURE__ */ c.jsxs("span", { className: "member-information", children: [
|
|
27031
27089
|
r.isMember && /* @__PURE__ */ c.jsx(
|
|
27032
|
-
|
|
27090
|
+
vn,
|
|
27033
27091
|
{
|
|
27034
27092
|
size: "small",
|
|
27035
27093
|
variant: "registered",
|
|
@@ -27052,7 +27110,7 @@ const ih = ({
|
|
|
27052
27110
|
setFocus: l = !1
|
|
27053
27111
|
}) => {
|
|
27054
27112
|
var z, w;
|
|
27055
|
-
const u = le(), d = Le(
|
|
27113
|
+
const u = le(), d = Le(At), h = !!(d != null && d.id), p = ie.useRef(null), [m, g] = ue({
|
|
27056
27114
|
data: null,
|
|
27057
27115
|
isLoading: !0
|
|
27058
27116
|
});
|
|
@@ -27064,7 +27122,7 @@ const ih = ({
|
|
|
27064
27122
|
const { data: f, isLoading: b } = m;
|
|
27065
27123
|
if (b || !f)
|
|
27066
27124
|
return /* @__PURE__ */ c.jsx(
|
|
27067
|
-
|
|
27125
|
+
$t,
|
|
27068
27126
|
{
|
|
27069
27127
|
element: "li",
|
|
27070
27128
|
className: "card-wrapper",
|
|
@@ -27077,7 +27135,7 @@ const ih = ({
|
|
|
27077
27135
|
});
|
|
27078
27136
|
const { contentType: v } = f;
|
|
27079
27137
|
if (!v || !ta[v])
|
|
27080
|
-
return /* @__PURE__ */ c.jsx(
|
|
27138
|
+
return /* @__PURE__ */ c.jsx($t, { element: "li", className: "card-wrapper" });
|
|
27081
27139
|
const {
|
|
27082
27140
|
basePath: C = "",
|
|
27083
27141
|
className: B,
|
|
@@ -27123,9 +27181,9 @@ const ih = ({
|
|
|
27123
27181
|
customLabel: f.customLabel
|
|
27124
27182
|
}
|
|
27125
27183
|
),
|
|
27126
|
-
v === "communityPage" && (f == null ? void 0 : f.createdAt) && Lh(f == null ? void 0 : f.createdAt, 60) && /* @__PURE__ */ c.jsx(
|
|
27184
|
+
v === "communityPage" && (f == null ? void 0 : f.createdAt) && Lh(f == null ? void 0 : f.createdAt, 60) && /* @__PURE__ */ c.jsx(vn, { size: "small", variant: "information", "data-testid": "new-community", children: u.formatMessage({ id: "card_new" }) }),
|
|
27127
27185
|
f.startDate && !f.isOngoingEvent && /* @__PURE__ */ c.jsx(
|
|
27128
|
-
|
|
27186
|
+
vn,
|
|
27129
27187
|
{
|
|
27130
27188
|
size: "small",
|
|
27131
27189
|
variant: f.dateHasPassed ? "default" : "information",
|
|
@@ -27134,7 +27192,7 @@ const ih = ({
|
|
|
27134
27192
|
}
|
|
27135
27193
|
),
|
|
27136
27194
|
f.banner ? /* @__PURE__ */ c.jsxs("p", { className: "img", children: [
|
|
27137
|
-
f.registered && /* @__PURE__ */ c.jsx(
|
|
27195
|
+
f.registered && /* @__PURE__ */ c.jsx(vn, { size: "small", variant: "registered", children: u.formatMessage({ id: "card_registered" }) }),
|
|
27138
27196
|
/* @__PURE__ */ c.jsx(Yr, { image: { ...f.banner, description: "" } })
|
|
27139
27197
|
] }) : B === "people" ? /* @__PURE__ */ c.jsx(
|
|
27140
27198
|
$n,
|
|
@@ -27178,7 +27236,7 @@ const ih = ({
|
|
|
27178
27236
|
S,
|
|
27179
27237
|
I[A]
|
|
27180
27238
|
);
|
|
27181
|
-
return ["title", "text"].includes(A) && F ? (K.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...W, children: /* @__PURE__ */ c.jsx(
|
|
27239
|
+
return ["title", "text"].includes(A) && F ? (K.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...W, children: /* @__PURE__ */ c.jsx(Kt, { options: K, ...N, children: Y }) })) : /* @__PURE__ */ c.jsx(Kt, { options: K, ...W, children: Y });
|
|
27182
27240
|
}),
|
|
27183
27241
|
i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
|
|
27184
27242
|
t_,
|
|
@@ -27346,7 +27404,7 @@ const a_ = ({
|
|
|
27346
27404
|
},
|
|
27347
27405
|
S
|
|
27348
27406
|
) : (S = S || `${e}-card-${A}`, /* @__PURE__ */ c.jsx(
|
|
27349
|
-
|
|
27407
|
+
$t,
|
|
27350
27408
|
{
|
|
27351
27409
|
element: "li",
|
|
27352
27410
|
className: "card-wrapper",
|
|
@@ -27432,7 +27490,7 @@ const a_ = ({
|
|
|
27432
27490
|
"data-testid": "carousel-placeholder"
|
|
27433
27491
|
}
|
|
27434
27492
|
),
|
|
27435
|
-
h ? null : /* @__PURE__ */ c.jsx(
|
|
27493
|
+
h ? null : /* @__PURE__ */ c.jsx(an, {})
|
|
27436
27494
|
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
27437
27495
|
/* @__PURE__ */ c.jsx(
|
|
27438
27496
|
a_,
|
|
@@ -27443,7 +27501,7 @@ const a_ = ({
|
|
|
27443
27501
|
...i
|
|
27444
27502
|
}
|
|
27445
27503
|
),
|
|
27446
|
-
h ? null : /* @__PURE__ */ c.jsx(
|
|
27504
|
+
h ? null : /* @__PURE__ */ c.jsx(an, {})
|
|
27447
27505
|
] }, `carousel-${d}`);
|
|
27448
27506
|
}
|
|
27449
27507
|
);
|
|
@@ -27741,7 +27799,7 @@ const xi = "notFoundError_", mk = () => {
|
|
|
27741
27799
|
);
|
|
27742
27800
|
};
|
|
27743
27801
|
export {
|
|
27744
|
-
|
|
27802
|
+
rn as ASSETS_BUCKET,
|
|
27745
27803
|
Q_ as ActivitiesFeed,
|
|
27746
27804
|
X_ as ActivitySection,
|
|
27747
27805
|
Yf as AddPost,
|
|
@@ -27781,7 +27839,7 @@ export {
|
|
|
27781
27839
|
KC as DiscussionLikes,
|
|
27782
27840
|
ma as DiscussionPost,
|
|
27783
27841
|
rE as DiscussionThread,
|
|
27784
|
-
|
|
27842
|
+
an as Divider,
|
|
27785
27843
|
U_ as DownloadSection,
|
|
27786
27844
|
kr as EMAILS,
|
|
27787
27845
|
H_ as EditSection,
|
|
@@ -27793,7 +27851,7 @@ export {
|
|
|
27793
27851
|
Vf as Footer,
|
|
27794
27852
|
Dn as Form,
|
|
27795
27853
|
V as Formatting,
|
|
27796
|
-
|
|
27854
|
+
Nt as Fragment,
|
|
27797
27855
|
qn as FullWidthSection,
|
|
27798
27856
|
Ko as GET_STREAM_USER_PREFIX,
|
|
27799
27857
|
O_ as GlobalProviders,
|
|
@@ -27802,7 +27860,7 @@ export {
|
|
|
27802
27860
|
Qs as HiddenFromScreenReaders,
|
|
27803
27861
|
am as HideShowTextBox,
|
|
27804
27862
|
ok as HighlightSection,
|
|
27805
|
-
|
|
27863
|
+
Zt as HighlightedTextBox,
|
|
27806
27864
|
Mh as INVALID_TOKEN,
|
|
27807
27865
|
S_ as IconBulletedList,
|
|
27808
27866
|
B_ as ImageContainer,
|
|
@@ -27817,7 +27875,7 @@ export {
|
|
|
27817
27875
|
Rn as Link,
|
|
27818
27876
|
ia as LoadMore,
|
|
27819
27877
|
j_ as LoadingBlock,
|
|
27820
|
-
|
|
27878
|
+
$t as LoadingPlaceholder,
|
|
27821
27879
|
Zc as LoadingState,
|
|
27822
27880
|
pd as Logo,
|
|
27823
27881
|
V_ as LogoSection,
|
|
@@ -27825,8 +27883,8 @@ export {
|
|
|
27825
27883
|
fk as MarkCompleteButton,
|
|
27826
27884
|
ar as MarkdownText,
|
|
27827
27885
|
uk as MarketingBlock,
|
|
27828
|
-
|
|
27829
|
-
|
|
27886
|
+
nn as Marks,
|
|
27887
|
+
bn as Member,
|
|
27830
27888
|
G_ as MembersList,
|
|
27831
27889
|
nd as Modal,
|
|
27832
27890
|
Np as MoreMenu,
|
|
@@ -27841,7 +27899,7 @@ export {
|
|
|
27841
27899
|
IC as PageLayout,
|
|
27842
27900
|
q_ as PasswordForm,
|
|
27843
27901
|
ng as PasswordRules,
|
|
27844
|
-
|
|
27902
|
+
vn as Pill,
|
|
27845
27903
|
Xh as Popover,
|
|
27846
27904
|
ra as Portal,
|
|
27847
27905
|
BC as ProfileForm,
|
|
@@ -27871,7 +27929,7 @@ export {
|
|
|
27871
27929
|
hr as Tooltip,
|
|
27872
27930
|
Z_ as TopLevelPage,
|
|
27873
27931
|
ji as UUID_V4_REGEX,
|
|
27874
|
-
|
|
27932
|
+
At as UserContext,
|
|
27875
27933
|
km as UserProvider,
|
|
27876
27934
|
ze as VisuallyHidden,
|
|
27877
27935
|
Op as addAriaProps,
|