@solibo/solibo-ui 0.2.17 → 0.2.18
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as X, jsxs as pu, Fragment as Ta } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as Fu from "react";
|
|
3
3
|
import { createContext as p0, useContext as g0, useEffect as ve, useMemo as Vn, useLayoutEffect as ln, forwardRef as Ca, useState as De, useCallback as Ea, useRef as Na, Suspense as m0 } from "react";
|
|
4
4
|
import { flushSync as b0, createPortal as y0 } from "react-dom";
|
|
5
5
|
import { t as pn } from "../../classix-DG18itHa.js";
|
|
@@ -9,9 +9,9 @@ import { Input as x0 } from "../input/index.js";
|
|
|
9
9
|
import '../../assets/index12.css';function Gn(n) {
|
|
10
10
|
return {};
|
|
11
11
|
}
|
|
12
|
-
const Wi = {}, _0 = {}, ka = {}, kt = {}, Xt = {}, Pn = {}, Zt = {}, gu = {}, ni = {}, In = {}, Ln = {},
|
|
12
|
+
const Wi = {}, _0 = {}, ka = {}, kt = {}, Xt = {}, Pn = {}, Zt = {}, gu = {}, ni = {}, In = {}, Ln = {}, $e = {}, Hi = {}, Vi = {}, v0 = {}, Aa = {}, w0 = {}, Oa = {}, S0 = {}, Pa = {}, Ia = {}, Ur = {}, T0 = {}, La = {}, Da = {}, Ma = {}, C0 = {}, E0 = {}, N0 = {}, qs = {}, Ra = {}, k0 = {}, Ba = {}, Fa = {}, A0 = {}, mu = {}, Gi = {}, ri = {}, O0 = {}, P0 = {}, gr = {}, mr = {}, I0 = {}, L0 = {}, D0 = {}, Be = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, M0 = Be && "documentMode" in document ? document.documentMode : null, Ae = Be && /Mac|iPod|iPhone|iPad/.test(navigator.platform), pt = Be && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), jr = !(!Be || !("InputEvent" in window) || M0) && "getTargetRanges" in new window.InputEvent("input"), bu = Be && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Kn = Be && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, R0 = Be && /Android/.test(navigator.userAgent), qa = Be && /^(?=.*Chrome).*/i.test(navigator.userAgent), B0 = Be && R0 && qa, Ki = Be && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !qa, Jn = 1, bt = 3, Ot = 0, Ua = 1, en = 2, F0 = 0, q0 = 1, U0 = 2, zr = 4, $r = 8, Ji = 128, j0 = 112 | (3 | zr | $r) | Ji, Xi = 1, Zi = 2, Qi = 3, Yi = 4, es = 5, ts = 6, yu = bu || Kn || Ki ? " " : "", Qe = `
|
|
13
13
|
|
|
14
|
-
`,
|
|
14
|
+
`, z0 = pt ? " " : yu, ja = "֑-߿יִ-﷽ﹰ-ﻼ", za = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", $0 = new RegExp("^[^" + za + "]*[" + ja + "]"), W0 = new RegExp("^[^" + ja + "]*[" + za + "]"), Pt = { bold: 1, code: 16, highlight: Ji, italic: 2, strikethrough: zr, subscript: 32, superscript: 64, underline: $r }, H0 = { directionless: 1, unmergeable: 2 }, Us = { center: Zi, end: ts, justify: Yi, left: Xi, right: Qi, start: es }, V0 = { [Zi]: "center", [ts]: "end", [Yi]: "justify", [Xi]: "left", [Qi]: "right", [es]: "start" }, G0 = { normal: 0, segmented: 2, token: 1 }, K0 = { [F0]: "normal", [U0]: "segmented", [q0]: "token" };
|
|
15
15
|
function J0(n) {
|
|
16
16
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
17
17
|
}
|
|
@@ -31,7 +31,7 @@ let ui = !1, ns = 0;
|
|
|
31
31
|
function Z0(n) {
|
|
32
32
|
ns = n.timeStamp;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function qu(n, e, t) {
|
|
35
35
|
const r = n.nodeName === "BR", u = e.__lexicalLineBreak;
|
|
36
36
|
return u && (n === u || r && n.previousSibling === u) || r && _u(n, t) !== void 0;
|
|
37
37
|
}
|
|
@@ -58,14 +58,14 @@ function ef(n, e, t, r) {
|
|
|
58
58
|
} else if (u === r) return [r, Za(t)];
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function $a(n, e, t) {
|
|
62
62
|
ui = !0;
|
|
63
63
|
const r = performance.now() - ns > X0;
|
|
64
64
|
try {
|
|
65
65
|
Te(n, () => {
|
|
66
|
-
const u =
|
|
66
|
+
const u = F() || function(c) {
|
|
67
67
|
return c.getEditorState().read(() => {
|
|
68
|
-
const d =
|
|
68
|
+
const d = F();
|
|
69
69
|
return d !== null ? d.clone() : null;
|
|
70
70
|
});
|
|
71
71
|
}(n), i = /* @__PURE__ */ new Map(), s = n.getRootElement(), o = n._editorState, a = n._blockCursorElement;
|
|
@@ -80,10 +80,10 @@ function za(n, e, t) {
|
|
|
80
80
|
const _ = d.addedNodes;
|
|
81
81
|
for (let S = 0; S < _.length; S++) {
|
|
82
82
|
const P = _[S], C = Ja(P), D = P.parentNode;
|
|
83
|
-
if (D != null && P !== a && C === null && !
|
|
83
|
+
if (D != null && P !== a && C === null && !qu(P, D, n)) {
|
|
84
84
|
if (pt) {
|
|
85
|
-
const
|
|
86
|
-
|
|
85
|
+
const U = P.innerText || P.nodeValue;
|
|
86
|
+
U && (f += U);
|
|
87
87
|
}
|
|
88
88
|
D.removeChild(P);
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@ function za(n, e, t) {
|
|
|
93
93
|
let S = 0;
|
|
94
94
|
for (let P = 0; P < T; P++) {
|
|
95
95
|
const C = w[P];
|
|
96
|
-
(
|
|
96
|
+
(qu(C, m, n) || a === C) && (m.appendChild(C), S++);
|
|
97
97
|
}
|
|
98
98
|
T !== S && i.set(y, b);
|
|
99
99
|
}
|
|
@@ -106,7 +106,7 @@ function za(n, e, t) {
|
|
|
106
106
|
const d = h[c], p = d.addedNodes, m = d.target;
|
|
107
107
|
for (let g = 0; g < p.length; g++) {
|
|
108
108
|
const y = p[g], b = y.parentNode;
|
|
109
|
-
b == null || y.nodeName !== "BR" ||
|
|
109
|
+
b == null || y.nodeName !== "BR" || qu(y, m, n) || b.removeChild(y);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
t.takeRecords();
|
|
@@ -119,30 +119,30 @@ function za(n, e, t) {
|
|
|
119
119
|
}
|
|
120
120
|
function Wa(n) {
|
|
121
121
|
const e = n._observer;
|
|
122
|
-
e !== null &&
|
|
122
|
+
e !== null && $a(n, e.takeRecords(), e);
|
|
123
123
|
}
|
|
124
124
|
function Ha(n) {
|
|
125
125
|
(function(e) {
|
|
126
126
|
ns === 0 && wu(e).addEventListener("textInput", Z0, !0);
|
|
127
127
|
})(n), n._observer = new MutationObserver((e, t) => {
|
|
128
|
-
|
|
128
|
+
$a(n, e, t);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function js(n, e) {
|
|
132
132
|
const t = n.__mode, r = n.__format, u = n.__style, i = e.__mode, s = e.__format, o = e.__style;
|
|
133
133
|
return !(t !== null && t !== i || r !== null && r !== s || u !== null && u !== o);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function zs(n, e) {
|
|
136
136
|
const t = n.mergeWithSibling(e), r = re()._normalizedNodes;
|
|
137
137
|
return r.add(n.__key), r.add(e.__key), t;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function $s(n) {
|
|
140
140
|
let e, t, r = n;
|
|
141
141
|
if (r.__text !== "" || !r.isSimpleText() || r.isUnmergeable()) {
|
|
142
142
|
for (; (e = r.getPreviousSibling()) !== null && M(e) && e.isSimpleText() && !e.isUnmergeable(); ) {
|
|
143
143
|
if (e.__text !== "") {
|
|
144
|
-
if (
|
|
145
|
-
r =
|
|
144
|
+
if (js(e, r)) {
|
|
145
|
+
r = zs(e, r);
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
break;
|
|
@@ -151,8 +151,8 @@ function zs(n) {
|
|
|
151
151
|
}
|
|
152
152
|
for (; (t = r.getNextSibling()) !== null && M(t) && t.isSimpleText() && !t.isUnmergeable(); ) {
|
|
153
153
|
if (t.__text !== "") {
|
|
154
|
-
if (
|
|
155
|
-
r =
|
|
154
|
+
if (js(r, t)) {
|
|
155
|
+
r = zs(r, t);
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
158
|
break;
|
|
@@ -236,7 +236,7 @@ function uf(n, e) {
|
|
|
236
236
|
if (e != null) return void (n.__key = e);
|
|
237
237
|
be(), wl();
|
|
238
238
|
const t = re(), r = nt(), u = "" + tf++;
|
|
239
|
-
r._nodeMap.set(u, n), E(n) ? t._dirtyElements.set(u, !0) : t._dirtyLeaves.add(u), t._cloneNotNeeded.add(u), t._dirtyType =
|
|
239
|
+
r._nodeMap.set(u, n), E(n) ? t._dirtyElements.set(u, !0) : t._dirtyLeaves.add(u), t._cloneNotNeeded.add(u), t._dirtyType = Ua, n.__key = u;
|
|
240
240
|
}
|
|
241
241
|
function At(n) {
|
|
242
242
|
const e = n.getParent();
|
|
@@ -282,7 +282,7 @@ function Gr(n) {
|
|
|
282
282
|
}
|
|
283
283
|
}(t, i, s);
|
|
284
284
|
const o = e.__key;
|
|
285
|
-
u._dirtyType =
|
|
285
|
+
u._dirtyType = Ua, E(n) ? s.set(o, !0) : u._dirtyLeaves.add(o);
|
|
286
286
|
}
|
|
287
287
|
function le(n) {
|
|
288
288
|
be();
|
|
@@ -408,7 +408,7 @@ function os(n, e, t, r, u) {
|
|
|
408
408
|
}
|
|
409
409
|
const l = i.getParent(), f = tr(), h = i.getTextContentSize(), c = ct(), d = i.getKey();
|
|
410
410
|
if (i.isToken() || c !== null && d === c && !s || I(f) && (l !== null && !l.canInsertTextBefore() && f.anchor.offset === 0 || f.anchor.key === n.__key && f.anchor.offset === 0 && !i.canInsertTextBefore() && !s || f.focus.key === n.__key && f.focus.offset === h && !i.canInsertTextAfter() && !s)) return void i.markDirty();
|
|
411
|
-
const p =
|
|
411
|
+
const p = F();
|
|
412
412
|
if (!I(p) || t === null || r === null) return void i.setTextContent(o);
|
|
413
413
|
if (p.setTextNodeRange(i, t, i, r), i.isSegmented()) {
|
|
414
414
|
const m = ie(i.getTextContent());
|
|
@@ -542,10 +542,10 @@ function yt(n) {
|
|
|
542
542
|
}
|
|
543
543
|
return n;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Uu(n, e) {
|
|
546
546
|
!de(n.getParent()) || E(e) || ee(e) || L(99);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function ju(n) {
|
|
549
549
|
return (ee(n) || E(n) && !n.canBeEmpty()) && !n.isInline();
|
|
550
550
|
}
|
|
551
551
|
function ls(n, e, t) {
|
|
@@ -559,12 +559,12 @@ function lf(n, e, t) {
|
|
|
559
559
|
const u = t.anchor, i = u.getNode(), s = u.offset;
|
|
560
560
|
let o = !1, a = null;
|
|
561
561
|
if (s === i.getChildrenSize())
|
|
562
|
-
|
|
562
|
+
ju(i.getChildAtIndex(s - 1)) && (o = !0);
|
|
563
563
|
else {
|
|
564
564
|
const l = i.getChildAtIndex(s);
|
|
565
|
-
if (l !== null &&
|
|
565
|
+
if (l !== null && ju(l)) {
|
|
566
566
|
const f = l.getPreviousSibling();
|
|
567
|
-
(f === null ||
|
|
567
|
+
(f === null || ju(f)) && (o = !0, a = n.getElementByKey(l.__key));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
if (o) {
|
|
@@ -653,7 +653,7 @@ function nl(n, e, t, r, u, i) {
|
|
|
653
653
|
s.__parent === e && (E(s) && nl(s, o, t, r, u, i), t.has(o) || i.delete(o), u.push(o)), s = s.getNextSibling();
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
let mt, he, Mn, Su, si, oi, It, Me, ai, Rn, se = "", fe = "",
|
|
656
|
+
let mt, he, Mn, Su, si, oi, It, Me, ai, Rn, se = "", fe = "", Ue = null, Oe = "", Ze = "", rl = !1, Bn = !1, Lr = null;
|
|
657
657
|
function Xr(n, e) {
|
|
658
658
|
const t = It.get(n);
|
|
659
659
|
if (e !== null) {
|
|
@@ -727,7 +727,7 @@ function ci(n, e, t, r, u) {
|
|
|
727
727
|
for (; s <= r; ++s) {
|
|
728
728
|
Zr(n[s], u);
|
|
729
729
|
const o = Me.get(n[s]);
|
|
730
|
-
o !== null && M(o) && (
|
|
730
|
+
o !== null && M(o) && (Ue === null && (Ue = o.getFormat()), Oe === "" && (Oe = o.getStyle()));
|
|
731
731
|
}
|
|
732
732
|
vu(e) && (se += Qe), u.element.__lexicalTextContent = se, se = i + se;
|
|
733
733
|
}
|
|
@@ -749,7 +749,7 @@ function sl(n, e, t) {
|
|
|
749
749
|
function ol(n, e) {
|
|
750
750
|
const t = e.__lexicalDirTextContent || "", r = e.__lexicalDir || "";
|
|
751
751
|
if (t !== fe || r !== Lr) {
|
|
752
|
-
const i = fe === "", s = i ? Lr : (u = fe,
|
|
752
|
+
const i = fe === "", s = i ? Lr : (u = fe, $0.test(u) ? "rtl" : W0.test(u) ? "ltr" : null);
|
|
753
753
|
if (s !== r) {
|
|
754
754
|
const o = e.classList, a = mt.theme;
|
|
755
755
|
let l = r !== null ? a[r] : void 0, f = s !== null ? a[s] : void 0;
|
|
@@ -780,7 +780,7 @@ function ol(n, e) {
|
|
|
780
780
|
function bf(n, e, t) {
|
|
781
781
|
const r = fe;
|
|
782
782
|
var u;
|
|
783
|
-
fe = "",
|
|
783
|
+
fe = "", Ue = null, Oe = "", function(i, s, o) {
|
|
784
784
|
const a = se, l = i.__size, f = s.__size;
|
|
785
785
|
se = "";
|
|
786
786
|
const h = o.element;
|
|
@@ -801,7 +801,7 @@ function bf(n, e, t) {
|
|
|
801
801
|
Xr(c, null);
|
|
802
802
|
}
|
|
803
803
|
const p = Me.get(d);
|
|
804
|
-
M(p) && (
|
|
804
|
+
M(p) && (Ue === null && (Ue = p.getFormat()), Oe === "" && (Oe = p.getStyle()));
|
|
805
805
|
} else {
|
|
806
806
|
const c = Qr(i, It), d = Qr(s, Me);
|
|
807
807
|
if (c.length !== l && L(227), d.length !== f && L(228), l === 0) f !== 0 && ci(d, s, 0, f - 1, o);
|
|
@@ -812,31 +812,31 @@ function bf(n, e, t) {
|
|
|
812
812
|
}
|
|
813
813
|
} else (function(p, m, g, y, b, _) {
|
|
814
814
|
const w = y - 1, T = b - 1;
|
|
815
|
-
let S, P, C = _.getFirstChild(), D = 0,
|
|
816
|
-
for (; D <= w &&
|
|
817
|
-
const A = m[D], B = g[
|
|
818
|
-
if (A === B) C =
|
|
815
|
+
let S, P, C = _.getFirstChild(), D = 0, U = 0;
|
|
816
|
+
for (; D <= w && U <= T; ) {
|
|
817
|
+
const A = m[D], B = g[U];
|
|
818
|
+
if (A === B) C = zu(Sn(B, _.element)), D++, U++;
|
|
819
819
|
else {
|
|
820
820
|
S === void 0 && (S = new Set(m)), P === void 0 && (P = new Set(g));
|
|
821
821
|
const O = P.has(A), k = S.has(B);
|
|
822
822
|
if (O) if (k) {
|
|
823
|
-
const
|
|
824
|
-
|
|
825
|
-
} else Zr(B, _.withBefore(C)),
|
|
826
|
-
else C =
|
|
823
|
+
const q = Kr(he, B);
|
|
824
|
+
q === C ? C = zu(Sn(B, _.element)) : (_.withBefore(C).insertChild(q), Sn(B, _.element)), D++, U++;
|
|
825
|
+
} else Zr(B, _.withBefore(C)), U++;
|
|
826
|
+
else C = zu(fi(A)), Xr(A, _.element), D++;
|
|
827
827
|
}
|
|
828
828
|
const x = Me.get(B);
|
|
829
|
-
x !== null && M(x) && (
|
|
829
|
+
x !== null && M(x) && (Ue === null && (Ue = x.getFormat()), Oe === "" && (Oe = x.getStyle()));
|
|
830
830
|
}
|
|
831
|
-
const v = D > w, N =
|
|
831
|
+
const v = D > w, N = U > T;
|
|
832
832
|
if (v && !N) {
|
|
833
833
|
const A = g[T + 1], B = A === void 0 ? null : he.getElementByKey(A);
|
|
834
|
-
ci(g, p,
|
|
834
|
+
ci(g, p, U, T, _.withBefore(B));
|
|
835
835
|
} else N && !v && li(m, D, w, _.element);
|
|
836
836
|
})(s, c, d, l, f, o);
|
|
837
837
|
}
|
|
838
838
|
vu(s) && (se += Qe), h.__lexicalTextContent = se, se = a + se;
|
|
839
|
-
}(n, e, e.getDOMSlot(t)), ol(e, t), nn(u = e) &&
|
|
839
|
+
}(n, e, e.getDOMSlot(t)), ol(e, t), nn(u = e) && Ue != null && Ue !== u.__textFormat && !Bn && (u.setTextFormat(Ue), u.setTextStyle(Oe)), function(i) {
|
|
840
840
|
nn(i) && Oe !== "" && Oe !== i.__textStyle && !Bn && i.setTextStyle(Oe);
|
|
841
841
|
}(e), fe = r;
|
|
842
842
|
}
|
|
@@ -898,7 +898,7 @@ function al(n, e) {
|
|
|
898
898
|
}
|
|
899
899
|
t[n] = e;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function zu(n) {
|
|
902
902
|
let e = n.nextSibling;
|
|
903
903
|
return e !== null && e === he._blockCursorElement && (e = e.nextSibling), e;
|
|
904
904
|
}
|
|
@@ -939,7 +939,7 @@ const Ge = Object.freeze({}), di = 30, hi = [["keydown", function(n, e) {
|
|
|
939
939
|
}(t, u, i)) R(e, Ia, n);
|
|
940
940
|
else if (function(o, a) {
|
|
941
941
|
return Js(o) && a;
|
|
942
|
-
}(t, r)) Nn = !0, R(e,
|
|
942
|
+
}(t, r)) Nn = !0, R(e, Ur, n);
|
|
943
943
|
else if (/* @__PURE__ */ function(o) {
|
|
944
944
|
return o === " ";
|
|
945
945
|
}(t)) R(e, T0, n);
|
|
@@ -948,7 +948,7 @@ const Ge = Object.freeze({}), di = 30, hi = [["keydown", function(n, e) {
|
|
|
948
948
|
}(t, u)) n.preventDefault(), Nn = !0, R(e, Xt, !0);
|
|
949
949
|
else if (function(o, a) {
|
|
950
950
|
return Js(o) && !a;
|
|
951
|
-
}(t, r)) Nn = !1, R(e,
|
|
951
|
+
}(t, r)) Nn = !1, R(e, Ur, n);
|
|
952
952
|
else if (function(o, a, l, f) {
|
|
953
953
|
return Ae ? !a && !l && (gn(o) || o.toLowerCase() === "h" && f) : !(f || a || l) && gn(o);
|
|
954
954
|
}(t, s, i, u)) gn(t) ? R(e, La, n) : (n.preventDefault(), R(e, kt, !0));
|
|
@@ -972,13 +972,13 @@ const Ge = Object.freeze({}), di = 30, hi = [["keydown", function(n, e) {
|
|
|
972
972
|
}(t, i)) n.preventDefault(), R(e, Ln, !1);
|
|
973
973
|
else if (function(o, a, l, f) {
|
|
974
974
|
return o.toLowerCase() === "b" && !a && wn(l, f);
|
|
975
|
-
}(t, s, i, u)) n.preventDefault(), R(e,
|
|
975
|
+
}(t, s, i, u)) n.preventDefault(), R(e, $e, "bold");
|
|
976
976
|
else if (function(o, a, l, f) {
|
|
977
977
|
return o.toLowerCase() === "u" && !a && wn(l, f);
|
|
978
|
-
}(t, s, i, u)) n.preventDefault(), R(e,
|
|
978
|
+
}(t, s, i, u)) n.preventDefault(), R(e, $e, "underline");
|
|
979
979
|
else if (function(o, a, l, f) {
|
|
980
980
|
return o.toLowerCase() === "i" && !a && wn(l, f);
|
|
981
|
-
}(t, s, i, u)) n.preventDefault(), R(e,
|
|
981
|
+
}(t, s, i, u)) n.preventDefault(), R(e, $e, "italic");
|
|
982
982
|
else if (/* @__PURE__ */ function(o, a, l, f) {
|
|
983
983
|
return o === "Tab" && !a && !l && !f;
|
|
984
984
|
}(t, s, u, i)) R(e, C0, n);
|
|
@@ -1007,34 +1007,34 @@ const Ge = Object.freeze({}), di = 30, hi = [["keydown", function(n, e) {
|
|
|
1007
1007
|
});
|
|
1008
1008
|
}], ["compositionstart", function(n, e) {
|
|
1009
1009
|
Te(e, () => {
|
|
1010
|
-
const t =
|
|
1010
|
+
const t = F();
|
|
1011
1011
|
if (I(t) && !e.isComposing()) {
|
|
1012
1012
|
const r = t.anchor, u = t.anchor.getNode();
|
|
1013
|
-
le(r.key), (n.timeStamp < En + di || r.type === "element" || !t.isCollapsed() || u.getFormat() !== t.format || M(u) && u.getStyle() !== t.style) && R(e, Zt,
|
|
1013
|
+
le(r.key), (n.timeStamp < En + di || r.type === "element" || !t.isCollapsed() || u.getFormat() !== t.format || M(u) && u.getStyle() !== t.style) && R(e, Zt, z0);
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
1016
1016
|
}], ["compositionend", function(n, e) {
|
|
1017
1017
|
pt ? yn = !0 : Te(e, () => {
|
|
1018
|
-
|
|
1018
|
+
$u(e, n.data);
|
|
1019
1019
|
});
|
|
1020
1020
|
}], ["input", function(n, e) {
|
|
1021
1021
|
n.stopPropagation(), Te(e, () => {
|
|
1022
|
-
const t =
|
|
1022
|
+
const t = F(), r = n.data, u = hl(n);
|
|
1023
1023
|
if (r != null && I(t) && dl(t, u, r, n.timeStamp, !1)) {
|
|
1024
|
-
yn && (
|
|
1024
|
+
yn && ($u(e, r), yn = !1);
|
|
1025
1025
|
const i = t.anchor.getNode(), s = Ne(e._window);
|
|
1026
1026
|
if (s === null) return;
|
|
1027
1027
|
const o = t.isBackward(), a = o ? t.anchor.offset : t.focus.offset, l = o ? t.focus.offset : t.anchor.offset;
|
|
1028
|
-
|
|
1028
|
+
jr && !t.isCollapsed() && M(i) && s.anchorNode !== null && i.getTextContent().slice(0, a) + r + i.getTextContent().slice(a + l) === el(s.anchorNode) || R(e, Zt, r);
|
|
1029
1029
|
const f = r.length;
|
|
1030
1030
|
pt && f > 1 && n.inputType === "insertCompositionText" && !e.isComposing() && (t.anchor.offset -= f), bu || Kn || Ki || !e.isComposing() || (En = 0, le(null));
|
|
1031
1031
|
} else
|
|
1032
|
-
ss(!1, e, r !== null ? r : void 0), yn && (
|
|
1032
|
+
ss(!1, e, r !== null ? r : void 0), yn && ($u(e, r || void 0), yn = !1);
|
|
1033
1033
|
be(), Wa(re());
|
|
1034
1034
|
}), Ht = null;
|
|
1035
1035
|
}], ["click", function(n, e) {
|
|
1036
1036
|
Te(e, () => {
|
|
1037
|
-
const t =
|
|
1037
|
+
const t = F(), r = Ne(e._window), u = tr();
|
|
1038
1038
|
if (r) {
|
|
1039
1039
|
if (I(t)) {
|
|
1040
1040
|
const i = t.anchor, s = i.getNode();
|
|
@@ -1050,10 +1050,10 @@ const Ge = Object.freeze({}), di = 30, hi = [["keydown", function(n, e) {
|
|
|
1050
1050
|
R(e, ka, n);
|
|
1051
1051
|
});
|
|
1052
1052
|
}], ["cut", Ge], ["copy", Ge], ["dragstart", Ge], ["dragover", Ge], ["dragend", Ge], ["paste", Ge], ["focus", Ge], ["blur", Ge], ["drop", Ge]];
|
|
1053
|
-
|
|
1053
|
+
jr && hi.push(["beforeinput", (n, e) => function(t, r) {
|
|
1054
1054
|
const u = t.inputType, i = hl(t);
|
|
1055
1055
|
u === "deleteCompositionText" || pt && tl(r) || u !== "insertCompositionText" && Te(r, () => {
|
|
1056
|
-
const s =
|
|
1056
|
+
const s = F();
|
|
1057
1057
|
if (u === "deleteContentBackward") {
|
|
1058
1058
|
if (s === null) {
|
|
1059
1059
|
const d = tr();
|
|
@@ -1131,16 +1131,16 @@ Ur && hi.push(["beforeinput", (n, e) => function(t, r) {
|
|
|
1131
1131
|
R(r, Ln, !1);
|
|
1132
1132
|
break;
|
|
1133
1133
|
case "formatStrikeThrough":
|
|
1134
|
-
R(r,
|
|
1134
|
+
R(r, $e, "strikethrough");
|
|
1135
1135
|
break;
|
|
1136
1136
|
case "formatBold":
|
|
1137
|
-
R(r,
|
|
1137
|
+
R(r, $e, "bold");
|
|
1138
1138
|
break;
|
|
1139
1139
|
case "formatItalic":
|
|
1140
|
-
R(r,
|
|
1140
|
+
R(r, $e, "italic");
|
|
1141
1141
|
break;
|
|
1142
1142
|
case "formatUnderline":
|
|
1143
|
-
R(r,
|
|
1143
|
+
R(r, $e, "underline");
|
|
1144
1144
|
break;
|
|
1145
1145
|
case "historyUndo":
|
|
1146
1146
|
R(r, Hi, void 0);
|
|
@@ -1165,7 +1165,7 @@ const Yr = /* @__PURE__ */ new WeakMap();
|
|
|
1165
1165
|
let pi = !1, gi = !1, Nn = !1, yn = !1, fl = [0, "", 0, "root", 0];
|
|
1166
1166
|
function dl(n, e, t, r, u) {
|
|
1167
1167
|
const i = n.anchor, s = n.focus, o = i.getNode(), a = re(), l = Ne(a._window), f = l !== null ? l.anchorNode : null, h = i.key, c = a.getElementByKey(h), d = t.length;
|
|
1168
|
-
return h !== s.key || !M(o) || (!u && (!
|
|
1168
|
+
return h !== s.key || !M(o) || (!u && (!jr || cl < r + 50) || o.isDirty() && d < 2 || Qa(t)) && i.offset !== s.offset && !o.isComposing() || Tt(o) || o.isDirty() && d > 1 || (u || !jr) && c !== null && !o.isComposing() && f !== Hr(c) || l !== null && e !== null && (!e.collapsed || e.startContainer !== l.anchorNode || e.startOffset !== l.anchorOffset) || o.getFormat() !== n.format || o.getStyle() !== n.style || sf(n, o);
|
|
1169
1169
|
}
|
|
1170
1170
|
function to(n, e) {
|
|
1171
1171
|
return n !== null && n.nodeValue !== null && n.nodeType === bt && e !== 0 && e !== n.nodeValue.length;
|
|
@@ -1175,7 +1175,7 @@ function no(n, e, t) {
|
|
|
1175
1175
|
pi && (pi = !1, to(r, u) && to(i, s)) || Te(e, () => {
|
|
1176
1176
|
if (!t) return void Re(null);
|
|
1177
1177
|
if (!Xn(e, r, i)) return;
|
|
1178
|
-
const o =
|
|
1178
|
+
const o = F();
|
|
1179
1179
|
if (I(o)) {
|
|
1180
1180
|
const a = o.anchor, l = a.getNode();
|
|
1181
1181
|
if (o.isCollapsed()) {
|
|
@@ -1189,7 +1189,7 @@ function no(n, e, t) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
} else {
|
|
1191
1191
|
const f = a.key, h = o.focus.key, c = o.getNodes(), d = c.length, p = o.isBackward(), m = p ? s : u, g = p ? u : s, y = p ? h : f, b = p ? f : h;
|
|
1192
|
-
let _ =
|
|
1192
|
+
let _ = j0, w = !1;
|
|
1193
1193
|
for (let T = 0; T < d; T++) {
|
|
1194
1194
|
const S = c[T], P = S.getTextContentSize();
|
|
1195
1195
|
if (M(S) && P !== 0 && !(T === 0 && S.__key === y && m === P || T === d - 1 && S.__key === b && g === 0) && (w = !0, _ &= S.getFormat(), _ === 0)) break;
|
|
@@ -1205,7 +1205,7 @@ function hl(n) {
|
|
|
1205
1205
|
const e = n.getTargetRanges();
|
|
1206
1206
|
return e.length === 0 ? null : e[0];
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function $u(n, e) {
|
|
1209
1209
|
const t = n._compositionKey;
|
|
1210
1210
|
if (le(null), t !== null && e != null) {
|
|
1211
1211
|
if (e === "") {
|
|
@@ -1214,10 +1214,10 @@ function zu(n, e) {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
if (e[e.length - 1] === `
|
|
1216
1216
|
`) {
|
|
1217
|
-
const r =
|
|
1217
|
+
const r = F();
|
|
1218
1218
|
if (I(r)) {
|
|
1219
1219
|
const u = r.focus;
|
|
1220
|
-
return r.anchor.set(u.key, u.offset, u.type), void R(n,
|
|
1220
|
+
return r.anchor.set(u.key, u.offset, u.type), void R(n, Ur, null);
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
@@ -1269,7 +1269,7 @@ function mi(n, e, t) {
|
|
|
1269
1269
|
const r = n.__key, u = n.getParent();
|
|
1270
1270
|
if (u === null) return;
|
|
1271
1271
|
const i = function(o) {
|
|
1272
|
-
const a =
|
|
1272
|
+
const a = F();
|
|
1273
1273
|
if (!I(a) || !E(o)) return a;
|
|
1274
1274
|
const { anchor: l, focus: f } = a, h = l.getNode(), c = f.getNode();
|
|
1275
1275
|
return Cn(h, o) && l.set(o.__key, 0, "element"), Cn(c, o) && f.set(o.__key, 0, "element"), a;
|
|
@@ -1315,7 +1315,7 @@ class Tu {
|
|
|
1315
1315
|
return !1;
|
|
1316
1316
|
}
|
|
1317
1317
|
isSelected(e) {
|
|
1318
|
-
const t = e ||
|
|
1318
|
+
const t = e || F();
|
|
1319
1319
|
if (t == null) return !1;
|
|
1320
1320
|
const r = t.getNodes().some((u) => u.__key === this.__key);
|
|
1321
1321
|
if (M(this)) return r;
|
|
@@ -1482,7 +1482,7 @@ class Tu {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
getWritable() {
|
|
1484
1484
|
be();
|
|
1485
|
-
const e = nt(), t = re(), r = e._nodeMap, u = this.__key, i = this.getLatest(), s = t._cloneNotNeeded, o =
|
|
1485
|
+
const e = nt(), t = re(), r = e._nodeMap, u = this.__key, i = this.getLatest(), s = t._cloneNotNeeded, o = F();
|
|
1486
1486
|
if (o !== null && o.setCachedNodes(null), s.has(u)) return Gr(i), i;
|
|
1487
1487
|
const a = cs(i);
|
|
1488
1488
|
return s.add(u), Gr(a), r.set(u, a), a;
|
|
@@ -1516,8 +1516,8 @@ class Tu {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
replace(e, t) {
|
|
1518
1518
|
be();
|
|
1519
|
-
let r =
|
|
1520
|
-
r !== null && (r = r.clone()),
|
|
1519
|
+
let r = F();
|
|
1520
|
+
r !== null && (r = r.clone()), Uu(this, e);
|
|
1521
1521
|
const u = this.getLatest(), i = this.__key, s = e.__key, o = e.getWritable(), a = this.getParentOrThrow().getWritable(), l = a.__size;
|
|
1522
1522
|
At(o);
|
|
1523
1523
|
const f = u.getPreviousSibling(), h = u.getNextSibling(), c = u.__prev, d = u.__next, p = u.__parent;
|
|
@@ -1531,8 +1531,8 @@ class Tu {
|
|
|
1531
1531
|
return ct() === i && le(s), o;
|
|
1532
1532
|
}
|
|
1533
1533
|
insertAfter(e, t = !0) {
|
|
1534
|
-
be(),
|
|
1535
|
-
const r = this.getWritable(), u = e.getWritable(), i = u.getParent(), s =
|
|
1534
|
+
be(), Uu(this, e);
|
|
1535
|
+
const r = this.getWritable(), u = e.getWritable(), i = u.getParent(), s = F();
|
|
1536
1536
|
let o = !1, a = !1;
|
|
1537
1537
|
if (i !== null) {
|
|
1538
1538
|
const d = e.getIndexWithinParent();
|
|
@@ -1551,12 +1551,12 @@ class Tu {
|
|
|
1551
1551
|
return e;
|
|
1552
1552
|
}
|
|
1553
1553
|
insertBefore(e, t = !0) {
|
|
1554
|
-
be(),
|
|
1554
|
+
be(), Uu(this, e);
|
|
1555
1555
|
const r = this.getWritable(), u = e.getWritable(), i = u.__key;
|
|
1556
1556
|
At(u);
|
|
1557
1557
|
const s = this.getPreviousSibling(), o = this.getParentOrThrow().getWritable(), a = r.__prev, l = this.getIndexWithinParent();
|
|
1558
1558
|
s === null ? o.__first = i : s.getWritable().__next = i, o.__size++, r.__prev = i, u.__prev = a, u.__next = r.__key, u.__parent = r.__parent;
|
|
1559
|
-
const f =
|
|
1559
|
+
const f = F();
|
|
1560
1560
|
return t && I(f) && eu(f, this.getParentOrThrow(), l), e;
|
|
1561
1561
|
}
|
|
1562
1562
|
isParentRequired() {
|
|
@@ -1672,8 +1672,8 @@ function ml(n, e, t, r, u) {
|
|
|
1672
1672
|
let s = Tn(u, "base");
|
|
1673
1673
|
s !== void 0 && i.add(...s), s = Tn(u, "underlineStrikethrough");
|
|
1674
1674
|
let o = !1;
|
|
1675
|
-
const a = e &
|
|
1676
|
-
s !== void 0 && (t &
|
|
1675
|
+
const a = e & $r && e & zr;
|
|
1676
|
+
s !== void 0 && (t & $r && t & zr ? (o = !0, a || i.add(...s)) : a && i.remove(...s));
|
|
1677
1677
|
for (const l in Pt) {
|
|
1678
1678
|
const f = Pt[l];
|
|
1679
1679
|
if (s = Tn(u, l), s !== void 0) if (t & f) {
|
|
@@ -1711,12 +1711,12 @@ function yr(n, e) {
|
|
|
1711
1711
|
const t = document.createElement(e);
|
|
1712
1712
|
return t.appendChild(n), t;
|
|
1713
1713
|
}
|
|
1714
|
-
class
|
|
1714
|
+
class Ft extends Tu {
|
|
1715
1715
|
static getType() {
|
|
1716
1716
|
return "text";
|
|
1717
1717
|
}
|
|
1718
1718
|
static clone(e) {
|
|
1719
|
-
return new
|
|
1719
|
+
return new Ft(e.__text, e.__key);
|
|
1720
1720
|
}
|
|
1721
1721
|
afterCloneFrom(e) {
|
|
1722
1722
|
super.afterCloneFrom(e), this.__format = e.__format, this.__style = e.__style, this.__mode = e.__mode, this.__detail = e.__detail;
|
|
@@ -1845,7 +1845,7 @@ class $t extends Tu {
|
|
|
1845
1845
|
select(e, t) {
|
|
1846
1846
|
be();
|
|
1847
1847
|
let r = e, u = t;
|
|
1848
|
-
const i =
|
|
1848
|
+
const i = F(), s = this.getTextContent(), o = this.__key;
|
|
1849
1849
|
if (typeof s == "string") {
|
|
1850
1850
|
const a = s.length;
|
|
1851
1851
|
r === void 0 && (r = a), u === void 0 && (u = a);
|
|
@@ -1868,7 +1868,7 @@ class $t extends Tu {
|
|
|
1868
1868
|
const i = this.getWritable(), s = i.__text, o = r.length;
|
|
1869
1869
|
let a = e;
|
|
1870
1870
|
a < 0 && (a = o + a, a < 0 && (a = 0));
|
|
1871
|
-
const l =
|
|
1871
|
+
const l = F();
|
|
1872
1872
|
if (u && I(l)) {
|
|
1873
1873
|
const h = e + o;
|
|
1874
1874
|
l.setTextNodeRange(i, h, i, h);
|
|
@@ -1896,17 +1896,17 @@ class $t extends Tu {
|
|
|
1896
1896
|
const p = t.getFormat(), m = t.getStyle(), g = t.__detail;
|
|
1897
1897
|
let y = !1;
|
|
1898
1898
|
t.isSegmented() ? (d = ie(h), d.__format = p, d.__style = m, d.__detail = g, y = !0) : (d = t.getWritable(), d.__text = h);
|
|
1899
|
-
const b =
|
|
1899
|
+
const b = F(), _ = [d];
|
|
1900
1900
|
let w = h.length;
|
|
1901
1901
|
for (let T = 1; T < f; T++) {
|
|
1902
1902
|
const S = o[T], P = S.length, C = ie(S).getWritable();
|
|
1903
1903
|
C.__format = p, C.__style = m, C.__detail = g;
|
|
1904
|
-
const D = C.__key,
|
|
1904
|
+
const D = C.__key, U = w + P;
|
|
1905
1905
|
if (I(b)) {
|
|
1906
1906
|
const v = b.anchor, N = b.focus;
|
|
1907
|
-
v.key === u && v.type === "text" && v.offset > w && v.offset <=
|
|
1907
|
+
v.key === u && v.type === "text" && v.offset > w && v.offset <= U && (v.key = D, v.offset -= w, b.dirty = !0), N.key === u && N.type === "text" && N.offset > w && N.offset <= U && (N.key = D, N.offset -= w, b.dirty = !0);
|
|
1908
1908
|
}
|
|
1909
|
-
i === u && le(D), w =
|
|
1909
|
+
i === u && le(D), w = U, _.push(C);
|
|
1910
1910
|
}
|
|
1911
1911
|
if (c !== null) {
|
|
1912
1912
|
(function(P) {
|
|
@@ -1923,7 +1923,7 @@ class $t extends Tu {
|
|
|
1923
1923
|
t || e === this.getNextSibling() || L(50);
|
|
1924
1924
|
const r = this.__key, u = e.__key, i = this.__text, s = i.length;
|
|
1925
1925
|
ct() === u && le(r);
|
|
1926
|
-
const o =
|
|
1926
|
+
const o = F();
|
|
1927
1927
|
if (I(o)) {
|
|
1928
1928
|
const h = o.anchor, c = o.focus;
|
|
1929
1929
|
h !== null && h.key === u && (mo(h, t, r, e, s), o.dirty = !0), c !== null && c.key === u && (mo(c, t, r, e, s), o.dirty = !0);
|
|
@@ -2017,16 +2017,16 @@ function ot(n) {
|
|
|
2017
2017
|
return e === void 0 ? { node: null } : { forChild: fs(n.style, e), node: null };
|
|
2018
2018
|
}
|
|
2019
2019
|
function ie(n = "") {
|
|
2020
|
-
return yt(new
|
|
2020
|
+
return yt(new Ft(n));
|
|
2021
2021
|
}
|
|
2022
2022
|
function M(n) {
|
|
2023
|
-
return n instanceof
|
|
2023
|
+
return n instanceof Ft;
|
|
2024
2024
|
}
|
|
2025
2025
|
function fs(n, e) {
|
|
2026
2026
|
const t = n.fontWeight, r = n.textDecoration.split(" "), u = t === "700" || t === "bold", i = r.includes("line-through"), s = n.fontStyle === "italic", o = r.includes("underline"), a = n.verticalAlign;
|
|
2027
2027
|
return (l) => (M(l) && (u && !l.hasFormat("bold") && l.toggleFormat("bold"), i && !l.hasFormat("strikethrough") && l.toggleFormat("strikethrough"), s && !l.hasFormat("italic") && l.toggleFormat("italic"), o && !l.hasFormat("underline") && l.toggleFormat("underline"), a !== "sub" || l.hasFormat("subscript") || l.toggleFormat("subscript"), a !== "super" || l.hasFormat("superscript") || l.toggleFormat("superscript"), e && !l.hasFormat(e) && l.toggleFormat(e)), l);
|
|
2028
2028
|
}
|
|
2029
|
-
class Yn extends
|
|
2029
|
+
class Yn extends Ft {
|
|
2030
2030
|
static getType() {
|
|
2031
2031
|
return "tab";
|
|
2032
2032
|
}
|
|
@@ -2365,8 +2365,8 @@ class xt {
|
|
|
2365
2365
|
if (!S) {
|
|
2366
2366
|
let C = b, D = null;
|
|
2367
2367
|
for (; C !== null; ) {
|
|
2368
|
-
const
|
|
2369
|
-
(v === 0 ||
|
|
2368
|
+
const U = C.getChildren(), v = U.length;
|
|
2369
|
+
(v === 0 || U[v - 1].is(D)) && (g.delete(C.__key), D = C), C = C.getParent();
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
2372
|
if (c.isToken()) if (a === d) c.select();
|
|
@@ -2376,8 +2376,8 @@ class xt {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
else c = c.spliceText(a, d - a, e, !0), c.getTextContent() === "" ? c.remove() : c.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length);
|
|
2378
2378
|
for (let C = 1; C < h; C++) {
|
|
2379
|
-
const D = f[C],
|
|
2380
|
-
g.has(
|
|
2379
|
+
const D = f[C], U = D.__key;
|
|
2380
|
+
g.has(U) || D.remove();
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
@@ -2449,7 +2449,7 @@ class xt {
|
|
|
2449
2449
|
if (e.length === 0) return;
|
|
2450
2450
|
if (this.anchor.key === "root") {
|
|
2451
2451
|
this.insertParagraph();
|
|
2452
|
-
const p =
|
|
2452
|
+
const p = F();
|
|
2453
2453
|
return I(p) || L(134), p.insertNodes(e);
|
|
2454
2454
|
}
|
|
2455
2455
|
const t = (this.isBackward() ? this.focus : this.anchor).getNode(), r = bn(t, at), u = e[e.length - 1];
|
|
@@ -2788,7 +2788,7 @@ function ds(n, e, t, r) {
|
|
|
2788
2788
|
const [p, m] = d;
|
|
2789
2789
|
return new xt(p, m, I(n) ? n.format : 0, I(n) ? n.style : "");
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function F() {
|
|
2792
2792
|
return nt()._selection;
|
|
2793
2793
|
}
|
|
2794
2794
|
function tr() {
|
|
@@ -2861,8 +2861,8 @@ function Af(n, e, t, r, u, i, s) {
|
|
|
2861
2861
|
const x = c.getNode();
|
|
2862
2862
|
D = x.getFormat() !== w || x.getStyle() !== T;
|
|
2863
2863
|
} else I(n) && n.anchor.type === "text" && (D = !0);
|
|
2864
|
-
var
|
|
2865
|
-
if (d.type === "text" && (C = Hr(y)), P !== null && C !== null && (S && (n === null || D || I(n) && (n.format !== w || n.style !== T)) && (
|
|
2864
|
+
var U, v, N, A, B;
|
|
2865
|
+
if (d.type === "text" && (C = Hr(y)), P !== null && C !== null && (S && (n === null || D || I(n) && (n.format !== w || n.style !== T)) && (U = w, v = T, N = b, A = p, B = performance.now(), fl = [U, v, N, A, B]), l !== b || f !== _ || o !== P || a !== C || r.type === "Range" && S || (h !== null && i.contains(h) || i.focus({ preventScroll: !0 }), c.type === "element"))) {
|
|
2866
2866
|
try {
|
|
2867
2867
|
r.setBaseAndExtent(P, b, C, _);
|
|
2868
2868
|
} catch {
|
|
@@ -2875,27 +2875,27 @@ function Af(n, e, t, r, u, i, s) {
|
|
|
2875
2875
|
const k = document.createRange();
|
|
2876
2876
|
k.selectNode(x), O = k.getBoundingClientRect();
|
|
2877
2877
|
} else O = x.getBoundingClientRect();
|
|
2878
|
-
(function(k,
|
|
2879
|
-
const te = Q.ownerDocument,
|
|
2880
|
-
if (
|
|
2881
|
-
let { top: dr, bottom: K } =
|
|
2882
|
-
for (;
|
|
2883
|
-
const G =
|
|
2878
|
+
(function(k, q, Q) {
|
|
2879
|
+
const te = Q.ownerDocument, zt = te.defaultView;
|
|
2880
|
+
if (zt === null) return;
|
|
2881
|
+
let { top: dr, bottom: K } = q, H = 0, st = 0, $ = Q;
|
|
2882
|
+
for (; $ !== null; ) {
|
|
2883
|
+
const G = $ === te.body;
|
|
2884
2884
|
if (G) H = 0, st = wu(k).innerHeight;
|
|
2885
2885
|
else {
|
|
2886
|
-
const pe =
|
|
2886
|
+
const pe = $.getBoundingClientRect();
|
|
2887
2887
|
H = pe.top, st = pe.bottom;
|
|
2888
2888
|
}
|
|
2889
2889
|
let we = 0;
|
|
2890
|
-
if (dr < H ? we = -(H - dr) : K > st && (we = K - st), we !== 0) if (G)
|
|
2890
|
+
if (dr < H ? we = -(H - dr) : K > st && (we = K - st), we !== 0) if (G) zt.scrollBy(0, we);
|
|
2891
2891
|
else {
|
|
2892
|
-
const pe =
|
|
2893
|
-
|
|
2894
|
-
const ge =
|
|
2892
|
+
const pe = $.scrollTop;
|
|
2893
|
+
$.scrollTop += we;
|
|
2894
|
+
const ge = $.scrollTop - pe;
|
|
2895
2895
|
dr -= ge, K -= ge;
|
|
2896
2896
|
}
|
|
2897
2897
|
if (G) break;
|
|
2898
|
-
|
|
2898
|
+
$ = Zn($);
|
|
2899
2899
|
}
|
|
2900
2900
|
})(t, O, i);
|
|
2901
2901
|
}
|
|
@@ -2904,13 +2904,13 @@ function Af(n, e, t, r, u, i, s) {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
2906
|
function vl(n) {
|
|
2907
|
-
let e =
|
|
2907
|
+
let e = F() || tr();
|
|
2908
2908
|
e === null && (e = ue().selectEnd()), e.insertNodes(n);
|
|
2909
2909
|
}
|
|
2910
2910
|
function Gu(n) {
|
|
2911
2911
|
let e = n;
|
|
2912
2912
|
n.isCollapsed() || e.removeText();
|
|
2913
|
-
const t =
|
|
2913
|
+
const t = F();
|
|
2914
2914
|
I(t) && (e = t), I(e) || L(161);
|
|
2915
2915
|
const r = e.anchor;
|
|
2916
2916
|
let u = r.getNode(), i = r.offset;
|
|
@@ -3037,9 +3037,9 @@ function ft(n, e) {
|
|
|
3037
3037
|
a && (n._dirtyType = Ot, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), function(S, P) {
|
|
3038
3038
|
const C = S._decorators;
|
|
3039
3039
|
let D = S._pendingDecorators || C;
|
|
3040
|
-
const
|
|
3040
|
+
const U = P._nodeMap;
|
|
3041
3041
|
let v;
|
|
3042
|
-
for (v in D)
|
|
3042
|
+
for (v in D) U.has(v) || (D === C && (D = Xa(S)), delete D[v]);
|
|
3043
3043
|
}(n, t);
|
|
3044
3044
|
const w = u ? null : Ne(n._window);
|
|
3045
3045
|
if (n._editable && w !== null && (a || o === null || o.dirty)) {
|
|
@@ -3054,17 +3054,17 @@ function ft(n, e) {
|
|
|
3054
3054
|
ae = h, oe = l;
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
|
-
p !== null && function(S, P, C, D,
|
|
3057
|
+
p !== null && function(S, P, C, D, U) {
|
|
3058
3058
|
const v = Array.from(S._listeners.mutation), N = v.length;
|
|
3059
3059
|
for (let A = 0; A < N; A++) {
|
|
3060
3060
|
const [B, x] = v[A], O = P.get(x);
|
|
3061
|
-
O !== void 0 && B(O, { dirtyLeaves: D, prevEditorState:
|
|
3061
|
+
O !== void 0 && B(O, { dirtyLeaves: D, prevEditorState: U, updateTags: C });
|
|
3062
3062
|
}
|
|
3063
3063
|
}(n, p, b, m, i), I(o) || o === null || s !== null && s.is(o) || n.dispatchCommand(Wi, void 0);
|
|
3064
3064
|
const T = n._pendingDecorators;
|
|
3065
3065
|
T !== null && (n._decorators = T, n._pendingDecorators = null, kn("decorator", n, !0, T)), function(S, P, C) {
|
|
3066
|
-
const D = Hs(P),
|
|
3067
|
-
D !==
|
|
3066
|
+
const D = Hs(P), U = Hs(C);
|
|
3067
|
+
D !== U && kn("textcontent", S, !0, U);
|
|
3068
3068
|
}(n, e || i, t), kn("update", n, !0, { dirtyElements: g, dirtyLeaves: m, editorState: t, normalizedNodes: y, prevEditorState: e || i, tags: b }), function(S, P) {
|
|
3069
3069
|
if (S._deferred = [], P.length !== 0) {
|
|
3070
3070
|
const C = S._updating;
|
|
@@ -3080,8 +3080,8 @@ function ft(n, e) {
|
|
|
3080
3080
|
if (P.length !== 0) {
|
|
3081
3081
|
const C = P.shift();
|
|
3082
3082
|
if (C) {
|
|
3083
|
-
const [D,
|
|
3084
|
-
El(S, D,
|
|
3083
|
+
const [D, U] = C;
|
|
3084
|
+
El(S, D, U);
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
}(n);
|
|
@@ -3165,17 +3165,17 @@ function El(n, e, t) {
|
|
|
3165
3165
|
const _ = b._dirtyLeaves, w = y._nodeMap;
|
|
3166
3166
|
for (const T of _) {
|
|
3167
3167
|
const S = w.get(T);
|
|
3168
|
-
M(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() &&
|
|
3168
|
+
M(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() && $s(S);
|
|
3169
3169
|
}
|
|
3170
3170
|
}(a, n) : function(y, b) {
|
|
3171
3171
|
const _ = b._dirtyLeaves, w = b._dirtyElements, T = y._nodeMap, S = ct(), P = /* @__PURE__ */ new Map();
|
|
3172
|
-
let C = _, D = C.size,
|
|
3172
|
+
let C = _, D = C.size, U = w, v = U.size;
|
|
3173
3173
|
for (; D > 0 || v > 0; ) {
|
|
3174
3174
|
if (D > 0) {
|
|
3175
3175
|
b._dirtyLeaves = /* @__PURE__ */ new Set();
|
|
3176
3176
|
for (const N of C) {
|
|
3177
3177
|
const A = T.get(N);
|
|
3178
|
-
M(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() &&
|
|
3178
|
+
M(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() && $s(A), A !== void 0 && xo(A, S) && yo(b, A, P), _.add(N);
|
|
3179
3179
|
}
|
|
3180
3180
|
if (C = b._dirtyLeaves, D = C.size, D > 0) {
|
|
3181
3181
|
Dr++;
|
|
@@ -3183,13 +3183,13 @@ function El(n, e, t) {
|
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
3185
|
b._dirtyLeaves = /* @__PURE__ */ new Set(), b._dirtyElements = /* @__PURE__ */ new Map();
|
|
3186
|
-
for (const N of
|
|
3186
|
+
for (const N of U) {
|
|
3187
3187
|
const A = N[0], B = N[1];
|
|
3188
3188
|
if (A !== "root" && !B) continue;
|
|
3189
3189
|
const x = T.get(A);
|
|
3190
3190
|
x !== void 0 && xo(x, S) && yo(b, x, P), w.set(A, B);
|
|
3191
3191
|
}
|
|
3192
|
-
C = b._dirtyLeaves, D = C.size,
|
|
3192
|
+
C = b._dirtyLeaves, D = C.size, U = b._dirtyElements, v = U.size, Dr++;
|
|
3193
3193
|
}
|
|
3194
3194
|
b._dirtyLeaves = _, b._dirtyElements = w;
|
|
3195
3195
|
}(a, n), vo(n), function(y, b, _, w) {
|
|
@@ -3318,7 +3318,7 @@ function wo(n, e) {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
return r !== n && L(225), t.reverse();
|
|
3320
3320
|
}
|
|
3321
|
-
class
|
|
3321
|
+
class qt extends Tu {
|
|
3322
3322
|
constructor(e) {
|
|
3323
3323
|
super(e), this.__first = null, this.__last = null, this.__size = 0, this.__format = 0, this.__style = "", this.__indent = 0, this.__dir = null;
|
|
3324
3324
|
}
|
|
@@ -3458,14 +3458,14 @@ class Ft extends Tu {
|
|
|
3458
3458
|
}
|
|
3459
3459
|
hasFormat(e) {
|
|
3460
3460
|
if (e !== "") {
|
|
3461
|
-
const t =
|
|
3461
|
+
const t = Us[e];
|
|
3462
3462
|
return !!(this.getFormat() & t);
|
|
3463
3463
|
}
|
|
3464
3464
|
return !1;
|
|
3465
3465
|
}
|
|
3466
3466
|
select(e, t) {
|
|
3467
3467
|
be();
|
|
3468
|
-
const r =
|
|
3468
|
+
const r = F();
|
|
3469
3469
|
let u = e, i = t;
|
|
3470
3470
|
const s = this.getChildrenSize();
|
|
3471
3471
|
if (!this.canBeEmpty()) {
|
|
@@ -3501,7 +3501,7 @@ class Ft extends Tu {
|
|
|
3501
3501
|
return t.__dir = e, t;
|
|
3502
3502
|
}
|
|
3503
3503
|
setFormat(e) {
|
|
3504
|
-
return this.getWritable().__format = e !== "" ?
|
|
3504
|
+
return this.getWritable().__format = e !== "" ? Us[e] : 0, this;
|
|
3505
3505
|
}
|
|
3506
3506
|
setStyle(e) {
|
|
3507
3507
|
return this.getWritable().__style = e || "", this;
|
|
@@ -3551,7 +3551,7 @@ class Ft extends Tu {
|
|
|
3551
3551
|
} else p.__prev = null;
|
|
3552
3552
|
}
|
|
3553
3553
|
if (s.__size = c, l.length) {
|
|
3554
|
-
const p =
|
|
3554
|
+
const p = F();
|
|
3555
3555
|
if (I(p)) {
|
|
3556
3556
|
const m = new Set(l), g = new Set(a), { anchor: y, focus: b } = p;
|
|
3557
3557
|
So(y, m, g) && tu(y, y.getNode(), this, h, f), So(b, m, g) && tu(b, b.getNode(), this, h, f), c !== 0 || this.canBeEmpty() || Ye(this) || this.remove();
|
|
@@ -3625,7 +3625,7 @@ class Ft extends Tu {
|
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
3627
|
function E(n) {
|
|
3628
|
-
return n instanceof
|
|
3628
|
+
return n instanceof qt;
|
|
3629
3629
|
}
|
|
3630
3630
|
function So(n, e, t) {
|
|
3631
3631
|
let r = n.getNode();
|
|
@@ -3656,7 +3656,7 @@ class Lf extends Tu {
|
|
|
3656
3656
|
function ee(n) {
|
|
3657
3657
|
return n instanceof Lf;
|
|
3658
3658
|
}
|
|
3659
|
-
class rr extends
|
|
3659
|
+
class rr extends qt {
|
|
3660
3660
|
static getType() {
|
|
3661
3661
|
return "root";
|
|
3662
3662
|
}
|
|
@@ -3746,7 +3746,7 @@ class Eu {
|
|
|
3746
3746
|
return _o(null, this, () => ({ root: kl(ue()) }));
|
|
3747
3747
|
}
|
|
3748
3748
|
}
|
|
3749
|
-
class gs extends
|
|
3749
|
+
class gs extends qt {
|
|
3750
3750
|
static getType() {
|
|
3751
3751
|
return "artificial";
|
|
3752
3752
|
}
|
|
@@ -3754,7 +3754,7 @@ class gs extends Ft {
|
|
|
3754
3754
|
return document.createElement("div");
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
class cn extends
|
|
3757
|
+
class cn extends qt {
|
|
3758
3758
|
constructor(e) {
|
|
3759
3759
|
super(e), this.__textFormat = 0, this.__textStyle = "";
|
|
3760
3760
|
}
|
|
@@ -3849,7 +3849,7 @@ function Al(n, e, t, r) {
|
|
|
3849
3849
|
i !== null && (i.disconnect(), n._observer = null), e !== null && (e.textContent = ""), t !== null && (t.textContent = "", u.set("root", t));
|
|
3850
3850
|
}
|
|
3851
3851
|
function Rf(n) {
|
|
3852
|
-
const e = n || {}, t = Pf(), r = e.theme || {}, u = n === void 0 ? t : e.parentEditor || null, i = e.disableEvents || !1, s = ps(), o = e.namespace || (u !== null ? u._config.namespace : Ya()), a = e.editorState, l = [rr,
|
|
3852
|
+
const e = n || {}, t = Pf(), r = e.theme || {}, u = n === void 0 ? t : e.parentEditor || null, i = e.disableEvents || !1, s = ps(), o = e.namespace || (u !== null ? u._config.namespace : Ya()), a = e.editorState, l = [rr, Ft, Qn, Yn, cn, gs, ...e.nodes || []], { onError: f, html: h } = e, c = e.editable === void 0 || e.editable;
|
|
3853
3853
|
let d;
|
|
3854
3854
|
if (n === void 0 && t !== null) d = t._nodes;
|
|
3855
3855
|
else {
|
|
@@ -4021,7 +4021,7 @@ class Nu {
|
|
|
4021
4021
|
case "dragstart":
|
|
4022
4022
|
return y && R(a, Ba, g);
|
|
4023
4023
|
case "dragover":
|
|
4024
|
-
return y && R(a,
|
|
4024
|
+
return y && R(a, Fa, g);
|
|
4025
4025
|
case "dragend":
|
|
4026
4026
|
return y && R(a, A0, g);
|
|
4027
4027
|
case "focus":
|
|
@@ -4078,7 +4078,7 @@ class Nu {
|
|
|
4078
4078
|
focus(e, t = {}) {
|
|
4079
4079
|
const r = this._rootElement;
|
|
4080
4080
|
r !== null && (r.setAttribute("autocapitalize", "off"), Te(this, () => {
|
|
4081
|
-
const u =
|
|
4081
|
+
const u = F(), i = ue();
|
|
4082
4082
|
u !== null ? u.dirty = !0 : i.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? i.selectStart() : i.selectEnd());
|
|
4083
4083
|
}, { onUpdate: () => {
|
|
4084
4084
|
r.removeAttribute("autocapitalize"), e && e();
|
|
@@ -4110,8 +4110,8 @@ Bf(function(n) {
|
|
|
4110
4110
|
for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
|
|
4111
4111
|
throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
4112
4112
|
});
|
|
4113
|
-
const
|
|
4114
|
-
function
|
|
4113
|
+
const Ff = /* @__PURE__ */ new Map();
|
|
4114
|
+
function qf(n) {
|
|
4115
4115
|
const e = {};
|
|
4116
4116
|
if (!n) return e;
|
|
4117
4117
|
const t = n.split(";");
|
|
@@ -4133,29 +4133,29 @@ function Ol(n, e) {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
return e;
|
|
4135
4135
|
}
|
|
4136
|
-
function
|
|
4137
|
-
const e = n.getStyle(), t =
|
|
4138
|
-
|
|
4136
|
+
function Uf(n) {
|
|
4137
|
+
const e = n.getStyle(), t = qf(e);
|
|
4138
|
+
Ff.set(e, t);
|
|
4139
4139
|
}
|
|
4140
4140
|
function To(n, e) {
|
|
4141
4141
|
const t = Dn(n.focus, e);
|
|
4142
4142
|
return ee(t) && !t.isIsolated() || E(t) && !t.isInline() && !t.canBeEmpty();
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function jf(n, e, t, r) {
|
|
4145
4145
|
n.modify(e ? "extend" : "move", t, r);
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function zf(n) {
|
|
4148
4148
|
const e = n.anchor.getNode();
|
|
4149
4149
|
return (de(e) ? e : e.getParentOrThrow()).getDirection() === "rtl";
|
|
4150
4150
|
}
|
|
4151
4151
|
function Co(n, e, t) {
|
|
4152
|
-
const r =
|
|
4153
|
-
|
|
4152
|
+
const r = zf(n);
|
|
4153
|
+
jf(n, e, t ? !r : r, "character");
|
|
4154
4154
|
}
|
|
4155
|
-
function
|
|
4155
|
+
function $f(n) {
|
|
4156
4156
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4157
4157
|
}
|
|
4158
|
-
var Wf =
|
|
4158
|
+
var Wf = $f(function(n) {
|
|
4159
4159
|
const e = new URLSearchParams();
|
|
4160
4160
|
e.append("code", n);
|
|
4161
4161
|
for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
|
|
@@ -4212,7 +4212,7 @@ function Dl(n, e) {
|
|
|
4212
4212
|
for (let i = 0; i < t.length; i++) {
|
|
4213
4213
|
const s = t[i];
|
|
4214
4214
|
if (!Bl.has(s.nodeName)) {
|
|
4215
|
-
const o =
|
|
4215
|
+
const o = Fl(s, n, u, !1);
|
|
4216
4216
|
o !== null && (r = r.concat(o));
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
@@ -4259,7 +4259,7 @@ function Rl(n, e, t, r = null) {
|
|
|
4259
4259
|
return u;
|
|
4260
4260
|
}
|
|
4261
4261
|
const Bl = /* @__PURE__ */ new Set(["STYLE", "SCRIPT"]);
|
|
4262
|
-
function
|
|
4262
|
+
function Fl(n, e, t, r, u = /* @__PURE__ */ new Map(), i) {
|
|
4263
4263
|
let s = [];
|
|
4264
4264
|
if (Bl.has(n.nodeName)) return s;
|
|
4265
4265
|
let o = null;
|
|
@@ -4285,7 +4285,7 @@ function $l(n, e, t, r, u = /* @__PURE__ */ new Map(), i) {
|
|
|
4285
4285
|
const h = n.childNodes;
|
|
4286
4286
|
let c = [];
|
|
4287
4287
|
const d = (o == null || !Ye(o)) && (o != null && yi(o) || r);
|
|
4288
|
-
for (let p = 0; p < h.length; p++) c.push(
|
|
4288
|
+
for (let p = 0; p < h.length; p++) c.push(...Fl(h[p], e, t, d, new Map(u), o));
|
|
4289
4289
|
return f != null && (c = f(c)), Jr(n) && (c = Kf(n, c, d ? () => {
|
|
4290
4290
|
const p = new gs();
|
|
4291
4291
|
return t.push(p), p;
|
|
@@ -4307,12 +4307,12 @@ function Kf(n, e, t) {
|
|
|
4307
4307
|
return u;
|
|
4308
4308
|
}
|
|
4309
4309
|
const Jf = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
|
|
4310
|
-
let ur = class
|
|
4310
|
+
let ur = class ql extends qt {
|
|
4311
4311
|
static getType() {
|
|
4312
4312
|
return "link";
|
|
4313
4313
|
}
|
|
4314
4314
|
static clone(e) {
|
|
4315
|
-
return new
|
|
4315
|
+
return new ql(e.__url, { rel: e.__rel, target: e.__target, title: e.__title }, e.__key);
|
|
4316
4316
|
}
|
|
4317
4317
|
constructor(e, t = {}, r) {
|
|
4318
4318
|
super(r);
|
|
@@ -4415,7 +4415,7 @@ function nu(n, e) {
|
|
|
4415
4415
|
function Ct(n) {
|
|
4416
4416
|
return n instanceof ur;
|
|
4417
4417
|
}
|
|
4418
|
-
let Au = class
|
|
4418
|
+
let Au = class Ul extends ur {
|
|
4419
4419
|
constructor(e, t = {}, r) {
|
|
4420
4420
|
super(e, t, r), this.__isUnlinked = t.isUnlinked !== void 0 && t.isUnlinked !== null && t.isUnlinked;
|
|
4421
4421
|
}
|
|
@@ -4423,7 +4423,7 @@ let Au = class ql extends ur {
|
|
|
4423
4423
|
return "autolink";
|
|
4424
4424
|
}
|
|
4425
4425
|
static clone(e) {
|
|
4426
|
-
return new
|
|
4426
|
+
return new Ul(e.__url, { isUnlinked: e.__isUnlinked, rel: e.__rel, target: e.__target, title: e.__title }, e.__key);
|
|
4427
4427
|
}
|
|
4428
4428
|
getIsUnlinked() {
|
|
4429
4429
|
return this.__isUnlinked;
|
|
@@ -4465,7 +4465,7 @@ function Vt(n) {
|
|
|
4465
4465
|
}
|
|
4466
4466
|
const Yt = Gn();
|
|
4467
4467
|
function Ju(n, e = {}) {
|
|
4468
|
-
const { target: t, title: r } = e, u = e.rel === void 0 ? "noreferrer" : e.rel, i =
|
|
4468
|
+
const { target: t, title: r } = e, u = e.rel === void 0 ? "noreferrer" : e.rel, i = F();
|
|
4469
4469
|
if (!I(i)) return;
|
|
4470
4470
|
const s = i.extract();
|
|
4471
4471
|
if (n === null) s.forEach((o) => {
|
|
@@ -4505,7 +4505,7 @@ function Ju(n, e = {}) {
|
|
|
4505
4505
|
function Zf(n) {
|
|
4506
4506
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4507
4507
|
}
|
|
4508
|
-
var
|
|
4508
|
+
var je = Zf(function(n) {
|
|
4509
4509
|
const e = new URLSearchParams();
|
|
4510
4510
|
e.append("code", n);
|
|
4511
4511
|
for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
|
|
@@ -4520,7 +4520,7 @@ function Qf(n) {
|
|
|
4520
4520
|
e++, t = r.getParent();
|
|
4521
4521
|
continue;
|
|
4522
4522
|
}
|
|
4523
|
-
|
|
4523
|
+
je(40);
|
|
4524
4524
|
}
|
|
4525
4525
|
return e;
|
|
4526
4526
|
}
|
|
@@ -4528,39 +4528,39 @@ function Qf(n) {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
function _i(n) {
|
|
4530
4530
|
let e = n.getParent();
|
|
4531
|
-
V(e) ||
|
|
4531
|
+
V(e) || je(40);
|
|
4532
4532
|
let t = e;
|
|
4533
4533
|
for (; t !== null; ) t = t.getParent(), V(t) && (e = t);
|
|
4534
4534
|
return e;
|
|
4535
4535
|
}
|
|
4536
|
-
function
|
|
4536
|
+
function jl(n) {
|
|
4537
4537
|
let e = [];
|
|
4538
4538
|
const t = n.getChildren().filter(ne);
|
|
4539
4539
|
for (let r = 0; r < t.length; r++) {
|
|
4540
4540
|
const u = t[r], i = u.getFirstChild();
|
|
4541
|
-
V(i) ? e = e.concat(
|
|
4541
|
+
V(i) ? e = e.concat(jl(i)) : e.push(u);
|
|
4542
4542
|
}
|
|
4543
4543
|
return e;
|
|
4544
4544
|
}
|
|
4545
|
-
function
|
|
4545
|
+
function ze(n) {
|
|
4546
4546
|
return ne(n) && V(n.getFirstChild());
|
|
4547
4547
|
}
|
|
4548
4548
|
function Eo(n) {
|
|
4549
4549
|
return Ee().append(n);
|
|
4550
4550
|
}
|
|
4551
|
-
function
|
|
4551
|
+
function zl(n, e) {
|
|
4552
4552
|
return ne(n) && (e.length === 0 || e.length === 1 && n.is(e[0]) && n.getChildrenSize() === 0);
|
|
4553
4553
|
}
|
|
4554
4554
|
function No(n, e) {
|
|
4555
4555
|
n.update(() => {
|
|
4556
|
-
const t =
|
|
4556
|
+
const t = F();
|
|
4557
4557
|
if (t !== null) {
|
|
4558
4558
|
const r = t.getNodes();
|
|
4559
4559
|
if (I(t)) {
|
|
4560
4560
|
const i = t.getStartEndPoints();
|
|
4561
|
-
i === null &&
|
|
4561
|
+
i === null && je(143);
|
|
4562
4562
|
const [s] = i, o = s.getNode(), a = o.getParent();
|
|
4563
|
-
if (
|
|
4563
|
+
if (zl(o, r)) {
|
|
4564
4564
|
const l = xe(e);
|
|
4565
4565
|
if (Ye(a)) {
|
|
4566
4566
|
o.replace(l);
|
|
@@ -4620,16 +4620,16 @@ function ko(n, e) {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
function bs(n, e) {
|
|
4622
4622
|
const t = n.getLastChild(), r = e.getFirstChild();
|
|
4623
|
-
t && r &&
|
|
4623
|
+
t && r && ze(t) && ze(r) && (bs(t.getFirstChild(), r.getFirstChild()), r.remove());
|
|
4624
4624
|
const u = e.getChildren();
|
|
4625
4625
|
u.length > 0 && n.append(...u), e.remove();
|
|
4626
4626
|
}
|
|
4627
4627
|
function Yf(n) {
|
|
4628
4628
|
n.update(() => {
|
|
4629
|
-
const e =
|
|
4629
|
+
const e = F();
|
|
4630
4630
|
if (I(e)) {
|
|
4631
4631
|
const t = /* @__PURE__ */ new Set(), r = e.getNodes(), u = e.anchor.getNode();
|
|
4632
|
-
if (
|
|
4632
|
+
if (zl(u, r)) t.add(_i(u));
|
|
4633
4633
|
else for (let i = 0; i < r.length; i++) {
|
|
4634
4634
|
const s = r[i];
|
|
4635
4635
|
if (Ka(s)) {
|
|
@@ -4639,7 +4639,7 @@ function Yf(n) {
|
|
|
4639
4639
|
}
|
|
4640
4640
|
for (const i of t) {
|
|
4641
4641
|
let s = i;
|
|
4642
|
-
const o =
|
|
4642
|
+
const o = jl(i);
|
|
4643
4643
|
for (const a of o) {
|
|
4644
4644
|
const l = Ce();
|
|
4645
4645
|
Dt(l, a.getChildren()), s.insertAfter(l), s = l, a.__key === e.anchor.key && e.anchor.set(l.getKey(), 0, "element"), a.__key === e.focus.key && e.focus.set(l.getKey(), 0, "element"), a.remove();
|
|
@@ -4651,22 +4651,22 @@ function Yf(n) {
|
|
|
4651
4651
|
}
|
|
4652
4652
|
function ed(n) {
|
|
4653
4653
|
const e = /* @__PURE__ */ new Set();
|
|
4654
|
-
if (
|
|
4654
|
+
if (ze(n) || e.has(n.getKey())) return;
|
|
4655
4655
|
const t = n.getParent(), r = n.getNextSibling(), u = n.getPreviousSibling();
|
|
4656
|
-
if (
|
|
4656
|
+
if (ze(r) && ze(u)) {
|
|
4657
4657
|
const i = u.getFirstChild();
|
|
4658
4658
|
if (V(i)) {
|
|
4659
4659
|
i.append(n);
|
|
4660
4660
|
const s = r.getFirstChild();
|
|
4661
4661
|
V(s) && (Dt(i, s.getChildren()), r.remove(), e.add(r.getKey()));
|
|
4662
4662
|
}
|
|
4663
|
-
} else if (
|
|
4663
|
+
} else if (ze(r)) {
|
|
4664
4664
|
const i = r.getFirstChild();
|
|
4665
4665
|
if (V(i)) {
|
|
4666
4666
|
const s = i.getFirstChild();
|
|
4667
4667
|
s !== null && s.insertBefore(n);
|
|
4668
4668
|
}
|
|
4669
|
-
} else if (
|
|
4669
|
+
} else if (ze(u)) {
|
|
4670
4670
|
const i = u.getFirstChild();
|
|
4671
4671
|
V(i) && i.append(n);
|
|
4672
4672
|
} else if (V(t)) {
|
|
@@ -4675,7 +4675,7 @@ function ed(n) {
|
|
|
4675
4675
|
}
|
|
4676
4676
|
}
|
|
4677
4677
|
function td(n) {
|
|
4678
|
-
if (
|
|
4678
|
+
if (ze(n)) return;
|
|
4679
4679
|
const e = n.getParent(), t = e ? e.getParent() : void 0;
|
|
4680
4680
|
if (V(t ? t.getParent() : void 0) && ne(t) && V(e)) {
|
|
4681
4681
|
const r = e ? e.getFirstChild() : void 0, u = e ? e.getLastChild() : void 0;
|
|
@@ -4690,12 +4690,12 @@ function td(n) {
|
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
function nd() {
|
|
4693
|
-
const n =
|
|
4693
|
+
const n = F();
|
|
4694
4694
|
if (!I(n) || !n.isCollapsed()) return !1;
|
|
4695
4695
|
const e = n.anchor.getNode();
|
|
4696
4696
|
if (!ne(e) || e.getChildrenSize() !== 0) return !1;
|
|
4697
4697
|
const t = _i(e), r = e.getParent();
|
|
4698
|
-
V(r) ||
|
|
4698
|
+
V(r) || je(40);
|
|
4699
4699
|
const u = r.getParent();
|
|
4700
4700
|
let i;
|
|
4701
4701
|
if (Ye(u)) i = Ce(), t.insertAfter(i);
|
|
@@ -4731,12 +4731,12 @@ function ru(...n) {
|
|
|
4731
4731
|
for (const t of n) if (t && typeof t == "string") for (const [r] of t.matchAll(/\S+/g)) e.push(r);
|
|
4732
4732
|
return e;
|
|
4733
4733
|
}
|
|
4734
|
-
let ir = class
|
|
4734
|
+
let ir = class $l extends qt {
|
|
4735
4735
|
static getType() {
|
|
4736
4736
|
return "listitem";
|
|
4737
4737
|
}
|
|
4738
4738
|
static clone(e) {
|
|
4739
|
-
return new
|
|
4739
|
+
return new $l(e.__value, e.__checked, e.__key);
|
|
4740
4740
|
}
|
|
4741
4741
|
constructor(e, t, r) {
|
|
4742
4742
|
super(r), this.__value = e === void 0 ? 1 : e, this.__checked = t;
|
|
@@ -4751,7 +4751,7 @@ let ir = class zl extends Ft {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
static transform() {
|
|
4753
4753
|
return (e) => {
|
|
4754
|
-
if (ne(e) ||
|
|
4754
|
+
if (ne(e) || je(144), e.__checked == null) return;
|
|
4755
4755
|
const t = e.getParent();
|
|
4756
4756
|
V(t) && t.getListType() !== "check" && e.getChecked() != null && e.setChecked(void 0);
|
|
4757
4757
|
};
|
|
@@ -4796,13 +4796,13 @@ let ir = class zl extends Ft {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
r.insertAfter(e), e.insertAfter(u);
|
|
4798
4798
|
}
|
|
4799
|
-
return t && (E(e) ||
|
|
4799
|
+
return t && (E(e) || je(139), this.getChildren().forEach((u) => {
|
|
4800
4800
|
e.append(u);
|
|
4801
4801
|
})), this.remove(), r.getChildrenSize() === 0 && r.remove(), e;
|
|
4802
4802
|
}
|
|
4803
4803
|
insertAfter(e, t = !0) {
|
|
4804
4804
|
const r = this.getParentOrThrow();
|
|
4805
|
-
if (V(r) ||
|
|
4805
|
+
if (V(r) || je(39), ne(e)) return super.insertAfter(e, t);
|
|
4806
4806
|
const u = this.getNextSiblings();
|
|
4807
4807
|
if (r.insertAfter(e, t), u.length !== 0) {
|
|
4808
4808
|
const i = xe(r.getListType());
|
|
@@ -4812,7 +4812,7 @@ let ir = class zl extends Ft {
|
|
|
4812
4812
|
}
|
|
4813
4813
|
remove(e) {
|
|
4814
4814
|
const t = this.getPreviousSibling(), r = this.getNextSibling();
|
|
4815
|
-
super.remove(e), t && r &&
|
|
4815
|
+
super.remove(e), t && r && ze(t) && ze(r) && (bs(t.getFirstChild(), r.getFirstChild()), r.remove());
|
|
4816
4816
|
}
|
|
4817
4817
|
insertNewAfter(e, t = !0) {
|
|
4818
4818
|
const r = Ee(this.__checked == null && void 0);
|
|
@@ -4857,7 +4857,7 @@ let ir = class zl extends Ft {
|
|
|
4857
4857
|
return r;
|
|
4858
4858
|
}
|
|
4859
4859
|
setIndent(e) {
|
|
4860
|
-
typeof e != "number" &&
|
|
4860
|
+
typeof e != "number" && je(117), (e = Math.floor(e)) >= 0 || je(199);
|
|
4861
4861
|
let t = this.getIndent();
|
|
4862
4862
|
for (; t !== e; ) t < e ? (ed(this), t++) : (td(this), t--);
|
|
4863
4863
|
return this;
|
|
@@ -4918,7 +4918,7 @@ function Ee(n) {
|
|
|
4918
4918
|
function ne(n) {
|
|
4919
4919
|
return n instanceof ir;
|
|
4920
4920
|
}
|
|
4921
|
-
class fn extends
|
|
4921
|
+
class fn extends qt {
|
|
4922
4922
|
static getType() {
|
|
4923
4923
|
return "list";
|
|
4924
4924
|
}
|
|
@@ -4953,7 +4953,7 @@ class fn extends Ft {
|
|
|
4953
4953
|
}
|
|
4954
4954
|
static transform() {
|
|
4955
4955
|
return (e) => {
|
|
4956
|
-
V(e) ||
|
|
4956
|
+
V(e) || je(163), function(t) {
|
|
4957
4957
|
const r = t.getNextSibling();
|
|
4958
4958
|
V(r) && t.getListType() === r.getListType() && bs(t, r);
|
|
4959
4959
|
}(e), function(t) {
|
|
@@ -5154,7 +5154,7 @@ function bd(n, e, t, r) {
|
|
|
5154
5154
|
}
|
|
5155
5155
|
o += m;
|
|
5156
5156
|
}
|
|
5157
|
-
const f =
|
|
5157
|
+
const f = F(), h = f ? f.getNodes().find(M) : void 0, c = ie(s.getTextContent());
|
|
5158
5158
|
return c.setFormat(s.getFormat()), c.setDetail(s.getDetail()), c.setStyle(s.getStyle()), u.append(c, ...a), h && h === s && (I(f) ? c.select(f.anchor.offset, f.focus.offset) : Ie(f) && c.select(0, c.getTextContent().length)), s.replace(u), l;
|
|
5159
5159
|
}
|
|
5160
5160
|
}
|
|
@@ -5185,7 +5185,7 @@ function yd(n, e, t) {
|
|
|
5185
5185
|
const r = (u, i) => {
|
|
5186
5186
|
t && t(u, i);
|
|
5187
5187
|
};
|
|
5188
|
-
return rt(n.registerNodeTransform(
|
|
5188
|
+
return rt(n.registerNodeTransform(Ft, (u) => {
|
|
5189
5189
|
const i = u.getParentOrThrow(), s = u.getPreviousSibling();
|
|
5190
5190
|
if (Vt(i) && !i.getIsUnlinked()) Xu(i, e, r);
|
|
5191
5191
|
else if (!Ct(i)) {
|
|
@@ -5217,7 +5217,7 @@ function yd(n, e, t) {
|
|
|
5217
5217
|
})(u, e, r);
|
|
5218
5218
|
}
|
|
5219
5219
|
}), n.registerCommand(Yt, (u) => {
|
|
5220
|
-
const i =
|
|
5220
|
+
const i = F();
|
|
5221
5221
|
return u !== null || !I(i) || i.extract().forEach((s) => {
|
|
5222
5222
|
const o = s.getParent();
|
|
5223
5223
|
if (Vt(o)) return o.setIsUnlinked(!o.getIsUnlinked()), o.markDirty(), !0;
|
|
@@ -5241,7 +5241,7 @@ function vd({ initialConfig: n, children: e }) {
|
|
|
5241
5241
|
const p = Ce();
|
|
5242
5242
|
d.append(p);
|
|
5243
5243
|
const m = Zl ? document.activeElement : null;
|
|
5244
|
-
(
|
|
5244
|
+
(F() !== null || m !== null && m === h.getRootElement()) && p.select();
|
|
5245
5245
|
}
|
|
5246
5246
|
}, xr);
|
|
5247
5247
|
else if (c !== null) switch (typeof c) {
|
|
@@ -5308,7 +5308,7 @@ const Yl = typeof window < "u" && window.document !== void 0 && window.document.
|
|
|
5308
5308
|
function Ed({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: r, ariaDescribedBy: u, ariaErrorMessage: i, ariaExpanded: s, ariaInvalid: o, ariaLabel: a, ariaLabelledBy: l, ariaMultiline: f, ariaOwns: h, ariaRequired: c, autoCapitalize: d, className: p, id: m, role: g = "textbox", spellCheck: y = !0, style: b, tabIndex: _, "data-testid": w, ...T }, S) {
|
|
5309
5309
|
const [P, C] = De(n.isEditable()), D = Ea((v) => {
|
|
5310
5310
|
v && v.ownerDocument && v.ownerDocument.defaultView ? n.setRootElement(v) : n.setRootElement(null);
|
|
5311
|
-
}, [n]),
|
|
5311
|
+
}, [n]), U = Vn(() => /* @__PURE__ */ function(...v) {
|
|
5312
5312
|
return (N) => {
|
|
5313
5313
|
v.forEach((A) => {
|
|
5314
5314
|
typeof A == "function" ? A(N) : A != null && (A.current = N);
|
|
@@ -5317,7 +5317,7 @@ function Ed({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaContr
|
|
|
5317
5317
|
}(S, D), [D, S]);
|
|
5318
5318
|
return Yl(() => (C(n.isEditable()), n.registerEditableListener((v) => {
|
|
5319
5319
|
C(v);
|
|
5320
|
-
})), [n]), X("div", { "aria-activedescendant": P ? e : void 0, "aria-autocomplete": P ? t : "none", "aria-controls": P ? r : void 0, "aria-describedby": u, ...i != null ? { "aria-errormessage": i } : {}, "aria-expanded": P && g === "combobox" ? !!s : void 0, ...o != null ? { "aria-invalid": o } : {}, "aria-label": a, "aria-labelledby": l, "aria-multiline": f, "aria-owns": P ? h : void 0, "aria-readonly": !P || void 0, "aria-required": c, autoCapitalize: d, className: p, contentEditable: P, "data-testid": w, id: m, ref:
|
|
5320
|
+
})), [n]), X("div", { "aria-activedescendant": P ? e : void 0, "aria-autocomplete": P ? t : "none", "aria-controls": P ? r : void 0, "aria-describedby": u, ...i != null ? { "aria-errormessage": i } : {}, "aria-expanded": P && g === "combobox" ? !!s : void 0, ...o != null ? { "aria-invalid": o } : {}, "aria-label": a, "aria-labelledby": l, "aria-multiline": f, "aria-owns": P ? h : void 0, "aria-readonly": !P || void 0, "aria-required": c, autoCapitalize: d, className: p, contentEditable: P, "data-testid": w, id: m, ref: U, role: P ? g : void 0, spellCheck: y, style: b, tabIndex: _, ...T });
|
|
5321
5321
|
}
|
|
5322
5322
|
const Nd = Ca(Ed);
|
|
5323
5323
|
function Do(n) {
|
|
@@ -5381,14 +5381,14 @@ var Mo = { error: null }, Pd = function(n) {
|
|
|
5381
5381
|
var i = this.state.error, s = this.props, o = s.fallbackRender, a = s.FallbackComponent, l = s.fallback;
|
|
5382
5382
|
if (i !== null) {
|
|
5383
5383
|
var f = { error: i, resetErrorBoundary: this.resetErrorBoundary };
|
|
5384
|
-
if (
|
|
5384
|
+
if (Fu.isValidElement(l)) return l;
|
|
5385
5385
|
if (typeof o == "function") return o(f);
|
|
5386
|
-
if (a) return
|
|
5386
|
+
if (a) return Fu.createElement(a, f);
|
|
5387
5387
|
throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
|
|
5388
5388
|
}
|
|
5389
5389
|
return this.props.children;
|
|
5390
5390
|
}, r;
|
|
5391
|
-
}(
|
|
5391
|
+
}(Fu.Component);
|
|
5392
5392
|
function Id({ children: n, onError: e }) {
|
|
5393
5393
|
return X(Pd, { fallback: X("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: e, children: n });
|
|
5394
5394
|
}
|
|
@@ -5446,7 +5446,7 @@ function Bd(n, e) {
|
|
|
5446
5446
|
function Bo(n) {
|
|
5447
5447
|
n.undoStack = [], n.redoStack = [], n.current = null;
|
|
5448
5448
|
}
|
|
5449
|
-
function
|
|
5449
|
+
function Fd(n, e, t) {
|
|
5450
5450
|
const r = Bd(n, t);
|
|
5451
5451
|
return rt(n.registerCommand(Hi, () => (function(i, s) {
|
|
5452
5452
|
const o = s.redoStack, a = s.undoStack;
|
|
@@ -5471,17 +5471,17 @@ function $d(n, e, t) {
|
|
|
5471
5471
|
e.current = { editor: n, editorState: i };
|
|
5472
5472
|
}));
|
|
5473
5473
|
}
|
|
5474
|
-
function
|
|
5474
|
+
function qd() {
|
|
5475
5475
|
return { current: null, redoStack: [], undoStack: [] };
|
|
5476
5476
|
}
|
|
5477
|
-
function
|
|
5477
|
+
function Ud({ delay: n, externalHistoryState: e }) {
|
|
5478
5478
|
const [t] = ke();
|
|
5479
5479
|
return function(r, u, i = 1e3) {
|
|
5480
|
-
const s = Vn(() => u ||
|
|
5481
|
-
ve(() =>
|
|
5480
|
+
const s = Vn(() => u || qd(), [u]);
|
|
5481
|
+
ve(() => Fd(r, s, i), [i, r, s]);
|
|
5482
5482
|
}(t, e, n), null;
|
|
5483
5483
|
}
|
|
5484
|
-
function
|
|
5484
|
+
function jd({ validateUrl: n, attributes: e }) {
|
|
5485
5485
|
const [t] = ke();
|
|
5486
5486
|
return ve(() => {
|
|
5487
5487
|
if (!t.hasNodes([ur])) throw new Error("LinkPlugin: LinkNode not registered on editor");
|
|
@@ -5493,7 +5493,7 @@ function Ud({ validateUrl: n, attributes: e }) {
|
|
|
5493
5493
|
return Ju(u, { ...e, rel: s, target: i, title: o }), !0;
|
|
5494
5494
|
}
|
|
5495
5495
|
}, Nt), n !== void 0 ? t.registerCommand(gu, (r) => {
|
|
5496
|
-
const u =
|
|
5496
|
+
const u = F();
|
|
5497
5497
|
if (!I(u) || u.isCollapsed() || !dt(r, ClipboardEvent)) return !1;
|
|
5498
5498
|
const i = r;
|
|
5499
5499
|
if (i.clipboardData === null) return !1;
|
|
@@ -5503,7 +5503,7 @@ function Ud({ validateUrl: n, attributes: e }) {
|
|
|
5503
5503
|
});
|
|
5504
5504
|
}, [t, n, e]), null;
|
|
5505
5505
|
}
|
|
5506
|
-
function
|
|
5506
|
+
function zd() {
|
|
5507
5507
|
const [n] = ke();
|
|
5508
5508
|
return ve(() => {
|
|
5509
5509
|
if (!n.hasNodes([fn, ir])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
@@ -5511,10 +5511,10 @@ function jd() {
|
|
|
5511
5511
|
ve(() => od(e), [e]);
|
|
5512
5512
|
}(n), null;
|
|
5513
5513
|
}
|
|
5514
|
-
const
|
|
5514
|
+
const $d = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? ln : ve;
|
|
5515
5515
|
function Wd({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
|
|
5516
5516
|
const [r] = ke();
|
|
5517
|
-
return
|
|
5517
|
+
return $d(() => {
|
|
5518
5518
|
if (t) return r.registerUpdateListener(({ editorState: u, dirtyElements: i, dirtyLeaves: s, prevEditorState: o, tags: a }) => {
|
|
5519
5519
|
e && i.size === 0 && s.size === 0 || n && a.has("history-merge") || o.isEmpty() || t(u, r, a);
|
|
5520
5520
|
});
|
|
@@ -5555,7 +5555,7 @@ function Kd(n) {
|
|
|
5555
5555
|
if (a) {
|
|
5556
5556
|
const [l, f, h, c, d, p] = a;
|
|
5557
5557
|
n.update(() => {
|
|
5558
|
-
const m =
|
|
5558
|
+
const m = F();
|
|
5559
5559
|
if (I(m)) {
|
|
5560
5560
|
const g = m.anchor;
|
|
5561
5561
|
let y = g.getNode(), b = 0, _ = 0;
|
|
@@ -5585,18 +5585,18 @@ var iu = Jd(function(n) {
|
|
|
5585
5585
|
for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
|
|
5586
5586
|
throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
5587
5587
|
});
|
|
5588
|
-
function Xd(n, e =
|
|
5588
|
+
function Xd(n, e = F()) {
|
|
5589
5589
|
return e == null && iu(166), I(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : Ml(n, e);
|
|
5590
5590
|
}
|
|
5591
|
-
function Zd(n, e =
|
|
5591
|
+
function Zd(n, e = F()) {
|
|
5592
5592
|
return e == null && iu(166), I(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(Qd(n, e));
|
|
5593
5593
|
}
|
|
5594
|
-
function
|
|
5594
|
+
function Fo(n, e, t) {
|
|
5595
5595
|
const r = n.getData("application/x-lexical-editor");
|
|
5596
5596
|
if (r) try {
|
|
5597
5597
|
const s = JSON.parse(r);
|
|
5598
5598
|
if (s.namespace === t._config.namespace && Array.isArray(s.nodes))
|
|
5599
|
-
return
|
|
5599
|
+
return qo(t, Yd(s.nodes), e);
|
|
5600
5600
|
} catch {
|
|
5601
5601
|
}
|
|
5602
5602
|
const u = n.getData("text/html");
|
|
@@ -5604,7 +5604,7 @@ function $o(n, e, t) {
|
|
|
5604
5604
|
const s = new DOMParser().parseFromString(function(o) {
|
|
5605
5605
|
return window.trustedTypes && window.trustedTypes.createPolicy ? window.trustedTypes.createPolicy("lexical", { createHTML: (a) => a }).createHTML(o) : o;
|
|
5606
5606
|
}(u), "text/html");
|
|
5607
|
-
return
|
|
5607
|
+
return qo(t, Dl(t, s), e);
|
|
5608
5608
|
} catch {
|
|
5609
5609
|
}
|
|
5610
5610
|
const i = n.getData("text/plain") || n.getData("text/uri-list");
|
|
@@ -5612,7 +5612,7 @@ function $o(n, e, t) {
|
|
|
5612
5612
|
const s = i.split(/(\r?\n|\t)/);
|
|
5613
5613
|
s[s.length - 1] === "" && s.pop();
|
|
5614
5614
|
for (let o = 0; o < s.length; o++) {
|
|
5615
|
-
const a =
|
|
5615
|
+
const a = F();
|
|
5616
5616
|
if (I(a)) {
|
|
5617
5617
|
const l = s[o];
|
|
5618
5618
|
l === `
|
|
@@ -5622,7 +5622,7 @@ function $o(n, e, t) {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
} else e.insertRawText(i);
|
|
5624
5624
|
}
|
|
5625
|
-
function
|
|
5625
|
+
function qo(n, e, t) {
|
|
5626
5626
|
n.dispatchCommand(_0, { nodes: e, selection: t }) || t.insertNodes(e);
|
|
5627
5627
|
}
|
|
5628
5628
|
function ec(n, e, t, r = []) {
|
|
@@ -5666,16 +5666,16 @@ function Yd(n) {
|
|
|
5666
5666
|
const e = [];
|
|
5667
5667
|
for (let t = 0; t < n.length; t++) {
|
|
5668
5668
|
const r = n[t], u = If(r);
|
|
5669
|
-
M(u) &&
|
|
5669
|
+
M(u) && Uf(u), e.push(u);
|
|
5670
5670
|
}
|
|
5671
5671
|
return e;
|
|
5672
5672
|
}
|
|
5673
|
-
let
|
|
5674
|
-
async function
|
|
5675
|
-
if (
|
|
5673
|
+
let $t = null;
|
|
5674
|
+
async function Uo(n, e, t) {
|
|
5675
|
+
if ($t !== null) return !1;
|
|
5676
5676
|
if (e !== null) return new Promise((a, l) => {
|
|
5677
5677
|
n.update(() => {
|
|
5678
|
-
a(
|
|
5678
|
+
a(jo(n, e, t));
|
|
5679
5679
|
});
|
|
5680
5680
|
});
|
|
5681
5681
|
const r = n.getRootElement(), u = n._window == null ? window.document : n._window.document, i = Ne(n._window);
|
|
@@ -5684,19 +5684,19 @@ async function qo(n, e, t) {
|
|
|
5684
5684
|
s.style.cssText = "position: fixed; top: -1000px;", s.append(u.createTextNode("#")), r.append(s);
|
|
5685
5685
|
const o = new Range();
|
|
5686
5686
|
return o.setStart(s, 0), o.setEnd(s, 1), i.removeAllRanges(), i.addRange(o), new Promise((a, l) => {
|
|
5687
|
-
const f = n.registerCommand(mu, (h) => (dt(h, ClipboardEvent) && (f(),
|
|
5688
|
-
|
|
5689
|
-
f(),
|
|
5687
|
+
const f = n.registerCommand(mu, (h) => (dt(h, ClipboardEvent) && (f(), $t !== null && (window.clearTimeout($t), $t = null), a(jo(n, h, t))), !0), Mf);
|
|
5688
|
+
$t = window.setTimeout(() => {
|
|
5689
|
+
f(), $t = null, a(!1);
|
|
5690
5690
|
}, 50), u.execCommand("copy"), s.remove();
|
|
5691
5691
|
});
|
|
5692
5692
|
}
|
|
5693
|
-
function
|
|
5693
|
+
function jo(n, e, t) {
|
|
5694
5694
|
if (t === void 0) {
|
|
5695
5695
|
const u = Ne(n._window);
|
|
5696
5696
|
if (!u) return !1;
|
|
5697
5697
|
const i = u.anchorNode, s = u.focusNode;
|
|
5698
5698
|
if (i !== null && s !== null && !Xn(n, i, s)) return !1;
|
|
5699
|
-
const o =
|
|
5699
|
+
const o = F();
|
|
5700
5700
|
if (o === null) return !1;
|
|
5701
5701
|
t = th(o);
|
|
5702
5702
|
}
|
|
@@ -5705,7 +5705,7 @@ function Uo(n, e, t) {
|
|
|
5705
5705
|
return r !== null && (nh(r, t), !0);
|
|
5706
5706
|
}
|
|
5707
5707
|
const eh = [["text/html", Xd], ["application/x-lexical-editor", Zd]];
|
|
5708
|
-
function th(n =
|
|
5708
|
+
function th(n = F()) {
|
|
5709
5709
|
const e = { "text/plain": n ? n.getTextContent() : "" };
|
|
5710
5710
|
if (n) {
|
|
5711
5711
|
const t = ff();
|
|
@@ -5722,7 +5722,7 @@ function nh(n, e) {
|
|
|
5722
5722
|
r !== void 0 && n.setData(t, r);
|
|
5723
5723
|
}
|
|
5724
5724
|
}
|
|
5725
|
-
function
|
|
5725
|
+
function zo(n, e) {
|
|
5726
5726
|
if (document.caretRangeFromPoint !== void 0) {
|
|
5727
5727
|
const t = document.caretRangeFromPoint(n, e);
|
|
5728
5728
|
return t === null ? null : { node: t.startContainer, offset: t.startOffset };
|
|
@@ -5733,7 +5733,7 @@ function jo(n, e) {
|
|
|
5733
5733
|
}
|
|
5734
5734
|
return null;
|
|
5735
5735
|
}
|
|
5736
|
-
const dn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, rh = dn && "documentMode" in document ? document.documentMode : null, uh = !(!dn || !("InputEvent" in window) || rh) && "getTargetRanges" in new window.InputEvent("input"), ih = dn && /Version\/[\d.]+.*Safari/.test(navigator.userAgent),
|
|
5736
|
+
const dn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, rh = dn && "documentMode" in document ? document.documentMode : null, uh = !(!dn || !("InputEvent" in window) || rh) && "getTargetRanges" in new window.InputEvent("input"), ih = dn && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), $o = dn && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, sh = dn && /^(?=.*Chrome).*/i.test(navigator.userAgent), oh = dn && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !sh, Wo = Gn();
|
|
5737
5737
|
function vr(n) {
|
|
5738
5738
|
let e = null;
|
|
5739
5739
|
if (dt(n, DragEvent) ? e = n.dataTransfer : dt(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
|
|
@@ -5741,7 +5741,7 @@ function vr(n) {
|
|
|
5741
5741
|
return [r, Array.from(e.files), u];
|
|
5742
5742
|
}
|
|
5743
5743
|
function Ho(n) {
|
|
5744
|
-
const e =
|
|
5744
|
+
const e = F();
|
|
5745
5745
|
if (!I(e)) return !1;
|
|
5746
5746
|
const t = /* @__PURE__ */ new Set(), r = e.getNodes();
|
|
5747
5747
|
for (let u = 0; u < r.length; u++) {
|
|
@@ -5760,24 +5760,24 @@ function wr(n) {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
function ah(n) {
|
|
5762
5762
|
return rt(n.registerCommand(ka, (e) => {
|
|
5763
|
-
const t =
|
|
5763
|
+
const t = F();
|
|
5764
5764
|
return !!Ie(t) && (t.clear(), !0);
|
|
5765
5765
|
}, 0), n.registerCommand(kt, (e) => {
|
|
5766
|
-
const t =
|
|
5766
|
+
const t = F();
|
|
5767
5767
|
return !!I(t) && (t.deleteCharacter(e), !0);
|
|
5768
5768
|
}, J), n.registerCommand(In, (e) => {
|
|
5769
|
-
const t =
|
|
5769
|
+
const t = F();
|
|
5770
5770
|
return !!I(t) && (t.deleteWord(e), !0);
|
|
5771
5771
|
}, J), n.registerCommand(Ln, (e) => {
|
|
5772
|
-
const t =
|
|
5772
|
+
const t = F();
|
|
5773
5773
|
return !!I(t) && (t.deleteLine(e), !0);
|
|
5774
5774
|
}, J), n.registerCommand(Zt, (e) => {
|
|
5775
|
-
const t =
|
|
5775
|
+
const t = F();
|
|
5776
5776
|
if (typeof e == "string") t !== null && t.insertText(e);
|
|
5777
5777
|
else {
|
|
5778
5778
|
if (t === null) return !1;
|
|
5779
5779
|
const r = e.dataTransfer;
|
|
5780
|
-
if (r != null)
|
|
5780
|
+
if (r != null) Fo(r, t, n);
|
|
5781
5781
|
else if (I(t)) {
|
|
5782
5782
|
const u = e.data;
|
|
5783
5783
|
return u && t.insertText(u), !0;
|
|
@@ -5785,13 +5785,13 @@ function ah(n) {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
return !0;
|
|
5787
5787
|
}, J), n.registerCommand(ni, () => {
|
|
5788
|
-
const e =
|
|
5788
|
+
const e = F();
|
|
5789
5789
|
return !!I(e) && (e.removeText(), !0);
|
|
5790
|
-
}, J), n.registerCommand(
|
|
5791
|
-
const t =
|
|
5790
|
+
}, J), n.registerCommand($e, (e) => {
|
|
5791
|
+
const t = F();
|
|
5792
5792
|
return !!I(t) && (t.formatText(e), !0);
|
|
5793
5793
|
}, J), n.registerCommand(k0, (e) => {
|
|
5794
|
-
const t =
|
|
5794
|
+
const t = F();
|
|
5795
5795
|
if (!I(t) && !Ie(t)) return !1;
|
|
5796
5796
|
const r = t.getNodes();
|
|
5797
5797
|
for (const u of r) {
|
|
@@ -5800,19 +5800,19 @@ function ah(n) {
|
|
|
5800
5800
|
}
|
|
5801
5801
|
return !0;
|
|
5802
5802
|
}, J), n.registerCommand(Xt, (e) => {
|
|
5803
|
-
const t =
|
|
5803
|
+
const t = F();
|
|
5804
5804
|
return !!I(t) && (t.insertLineBreak(e), !0);
|
|
5805
5805
|
}, J), n.registerCommand(Pn, () => {
|
|
5806
|
-
const e =
|
|
5806
|
+
const e = F();
|
|
5807
5807
|
return !!I(e) && (e.insertParagraph(), !0);
|
|
5808
5808
|
}, J), n.registerCommand(E0, () => (vl([er()]), !0), J), n.registerCommand(N0, () => Ho((e) => {
|
|
5809
5809
|
const t = e.getIndent();
|
|
5810
5810
|
e.setIndent(t + 1);
|
|
5811
|
-
}), J), n.registerCommand(
|
|
5811
|
+
}), J), n.registerCommand(qs, () => Ho((e) => {
|
|
5812
5812
|
const t = e.getIndent();
|
|
5813
5813
|
t > 0 && e.setIndent(t - 1);
|
|
5814
5814
|
}), J), n.registerCommand(Pa, (e) => {
|
|
5815
|
-
const t =
|
|
5815
|
+
const t = F();
|
|
5816
5816
|
if (Ie(t) && !wr(e.target)) {
|
|
5817
5817
|
const r = t.getNodes();
|
|
5818
5818
|
if (r.length > 0) return r[0].selectPrevious(), !0;
|
|
@@ -5822,7 +5822,7 @@ function ah(n) {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
return !1;
|
|
5824
5824
|
}, J), n.registerCommand(Ia, (e) => {
|
|
5825
|
-
const t =
|
|
5825
|
+
const t = F();
|
|
5826
5826
|
if (Ie(t)) {
|
|
5827
5827
|
const r = t.getNodes();
|
|
5828
5828
|
if (r.length > 0) return r[0].selectNext(0, 0), !0;
|
|
@@ -5836,7 +5836,7 @@ function ah(n) {
|
|
|
5836
5836
|
}
|
|
5837
5837
|
return !1;
|
|
5838
5838
|
}, J), n.registerCommand(Oa, (e) => {
|
|
5839
|
-
const t =
|
|
5839
|
+
const t = F();
|
|
5840
5840
|
if (Ie(t)) {
|
|
5841
5841
|
const r = t.getNodes();
|
|
5842
5842
|
if (r.length > 0) return e.preventDefault(), r[0].selectPrevious(), !0;
|
|
@@ -5848,7 +5848,7 @@ function ah(n) {
|
|
|
5848
5848
|
}
|
|
5849
5849
|
return !1;
|
|
5850
5850
|
}, J), n.registerCommand(Aa, (e) => {
|
|
5851
|
-
const t =
|
|
5851
|
+
const t = F();
|
|
5852
5852
|
if (Ie(t) && !wr(e.target)) {
|
|
5853
5853
|
const u = t.getNodes();
|
|
5854
5854
|
if (u.length > 0) return e.preventDefault(), u[0].selectNext(0, 0), !0;
|
|
@@ -5858,29 +5858,29 @@ function ah(n) {
|
|
|
5858
5858
|
return !!To(t, !1) && (e.preventDefault(), Co(t, r, !1), !0);
|
|
5859
5859
|
}, J), n.registerCommand(La, (e) => {
|
|
5860
5860
|
if (wr(e.target)) return !1;
|
|
5861
|
-
const t =
|
|
5861
|
+
const t = F();
|
|
5862
5862
|
if (!I(t)) return !1;
|
|
5863
5863
|
const { anchor: r } = t, u = r.getNode();
|
|
5864
|
-
return t.isCollapsed() && r.offset === 0 && !de(u) && Gf(u).getIndent() > 0 ? (e.preventDefault(), n.dispatchCommand(
|
|
5864
|
+
return t.isCollapsed() && r.offset === 0 && !de(u) && Gf(u).getIndent() > 0 ? (e.preventDefault(), n.dispatchCommand(qs, void 0)) : (!$o || navigator.language !== "ko-KR") && (e.preventDefault(), n.dispatchCommand(kt, !0));
|
|
5865
5865
|
}, J), n.registerCommand(Ma, (e) => {
|
|
5866
5866
|
if (wr(e.target)) return !1;
|
|
5867
|
-
const t =
|
|
5867
|
+
const t = F();
|
|
5868
5868
|
return !!I(t) && (e.preventDefault(), n.dispatchCommand(kt, !1));
|
|
5869
|
-
}, J), n.registerCommand(
|
|
5870
|
-
const t =
|
|
5869
|
+
}, J), n.registerCommand(Ur, (e) => {
|
|
5870
|
+
const t = F();
|
|
5871
5871
|
if (!I(t)) return !1;
|
|
5872
5872
|
if (e !== null) {
|
|
5873
|
-
if ((
|
|
5873
|
+
if (($o || ih || oh) && uh) return !1;
|
|
5874
5874
|
if (e.preventDefault(), e.shiftKey) return n.dispatchCommand(Xt, !1);
|
|
5875
5875
|
}
|
|
5876
5876
|
return n.dispatchCommand(Pn, void 0);
|
|
5877
5877
|
}, J), n.registerCommand(Da, () => {
|
|
5878
|
-
const e =
|
|
5878
|
+
const e = F();
|
|
5879
5879
|
return !!I(e) && (n.blur(), !0);
|
|
5880
5880
|
}, J), n.registerCommand(Ra, (e) => {
|
|
5881
5881
|
const [, t] = vr(e);
|
|
5882
5882
|
if (t.length > 0) {
|
|
5883
|
-
const u =
|
|
5883
|
+
const u = zo(e.clientX, e.clientY);
|
|
5884
5884
|
if (u !== null) {
|
|
5885
5885
|
const { offset: i, node: s } = u, o = tn(s);
|
|
5886
5886
|
if (o !== null) {
|
|
@@ -5897,31 +5897,31 @@ function ah(n) {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
return e.preventDefault(), !0;
|
|
5899
5899
|
}
|
|
5900
|
-
const r =
|
|
5900
|
+
const r = F();
|
|
5901
5901
|
return !!I(r);
|
|
5902
5902
|
}, J), n.registerCommand(Ba, (e) => {
|
|
5903
|
-
const [t] = vr(e), r =
|
|
5903
|
+
const [t] = vr(e), r = F();
|
|
5904
5904
|
return !(t && !I(r));
|
|
5905
|
-
}, J), n.registerCommand(
|
|
5906
|
-
const [t] = vr(e), r =
|
|
5905
|
+
}, J), n.registerCommand(Fa, (e) => {
|
|
5906
|
+
const [t] = vr(e), r = F();
|
|
5907
5907
|
if (t && !I(r)) return !1;
|
|
5908
|
-
const u =
|
|
5908
|
+
const u = zo(e.clientX, e.clientY);
|
|
5909
5909
|
if (u !== null) {
|
|
5910
5910
|
const i = tn(u.node);
|
|
5911
5911
|
ee(i) && e.preventDefault();
|
|
5912
5912
|
}
|
|
5913
5913
|
return !0;
|
|
5914
|
-
}, J), n.registerCommand(ri, () => (of(), !0), J), n.registerCommand(mu, (e) => (
|
|
5915
|
-
await
|
|
5916
|
-
const u =
|
|
5914
|
+
}, J), n.registerCommand(ri, () => (of(), !0), J), n.registerCommand(mu, (e) => (Uo(n, dt(e, ClipboardEvent) ? e : null), !0), J), n.registerCommand(Gi, (e) => (async function(t, r) {
|
|
5915
|
+
await Uo(r, dt(t, ClipboardEvent) ? t : null), r.update(() => {
|
|
5916
|
+
const u = F();
|
|
5917
5917
|
I(u) ? u.removeText() : Ie(u) && u.getNodes().forEach((i) => i.remove());
|
|
5918
5918
|
});
|
|
5919
5919
|
}(e, n), !0), J), n.registerCommand(gu, (e) => {
|
|
5920
5920
|
const [, t, r] = vr(e);
|
|
5921
|
-
return t.length > 0 && !r ? (n.dispatchCommand(Wo, t), !0) : rs(e.target) ? !1 :
|
|
5921
|
+
return t.length > 0 && !r ? (n.dispatchCommand(Wo, t), !0) : rs(e.target) ? !1 : F() !== null && (function(u, i) {
|
|
5922
5922
|
u.preventDefault(), i.update(() => {
|
|
5923
|
-
const s =
|
|
5924
|
-
o != null && s !== null &&
|
|
5923
|
+
const s = F(), o = dt(u, InputEvent) || dt(u, KeyboardEvent) ? null : u.clipboardData;
|
|
5924
|
+
o != null && s !== null && Fo(o, s, i);
|
|
5925
5925
|
}, { tag: "paste" });
|
|
5926
5926
|
}(e, n), !0);
|
|
5927
5927
|
}, J));
|
|
@@ -5969,7 +5969,7 @@ function ch({ content: n }) {
|
|
|
5969
5969
|
}(e), r = Gd();
|
|
5970
5970
|
return t ? typeof n == "function" ? n(r) : n : null;
|
|
5971
5971
|
}
|
|
5972
|
-
var
|
|
5972
|
+
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5973
5973
|
function fh(n) {
|
|
5974
5974
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
5975
5975
|
}
|
|
@@ -5992,7 +5992,7 @@ function dh(n) {
|
|
|
5992
5992
|
});
|
|
5993
5993
|
}), t;
|
|
5994
5994
|
}
|
|
5995
|
-
var tc = {},
|
|
5995
|
+
var tc = {}, Fn = {}, ys = {}, qn = {}, xs = {};
|
|
5996
5996
|
Object.defineProperty(xs, "__esModule", { value: !0 });
|
|
5997
5997
|
xs.default = new Uint16Array(
|
|
5998
5998
|
// prettier-ignore
|
|
@@ -6059,7 +6059,7 @@ var Ei = {};
|
|
|
6059
6059
|
n.default = u;
|
|
6060
6060
|
})(Ei);
|
|
6061
6061
|
(function(n) {
|
|
6062
|
-
var e =
|
|
6062
|
+
var e = j && j.__createBinding || (Object.create ? function(v, N, A, B) {
|
|
6063
6063
|
B === void 0 && (B = A);
|
|
6064
6064
|
var x = Object.getOwnPropertyDescriptor(N, A);
|
|
6065
6065
|
(!x || ("get" in x ? !N.__esModule : x.writable || x.configurable)) && (x = { enumerable: !0, get: function() {
|
|
@@ -6067,16 +6067,16 @@ var Ei = {};
|
|
|
6067
6067
|
} }), Object.defineProperty(v, B, x);
|
|
6068
6068
|
} : function(v, N, A, B) {
|
|
6069
6069
|
B === void 0 && (B = A), v[B] = N[A];
|
|
6070
|
-
}), t =
|
|
6070
|
+
}), t = j && j.__setModuleDefault || (Object.create ? function(v, N) {
|
|
6071
6071
|
Object.defineProperty(v, "default", { enumerable: !0, value: N });
|
|
6072
6072
|
} : function(v, N) {
|
|
6073
6073
|
v.default = N;
|
|
6074
|
-
}), r =
|
|
6074
|
+
}), r = j && j.__importStar || function(v) {
|
|
6075
6075
|
if (v && v.__esModule) return v;
|
|
6076
6076
|
var N = {};
|
|
6077
6077
|
if (v != null) for (var A in v) A !== "default" && Object.prototype.hasOwnProperty.call(v, A) && e(N, v, A);
|
|
6078
6078
|
return t(N, v), N;
|
|
6079
|
-
}, u =
|
|
6079
|
+
}, u = j && j.__importDefault || function(v) {
|
|
6080
6080
|
return v && v.__esModule ? v : { default: v };
|
|
6081
6081
|
};
|
|
6082
6082
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.decodeXML = n.decodeHTMLStrict = n.decodeHTMLAttribute = n.decodeHTML = n.determineBranch = n.EntityDecoder = n.DecodingMode = n.BinTrieFlags = n.fromCodePoint = n.replaceCodePoint = n.decodeCodePoint = n.xmlDecodeTree = n.htmlDecodeTree = void 0;
|
|
@@ -6219,18 +6219,18 @@ var Ei = {};
|
|
|
6219
6219
|
return N += (0, o.fromCodePoint)(B);
|
|
6220
6220
|
});
|
|
6221
6221
|
return function(x, O) {
|
|
6222
|
-
for (var k = 0,
|
|
6223
|
-
N += x.slice(k,
|
|
6222
|
+
for (var k = 0, q = 0; (q = x.indexOf("&", q)) >= 0; ) {
|
|
6223
|
+
N += x.slice(k, q), A.startEntity(O);
|
|
6224
6224
|
var Q = A.write(
|
|
6225
6225
|
x,
|
|
6226
6226
|
// Skip the "&"
|
|
6227
|
-
|
|
6227
|
+
q + 1
|
|
6228
6228
|
);
|
|
6229
6229
|
if (Q < 0) {
|
|
6230
|
-
k =
|
|
6230
|
+
k = q + A.end();
|
|
6231
6231
|
break;
|
|
6232
6232
|
}
|
|
6233
|
-
k =
|
|
6233
|
+
k = q + Q, q = Q === 0 ? k + 1 : k;
|
|
6234
6234
|
}
|
|
6235
6235
|
var te = N + x.slice(k);
|
|
6236
6236
|
return N = "", te;
|
|
@@ -6244,11 +6244,11 @@ var Ei = {};
|
|
|
6244
6244
|
var k = B - O;
|
|
6245
6245
|
return k < 0 || k >= x ? -1 : v[A + k] - 1;
|
|
6246
6246
|
}
|
|
6247
|
-
for (var
|
|
6248
|
-
var te =
|
|
6249
|
-
if (
|
|
6250
|
-
|
|
6251
|
-
else if (
|
|
6247
|
+
for (var q = A, Q = q + x - 1; q <= Q; ) {
|
|
6248
|
+
var te = q + Q >>> 1, zt = v[te];
|
|
6249
|
+
if (zt < B)
|
|
6250
|
+
q = te + 1;
|
|
6251
|
+
else if (zt > B)
|
|
6252
6252
|
Q = te - 1;
|
|
6253
6253
|
else
|
|
6254
6254
|
return v[te + x];
|
|
@@ -6269,14 +6269,14 @@ var Ei = {};
|
|
|
6269
6269
|
return T(v, y.Strict);
|
|
6270
6270
|
}
|
|
6271
6271
|
n.decodeHTMLStrict = D;
|
|
6272
|
-
function
|
|
6272
|
+
function U(v) {
|
|
6273
6273
|
return S(v, y.Strict);
|
|
6274
6274
|
}
|
|
6275
|
-
n.decodeXML =
|
|
6276
|
-
})(
|
|
6275
|
+
n.decodeXML = U;
|
|
6276
|
+
})(qn);
|
|
6277
6277
|
(function(n) {
|
|
6278
6278
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.QuoteType = void 0;
|
|
6279
|
-
var e =
|
|
6279
|
+
var e = qn, t;
|
|
6280
6280
|
(function(c) {
|
|
6281
6281
|
c[c.Tab = 9] = "Tab", c[c.NewLine = 10] = "NewLine", c[c.FormFeed = 12] = "FormFeed", c[c.CarriageReturn = 13] = "CarriageReturn", c[c.Space = 32] = "Space", c[c.ExclamationMark = 33] = "ExclamationMark", c[c.Number = 35] = "Number", c[c.Amp = 38] = "Amp", c[c.SingleQuote = 39] = "SingleQuote", c[c.DoubleQuote = 34] = "DoubleQuote", c[c.Dash = 45] = "Dash", c[c.Slash = 47] = "Slash", c[c.Zero = 48] = "Zero", c[c.Nine = 57] = "Nine", c[c.Semi = 59] = "Semi", c[c.Lt = 60] = "Lt", c[c.Eq = 61] = "Eq", c[c.Gt = 62] = "Gt", c[c.Questionmark = 63] = "Questionmark", c[c.UpperA = 65] = "UpperA", c[c.LowerA = 97] = "LowerA", c[c.UpperF = 70] = "UpperF", c[c.LowerF = 102] = "LowerF", c[c.UpperZ = 90] = "UpperZ", c[c.LowerZ = 122] = "LowerZ", c[c.LowerX = 120] = "LowerX", c[c.OpeningSquareBracket = 91] = "OpeningSquareBracket";
|
|
6282
6282
|
})(t || (t = {}));
|
|
@@ -6609,7 +6609,7 @@ var Ei = {};
|
|
|
6609
6609
|
);
|
|
6610
6610
|
n.default = h;
|
|
6611
6611
|
})(ys);
|
|
6612
|
-
var hh =
|
|
6612
|
+
var hh = j && j.__createBinding || (Object.create ? function(n, e, t, r) {
|
|
6613
6613
|
r === void 0 && (r = t);
|
|
6614
6614
|
var u = Object.getOwnPropertyDescriptor(e, t);
|
|
6615
6615
|
(!u || ("get" in u ? !e.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
@@ -6617,19 +6617,19 @@ var hh = U && U.__createBinding || (Object.create ? function(n, e, t, r) {
|
|
|
6617
6617
|
} }), Object.defineProperty(n, r, u);
|
|
6618
6618
|
} : function(n, e, t, r) {
|
|
6619
6619
|
r === void 0 && (r = t), n[r] = e[t];
|
|
6620
|
-
}), ph =
|
|
6620
|
+
}), ph = j && j.__setModuleDefault || (Object.create ? function(n, e) {
|
|
6621
6621
|
Object.defineProperty(n, "default", { enumerable: !0, value: e });
|
|
6622
6622
|
} : function(n, e) {
|
|
6623
6623
|
n.default = e;
|
|
6624
|
-
}), gh =
|
|
6624
|
+
}), gh = j && j.__importStar || function(n) {
|
|
6625
6625
|
if (n && n.__esModule) return n;
|
|
6626
6626
|
var e = {};
|
|
6627
6627
|
if (n != null) for (var t in n) t !== "default" && Object.prototype.hasOwnProperty.call(n, t) && hh(e, n, t);
|
|
6628
6628
|
return ph(e, n), e;
|
|
6629
6629
|
};
|
|
6630
|
-
Object.defineProperty(
|
|
6631
|
-
|
|
6632
|
-
var Sr = gh(ys), Go =
|
|
6630
|
+
Object.defineProperty(Fn, "__esModule", { value: !0 });
|
|
6631
|
+
Fn.Parser = void 0;
|
|
6632
|
+
var Sr = gh(ys), Go = qn, Wt = /* @__PURE__ */ new Set([
|
|
6633
6633
|
"input",
|
|
6634
6634
|
"option",
|
|
6635
6635
|
"optgroup",
|
|
@@ -6858,7 +6858,7 @@ var Sr = gh(ys), Go = Fn, Wt = /* @__PURE__ */ new Set([
|
|
|
6858
6858
|
}, n;
|
|
6859
6859
|
}()
|
|
6860
6860
|
);
|
|
6861
|
-
|
|
6861
|
+
Fn.Parser = xh;
|
|
6862
6862
|
var et = {}, hn = {};
|
|
6863
6863
|
(function(n) {
|
|
6864
6864
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.Doctype = n.CDATA = n.Tag = n.Style = n.Script = n.Comment = n.Directive = n.Text = n.Root = n.isTag = n.ElementType = void 0;
|
|
@@ -6871,7 +6871,7 @@ var et = {}, hn = {};
|
|
|
6871
6871
|
}
|
|
6872
6872
|
n.isTag = t, n.Root = e.Root, n.Text = e.Text, n.Directive = e.Directive, n.Comment = e.Comment, n.Script = e.Script, n.Style = e.Style, n.Tag = e.Tag, n.CDATA = e.CDATA, n.Doctype = e.Doctype;
|
|
6873
6873
|
})(hn);
|
|
6874
|
-
var W = {}, _t =
|
|
6874
|
+
var W = {}, _t = j && j.__extends || /* @__PURE__ */ function() {
|
|
6875
6875
|
var n = function(e, t) {
|
|
6876
6876
|
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, u) {
|
|
6877
6877
|
r.__proto__ = u;
|
|
@@ -6888,7 +6888,7 @@ var W = {}, _t = U && U.__extends || /* @__PURE__ */ function() {
|
|
|
6888
6888
|
}
|
|
6889
6889
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
6890
6890
|
};
|
|
6891
|
-
}(), On =
|
|
6891
|
+
}(), On = j && j.__assign || function() {
|
|
6892
6892
|
return On = Object.assign || function(n) {
|
|
6893
6893
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
6894
6894
|
e = arguments[t];
|
|
@@ -7221,7 +7221,7 @@ function Zu(n) {
|
|
|
7221
7221
|
return e;
|
|
7222
7222
|
}
|
|
7223
7223
|
(function(n) {
|
|
7224
|
-
var e =
|
|
7224
|
+
var e = j && j.__createBinding || (Object.create ? function(o, a, l, f) {
|
|
7225
7225
|
f === void 0 && (f = l);
|
|
7226
7226
|
var h = Object.getOwnPropertyDescriptor(a, l);
|
|
7227
7227
|
(!h || ("get" in h ? !a.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
|
|
@@ -7229,7 +7229,7 @@ function Zu(n) {
|
|
|
7229
7229
|
} }), Object.defineProperty(o, f, h);
|
|
7230
7230
|
} : function(o, a, l, f) {
|
|
7231
7231
|
f === void 0 && (f = l), o[f] = a[l];
|
|
7232
|
-
}), t =
|
|
7232
|
+
}), t = j && j.__exportStar || function(o, a) {
|
|
7233
7233
|
for (var l in o) l !== "default" && !Object.prototype.hasOwnProperty.call(a, l) && e(a, o, l);
|
|
7234
7234
|
};
|
|
7235
7235
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.DomHandler = void 0;
|
|
@@ -7351,7 +7351,7 @@ var su = {};
|
|
|
7351
7351
|
[160, " "]
|
|
7352
7352
|
]));
|
|
7353
7353
|
})(su);
|
|
7354
|
-
var vh =
|
|
7354
|
+
var vh = j && j.__importDefault || function(n) {
|
|
7355
7355
|
return n && n.__esModule ? n : { default: n };
|
|
7356
7356
|
};
|
|
7357
7357
|
Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
@@ -7391,7 +7391,7 @@ function mc(n, e) {
|
|
|
7391
7391
|
}
|
|
7392
7392
|
(function(n) {
|
|
7393
7393
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.decodeXMLStrict = n.decodeHTML5Strict = n.decodeHTML4Strict = n.decodeHTML5 = n.decodeHTML4 = n.decodeHTMLAttribute = n.decodeHTMLStrict = n.decodeHTML = n.decodeXML = n.DecodingMode = n.EntityDecoder = n.encodeHTML5 = n.encodeHTML4 = n.encodeNonAsciiHTML = n.encodeHTML = n.escapeText = n.escapeAttribute = n.escapeUTF8 = n.escape = n.encodeXML = n.encode = n.decodeStrict = n.decode = n.EncodingMode = n.EntityLevel = void 0;
|
|
7394
|
-
var e =
|
|
7394
|
+
var e = qn, t = Mt, r = su, u;
|
|
7395
7395
|
(function(c) {
|
|
7396
7396
|
c[c.XML = 0] = "XML", c[c.HTML = 1] = "HTML";
|
|
7397
7397
|
})(u = n.EntityLevel || (n.EntityLevel = {}));
|
|
@@ -7444,7 +7444,7 @@ function mc(n, e) {
|
|
|
7444
7444
|
} }), Object.defineProperty(n, "encodeHTML5", { enumerable: !0, get: function() {
|
|
7445
7445
|
return f.encodeHTML;
|
|
7446
7446
|
} });
|
|
7447
|
-
var h =
|
|
7447
|
+
var h = qn;
|
|
7448
7448
|
Object.defineProperty(n, "EntityDecoder", { enumerable: !0, get: function() {
|
|
7449
7449
|
return h.EntityDecoder;
|
|
7450
7450
|
} }), Object.defineProperty(n, "DecodingMode", { enumerable: !0, get: function() {
|
|
@@ -7576,7 +7576,7 @@ rn.attributeNames = new Map([
|
|
|
7576
7576
|
].map(function(n) {
|
|
7577
7577
|
return [n.toLowerCase(), n];
|
|
7578
7578
|
}));
|
|
7579
|
-
var Jt =
|
|
7579
|
+
var Jt = j && j.__assign || function() {
|
|
7580
7580
|
return Jt = Object.assign || function(n) {
|
|
7581
7581
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
7582
7582
|
e = arguments[t];
|
|
@@ -7584,7 +7584,7 @@ var Jt = U && U.__assign || function() {
|
|
|
7584
7584
|
}
|
|
7585
7585
|
return n;
|
|
7586
7586
|
}, Jt.apply(this, arguments);
|
|
7587
|
-
}, Eh =
|
|
7587
|
+
}, Eh = j && j.__createBinding || (Object.create ? function(n, e, t, r) {
|
|
7588
7588
|
r === void 0 && (r = t);
|
|
7589
7589
|
var u = Object.getOwnPropertyDescriptor(e, t);
|
|
7590
7590
|
(!u || ("get" in u ? !e.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
@@ -7592,11 +7592,11 @@ var Jt = U && U.__assign || function() {
|
|
|
7592
7592
|
} }), Object.defineProperty(n, r, u);
|
|
7593
7593
|
} : function(n, e, t, r) {
|
|
7594
7594
|
r === void 0 && (r = t), n[r] = e[t];
|
|
7595
|
-
}), Nh =
|
|
7595
|
+
}), Nh = j && j.__setModuleDefault || (Object.create ? function(n, e) {
|
|
7596
7596
|
Object.defineProperty(n, "default", { enumerable: !0, value: e });
|
|
7597
7597
|
} : function(n, e) {
|
|
7598
7598
|
n.default = e;
|
|
7599
|
-
}), kh =
|
|
7599
|
+
}), kh = j && j.__importStar || function(n) {
|
|
7600
7600
|
if (n && n.__esModule) return n;
|
|
7601
7601
|
var e = {};
|
|
7602
7602
|
if (n != null) for (var t in n) t !== "default" && Object.prototype.hasOwnProperty.call(n, t) && Eh(e, n, t);
|
|
@@ -7664,9 +7664,9 @@ function Ih(n, e) {
|
|
|
7664
7664
|
case Ke.Directive:
|
|
7665
7665
|
return Rh(n);
|
|
7666
7666
|
case Ke.Comment:
|
|
7667
|
-
return
|
|
7667
|
+
return qh(n);
|
|
7668
7668
|
case Ke.CDATA:
|
|
7669
|
-
return
|
|
7669
|
+
return Fh(n);
|
|
7670
7670
|
case Ke.Script:
|
|
7671
7671
|
case Ke.Style:
|
|
7672
7672
|
case Ke.Tag:
|
|
@@ -7705,26 +7705,26 @@ function Bh(n, e) {
|
|
|
7705
7705
|
var t, r = n.data || "";
|
|
7706
7706
|
return ((t = e.encodeEntities) !== null && t !== void 0 ? t : e.decodeEntities) !== !1 && !(!e.xmlMode && n.parent && Ah.has(n.parent.name)) && (r = e.xmlMode || e.encodeEntities !== "utf8" ? (0, ou.encodeXML)(r) : (0, ou.escapeText)(r)), r;
|
|
7707
7707
|
}
|
|
7708
|
-
function
|
|
7708
|
+
function Fh(n) {
|
|
7709
7709
|
return "<![CDATA[".concat(n.children[0].data, "]]>");
|
|
7710
7710
|
}
|
|
7711
|
-
function
|
|
7711
|
+
function qh(n) {
|
|
7712
7712
|
return "<!--".concat(n.data, "-->");
|
|
7713
7713
|
}
|
|
7714
|
-
var
|
|
7714
|
+
var Uh = j && j.__importDefault || function(n) {
|
|
7715
7715
|
return n && n.__esModule ? n : { default: n };
|
|
7716
7716
|
};
|
|
7717
7717
|
Object.defineProperty(vt, "__esModule", { value: !0 });
|
|
7718
7718
|
vt.getOuterHTML = yc;
|
|
7719
|
-
vt.getInnerHTML =
|
|
7719
|
+
vt.getInnerHTML = $h;
|
|
7720
7720
|
vt.getText = Br;
|
|
7721
7721
|
vt.textContent = Ni;
|
|
7722
7722
|
vt.innerText = ki;
|
|
7723
|
-
var We = et,
|
|
7723
|
+
var We = et, jh = Uh(sr), zh = hn;
|
|
7724
7724
|
function yc(n, e) {
|
|
7725
|
-
return (0,
|
|
7725
|
+
return (0, jh.default)(n, e);
|
|
7726
7726
|
}
|
|
7727
|
-
function
|
|
7727
|
+
function $h(n, e) {
|
|
7728
7728
|
return (0, We.hasChildren)(n) ? n.children.map(function(t) {
|
|
7729
7729
|
return yc(t, e);
|
|
7730
7730
|
}).join("") : "";
|
|
@@ -7737,7 +7737,7 @@ function Ni(n) {
|
|
|
7737
7737
|
return Array.isArray(n) ? n.map(Ni).join("") : (0, We.hasChildren)(n) && !(0, We.isComment)(n) ? Ni(n.children) : (0, We.isText)(n) ? n.data : "";
|
|
7738
7738
|
}
|
|
7739
7739
|
function ki(n) {
|
|
7740
|
-
return Array.isArray(n) ? n.map(ki).join("") : (0, We.hasChildren)(n) && (n.type ===
|
|
7740
|
+
return Array.isArray(n) ? n.map(ki).join("") : (0, We.hasChildren)(n) && (n.type === zh.ElementType.Tag || (0, We.isCDATA)(n)) ? ki(n.children) : (0, We.isText)(n) ? n.data : "";
|
|
7741
7741
|
}
|
|
7742
7742
|
var Ve = {};
|
|
7743
7743
|
Object.defineProperty(Ve, "__esModule", { value: !0 });
|
|
@@ -7976,12 +7976,12 @@ function lp(n, e, t, r) {
|
|
|
7976
7976
|
function cp(n, e, t, r) {
|
|
7977
7977
|
return t === void 0 && (t = !0), r === void 0 && (r = 1 / 0), (0, ar.filter)(au.tag_type(n), e, t, r);
|
|
7978
7978
|
}
|
|
7979
|
-
var
|
|
7980
|
-
Object.defineProperty(
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7979
|
+
var Ut = {};
|
|
7980
|
+
Object.defineProperty(Ut, "__esModule", { value: !0 });
|
|
7981
|
+
Ut.DocumentPosition = void 0;
|
|
7982
|
+
Ut.removeSubsets = fp;
|
|
7983
|
+
Ut.compareDocumentPosition = Cc;
|
|
7984
|
+
Ut.uniqueSort = dp;
|
|
7985
7985
|
var ea = et;
|
|
7986
7986
|
function fp(n) {
|
|
7987
7987
|
for (var e = n.length; --e >= 0; ) {
|
|
@@ -8001,7 +8001,7 @@ function fp(n) {
|
|
|
8001
8001
|
var Le;
|
|
8002
8002
|
(function(n) {
|
|
8003
8003
|
n[n.DISCONNECTED = 1] = "DISCONNECTED", n[n.PRECEDING = 2] = "PRECEDING", n[n.FOLLOWING = 4] = "FOLLOWING", n[n.CONTAINS = 8] = "CONTAINS", n[n.CONTAINED_BY = 16] = "CONTAINED_BY";
|
|
8004
|
-
})(Le || (
|
|
8004
|
+
})(Le || (Ut.DocumentPosition = Le = {}));
|
|
8005
8005
|
function Cc(n, e) {
|
|
8006
8006
|
var t = [], r = [];
|
|
8007
8007
|
if (n === e)
|
|
@@ -8109,7 +8109,7 @@ function xp(n) {
|
|
|
8109
8109
|
return n === "rss" || n === "feed" || n === "rdf:RDF";
|
|
8110
8110
|
}
|
|
8111
8111
|
(function(n) {
|
|
8112
|
-
var e =
|
|
8112
|
+
var e = j && j.__createBinding || (Object.create ? function(u, i, s, o) {
|
|
8113
8113
|
o === void 0 && (o = s);
|
|
8114
8114
|
var a = Object.getOwnPropertyDescriptor(i, s);
|
|
8115
8115
|
(!a || ("get" in a ? !i.__esModule : a.writable || a.configurable)) && (a = { enumerable: !0, get: function() {
|
|
@@ -8117,10 +8117,10 @@ function xp(n) {
|
|
|
8117
8117
|
} }), Object.defineProperty(u, o, a);
|
|
8118
8118
|
} : function(u, i, s, o) {
|
|
8119
8119
|
o === void 0 && (o = s), u[o] = i[s];
|
|
8120
|
-
}), t =
|
|
8120
|
+
}), t = j && j.__exportStar || function(u, i) {
|
|
8121
8121
|
for (var s in u) s !== "default" && !Object.prototype.hasOwnProperty.call(i, s) && e(i, u, s);
|
|
8122
8122
|
};
|
|
8123
|
-
Object.defineProperty(n, "__esModule", { value: !0 }), n.hasChildren = n.isDocument = n.isComment = n.isText = n.isCDATA = n.isTag = void 0, t(vt, n), t(Ve, n), t(wt, n), t(ut, n), t(it, n), t(
|
|
8123
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.hasChildren = n.isDocument = n.isComment = n.isText = n.isCDATA = n.isTag = void 0, t(vt, n), t(Ve, n), t(wt, n), t(ut, n), t(it, n), t(Ut, n), t(Es, n);
|
|
8124
8124
|
var r = et;
|
|
8125
8125
|
Object.defineProperty(n, "isTag", { enumerable: !0, get: function() {
|
|
8126
8126
|
return r.isTag;
|
|
@@ -8137,7 +8137,7 @@ function xp(n) {
|
|
|
8137
8137
|
} });
|
|
8138
8138
|
})(Rr);
|
|
8139
8139
|
(function(n) {
|
|
8140
|
-
var e =
|
|
8140
|
+
var e = j && j.__createBinding || (Object.create ? function(y, b, _, w) {
|
|
8141
8141
|
w === void 0 && (w = _);
|
|
8142
8142
|
var T = Object.getOwnPropertyDescriptor(b, _);
|
|
8143
8143
|
(!T || ("get" in T ? !b.__esModule : T.writable || T.configurable)) && (T = { enumerable: !0, get: function() {
|
|
@@ -8145,20 +8145,20 @@ function xp(n) {
|
|
|
8145
8145
|
} }), Object.defineProperty(y, w, T);
|
|
8146
8146
|
} : function(y, b, _, w) {
|
|
8147
8147
|
w === void 0 && (w = _), y[w] = b[_];
|
|
8148
|
-
}), t =
|
|
8148
|
+
}), t = j && j.__setModuleDefault || (Object.create ? function(y, b) {
|
|
8149
8149
|
Object.defineProperty(y, "default", { enumerable: !0, value: b });
|
|
8150
8150
|
} : function(y, b) {
|
|
8151
8151
|
y.default = b;
|
|
8152
|
-
}), r =
|
|
8152
|
+
}), r = j && j.__importStar || function(y) {
|
|
8153
8153
|
if (y && y.__esModule) return y;
|
|
8154
8154
|
var b = {};
|
|
8155
8155
|
if (y != null) for (var _ in y) _ !== "default" && Object.prototype.hasOwnProperty.call(y, _) && e(b, y, _);
|
|
8156
8156
|
return t(b, y), b;
|
|
8157
|
-
}, u =
|
|
8157
|
+
}, u = j && j.__importDefault || function(y) {
|
|
8158
8158
|
return y && y.__esModule ? y : { default: y };
|
|
8159
8159
|
};
|
|
8160
8160
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.DomUtils = n.parseFeed = n.getFeed = n.ElementType = n.Tokenizer = n.createDomStream = n.parseDOM = n.parseDocument = n.DefaultHandler = n.DomHandler = n.Parser = void 0;
|
|
8161
|
-
var i =
|
|
8161
|
+
var i = Fn, s = Fn;
|
|
8162
8162
|
Object.defineProperty(n, "Parser", { enumerable: !0, get: function() {
|
|
8163
8163
|
return s.Parser;
|
|
8164
8164
|
} });
|
|
@@ -8233,12 +8233,12 @@ function Np(n) {
|
|
|
8233
8233
|
function kp(n) {
|
|
8234
8234
|
return Array.isArray(n) ? [] : {};
|
|
8235
8235
|
}
|
|
8236
|
-
function
|
|
8236
|
+
function Un(n, e) {
|
|
8237
8237
|
return e.clone !== !1 && e.isMergeableObject(n) ? un(kp(n), n, e) : n;
|
|
8238
8238
|
}
|
|
8239
8239
|
function Ap(n, e, t) {
|
|
8240
8240
|
return n.concat(e).map(function(r) {
|
|
8241
|
-
return
|
|
8241
|
+
return Un(r, t);
|
|
8242
8242
|
});
|
|
8243
8243
|
}
|
|
8244
8244
|
function Op(n, e) {
|
|
@@ -8268,15 +8268,15 @@ function Ip(n, e) {
|
|
|
8268
8268
|
function Lp(n, e, t) {
|
|
8269
8269
|
var r = {};
|
|
8270
8270
|
return t.isMergeableObject(n) && na(n).forEach(function(u) {
|
|
8271
|
-
r[u] =
|
|
8271
|
+
r[u] = Un(n[u], t);
|
|
8272
8272
|
}), na(e).forEach(function(u) {
|
|
8273
|
-
Ip(n, u) || (Nc(n, u) && t.isMergeableObject(e[u]) ? r[u] = Op(u, t)(n[u], e[u], t) : r[u] =
|
|
8273
|
+
Ip(n, u) || (Nc(n, u) && t.isMergeableObject(e[u]) ? r[u] = Op(u, t)(n[u], e[u], t) : r[u] = Un(e[u], t));
|
|
8274
8274
|
}), r;
|
|
8275
8275
|
}
|
|
8276
8276
|
function un(n, e, t) {
|
|
8277
|
-
t = t || {}, t.arrayMerge = t.arrayMerge || Ap, t.isMergeableObject = t.isMergeableObject || wp, t.cloneUnlessOtherwiseSpecified =
|
|
8277
|
+
t = t || {}, t.arrayMerge = t.arrayMerge || Ap, t.isMergeableObject = t.isMergeableObject || wp, t.cloneUnlessOtherwiseSpecified = Un;
|
|
8278
8278
|
var r = Array.isArray(e), u = Array.isArray(n), i = r === u;
|
|
8279
|
-
return i ? r ? t.arrayMerge(n, e, t) : Lp(n, e, t) :
|
|
8279
|
+
return i ? r ? t.arrayMerge(n, e, t) : Lp(n, e, t) : Un(e, t);
|
|
8280
8280
|
}
|
|
8281
8281
|
un.all = function(e, t) {
|
|
8282
8282
|
if (!Array.isArray(e))
|
|
@@ -8289,7 +8289,7 @@ var Dp = un, Mp = Dp, kc = { exports: {} };
|
|
|
8289
8289
|
(function(n) {
|
|
8290
8290
|
(function(e, t) {
|
|
8291
8291
|
n.exports ? n.exports = t() : e.parseSrcset = t();
|
|
8292
|
-
})(
|
|
8292
|
+
})(j, function() {
|
|
8293
8293
|
return function(e) {
|
|
8294
8294
|
function t(w) {
|
|
8295
8295
|
return w === " " || // space
|
|
@@ -8342,25 +8342,25 @@ var Dp = un, Mp = Dp, kc = { exports: {} };
|
|
|
8342
8342
|
}
|
|
8343
8343
|
}
|
|
8344
8344
|
function _() {
|
|
8345
|
-
var w = !1, T, S, P, C, D = {},
|
|
8345
|
+
var w = !1, T, S, P, C, D = {}, U, v, N, A, B;
|
|
8346
8346
|
for (C = 0; C < c.length; C++)
|
|
8347
|
-
|
|
8348
|
-
w ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" +
|
|
8347
|
+
U = c[C], v = U[U.length - 1], N = U.substring(0, U.length - 1), A = parseInt(N, 10), B = parseFloat(N), l.test(N) && v === "w" ? ((T || S) && (w = !0), A === 0 ? w = !0 : T = A) : f.test(N) && v === "x" ? ((T || S || P) && (w = !0), B < 0 ? w = !0 : S = B) : l.test(N) && v === "h" ? ((P || S) && (w = !0), A === 0 ? w = !0 : P = A) : w = !0;
|
|
8348
|
+
w ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + U + "'.") : (D.url = h, T && (D.w = T), S && (D.d = S), P && (D.h = P), y.push(D));
|
|
8349
8349
|
}
|
|
8350
8350
|
};
|
|
8351
8351
|
});
|
|
8352
8352
|
})(kc);
|
|
8353
|
-
var Rp = kc.exports, ks = { exports: {} },
|
|
8354
|
-
return { isColorSupported: !1, reset:
|
|
8353
|
+
var Rp = kc.exports, ks = { exports: {} }, z = String, Ac = function() {
|
|
8354
|
+
return { isColorSupported: !1, reset: z, bold: z, dim: z, italic: z, underline: z, inverse: z, hidden: z, strikethrough: z, black: z, red: z, green: z, yellow: z, blue: z, magenta: z, cyan: z, white: z, gray: z, bgBlack: z, bgRed: z, bgGreen: z, bgYellow: z, bgBlue: z, bgMagenta: z, bgCyan: z, bgWhite: z, blackBright: z, redBright: z, greenBright: z, yellowBright: z, blueBright: z, magentaBright: z, cyanBright: z, whiteBright: z, bgBlackBright: z, bgRedBright: z, bgGreenBright: z, bgYellowBright: z, bgBlueBright: z, bgMagentaBright: z, bgCyanBright: z, bgWhiteBright: z };
|
|
8355
8355
|
};
|
|
8356
8356
|
ks.exports = Ac();
|
|
8357
8357
|
ks.exports.createColors = Ac;
|
|
8358
8358
|
var Bp = ks.exports;
|
|
8359
|
-
const
|
|
8359
|
+
const Fp = {}, qp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8360
8360
|
__proto__: null,
|
|
8361
|
-
default:
|
|
8362
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8363
|
-
let ra = Bp, ua =
|
|
8361
|
+
default: Fp
|
|
8362
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = /* @__PURE__ */ dh(qp);
|
|
8363
|
+
let ra = Bp, ua = Fe, Ai = class Oc extends Error {
|
|
8364
8364
|
constructor(e, t, r, u, i, s) {
|
|
8365
8365
|
super(e), this.name = "CssSyntaxError", this.reason = e, i && (this.file = i), u && (this.source = u), s && (this.plugin = s), typeof t < "u" && typeof r < "u" && (typeof t == "number" ? (this.line = t, this.column = r) : (this.line = t.line, this.column = t.column, this.endLine = r.line, this.endColumn = r.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Oc);
|
|
8366
8366
|
}
|
|
@@ -8425,7 +8425,7 @@ const ia = {
|
|
|
8425
8425
|
indent: " ",
|
|
8426
8426
|
semicolon: !1
|
|
8427
8427
|
};
|
|
8428
|
-
function
|
|
8428
|
+
function Up(n) {
|
|
8429
8429
|
return n[0].toUpperCase() + n.slice(1);
|
|
8430
8430
|
}
|
|
8431
8431
|
let Oi = class {
|
|
@@ -8496,7 +8496,7 @@ let Oi = class {
|
|
|
8496
8496
|
if (r === "before" || r === "after")
|
|
8497
8497
|
return this.beforeAfter(e, r);
|
|
8498
8498
|
{
|
|
8499
|
-
let o = "raw" +
|
|
8499
|
+
let o = "raw" + Up(r);
|
|
8500
8500
|
this[o] ? u = this[o](s, e) : s.walk((a) => {
|
|
8501
8501
|
if (u = a.raws[t], typeof u < "u") return !1;
|
|
8502
8502
|
});
|
|
@@ -8595,16 +8595,16 @@ let Oi = class {
|
|
|
8595
8595
|
};
|
|
8596
8596
|
var Pc = Oi;
|
|
8597
8597
|
Oi.default = Oi;
|
|
8598
|
-
let
|
|
8598
|
+
let jp = Pc;
|
|
8599
8599
|
function Pi(n, e) {
|
|
8600
|
-
new
|
|
8600
|
+
new jp(e).stringify(n);
|
|
8601
8601
|
}
|
|
8602
8602
|
var Lu = Pi;
|
|
8603
8603
|
Pi.default = Pi;
|
|
8604
8604
|
var cr = {};
|
|
8605
8605
|
cr.isClean = Symbol("isClean");
|
|
8606
8606
|
cr.my = Symbol("my");
|
|
8607
|
-
let
|
|
8607
|
+
let zp = As, $p = Pc, Wp = Lu, { isClean: xn, my: Hp } = cr;
|
|
8608
8608
|
function Ii(n, e) {
|
|
8609
8609
|
let t = new n.constructor();
|
|
8610
8610
|
for (let r in n) {
|
|
@@ -8690,7 +8690,7 @@ let Li = class {
|
|
|
8690
8690
|
t
|
|
8691
8691
|
);
|
|
8692
8692
|
}
|
|
8693
|
-
return new
|
|
8693
|
+
return new zp(e);
|
|
8694
8694
|
}
|
|
8695
8695
|
getProxyProcessor() {
|
|
8696
8696
|
return {
|
|
@@ -8790,7 +8790,7 @@ let Li = class {
|
|
|
8790
8790
|
}), { end: u, start: r };
|
|
8791
8791
|
}
|
|
8792
8792
|
raw(e, t) {
|
|
8793
|
-
return new
|
|
8793
|
+
return new $p().raw(this, e, t);
|
|
8794
8794
|
}
|
|
8795
8795
|
remove() {
|
|
8796
8796
|
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
|
|
@@ -8870,15 +8870,15 @@ let Gp = Du, Mi = class extends Gp {
|
|
|
8870
8870
|
var Ru = Mi;
|
|
8871
8871
|
Mi.default = Mi;
|
|
8872
8872
|
let Ic = Mu, Lc = Ru, Kp = Du, { isClean: Dc, my: Mc } = cr, Os, Rc, Bc, Ps;
|
|
8873
|
-
function $c(n) {
|
|
8874
|
-
return n.map((e) => (e.nodes && (e.nodes = $c(e.nodes)), delete e.source, e));
|
|
8875
|
-
}
|
|
8876
8873
|
function Fc(n) {
|
|
8874
|
+
return n.map((e) => (e.nodes && (e.nodes = Fc(e.nodes)), delete e.source, e));
|
|
8875
|
+
}
|
|
8876
|
+
function qc(n) {
|
|
8877
8877
|
if (n[Dc] = !1, n.proxyOf.nodes)
|
|
8878
8878
|
for (let e of n.proxyOf.nodes)
|
|
8879
|
-
|
|
8879
|
+
qc(e);
|
|
8880
8880
|
}
|
|
8881
|
-
let tt = class
|
|
8881
|
+
let tt = class Uc extends Kp {
|
|
8882
8882
|
get first() {
|
|
8883
8883
|
if (this.proxyOf.nodes)
|
|
8884
8884
|
return this.proxyOf.nodes[0];
|
|
@@ -8954,7 +8954,7 @@ let tt = class qc extends Kp {
|
|
|
8954
8954
|
}
|
|
8955
8955
|
normalize(e, t) {
|
|
8956
8956
|
if (typeof e == "string")
|
|
8957
|
-
e =
|
|
8957
|
+
e = Fc(Rc(e).nodes);
|
|
8958
8958
|
else if (typeof e > "u")
|
|
8959
8959
|
e = [];
|
|
8960
8960
|
else if (Array.isArray(e)) {
|
|
@@ -8979,7 +8979,7 @@ let tt = class qc extends Kp {
|
|
|
8979
8979
|
e = [new Ic(e)];
|
|
8980
8980
|
else
|
|
8981
8981
|
throw new Error("Unknown node type in node creation");
|
|
8982
|
-
return e.map((u) => (u[Mc] ||
|
|
8982
|
+
return e.map((u) => (u[Mc] || Uc.rebuild(u), u = u.proxyOf, u.parent && u.parent.removeChild(u), u[Dc] && qc(u), u.raws || (u.raws = {}), typeof u.raws.before > "u" && t && typeof t.raws.before < "u" && (u.raws.before = t.raws.before.replace(/\S/g, "")), u.parent = this.proxyOf, u));
|
|
8983
8983
|
}
|
|
8984
8984
|
prepend(...e) {
|
|
8985
8985
|
e = e.reverse();
|
|
@@ -9079,14 +9079,14 @@ tt.registerAtRule = (n) => {
|
|
|
9079
9079
|
tt.registerRoot = (n) => {
|
|
9080
9080
|
Bc = n;
|
|
9081
9081
|
};
|
|
9082
|
-
var
|
|
9082
|
+
var jt = tt;
|
|
9083
9083
|
tt.default = tt;
|
|
9084
9084
|
tt.rebuild = (n) => {
|
|
9085
9085
|
n.type === "atrule" ? Object.setPrototypeOf(n, Os.prototype) : n.type === "rule" ? Object.setPrototypeOf(n, Ps.prototype) : n.type === "decl" ? Object.setPrototypeOf(n, Lc.prototype) : n.type === "comment" ? Object.setPrototypeOf(n, Ic.prototype) : n.type === "root" && Object.setPrototypeOf(n, Bc.prototype), n[Mc] = !0, n.nodes && n.nodes.forEach((e) => {
|
|
9086
9086
|
tt.rebuild(e);
|
|
9087
9087
|
});
|
|
9088
9088
|
};
|
|
9089
|
-
let
|
|
9089
|
+
let jc = jt, cu = class extends jc {
|
|
9090
9090
|
constructor(e) {
|
|
9091
9091
|
super(e), this.type = "atrule";
|
|
9092
9092
|
}
|
|
@@ -9099,23 +9099,23 @@ let Uc = Ut, cu = class extends Uc {
|
|
|
9099
9099
|
};
|
|
9100
9100
|
var Is = cu;
|
|
9101
9101
|
cu.default = cu;
|
|
9102
|
-
|
|
9103
|
-
let Jp =
|
|
9102
|
+
jc.registerAtRule(cu);
|
|
9103
|
+
let Jp = jt, zc, $c, jn = class extends Jp {
|
|
9104
9104
|
constructor(e) {
|
|
9105
9105
|
super({ type: "document", ...e }), this.nodes || (this.nodes = []);
|
|
9106
9106
|
}
|
|
9107
9107
|
toResult(e = {}) {
|
|
9108
|
-
return new
|
|
9108
|
+
return new zc(new $c(), this, e).stringify();
|
|
9109
9109
|
}
|
|
9110
9110
|
};
|
|
9111
|
-
|
|
9112
|
-
jc = n;
|
|
9113
|
-
};
|
|
9114
|
-
Un.registerProcessor = (n) => {
|
|
9111
|
+
jn.registerLazyResult = (n) => {
|
|
9115
9112
|
zc = n;
|
|
9116
9113
|
};
|
|
9117
|
-
|
|
9118
|
-
|
|
9114
|
+
jn.registerProcessor = (n) => {
|
|
9115
|
+
$c = n;
|
|
9116
|
+
};
|
|
9117
|
+
var Ls = jn;
|
|
9118
|
+
jn.default = jn;
|
|
9119
9119
|
let Xp = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Zp = (n = 21) => {
|
|
9120
9120
|
let e = "", t = n | 0;
|
|
9121
9121
|
for (; t--; )
|
|
@@ -9123,8 +9123,8 @@ let Xp = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Zp
|
|
|
9123
9123
|
return e;
|
|
9124
9124
|
};
|
|
9125
9125
|
var Qp = { nanoid: Zp };
|
|
9126
|
-
let { existsSync: Yp, readFileSync:
|
|
9127
|
-
function
|
|
9126
|
+
let { existsSync: Yp, readFileSync: eg } = Fe, { dirname: Qu, join: tg } = Fe, { SourceMapConsumer: sa, SourceMapGenerator: oa } = Fe;
|
|
9127
|
+
function ng(n) {
|
|
9128
9128
|
return Buffer ? Buffer.from(n, "base64").toString() : window.atob(n);
|
|
9129
9129
|
}
|
|
9130
9130
|
let Ri = class {
|
|
@@ -9143,7 +9143,7 @@ let Ri = class {
|
|
|
9143
9143
|
return decodeURIComponent(e.substr(s[0].length));
|
|
9144
9144
|
let o = e.match(t) || e.match(r);
|
|
9145
9145
|
if (o)
|
|
9146
|
-
return
|
|
9146
|
+
return ng(e.substr(o[0].length));
|
|
9147
9147
|
let a = e.match(/data:application\/json;([^,]+),/)[1];
|
|
9148
9148
|
throw new Error("Unsupported source map encoding " + a);
|
|
9149
9149
|
}
|
|
@@ -9161,7 +9161,7 @@ let Ri = class {
|
|
|
9161
9161
|
}
|
|
9162
9162
|
loadFile(e) {
|
|
9163
9163
|
if (this.root = Qu(e), Yp(e))
|
|
9164
|
-
return this.mapFile = e,
|
|
9164
|
+
return this.mapFile = e, eg(e, "utf-8").toString().trim();
|
|
9165
9165
|
}
|
|
9166
9166
|
loadMap(e, t) {
|
|
9167
9167
|
if (t === !1) return !1;
|
|
@@ -9194,7 +9194,7 @@ let Ri = class {
|
|
|
9194
9194
|
return this.decodeInline(this.annotation);
|
|
9195
9195
|
if (this.annotation) {
|
|
9196
9196
|
let r = this.annotation;
|
|
9197
|
-
return e && (r =
|
|
9197
|
+
return e && (r = tg(Qu(e), r)), this.loadFile(r);
|
|
9198
9198
|
}
|
|
9199
9199
|
}
|
|
9200
9200
|
}
|
|
@@ -9207,7 +9207,7 @@ let Ri = class {
|
|
|
9207
9207
|
};
|
|
9208
9208
|
var Wc = Ri;
|
|
9209
9209
|
Ri.default = Ri;
|
|
9210
|
-
let { nanoid:
|
|
9210
|
+
let { nanoid: rg } = Qp, { isAbsolute: Bi, resolve: Fi } = Fe, { SourceMapConsumer: ug, SourceMapGenerator: ig } = Fe, { fileURLToPath: aa, pathToFileURL: Cr } = Fe, la = As, sg = Wc, Yu = Fe, ei = Symbol("lineToIndexCache"), og = !!(ug && ig), ca = !!(Fi && Bi);
|
|
9211
9211
|
function fa(n) {
|
|
9212
9212
|
if (n[ei]) return n[ei];
|
|
9213
9213
|
let e = n.css.split(`
|
|
@@ -9223,15 +9223,15 @@ let fu = class {
|
|
|
9223
9223
|
constructor(e, t = {}) {
|
|
9224
9224
|
if (e === null || typeof e > "u" || typeof e == "object" && !e.toString)
|
|
9225
9225
|
throw new Error(`PostCSS received ${e} instead of CSS string`);
|
|
9226
|
-
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, t.document && (this.document = t.document.toString()), t.from && (!ca || /^\w+:\/\//.test(t.from) || Bi(t.from) ? this.file = t.from : this.file =
|
|
9227
|
-
let r = new
|
|
9226
|
+
if (this.css = e.toString(), this.css[0] === "\uFEFF" || this.css[0] === "" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, t.document && (this.document = t.document.toString()), t.from && (!ca || /^\w+:\/\//.test(t.from) || Bi(t.from) ? this.file = t.from : this.file = Fi(t.from)), ca && og) {
|
|
9227
|
+
let r = new sg(this.css, t);
|
|
9228
9228
|
if (r.text) {
|
|
9229
9229
|
this.map = r;
|
|
9230
9230
|
let u = r.consumer().file;
|
|
9231
9231
|
!this.file && u && (this.file = this.mapResolve(u));
|
|
9232
9232
|
}
|
|
9233
9233
|
}
|
|
9234
|
-
this.file || (this.id = "<input css " +
|
|
9234
|
+
this.file || (this.id = "<input css " + rg(6) + ">"), this.map && (this.map.file = this.from);
|
|
9235
9235
|
}
|
|
9236
9236
|
error(e, t, r, u = {}) {
|
|
9237
9237
|
let i, s, o, a, l;
|
|
@@ -9298,7 +9298,7 @@ let fu = class {
|
|
|
9298
9298
|
};
|
|
9299
9299
|
}
|
|
9300
9300
|
mapResolve(e) {
|
|
9301
|
-
return /^\w+:\/\//.test(e) ? e :
|
|
9301
|
+
return /^\w+:\/\//.test(e) ? e : Fi(this.map.consumer().sourceRoot || this.map.root || ".", e);
|
|
9302
9302
|
}
|
|
9303
9303
|
origin(e, t, r, u) {
|
|
9304
9304
|
if (!this.map) return !1;
|
|
@@ -9336,7 +9336,7 @@ let fu = class {
|
|
|
9336
9336
|
var Bu = fu;
|
|
9337
9337
|
fu.default = fu;
|
|
9338
9338
|
Yu && Yu.registerInput && Yu.registerInput(fu);
|
|
9339
|
-
let Hc =
|
|
9339
|
+
let Hc = jt, Vc, Gc, sn = class extends Hc {
|
|
9340
9340
|
constructor(e) {
|
|
9341
9341
|
super(e), this.type = "root", this.nodes || (this.nodes = []);
|
|
9342
9342
|
}
|
|
@@ -9368,14 +9368,14 @@ sn.registerProcessor = (n) => {
|
|
|
9368
9368
|
var fr = sn;
|
|
9369
9369
|
sn.default = sn;
|
|
9370
9370
|
Hc.registerRoot(sn);
|
|
9371
|
-
let
|
|
9371
|
+
let zn = {
|
|
9372
9372
|
comma(n) {
|
|
9373
|
-
return
|
|
9373
|
+
return zn.split(n, [","], !0);
|
|
9374
9374
|
},
|
|
9375
9375
|
space(n) {
|
|
9376
9376
|
let e = [" ", `
|
|
9377
9377
|
`, " "];
|
|
9378
|
-
return
|
|
9378
|
+
return zn.split(n, e);
|
|
9379
9379
|
},
|
|
9380
9380
|
split(n, e, t) {
|
|
9381
9381
|
let r = [], u = "", i = !1, s = 0, o = !1, a = "", l = !1;
|
|
@@ -9384,11 +9384,11 @@ let jn = {
|
|
|
9384
9384
|
return (t || u !== "") && r.push(u.trim()), r;
|
|
9385
9385
|
}
|
|
9386
9386
|
};
|
|
9387
|
-
var Kc =
|
|
9388
|
-
|
|
9389
|
-
let Jc =
|
|
9387
|
+
var Kc = zn;
|
|
9388
|
+
zn.default = zn;
|
|
9389
|
+
let Jc = jt, ag = Kc, du = class extends Jc {
|
|
9390
9390
|
get selectors() {
|
|
9391
|
-
return
|
|
9391
|
+
return ag.comma(this.selector);
|
|
9392
9392
|
}
|
|
9393
9393
|
set selectors(e) {
|
|
9394
9394
|
let t = this.selector ? this.selector.match(/,\s*/) : null, r = t ? t[0] : "," + this.raw("between", "beforeOpen");
|
|
@@ -9401,39 +9401,39 @@ let Jc = Ut, a1 = Kc, du = class extends Jc {
|
|
|
9401
9401
|
var Ds = du;
|
|
9402
9402
|
du.default = du;
|
|
9403
9403
|
Jc.registerRule(du);
|
|
9404
|
-
let
|
|
9405
|
-
function
|
|
9406
|
-
if (Array.isArray(n)) return n.map((u) =>
|
|
9404
|
+
let lg = Is, cg = Mu, fg = Ru, dg = Bu, hg = Wc, pg = fr, gg = Ds;
|
|
9405
|
+
function $n(n, e) {
|
|
9406
|
+
if (Array.isArray(n)) return n.map((u) => $n(u));
|
|
9407
9407
|
let { inputs: t, ...r } = n;
|
|
9408
9408
|
if (t) {
|
|
9409
9409
|
e = [];
|
|
9410
9410
|
for (let u of t) {
|
|
9411
|
-
let i = { ...u, __proto__:
|
|
9411
|
+
let i = { ...u, __proto__: dg.prototype };
|
|
9412
9412
|
i.map && (i.map = {
|
|
9413
9413
|
...i.map,
|
|
9414
|
-
__proto__:
|
|
9414
|
+
__proto__: hg.prototype
|
|
9415
9415
|
}), e.push(i);
|
|
9416
9416
|
}
|
|
9417
9417
|
}
|
|
9418
|
-
if (r.nodes && (r.nodes = n.nodes.map((u) =>
|
|
9418
|
+
if (r.nodes && (r.nodes = n.nodes.map((u) => $n(u, e))), r.source) {
|
|
9419
9419
|
let { inputId: u, ...i } = r.source;
|
|
9420
9420
|
r.source = i, u != null && (r.source.input = e[u]);
|
|
9421
9421
|
}
|
|
9422
9422
|
if (r.type === "root")
|
|
9423
|
-
return new
|
|
9423
|
+
return new pg(r);
|
|
9424
9424
|
if (r.type === "decl")
|
|
9425
|
-
return new
|
|
9425
|
+
return new fg(r);
|
|
9426
9426
|
if (r.type === "rule")
|
|
9427
|
-
return new
|
|
9427
|
+
return new gg(r);
|
|
9428
9428
|
if (r.type === "comment")
|
|
9429
|
-
return new
|
|
9429
|
+
return new cg(r);
|
|
9430
9430
|
if (r.type === "atrule")
|
|
9431
|
-
return new
|
|
9431
|
+
return new lg(r);
|
|
9432
9432
|
throw new Error("Unknown node type: " + n.type);
|
|
9433
9433
|
}
|
|
9434
|
-
var
|
|
9435
|
-
|
|
9436
|
-
let { dirname:
|
|
9434
|
+
var mg = $n;
|
|
9435
|
+
$n.default = $n;
|
|
9436
|
+
let { dirname: Fr, relative: Xc, resolve: Zc, sep: Qc } = Fe, { SourceMapConsumer: Yc, SourceMapGenerator: qr } = Fe, { pathToFileURL: da } = Fe, bg = Bu, yg = !!(Yc && qr), xg = !!(Fr && Zc && Xc && Qc), _g = class {
|
|
9437
9437
|
constructor(e, t, r, u) {
|
|
9438
9438
|
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = u, this.originalCSS = u, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
|
|
9439
9439
|
}
|
|
@@ -9448,7 +9448,7 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9448
9448
|
}
|
|
9449
9449
|
applyPrevMaps() {
|
|
9450
9450
|
for (let e of this.previous()) {
|
|
9451
|
-
let t = this.toUrl(this.path(e.file)), r = e.root ||
|
|
9451
|
+
let t = this.toUrl(this.path(e.file)), r = e.root || Fr(e.file), u;
|
|
9452
9452
|
this.mapOpts.sourcesContent === !1 ? (u = new Yc(e.text), u.sourcesContent && (u.sourcesContent = null)) : u = e.consumer(), this.map.applySourceMap(u, t, this.toUrl(this.path(r)));
|
|
9453
9453
|
}
|
|
9454
9454
|
}
|
|
@@ -9461,7 +9461,7 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9461
9461
|
} else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
|
|
9462
9462
|
}
|
|
9463
9463
|
generate() {
|
|
9464
|
-
if (this.clearAnnotation(),
|
|
9464
|
+
if (this.clearAnnotation(), xg && yg && this.isMap())
|
|
9465
9465
|
return this.generateMap();
|
|
9466
9466
|
{
|
|
9467
9467
|
let e = "";
|
|
@@ -9475,11 +9475,11 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9475
9475
|
this.generateString();
|
|
9476
9476
|
else if (this.previous().length === 1) {
|
|
9477
9477
|
let e = this.previous()[0].consumer();
|
|
9478
|
-
e.file = this.outputFile(), this.map =
|
|
9478
|
+
e.file = this.outputFile(), this.map = qr.fromSourceMap(e, {
|
|
9479
9479
|
ignoreInvalidMapping: !0
|
|
9480
9480
|
});
|
|
9481
9481
|
} else
|
|
9482
|
-
this.map = new
|
|
9482
|
+
this.map = new qr({
|
|
9483
9483
|
file: this.outputFile(),
|
|
9484
9484
|
ignoreInvalidMapping: !0
|
|
9485
9485
|
}), this.map.addMapping({
|
|
@@ -9490,7 +9490,7 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9490
9490
|
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
|
|
9491
9491
|
}
|
|
9492
9492
|
generateString() {
|
|
9493
|
-
this.css = "", this.map = new
|
|
9493
|
+
this.css = "", this.map = new qr({
|
|
9494
9494
|
file: this.outputFile(),
|
|
9495
9495
|
ignoreInvalidMapping: !0
|
|
9496
9496
|
});
|
|
@@ -9529,8 +9529,8 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9529
9529
|
if (this.mapOpts.absolute || e.charCodeAt(0) === 60 || /^\w+:\/\//.test(e)) return e;
|
|
9530
9530
|
let t = this.memoizedPaths.get(e);
|
|
9531
9531
|
if (t) return t;
|
|
9532
|
-
let r = this.opts.to ?
|
|
9533
|
-
typeof this.mapOpts.annotation == "string" && (r =
|
|
9532
|
+
let r = this.opts.to ? Fr(this.opts.to) : ".";
|
|
9533
|
+
typeof this.mapOpts.annotation == "string" && (r = Fr(Zc(r, this.mapOpts.annotation)));
|
|
9534
9534
|
let u = Xc(r, e);
|
|
9535
9535
|
return this.memoizedPaths.set(e, u), u;
|
|
9536
9536
|
}
|
|
@@ -9544,7 +9544,7 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9544
9544
|
}
|
|
9545
9545
|
});
|
|
9546
9546
|
else {
|
|
9547
|
-
let e = new
|
|
9547
|
+
let e = new bg(this.originalCSS, this.opts);
|
|
9548
9548
|
e.map && this.previousMaps.push(e.map);
|
|
9549
9549
|
}
|
|
9550
9550
|
return this.previousMaps;
|
|
@@ -9592,9 +9592,9 @@ let { dirname: $r, relative: Xc, resolve: Zc, sep: Qc } = $e, { SourceMapConsume
|
|
|
9592
9592
|
return this.memoizedURLs.set(e, r), r;
|
|
9593
9593
|
}
|
|
9594
9594
|
};
|
|
9595
|
-
var e0 =
|
|
9596
|
-
const ti = 39, ha = 34, Er = 92, pa = 47, Nr = 10, _n = 32, kr = 12, Ar = 9, Or = 13,
|
|
9597
|
-
var
|
|
9595
|
+
var e0 = _g;
|
|
9596
|
+
const ti = 39, ha = 34, Er = 92, pa = 47, Nr = 10, _n = 32, kr = 12, Ar = 9, Or = 13, vg = 91, wg = 93, Sg = 40, Tg = 41, Cg = 123, Eg = 125, Ng = 59, kg = 42, Ag = 58, Og = 64, Pr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ir = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Pg = /.[\r\n"'(/\\]/, ga = /[\da-f]/i;
|
|
9597
|
+
var Ig = function(e, t = {}) {
|
|
9598
9598
|
let r = e.css.valueOf(), u = t.ignoreErrors, i, s, o, a, l, f, h, c, d, p, m = r.length, g = 0, y = [], b = [];
|
|
9599
9599
|
function _() {
|
|
9600
9600
|
return g;
|
|
@@ -9622,18 +9622,18 @@ var I1 = function(e, t = {}) {
|
|
|
9622
9622
|
f = ["space", r.slice(g, a)], g = a - 1;
|
|
9623
9623
|
break;
|
|
9624
9624
|
}
|
|
9625
|
-
case
|
|
9626
|
-
case
|
|
9627
|
-
case
|
|
9628
|
-
case
|
|
9629
|
-
case
|
|
9630
|
-
case
|
|
9631
|
-
case
|
|
9632
|
-
let
|
|
9633
|
-
f = [
|
|
9625
|
+
case vg:
|
|
9626
|
+
case wg:
|
|
9627
|
+
case Cg:
|
|
9628
|
+
case Eg:
|
|
9629
|
+
case Ag:
|
|
9630
|
+
case Ng:
|
|
9631
|
+
case Tg: {
|
|
9632
|
+
let U = String.fromCharCode(i);
|
|
9633
|
+
f = [U, U, g];
|
|
9634
9634
|
break;
|
|
9635
9635
|
}
|
|
9636
|
-
case
|
|
9636
|
+
case Sg: {
|
|
9637
9637
|
if (p = y.length ? y.pop()[1] : "", d = r.charCodeAt(g + 1), p === "url" && d !== ti && d !== ha && d !== _n && d !== Nr && d !== Ar && d !== kr && d !== Or) {
|
|
9638
9638
|
a = g;
|
|
9639
9639
|
do {
|
|
@@ -9648,7 +9648,7 @@ var I1 = function(e, t = {}) {
|
|
|
9648
9648
|
} while (h);
|
|
9649
9649
|
f = ["brackets", r.slice(g, a + 1), g, a], g = a;
|
|
9650
9650
|
} else
|
|
9651
|
-
a = r.indexOf(")", g + 1), s = r.slice(g, a + 1), a === -1 ||
|
|
9651
|
+
a = r.indexOf(")", g + 1), s = r.slice(g, a + 1), a === -1 || Pg.test(s) ? f = ["(", "(", g] : (f = ["brackets", s, g, a], g = a);
|
|
9652
9652
|
break;
|
|
9653
9653
|
}
|
|
9654
9654
|
case ti:
|
|
@@ -9667,7 +9667,7 @@ var I1 = function(e, t = {}) {
|
|
|
9667
9667
|
f = ["string", r.slice(g, a + 1), g, a], g = a;
|
|
9668
9668
|
break;
|
|
9669
9669
|
}
|
|
9670
|
-
case
|
|
9670
|
+
case Og: {
|
|
9671
9671
|
Pr.lastIndex = g + 1, Pr.test(r), Pr.lastIndex === 0 ? a = r.length - 1 : a = Pr.lastIndex - 2, f = ["at-word", r.slice(g, a + 1), g, a], g = a;
|
|
9672
9672
|
break;
|
|
9673
9673
|
}
|
|
@@ -9683,7 +9683,7 @@ var I1 = function(e, t = {}) {
|
|
|
9683
9683
|
break;
|
|
9684
9684
|
}
|
|
9685
9685
|
default: {
|
|
9686
|
-
i === pa && r.charCodeAt(g + 1) ===
|
|
9686
|
+
i === pa && r.charCodeAt(g + 1) === kg ? (a = r.indexOf("*/", g + 2) + 1, a === 0 && (u || D ? a = r.length : w("comment")), f = ["comment", r.slice(g, a + 1), g, a], g = a) : (Ir.lastIndex = g + 1, Ir.test(r), Ir.lastIndex === 0 ? a = r.length - 1 : a = Ir.lastIndex - 2, f = ["word", r.slice(g, a + 1), g, a], y.push(f), g = a);
|
|
9687
9687
|
break;
|
|
9688
9688
|
}
|
|
9689
9689
|
}
|
|
@@ -9699,23 +9699,23 @@ var I1 = function(e, t = {}) {
|
|
|
9699
9699
|
position: _
|
|
9700
9700
|
};
|
|
9701
9701
|
};
|
|
9702
|
-
let
|
|
9702
|
+
let Lg = Is, Dg = Mu, Mg = Ru, Rg = fr, ma = Ds, Bg = Ig;
|
|
9703
9703
|
const ba = {
|
|
9704
9704
|
empty: !0,
|
|
9705
9705
|
space: !0
|
|
9706
9706
|
};
|
|
9707
|
-
function
|
|
9707
|
+
function Fg(n) {
|
|
9708
9708
|
for (let e = n.length - 1; e >= 0; e--) {
|
|
9709
9709
|
let t = n[e], r = t[3] || t[2];
|
|
9710
9710
|
if (r) return r;
|
|
9711
9711
|
}
|
|
9712
9712
|
}
|
|
9713
|
-
let
|
|
9713
|
+
let qg = class {
|
|
9714
9714
|
constructor(e) {
|
|
9715
|
-
this.input = e, this.root = new
|
|
9715
|
+
this.input = e, this.root = new Rg(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
|
|
9716
9716
|
}
|
|
9717
9717
|
atrule(e) {
|
|
9718
|
-
let t = new
|
|
9718
|
+
let t = new Lg();
|
|
9719
9719
|
t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
|
|
9720
9720
|
let r, u, i, s = !1, o = !1, a = [], l = [];
|
|
9721
9721
|
for (; !this.tokenizer.endOfFile(); ) {
|
|
@@ -9772,7 +9772,7 @@ let F1 = class {
|
|
|
9772
9772
|
return !1;
|
|
9773
9773
|
}
|
|
9774
9774
|
comment(e) {
|
|
9775
|
-
let t = new
|
|
9775
|
+
let t = new Dg();
|
|
9776
9776
|
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
|
|
9777
9777
|
let r = e[1].slice(2, -2);
|
|
9778
9778
|
if (/^\s*$/.test(r))
|
|
@@ -9783,14 +9783,14 @@ let F1 = class {
|
|
|
9783
9783
|
}
|
|
9784
9784
|
}
|
|
9785
9785
|
createTokenizer() {
|
|
9786
|
-
this.tokenizer =
|
|
9786
|
+
this.tokenizer = Bg(this.input);
|
|
9787
9787
|
}
|
|
9788
9788
|
decl(e, t) {
|
|
9789
|
-
let r = new
|
|
9789
|
+
let r = new Mg();
|
|
9790
9790
|
this.init(r, e[0][2]);
|
|
9791
9791
|
let u = e[e.length - 1];
|
|
9792
9792
|
for (u[0] === ";" && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(
|
|
9793
|
-
u[3] || u[2] ||
|
|
9793
|
+
u[3] || u[2] || Fg(e)
|
|
9794
9794
|
), r.source.end.offset++; e[0][0] !== "word"; )
|
|
9795
9795
|
e.length === 1 && this.unknownWord(e), r.raws.before += e.shift()[1];
|
|
9796
9796
|
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length; ) {
|
|
@@ -10006,10 +10006,10 @@ let F1 = class {
|
|
|
10006
10006
|
);
|
|
10007
10007
|
}
|
|
10008
10008
|
};
|
|
10009
|
-
var
|
|
10010
|
-
let
|
|
10009
|
+
var Ug = qg;
|
|
10010
|
+
let jg = jt, zg = Bu, $g = Ug;
|
|
10011
10011
|
function hu(n, e) {
|
|
10012
|
-
let t = new
|
|
10012
|
+
let t = new zg(n, e), r = new $g(t);
|
|
10013
10013
|
try {
|
|
10014
10014
|
r.parse();
|
|
10015
10015
|
} catch (u) {
|
|
@@ -10022,8 +10022,8 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
10022
10022
|
}
|
|
10023
10023
|
var Ms = hu;
|
|
10024
10024
|
hu.default = hu;
|
|
10025
|
-
|
|
10026
|
-
let
|
|
10025
|
+
jg.registerParse(hu);
|
|
10026
|
+
let qi = class {
|
|
10027
10027
|
constructor(e, t = {}) {
|
|
10028
10028
|
if (this.type = "warning", this.text = e, t.node && t.node.source) {
|
|
10029
10029
|
let r = t.node.rangeBy(t);
|
|
@@ -10039,9 +10039,9 @@ let Fi = class {
|
|
|
10039
10039
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
10040
10040
|
}
|
|
10041
10041
|
};
|
|
10042
|
-
var t0 =
|
|
10043
|
-
|
|
10044
|
-
let
|
|
10042
|
+
var t0 = qi;
|
|
10043
|
+
qi.default = qi;
|
|
10044
|
+
let Wg = t0, Ui = class {
|
|
10045
10045
|
get content() {
|
|
10046
10046
|
return this.css;
|
|
10047
10047
|
}
|
|
@@ -10053,28 +10053,28 @@ let W1 = t0, qi = class {
|
|
|
10053
10053
|
}
|
|
10054
10054
|
warn(e, t = {}) {
|
|
10055
10055
|
t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
|
|
10056
|
-
let r = new
|
|
10056
|
+
let r = new Wg(e, t);
|
|
10057
10057
|
return this.messages.push(r), r;
|
|
10058
10058
|
}
|
|
10059
10059
|
warnings() {
|
|
10060
10060
|
return this.messages.filter((e) => e.type === "warning");
|
|
10061
10061
|
}
|
|
10062
10062
|
};
|
|
10063
|
-
var Rs =
|
|
10064
|
-
|
|
10063
|
+
var Rs = Ui;
|
|
10064
|
+
Ui.default = Ui;
|
|
10065
10065
|
let ya = {};
|
|
10066
10066
|
var n0 = function(e) {
|
|
10067
10067
|
ya[e] || (ya[e] = !0, typeof console < "u" && console.warn && console.warn(e));
|
|
10068
10068
|
};
|
|
10069
|
-
let
|
|
10070
|
-
const
|
|
10069
|
+
let Hg = jt, Vg = Ls, Gg = e0, Kg = Ms, xa = Rs, Jg = fr, Xg = Lu, { isClean: qe, my: Zg } = cr, Qg = n0;
|
|
10070
|
+
const Yg = {
|
|
10071
10071
|
atrule: "AtRule",
|
|
10072
10072
|
comment: "Comment",
|
|
10073
10073
|
decl: "Declaration",
|
|
10074
10074
|
document: "Document",
|
|
10075
10075
|
root: "Root",
|
|
10076
10076
|
rule: "Rule"
|
|
10077
|
-
},
|
|
10077
|
+
}, e1 = {
|
|
10078
10078
|
AtRule: !0,
|
|
10079
10079
|
AtRuleExit: !0,
|
|
10080
10080
|
Comment: !0,
|
|
@@ -10091,7 +10091,7 @@ const Y1 = {
|
|
|
10091
10091
|
RootExit: !0,
|
|
10092
10092
|
Rule: !0,
|
|
10093
10093
|
RuleExit: !0
|
|
10094
|
-
},
|
|
10094
|
+
}, t1 = {
|
|
10095
10095
|
Once: !0,
|
|
10096
10096
|
postcssPlugin: !0,
|
|
10097
10097
|
prepare: !0
|
|
@@ -10100,7 +10100,7 @@ function vn(n) {
|
|
|
10100
10100
|
return typeof n == "object" && typeof n.then == "function";
|
|
10101
10101
|
}
|
|
10102
10102
|
function r0(n) {
|
|
10103
|
-
let e = !1, t =
|
|
10103
|
+
let e = !1, t = Yg[n.type];
|
|
10104
10104
|
return n.type === "decl" ? e = n.prop.toLowerCase() : n.type === "atrule" && (e = n.name.toLowerCase()), e && n.append ? [
|
|
10105
10105
|
t,
|
|
10106
10106
|
t + "-" + e,
|
|
@@ -10120,10 +10120,10 @@ function _a(n) {
|
|
|
10120
10120
|
visitors: []
|
|
10121
10121
|
};
|
|
10122
10122
|
}
|
|
10123
|
-
function
|
|
10124
|
-
return n[
|
|
10123
|
+
function ji(n) {
|
|
10124
|
+
return n[qe] = !1, n.nodes && n.nodes.forEach((e) => ji(e)), n;
|
|
10125
10125
|
}
|
|
10126
|
-
let
|
|
10126
|
+
let zi = {}, an = class u0 {
|
|
10127
10127
|
get content() {
|
|
10128
10128
|
return this.stringify().content;
|
|
10129
10129
|
}
|
|
@@ -10152,20 +10152,20 @@ let ji = {}, an = class u0 {
|
|
|
10152
10152
|
this.stringified = !1, this.processed = !1;
|
|
10153
10153
|
let u;
|
|
10154
10154
|
if (typeof t == "object" && t !== null && (t.type === "root" || t.type === "document"))
|
|
10155
|
-
u =
|
|
10155
|
+
u = ji(t);
|
|
10156
10156
|
else if (t instanceof u0 || t instanceof xa)
|
|
10157
|
-
u =
|
|
10157
|
+
u = ji(t.root), t.map && (typeof r.map > "u" && (r.map = {}), r.map.inline || (r.map.inline = !1), r.map.prev = t.map);
|
|
10158
10158
|
else {
|
|
10159
|
-
let i =
|
|
10159
|
+
let i = Kg;
|
|
10160
10160
|
r.syntax && (i = r.syntax.parse), r.parser && (i = r.parser), i.parse && (i = i.parse);
|
|
10161
10161
|
try {
|
|
10162
10162
|
u = i(t, r);
|
|
10163
10163
|
} catch (s) {
|
|
10164
10164
|
this.processed = !0, this.error = s;
|
|
10165
10165
|
}
|
|
10166
|
-
u && !u[
|
|
10166
|
+
u && !u[Zg] && Hg.rebuild(u);
|
|
10167
10167
|
}
|
|
10168
|
-
this.result = new xa(e, u, r), this.helpers = { ...
|
|
10168
|
+
this.result = new xa(e, u, r), this.helpers = { ...zi, postcss: zi, result: this.result }, this.plugins = this.processor.plugins.map((i) => typeof i == "object" && i.prepare ? { ...i, ...i.prepare(this.result) } : i);
|
|
10169
10169
|
}
|
|
10170
10170
|
async() {
|
|
10171
10171
|
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
|
|
@@ -10203,11 +10203,11 @@ let ji = {}, an = class u0 {
|
|
|
10203
10203
|
for (let t of this.plugins)
|
|
10204
10204
|
if (typeof t == "object")
|
|
10205
10205
|
for (let r in t) {
|
|
10206
|
-
if (!
|
|
10206
|
+
if (!e1[r] && /^[A-Z]/.test(r))
|
|
10207
10207
|
throw new Error(
|
|
10208
10208
|
`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
10209
10209
|
);
|
|
10210
|
-
if (!
|
|
10210
|
+
if (!t1[r])
|
|
10211
10211
|
if (typeof t[r] == "object")
|
|
10212
10212
|
for (let u in t[r])
|
|
10213
10213
|
u === "*" ? e(t, r, t[r][u]) : e(
|
|
@@ -10232,8 +10232,8 @@ let ji = {}, an = class u0 {
|
|
|
10232
10232
|
}
|
|
10233
10233
|
if (this.prepareVisitors(), this.hasListener) {
|
|
10234
10234
|
let e = this.result.root;
|
|
10235
|
-
for (; !e[
|
|
10236
|
-
e[
|
|
10235
|
+
for (; !e[qe]; ) {
|
|
10236
|
+
e[qe] = !0;
|
|
10237
10237
|
let t = [_a(e)];
|
|
10238
10238
|
for (; t.length > 0; ) {
|
|
10239
10239
|
let r = this.visitTick(t);
|
|
@@ -10285,9 +10285,9 @@ let ji = {}, an = class u0 {
|
|
|
10285
10285
|
if (this.error) throw this.error;
|
|
10286
10286
|
if (this.stringified) return this.result;
|
|
10287
10287
|
this.stringified = !0, this.sync();
|
|
10288
|
-
let e = this.result.opts, t =
|
|
10288
|
+
let e = this.result.opts, t = Xg;
|
|
10289
10289
|
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
|
|
10290
|
-
let u = new
|
|
10290
|
+
let u = new Gg(t, this.result.root, this.result.opts).generate();
|
|
10291
10291
|
return this.result.css = u[0], this.result.map = u[1], this.result;
|
|
10292
10292
|
}
|
|
10293
10293
|
sync() {
|
|
@@ -10302,8 +10302,8 @@ let ji = {}, an = class u0 {
|
|
|
10302
10302
|
}
|
|
10303
10303
|
if (this.prepareVisitors(), this.hasListener) {
|
|
10304
10304
|
let e = this.result.root;
|
|
10305
|
-
for (; !e[
|
|
10306
|
-
e[
|
|
10305
|
+
for (; !e[qe]; )
|
|
10306
|
+
e[qe] = !0, this.walkSync(e);
|
|
10307
10307
|
if (this.listeners.OnceExit)
|
|
10308
10308
|
if (e.type === "document")
|
|
10309
10309
|
for (let t of e.nodes)
|
|
@@ -10314,7 +10314,7 @@ let ji = {}, an = class u0 {
|
|
|
10314
10314
|
return this.result;
|
|
10315
10315
|
}
|
|
10316
10316
|
then(e, t) {
|
|
10317
|
-
return process.env.NODE_ENV !== "production" && ("from" in this.opts ||
|
|
10317
|
+
return process.env.NODE_ENV !== "production" && ("from" in this.opts || Qg(
|
|
10318
10318
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
10319
10319
|
)), this.async().then(e, t);
|
|
10320
10320
|
}
|
|
@@ -10354,8 +10354,8 @@ let ji = {}, an = class u0 {
|
|
|
10354
10354
|
if (t.iterator !== 0) {
|
|
10355
10355
|
let s = t.iterator, o;
|
|
10356
10356
|
for (; o = r.nodes[r.indexes[s]]; )
|
|
10357
|
-
if (r.indexes[s] += 1, !o[
|
|
10358
|
-
o[
|
|
10357
|
+
if (r.indexes[s] += 1, !o[qe]) {
|
|
10358
|
+
o[qe] = !0, e.push(_a(o));
|
|
10359
10359
|
return;
|
|
10360
10360
|
}
|
|
10361
10361
|
t.iterator = 0, delete r.indexes[s];
|
|
@@ -10364,7 +10364,7 @@ let ji = {}, an = class u0 {
|
|
|
10364
10364
|
for (; t.eventIndex < i.length; ) {
|
|
10365
10365
|
let s = i[t.eventIndex];
|
|
10366
10366
|
if (t.eventIndex += 1, s === on) {
|
|
10367
|
-
r.nodes && r.nodes.length && (r[
|
|
10367
|
+
r.nodes && r.nodes.length && (r[qe] = !0, t.iterator = r.getIterator());
|
|
10368
10368
|
return;
|
|
10369
10369
|
} else if (this.listeners[s]) {
|
|
10370
10370
|
t.visitors = this.listeners[s];
|
|
@@ -10374,12 +10374,12 @@ let ji = {}, an = class u0 {
|
|
|
10374
10374
|
e.pop();
|
|
10375
10375
|
}
|
|
10376
10376
|
walkSync(e) {
|
|
10377
|
-
e[
|
|
10377
|
+
e[qe] = !0;
|
|
10378
10378
|
let t = r0(e);
|
|
10379
10379
|
for (let r of t)
|
|
10380
10380
|
if (r === on)
|
|
10381
10381
|
e.nodes && e.each((u) => {
|
|
10382
|
-
u[
|
|
10382
|
+
u[qe] || this.walkSync(u);
|
|
10383
10383
|
});
|
|
10384
10384
|
else {
|
|
10385
10385
|
let u = this.listeners[r];
|
|
@@ -10392,15 +10392,15 @@ let ji = {}, an = class u0 {
|
|
|
10392
10392
|
}
|
|
10393
10393
|
};
|
|
10394
10394
|
an.registerPostcss = (n) => {
|
|
10395
|
-
|
|
10395
|
+
zi = n;
|
|
10396
10396
|
};
|
|
10397
10397
|
var i0 = an;
|
|
10398
10398
|
an.default = an;
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
let
|
|
10402
|
-
const
|
|
10403
|
-
let
|
|
10399
|
+
Jg.registerLazyResult(an);
|
|
10400
|
+
Vg.registerLazyResult(an);
|
|
10401
|
+
let n1 = e0, r1 = Ms;
|
|
10402
|
+
const u1 = Rs;
|
|
10403
|
+
let i1 = Lu, s1 = n0, $i = class {
|
|
10404
10404
|
get content() {
|
|
10405
10405
|
return this.result.css;
|
|
10406
10406
|
}
|
|
@@ -10422,7 +10422,7 @@ let ig = Lu, sg = n0, zi = class {
|
|
|
10422
10422
|
get root() {
|
|
10423
10423
|
if (this._root)
|
|
10424
10424
|
return this._root;
|
|
10425
|
-
let e, t =
|
|
10425
|
+
let e, t = r1;
|
|
10426
10426
|
try {
|
|
10427
10427
|
e = t(this._css, this._opts);
|
|
10428
10428
|
} catch (r) {
|
|
@@ -10437,15 +10437,15 @@ let ig = Lu, sg = n0, zi = class {
|
|
|
10437
10437
|
}
|
|
10438
10438
|
constructor(e, t, r) {
|
|
10439
10439
|
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
|
|
10440
|
-
let u, i =
|
|
10441
|
-
this.result = new
|
|
10440
|
+
let u, i = i1;
|
|
10441
|
+
this.result = new u1(this._processor, u, this._opts), this.result.css = t;
|
|
10442
10442
|
let s = this;
|
|
10443
10443
|
Object.defineProperty(this.result, "root", {
|
|
10444
10444
|
get() {
|
|
10445
10445
|
return s.root;
|
|
10446
10446
|
}
|
|
10447
10447
|
});
|
|
10448
|
-
let o = new
|
|
10448
|
+
let o = new n1(i, u, this._opts, t);
|
|
10449
10449
|
if (o.isMap()) {
|
|
10450
10450
|
let [a, l] = o.generate();
|
|
10451
10451
|
a && (this.result.css = a), l && (this.result.map = l);
|
|
@@ -10466,7 +10466,7 @@ let ig = Lu, sg = n0, zi = class {
|
|
|
10466
10466
|
return this.result;
|
|
10467
10467
|
}
|
|
10468
10468
|
then(e, t) {
|
|
10469
|
-
return process.env.NODE_ENV !== "production" && ("from" in this._opts ||
|
|
10469
|
+
return process.env.NODE_ENV !== "production" && ("from" in this._opts || s1(
|
|
10470
10470
|
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
10471
10471
|
)), this.async().then(e, t);
|
|
10472
10472
|
}
|
|
@@ -10477,9 +10477,9 @@ let ig = Lu, sg = n0, zi = class {
|
|
|
10477
10477
|
return [];
|
|
10478
10478
|
}
|
|
10479
10479
|
};
|
|
10480
|
-
var
|
|
10481
|
-
|
|
10482
|
-
let
|
|
10480
|
+
var o1 = $i;
|
|
10481
|
+
$i.default = $i;
|
|
10482
|
+
let a1 = Ls, l1 = i0, c1 = o1, f1 = fr, Wn = class {
|
|
10483
10483
|
constructor(e = []) {
|
|
10484
10484
|
this.version = "8.5.6", this.plugins = this.normalize(e);
|
|
10485
10485
|
}
|
|
@@ -10502,17 +10502,17 @@ let ag = Ls, lg = i0, cg = og, fg = fr, Wn = class {
|
|
|
10502
10502
|
return t;
|
|
10503
10503
|
}
|
|
10504
10504
|
process(e, t = {}) {
|
|
10505
|
-
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new
|
|
10505
|
+
return !this.plugins.length && !t.parser && !t.stringifier && !t.syntax ? new c1(this, e, t) : new l1(this, e, t);
|
|
10506
10506
|
}
|
|
10507
10507
|
use(e) {
|
|
10508
10508
|
return this.plugins = this.plugins.concat(this.normalize([e])), this;
|
|
10509
10509
|
}
|
|
10510
10510
|
};
|
|
10511
|
-
var
|
|
10511
|
+
var d1 = Wn;
|
|
10512
10512
|
Wn.default = Wn;
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
let s0 = Is, o0 = Mu,
|
|
10513
|
+
f1.registerProcessor(Wn);
|
|
10514
|
+
a1.registerProcessor(Wn);
|
|
10515
|
+
let s0 = Is, o0 = Mu, h1 = jt, p1 = As, a0 = Ru, l0 = Ls, g1 = mg, m1 = Bu, b1 = i0, y1 = Kc, x1 = Du, _1 = Ms, Bs = d1, v1 = Rs, c0 = fr, f0 = Ds, w1 = Lu, S1 = t0;
|
|
10516
10516
|
function Z(...n) {
|
|
10517
10517
|
return n.length === 1 && Array.isArray(n[0]) && (n = n[0]), new Bs(n);
|
|
10518
10518
|
}
|
|
@@ -10538,33 +10538,33 @@ https://www.w3ctech.com/topic/2226`
|
|
|
10538
10538
|
return Z([u(a)]).process(s, o);
|
|
10539
10539
|
}, u;
|
|
10540
10540
|
};
|
|
10541
|
-
Z.stringify =
|
|
10542
|
-
Z.parse =
|
|
10543
|
-
Z.fromJSON =
|
|
10544
|
-
Z.list =
|
|
10541
|
+
Z.stringify = w1;
|
|
10542
|
+
Z.parse = _1;
|
|
10543
|
+
Z.fromJSON = g1;
|
|
10544
|
+
Z.list = y1;
|
|
10545
10545
|
Z.comment = (n) => new o0(n);
|
|
10546
10546
|
Z.atRule = (n) => new s0(n);
|
|
10547
10547
|
Z.decl = (n) => new a0(n);
|
|
10548
10548
|
Z.rule = (n) => new f0(n);
|
|
10549
10549
|
Z.root = (n) => new c0(n);
|
|
10550
10550
|
Z.document = (n) => new l0(n);
|
|
10551
|
-
Z.CssSyntaxError =
|
|
10551
|
+
Z.CssSyntaxError = p1;
|
|
10552
10552
|
Z.Declaration = a0;
|
|
10553
|
-
Z.Container =
|
|
10553
|
+
Z.Container = h1;
|
|
10554
10554
|
Z.Processor = Bs;
|
|
10555
10555
|
Z.Document = l0;
|
|
10556
10556
|
Z.Comment = o0;
|
|
10557
|
-
Z.Warning =
|
|
10557
|
+
Z.Warning = S1;
|
|
10558
10558
|
Z.AtRule = s0;
|
|
10559
|
-
Z.Result =
|
|
10560
|
-
Z.Input =
|
|
10559
|
+
Z.Result = v1;
|
|
10560
|
+
Z.Input = m1;
|
|
10561
10561
|
Z.Rule = f0;
|
|
10562
10562
|
Z.Root = c0;
|
|
10563
|
-
Z.Node =
|
|
10564
|
-
|
|
10565
|
-
var
|
|
10563
|
+
Z.Node = x1;
|
|
10564
|
+
b1.registerPostcss(Z);
|
|
10565
|
+
var T1 = Z;
|
|
10566
10566
|
Z.default = Z;
|
|
10567
|
-
const
|
|
10567
|
+
const C1 = tc, va = _p, { isPlainObject: E1 } = Ns, wa = Mp, N1 = Rp, { parse: k1 } = T1, A1 = [
|
|
10568
10568
|
"img",
|
|
10569
10569
|
"audio",
|
|
10570
10570
|
"video",
|
|
@@ -10574,7 +10574,7 @@ const Cg = tc, va = _p, { isPlainObject: Eg } = Ns, wa = Mp, Ng = Rp, { parse: k
|
|
|
10574
10574
|
"map",
|
|
10575
10575
|
"iframe",
|
|
10576
10576
|
"embed"
|
|
10577
|
-
],
|
|
10577
|
+
], O1 = ["script", "style"];
|
|
10578
10578
|
function Gt(n, e) {
|
|
10579
10579
|
n && Object.keys(n).forEach(function(t) {
|
|
10580
10580
|
e(n[t], t);
|
|
@@ -10589,21 +10589,21 @@ function Sa(n, e) {
|
|
|
10589
10589
|
e(r) && t.push(r);
|
|
10590
10590
|
}), t;
|
|
10591
10591
|
}
|
|
10592
|
-
function
|
|
10592
|
+
function P1(n) {
|
|
10593
10593
|
for (const e in n)
|
|
10594
10594
|
if (Xe(n, e))
|
|
10595
10595
|
return !1;
|
|
10596
10596
|
return !0;
|
|
10597
10597
|
}
|
|
10598
|
-
function
|
|
10598
|
+
function I1(n) {
|
|
10599
10599
|
return n.map(function(e) {
|
|
10600
10600
|
if (!e.url)
|
|
10601
10601
|
throw new Error("URL missing");
|
|
10602
10602
|
return e.url + (e.w ? ` ${e.w}w` : "") + (e.h ? ` ${e.h}h` : "") + (e.d ? ` ${e.d}x` : "");
|
|
10603
10603
|
}).join(", ");
|
|
10604
10604
|
}
|
|
10605
|
-
var
|
|
10606
|
-
const
|
|
10605
|
+
var L1 = Hn;
|
|
10606
|
+
const D1 = /^[^\0\t\n\f\r /<=>]+$/;
|
|
10607
10607
|
function Hn(n, e, t) {
|
|
10608
10608
|
if (n == null)
|
|
10609
10609
|
return "";
|
|
@@ -10613,18 +10613,18 @@ function Hn(n, e, t) {
|
|
|
10613
10613
|
const k = this;
|
|
10614
10614
|
this.tag = x, this.attribs = O || {}, this.tagPosition = r.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() {
|
|
10615
10615
|
if (g.length) {
|
|
10616
|
-
const
|
|
10617
|
-
|
|
10616
|
+
const q = g[g.length - 1];
|
|
10617
|
+
q.text += k.text;
|
|
10618
10618
|
}
|
|
10619
10619
|
}, this.updateParentNodeMediaChildren = function() {
|
|
10620
|
-
g.length &&
|
|
10620
|
+
g.length && A1.includes(this.tag) && g[g.length - 1].mediaChildren.push(this.tag);
|
|
10621
10621
|
};
|
|
10622
10622
|
}
|
|
10623
|
-
e = Object.assign({}, Hn.defaults, e), e.parser = Object.assign({},
|
|
10623
|
+
e = Object.assign({}, Hn.defaults, e), e.parser = Object.assign({}, M1, e.parser);
|
|
10624
10624
|
const s = function(x) {
|
|
10625
10625
|
return e.allowedTags === !1 || (e.allowedTags || []).indexOf(x) > -1;
|
|
10626
10626
|
};
|
|
10627
|
-
|
|
10627
|
+
O1.forEach(function(x) {
|
|
10628
10628
|
s(x) && !e.allowVulnerableTags && console.warn(`
|
|
10629
10629
|
|
|
10630
10630
|
⚠️ Your \`allowedTags\` option includes, \`${x}\`, which is inherently
|
|
@@ -10644,16 +10644,16 @@ and ensure you are accounting for this risk.
|
|
|
10644
10644
|
e.allowedAttributes && (a = {}, l = {}, Gt(e.allowedAttributes, function(x, O) {
|
|
10645
10645
|
a[O] = [];
|
|
10646
10646
|
const k = [];
|
|
10647
|
-
x.forEach(function(
|
|
10648
|
-
typeof
|
|
10647
|
+
x.forEach(function(q) {
|
|
10648
|
+
typeof q == "string" && q.indexOf("*") >= 0 ? k.push(va(q).replace(/\\\*/g, ".*")) : a[O].push(q);
|
|
10649
10649
|
}), k.length && (l[O] = new RegExp("^(" + k.join("|") + ")$"));
|
|
10650
10650
|
}));
|
|
10651
10651
|
const f = {}, h = {}, c = {};
|
|
10652
10652
|
Gt(e.allowedClasses, function(x, O) {
|
|
10653
10653
|
if (a && (Xe(a, O) || (a[O] = []), a[O].push("class")), f[O] = x, Array.isArray(x)) {
|
|
10654
10654
|
const k = [];
|
|
10655
|
-
f[O] = [], c[O] = [], x.forEach(function(
|
|
10656
|
-
typeof
|
|
10655
|
+
f[O] = [], c[O] = [], x.forEach(function(q) {
|
|
10656
|
+
typeof q == "string" && q.indexOf("*") >= 0 ? k.push(va(q).replace(/\\\*/g, ".*")) : q instanceof RegExp ? c[O].push(q) : f[O].push(q);
|
|
10657
10657
|
}), k.length && (h[O] = new RegExp("^(" + k.join("|") + ")$"));
|
|
10658
10658
|
}
|
|
10659
10659
|
});
|
|
@@ -10665,7 +10665,7 @@ and ensure you are accounting for this risk.
|
|
|
10665
10665
|
});
|
|
10666
10666
|
let m, g, y, b, _, w, T = !1;
|
|
10667
10667
|
P();
|
|
10668
|
-
const S = new
|
|
10668
|
+
const S = new C1.Parser({
|
|
10669
10669
|
onopentag: function(x, O) {
|
|
10670
10670
|
if (e.onOpenTag && e.onOpenTag(x, O), e.enforceHtmlBoundary && x === "html" && P(), _) {
|
|
10671
10671
|
w++;
|
|
@@ -10673,10 +10673,10 @@ and ensure you are accounting for this risk.
|
|
|
10673
10673
|
}
|
|
10674
10674
|
const k = new i(x, O);
|
|
10675
10675
|
g.push(k);
|
|
10676
|
-
let
|
|
10676
|
+
let q = !1;
|
|
10677
10677
|
const Q = !!k.text;
|
|
10678
10678
|
let te;
|
|
10679
|
-
if (Xe(d, x) && (te = d[x](x, O), k.attribs = O = te.attribs, te.text !== void 0 && (k.innerText = te.text), x !== te.tagName && (k.name = x = te.tagName, b[m] = te.tagName)), p && (te = p(x, O), k.attribs = O = te.attribs, x !== te.tagName && (k.name = x = te.tagName, b[m] = te.tagName)), (!s(x) || e.disallowedTagsMode === "recursiveEscape" && !
|
|
10679
|
+
if (Xe(d, x) && (te = d[x](x, O), k.attribs = O = te.attribs, te.text !== void 0 && (k.innerText = te.text), x !== te.tagName && (k.name = x = te.tagName, b[m] = te.tagName)), p && (te = p(x, O), k.attribs = O = te.attribs, x !== te.tagName && (k.name = x = te.tagName, b[m] = te.tagName)), (!s(x) || e.disallowedTagsMode === "recursiveEscape" && !P1(y) || e.nestingLimit != null && m >= e.nestingLimit) && (q = !0, y[m] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && o.indexOf(x) !== -1 && (_ = !0, w = 1)), m++, q) {
|
|
10680
10680
|
if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
10681
10681
|
if (k.innerText && !Q) {
|
|
10682
10682
|
const K = C(k.innerText);
|
|
@@ -10686,10 +10686,10 @@ and ensure you are accounting for this risk.
|
|
|
10686
10686
|
}
|
|
10687
10687
|
u = r, r = "";
|
|
10688
10688
|
}
|
|
10689
|
-
r += "<" + x, x === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (k.innerText = ""),
|
|
10689
|
+
r += "<" + x, x === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (k.innerText = ""), q && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? Gt(O, function(K, H) {
|
|
10690
10690
|
r += " " + H + '="' + C(K || "", !0) + '"';
|
|
10691
10691
|
}) : (!a || Xe(a, x) || a["*"]) && Gt(O, function(K, H) {
|
|
10692
|
-
if (!
|
|
10692
|
+
if (!D1.test(H)) {
|
|
10693
10693
|
delete k.attribs[H];
|
|
10694
10694
|
return;
|
|
10695
10695
|
}
|
|
@@ -10701,15 +10701,15 @@ and ensure you are accounting for this risk.
|
|
|
10701
10701
|
if (!a || Xe(a, x) && a[x].indexOf(H) !== -1 || a["*"] && a["*"].indexOf(H) !== -1 || Xe(l, x) && l[x].test(H) || l["*"] && l["*"].test(H))
|
|
10702
10702
|
st = !0;
|
|
10703
10703
|
else if (a && a[x]) {
|
|
10704
|
-
for (const
|
|
10705
|
-
if (
|
|
10704
|
+
for (const $ of a[x])
|
|
10705
|
+
if (E1($) && $.name && $.name === H) {
|
|
10706
10706
|
st = !0;
|
|
10707
10707
|
let G = "";
|
|
10708
|
-
if (
|
|
10708
|
+
if ($.multiple === !0) {
|
|
10709
10709
|
const we = K.split(" ");
|
|
10710
10710
|
for (const pe of we)
|
|
10711
|
-
|
|
10712
|
-
} else
|
|
10711
|
+
$.values.indexOf(pe) !== -1 && (G === "" ? G = pe : G += " " + pe);
|
|
10712
|
+
} else $.values.indexOf(K) >= 0 && (G = K);
|
|
10713
10713
|
K = G;
|
|
10714
10714
|
}
|
|
10715
10715
|
}
|
|
@@ -10719,56 +10719,56 @@ and ensure you are accounting for this risk.
|
|
|
10719
10719
|
return;
|
|
10720
10720
|
}
|
|
10721
10721
|
if (x === "script" && H === "src") {
|
|
10722
|
-
let
|
|
10722
|
+
let $ = !0;
|
|
10723
10723
|
try {
|
|
10724
|
-
const G =
|
|
10724
|
+
const G = U(K);
|
|
10725
10725
|
if (e.allowedScriptHostnames || e.allowedScriptDomains) {
|
|
10726
10726
|
const we = (e.allowedScriptHostnames || []).find(function(ge) {
|
|
10727
10727
|
return ge === G.url.hostname;
|
|
10728
10728
|
}), pe = (e.allowedScriptDomains || []).find(function(ge) {
|
|
10729
10729
|
return G.url.hostname === ge || G.url.hostname.endsWith(`.${ge}`);
|
|
10730
10730
|
});
|
|
10731
|
-
|
|
10731
|
+
$ = we || pe;
|
|
10732
10732
|
}
|
|
10733
10733
|
} catch {
|
|
10734
|
-
|
|
10734
|
+
$ = !1;
|
|
10735
10735
|
}
|
|
10736
|
-
if (
|
|
10736
|
+
if (!$) {
|
|
10737
10737
|
delete k.attribs[H];
|
|
10738
10738
|
return;
|
|
10739
10739
|
}
|
|
10740
10740
|
}
|
|
10741
10741
|
if (x === "iframe" && H === "src") {
|
|
10742
|
-
let
|
|
10742
|
+
let $ = !0;
|
|
10743
10743
|
try {
|
|
10744
|
-
const G =
|
|
10744
|
+
const G = U(K);
|
|
10745
10745
|
if (G.isRelativeUrl)
|
|
10746
|
-
|
|
10746
|
+
$ = Xe(e, "allowIframeRelativeUrls") ? e.allowIframeRelativeUrls : !e.allowedIframeHostnames && !e.allowedIframeDomains;
|
|
10747
10747
|
else if (e.allowedIframeHostnames || e.allowedIframeDomains) {
|
|
10748
10748
|
const we = (e.allowedIframeHostnames || []).find(function(ge) {
|
|
10749
10749
|
return ge === G.url.hostname;
|
|
10750
10750
|
}), pe = (e.allowedIframeDomains || []).find(function(ge) {
|
|
10751
10751
|
return G.url.hostname === ge || G.url.hostname.endsWith(`.${ge}`);
|
|
10752
10752
|
});
|
|
10753
|
-
|
|
10753
|
+
$ = we || pe;
|
|
10754
10754
|
}
|
|
10755
10755
|
} catch {
|
|
10756
|
-
|
|
10756
|
+
$ = !1;
|
|
10757
10757
|
}
|
|
10758
|
-
if (
|
|
10758
|
+
if (!$) {
|
|
10759
10759
|
delete k.attribs[H];
|
|
10760
10760
|
return;
|
|
10761
10761
|
}
|
|
10762
10762
|
}
|
|
10763
10763
|
if (H === "srcset")
|
|
10764
10764
|
try {
|
|
10765
|
-
let
|
|
10766
|
-
if (
|
|
10765
|
+
let $ = N1(K);
|
|
10766
|
+
if ($.forEach(function(G) {
|
|
10767
10767
|
D("srcset", G.url) && (G.evil = !0);
|
|
10768
|
-
}),
|
|
10768
|
+
}), $ = Sa($, function(G) {
|
|
10769
10769
|
return !G.evil;
|
|
10770
|
-
}),
|
|
10771
|
-
K =
|
|
10770
|
+
}), $.length)
|
|
10771
|
+
K = I1(Sa($, function(G) {
|
|
10772
10772
|
return !G.evil;
|
|
10773
10773
|
})), k.attribs[H] = K;
|
|
10774
10774
|
else {
|
|
@@ -10780,13 +10780,13 @@ and ensure you are accounting for this risk.
|
|
|
10780
10780
|
return;
|
|
10781
10781
|
}
|
|
10782
10782
|
if (H === "class") {
|
|
10783
|
-
const
|
|
10783
|
+
const $ = f[x], G = f["*"], we = h[x], pe = c[x], ge = c["*"], d0 = h["*"], Fs = [
|
|
10784
10784
|
we,
|
|
10785
10785
|
d0
|
|
10786
10786
|
].concat(pe, ge).filter(function(h0) {
|
|
10787
10787
|
return h0;
|
|
10788
10788
|
});
|
|
10789
|
-
if (
|
|
10789
|
+
if ($ && G ? K = B(K, wa($, G), Fs) : K = B(K, $ || G, Fs), !K.length) {
|
|
10790
10790
|
delete k.attribs[H];
|
|
10791
10791
|
return;
|
|
10792
10792
|
}
|
|
@@ -10794,7 +10794,7 @@ and ensure you are accounting for this risk.
|
|
|
10794
10794
|
if (H === "style") {
|
|
10795
10795
|
if (e.parseStyleAttributes)
|
|
10796
10796
|
try {
|
|
10797
|
-
const
|
|
10797
|
+
const $ = k1(x + " {" + K + "}", { map: !1 }), G = v($, e.allowedStyles);
|
|
10798
10798
|
if (K = N(G), K.length === 0) {
|
|
10799
10799
|
delete k.attribs[H];
|
|
10800
10800
|
return;
|
|
@@ -10809,7 +10809,7 @@ and ensure you are accounting for this risk.
|
|
|
10809
10809
|
r += " " + H, K && K.length ? r += '="' + C(K, !0) + '"' : e.allowedEmptyAttributes.includes(H) && (r += '=""');
|
|
10810
10810
|
} else
|
|
10811
10811
|
delete k.attribs[H];
|
|
10812
|
-
}), e.selfClosing.indexOf(x) !== -1 ? r += " />" : (r += ">", k.innerText && !Q && !e.textFilter && (r += C(k.innerText), T = !0)),
|
|
10812
|
+
}), e.selfClosing.indexOf(x) !== -1 ? r += " />" : (r += ">", k.innerText && !Q && !e.textFilter && (r += C(k.innerText), T = !0)), q && (r = u + C(r), u = ""), k.openingTagLength = r.length - k.tagPosition;
|
|
10813
10813
|
},
|
|
10814
10814
|
ontext: function(x) {
|
|
10815
10815
|
if (_)
|
|
@@ -10821,12 +10821,12 @@ and ensure you are accounting for this risk.
|
|
|
10821
10821
|
else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (k === "script" || k === "style"))
|
|
10822
10822
|
r += x;
|
|
10823
10823
|
else if (!T) {
|
|
10824
|
-
const
|
|
10825
|
-
e.textFilter ? r += e.textFilter(
|
|
10824
|
+
const q = C(x, !1);
|
|
10825
|
+
e.textFilter ? r += e.textFilter(q, k) : r += q;
|
|
10826
10826
|
}
|
|
10827
10827
|
if (g.length) {
|
|
10828
|
-
const
|
|
10829
|
-
|
|
10828
|
+
const q = g[g.length - 1];
|
|
10829
|
+
q.text += x;
|
|
10830
10830
|
}
|
|
10831
10831
|
},
|
|
10832
10832
|
onclosetag: function(x, O) {
|
|
@@ -10843,8 +10843,8 @@ and ensure you are accounting for this risk.
|
|
|
10843
10843
|
return;
|
|
10844
10844
|
}
|
|
10845
10845
|
_ = e.enforceHtmlBoundary ? x === "html" : !1, m--;
|
|
10846
|
-
const
|
|
10847
|
-
if (
|
|
10846
|
+
const q = y[m];
|
|
10847
|
+
if (q) {
|
|
10848
10848
|
if (delete y[m], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
|
|
10849
10849
|
k.updateParentNodeText();
|
|
10850
10850
|
return;
|
|
@@ -10854,7 +10854,7 @@ and ensure you are accounting for this risk.
|
|
|
10854
10854
|
if (b[m] && (x = b[m], delete b[m]), e.exclusiveFilter) {
|
|
10855
10855
|
const Q = e.exclusiveFilter(k);
|
|
10856
10856
|
if (Q === "excludeTag") {
|
|
10857
|
-
|
|
10857
|
+
q && (r = u, u = ""), r = r.substring(0, k.tagPosition) + r.substring(k.tagPosition + k.openingTagLength);
|
|
10858
10858
|
return;
|
|
10859
10859
|
} else if (Q) {
|
|
10860
10860
|
r = r.substring(0, k.tagPosition);
|
|
@@ -10864,10 +10864,10 @@ and ensure you are accounting for this risk.
|
|
|
10864
10864
|
if (k.updateParentNodeMediaChildren(), k.updateParentNodeText(), // Already output />
|
|
10865
10865
|
e.selfClosing.indexOf(x) !== -1 || // Escaped tag, closing tag is implied
|
|
10866
10866
|
O && !s(x) && ["escape", "recursiveEscape"].indexOf(e.disallowedTagsMode) >= 0) {
|
|
10867
|
-
|
|
10867
|
+
q && (r = u, u = "");
|
|
10868
10868
|
return;
|
|
10869
10869
|
}
|
|
10870
|
-
r += "</" + x + ">",
|
|
10870
|
+
r += "</" + x + ">", q && (r = u + C(r), u = ""), T = !1;
|
|
10871
10871
|
}
|
|
10872
10872
|
}, e.parser);
|
|
10873
10873
|
return S.write(n), S.end(), r;
|
|
@@ -10890,10 +10890,10 @@ and ensure you are accounting for this risk.
|
|
|
10890
10890
|
const k = O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);
|
|
10891
10891
|
if (!k)
|
|
10892
10892
|
return O.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
|
|
10893
|
-
const
|
|
10894
|
-
return Xe(e.allowedSchemesByTag, x) ? e.allowedSchemesByTag[x].indexOf(
|
|
10893
|
+
const q = k[1].toLowerCase();
|
|
10894
|
+
return Xe(e.allowedSchemesByTag, x) ? e.allowedSchemesByTag[x].indexOf(q) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(q) === -1;
|
|
10895
10895
|
}
|
|
10896
|
-
function
|
|
10896
|
+
function U(x) {
|
|
10897
10897
|
if (x = x.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), x.startsWith("relative:"))
|
|
10898
10898
|
throw new Error("relative: exploit attempt");
|
|
10899
10899
|
let O = "relative://relative-site";
|
|
@@ -10909,11 +10909,11 @@ and ensure you are accounting for this risk.
|
|
|
10909
10909
|
if (!O)
|
|
10910
10910
|
return x;
|
|
10911
10911
|
const k = x.nodes[0];
|
|
10912
|
-
let
|
|
10913
|
-
return O[k.selector] && O["*"] ?
|
|
10912
|
+
let q;
|
|
10913
|
+
return O[k.selector] && O["*"] ? q = wa(
|
|
10914
10914
|
O[k.selector],
|
|
10915
10915
|
O["*"]
|
|
10916
|
-
) :
|
|
10916
|
+
) : q = O[k.selector] || O["*"], q && (x.nodes[0].nodes = k.nodes.reduce(A(q), [])), x;
|
|
10917
10917
|
}
|
|
10918
10918
|
function N(x) {
|
|
10919
10919
|
return x.nodes[0].nodes.reduce(function(O, k) {
|
|
@@ -10930,14 +10930,14 @@ and ensure you are accounting for this risk.
|
|
|
10930
10930
|
};
|
|
10931
10931
|
}
|
|
10932
10932
|
function B(x, O, k) {
|
|
10933
|
-
return O ? (x = x.split(/\s+/), x.filter(function(
|
|
10934
|
-
return O.indexOf(
|
|
10935
|
-
return Q.test(
|
|
10933
|
+
return O ? (x = x.split(/\s+/), x.filter(function(q) {
|
|
10934
|
+
return O.indexOf(q) !== -1 || k.some(function(Q) {
|
|
10935
|
+
return Q.test(q);
|
|
10936
10936
|
});
|
|
10937
10937
|
}).join(" ")) : x;
|
|
10938
10938
|
}
|
|
10939
10939
|
}
|
|
10940
|
-
const
|
|
10940
|
+
const M1 = {
|
|
10941
10941
|
decodeEntities: !0
|
|
10942
10942
|
};
|
|
10943
10943
|
Hn.defaults = {
|
|
@@ -11249,23 +11249,23 @@ Hn.simpleTransform = function(n, e, t) {
|
|
|
11249
11249
|
};
|
|
11250
11250
|
};
|
|
11251
11251
|
};
|
|
11252
|
-
const
|
|
11253
|
-
editor:
|
|
11254
|
-
toolbar:
|
|
11255
|
-
active:
|
|
11256
|
-
bold:
|
|
11257
|
-
italic:
|
|
11258
|
-
link:
|
|
11259
|
-
list:
|
|
11260
|
-
paragraph:
|
|
11261
|
-
},
|
|
11252
|
+
const R1 = /* @__PURE__ */ fh(L1), B1 = "_editor_41sgr_1", F1 = "_toolbar_41sgr_11", q1 = "_active_41sgr_33", U1 = "_bold_41sgr_38", j1 = "_italic_41sgr_42", z1 = "_link_41sgr_46", $1 = "_list_41sgr_52", W1 = "_paragraph_41sgr_53", Se = {
|
|
11253
|
+
editor: B1,
|
|
11254
|
+
toolbar: F1,
|
|
11255
|
+
active: q1,
|
|
11256
|
+
bold: U1,
|
|
11257
|
+
italic: j1,
|
|
11258
|
+
link: z1,
|
|
11259
|
+
list: $1,
|
|
11260
|
+
paragraph: W1
|
|
11261
|
+
}, H1 = () => {
|
|
11262
11262
|
const [n] = ke(), [e, t] = De(!1), [r, u] = De(!1), [i, s] = De(!1), [o, a] = De(!1), [l, f] = De(""), h = Na(null), c = () => {
|
|
11263
11263
|
n.dispatchCommand(Yt, {
|
|
11264
11264
|
url: l,
|
|
11265
11265
|
target: "_blank"
|
|
11266
11266
|
});
|
|
11267
11267
|
}, d = Ea(() => {
|
|
11268
|
-
const p =
|
|
11268
|
+
const p = F();
|
|
11269
11269
|
if (I(p)) {
|
|
11270
11270
|
const m = p.getNodes();
|
|
11271
11271
|
t(p.hasFormat("bold")), u(p.hasFormat("italic")), m.every((g) => {
|
|
@@ -11286,7 +11286,7 @@ const Rg = /* @__PURE__ */ fh(Lg), Bg = "_editor_41sgr_1", $g = "_toolbar_41sgr_
|
|
|
11286
11286
|
{
|
|
11287
11287
|
className: pn(e && Se.active),
|
|
11288
11288
|
onClick: () => {
|
|
11289
|
-
n.dispatchCommand(
|
|
11289
|
+
n.dispatchCommand($e, "bold");
|
|
11290
11290
|
},
|
|
11291
11291
|
title: "Bold",
|
|
11292
11292
|
variant: "minimal",
|
|
@@ -11298,7 +11298,7 @@ const Rg = /* @__PURE__ */ fh(Lg), Bg = "_editor_41sgr_1", $g = "_toolbar_41sgr_
|
|
|
11298
11298
|
{
|
|
11299
11299
|
className: pn(r && Se.active),
|
|
11300
11300
|
onClick: () => {
|
|
11301
|
-
n.dispatchCommand(
|
|
11301
|
+
n.dispatchCommand($e, "italic");
|
|
11302
11302
|
},
|
|
11303
11303
|
title: "Italic",
|
|
11304
11304
|
variant: "minimal",
|
|
@@ -11343,9 +11343,9 @@ const Rg = /* @__PURE__ */ fh(Lg), Bg = "_editor_41sgr_1", $g = "_toolbar_41sgr_
|
|
|
11343
11343
|
}
|
|
11344
11344
|
)
|
|
11345
11345
|
] });
|
|
11346
|
-
},
|
|
11346
|
+
}, V1 = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/, G1 = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/, K1 = [
|
|
11347
11347
|
(n) => {
|
|
11348
|
-
const e =
|
|
11348
|
+
const e = V1.exec(n);
|
|
11349
11349
|
return e != null && e.length ? {
|
|
11350
11350
|
index: e.index,
|
|
11351
11351
|
length: e[0].length,
|
|
@@ -11354,7 +11354,7 @@ const Rg = /* @__PURE__ */ fh(Lg), Bg = "_editor_41sgr_1", $g = "_toolbar_41sgr_
|
|
|
11354
11354
|
} : null;
|
|
11355
11355
|
},
|
|
11356
11356
|
(n) => {
|
|
11357
|
-
const e =
|
|
11357
|
+
const e = G1.exec(n);
|
|
11358
11358
|
return e != null && e.length ? {
|
|
11359
11359
|
index: e.index,
|
|
11360
11360
|
length: e[0].length,
|
|
@@ -11363,7 +11363,7 @@ const Rg = /* @__PURE__ */ fh(Lg), Bg = "_editor_41sgr_1", $g = "_toolbar_41sgr_
|
|
|
11363
11363
|
} : null;
|
|
11364
11364
|
}
|
|
11365
11365
|
];
|
|
11366
|
-
function
|
|
11366
|
+
function J1(n) {
|
|
11367
11367
|
try {
|
|
11368
11368
|
const e = new URL(n);
|
|
11369
11369
|
return e.protocol === "http:" || e.protocol === "https:";
|
|
@@ -11371,7 +11371,7 @@ function Jg(n) {
|
|
|
11371
11371
|
return !1;
|
|
11372
11372
|
}
|
|
11373
11373
|
}
|
|
11374
|
-
function
|
|
11374
|
+
function X1({ content: n }) {
|
|
11375
11375
|
const [e] = ke();
|
|
11376
11376
|
return ve(() => {
|
|
11377
11377
|
e.update(() => {
|
|
@@ -11407,7 +11407,7 @@ const _m = ({
|
|
|
11407
11407
|
nodes: [Au, ur, fn, ir]
|
|
11408
11408
|
};
|
|
11409
11409
|
return /* @__PURE__ */ X("div", { className: Se.editor, children: /* @__PURE__ */ pu(vd, { initialConfig: i, children: [
|
|
11410
|
-
!r && /* @__PURE__ */ X(
|
|
11410
|
+
!r && /* @__PURE__ */ X(H1, {}),
|
|
11411
11411
|
/* @__PURE__ */ X(
|
|
11412
11412
|
lh,
|
|
11413
11413
|
{
|
|
@@ -11416,17 +11416,17 @@ const _m = ({
|
|
|
11416
11416
|
}
|
|
11417
11417
|
),
|
|
11418
11418
|
n && /* @__PURE__ */ X(fd, {}),
|
|
11419
|
-
e && /* @__PURE__ */ X(xd, { matchers:
|
|
11420
|
-
/* @__PURE__ */ X(
|
|
11421
|
-
t && /* @__PURE__ */ X(
|
|
11422
|
-
/* @__PURE__ */ X(
|
|
11423
|
-
/* @__PURE__ */ X(
|
|
11419
|
+
e && /* @__PURE__ */ X(xd, { matchers: K1 }),
|
|
11420
|
+
/* @__PURE__ */ X(Ud, {}),
|
|
11421
|
+
t && /* @__PURE__ */ X(X1, { content: t }),
|
|
11422
|
+
/* @__PURE__ */ X(jd, { validateUrl: J1 }),
|
|
11423
|
+
/* @__PURE__ */ X(zd, {}),
|
|
11424
11424
|
u && /* @__PURE__ */ X(
|
|
11425
11425
|
Wd,
|
|
11426
11426
|
{
|
|
11427
11427
|
onChange: (s, o) => {
|
|
11428
11428
|
s.read(() => {
|
|
11429
|
-
const a = Ml(o, null), l =
|
|
11429
|
+
const a = Ml(o, null), l = R1(a, {
|
|
11430
11430
|
allowedTags: ["a", "b", "br", "i", "li", "ol", "p", "ul"]
|
|
11431
11431
|
});
|
|
11432
11432
|
u(l);
|