reactjs-tiptap-editor 0.3.17 → 0.3.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.
- package/lib/{ActionMenuButton-KFJKTwTF.cjs → ActionMenuButton-Bp3NtBKu.cjs} +1 -1
- package/lib/{ActionMenuButton-BrCaG1xk.js → ActionMenuButton-CK00Dg3S.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +8 -8
- package/lib/Attachment.d.ts +8 -8
- package/lib/Attachment.js +1 -1
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +8 -8
- package/lib/Blockquote.d.ts +8 -8
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +8 -8
- package/lib/Bold.d.ts +8 -8
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +8 -8
- package/lib/BulletList.d.ts +8 -8
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +8 -8
- package/lib/Clear.d.ts +8 -8
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +8 -8
- package/lib/Code.d.ts +8 -8
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +8 -8
- package/lib/CodeBlock.d.ts +8 -8
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +8 -8
- package/lib/CodeView.d.ts +8 -8
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +8 -8
- package/lib/Color.d.ts +8 -8
- package/lib/Color.js +1 -1
- package/lib/Document.d.cts +8 -8
- package/lib/Document.d.ts +8 -8
- package/lib/{Drawer-BoMVb5A7.js → Drawer-B5bTsUf8.js} +1 -1
- package/lib/{Drawer-DIGVbwK_.cjs → Drawer-D7O4q7Un.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +8 -8
- package/lib/Drawer.d.ts +8 -8
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +8 -8
- package/lib/Emoji.d.ts +8 -8
- package/lib/Emoji.js +1 -1
- package/lib/{Excalidraw-36ndx1gh.cjs → Excalidraw-CzAhPJ3k.cjs} +1 -1
- package/lib/{Excalidraw-DhvtW1HZ.js → Excalidraw-D1EJKRER.js} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +8 -8
- package/lib/Excalidraw.d.ts +8 -8
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +8 -8
- package/lib/ExportPdf.d.ts +8 -8
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +8 -8
- package/lib/ExportWord.d.ts +8 -8
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +8 -8
- package/lib/FontFamily.d.ts +8 -8
- package/lib/FontFamily.js +2 -2
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +8 -8
- package/lib/FontSize.d.ts +8 -8
- package/lib/FontSize.js +2 -2
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +8 -8
- package/lib/FormatPainter.d.ts +8 -8
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +8 -8
- package/lib/Heading.d.ts +8 -8
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +8 -8
- package/lib/Highlight.d.ts +8 -8
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +8 -8
- package/lib/History.d.ts +8 -8
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +8 -8
- package/lib/HorizontalRule.d.ts +8 -8
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +8 -8
- package/lib/Iframe.d.ts +8 -8
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +8 -8
- package/lib/Image.d.ts +8 -8
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +8 -8
- package/lib/ImageGif.d.ts +8 -8
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +8 -8
- package/lib/ImportWord.d.ts +8 -8
- package/lib/ImportWord.js +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +8 -8
- package/lib/Indent.d.ts +8 -8
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +8 -8
- package/lib/Italic.d.ts +8 -8
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +8 -8
- package/lib/Katex.d.ts +8 -8
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +8 -8
- package/lib/LineHeight.d.ts +8 -8
- package/lib/LineHeight.js +1 -1
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +8 -8
- package/lib/Link.d.ts +8 -8
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +8 -8
- package/lib/ListItem.d.ts +8 -8
- package/lib/Mention.d.cts +8 -8
- package/lib/Mention.d.ts +8 -8
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +8 -8
- package/lib/Mermaid.d.ts +8 -8
- package/lib/Mermaid.js +2 -2
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +8 -8
- package/lib/MoreMark.d.ts +8 -8
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +8 -8
- package/lib/MultiColumn.d.ts +8 -8
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +8 -8
- package/lib/OrderedList.d.ts +8 -8
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-Coaq773Y.js → RichTextEditor-DWN9FEob.js} +671 -671
- package/lib/{RichTextEditor-B7GWBCUZ.cjs → RichTextEditor-jtVXJcE2.cjs} +7 -7
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +8 -8
- package/lib/SearchAndReplace.d.ts +8 -8
- package/lib/SearchAndReplace.js +1 -1
- package/lib/Selection.d.cts +8 -8
- package/lib/Selection.d.ts +8 -8
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +8 -8
- package/lib/SlashCommand.d.ts +8 -8
- package/lib/SlashCommand.js +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +8 -8
- package/lib/Strike.d.ts +8 -8
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +8 -8
- package/lib/SubAndSuperScript.d.ts +8 -8
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +8 -8
- package/lib/Table.d.ts +8 -8
- package/lib/Table.js +1 -1
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +8 -8
- package/lib/TableOfContent.d.ts +8 -8
- package/lib/TableOfContent.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +8 -8
- package/lib/TaskList.d.ts +8 -8
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +8 -8
- package/lib/TextAlign.d.ts +8 -8
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +8 -8
- package/lib/TextBubble.d.ts +8 -8
- package/lib/TextBubble.js +1 -1
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +8 -8
- package/lib/TextDirection.d.ts +8 -8
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +8 -8
- package/lib/TextUnderline.d.ts +8 -8
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +8 -8
- package/lib/TrailingNode.d.ts +8 -8
- package/lib/{Twitter-D9TEh74u.cjs → Twitter-COZu8DI2.cjs} +1 -1
- package/lib/{Twitter-4jWZEzW-.js → Twitter-J0XtGXRC.js} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +8 -8
- package/lib/Twitter.d.ts +8 -8
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +8 -8
- package/lib/Video.d.ts +8 -8
- package/lib/Video.js +1 -1
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +8 -8
- package/lib/bubble-extra.d.ts +8 -8
- package/lib/bubble-extra.js +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +8 -8
- package/lib/index.d.ts +8 -8
- package/lib/index.js +2 -2
- package/lib/locale-bundle.d.cts +8 -8
- package/lib/locale-bundle.d.ts +8 -8
- package/lib/{textarea-D432J9HA.js → textarea-Bm0GTcEU.js} +1 -1
- package/lib/{textarea-hHZqZb43.cjs → textarea-C_xhu0vT.cjs} +1 -1
- package/package.json +1 -1
|
@@ -653,11 +653,11 @@ function Hu(e, t, r, n, i, o) {
|
|
|
653
653
|
return u == t && f == e;
|
|
654
654
|
var d = -1, h = !0, p = r & U0 ? new vr() : void 0;
|
|
655
655
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
|
656
|
-
var m = e[d],
|
|
656
|
+
var m = e[d], v = t[d];
|
|
657
657
|
if (n)
|
|
658
|
-
var
|
|
659
|
-
if (
|
|
660
|
-
if (
|
|
658
|
+
var g = a ? n(v, m, d, t, e, o) : n(m, v, d, e, t, o);
|
|
659
|
+
if (g !== void 0) {
|
|
660
|
+
if (g)
|
|
661
661
|
continue;
|
|
662
662
|
h = !1;
|
|
663
663
|
break;
|
|
@@ -670,7 +670,7 @@ function Hu(e, t, r, n, i, o) {
|
|
|
670
670
|
h = !1;
|
|
671
671
|
break;
|
|
672
672
|
}
|
|
673
|
-
} else if (!(m ===
|
|
673
|
+
} else if (!(m === v || i(m, v, r, n, o))) {
|
|
674
674
|
h = !1;
|
|
675
675
|
break;
|
|
676
676
|
}
|
|
@@ -738,24 +738,24 @@ function u1(e, t, r, n, i, o) {
|
|
|
738
738
|
var p = o.get(e), m = o.get(t);
|
|
739
739
|
if (p && m)
|
|
740
740
|
return p == t && m == e;
|
|
741
|
-
var
|
|
741
|
+
var v = !0;
|
|
742
742
|
o.set(e, t), o.set(t, e);
|
|
743
|
-
for (var
|
|
743
|
+
for (var g = a; ++d < c; ) {
|
|
744
744
|
h = s[d];
|
|
745
745
|
var x = e[h], S = t[h];
|
|
746
746
|
if (n)
|
|
747
|
-
var
|
|
748
|
-
if (!(
|
|
749
|
-
|
|
747
|
+
var I = a ? n(S, x, h, t, e, o) : n(x, S, h, e, t, o);
|
|
748
|
+
if (!(I === void 0 ? x === S || i(x, S, r, n, o) : I)) {
|
|
749
|
+
v = !1;
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
|
-
|
|
752
|
+
g || (g = h == "constructor");
|
|
753
753
|
}
|
|
754
|
-
if (
|
|
755
|
-
var
|
|
756
|
-
|
|
754
|
+
if (v && !g) {
|
|
755
|
+
var E = e.constructor, C = t.constructor;
|
|
756
|
+
E != C && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof C == "function" && C instanceof C) && (v = !1);
|
|
757
757
|
}
|
|
758
|
-
return o.delete(e), o.delete(t),
|
|
758
|
+
return o.delete(e), o.delete(t), v;
|
|
759
759
|
}
|
|
760
760
|
var d1 = 1, Ys = "[object Arguments]", Xs = "[object Array]", Dr = "[object Object]", f1 = Object.prototype, Js = f1.hasOwnProperty;
|
|
761
761
|
function h1(e, t, r, n, i, o) {
|
|
@@ -772,8 +772,8 @@ function h1(e, t, r, n, i, o) {
|
|
|
772
772
|
if (!(r & d1)) {
|
|
773
773
|
var p = f && Js.call(e, "__wrapped__"), m = d && Js.call(t, "__wrapped__");
|
|
774
774
|
if (p || m) {
|
|
775
|
-
var
|
|
776
|
-
return o || (o = new nt()), i(
|
|
775
|
+
var v = p ? e.value() : e, g = m ? t.value() : t;
|
|
776
|
+
return o || (o = new nt()), i(v, g, r, n, o);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
return h ? (o || (o = new nt()), u1(e, t, r, n, i, o)) : !1;
|
|
@@ -873,39 +873,39 @@ function Dn(e, t, r) {
|
|
|
873
873
|
if (typeof e != "function")
|
|
874
874
|
throw new TypeError(R1);
|
|
875
875
|
t = Ht(t) || 0, wt(r) && (f = !!r.leading, d = "maxWait" in r, o = d ? O1(Ht(r.maxWait) || 0, t) : o, h = "trailing" in r ? !!r.trailing : h);
|
|
876
|
-
function p(
|
|
877
|
-
var
|
|
878
|
-
return n = i = void 0, u =
|
|
876
|
+
function p(k) {
|
|
877
|
+
var L = n, P = i;
|
|
878
|
+
return n = i = void 0, u = k, a = e.apply(P, L), a;
|
|
879
879
|
}
|
|
880
|
-
function m(
|
|
881
|
-
return u =
|
|
880
|
+
function m(k) {
|
|
881
|
+
return u = k, s = setTimeout(x, t), f ? p(k) : a;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
var
|
|
885
|
-
return d ? P1(N, o -
|
|
883
|
+
function v(k) {
|
|
884
|
+
var L = k - c, P = k - u, N = t - L;
|
|
885
|
+
return d ? P1(N, o - P) : N;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
var
|
|
889
|
-
return c === void 0 ||
|
|
887
|
+
function g(k) {
|
|
888
|
+
var L = k - c, P = k - u;
|
|
889
|
+
return c === void 0 || L >= t || L < 0 || d && P >= o;
|
|
890
890
|
}
|
|
891
891
|
function x() {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
return S(
|
|
895
|
-
s = setTimeout(x,
|
|
892
|
+
var k = oi();
|
|
893
|
+
if (g(k))
|
|
894
|
+
return S(k);
|
|
895
|
+
s = setTimeout(x, v(k));
|
|
896
896
|
}
|
|
897
|
-
function S(
|
|
898
|
-
return s = void 0, h && n ? p(
|
|
897
|
+
function S(k) {
|
|
898
|
+
return s = void 0, h && n ? p(k) : (n = i = void 0, a);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function I() {
|
|
901
901
|
s !== void 0 && clearTimeout(s), u = 0, n = c = i = s = void 0;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function E() {
|
|
904
904
|
return s === void 0 ? a : S(oi());
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
var
|
|
908
|
-
if (n = arguments, i = this, c =
|
|
906
|
+
function C() {
|
|
907
|
+
var k = oi(), L = g(k);
|
|
908
|
+
if (n = arguments, i = this, c = k, L) {
|
|
909
909
|
if (s === void 0)
|
|
910
910
|
return m(c);
|
|
911
911
|
if (d)
|
|
@@ -913,7 +913,7 @@ function Dn(e, t, r) {
|
|
|
913
913
|
}
|
|
914
914
|
return s === void 0 && (s = setTimeout(x, t)), a;
|
|
915
915
|
}
|
|
916
|
-
return
|
|
916
|
+
return C.cancel = I, C.flush = E, C;
|
|
917
917
|
}
|
|
918
918
|
function ai(e) {
|
|
919
919
|
return st(e) && Cu(e);
|
|
@@ -1114,26 +1114,26 @@ const za = "-", iv = (e) => {
|
|
|
1114
1114
|
} = e, n = t.length === 1, i = t[0], o = t.length, a = (s) => {
|
|
1115
1115
|
const c = [];
|
|
1116
1116
|
let u = 0, f = 0, d;
|
|
1117
|
-
for (let
|
|
1118
|
-
let x = s[
|
|
1117
|
+
for (let g = 0; g < s.length; g++) {
|
|
1118
|
+
let x = s[g];
|
|
1119
1119
|
if (u === 0) {
|
|
1120
|
-
if (x === i && (n || s.slice(
|
|
1121
|
-
c.push(s.slice(f,
|
|
1120
|
+
if (x === i && (n || s.slice(g, g + o) === t)) {
|
|
1121
|
+
c.push(s.slice(f, g)), f = g + o;
|
|
1122
1122
|
continue;
|
|
1123
1123
|
}
|
|
1124
1124
|
if (x === "/") {
|
|
1125
|
-
d =
|
|
1125
|
+
d = g;
|
|
1126
1126
|
continue;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
1129
|
x === "[" ? u++ : x === "]" && u--;
|
|
1130
1130
|
}
|
|
1131
|
-
const h = c.length === 0 ? s : s.substring(f), p = h.startsWith(Zu), m = p ? h.substring(1) : h,
|
|
1131
|
+
const h = c.length === 0 ? s : s.substring(f), p = h.startsWith(Zu), m = p ? h.substring(1) : h, v = d && d > f ? d - f : void 0;
|
|
1132
1132
|
return {
|
|
1133
1133
|
modifiers: c,
|
|
1134
1134
|
hasImportantModifier: p,
|
|
1135
1135
|
baseClassName: m,
|
|
1136
|
-
maybePostfixModifierPosition:
|
|
1136
|
+
maybePostfixModifierPosition: v
|
|
1137
1137
|
};
|
|
1138
1138
|
};
|
|
1139
1139
|
return r ? (s) => r({
|
|
@@ -1166,26 +1166,26 @@ const za = "-", iv = (e) => {
|
|
|
1166
1166
|
baseClassName: h,
|
|
1167
1167
|
maybePostfixModifierPosition: p
|
|
1168
1168
|
} = r(u);
|
|
1169
|
-
let m = !!p,
|
|
1170
|
-
if (!
|
|
1169
|
+
let m = !!p, v = n(m ? h.substring(0, p) : h);
|
|
1170
|
+
if (!v) {
|
|
1171
1171
|
if (!m) {
|
|
1172
1172
|
s = u + (s.length > 0 ? " " + s : s);
|
|
1173
1173
|
continue;
|
|
1174
1174
|
}
|
|
1175
|
-
if (
|
|
1175
|
+
if (v = n(h), !v) {
|
|
1176
1176
|
s = u + (s.length > 0 ? " " + s : s);
|
|
1177
1177
|
continue;
|
|
1178
1178
|
}
|
|
1179
1179
|
m = !1;
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1181
|
+
const g = dv(f).join(":"), x = d ? g + Zu : g, S = x + v;
|
|
1182
1182
|
if (o.includes(S))
|
|
1183
1183
|
continue;
|
|
1184
1184
|
o.push(S);
|
|
1185
|
-
const
|
|
1186
|
-
for (let
|
|
1187
|
-
const
|
|
1188
|
-
o.push(x +
|
|
1185
|
+
const I = i(v, m);
|
|
1186
|
+
for (let E = 0; E < I.length; ++E) {
|
|
1187
|
+
const C = I[E];
|
|
1188
|
+
o.push(x + C);
|
|
1189
1189
|
}
|
|
1190
1190
|
s = u + (s.length > 0 ? " " + s : s);
|
|
1191
1191
|
}
|
|
@@ -1234,7 +1234,7 @@ const ce = (e) => {
|
|
|
1234
1234
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1235
1235
|
bv.test(e) && !wv.test(e)
|
|
1236
1236
|
), td = () => !1, kv = (e) => Sv.test(e), Mv = (e) => Av.test(e), Lv = () => {
|
|
1237
|
-
const e = ce("colors"), t = ce("spacing"), r = ce("blur"), n = ce("brightness"), i = ce("borderColor"), o = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), c = ce("contrast"), u = ce("grayscale"), f = ce("hueRotate"), d = ce("invert"), h = ce("gap"), p = ce("gradientColorStops"), m = ce("gradientColorStopPositions"),
|
|
1237
|
+
const e = ce("colors"), t = ce("spacing"), r = ce("blur"), n = ce("brightness"), i = ce("borderColor"), o = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), c = ce("contrast"), u = ce("grayscale"), f = ce("hueRotate"), d = ce("invert"), h = ce("gap"), p = ce("gradientColorStops"), m = ce("gradientColorStopPositions"), v = ce("inset"), g = ce("margin"), x = ce("opacity"), S = ce("padding"), I = ce("saturate"), E = ce("scale"), C = ce("sepia"), k = ce("skew"), L = ce("space"), P = ce("translate"), N = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", G, t], A = () => [G, t], M = () => ["", Qe, mt], D = () => ["auto", qt, G], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], te = () => ["", "0", G], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [qt, G];
|
|
1238
1238
|
return {
|
|
1239
1239
|
cacheSize: 500,
|
|
1240
1240
|
separator: ":",
|
|
@@ -1245,25 +1245,25 @@ const ce = (e) => {
|
|
|
1245
1245
|
brightness: me(),
|
|
1246
1246
|
borderColor: [e],
|
|
1247
1247
|
borderRadius: ["none", "", "full", gt, G],
|
|
1248
|
-
borderSpacing:
|
|
1249
|
-
borderWidth:
|
|
1248
|
+
borderSpacing: A(),
|
|
1249
|
+
borderWidth: M(),
|
|
1250
1250
|
contrast: me(),
|
|
1251
1251
|
grayscale: te(),
|
|
1252
1252
|
hueRotate: me(),
|
|
1253
1253
|
invert: te(),
|
|
1254
|
-
gap:
|
|
1254
|
+
gap: A(),
|
|
1255
1255
|
gradientColorStops: [e],
|
|
1256
1256
|
gradientColorStopPositions: [Cv, mt],
|
|
1257
1257
|
inset: w(),
|
|
1258
1258
|
margin: w(),
|
|
1259
1259
|
opacity: me(),
|
|
1260
|
-
padding:
|
|
1260
|
+
padding: A(),
|
|
1261
1261
|
saturate: me(),
|
|
1262
1262
|
scale: me(),
|
|
1263
1263
|
sepia: te(),
|
|
1264
1264
|
skew: me(),
|
|
1265
|
-
space:
|
|
1266
|
-
translate:
|
|
1265
|
+
space: A(),
|
|
1266
|
+
translate: A()
|
|
1267
1267
|
},
|
|
1268
1268
|
classGroups: {
|
|
1269
1269
|
// Layout
|
|
@@ -1364,21 +1364,21 @@ const ce = (e) => {
|
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/overflow
|
|
1365
1365
|
*/
|
|
1366
1366
|
overflow: [{
|
|
1367
|
-
overflow:
|
|
1367
|
+
overflow: $()
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Overflow X
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/overflow
|
|
1372
1372
|
*/
|
|
1373
1373
|
"overflow-x": [{
|
|
1374
|
-
"overflow-x":
|
|
1374
|
+
"overflow-x": $()
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Overflow Y
|
|
1378
1378
|
* @see https://tailwindcss.com/docs/overflow
|
|
1379
1379
|
*/
|
|
1380
1380
|
"overflow-y": [{
|
|
1381
|
-
"overflow-y":
|
|
1381
|
+
"overflow-y": $()
|
|
1382
1382
|
}],
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Overscroll Behavior
|
|
@@ -1411,63 +1411,63 @@ const ce = (e) => {
|
|
|
1411
1411
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1412
1412
|
*/
|
|
1413
1413
|
inset: [{
|
|
1414
|
-
inset: [
|
|
1414
|
+
inset: [v]
|
|
1415
1415
|
}],
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Right / Left
|
|
1418
1418
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1419
1419
|
*/
|
|
1420
1420
|
"inset-x": [{
|
|
1421
|
-
"inset-x": [
|
|
1421
|
+
"inset-x": [v]
|
|
1422
1422
|
}],
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Top / Bottom
|
|
1425
1425
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1426
1426
|
*/
|
|
1427
1427
|
"inset-y": [{
|
|
1428
|
-
"inset-y": [
|
|
1428
|
+
"inset-y": [v]
|
|
1429
1429
|
}],
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Start
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1433
1433
|
*/
|
|
1434
1434
|
start: [{
|
|
1435
|
-
start: [
|
|
1435
|
+
start: [v]
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* End
|
|
1439
1439
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1440
1440
|
*/
|
|
1441
1441
|
end: [{
|
|
1442
|
-
end: [
|
|
1442
|
+
end: [v]
|
|
1443
1443
|
}],
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Top
|
|
1446
1446
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1447
1447
|
*/
|
|
1448
1448
|
top: [{
|
|
1449
|
-
top: [
|
|
1449
|
+
top: [v]
|
|
1450
1450
|
}],
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Right
|
|
1453
1453
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1454
1454
|
*/
|
|
1455
1455
|
right: [{
|
|
1456
|
-
right: [
|
|
1456
|
+
right: [v]
|
|
1457
1457
|
}],
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Bottom
|
|
1460
1460
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1461
1461
|
*/
|
|
1462
1462
|
bottom: [{
|
|
1463
|
-
bottom: [
|
|
1463
|
+
bottom: [v]
|
|
1464
1464
|
}],
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Left
|
|
1467
1467
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1468
1468
|
*/
|
|
1469
1469
|
left: [{
|
|
1470
|
-
left: [
|
|
1470
|
+
left: [v]
|
|
1471
1471
|
}],
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Visibility
|
|
@@ -1765,70 +1765,70 @@ const ce = (e) => {
|
|
|
1765
1765
|
* @see https://tailwindcss.com/docs/margin
|
|
1766
1766
|
*/
|
|
1767
1767
|
m: [{
|
|
1768
|
-
m: [
|
|
1768
|
+
m: [g]
|
|
1769
1769
|
}],
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Margin X
|
|
1772
1772
|
* @see https://tailwindcss.com/docs/margin
|
|
1773
1773
|
*/
|
|
1774
1774
|
mx: [{
|
|
1775
|
-
mx: [
|
|
1775
|
+
mx: [g]
|
|
1776
1776
|
}],
|
|
1777
1777
|
/**
|
|
1778
1778
|
* Margin Y
|
|
1779
1779
|
* @see https://tailwindcss.com/docs/margin
|
|
1780
1780
|
*/
|
|
1781
1781
|
my: [{
|
|
1782
|
-
my: [
|
|
1782
|
+
my: [g]
|
|
1783
1783
|
}],
|
|
1784
1784
|
/**
|
|
1785
1785
|
* Margin Start
|
|
1786
1786
|
* @see https://tailwindcss.com/docs/margin
|
|
1787
1787
|
*/
|
|
1788
1788
|
ms: [{
|
|
1789
|
-
ms: [
|
|
1789
|
+
ms: [g]
|
|
1790
1790
|
}],
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Margin End
|
|
1793
1793
|
* @see https://tailwindcss.com/docs/margin
|
|
1794
1794
|
*/
|
|
1795
1795
|
me: [{
|
|
1796
|
-
me: [
|
|
1796
|
+
me: [g]
|
|
1797
1797
|
}],
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Margin Top
|
|
1800
1800
|
* @see https://tailwindcss.com/docs/margin
|
|
1801
1801
|
*/
|
|
1802
1802
|
mt: [{
|
|
1803
|
-
mt: [
|
|
1803
|
+
mt: [g]
|
|
1804
1804
|
}],
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Margin Right
|
|
1807
1807
|
* @see https://tailwindcss.com/docs/margin
|
|
1808
1808
|
*/
|
|
1809
1809
|
mr: [{
|
|
1810
|
-
mr: [
|
|
1810
|
+
mr: [g]
|
|
1811
1811
|
}],
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Margin Bottom
|
|
1814
1814
|
* @see https://tailwindcss.com/docs/margin
|
|
1815
1815
|
*/
|
|
1816
1816
|
mb: [{
|
|
1817
|
-
mb: [
|
|
1817
|
+
mb: [g]
|
|
1818
1818
|
}],
|
|
1819
1819
|
/**
|
|
1820
1820
|
* Margin Left
|
|
1821
1821
|
* @see https://tailwindcss.com/docs/margin
|
|
1822
1822
|
*/
|
|
1823
1823
|
ml: [{
|
|
1824
|
-
ml: [
|
|
1824
|
+
ml: [g]
|
|
1825
1825
|
}],
|
|
1826
1826
|
/**
|
|
1827
1827
|
* Space Between X
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/space
|
|
1829
1829
|
*/
|
|
1830
1830
|
"space-x": [{
|
|
1831
|
-
"space-x": [
|
|
1831
|
+
"space-x": [L]
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Space Between X Reverse
|
|
@@ -1840,7 +1840,7 @@ const ce = (e) => {
|
|
|
1840
1840
|
* @see https://tailwindcss.com/docs/space
|
|
1841
1841
|
*/
|
|
1842
1842
|
"space-y": [{
|
|
1843
|
-
"space-y": [
|
|
1843
|
+
"space-y": [L]
|
|
1844
1844
|
}],
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Space Between Y Reverse
|
|
@@ -2094,7 +2094,7 @@ const ce = (e) => {
|
|
|
2094
2094
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2095
2095
|
*/
|
|
2096
2096
|
indent: [{
|
|
2097
|
-
indent:
|
|
2097
|
+
indent: A()
|
|
2098
2098
|
}],
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Vertical Alignment
|
|
@@ -2566,7 +2566,7 @@ const ce = (e) => {
|
|
|
2566
2566
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2567
2567
|
*/
|
|
2568
2568
|
"ring-w": [{
|
|
2569
|
-
ring:
|
|
2569
|
+
ring: M()
|
|
2570
2570
|
}],
|
|
2571
2571
|
/**
|
|
2572
2572
|
* Ring Width Inset
|
|
@@ -2700,14 +2700,14 @@ const ce = (e) => {
|
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/saturate
|
|
2701
2701
|
*/
|
|
2702
2702
|
saturate: [{
|
|
2703
|
-
saturate: [
|
|
2703
|
+
saturate: [I]
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Sepia
|
|
2707
2707
|
* @see https://tailwindcss.com/docs/sepia
|
|
2708
2708
|
*/
|
|
2709
2709
|
sepia: [{
|
|
2710
|
-
sepia: [
|
|
2710
|
+
sepia: [C]
|
|
2711
2711
|
}],
|
|
2712
2712
|
/**
|
|
2713
2713
|
* Backdrop Filter
|
|
@@ -2771,14 +2771,14 @@ const ce = (e) => {
|
|
|
2771
2771
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2772
2772
|
*/
|
|
2773
2773
|
"backdrop-saturate": [{
|
|
2774
|
-
"backdrop-saturate": [
|
|
2774
|
+
"backdrop-saturate": [I]
|
|
2775
2775
|
}],
|
|
2776
2776
|
/**
|
|
2777
2777
|
* Backdrop Sepia
|
|
2778
2778
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2779
2779
|
*/
|
|
2780
2780
|
"backdrop-sepia": [{
|
|
2781
|
-
"backdrop-sepia": [
|
|
2781
|
+
"backdrop-sepia": [C]
|
|
2782
2782
|
}],
|
|
2783
2783
|
// Tables
|
|
2784
2784
|
/**
|
|
@@ -2872,21 +2872,21 @@ const ce = (e) => {
|
|
|
2872
2872
|
* @see https://tailwindcss.com/docs/scale
|
|
2873
2873
|
*/
|
|
2874
2874
|
scale: [{
|
|
2875
|
-
scale: [
|
|
2875
|
+
scale: [E]
|
|
2876
2876
|
}],
|
|
2877
2877
|
/**
|
|
2878
2878
|
* Scale X
|
|
2879
2879
|
* @see https://tailwindcss.com/docs/scale
|
|
2880
2880
|
*/
|
|
2881
2881
|
"scale-x": [{
|
|
2882
|
-
"scale-x": [
|
|
2882
|
+
"scale-x": [E]
|
|
2883
2883
|
}],
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Scale Y
|
|
2886
2886
|
* @see https://tailwindcss.com/docs/scale
|
|
2887
2887
|
*/
|
|
2888
2888
|
"scale-y": [{
|
|
2889
|
-
"scale-y": [
|
|
2889
|
+
"scale-y": [E]
|
|
2890
2890
|
}],
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Rotate
|
|
@@ -2900,28 +2900,28 @@ const ce = (e) => {
|
|
|
2900
2900
|
* @see https://tailwindcss.com/docs/translate
|
|
2901
2901
|
*/
|
|
2902
2902
|
"translate-x": [{
|
|
2903
|
-
"translate-x": [
|
|
2903
|
+
"translate-x": [P]
|
|
2904
2904
|
}],
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Translate Y
|
|
2907
2907
|
* @see https://tailwindcss.com/docs/translate
|
|
2908
2908
|
*/
|
|
2909
2909
|
"translate-y": [{
|
|
2910
|
-
"translate-y": [
|
|
2910
|
+
"translate-y": [P]
|
|
2911
2911
|
}],
|
|
2912
2912
|
/**
|
|
2913
2913
|
* Skew X
|
|
2914
2914
|
* @see https://tailwindcss.com/docs/skew
|
|
2915
2915
|
*/
|
|
2916
2916
|
"skew-x": [{
|
|
2917
|
-
"skew-x": [
|
|
2917
|
+
"skew-x": [k]
|
|
2918
2918
|
}],
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Skew Y
|
|
2921
2921
|
* @see https://tailwindcss.com/docs/skew
|
|
2922
2922
|
*/
|
|
2923
2923
|
"skew-y": [{
|
|
2924
|
-
"skew-y": [
|
|
2924
|
+
"skew-y": [k]
|
|
2925
2925
|
}],
|
|
2926
2926
|
/**
|
|
2927
2927
|
* Transform Origin
|
|
@@ -2985,126 +2985,126 @@ const ce = (e) => {
|
|
|
2985
2985
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2986
2986
|
*/
|
|
2987
2987
|
"scroll-m": [{
|
|
2988
|
-
"scroll-m":
|
|
2988
|
+
"scroll-m": A()
|
|
2989
2989
|
}],
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Scroll Margin X
|
|
2992
2992
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2993
2993
|
*/
|
|
2994
2994
|
"scroll-mx": [{
|
|
2995
|
-
"scroll-mx":
|
|
2995
|
+
"scroll-mx": A()
|
|
2996
2996
|
}],
|
|
2997
2997
|
/**
|
|
2998
2998
|
* Scroll Margin Y
|
|
2999
2999
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3000
3000
|
*/
|
|
3001
3001
|
"scroll-my": [{
|
|
3002
|
-
"scroll-my":
|
|
3002
|
+
"scroll-my": A()
|
|
3003
3003
|
}],
|
|
3004
3004
|
/**
|
|
3005
3005
|
* Scroll Margin Start
|
|
3006
3006
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3007
3007
|
*/
|
|
3008
3008
|
"scroll-ms": [{
|
|
3009
|
-
"scroll-ms":
|
|
3009
|
+
"scroll-ms": A()
|
|
3010
3010
|
}],
|
|
3011
3011
|
/**
|
|
3012
3012
|
* Scroll Margin End
|
|
3013
3013
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3014
3014
|
*/
|
|
3015
3015
|
"scroll-me": [{
|
|
3016
|
-
"scroll-me":
|
|
3016
|
+
"scroll-me": A()
|
|
3017
3017
|
}],
|
|
3018
3018
|
/**
|
|
3019
3019
|
* Scroll Margin Top
|
|
3020
3020
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3021
3021
|
*/
|
|
3022
3022
|
"scroll-mt": [{
|
|
3023
|
-
"scroll-mt":
|
|
3023
|
+
"scroll-mt": A()
|
|
3024
3024
|
}],
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Scroll Margin Right
|
|
3027
3027
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3028
3028
|
*/
|
|
3029
3029
|
"scroll-mr": [{
|
|
3030
|
-
"scroll-mr":
|
|
3030
|
+
"scroll-mr": A()
|
|
3031
3031
|
}],
|
|
3032
3032
|
/**
|
|
3033
3033
|
* Scroll Margin Bottom
|
|
3034
3034
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3035
3035
|
*/
|
|
3036
3036
|
"scroll-mb": [{
|
|
3037
|
-
"scroll-mb":
|
|
3037
|
+
"scroll-mb": A()
|
|
3038
3038
|
}],
|
|
3039
3039
|
/**
|
|
3040
3040
|
* Scroll Margin Left
|
|
3041
3041
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3042
3042
|
*/
|
|
3043
3043
|
"scroll-ml": [{
|
|
3044
|
-
"scroll-ml":
|
|
3044
|
+
"scroll-ml": A()
|
|
3045
3045
|
}],
|
|
3046
3046
|
/**
|
|
3047
3047
|
* Scroll Padding
|
|
3048
3048
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3049
3049
|
*/
|
|
3050
3050
|
"scroll-p": [{
|
|
3051
|
-
"scroll-p":
|
|
3051
|
+
"scroll-p": A()
|
|
3052
3052
|
}],
|
|
3053
3053
|
/**
|
|
3054
3054
|
* Scroll Padding X
|
|
3055
3055
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3056
3056
|
*/
|
|
3057
3057
|
"scroll-px": [{
|
|
3058
|
-
"scroll-px":
|
|
3058
|
+
"scroll-px": A()
|
|
3059
3059
|
}],
|
|
3060
3060
|
/**
|
|
3061
3061
|
* Scroll Padding Y
|
|
3062
3062
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3063
3063
|
*/
|
|
3064
3064
|
"scroll-py": [{
|
|
3065
|
-
"scroll-py":
|
|
3065
|
+
"scroll-py": A()
|
|
3066
3066
|
}],
|
|
3067
3067
|
/**
|
|
3068
3068
|
* Scroll Padding Start
|
|
3069
3069
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3070
3070
|
*/
|
|
3071
3071
|
"scroll-ps": [{
|
|
3072
|
-
"scroll-ps":
|
|
3072
|
+
"scroll-ps": A()
|
|
3073
3073
|
}],
|
|
3074
3074
|
/**
|
|
3075
3075
|
* Scroll Padding End
|
|
3076
3076
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3077
3077
|
*/
|
|
3078
3078
|
"scroll-pe": [{
|
|
3079
|
-
"scroll-pe":
|
|
3079
|
+
"scroll-pe": A()
|
|
3080
3080
|
}],
|
|
3081
3081
|
/**
|
|
3082
3082
|
* Scroll Padding Top
|
|
3083
3083
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3084
3084
|
*/
|
|
3085
3085
|
"scroll-pt": [{
|
|
3086
|
-
"scroll-pt":
|
|
3086
|
+
"scroll-pt": A()
|
|
3087
3087
|
}],
|
|
3088
3088
|
/**
|
|
3089
3089
|
* Scroll Padding Right
|
|
3090
3090
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3091
3091
|
*/
|
|
3092
3092
|
"scroll-pr": [{
|
|
3093
|
-
"scroll-pr":
|
|
3093
|
+
"scroll-pr": A()
|
|
3094
3094
|
}],
|
|
3095
3095
|
/**
|
|
3096
3096
|
* Scroll Padding Bottom
|
|
3097
3097
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3098
3098
|
*/
|
|
3099
3099
|
"scroll-pb": [{
|
|
3100
|
-
"scroll-pb":
|
|
3100
|
+
"scroll-pb": A()
|
|
3101
3101
|
}],
|
|
3102
3102
|
/**
|
|
3103
3103
|
* Scroll Padding Left
|
|
3104
3104
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3105
3105
|
*/
|
|
3106
3106
|
"scroll-pl": [{
|
|
3107
|
-
"scroll-pl":
|
|
3107
|
+
"scroll-pl": A()
|
|
3108
3108
|
}],
|
|
3109
3109
|
/**
|
|
3110
3110
|
* Scroll Snap Align
|
|
@@ -3294,8 +3294,8 @@ const F = ir.forwardRef(
|
|
|
3294
3294
|
asChild: h = !1,
|
|
3295
3295
|
upload: p = !1,
|
|
3296
3296
|
initialDisplayedColor: m = void 0,
|
|
3297
|
-
...
|
|
3298
|
-
} = e,
|
|
3297
|
+
...v
|
|
3298
|
+
} = e, g = id[r];
|
|
3299
3299
|
return /* @__PURE__ */ T($d, { children: [
|
|
3300
3300
|
/* @__PURE__ */ l(_d, { asChild: !0, children: /* @__PURE__ */ T(
|
|
3301
3301
|
h ? lu : Ld,
|
|
@@ -3306,9 +3306,9 @@ const F = ir.forwardRef(
|
|
|
3306
3306
|
size: "sm",
|
|
3307
3307
|
className: Q("richtext-w-[32px] richtext-h-[32px]", o),
|
|
3308
3308
|
disabled: i,
|
|
3309
|
-
...
|
|
3309
|
+
...v,
|
|
3310
3310
|
children: [
|
|
3311
|
-
|
|
3311
|
+
g && /* @__PURE__ */ l(g, { className: "richtext-size-4" }),
|
|
3312
3312
|
d
|
|
3313
3313
|
]
|
|
3314
3314
|
}
|
|
@@ -3754,12 +3754,12 @@ function Zv(e, t) {
|
|
|
3754
3754
|
const { doc: r } = t.view.state, n = rd({ editor: t, x: e.clientX, y: e.clientY, direction: "right" });
|
|
3755
3755
|
if (!n.resultNode || n.pos === null) return [];
|
|
3756
3756
|
const i = e.clientX, o = function(f, d, h) {
|
|
3757
|
-
const p = Number.parseInt(Br(f.dom, "paddingLeft"), 10), m = Number.parseInt(Br(f.dom, "paddingRight"), 10),
|
|
3757
|
+
const p = Number.parseInt(Br(f.dom, "paddingLeft"), 10), m = Number.parseInt(Br(f.dom, "paddingRight"), 10), v = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), g = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), x = f.dom.getBoundingClientRect();
|
|
3758
3758
|
return {
|
|
3759
3759
|
left: Jv(
|
|
3760
3760
|
d,
|
|
3761
|
-
x.left + p +
|
|
3762
|
-
x.right - m -
|
|
3761
|
+
x.left + p + v,
|
|
3762
|
+
x.right - m - g
|
|
3763
3763
|
),
|
|
3764
3764
|
top: h
|
|
3765
3765
|
};
|
|
@@ -3801,13 +3801,13 @@ function Qv({
|
|
|
3801
3801
|
return t.addEventListener("dragstart", (f) => {
|
|
3802
3802
|
const { view: d } = r;
|
|
3803
3803
|
if (!f.dataTransfer) return;
|
|
3804
|
-
const { empty: h, $from: p, $to: m } = d.state.selection,
|
|
3804
|
+
const { empty: h, $from: p, $to: m } = d.state.selection, v = Zv(f, r), g = Ha(p, m, 0), x = g.some((N) => v.find(($) => $.$from === N.$from && $.$to === N.$to)), S = h || !x ? v : g;
|
|
3805
3805
|
if (S.length === 0) return;
|
|
3806
|
-
const { tr:
|
|
3806
|
+
const { tr: I } = d.state, E = document.createElement("div"), C = S[0].$from.pos, k = S[S.length - 1].$to.pos, L = Ue.create(d.state.doc, C, k), P = L.content();
|
|
3807
3807
|
S.forEach((N) => {
|
|
3808
|
-
const
|
|
3809
|
-
|
|
3810
|
-
}),
|
|
3808
|
+
const $ = Xv(d.nodeDOM(N.$from.pos));
|
|
3809
|
+
E.append($);
|
|
3810
|
+
}), E.style.position = "absolute", E.style.top = "-10000px", document.body.append(E), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(E, 0, 0), d.dragging = { slice: P, move: !0 }, I.setSelection(L), d.dispatch(I), document.addEventListener("drop", () => rc(E), { once: !0 }), setTimeout(() => {
|
|
3811
3811
|
t && (t.style.pointerEvents = "none");
|
|
3812
3812
|
}, 0);
|
|
3813
3813
|
}), t.addEventListener("dragend", () => {
|
|
@@ -3832,22 +3832,22 @@ function Qv({
|
|
|
3832
3832
|
...p(),
|
|
3833
3833
|
...n
|
|
3834
3834
|
}), {
|
|
3835
|
-
update(
|
|
3836
|
-
if (!m(t, a) || (t.draggable = !s, !
|
|
3835
|
+
update(E, C) {
|
|
3836
|
+
if (!m(t, a) || (t.draggable = !s, !v(E, C)))
|
|
3837
3837
|
return;
|
|
3838
|
-
const
|
|
3839
|
-
|
|
3838
|
+
const k = g(E);
|
|
3839
|
+
k && x(E, k);
|
|
3840
3840
|
},
|
|
3841
3841
|
destroy() {
|
|
3842
|
-
|
|
3842
|
+
I();
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
3845
|
function d() {
|
|
3846
3846
|
t.draggable = !0, t.style.pointerEvents = "auto";
|
|
3847
3847
|
}
|
|
3848
|
-
function h(
|
|
3849
|
-
var
|
|
3850
|
-
(
|
|
3848
|
+
function h(E) {
|
|
3849
|
+
var C;
|
|
3850
|
+
(C = E.parentElement) == null || C.appendChild(o), o.appendChild(t), Object.assign(o.style, {
|
|
3851
3851
|
pointerEvents: "none",
|
|
3852
3852
|
position: "absolute",
|
|
3853
3853
|
top: "0",
|
|
@@ -3879,33 +3879,33 @@ function Qv({
|
|
|
3879
3879
|
}
|
|
3880
3880
|
};
|
|
3881
3881
|
}
|
|
3882
|
-
function m(
|
|
3883
|
-
return
|
|
3882
|
+
function m(E, C) {
|
|
3883
|
+
return E && C;
|
|
3884
3884
|
}
|
|
3885
|
-
function
|
|
3886
|
-
return !
|
|
3885
|
+
function v(E, C) {
|
|
3886
|
+
return !E.state.doc.eq(C.doc) && u !== -1;
|
|
3887
3887
|
}
|
|
3888
|
-
function
|
|
3889
|
-
let
|
|
3890
|
-
return
|
|
3888
|
+
function g(E) {
|
|
3889
|
+
let C = E.nodeDOM(u);
|
|
3890
|
+
return C = oc(E, C), C === E.dom || (C == null ? void 0 : C.nodeType) !== 1 ? null : C;
|
|
3891
3891
|
}
|
|
3892
|
-
function x(
|
|
3893
|
-
const
|
|
3894
|
-
if (
|
|
3892
|
+
function x(E, C) {
|
|
3893
|
+
const k = E.posAtDOM(C, 0), L = ic(r.state.doc, k);
|
|
3894
|
+
if (L === c)
|
|
3895
3895
|
return;
|
|
3896
|
-
const
|
|
3897
|
-
c =
|
|
3896
|
+
const P = nc(r.state.doc, k);
|
|
3897
|
+
c = L, u = P, i == null || i({
|
|
3898
3898
|
editor: r,
|
|
3899
3899
|
node: c,
|
|
3900
3900
|
pos: u
|
|
3901
|
-
}), S(
|
|
3901
|
+
}), S(C);
|
|
3902
3902
|
}
|
|
3903
|
-
function S(
|
|
3903
|
+
function S(E) {
|
|
3904
3904
|
a.setProps({
|
|
3905
|
-
getReferenceClientRect: () =>
|
|
3905
|
+
getReferenceClientRect: () => E.getBoundingClientRect()
|
|
3906
3906
|
}), a.show();
|
|
3907
3907
|
}
|
|
3908
|
-
function
|
|
3908
|
+
function I() {
|
|
3909
3909
|
a == null || a.destroy(), t && rc(o);
|
|
3910
3910
|
}
|
|
3911
3911
|
},
|
|
@@ -3914,8 +3914,8 @@ function Qv({
|
|
|
3914
3914
|
mouseleave: (f, d) => {
|
|
3915
3915
|
if (s || !h(d)) return !1;
|
|
3916
3916
|
return p(), m(), !1;
|
|
3917
|
-
function h(
|
|
3918
|
-
return
|
|
3917
|
+
function h(v) {
|
|
3918
|
+
return v.target && !o.contains(v.relatedTarget);
|
|
3919
3919
|
}
|
|
3920
3920
|
function p() {
|
|
3921
3921
|
a == null || a.hide();
|
|
@@ -3942,11 +3942,11 @@ function Qv({
|
|
|
3942
3942
|
const p = oc(f, h.resultElement);
|
|
3943
3943
|
if (p === f.dom || (p == null ? void 0 : p.nodeType) !== 1)
|
|
3944
3944
|
return !1;
|
|
3945
|
-
const m = f.posAtDOM(p, 0),
|
|
3946
|
-
if (
|
|
3945
|
+
const m = f.posAtDOM(p, 0), v = ic(r.state.doc, m);
|
|
3946
|
+
if (v === c)
|
|
3947
3947
|
return !1;
|
|
3948
|
-
const
|
|
3949
|
-
return c =
|
|
3948
|
+
const g = nc(r.state.doc, m);
|
|
3949
|
+
return c = v, u = g, i == null || i({
|
|
3950
3950
|
editor: r,
|
|
3951
3951
|
node: c,
|
|
3952
3952
|
pos: u
|
|
@@ -3995,7 +3995,7 @@ function xw({ delta: e, types: t }) {
|
|
|
3995
3995
|
};
|
|
3996
3996
|
}
|
|
3997
3997
|
function ry(e) {
|
|
3998
|
-
var
|
|
3998
|
+
var P, N, $;
|
|
3999
3999
|
const { pluginKey: t = nd } = e, { t: r } = Se(), [n, i] = X(null), [o, a] = X(-1), s = ot(null), c = ot(null), [u, f] = X(!1), d = e.editor.extensionManager.extensions.some((w) => w.name === "textAlign"), h = e.editor.extensionManager.extensions.some((w) => w.name === "indent"), p = e.editor.extensionManager.extensions.some((w) => w.name === "clear");
|
|
4000
4000
|
pe(() => {
|
|
4001
4001
|
s.current && !e.editor.isDestroyed && (c.current = Qv({
|
|
@@ -4007,20 +4007,20 @@ function ry(e) {
|
|
|
4007
4007
|
zIndex: 99,
|
|
4008
4008
|
moveTransition: "transform 0.15s ease-out"
|
|
4009
4009
|
},
|
|
4010
|
-
onNodeChange:
|
|
4010
|
+
onNodeChange: C
|
|
4011
4011
|
}), e.editor.registerPlugin(c.current));
|
|
4012
4012
|
}, [e.editor, s]);
|
|
4013
4013
|
function m() {
|
|
4014
4014
|
const w = e.editor.chain();
|
|
4015
4015
|
w.setNodeSelection(o).unsetAllMarks(), (n == null ? void 0 : n.type.name) !== "paragraph" && w.setParagraph(), w.run();
|
|
4016
4016
|
}
|
|
4017
|
-
function
|
|
4017
|
+
function v() {
|
|
4018
4018
|
e.editor.chain().focus().setNodeSelection(o).run(), document.execCommand("copy");
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function g() {
|
|
4021
4021
|
e.editor.commands.setNodeSelection(o);
|
|
4022
|
-
const { $anchor: w } = e.editor.state.selection,
|
|
4023
|
-
e.editor.chain().setMeta("hideDragHandle", !0).insertContentAt(o + ((n == null ? void 0 : n.nodeSize) || 0),
|
|
4022
|
+
const { $anchor: w } = e.editor.state.selection, A = w.node(1) || e.editor.state.selection.node;
|
|
4023
|
+
e.editor.chain().setMeta("hideDragHandle", !0).insertContentAt(o + ((n == null ? void 0 : n.nodeSize) || 0), A.toJSON()).run();
|
|
4024
4024
|
}
|
|
4025
4025
|
function x(w) {
|
|
4026
4026
|
e.editor.commands.setTextAlign(w);
|
|
@@ -4029,22 +4029,22 @@ function ry(e) {
|
|
|
4029
4029
|
const w = va(e.editor.state.tr, o, 1);
|
|
4030
4030
|
w.setMeta("hideDragHandle", !0), e.editor.view.dispatch && e.editor.view.dispatch(w);
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4032
|
+
function I() {
|
|
4033
4033
|
const w = va(e.editor.state.tr, o, -1);
|
|
4034
4034
|
e.editor.view.dispatch && e.editor.view.dispatch(w);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4036
|
+
function E() {
|
|
4037
4037
|
e.editor.chain().setMeta("hideDragHandle", !0).setNodeSelection(o).deleteSelection().run();
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function C(w) {
|
|
4040
4040
|
w.node && i(w.node), a(w.pos);
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function k() {
|
|
4043
4043
|
var w;
|
|
4044
4044
|
if (o !== -1) {
|
|
4045
|
-
const
|
|
4045
|
+
const A = (n == null ? void 0 : n.nodeSize) || 0, M = o + A, D = (n == null ? void 0 : n.type.name) === "paragraph" && ((w = n == null ? void 0 : n.content) == null ? void 0 : w.size) === 0, H = D ? o + 2 : M + 2;
|
|
4046
4046
|
e.editor.chain().command(({ dispatch: j, tr: ee, state: Z }) => j ? (D ? ee.insertText("/", o, o + 1) : ee.insert(
|
|
4047
|
-
|
|
4047
|
+
M,
|
|
4048
4048
|
Z.schema.nodes.paragraph.create(null, [Z.schema.text("/")])
|
|
4049
4049
|
), j(ee)) : !0).focus(H).run();
|
|
4050
4050
|
}
|
|
@@ -4056,8 +4056,8 @@ function ry(e) {
|
|
|
4056
4056
|
}, []), pe(() => {
|
|
4057
4057
|
var w;
|
|
4058
4058
|
(w = e.editor) != null && w.isDestroyed && c.current && (e.editor.unregisterPlugin(t), c.current = null);
|
|
4059
|
-
}, [(
|
|
4060
|
-
const
|
|
4059
|
+
}, [(P = e.editor) == null ? void 0 : P.isDestroyed]);
|
|
4060
|
+
const L = (w) => {
|
|
4061
4061
|
e != null && e.disabled || f(w);
|
|
4062
4062
|
};
|
|
4063
4063
|
return /* @__PURE__ */ l(
|
|
@@ -4074,7 +4074,7 @@ function ry(e) {
|
|
|
4074
4074
|
{
|
|
4075
4075
|
className: "!richtext-size-7 richtext-cursor-grab",
|
|
4076
4076
|
disabled: e == null ? void 0 : e.disabled,
|
|
4077
|
-
onClick:
|
|
4077
|
+
onClick: k,
|
|
4078
4078
|
size: "icon",
|
|
4079
4079
|
type: "button",
|
|
4080
4080
|
variant: "ghost",
|
|
@@ -4090,7 +4090,7 @@ function ry(e) {
|
|
|
4090
4090
|
/* @__PURE__ */ T(
|
|
4091
4091
|
Vx,
|
|
4092
4092
|
{
|
|
4093
|
-
onOpenChange:
|
|
4093
|
+
onOpenChange: L,
|
|
4094
4094
|
open: u,
|
|
4095
4095
|
children: [
|
|
4096
4096
|
/* @__PURE__ */ T("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: [
|
|
@@ -4138,7 +4138,7 @@ function ry(e) {
|
|
|
4138
4138
|
He,
|
|
4139
4139
|
{
|
|
4140
4140
|
className: "richtext-flex richtext-gap-3 richtext-bg-opacity-10 hover:richtext-bg-red-400 hover:richtext-bg-opacity-20 focus:richtext-bg-red-400 focus:richtext-bg-opacity-30 focus:richtext-text-red-500 dark:hover:richtext-bg-opacity-20 dark:hover:richtext-text-red-500",
|
|
4141
|
-
onClick:
|
|
4141
|
+
onClick: E,
|
|
4142
4142
|
children: [
|
|
4143
4143
|
/* @__PURE__ */ l(ve, { name: "Trash2" }),
|
|
4144
4144
|
/* @__PURE__ */ l("span", { children: r("editor.remove") })
|
|
@@ -4160,7 +4160,7 @@ function ry(e) {
|
|
|
4160
4160
|
He,
|
|
4161
4161
|
{
|
|
4162
4162
|
className: "richtext-flex richtext-gap-3",
|
|
4163
|
-
onClick:
|
|
4163
|
+
onClick: v,
|
|
4164
4164
|
children: [
|
|
4165
4165
|
/* @__PURE__ */ l(ve, { name: "Clipboard" }),
|
|
4166
4166
|
/* @__PURE__ */ l("span", { children: r("editor.copyToClipboard") })
|
|
@@ -4171,7 +4171,7 @@ function ry(e) {
|
|
|
4171
4171
|
He,
|
|
4172
4172
|
{
|
|
4173
4173
|
className: "richtext-flex richtext-gap-3",
|
|
4174
|
-
onClick:
|
|
4174
|
+
onClick: g,
|
|
4175
4175
|
children: [
|
|
4176
4176
|
/* @__PURE__ */ l(ve, { name: "Copy" }),
|
|
4177
4177
|
/* @__PURE__ */ l("span", { children: r("editor.copy") })
|
|
@@ -4242,8 +4242,8 @@ function ry(e) {
|
|
|
4242
4242
|
He,
|
|
4243
4243
|
{
|
|
4244
4244
|
className: "richtext-flex richtext-gap-3",
|
|
4245
|
-
disabled: ((
|
|
4246
|
-
onClick:
|
|
4245
|
+
disabled: (($ = n == null ? void 0 : n.attrs) == null ? void 0 : $.indent) <= ga.min,
|
|
4246
|
+
onClick: I,
|
|
4247
4247
|
children: [
|
|
4248
4248
|
/* @__PURE__ */ l(ve, { name: "IndentDecrease" }),
|
|
4249
4249
|
/* @__PURE__ */ l("span", { children: r("editor.outdent.tooltip") })
|
|
@@ -4752,7 +4752,7 @@ function Py(e) {
|
|
|
4752
4752
|
] });
|
|
4753
4753
|
}
|
|
4754
4754
|
function Ny({ editor: e, disabled: t, actions: r }) {
|
|
4755
|
-
var
|
|
4755
|
+
var g, x, S, I, E, C, k, L, P, N, $, w, A, M, D, H, j, ee;
|
|
4756
4756
|
const n = ({ editor: Z }) => ap(Z.view.state, "table"), { t: i } = Se();
|
|
4757
4757
|
function o() {
|
|
4758
4758
|
e.chain().focus().addColumnBefore().run();
|
|
@@ -4818,7 +4818,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4818
4818
|
F,
|
|
4819
4819
|
{
|
|
4820
4820
|
action: o,
|
|
4821
|
-
disabled: !((x = (
|
|
4821
|
+
disabled: !((x = (g = e == null ? void 0 : e.can()) == null ? void 0 : g.addColumnBefore) != null && x.call(g)),
|
|
4822
4822
|
icon: "BetweenHorizonalEnd",
|
|
4823
4823
|
tooltip: i("editor.table.menu.insertColumnBefore"),
|
|
4824
4824
|
"tooltip-options": {
|
|
@@ -4830,7 +4830,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4830
4830
|
F,
|
|
4831
4831
|
{
|
|
4832
4832
|
action: a,
|
|
4833
|
-
disabled: !((
|
|
4833
|
+
disabled: !((I = (S = e == null ? void 0 : e.can()) == null ? void 0 : S.addColumnAfter) != null && I.call(S)),
|
|
4834
4834
|
icon: "BetweenHorizonalStart",
|
|
4835
4835
|
tooltip: i("editor.table.menu.insertColumnAfter"),
|
|
4836
4836
|
"tooltip-options": {
|
|
@@ -4842,7 +4842,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4842
4842
|
F,
|
|
4843
4843
|
{
|
|
4844
4844
|
action: s,
|
|
4845
|
-
disabled: !((
|
|
4845
|
+
disabled: !((C = e == null ? void 0 : (E = e.can()).deleteColumn) != null && C.call(E)),
|
|
4846
4846
|
icon: "DeleteColumn",
|
|
4847
4847
|
tooltip: i("editor.table.menu.deleteColumn"),
|
|
4848
4848
|
"tooltip-options": {
|
|
@@ -4861,7 +4861,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4861
4861
|
F,
|
|
4862
4862
|
{
|
|
4863
4863
|
action: c,
|
|
4864
|
-
disabled: !((
|
|
4864
|
+
disabled: !((L = e == null ? void 0 : (k = e.can()).addRowBefore) != null && L.call(k)),
|
|
4865
4865
|
icon: "BetweenVerticalEnd",
|
|
4866
4866
|
tooltip: i("editor.table.menu.insertRowAbove"),
|
|
4867
4867
|
"tooltip-options": {
|
|
@@ -4873,7 +4873,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4873
4873
|
F,
|
|
4874
4874
|
{
|
|
4875
4875
|
action: u,
|
|
4876
|
-
disabled: !((N = (
|
|
4876
|
+
disabled: !((N = (P = e == null ? void 0 : e.can()) == null ? void 0 : P.addRowAfter) != null && N.call(P)),
|
|
4877
4877
|
icon: "BetweenVerticalStart",
|
|
4878
4878
|
tooltip: i("editor.table.menu.insertRowBelow"),
|
|
4879
4879
|
"tooltip-options": {
|
|
@@ -4885,7 +4885,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4885
4885
|
F,
|
|
4886
4886
|
{
|
|
4887
4887
|
action: f,
|
|
4888
|
-
disabled: !((w = (
|
|
4888
|
+
disabled: !((w = ($ = e == null ? void 0 : e.can()) == null ? void 0 : $.deleteRow) != null && w.call($)),
|
|
4889
4889
|
icon: "DeleteRow",
|
|
4890
4890
|
tooltip: i("editor.table.menu.deleteRow"),
|
|
4891
4891
|
"tooltip-options": {
|
|
@@ -4904,7 +4904,7 @@ function Ny({ editor: e, disabled: t, actions: r }) {
|
|
|
4904
4904
|
F,
|
|
4905
4905
|
{
|
|
4906
4906
|
action: d,
|
|
4907
|
-
disabled: !((
|
|
4907
|
+
disabled: !((M = (A = e == null ? void 0 : e.can()) == null ? void 0 : A.mergeCells) != null && M.call(A)),
|
|
4908
4908
|
icon: "TableCellsMerge",
|
|
4909
4909
|
tooltip: i("editor.table.menu.mergeCells"),
|
|
4910
4910
|
"tooltip-options": {
|
|
@@ -5208,10 +5208,10 @@ function zy(e = []) {
|
|
|
5208
5208
|
const h = O(d, jy);
|
|
5209
5209
|
O(h, "#"), he(h, di, d);
|
|
5210
5210
|
const p = [[et, a], [tt, i]], m = [[et, null], [rr, s], [tt, o]];
|
|
5211
|
-
for (let
|
|
5212
|
-
vt(r, jr[
|
|
5213
|
-
for (let
|
|
5214
|
-
vt(r, zr[
|
|
5211
|
+
for (let v = 0; v < jr.length; v++)
|
|
5212
|
+
vt(r, jr[v], Aa, rt, p);
|
|
5213
|
+
for (let v = 0; v < zr.length; v++)
|
|
5214
|
+
vt(r, zr[v], Ca, Sa, m);
|
|
5215
5215
|
Et(Aa, {
|
|
5216
5216
|
tld: !0,
|
|
5217
5217
|
ascii: !0
|
|
@@ -5224,14 +5224,14 @@ function zy(e = []) {
|
|
|
5224
5224
|
}, t), Et(jt, {
|
|
5225
5225
|
slashscheme: !0,
|
|
5226
5226
|
ascii: !0
|
|
5227
|
-
}, t), e = e.sort((
|
|
5228
|
-
for (let
|
|
5229
|
-
const
|
|
5227
|
+
}, t), e = e.sort((v, g) => v[0] > g[0] ? 1 : -1);
|
|
5228
|
+
for (let v = 0; v < e.length; v++) {
|
|
5229
|
+
const g = e[v][0], S = e[v][1] ? {
|
|
5230
5230
|
[Ly]: !0
|
|
5231
5231
|
} : {
|
|
5232
5232
|
[$y]: !0
|
|
5233
5233
|
};
|
|
5234
|
-
|
|
5234
|
+
g.indexOf("-") >= 0 ? S[wa] = !0 : et.test(g) ? tt.test(g) ? S[sr] = !0 : S[xa] = !0 : S[ya] = !0, ac(r, g, g, S);
|
|
5235
5235
|
}
|
|
5236
5236
|
return ac(r, "localhost", xr, {
|
|
5237
5237
|
ascii: !0
|
|
@@ -5548,18 +5548,18 @@ function Fy({
|
|
|
5548
5548
|
K(h, e.tld, p), K(h, e.utld, p), O(u, xr, p);
|
|
5549
5549
|
const m = O(d, Le);
|
|
5550
5550
|
O(m, Le, m), K(m, e.domain, d), K(p, e.domain, d), O(p, qe, h), O(p, Le, m);
|
|
5551
|
-
const
|
|
5552
|
-
K(
|
|
5553
|
-
const
|
|
5554
|
-
O(
|
|
5551
|
+
const v = O(p, bt);
|
|
5552
|
+
K(v, e.numeric, uc);
|
|
5553
|
+
const g = O(a, Le), x = O(a, qe);
|
|
5554
|
+
O(g, Le, g), K(g, e.domain, a), K(x, n, o), K(x, e.domain, a);
|
|
5555
5555
|
const S = Me(Hr);
|
|
5556
|
-
K(x, e.tld, S), K(x, e.utld, S), K(S, e.domain, a), K(S, n, o), O(S, qe, x), O(S, Le,
|
|
5557
|
-
const
|
|
5558
|
-
K(
|
|
5559
|
-
const
|
|
5560
|
-
K(
|
|
5561
|
-
const
|
|
5562
|
-
K(s, e.domain, a), O(s, qe, x), O(s, Le,
|
|
5556
|
+
K(x, e.tld, S), K(x, e.utld, S), K(S, e.domain, a), K(S, n, o), O(S, qe, x), O(S, Le, g), O(S, xt, u);
|
|
5557
|
+
const I = O(S, bt), E = Me(Hr);
|
|
5558
|
+
K(I, e.numeric, E);
|
|
5559
|
+
const C = Me(Hr), k = Me();
|
|
5560
|
+
K(C, t, C), K(C, r, k), K(k, t, C), K(k, r, k), O(S, Fe, C), O(E, Fe, C);
|
|
5561
|
+
const L = O(s, bt), P = O(c, bt), N = O(P, Fe), $ = O(N, Fe);
|
|
5562
|
+
K(s, e.domain, a), O(s, qe, x), O(s, Le, g), K(c, e.domain, a), O(c, qe, x), O(c, Le, g), K(L, e.domain, C), O(L, Fe, C), O(L, dr, C), K($, e.domain, C), K($, t, C), O($, Fe, C);
|
|
5563
5563
|
const w = [
|
|
5564
5564
|
[cr, lr],
|
|
5565
5565
|
// {}
|
|
@@ -5578,13 +5578,13 @@ function Fy({
|
|
|
5578
5578
|
[gn, vn]
|
|
5579
5579
|
// <>
|
|
5580
5580
|
];
|
|
5581
|
-
for (let
|
|
5582
|
-
const [
|
|
5583
|
-
O(
|
|
5581
|
+
for (let A = 0; A < w.length; A++) {
|
|
5582
|
+
const [M, D] = w[A], H = O(C, M);
|
|
5583
|
+
O(k, M, H), O(H, D, C);
|
|
5584
5584
|
const j = Me(Hr);
|
|
5585
5585
|
K(H, t, j);
|
|
5586
5586
|
const ee = Me();
|
|
5587
|
-
K(H, r), K(j, t, j), K(j, r, ee), K(ee, t, j), K(ee, r, ee), O(j, D,
|
|
5587
|
+
K(H, r), K(j, t, j), K(j, r, ee), K(ee, t, j), K(ee, r, ee), O(j, D, C), O(ee, D, C);
|
|
5588
5588
|
}
|
|
5589
5589
|
return O(i, xr, S), O(i, Ua, qy), {
|
|
5590
5590
|
start: i,
|
|
@@ -5682,16 +5682,16 @@ function Xy(e) {
|
|
|
5682
5682
|
const p = h.split(" ").filter((x) => x !== "");
|
|
5683
5683
|
if (p.length <= 0)
|
|
5684
5684
|
return !1;
|
|
5685
|
-
const m = p[p.length - 1],
|
|
5685
|
+
const m = p[p.length - 1], v = d.pos + h.lastIndexOf(m);
|
|
5686
5686
|
if (!m)
|
|
5687
5687
|
return !1;
|
|
5688
|
-
const
|
|
5689
|
-
if (!Yy(
|
|
5688
|
+
const g = Ja(m).map((x) => x.toObject(e.defaultProtocol));
|
|
5689
|
+
if (!Yy(g))
|
|
5690
5690
|
return !1;
|
|
5691
|
-
|
|
5691
|
+
g.filter((x) => x.isLink).map((x) => ({
|
|
5692
5692
|
...x,
|
|
5693
|
-
from:
|
|
5694
|
-
to:
|
|
5693
|
+
from: v + x.start + 1,
|
|
5694
|
+
to: v + x.end + 1
|
|
5695
5695
|
})).filter((x) => n.schema.marks.code ? !n.doc.rangeHasMark(x.from, x.to, n.schema.marks.code) : !0).filter((x) => e.validate(x.value)).filter((x) => e.shouldAutoLink(x.value)).forEach((x) => {
|
|
5696
5696
|
fp(x.from, x.to, n.doc).some((S) => S.mark.type === e.type) || a.addMark(x.from, x.to, e.type.create({
|
|
5697
5697
|
href: x.href
|
|
@@ -6017,8 +6017,8 @@ function pd(e) {
|
|
|
6017
6017
|
const s = () => {
|
|
6018
6018
|
var c, u, f;
|
|
6019
6019
|
if ((c = e.editor) != null && c.isActive("link")) {
|
|
6020
|
-
const { href: d, target: h } = e.editor.getAttributes("link"), { from: p, to: m } = e.editor.state.selection,
|
|
6021
|
-
n({ link: d || "", text:
|
|
6020
|
+
const { href: d, target: h } = e.editor.getAttributes("link"), { from: p, to: m } = e.editor.state.selection, v = e.editor.state.doc.textBetween(p, m, " ");
|
|
6021
|
+
n({ link: d || "", text: v }), o(h === "_blank");
|
|
6022
6022
|
} else {
|
|
6023
6023
|
const d = (u = e.editor.extensionManager.extensions.find(
|
|
6024
6024
|
(h) => h.name === rx.name
|
|
@@ -6344,14 +6344,14 @@ const hc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, pc = Oa, H
|
|
|
6344
6344
|
}, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, f) => {
|
|
6345
6345
|
let { class: d, className: h, ...p } = f;
|
|
6346
6346
|
return Object.entries(p).every((m) => {
|
|
6347
|
-
let [
|
|
6348
|
-
return Array.isArray(
|
|
6347
|
+
let [v, g] = m;
|
|
6348
|
+
return Array.isArray(g) ? g.includes({
|
|
6349
6349
|
...o,
|
|
6350
6350
|
...s
|
|
6351
|
-
}[
|
|
6351
|
+
}[v]) : {
|
|
6352
6352
|
...o,
|
|
6353
6353
|
...s
|
|
6354
|
-
}[
|
|
6354
|
+
}[v] === g;
|
|
6355
6355
|
}) ? [
|
|
6356
6356
|
...u,
|
|
6357
6357
|
d,
|
|
@@ -6482,85 +6482,85 @@ function yd(e, t) {
|
|
|
6482
6482
|
}), a;
|
|
6483
6483
|
}
|
|
6484
6484
|
function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
6485
|
-
var N,
|
|
6486
|
-
const { t: i } = Se(), { toast: o } = is(), [a, s] = X(!1), [c, u] = X(!1), f = ir.useRef(null), [d, h] = ir.useState(), [p, m] = ir.useState(""),
|
|
6485
|
+
var N, $;
|
|
6486
|
+
const { t: i } = Se(), { toast: o } = is(), [a, s] = X(!1), [c, u] = X(!1), f = ir.useRef(null), [d, h] = ir.useState(), [p, m] = ir.useState(""), v = ot(null), [g, x] = X({
|
|
6487
6487
|
src: "",
|
|
6488
6488
|
file: null
|
|
6489
6489
|
}), S = we(() => {
|
|
6490
6490
|
var w;
|
|
6491
6491
|
return (w = e.extensionManager.extensions.find(
|
|
6492
|
-
(
|
|
6492
|
+
(A) => A.name === wr.name
|
|
6493
6493
|
)) == null ? void 0 : w.options;
|
|
6494
6494
|
}, [e]);
|
|
6495
|
-
function
|
|
6495
|
+
function I(w) {
|
|
6496
6496
|
if (f.current && w.width && w.height) {
|
|
6497
|
-
const
|
|
6498
|
-
m(
|
|
6497
|
+
const A = E(f.current, w);
|
|
6498
|
+
m(A);
|
|
6499
6499
|
}
|
|
6500
6500
|
}
|
|
6501
|
-
function
|
|
6502
|
-
const
|
|
6503
|
-
|
|
6504
|
-
const j =
|
|
6501
|
+
function E(w, A) {
|
|
6502
|
+
const M = document.createElement("canvas"), D = w.naturalWidth / w.width, H = w.naturalHeight / w.height;
|
|
6503
|
+
M.width = A.width * D, M.height = A.height * H;
|
|
6504
|
+
const j = M.getContext("2d");
|
|
6505
6505
|
return j && (j.imageSmoothingEnabled = !1, j.drawImage(
|
|
6506
6506
|
w,
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6507
|
+
A.x * D,
|
|
6508
|
+
A.y * H,
|
|
6509
|
+
A.width * D,
|
|
6510
|
+
A.height * H,
|
|
6511
6511
|
0,
|
|
6512
6512
|
0,
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
)),
|
|
6513
|
+
A.width * D,
|
|
6514
|
+
A.height * H
|
|
6515
|
+
)), M.toDataURL("image/png", 1);
|
|
6516
6516
|
}
|
|
6517
|
-
const
|
|
6517
|
+
const C = ir.useCallback(async () => {
|
|
6518
6518
|
var w;
|
|
6519
6519
|
if (!c) {
|
|
6520
6520
|
u(!0);
|
|
6521
6521
|
try {
|
|
6522
|
-
const
|
|
6523
|
-
let
|
|
6524
|
-
S.upload ?
|
|
6522
|
+
const A = ux(p, ((w = g == null ? void 0 : g.file) == null ? void 0 : w.name) || "image.png");
|
|
6523
|
+
let M = "";
|
|
6524
|
+
S.upload ? M = await S.upload(A) : M = URL.createObjectURL(A), e.chain().focus().setImageInline({ src: M, inline: t }).run(), s(!1), x({
|
|
6525
6525
|
src: "",
|
|
6526
6526
|
file: null
|
|
6527
|
-
}),
|
|
6528
|
-
} catch (
|
|
6529
|
-
console.log("Error cropping image",
|
|
6527
|
+
}), P(), r();
|
|
6528
|
+
} catch (A) {
|
|
6529
|
+
console.log("Error cropping image", A);
|
|
6530
6530
|
} finally {
|
|
6531
6531
|
u(!1);
|
|
6532
6532
|
}
|
|
6533
6533
|
}
|
|
6534
|
-
}, [p, e, t, c, r, (N =
|
|
6535
|
-
function
|
|
6536
|
-
var
|
|
6537
|
-
w.preventDefault(), (
|
|
6534
|
+
}, [p, e, t, c, r, (N = g == null ? void 0 : g.file) == null ? void 0 : N.name, S]);
|
|
6535
|
+
function k(w) {
|
|
6536
|
+
var A;
|
|
6537
|
+
w.preventDefault(), (A = v.current) == null || A.click();
|
|
6538
6538
|
}
|
|
6539
|
-
const
|
|
6539
|
+
const L = async (w) => {
|
|
6540
6540
|
var j;
|
|
6541
|
-
const
|
|
6542
|
-
if (!e || e.isDestroyed ||
|
|
6541
|
+
const A = (j = w == null ? void 0 : w.target) == null ? void 0 : j.files;
|
|
6542
|
+
if (!e || e.isDestroyed || A.length === 0) {
|
|
6543
6543
|
w.target.value = "";
|
|
6544
6544
|
return;
|
|
6545
6545
|
}
|
|
6546
|
-
const
|
|
6546
|
+
const M = yd(A, {
|
|
6547
6547
|
acceptMimes: S == null ? void 0 : S.acceptMimes,
|
|
6548
6548
|
maxSize: S == null ? void 0 : S.maxSize,
|
|
6549
6549
|
t: i,
|
|
6550
6550
|
toast: o,
|
|
6551
6551
|
onError: S.onError
|
|
6552
6552
|
});
|
|
6553
|
-
if (
|
|
6553
|
+
if (M.length <= 0) {
|
|
6554
6554
|
w.target.value = "";
|
|
6555
6555
|
return;
|
|
6556
6556
|
}
|
|
6557
|
-
const D =
|
|
6557
|
+
const D = M[0], H = await lx(D);
|
|
6558
6558
|
s(!0), x({
|
|
6559
6559
|
src: H.src,
|
|
6560
6560
|
file: D
|
|
6561
6561
|
});
|
|
6562
|
-
},
|
|
6563
|
-
|
|
6562
|
+
}, P = () => {
|
|
6563
|
+
v.current && (v.current.value = "");
|
|
6564
6564
|
};
|
|
6565
6565
|
return /* @__PURE__ */ T(de, { children: [
|
|
6566
6566
|
/* @__PURE__ */ l(
|
|
@@ -6568,7 +6568,7 @@ function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
|
6568
6568
|
{
|
|
6569
6569
|
className: "richtext-mt-1 richtext-w-full",
|
|
6570
6570
|
disabled: n,
|
|
6571
|
-
onClick:
|
|
6571
|
+
onClick: k,
|
|
6572
6572
|
size: "sm",
|
|
6573
6573
|
children: i("editor.image.dialog.tab.uploadCrop")
|
|
6574
6574
|
}
|
|
@@ -6578,25 +6578,25 @@ function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
|
6578
6578
|
{
|
|
6579
6579
|
open: a,
|
|
6580
6580
|
onOpenChange: (w) => {
|
|
6581
|
-
s(w), w || (x({ src: "", file: null }),
|
|
6581
|
+
s(w), w || (x({ src: "", file: null }), P());
|
|
6582
6582
|
},
|
|
6583
6583
|
children: [
|
|
6584
6584
|
/* @__PURE__ */ l(zn, {}),
|
|
6585
6585
|
/* @__PURE__ */ T(Ir, { children: [
|
|
6586
6586
|
/* @__PURE__ */ l(Rr, { children: i("editor.image.dialog.tab.uploadCrop") }),
|
|
6587
|
-
/* @__PURE__ */ l("div", { children:
|
|
6587
|
+
/* @__PURE__ */ l("div", { children: g.src && /* @__PURE__ */ l(
|
|
6588
6588
|
bp,
|
|
6589
6589
|
{
|
|
6590
6590
|
className: "richtext-w-full",
|
|
6591
6591
|
crop: d,
|
|
6592
6592
|
onChange: (w) => h(w),
|
|
6593
|
-
onComplete: (w) =>
|
|
6593
|
+
onComplete: (w) => I(w),
|
|
6594
6594
|
children: /* @__PURE__ */ l(
|
|
6595
6595
|
"img",
|
|
6596
6596
|
{
|
|
6597
6597
|
alt: "Crop me",
|
|
6598
6598
|
ref: f,
|
|
6599
|
-
src:
|
|
6599
|
+
src: g.src
|
|
6600
6600
|
}
|
|
6601
6601
|
)
|
|
6602
6602
|
}
|
|
@@ -6610,7 +6610,7 @@ function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
|
6610
6610
|
s(!1), x({
|
|
6611
6611
|
src: "",
|
|
6612
6612
|
file: null
|
|
6613
|
-
}),
|
|
6613
|
+
}), P();
|
|
6614
6614
|
},
|
|
6615
6615
|
children: [
|
|
6616
6616
|
i("editor.imageUpload.cancel"),
|
|
@@ -6629,7 +6629,7 @@ function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
|
6629
6629
|
{
|
|
6630
6630
|
className: "richtext-w-fit",
|
|
6631
6631
|
disabled: c || !d,
|
|
6632
|
-
onClick:
|
|
6632
|
+
onClick: C,
|
|
6633
6633
|
children: c ? /* @__PURE__ */ T(de, { children: [
|
|
6634
6634
|
i("editor.imageUpload.uploading"),
|
|
6635
6635
|
/* @__PURE__ */ l(
|
|
@@ -6659,10 +6659,10 @@ function fx({ editor: e, imageInline: t, onClose: r, disabled: n }) {
|
|
|
6659
6659
|
/* @__PURE__ */ l(
|
|
6660
6660
|
"input",
|
|
6661
6661
|
{
|
|
6662
|
-
accept: ((
|
|
6662
|
+
accept: (($ = S == null ? void 0 : S.acceptMimes) == null ? void 0 : $.join(",")) || "image/*",
|
|
6663
6663
|
multiple: !1,
|
|
6664
|
-
onChange:
|
|
6665
|
-
ref:
|
|
6664
|
+
onChange: L,
|
|
6665
|
+
ref: v,
|
|
6666
6666
|
style: { display: "none" },
|
|
6667
6667
|
type: "file"
|
|
6668
6668
|
}
|
|
@@ -6736,58 +6736,58 @@ const Rt = {
|
|
|
6736
6736
|
};
|
|
6737
6737
|
function gx(e) {
|
|
6738
6738
|
var E;
|
|
6739
|
-
const { t } = Se(), { toast: r } = is(), [n, i] = X(!1), [o, a] = X(!1), s = (
|
|
6740
|
-
i(
|
|
6741
|
-
}, [c, u] = X(""), [f, d] = X(""), h = ot(null),
|
|
6742
|
-
(
|
|
6743
|
-
)) == null ? void 0 : E.options.defaultInline) || !1), g = we(() => {
|
|
6744
|
-
var
|
|
6745
|
-
return (
|
|
6746
|
-
(
|
|
6747
|
-
)) == null ? void 0 :
|
|
6739
|
+
const { t } = Se(), { toast: r } = is(), [n, i] = X(!1), [o, a] = X(!1), s = (C) => {
|
|
6740
|
+
i(C.detail);
|
|
6741
|
+
}, [c, u] = X(""), [f, d] = X(""), h = ot(null), p = ((E = e.editor.extensionManager.extensions.find(
|
|
6742
|
+
(C) => C.name === wr.name
|
|
6743
|
+
)) == null ? void 0 : E.options.defaultInline) || !1, [m, v] = X(p), g = we(() => {
|
|
6744
|
+
var k;
|
|
6745
|
+
return (k = e.editor.extensionManager.extensions.find(
|
|
6746
|
+
(L) => L.name === wr.name
|
|
6747
|
+
)) == null ? void 0 : k.options;
|
|
6748
6748
|
}, [e.editor]);
|
|
6749
6749
|
pe(() => {
|
|
6750
|
-
const
|
|
6750
|
+
const C = Pn(Rt.UPLOAD_IMAGE(e.editor.id), s);
|
|
6751
6751
|
return () => {
|
|
6752
|
-
|
|
6752
|
+
C();
|
|
6753
6753
|
};
|
|
6754
6754
|
}, []);
|
|
6755
|
-
async function
|
|
6756
|
-
var
|
|
6757
|
-
const
|
|
6758
|
-
if (!e.editor || e.editor.isDestroyed ||
|
|
6759
|
-
|
|
6755
|
+
async function x(C) {
|
|
6756
|
+
var P;
|
|
6757
|
+
const k = (P = C == null ? void 0 : C.target) == null ? void 0 : P.files;
|
|
6758
|
+
if (!e.editor || e.editor.isDestroyed || k.length === 0 || o) {
|
|
6759
|
+
C.target.value = "";
|
|
6760
6760
|
return;
|
|
6761
6761
|
}
|
|
6762
|
-
const
|
|
6762
|
+
const L = yd(k, {
|
|
6763
6763
|
acceptMimes: g == null ? void 0 : g.acceptMimes,
|
|
6764
6764
|
maxSize: g == null ? void 0 : g.maxSize,
|
|
6765
6765
|
t,
|
|
6766
6766
|
toast: r,
|
|
6767
6767
|
onError: g.onError
|
|
6768
6768
|
});
|
|
6769
|
-
if (
|
|
6770
|
-
|
|
6769
|
+
if (L.length <= 0) {
|
|
6770
|
+
C.target.value = "";
|
|
6771
6771
|
return;
|
|
6772
6772
|
}
|
|
6773
6773
|
a(!0);
|
|
6774
6774
|
try {
|
|
6775
6775
|
if (g != null && g.multiple) {
|
|
6776
|
-
const
|
|
6777
|
-
let
|
|
6778
|
-
return g.upload ?
|
|
6776
|
+
const N = L.map(async (w) => {
|
|
6777
|
+
let A = "";
|
|
6778
|
+
return g.upload ? A = await g.upload(w) : A = URL.createObjectURL(w), A;
|
|
6779
6779
|
});
|
|
6780
|
-
(await Promise.all(
|
|
6781
|
-
e.editor.chain().focus().setImageInline({ src:
|
|
6780
|
+
(await Promise.all(N)).forEach((w) => {
|
|
6781
|
+
e.editor.chain().focus().setImageInline({ src: w, inline: m, alt: f }).run();
|
|
6782
6782
|
});
|
|
6783
6783
|
} else {
|
|
6784
|
-
const
|
|
6785
|
-
let
|
|
6786
|
-
g.upload ?
|
|
6784
|
+
const N = L[0];
|
|
6785
|
+
let $ = "";
|
|
6786
|
+
g.upload ? $ = await g.upload(N) : $ = URL.createObjectURL(N), e.editor.chain().focus().setImageInline({ src: $, inline: m, alt: f }).run();
|
|
6787
6787
|
}
|
|
6788
|
-
i(!1),
|
|
6789
|
-
} catch (
|
|
6790
|
-
console.error("Error uploading image",
|
|
6788
|
+
i(!1), v(p);
|
|
6789
|
+
} catch (N) {
|
|
6790
|
+
console.error("Error uploading image", N), g.onError ? g.onError({
|
|
6791
6791
|
type: "upload",
|
|
6792
6792
|
message: t("editor.upload.error")
|
|
6793
6793
|
}) : r({
|
|
@@ -6795,15 +6795,15 @@ function gx(e) {
|
|
|
6795
6795
|
title: t("editor.upload.error")
|
|
6796
6796
|
});
|
|
6797
6797
|
} finally {
|
|
6798
|
-
a(!1),
|
|
6798
|
+
a(!1), C.target.value = "";
|
|
6799
6799
|
}
|
|
6800
6800
|
}
|
|
6801
|
-
function
|
|
6802
|
-
|
|
6801
|
+
function S(C) {
|
|
6802
|
+
C.preventDefault(), C.stopPropagation(), e.editor.chain().focus().setImageInline({ src: c, inline: m, alt: f }).run(), i(!1), v(p), u("");
|
|
6803
6803
|
}
|
|
6804
|
-
function
|
|
6805
|
-
var
|
|
6806
|
-
|
|
6804
|
+
function I(C) {
|
|
6805
|
+
var k;
|
|
6806
|
+
C.preventDefault(), (k = h.current) == null || k.click();
|
|
6807
6807
|
}
|
|
6808
6808
|
return /* @__PURE__ */ T(
|
|
6809
6809
|
jn,
|
|
@@ -6835,9 +6835,9 @@ function gx(e) {
|
|
|
6835
6835
|
/* @__PURE__ */ l(
|
|
6836
6836
|
Dd,
|
|
6837
6837
|
{
|
|
6838
|
-
checked:
|
|
6839
|
-
onCheckedChange: (
|
|
6840
|
-
|
|
6838
|
+
checked: m,
|
|
6839
|
+
onCheckedChange: (C) => {
|
|
6840
|
+
v(C);
|
|
6841
6841
|
}
|
|
6842
6842
|
}
|
|
6843
6843
|
),
|
|
@@ -6848,7 +6848,7 @@ function gx(e) {
|
|
|
6848
6848
|
/* @__PURE__ */ l(
|
|
6849
6849
|
Ne,
|
|
6850
6850
|
{
|
|
6851
|
-
onChange: (
|
|
6851
|
+
onChange: (C) => d(C.target.value),
|
|
6852
6852
|
required: !0,
|
|
6853
6853
|
type: "text",
|
|
6854
6854
|
value: f
|
|
@@ -6862,7 +6862,7 @@ function gx(e) {
|
|
|
6862
6862
|
{
|
|
6863
6863
|
className: "richtext-mt-1 richtext-w-full",
|
|
6864
6864
|
disabled: o,
|
|
6865
|
-
onClick:
|
|
6865
|
+
onClick: I,
|
|
6866
6866
|
size: "sm",
|
|
6867
6867
|
children: o ? /* @__PURE__ */ T(de, { children: [
|
|
6868
6868
|
t("editor.imageUpload.uploading"),
|
|
@@ -6881,7 +6881,7 @@ function gx(e) {
|
|
|
6881
6881
|
{
|
|
6882
6882
|
disabled: o,
|
|
6883
6883
|
editor: e.editor,
|
|
6884
|
-
imageInline:
|
|
6884
|
+
imageInline: m,
|
|
6885
6885
|
onClose: () => mx.setOpen(e.editor.id, !1)
|
|
6886
6886
|
}
|
|
6887
6887
|
)
|
|
@@ -6891,19 +6891,19 @@ function gx(e) {
|
|
|
6891
6891
|
{
|
|
6892
6892
|
accept: g.acceptMimes.join(",") || "image/*",
|
|
6893
6893
|
multiple: g.multiple,
|
|
6894
|
-
onChange:
|
|
6894
|
+
onChange: x,
|
|
6895
6895
|
ref: h,
|
|
6896
6896
|
style: { display: "none" },
|
|
6897
6897
|
type: "file"
|
|
6898
6898
|
}
|
|
6899
6899
|
)
|
|
6900
6900
|
] }),
|
|
6901
|
-
/* @__PURE__ */ l(Ar, { value: "link", children: /* @__PURE__ */ l("form", { onSubmit:
|
|
6901
|
+
/* @__PURE__ */ l(Ar, { value: "link", children: /* @__PURE__ */ l("form", { onSubmit: S, children: /* @__PURE__ */ T("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
|
|
6902
6902
|
/* @__PURE__ */ l(
|
|
6903
6903
|
Ne,
|
|
6904
6904
|
{
|
|
6905
6905
|
autoFocus: !0,
|
|
6906
|
-
onChange: (
|
|
6906
|
+
onChange: (C) => u(C.target.value),
|
|
6907
6907
|
placeholder: t("editor.image.dialog.placeholder"),
|
|
6908
6908
|
required: !0,
|
|
6909
6909
|
type: "url",
|
|
@@ -6927,7 +6927,7 @@ const qr = {
|
|
|
6927
6927
|
BOTTOM_RIGHT: "br"
|
|
6928
6928
|
};
|
|
6929
6929
|
function vx(e) {
|
|
6930
|
-
var
|
|
6930
|
+
var P, N, $;
|
|
6931
6931
|
const [t, r] = X({
|
|
6932
6932
|
width: Jr,
|
|
6933
6933
|
height: Jr
|
|
@@ -6945,14 +6945,14 @@ function vx(e) {
|
|
|
6945
6945
|
w: 0,
|
|
6946
6946
|
h: 0,
|
|
6947
6947
|
dir: ""
|
|
6948
|
-
}), { align: f, inline: d } = (
|
|
6948
|
+
}), { align: f, inline: d } = (P = e == null ? void 0 : e.node) == null ? void 0 : P.attrs, h = d && (f === "left" || f === "right"), p = we(() => {
|
|
6949
6949
|
var De;
|
|
6950
|
-
const { src: w, alt:
|
|
6950
|
+
const { src: w, alt: A, width: M, height: D, flipX: H, flipY: j } = (De = e == null ? void 0 : e.node) == null ? void 0 : De.attrs, ee = rn(M) ? `${M}px` : M, Z = rn(D) ? `${D}px` : D, te = [];
|
|
6951
6951
|
H && te.push("rotateX(180deg)"), j && te.push("rotateY(180deg)");
|
|
6952
6952
|
const ye = te.join(" ");
|
|
6953
6953
|
return {
|
|
6954
6954
|
src: w || void 0,
|
|
6955
|
-
alt:
|
|
6955
|
+
alt: A || void 0,
|
|
6956
6956
|
style: {
|
|
6957
6957
|
width: ee || void 0,
|
|
6958
6958
|
height: Z || void 0,
|
|
@@ -6966,51 +6966,51 @@ function vx(e) {
|
|
|
6966
6966
|
} = p;
|
|
6967
6967
|
return { width: w === "100%" ? w : void 0 };
|
|
6968
6968
|
}, [p]);
|
|
6969
|
-
function
|
|
6969
|
+
function v(w) {
|
|
6970
6970
|
i({
|
|
6971
6971
|
width: w.target.width,
|
|
6972
6972
|
height: w.target.height
|
|
6973
6973
|
});
|
|
6974
6974
|
}
|
|
6975
|
-
function
|
|
6976
|
-
const { editor: w, getPos:
|
|
6977
|
-
w.commands.setNodeSelection(
|
|
6975
|
+
function g() {
|
|
6976
|
+
const { editor: w, getPos: A } = e;
|
|
6977
|
+
w.commands.setNodeSelection(A());
|
|
6978
6978
|
}
|
|
6979
6979
|
const x = oe(
|
|
6980
6980
|
yr(() => {
|
|
6981
|
-
const { editor: w } = e, { width:
|
|
6982
|
-
r((
|
|
6983
|
-
...
|
|
6984
|
-
width: Number.parseInt(
|
|
6981
|
+
const { editor: w } = e, { width: A } = getComputedStyle(w.view.dom);
|
|
6982
|
+
r((M) => ({
|
|
6983
|
+
...M,
|
|
6984
|
+
width: Number.parseInt(A, 10)
|
|
6985
6985
|
}));
|
|
6986
6986
|
}, Zr),
|
|
6987
6987
|
[e == null ? void 0 : e.editor]
|
|
6988
6988
|
);
|
|
6989
|
-
function S(w,
|
|
6989
|
+
function S(w, A) {
|
|
6990
6990
|
w.preventDefault(), w.stopPropagation();
|
|
6991
|
-
const
|
|
6991
|
+
const M = n.width, D = n.height, H = M / D;
|
|
6992
6992
|
let j = Number(e.node.attrs.width), ee = Number(e.node.attrs.height);
|
|
6993
6993
|
const Z = t.width;
|
|
6994
|
-
j && !ee ? (j = j > Z ? Z : j, ee = Math.round(j / H)) : ee && !j ? (j = Math.round(ee * H), j = j > Z ? Z : j) : !j && !ee ? (j =
|
|
6994
|
+
j && !ee ? (j = j > Z ? Z : j, ee = Math.round(j / H)) : ee && !j ? (j = Math.round(ee * H), j = j > Z ? Z : j) : !j && !ee ? (j = M > Z ? Z : M, ee = Math.round(j / H)) : j = j > Z ? Z : j, s(!0), u({
|
|
6995
6995
|
x: w.clientX,
|
|
6996
6996
|
y: w.clientY,
|
|
6997
6997
|
w: j,
|
|
6998
6998
|
h: ee,
|
|
6999
|
-
dir:
|
|
6999
|
+
dir: A
|
|
7000
7000
|
});
|
|
7001
7001
|
}
|
|
7002
|
-
const
|
|
7002
|
+
const I = oe(
|
|
7003
7003
|
yr((w) => {
|
|
7004
7004
|
if (w.preventDefault(), w.stopPropagation(), !a)
|
|
7005
7005
|
return;
|
|
7006
|
-
const { x:
|
|
7006
|
+
const { x: A, w: M, dir: D } = c, H = (w.clientX - A) * (/l/.test(D) ? -1 : 1), j = ju(M + H, uu, t.width);
|
|
7007
7007
|
e.updateAttributes({
|
|
7008
7008
|
width: j,
|
|
7009
7009
|
height: null
|
|
7010
7010
|
});
|
|
7011
7011
|
}, Zr),
|
|
7012
7012
|
[a, c, t, e.updateAttributes]
|
|
7013
|
-
),
|
|
7013
|
+
), E = oe(
|
|
7014
7014
|
(w) => {
|
|
7015
7015
|
w.preventDefault(), w.stopPropagation(), a && (u({
|
|
7016
7016
|
x: 0,
|
|
@@ -7018,21 +7018,21 @@ function vx(e) {
|
|
|
7018
7018
|
w: 0,
|
|
7019
7019
|
h: 0,
|
|
7020
7020
|
dir: ""
|
|
7021
|
-
}), s(!1),
|
|
7021
|
+
}), s(!1), g());
|
|
7022
7022
|
},
|
|
7023
|
-
[a,
|
|
7024
|
-
),
|
|
7025
|
-
document == null || document.addEventListener("mousemove",
|
|
7026
|
-
}, [
|
|
7027
|
-
document == null || document.removeEventListener("mousemove",
|
|
7028
|
-
}, [
|
|
7029
|
-
pe(() => (a ?
|
|
7030
|
-
|
|
7031
|
-
}), [a,
|
|
7032
|
-
const
|
|
7033
|
-
return pe(() => (
|
|
7034
|
-
|
|
7035
|
-
}), [e.editor.view.dom,
|
|
7023
|
+
[a, g]
|
|
7024
|
+
), C = oe(() => {
|
|
7025
|
+
document == null || document.addEventListener("mousemove", I, !0), document == null || document.addEventListener("mouseup", E, !0);
|
|
7026
|
+
}, [I, E]), k = oe(() => {
|
|
7027
|
+
document == null || document.removeEventListener("mousemove", I, !0), document == null || document.removeEventListener("mouseup", E, !0);
|
|
7028
|
+
}, [I, E]);
|
|
7029
|
+
pe(() => (a ? C() : k(), () => {
|
|
7030
|
+
k();
|
|
7031
|
+
}), [a, C, k]);
|
|
7032
|
+
const L = we(() => new ResizeObserver(() => x()), [x]);
|
|
7033
|
+
return pe(() => (L.observe(e.editor.view.dom), () => {
|
|
7034
|
+
L.disconnect();
|
|
7035
|
+
}), [e.editor.view.dom, L]), /* @__PURE__ */ l(
|
|
7036
7036
|
Pa,
|
|
7037
7037
|
{
|
|
7038
7038
|
as: d ? "span" : "div",
|
|
@@ -7042,7 +7042,7 @@ function vx(e) {
|
|
|
7042
7042
|
margin: h ? f === "left" ? "1em 1em 1em 0" : "1em 0 1em 1em" : void 0,
|
|
7043
7043
|
display: d ? "inline" : "block",
|
|
7044
7044
|
textAlign: h ? void 0 : f,
|
|
7045
|
-
width: ((
|
|
7045
|
+
width: (($ = p.style) == null ? void 0 : $.width) ?? "auto",
|
|
7046
7046
|
...h ? {} : m
|
|
7047
7047
|
},
|
|
7048
7048
|
children: /* @__PURE__ */ T(
|
|
@@ -7059,8 +7059,8 @@ function vx(e) {
|
|
|
7059
7059
|
alt: p.alt,
|
|
7060
7060
|
className: "image-view__body__image block",
|
|
7061
7061
|
height: "auto",
|
|
7062
|
-
onClick:
|
|
7063
|
-
onLoad:
|
|
7062
|
+
onClick: g,
|
|
7063
|
+
onLoad: v,
|
|
7064
7064
|
src: p.src,
|
|
7065
7065
|
style: p.style
|
|
7066
7066
|
}
|
|
@@ -7069,7 +7069,7 @@ function vx(e) {
|
|
|
7069
7069
|
"span",
|
|
7070
7070
|
{
|
|
7071
7071
|
className: `image-resizer__handler image-resizer__handler--${w}`,
|
|
7072
|
-
onMouseDown: (
|
|
7072
|
+
onMouseDown: (A) => S(A, w)
|
|
7073
7073
|
},
|
|
7074
7074
|
`image-dir-${w}`
|
|
7075
7075
|
)) })
|
|
@@ -7137,15 +7137,15 @@ function wx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }
|
|
|
7137
7137
|
let p = bx(o.state, c);
|
|
7138
7138
|
if (p === null)
|
|
7139
7139
|
return;
|
|
7140
|
-
const m = typeof d == "object" ? f : d,
|
|
7140
|
+
const m = typeof d == "object" ? f : d, v = (S = h.nodes.image) == null ? void 0 : S.create({
|
|
7141
7141
|
src: m,
|
|
7142
7142
|
inline: n
|
|
7143
7143
|
});
|
|
7144
|
-
if (!
|
|
7144
|
+
if (!v)
|
|
7145
7145
|
return;
|
|
7146
|
-
const { doc:
|
|
7147
|
-
p >
|
|
7148
|
-
const x = o.state.tr.replaceWith(p, p,
|
|
7146
|
+
const { doc: g } = o.state;
|
|
7147
|
+
p > g.content.size && (p = g.content.size - 1);
|
|
7148
|
+
const x = o.state.tr.replaceWith(p, p, v).setMeta(Ft, { remove: [c] });
|
|
7149
7149
|
o.dispatch(x);
|
|
7150
7150
|
},
|
|
7151
7151
|
() => {
|
|
@@ -7444,7 +7444,7 @@ const Fr = {
|
|
|
7444
7444
|
BOTTOM_RIGHT: "br"
|
|
7445
7445
|
};
|
|
7446
7446
|
function Ix(e) {
|
|
7447
|
-
var
|
|
7447
|
+
var k, L;
|
|
7448
7448
|
const [t, r] = X({
|
|
7449
7449
|
width: Jr,
|
|
7450
7450
|
height: Jr
|
|
@@ -7462,70 +7462,70 @@ function Ix(e) {
|
|
|
7462
7462
|
w: 0,
|
|
7463
7463
|
h: 0,
|
|
7464
7464
|
dir: ""
|
|
7465
|
-
}), { align: f } = (
|
|
7465
|
+
}), { align: f } = (k = e == null ? void 0 : e.node) == null ? void 0 : k.attrs, d = we(() => {
|
|
7466
7466
|
var D;
|
|
7467
|
-
const { src:
|
|
7467
|
+
const { src: P, alt: N, width: $, height: w } = (D = e == null ? void 0 : e.node) == null ? void 0 : D.attrs, A = rn($) ? `${$}px` : $, M = rn(w) ? `${w}px` : w;
|
|
7468
7468
|
return {
|
|
7469
|
-
src:
|
|
7469
|
+
src: P || void 0,
|
|
7470
7470
|
alt: N || void 0,
|
|
7471
7471
|
style: {
|
|
7472
|
-
width:
|
|
7473
|
-
height:
|
|
7472
|
+
width: A || void 0,
|
|
7473
|
+
height: M || void 0
|
|
7474
7474
|
}
|
|
7475
7475
|
};
|
|
7476
|
-
}, [(
|
|
7476
|
+
}, [(L = e == null ? void 0 : e.node) == null ? void 0 : L.attrs]), h = we(() => {
|
|
7477
7477
|
const {
|
|
7478
|
-
style: { width:
|
|
7478
|
+
style: { width: P }
|
|
7479
7479
|
} = d;
|
|
7480
|
-
return { width:
|
|
7480
|
+
return { width: P === "100%" ? P : void 0 };
|
|
7481
7481
|
}, [d]);
|
|
7482
|
-
function p(
|
|
7482
|
+
function p(P) {
|
|
7483
7483
|
i({
|
|
7484
|
-
width:
|
|
7485
|
-
height:
|
|
7484
|
+
width: P.target.width,
|
|
7485
|
+
height: P.target.height
|
|
7486
7486
|
});
|
|
7487
7487
|
}
|
|
7488
7488
|
function m() {
|
|
7489
|
-
const { editor:
|
|
7490
|
-
|
|
7489
|
+
const { editor: P, getPos: N } = e;
|
|
7490
|
+
P.commands.setNodeSelection(N());
|
|
7491
7491
|
}
|
|
7492
|
-
const
|
|
7492
|
+
const v = oe(
|
|
7493
7493
|
yr(() => {
|
|
7494
|
-
const { editor:
|
|
7495
|
-
r((
|
|
7496
|
-
|
|
7494
|
+
const { editor: P } = e, { width: N } = getComputedStyle(P.view.dom);
|
|
7495
|
+
r(($) => ({
|
|
7496
|
+
...$,
|
|
7497
7497
|
width: Number.parseInt(N, 10)
|
|
7498
7498
|
}));
|
|
7499
7499
|
}, Zr),
|
|
7500
7500
|
[e == null ? void 0 : e.editor]
|
|
7501
7501
|
);
|
|
7502
|
-
function
|
|
7503
|
-
|
|
7504
|
-
const
|
|
7505
|
-
let
|
|
7502
|
+
function g(P, N) {
|
|
7503
|
+
P.preventDefault(), P.stopPropagation();
|
|
7504
|
+
const $ = n.width, w = n.height, A = $ / w;
|
|
7505
|
+
let M = Number(e.node.attrs.width), D = Number(e.node.attrs.height);
|
|
7506
7506
|
const H = t.width;
|
|
7507
|
-
|
|
7508
|
-
x:
|
|
7509
|
-
y:
|
|
7510
|
-
w:
|
|
7507
|
+
M && !D ? (M = M > H ? H : M, D = Math.round(M / A)) : D && !M ? (M = Math.round(D * A), M = M > H ? H : M) : !M && !D ? (M = $ > H ? H : $, D = Math.round(M / A)) : M = M > H ? H : M, s(!0), u({
|
|
7508
|
+
x: P.clientX,
|
|
7509
|
+
y: P.clientY,
|
|
7510
|
+
w: M,
|
|
7511
7511
|
h: D,
|
|
7512
7512
|
dir: N
|
|
7513
7513
|
});
|
|
7514
7514
|
}
|
|
7515
7515
|
const x = oe(
|
|
7516
|
-
yr((
|
|
7517
|
-
if (
|
|
7516
|
+
yr((P) => {
|
|
7517
|
+
if (P.preventDefault(), P.stopPropagation(), !a)
|
|
7518
7518
|
return;
|
|
7519
|
-
const { x: N, w:
|
|
7519
|
+
const { x: N, w: $, dir: w } = c, A = (P.clientX - N) * (/l/.test(w) ? -1 : 1), M = ju($ + A, uu, t.width);
|
|
7520
7520
|
e.updateAttributes({
|
|
7521
|
-
width:
|
|
7521
|
+
width: M,
|
|
7522
7522
|
height: null
|
|
7523
7523
|
});
|
|
7524
7524
|
}, Zr),
|
|
7525
7525
|
[a, c, t, e.updateAttributes]
|
|
7526
7526
|
), S = oe(
|
|
7527
|
-
(
|
|
7528
|
-
|
|
7527
|
+
(P) => {
|
|
7528
|
+
P.preventDefault(), P.stopPropagation(), a && (u({
|
|
7529
7529
|
x: 0,
|
|
7530
7530
|
y: 0,
|
|
7531
7531
|
w: 0,
|
|
@@ -7534,18 +7534,18 @@ function Ix(e) {
|
|
|
7534
7534
|
}), s(!1), m());
|
|
7535
7535
|
},
|
|
7536
7536
|
[a, m]
|
|
7537
|
-
),
|
|
7537
|
+
), I = oe(() => {
|
|
7538
7538
|
document == null || document.addEventListener("mousemove", x, !0), document == null || document.addEventListener("mouseup", S, !0);
|
|
7539
|
-
}, [x, S]),
|
|
7539
|
+
}, [x, S]), E = oe(() => {
|
|
7540
7540
|
document == null || document.removeEventListener("mousemove", x, !0), document == null || document.removeEventListener("mouseup", S, !0);
|
|
7541
7541
|
}, [x, S]);
|
|
7542
|
-
pe(() => (a ?
|
|
7543
|
-
|
|
7544
|
-
}), [a,
|
|
7545
|
-
const
|
|
7546
|
-
return pe(() => (
|
|
7547
|
-
|
|
7548
|
-
}), [e.editor.view.dom,
|
|
7542
|
+
pe(() => (a ? I() : E(), () => {
|
|
7543
|
+
E();
|
|
7544
|
+
}), [a, I, E]);
|
|
7545
|
+
const C = we(() => new ResizeObserver(() => v()), [v]);
|
|
7546
|
+
return pe(() => (C.observe(e.editor.view.dom), () => {
|
|
7547
|
+
C.disconnect();
|
|
7548
|
+
}), [e.editor.view.dom, C]), /* @__PURE__ */ l(
|
|
7549
7549
|
Pa,
|
|
7550
7550
|
{
|
|
7551
7551
|
className: "image-view",
|
|
@@ -7570,13 +7570,13 @@ function Ix(e) {
|
|
|
7570
7570
|
style: d.style
|
|
7571
7571
|
}
|
|
7572
7572
|
),
|
|
7573
|
-
(e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || a) && /* @__PURE__ */ l("div", { className: "image-resizer", children: o == null ? void 0 : o.map((
|
|
7573
|
+
(e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || a) && /* @__PURE__ */ l("div", { className: "image-resizer", children: o == null ? void 0 : o.map((P) => /* @__PURE__ */ l(
|
|
7574
7574
|
"span",
|
|
7575
7575
|
{
|
|
7576
|
-
className: `image-resizer__handler image-resizer__handler--${
|
|
7577
|
-
onMouseDown: (N) =>
|
|
7576
|
+
className: `image-resizer__handler image-resizer__handler--${P}`,
|
|
7577
|
+
onMouseDown: (N) => g(N, P)
|
|
7578
7578
|
},
|
|
7579
|
-
`image-dir-${
|
|
7579
|
+
`image-dir-${P}`
|
|
7580
7580
|
)) })
|
|
7581
7581
|
]
|
|
7582
7582
|
}
|
|
@@ -7721,19 +7721,19 @@ function Ox(e) {
|
|
|
7721
7721
|
};
|
|
7722
7722
|
}, []);
|
|
7723
7723
|
const f = we(() => {
|
|
7724
|
-
var
|
|
7725
|
-
return (
|
|
7726
|
-
(
|
|
7727
|
-
)) == null ? void 0 :
|
|
7724
|
+
var v;
|
|
7725
|
+
return (v = e.editor.extensionManager.extensions.find(
|
|
7726
|
+
(g) => g.name === Sd.name
|
|
7727
|
+
)) == null ? void 0 : v.options;
|
|
7728
7728
|
}, [e.editor]);
|
|
7729
7729
|
async function d(m) {
|
|
7730
7730
|
var S;
|
|
7731
|
-
const
|
|
7732
|
-
if (!e.editor || e.editor.isDestroyed ||
|
|
7731
|
+
const v = (S = m == null ? void 0 : m.target) == null ? void 0 : S.files;
|
|
7732
|
+
if (!e.editor || e.editor.isDestroyed || v.length === 0)
|
|
7733
7733
|
return;
|
|
7734
|
-
const
|
|
7734
|
+
const g = v[0];
|
|
7735
7735
|
let x = "";
|
|
7736
|
-
f.upload ? x = await f.upload(
|
|
7736
|
+
f.upload ? x = await f.upload(g) : x = URL.createObjectURL(g), e.editor.chain().focus().setVideo({
|
|
7737
7737
|
src: x,
|
|
7738
7738
|
width: "100%"
|
|
7739
7739
|
}).run(), c(!1);
|
|
@@ -7745,8 +7745,8 @@ function Ox(e) {
|
|
|
7745
7745
|
}).run(), c(!1));
|
|
7746
7746
|
}
|
|
7747
7747
|
function p(m) {
|
|
7748
|
-
var
|
|
7749
|
-
m.preventDefault(), (
|
|
7748
|
+
var v;
|
|
7749
|
+
m.preventDefault(), (v = i.current) == null || v.click();
|
|
7750
7750
|
}
|
|
7751
7751
|
return /* @__PURE__ */ T(
|
|
7752
7752
|
jn,
|
|
@@ -7812,8 +7812,8 @@ function Ox(e) {
|
|
|
7812
7812
|
n(m.target.value);
|
|
7813
7813
|
},
|
|
7814
7814
|
onBlur: (m) => {
|
|
7815
|
-
const
|
|
7816
|
-
|
|
7815
|
+
const v = m.target.value, g = f.videoProviders || ["."];
|
|
7816
|
+
v && !Rx(v, g) ? a("Invalid video URL") : a("");
|
|
7817
7817
|
}
|
|
7818
7818
|
}
|
|
7819
7819
|
),
|
|
@@ -9349,22 +9349,22 @@ function _b() {
|
|
|
9349
9349
|
}
|
|
9350
9350
|
};
|
|
9351
9351
|
e = function(p) {
|
|
9352
|
-
var m = p !== null && typeof p == "object",
|
|
9353
|
-
if (!m && !
|
|
9352
|
+
var m = p !== null && typeof p == "object", v = r.call(p) === "[object Function]", g = n(p), x = m && r.call(p) === "[object String]", S = [];
|
|
9353
|
+
if (!m && !v && !g)
|
|
9354
9354
|
throw new TypeError("Object.keys called on a non-object");
|
|
9355
|
-
var
|
|
9355
|
+
var I = a && v;
|
|
9356
9356
|
if (x && p.length > 0 && !t.call(p, 0))
|
|
9357
|
-
for (var
|
|
9358
|
-
S.push(String(
|
|
9359
|
-
if (
|
|
9360
|
-
for (var
|
|
9361
|
-
S.push(String(
|
|
9357
|
+
for (var E = 0; E < p.length; ++E)
|
|
9358
|
+
S.push(String(E));
|
|
9359
|
+
if (g && p.length > 0)
|
|
9360
|
+
for (var C = 0; C < p.length; ++C)
|
|
9361
|
+
S.push(String(C));
|
|
9362
9362
|
else
|
|
9363
|
-
for (var
|
|
9364
|
-
!(
|
|
9363
|
+
for (var k in p)
|
|
9364
|
+
!(I && k === "prototype") && t.call(p, k) && S.push(String(k));
|
|
9365
9365
|
if (o)
|
|
9366
|
-
for (var
|
|
9367
|
-
!(
|
|
9366
|
+
for (var L = d(p), P = 0; P < s.length; ++P)
|
|
9367
|
+
!(L && s[P] === "constructor") && t.call(p, s[P]) && S.push(s[P]);
|
|
9368
9368
|
return S;
|
|
9369
9369
|
};
|
|
9370
9370
|
}
|
|
@@ -9649,12 +9649,12 @@ function Xb() {
|
|
|
9649
9649
|
c,
|
|
9650
9650
|
i(f, arguments)
|
|
9651
9651
|
);
|
|
9652
|
-
}, p = r(0, u.length - f.length), m = [],
|
|
9653
|
-
m[
|
|
9652
|
+
}, p = r(0, u.length - f.length), m = [], v = 0; v < p; v++)
|
|
9653
|
+
m[v] = "$" + v;
|
|
9654
9654
|
if (d = Function("binder", "return function (" + a(m, ",") + "){ return binder.apply(this,arguments); }")(h), u.prototype) {
|
|
9655
|
-
var
|
|
9655
|
+
var g = function() {
|
|
9656
9656
|
};
|
|
9657
|
-
|
|
9657
|
+
g.prototype = u.prototype, d.prototype = new g(), g.prototype = null;
|
|
9658
9658
|
}
|
|
9659
9659
|
return d;
|
|
9660
9660
|
}, Yi;
|
|
@@ -9746,34 +9746,34 @@ var oo, ol;
|
|
|
9746
9746
|
function ut() {
|
|
9747
9747
|
if (ol) return oo;
|
|
9748
9748
|
ol = 1;
|
|
9749
|
-
var e, t = /* @__PURE__ */ ls(), r = /* @__PURE__ */ zd(), n = /* @__PURE__ */ Bb(), i = /* @__PURE__ */ jb(), o = /* @__PURE__ */ zb(), a = /* @__PURE__ */ as(), s = /* @__PURE__ */ _e(), c = /* @__PURE__ */ Hb(), u = /* @__PURE__ */ qb(), f = /* @__PURE__ */ Fb(), d = /* @__PURE__ */ Ub(), h = /* @__PURE__ */ Wb(), p = /* @__PURE__ */ Gb(), m = /* @__PURE__ */ Vb(),
|
|
9749
|
+
var e, t = /* @__PURE__ */ ls(), r = /* @__PURE__ */ zd(), n = /* @__PURE__ */ Bb(), i = /* @__PURE__ */ jb(), o = /* @__PURE__ */ zb(), a = /* @__PURE__ */ as(), s = /* @__PURE__ */ _e(), c = /* @__PURE__ */ Hb(), u = /* @__PURE__ */ qb(), f = /* @__PURE__ */ Fb(), d = /* @__PURE__ */ Ub(), h = /* @__PURE__ */ Wb(), p = /* @__PURE__ */ Gb(), m = /* @__PURE__ */ Vb(), v = /* @__PURE__ */ Yb(), g = Function, x = function(re) {
|
|
9750
9750
|
try {
|
|
9751
|
-
return
|
|
9751
|
+
return g('"use strict"; return (' + re + ").constructor;")();
|
|
9752
9752
|
} catch {
|
|
9753
9753
|
}
|
|
9754
|
-
}, S = /* @__PURE__ */ Mt(),
|
|
9754
|
+
}, S = /* @__PURE__ */ Mt(), I = /* @__PURE__ */ Fn(), E = function() {
|
|
9755
9755
|
throw new s();
|
|
9756
|
-
},
|
|
9756
|
+
}, C = S ? function() {
|
|
9757
9757
|
try {
|
|
9758
|
-
return arguments.callee,
|
|
9758
|
+
return arguments.callee, E;
|
|
9759
9759
|
} catch {
|
|
9760
9760
|
try {
|
|
9761
9761
|
return S(arguments, "callee").get;
|
|
9762
9762
|
} catch {
|
|
9763
|
-
return
|
|
9763
|
+
return E;
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
9766
|
-
}() :
|
|
9766
|
+
}() : E, k = us()(), L = Ud(), P = qd(), N = Hd(), $ = fs(), w = ds(), A = {}, M = typeof Uint8Array > "u" || !L ? e : L(Uint8Array), D = {
|
|
9767
9767
|
__proto__: null,
|
|
9768
9768
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
9769
9769
|
"%Array%": Array,
|
|
9770
9770
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
9771
|
-
"%ArrayIteratorPrototype%":
|
|
9771
|
+
"%ArrayIteratorPrototype%": k && L ? L([][Symbol.iterator]()) : e,
|
|
9772
9772
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
9773
|
-
"%AsyncFunction%":
|
|
9774
|
-
"%AsyncGenerator%":
|
|
9775
|
-
"%AsyncGeneratorFunction%":
|
|
9776
|
-
"%AsyncIteratorPrototype%":
|
|
9773
|
+
"%AsyncFunction%": A,
|
|
9774
|
+
"%AsyncGenerator%": A,
|
|
9775
|
+
"%AsyncGeneratorFunction%": A,
|
|
9776
|
+
"%AsyncIteratorPrototype%": A,
|
|
9777
9777
|
"%Atomics%": typeof Atomics > "u" ? e : Atomics,
|
|
9778
9778
|
"%BigInt%": typeof BigInt > "u" ? e : BigInt,
|
|
9779
9779
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? e : BigInt64Array,
|
|
@@ -9792,17 +9792,17 @@ function ut() {
|
|
|
9792
9792
|
"%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
|
|
9793
9793
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
9794
9794
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
9795
|
-
"%Function%":
|
|
9796
|
-
"%GeneratorFunction%":
|
|
9795
|
+
"%Function%": g,
|
|
9796
|
+
"%GeneratorFunction%": A,
|
|
9797
9797
|
"%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
|
|
9798
9798
|
"%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
|
|
9799
9799
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
9800
9800
|
"%isFinite%": isFinite,
|
|
9801
9801
|
"%isNaN%": isNaN,
|
|
9802
|
-
"%IteratorPrototype%":
|
|
9802
|
+
"%IteratorPrototype%": k && L ? L(L([][Symbol.iterator]())) : e,
|
|
9803
9803
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
9804
9804
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
9805
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
9805
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !k || !L ? e : L((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
9806
9806
|
"%Math%": Math,
|
|
9807
9807
|
"%Number%": Number,
|
|
9808
9808
|
"%Object%": t,
|
|
@@ -9816,14 +9816,14 @@ function ut() {
|
|
|
9816
9816
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
9817
9817
|
"%RegExp%": RegExp,
|
|
9818
9818
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
9819
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
9819
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !k || !L ? e : L((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
9820
9820
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
9821
9821
|
"%String%": String,
|
|
9822
|
-
"%StringIteratorPrototype%":
|
|
9823
|
-
"%Symbol%":
|
|
9822
|
+
"%StringIteratorPrototype%": k && L ? L(""[Symbol.iterator]()) : e,
|
|
9823
|
+
"%Symbol%": k ? Symbol : e,
|
|
9824
9824
|
"%SyntaxError%": a,
|
|
9825
|
-
"%ThrowTypeError%":
|
|
9826
|
-
"%TypedArray%":
|
|
9825
|
+
"%ThrowTypeError%": C,
|
|
9826
|
+
"%TypedArray%": M,
|
|
9827
9827
|
"%TypeError%": s,
|
|
9828
9828
|
"%Uint8Array%": typeof Uint8Array > "u" ? e : Uint8Array,
|
|
9829
9829
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
@@ -9834,23 +9834,23 @@ function ut() {
|
|
|
9834
9834
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
9835
9835
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
9836
9836
|
"%Function.prototype.call%": w,
|
|
9837
|
-
"%Function.prototype.apply%":
|
|
9838
|
-
"%Object.defineProperty%":
|
|
9839
|
-
"%Object.getPrototypeOf%":
|
|
9837
|
+
"%Function.prototype.apply%": $,
|
|
9838
|
+
"%Object.defineProperty%": I,
|
|
9839
|
+
"%Object.getPrototypeOf%": P,
|
|
9840
9840
|
"%Math.abs%": u,
|
|
9841
9841
|
"%Math.floor%": f,
|
|
9842
9842
|
"%Math.max%": d,
|
|
9843
9843
|
"%Math.min%": h,
|
|
9844
9844
|
"%Math.pow%": p,
|
|
9845
9845
|
"%Math.round%": m,
|
|
9846
|
-
"%Math.sign%":
|
|
9846
|
+
"%Math.sign%": v,
|
|
9847
9847
|
"%Reflect.getPrototypeOf%": N
|
|
9848
9848
|
};
|
|
9849
|
-
if (
|
|
9849
|
+
if (L)
|
|
9850
9850
|
try {
|
|
9851
9851
|
null.error;
|
|
9852
9852
|
} catch (re) {
|
|
9853
|
-
var H =
|
|
9853
|
+
var H = L(L(re));
|
|
9854
9854
|
D["%Error.prototype%"] = H;
|
|
9855
9855
|
}
|
|
9856
9856
|
var j = function re(z) {
|
|
@@ -9866,7 +9866,7 @@ function ut() {
|
|
|
9866
9866
|
B && (q = B.prototype);
|
|
9867
9867
|
} else if (z === "%AsyncIteratorPrototype%") {
|
|
9868
9868
|
var V = re("%AsyncGenerator%");
|
|
9869
|
-
V &&
|
|
9869
|
+
V && L && (q = L(V.prototype));
|
|
9870
9870
|
}
|
|
9871
9871
|
return D[z] = q, q;
|
|
9872
9872
|
}, ee = {
|
|
@@ -9922,21 +9922,21 @@ function ut() {
|
|
|
9922
9922
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
9923
9923
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
9924
9924
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
9925
|
-
}, Z = Nr(), te = /* @__PURE__ */ ps(), ye = Z.call(w, Array.prototype.concat), me = Z.call(
|
|
9925
|
+
}, Z = Nr(), te = /* @__PURE__ */ ps(), ye = Z.call(w, Array.prototype.concat), me = Z.call($, Array.prototype.splice), De = Z.call(w, String.prototype.replace), Be = Z.call(w, String.prototype.slice), R = Z.call(w, RegExp.prototype.exec), _ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, U = function(z) {
|
|
9926
9926
|
var q = Be(z, 0, 1), B = Be(z, -1);
|
|
9927
9927
|
if (q === "%" && B !== "%")
|
|
9928
9928
|
throw new a("invalid intrinsic syntax, expected closing `%`");
|
|
9929
9929
|
if (B === "%" && q !== "%")
|
|
9930
9930
|
throw new a("invalid intrinsic syntax, expected opening `%`");
|
|
9931
9931
|
var V = [];
|
|
9932
|
-
return De(z,
|
|
9932
|
+
return De(z, _, function(ge, xe, be, Ae) {
|
|
9933
9933
|
V[V.length] = be ? De(Ae, W, "$1") : xe || ge;
|
|
9934
9934
|
}), V;
|
|
9935
9935
|
}, J = function(z, q) {
|
|
9936
9936
|
var B = z, V;
|
|
9937
9937
|
if (te(ee, B) && (V = ee[B], B = "%" + V[0] + "%"), te(D, B)) {
|
|
9938
9938
|
var ge = D[B];
|
|
9939
|
-
if (ge ===
|
|
9939
|
+
if (ge === A && (ge = j(B)), typeof ge > "u" && !q)
|
|
9940
9940
|
throw new s("intrinsic " + z + " exists, but is not available. Please file an issue!");
|
|
9941
9941
|
return {
|
|
9942
9942
|
alias: V,
|
|
@@ -10058,15 +10058,15 @@ function Wd() {
|
|
|
10058
10058
|
for (var d = 1; d < arguments.length; ++d) {
|
|
10059
10059
|
var h = n(arguments[d]), p = e(h), m = t && (n.getOwnPropertySymbols || a);
|
|
10060
10060
|
if (m)
|
|
10061
|
-
for (var
|
|
10062
|
-
var x = g
|
|
10061
|
+
for (var v = m(h), g = 0; g < v.length; ++g) {
|
|
10062
|
+
var x = v[g];
|
|
10063
10063
|
o(h, x) && i(p, x);
|
|
10064
10064
|
}
|
|
10065
10065
|
for (var S = 0; S < p.length; ++S) {
|
|
10066
|
-
var
|
|
10067
|
-
if (o(h,
|
|
10068
|
-
var
|
|
10069
|
-
f[
|
|
10066
|
+
var I = p[S];
|
|
10067
|
+
if (o(h, I)) {
|
|
10068
|
+
var E = h[I];
|
|
10069
|
+
f[I] = E;
|
|
10070
10070
|
}
|
|
10071
10071
|
}
|
|
10072
10072
|
}
|
|
@@ -10285,21 +10285,21 @@ var Ao, Al;
|
|
|
10285
10285
|
function Wn() {
|
|
10286
10286
|
if (Al) return Ao;
|
|
10287
10287
|
Al = 1;
|
|
10288
|
-
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, s = i && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, u = c ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf,
|
|
10288
|
+
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, s = i && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, u = c ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, v = Object.prototype.toString, g = Function.prototype.toString, x = String.prototype.match, S = String.prototype.slice, I = String.prototype.replace, E = String.prototype.toUpperCase, C = String.prototype.toLowerCase, k = RegExp.prototype.test, L = Array.prototype.concat, P = Array.prototype.join, N = Array.prototype.slice, $ = Math.floor, w = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, A = Object.getOwnPropertySymbols, M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", H = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, j = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(y) {
|
|
10289
10289
|
return y.__proto__;
|
|
10290
10290
|
} : null);
|
|
10291
10291
|
function Z(y, b) {
|
|
10292
|
-
if (y === 1 / 0 || y === -1 / 0 || y !== y || y && y > -1e3 && y < 1e3 ||
|
|
10292
|
+
if (y === 1 / 0 || y === -1 / 0 || y !== y || y && y > -1e3 && y < 1e3 || k.call(/e/, b))
|
|
10293
10293
|
return b;
|
|
10294
10294
|
var ie = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
10295
10295
|
if (typeof y == "number") {
|
|
10296
|
-
var ae = y < 0 ?
|
|
10296
|
+
var ae = y < 0 ? -$(-y) : $(y);
|
|
10297
10297
|
if (ae !== y) {
|
|
10298
10298
|
var se = String(ae), Y = S.call(b, se.length + 1);
|
|
10299
|
-
return
|
|
10299
|
+
return I.call(se, ie, "$&_") + "." + I.call(I.call(Y, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
10300
10300
|
}
|
|
10301
10301
|
}
|
|
10302
|
-
return
|
|
10302
|
+
return I.call(b, ie, "$&_");
|
|
10303
10303
|
}
|
|
10304
10304
|
var te = l2, ye = te.custom, me = ge(ye) ? ye : null, De = {
|
|
10305
10305
|
__proto__: null,
|
|
@@ -10361,26 +10361,26 @@ function Wn() {
|
|
|
10361
10361
|
}
|
|
10362
10362
|
if (typeof b == "function" && !re(b)) {
|
|
10363
10363
|
var vs = Ye(b), ys = Mr(b, ze);
|
|
10364
|
-
return "[Function" + (vs ? ": " + vs : " (anonymous)") + "]" + (ys.length > 0 ? " { " +
|
|
10364
|
+
return "[Function" + (vs ? ": " + vs : " (anonymous)") + "]" + (ys.length > 0 ? " { " + P.call(ys, ", ") + " }" : "");
|
|
10365
10365
|
}
|
|
10366
10366
|
if (ge(b)) {
|
|
10367
|
-
var xs = D ?
|
|
10367
|
+
var xs = D ? I.call(String(b), /^(Symbol\(.*\))_[^)]*$/, "$1") : M.call(b);
|
|
10368
10368
|
return typeof b == "object" && !D ? ft(xs) : xs;
|
|
10369
10369
|
}
|
|
10370
10370
|
if (dt(b)) {
|
|
10371
|
-
for (var Zt = "<" +
|
|
10372
|
-
Zt += " " + Yn[Lr].name + "=" + R(
|
|
10373
|
-
return Zt += ">", b.childNodes && b.childNodes.length && (Zt += "..."), Zt += "</" +
|
|
10371
|
+
for (var Zt = "<" + C.call(String(b.nodeName)), Yn = b.attributes || [], Lr = 0; Lr < Yn.length; Lr++)
|
|
10372
|
+
Zt += " " + Yn[Lr].name + "=" + R(_(Yn[Lr].value), "double", Y);
|
|
10373
|
+
return Zt += ">", b.childNodes && b.childNodes.length && (Zt += "..."), Zt += "</" + C.call(String(b.nodeName)) + ">", Zt;
|
|
10374
10374
|
}
|
|
10375
10375
|
if (U(b)) {
|
|
10376
10376
|
if (b.length === 0)
|
|
10377
10377
|
return "[]";
|
|
10378
10378
|
var Xn = Mr(b, ze);
|
|
10379
|
-
return Dt && !ff(Xn) ? "[" + Vn(Xn, Dt) + "]" : "[ " +
|
|
10379
|
+
return Dt && !ff(Xn) ? "[" + Vn(Xn, Dt) + "]" : "[ " + P.call(Xn, ", ") + " ]";
|
|
10380
10380
|
}
|
|
10381
10381
|
if (z(b)) {
|
|
10382
10382
|
var Jn = Mr(b, ze);
|
|
10383
|
-
return !("cause" in Error.prototype) && "cause" in b && !j.call(b, "cause") ? "{ [" + String(b) + "] " +
|
|
10383
|
+
return !("cause" in Error.prototype) && "cause" in b && !j.call(b, "cause") ? "{ [" + String(b) + "] " + P.call(L.call("[cause]: " + ze(b.cause), Jn), ", ") + " }" : Jn.length === 0 ? "[" + String(b) + "]" : "{ [" + String(b) + "] " + P.call(Jn, ", ") + " }";
|
|
10384
10384
|
}
|
|
10385
10385
|
if (typeof b == "object" && ht) {
|
|
10386
10386
|
if (me && typeof b[me] == "function" && te)
|
|
@@ -10419,8 +10419,8 @@ function Wn() {
|
|
|
10419
10419
|
if (typeof globalThis < "u" && b === globalThis || typeof kn < "u" && b === kn)
|
|
10420
10420
|
return "{ [object globalThis] }";
|
|
10421
10421
|
if (!J(b) && !re(b)) {
|
|
10422
|
-
var Zn = Mr(b, ze), Ss = ee ? ee(b) === Object.prototype : b instanceof Object || b.constructor === Object, Qn = b instanceof Object ? "" : "null prototype", As = !Ss && H && Object(b) === b && H in b ? S.call(Ie(b), 8, -1) : Qn ? "Object" : "", pf = Ss || typeof b.constructor != "function" ? "" : b.constructor.name ? b.constructor.name + " " : "", ei = pf + (As || Qn ? "[" +
|
|
10423
|
-
return Zn.length === 0 ? ei + "{}" : Dt ? ei + "{" + Vn(Zn, Dt) + "}" : ei + "{ " +
|
|
10422
|
+
var Zn = Mr(b, ze), Ss = ee ? ee(b) === Object.prototype : b instanceof Object || b.constructor === Object, Qn = b instanceof Object ? "" : "null prototype", As = !Ss && H && Object(b) === b && H in b ? S.call(Ie(b), 8, -1) : Qn ? "Object" : "", pf = Ss || typeof b.constructor != "function" ? "" : b.constructor.name ? b.constructor.name + " " : "", ei = pf + (As || Qn ? "[" + P.call(L.call([], As || [], Qn || []), ": ") + "] " : "");
|
|
10423
|
+
return Zn.length === 0 ? ei + "{}" : Dt ? ei + "{" + Vn(Zn, Dt) + "}" : ei + "{ " + P.call(Zn, ", ") + " }";
|
|
10424
10424
|
}
|
|
10425
10425
|
return String(b);
|
|
10426
10426
|
};
|
|
@@ -10428,8 +10428,8 @@ function Wn() {
|
|
|
10428
10428
|
var ae = ie.quoteStyle || b, se = De[ae];
|
|
10429
10429
|
return se + y + se;
|
|
10430
10430
|
}
|
|
10431
|
-
function
|
|
10432
|
-
return
|
|
10431
|
+
function _(y) {
|
|
10432
|
+
return I.call(String(y), /"/g, """);
|
|
10433
10433
|
}
|
|
10434
10434
|
function W(y) {
|
|
10435
10435
|
return !H || !(typeof y == "object" && (H in y || typeof y[H] < "u"));
|
|
@@ -10460,10 +10460,10 @@ function Wn() {
|
|
|
10460
10460
|
return y && typeof y == "object" && y instanceof Symbol;
|
|
10461
10461
|
if (typeof y == "symbol")
|
|
10462
10462
|
return !0;
|
|
10463
|
-
if (!y || typeof y != "object" || !
|
|
10463
|
+
if (!y || typeof y != "object" || !M)
|
|
10464
10464
|
return !1;
|
|
10465
10465
|
try {
|
|
10466
|
-
return
|
|
10466
|
+
return M.call(y), !0;
|
|
10467
10467
|
} catch {
|
|
10468
10468
|
}
|
|
10469
10469
|
return !1;
|
|
@@ -10484,12 +10484,12 @@ function Wn() {
|
|
|
10484
10484
|
return be.call(y, b);
|
|
10485
10485
|
}
|
|
10486
10486
|
function Ie(y) {
|
|
10487
|
-
return
|
|
10487
|
+
return v.call(y);
|
|
10488
10488
|
}
|
|
10489
10489
|
function Ye(y) {
|
|
10490
10490
|
if (y.name)
|
|
10491
10491
|
return y.name;
|
|
10492
|
-
var b = x.call(
|
|
10492
|
+
var b = x.call(g.call(y), /^function\s*([\w$]+)/);
|
|
10493
10493
|
return b ? b[1] : null;
|
|
10494
10494
|
}
|
|
10495
10495
|
function je(y, b) {
|
|
@@ -10579,7 +10579,7 @@ function Wn() {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
var se = Be[b.quoteStyle || "single"];
|
|
10581
10581
|
se.lastIndex = 0;
|
|
10582
|
-
var Y =
|
|
10582
|
+
var Y = I.call(I.call(y, se, "\\$1"), /[\x00-\x1f]/g, Jt);
|
|
10583
10583
|
return R(Y, "single", b);
|
|
10584
10584
|
}
|
|
10585
10585
|
function Jt(y) {
|
|
@@ -10590,7 +10590,7 @@ function Wn() {
|
|
|
10590
10590
|
12: "f",
|
|
10591
10591
|
13: "r"
|
|
10592
10592
|
}[b];
|
|
10593
|
-
return ie ? "\\" + ie : "\\x" + (b < 16 ? "0" : "") +
|
|
10593
|
+
return ie ? "\\" + ie : "\\x" + (b < 16 ? "0" : "") + E.call(b.toString(16));
|
|
10594
10594
|
}
|
|
10595
10595
|
function ft(y) {
|
|
10596
10596
|
return "Object(" + y + ")";
|
|
@@ -10599,7 +10599,7 @@ function Wn() {
|
|
|
10599
10599
|
return y + " { ? }";
|
|
10600
10600
|
}
|
|
10601
10601
|
function gs(y, b, ie, ae) {
|
|
10602
|
-
var se = ae ? Vn(ie, ae) :
|
|
10602
|
+
var se = ae ? Vn(ie, ae) : P.call(ie, ", ");
|
|
10603
10603
|
return y + " (" + b + ") {" + se + "}";
|
|
10604
10604
|
}
|
|
10605
10605
|
function ff(y) {
|
|
@@ -10614,12 +10614,12 @@ function Wn() {
|
|
|
10614
10614
|
if (y.indent === " ")
|
|
10615
10615
|
ie = " ";
|
|
10616
10616
|
else if (typeof y.indent == "number" && y.indent > 0)
|
|
10617
|
-
ie =
|
|
10617
|
+
ie = P.call(Array(y.indent + 1), " ");
|
|
10618
10618
|
else
|
|
10619
10619
|
return null;
|
|
10620
10620
|
return {
|
|
10621
10621
|
base: ie,
|
|
10622
|
-
prev:
|
|
10622
|
+
prev: P.call(Array(b + 1), ie)
|
|
10623
10623
|
};
|
|
10624
10624
|
}
|
|
10625
10625
|
function Vn(y, b) {
|
|
@@ -10627,7 +10627,7 @@ function Wn() {
|
|
|
10627
10627
|
return "";
|
|
10628
10628
|
var ie = `
|
|
10629
10629
|
` + b.prev + b.base;
|
|
10630
|
-
return ie +
|
|
10630
|
+
return ie + P.call(y, "," + ie) + `
|
|
10631
10631
|
` + b.prev;
|
|
10632
10632
|
}
|
|
10633
10633
|
function Mr(y, b) {
|
|
@@ -10637,15 +10637,15 @@ function Wn() {
|
|
|
10637
10637
|
for (var se = 0; se < y.length; se++)
|
|
10638
10638
|
ae[se] = Ae(y, se) ? b(y[se], y) : "";
|
|
10639
10639
|
}
|
|
10640
|
-
var Y = typeof
|
|
10640
|
+
var Y = typeof A == "function" ? A(y) : [], ht;
|
|
10641
10641
|
if (D) {
|
|
10642
10642
|
ht = {};
|
|
10643
10643
|
for (var Ct = 0; Ct < Y.length; Ct++)
|
|
10644
10644
|
ht["$" + Y[Ct]] = Y[Ct];
|
|
10645
10645
|
}
|
|
10646
10646
|
for (var Pe in y)
|
|
10647
|
-
Ae(y, Pe) && (ie && String(Number(Pe)) === Pe && Pe < y.length || D && ht["$" + Pe] instanceof Symbol || (
|
|
10648
|
-
if (typeof
|
|
10647
|
+
Ae(y, Pe) && (ie && String(Number(Pe)) === Pe && Pe < y.length || D && ht["$" + Pe] instanceof Symbol || (k.call(/[^\w$]/, Pe) ? ae.push(b(Pe, y) + ": " + b(y[Pe], y)) : ae.push(Pe + ": " + b(y[Pe], y))));
|
|
10648
|
+
if (typeof A == "function")
|
|
10649
10649
|
for (var pt = 0; pt < Y.length; pt++)
|
|
10650
10650
|
j.call(y, Y[pt]) && ae.push("[" + b(Y[pt]) + "]: " + b(y[Y[pt]], y));
|
|
10651
10651
|
return ae;
|
|
@@ -10771,8 +10771,8 @@ function d2() {
|
|
|
10771
10771
|
has: function(m) {
|
|
10772
10772
|
return o && m && (typeof m == "object" || typeof m == "function") && d ? c(d, m) : !!h && h.has(m);
|
|
10773
10773
|
},
|
|
10774
|
-
set: function(m,
|
|
10775
|
-
o && m && (typeof m == "object" || typeof m == "function") ? (d || (d = new o()), s(d, m,
|
|
10774
|
+
set: function(m, v) {
|
|
10775
|
+
o && m && (typeof m == "object" || typeof m == "function") ? (d || (d = new o()), s(d, m, v)) : n && (h || (h = n()), h.set(m, v));
|
|
10776
10776
|
}
|
|
10777
10777
|
};
|
|
10778
10778
|
return p;
|
|
@@ -10988,42 +10988,42 @@ function p2() {
|
|
|
10988
10988
|
return Array.prototype[r].call(N);
|
|
10989
10989
|
};
|
|
10990
10990
|
} else {
|
|
10991
|
-
var n = Qd(), i = ef(), o = /* @__PURE__ */ ut(), a = o("%Map%", !0), s = o("%Set%", !0), c = Vd(), u = c("Array.prototype.push"), f = c("String.prototype.charCodeAt"), d = c("String.prototype.slice"), h = function(N,
|
|
10991
|
+
var n = Qd(), i = ef(), o = /* @__PURE__ */ ut(), a = o("%Map%", !0), s = o("%Set%", !0), c = Vd(), u = c("Array.prototype.push"), f = c("String.prototype.charCodeAt"), d = c("String.prototype.slice"), h = function(N, $) {
|
|
10992
10992
|
var w = N.length;
|
|
10993
|
-
if (
|
|
10994
|
-
return
|
|
10995
|
-
var
|
|
10996
|
-
if (
|
|
10997
|
-
return
|
|
10998
|
-
var
|
|
10999
|
-
return
|
|
10993
|
+
if ($ + 1 >= w)
|
|
10994
|
+
return $ + 1;
|
|
10995
|
+
var A = f(N, $);
|
|
10996
|
+
if (A < 55296 || A > 56319)
|
|
10997
|
+
return $ + 1;
|
|
10998
|
+
var M = f(N, $ + 1);
|
|
10999
|
+
return M < 56320 || M > 57343 ? $ + 1 : $ + 2;
|
|
11000
11000
|
}, p = function(N) {
|
|
11001
|
-
var
|
|
11001
|
+
var $ = 0;
|
|
11002
11002
|
return {
|
|
11003
11003
|
next: function() {
|
|
11004
|
-
var
|
|
11005
|
-
return
|
|
11006
|
-
done:
|
|
11007
|
-
value:
|
|
11004
|
+
var A = $ >= N.length, M;
|
|
11005
|
+
return A || (M = N[$], $ += 1), {
|
|
11006
|
+
done: A,
|
|
11007
|
+
value: M
|
|
11008
11008
|
};
|
|
11009
11009
|
}
|
|
11010
11010
|
};
|
|
11011
|
-
}, m = function(N,
|
|
11011
|
+
}, m = function(N, $) {
|
|
11012
11012
|
if (n(N) || e(N))
|
|
11013
11013
|
return p(N);
|
|
11014
11014
|
if (i(N)) {
|
|
11015
11015
|
var w = 0;
|
|
11016
11016
|
return {
|
|
11017
11017
|
next: function() {
|
|
11018
|
-
var
|
|
11019
|
-
return w =
|
|
11020
|
-
done:
|
|
11018
|
+
var M = h(N, w), D = d(N, w, M);
|
|
11019
|
+
return w = M, {
|
|
11020
|
+
done: M > N.length,
|
|
11021
11021
|
value: D
|
|
11022
11022
|
};
|
|
11023
11023
|
}
|
|
11024
11024
|
};
|
|
11025
11025
|
}
|
|
11026
|
-
if (
|
|
11026
|
+
if ($ && typeof N["_es6-shim iterator_"] < "u")
|
|
11027
11027
|
return N["_es6-shim iterator_"]();
|
|
11028
11028
|
};
|
|
11029
11029
|
if (!a && !s)
|
|
@@ -11032,37 +11032,37 @@ function p2() {
|
|
|
11032
11032
|
return m(N, !0);
|
|
11033
11033
|
};
|
|
11034
11034
|
else {
|
|
11035
|
-
var
|
|
11035
|
+
var v = /* @__PURE__ */ tf(), g = /* @__PURE__ */ rf(), x = c("Map.prototype.forEach", !0), S = c("Set.prototype.forEach", !0);
|
|
11036
11036
|
if (typeof process > "u" || !process.versions || !process.versions.node)
|
|
11037
|
-
var
|
|
11038
|
-
var
|
|
11039
|
-
if (
|
|
11040
|
-
if (
|
|
11041
|
-
return t(
|
|
11042
|
-
if (
|
|
11043
|
-
return
|
|
11037
|
+
var I = c("Map.prototype.iterator", !0), E = c("Set.prototype.iterator", !0);
|
|
11038
|
+
var C = c("Map.prototype.@@iterator", !0) || c("Map.prototype._es6-shim iterator_", !0), k = c("Set.prototype.@@iterator", !0) || c("Set.prototype._es6-shim iterator_", !0), L = function(N) {
|
|
11039
|
+
if (v(N)) {
|
|
11040
|
+
if (I)
|
|
11041
|
+
return t(I(N));
|
|
11042
|
+
if (C)
|
|
11043
|
+
return C(N);
|
|
11044
11044
|
if (x) {
|
|
11045
|
-
var
|
|
11046
|
-
return x(N, function(
|
|
11047
|
-
u(
|
|
11048
|
-
}), p(
|
|
11045
|
+
var $ = [];
|
|
11046
|
+
return x(N, function(A, M) {
|
|
11047
|
+
u($, [M, A]);
|
|
11048
|
+
}), p($);
|
|
11049
11049
|
}
|
|
11050
11050
|
}
|
|
11051
|
-
if (
|
|
11052
|
-
if (
|
|
11053
|
-
return t(
|
|
11054
|
-
if (
|
|
11055
|
-
return
|
|
11051
|
+
if (g(N)) {
|
|
11052
|
+
if (E)
|
|
11053
|
+
return t(E(N));
|
|
11054
|
+
if (k)
|
|
11055
|
+
return k(N);
|
|
11056
11056
|
if (S) {
|
|
11057
11057
|
var w = [];
|
|
11058
|
-
return S(N, function(
|
|
11059
|
-
u(w,
|
|
11058
|
+
return S(N, function(A) {
|
|
11059
|
+
u(w, A);
|
|
11060
11060
|
}), p(w);
|
|
11061
11061
|
}
|
|
11062
11062
|
}
|
|
11063
11063
|
};
|
|
11064
11064
|
nr.exports = function(N) {
|
|
11065
|
-
return
|
|
11065
|
+
return L(N) || m(N);
|
|
11066
11066
|
};
|
|
11067
11067
|
}
|
|
11068
11068
|
}
|
|
@@ -11179,8 +11179,8 @@ function sf() {
|
|
|
11179
11179
|
/** @type {unknown} */
|
|
11180
11180
|
c
|
|
11181
11181
|
);
|
|
11182
|
-
} catch (
|
|
11183
|
-
return
|
|
11182
|
+
} catch (v) {
|
|
11183
|
+
return v === a;
|
|
11184
11184
|
}
|
|
11185
11185
|
};
|
|
11186
11186
|
} else {
|
|
@@ -11421,57 +11421,57 @@ function O2() {
|
|
|
11421
11421
|
}
|
|
11422
11422
|
else
|
|
11423
11423
|
t = null;
|
|
11424
|
-
var i = /^\s*class\b/, o = function(
|
|
11424
|
+
var i = /^\s*class\b/, o = function(I) {
|
|
11425
11425
|
try {
|
|
11426
|
-
var
|
|
11427
|
-
return i.test(
|
|
11426
|
+
var E = e.call(I);
|
|
11427
|
+
return i.test(E);
|
|
11428
11428
|
} catch {
|
|
11429
11429
|
return !1;
|
|
11430
11430
|
}
|
|
11431
|
-
}, a = function(
|
|
11431
|
+
}, a = function(I) {
|
|
11432
11432
|
try {
|
|
11433
|
-
return o(
|
|
11433
|
+
return o(I) ? !1 : (e.call(I), !0);
|
|
11434
11434
|
} catch {
|
|
11435
11435
|
return !1;
|
|
11436
11436
|
}
|
|
11437
|
-
}, s = Object.prototype.toString, c = "[object Object]", u = "[object Function]", f = "[object GeneratorFunction]", d = "[object HTMLAllCollection]", h = "[object HTML document.all class]", p = "[object HTMLCollection]", m = typeof Symbol == "function" && !!Symbol.toStringTag,
|
|
11437
|
+
}, s = Object.prototype.toString, c = "[object Object]", u = "[object Function]", f = "[object GeneratorFunction]", d = "[object HTMLAllCollection]", h = "[object HTML document.all class]", p = "[object HTMLCollection]", m = typeof Symbol == "function" && !!Symbol.toStringTag, v = !(0 in [,]), g = function() {
|
|
11438
11438
|
return !1;
|
|
11439
11439
|
};
|
|
11440
11440
|
if (typeof document == "object") {
|
|
11441
11441
|
var x = document.all;
|
|
11442
|
-
s.call(x) === s.call(document.all) && (
|
|
11443
|
-
if ((
|
|
11442
|
+
s.call(x) === s.call(document.all) && (g = function(I) {
|
|
11443
|
+
if ((v || !I) && (typeof I > "u" || typeof I == "object"))
|
|
11444
11444
|
try {
|
|
11445
|
-
var
|
|
11446
|
-
return (
|
|
11445
|
+
var E = s.call(I);
|
|
11446
|
+
return (E === d || E === h || E === p || E === c) && I("") == null;
|
|
11447
11447
|
} catch {
|
|
11448
11448
|
}
|
|
11449
11449
|
return !1;
|
|
11450
11450
|
});
|
|
11451
11451
|
}
|
|
11452
|
-
return Yo = t ? function(
|
|
11453
|
-
if (
|
|
11452
|
+
return Yo = t ? function(I) {
|
|
11453
|
+
if (g(I))
|
|
11454
11454
|
return !0;
|
|
11455
|
-
if (!
|
|
11455
|
+
if (!I || typeof I != "function" && typeof I != "object")
|
|
11456
11456
|
return !1;
|
|
11457
11457
|
try {
|
|
11458
|
-
t(
|
|
11459
|
-
} catch (
|
|
11460
|
-
if (
|
|
11458
|
+
t(I, null, r);
|
|
11459
|
+
} catch (E) {
|
|
11460
|
+
if (E !== n)
|
|
11461
11461
|
return !1;
|
|
11462
11462
|
}
|
|
11463
|
-
return !o(
|
|
11464
|
-
} : function(
|
|
11465
|
-
if (
|
|
11463
|
+
return !o(I) && a(I);
|
|
11464
|
+
} : function(I) {
|
|
11465
|
+
if (g(I))
|
|
11466
11466
|
return !0;
|
|
11467
|
-
if (!
|
|
11467
|
+
if (!I || typeof I != "function" && typeof I != "object")
|
|
11468
11468
|
return !1;
|
|
11469
11469
|
if (m)
|
|
11470
|
-
return a(
|
|
11471
|
-
if (o(
|
|
11470
|
+
return a(I);
|
|
11471
|
+
if (o(I))
|
|
11472
11472
|
return !1;
|
|
11473
|
-
var
|
|
11474
|
-
return
|
|
11473
|
+
var E = s.call(I);
|
|
11474
|
+
return E !== u && E !== f && !/^\[object HTML/.test(E) ? !1 : a(I);
|
|
11475
11475
|
}, Yo;
|
|
11476
11476
|
}
|
|
11477
11477
|
var Xo, eu;
|
|
@@ -11530,27 +11530,27 @@ var Qo, nu;
|
|
|
11530
11530
|
function M2() {
|
|
11531
11531
|
if (nu) return Qo;
|
|
11532
11532
|
nu = 1;
|
|
11533
|
-
var e = P2(), t = /* @__PURE__ */ k2(), r = Xt(), n = /* @__PURE__ */ Ee(), i = /* @__PURE__ */ Mt(), o = n("Object.prototype.toString"), a = $t()(), s = typeof globalThis > "u" ? kn : globalThis, c = t(), u = n("String.prototype.slice"), f = Object.getPrototypeOf, d = n("Array.prototype.indexOf", !0) || function(
|
|
11534
|
-
for (var S = 0; S <
|
|
11535
|
-
if (
|
|
11533
|
+
var e = P2(), t = /* @__PURE__ */ k2(), r = Xt(), n = /* @__PURE__ */ Ee(), i = /* @__PURE__ */ Mt(), o = n("Object.prototype.toString"), a = $t()(), s = typeof globalThis > "u" ? kn : globalThis, c = t(), u = n("String.prototype.slice"), f = Object.getPrototypeOf, d = n("Array.prototype.indexOf", !0) || function(g, x) {
|
|
11534
|
+
for (var S = 0; S < g.length; S += 1)
|
|
11535
|
+
if (g[S] === x)
|
|
11536
11536
|
return S;
|
|
11537
11537
|
return -1;
|
|
11538
11538
|
}, h = { __proto__: null };
|
|
11539
|
-
a && i && f ? e(c, function(
|
|
11540
|
-
var
|
|
11541
|
-
if (Symbol.toStringTag in
|
|
11542
|
-
var x = f(
|
|
11539
|
+
a && i && f ? e(c, function(v) {
|
|
11540
|
+
var g = new s[v]();
|
|
11541
|
+
if (Symbol.toStringTag in g) {
|
|
11542
|
+
var x = f(g), S = i(x, Symbol.toStringTag);
|
|
11543
11543
|
if (!S) {
|
|
11544
|
-
var
|
|
11545
|
-
S = i(
|
|
11544
|
+
var I = f(x);
|
|
11545
|
+
S = i(I, Symbol.toStringTag);
|
|
11546
11546
|
}
|
|
11547
|
-
h["$" +
|
|
11547
|
+
h["$" + v] = r(S.get);
|
|
11548
11548
|
}
|
|
11549
|
-
}) : e(c, function(
|
|
11550
|
-
var
|
|
11551
|
-
x && (h["$" +
|
|
11549
|
+
}) : e(c, function(v) {
|
|
11550
|
+
var g = new s[v](), x = g.slice || g.set;
|
|
11551
|
+
x && (h["$" + v] = r(x));
|
|
11552
11552
|
});
|
|
11553
|
-
var p = function(
|
|
11553
|
+
var p = function(g) {
|
|
11554
11554
|
var x = !1;
|
|
11555
11555
|
return e(
|
|
11556
11556
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -11558,15 +11558,15 @@ function M2() {
|
|
|
11558
11558
|
/** @type {any} */
|
|
11559
11559
|
h,
|
|
11560
11560
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
11561
|
-
function(S,
|
|
11561
|
+
function(S, I) {
|
|
11562
11562
|
if (!x)
|
|
11563
11563
|
try {
|
|
11564
|
-
"$" + S(
|
|
11564
|
+
"$" + S(g) === I && (x = u(I, 1));
|
|
11565
11565
|
} catch {
|
|
11566
11566
|
}
|
|
11567
11567
|
}
|
|
11568
11568
|
), x;
|
|
11569
|
-
}, m = function(
|
|
11569
|
+
}, m = function(g) {
|
|
11570
11570
|
var x = !1;
|
|
11571
11571
|
return e(
|
|
11572
11572
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -11574,23 +11574,23 @@ function M2() {
|
|
|
11574
11574
|
/** @type {any} */
|
|
11575
11575
|
h,
|
|
11576
11576
|
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
11577
|
-
function(S,
|
|
11577
|
+
function(S, I) {
|
|
11578
11578
|
if (!x)
|
|
11579
11579
|
try {
|
|
11580
|
-
S(
|
|
11580
|
+
S(g), x = u(I, 1);
|
|
11581
11581
|
} catch {
|
|
11582
11582
|
}
|
|
11583
11583
|
}
|
|
11584
11584
|
), x;
|
|
11585
11585
|
};
|
|
11586
|
-
return Qo = function(
|
|
11587
|
-
if (!
|
|
11586
|
+
return Qo = function(g) {
|
|
11587
|
+
if (!g || typeof g != "object")
|
|
11588
11588
|
return !1;
|
|
11589
11589
|
if (!a) {
|
|
11590
|
-
var x = u(o(
|
|
11591
|
-
return d(c, x) > -1 ? x : x !== "Object" ? !1 : m(
|
|
11590
|
+
var x = u(o(g), 8, -1);
|
|
11591
|
+
return d(c, x) > -1 ? x : x !== "Object" ? !1 : m(g);
|
|
11592
11592
|
}
|
|
11593
|
-
return i ? p(
|
|
11593
|
+
return i ? p(g) : null;
|
|
11594
11594
|
}, Qo;
|
|
11595
11595
|
}
|
|
11596
11596
|
var ea, iu;
|
|
@@ -11606,10 +11606,10 @@ var ta, ou;
|
|
|
11606
11606
|
function $2() {
|
|
11607
11607
|
if (ou) return ta;
|
|
11608
11608
|
ou = 1;
|
|
11609
|
-
var e = r2(), t = Vd(), r = a2(), n = /* @__PURE__ */ ut(), i = p2(), o = Zd(), a = g2(), s = /* @__PURE__ */ Xd(), c = Qd(), u = /* @__PURE__ */ af(), f = /* @__PURE__ */ v2(), d = sf(), h = /* @__PURE__ */ y2(), p = os(), m = T2(),
|
|
11610
|
-
function D(R,
|
|
11609
|
+
var e = r2(), t = Vd(), r = a2(), n = /* @__PURE__ */ ut(), i = p2(), o = Zd(), a = g2(), s = /* @__PURE__ */ Xd(), c = Qd(), u = /* @__PURE__ */ af(), f = /* @__PURE__ */ v2(), d = sf(), h = /* @__PURE__ */ y2(), p = os(), m = T2(), v = /* @__PURE__ */ R2(), g = /* @__PURE__ */ M2(), x = /* @__PURE__ */ L2(), S = t("SharedArrayBuffer.prototype.byteLength", !0), I = t("Date.prototype.getTime"), E = Object.getPrototypeOf, C = t("Object.prototype.toString"), k = n("%Set%", !0), L = t("Map.prototype.has", !0), P = t("Map.prototype.get", !0), N = t("Map.prototype.size", !0), $ = t("Set.prototype.add", !0), w = t("Set.prototype.delete", !0), A = t("Set.prototype.has", !0), M = t("Set.prototype.size", !0);
|
|
11610
|
+
function D(R, _, W, U) {
|
|
11611
11611
|
for (var J = i(R), re; (re = J.next()) && !re.done; )
|
|
11612
|
-
if (te(
|
|
11612
|
+
if (te(_, re.value, W, U))
|
|
11613
11613
|
return w(R, re.value), !0;
|
|
11614
11614
|
return !1;
|
|
11615
11615
|
}
|
|
@@ -11619,152 +11619,152 @@ function $2() {
|
|
|
11619
11619
|
if (typeof R != "object")
|
|
11620
11620
|
return typeof R == "symbol" ? !1 : typeof R == "string" || typeof R == "number" ? +R == +R : !0;
|
|
11621
11621
|
}
|
|
11622
|
-
function j(R,
|
|
11622
|
+
function j(R, _, W, U, J, re) {
|
|
11623
11623
|
var z = H(W);
|
|
11624
11624
|
if (z != null)
|
|
11625
11625
|
return z;
|
|
11626
|
-
var q =
|
|
11627
|
-
return typeof q > "u" && !_
|
|
11626
|
+
var q = P(_, z), B = e({}, J, { strict: !1 });
|
|
11627
|
+
return typeof q > "u" && !L(_, z) || !te(U, q, B, re) ? !1 : !L(R, z) && te(U, q, B, re);
|
|
11628
11628
|
}
|
|
11629
|
-
function ee(R,
|
|
11629
|
+
function ee(R, _, W) {
|
|
11630
11630
|
var U = H(W);
|
|
11631
|
-
return U ?? (
|
|
11631
|
+
return U ?? (A(_, U) && !A(R, U));
|
|
11632
11632
|
}
|
|
11633
|
-
function Z(R,
|
|
11633
|
+
function Z(R, _, W, U, J, re) {
|
|
11634
11634
|
for (var z = i(R), q, B; (q = z.next()) && !q.done; )
|
|
11635
11635
|
if (B = q.value, // eslint-disable-next-line no-use-before-define
|
|
11636
|
-
te(W, B, J, re) && te(U,
|
|
11636
|
+
te(W, B, J, re) && te(U, P(_, B), J, re))
|
|
11637
11637
|
return w(R, B), !0;
|
|
11638
11638
|
return !1;
|
|
11639
11639
|
}
|
|
11640
|
-
function te(R,
|
|
11640
|
+
function te(R, _, W, U) {
|
|
11641
11641
|
var J = W || {};
|
|
11642
|
-
if (J.strict ? a(R,
|
|
11642
|
+
if (J.strict ? a(R, _) : R === _)
|
|
11643
11643
|
return !0;
|
|
11644
|
-
var re = m(R), z = m(
|
|
11644
|
+
var re = m(R), z = m(_);
|
|
11645
11645
|
if (re !== z)
|
|
11646
11646
|
return !1;
|
|
11647
|
-
if (!R ||
|
|
11648
|
-
return J.strict ? a(R,
|
|
11649
|
-
var q = U.has(R), B = U.has(
|
|
11647
|
+
if (!R || !_ || typeof R != "object" && typeof _ != "object")
|
|
11648
|
+
return J.strict ? a(R, _) : R == _;
|
|
11649
|
+
var q = U.has(R), B = U.has(_), V;
|
|
11650
11650
|
if (q && B) {
|
|
11651
|
-
if (U.get(R) === U.get(
|
|
11651
|
+
if (U.get(R) === U.get(_))
|
|
11652
11652
|
return !0;
|
|
11653
11653
|
} else
|
|
11654
11654
|
V = {};
|
|
11655
|
-
return q || U.set(R, V), B || U.set(
|
|
11655
|
+
return q || U.set(R, V), B || U.set(_, V), Be(R, _, J, U);
|
|
11656
11656
|
}
|
|
11657
11657
|
function ye(R) {
|
|
11658
11658
|
return !R || typeof R != "object" || typeof R.length != "number" || typeof R.copy != "function" || typeof R.slice != "function" || R.length > 0 && typeof R[0] != "number" ? !1 : !!(R.constructor && R.constructor.isBuffer && R.constructor.isBuffer(R));
|
|
11659
11659
|
}
|
|
11660
|
-
function me(R,
|
|
11661
|
-
if (
|
|
11660
|
+
function me(R, _, W, U) {
|
|
11661
|
+
if (M(R) !== M(_))
|
|
11662
11662
|
return !1;
|
|
11663
|
-
for (var J = i(R), re = i(
|
|
11663
|
+
for (var J = i(R), re = i(_), z, q, B; (z = J.next()) && !z.done; )
|
|
11664
11664
|
if (z.value && typeof z.value == "object")
|
|
11665
|
-
B || (B = new
|
|
11666
|
-
else if (!
|
|
11667
|
-
if (W.strict || !ee(R,
|
|
11665
|
+
B || (B = new k()), $(B, z.value);
|
|
11666
|
+
else if (!A(_, z.value)) {
|
|
11667
|
+
if (W.strict || !ee(R, _, z.value))
|
|
11668
11668
|
return !1;
|
|
11669
|
-
B || (B = new
|
|
11669
|
+
B || (B = new k()), $(B, z.value);
|
|
11670
11670
|
}
|
|
11671
11671
|
if (B) {
|
|
11672
11672
|
for (; (q = re.next()) && !q.done; )
|
|
11673
11673
|
if (q.value && typeof q.value == "object") {
|
|
11674
11674
|
if (!D(B, q.value, W.strict, U))
|
|
11675
11675
|
return !1;
|
|
11676
|
-
} else if (!W.strict && !
|
|
11676
|
+
} else if (!W.strict && !A(R, q.value) && !D(B, q.value, W.strict, U))
|
|
11677
11677
|
return !1;
|
|
11678
|
-
return
|
|
11678
|
+
return M(B) === 0;
|
|
11679
11679
|
}
|
|
11680
11680
|
return !0;
|
|
11681
11681
|
}
|
|
11682
|
-
function De(R,
|
|
11683
|
-
if (N(R) !== N(
|
|
11682
|
+
function De(R, _, W, U) {
|
|
11683
|
+
if (N(R) !== N(_))
|
|
11684
11684
|
return !1;
|
|
11685
|
-
for (var J = i(R), re = i(
|
|
11685
|
+
for (var J = i(R), re = i(_), z, q, B, V, ge, xe; (z = J.next()) && !z.done; )
|
|
11686
11686
|
if (V = z.value[0], ge = z.value[1], V && typeof V == "object")
|
|
11687
|
-
B || (B = new
|
|
11688
|
-
else if (xe =
|
|
11689
|
-
if (W.strict || !j(R,
|
|
11687
|
+
B || (B = new k()), $(B, V);
|
|
11688
|
+
else if (xe = P(_, V), typeof xe > "u" && !L(_, V) || !te(ge, xe, W, U)) {
|
|
11689
|
+
if (W.strict || !j(R, _, V, ge, W, U))
|
|
11690
11690
|
return !1;
|
|
11691
|
-
B || (B = new
|
|
11691
|
+
B || (B = new k()), $(B, V);
|
|
11692
11692
|
}
|
|
11693
11693
|
if (B) {
|
|
11694
11694
|
for (; (q = re.next()) && !q.done; )
|
|
11695
11695
|
if (V = q.value[0], xe = q.value[1], V && typeof V == "object") {
|
|
11696
11696
|
if (!Z(B, R, V, xe, W, U))
|
|
11697
11697
|
return !1;
|
|
11698
|
-
} else if (!W.strict && (!R.has(V) || !te(
|
|
11698
|
+
} else if (!W.strict && (!R.has(V) || !te(P(R, V), xe, W, U)) && !Z(B, R, V, xe, e({}, W, { strict: !1 }), U))
|
|
11699
11699
|
return !1;
|
|
11700
|
-
return
|
|
11700
|
+
return M(B) === 0;
|
|
11701
11701
|
}
|
|
11702
11702
|
return !0;
|
|
11703
11703
|
}
|
|
11704
|
-
function Be(R,
|
|
11704
|
+
function Be(R, _, W, U) {
|
|
11705
11705
|
var J, re;
|
|
11706
|
-
if (typeof R != typeof
|
|
11706
|
+
if (typeof R != typeof _ || R == null || _ == null || C(R) !== C(_) || s(R) !== s(_))
|
|
11707
11707
|
return !1;
|
|
11708
|
-
var z = c(R), q = c(
|
|
11708
|
+
var z = c(R), q = c(_);
|
|
11709
11709
|
if (z !== q)
|
|
11710
11710
|
return !1;
|
|
11711
|
-
var B = R instanceof Error, V =
|
|
11712
|
-
if (B !== V || (B || V) && (R.name !==
|
|
11711
|
+
var B = R instanceof Error, V = _ instanceof Error;
|
|
11712
|
+
if (B !== V || (B || V) && (R.name !== _.name || R.message !== _.message))
|
|
11713
11713
|
return !1;
|
|
11714
|
-
var ge = d(R), xe = d(
|
|
11715
|
-
if (ge !== xe || (ge || xe) && (R.source !==
|
|
11714
|
+
var ge = d(R), xe = d(_);
|
|
11715
|
+
if (ge !== xe || (ge || xe) && (R.source !== _.source || r(R) !== r(_)))
|
|
11716
11716
|
return !1;
|
|
11717
|
-
var be = f(R), Ae = f(
|
|
11718
|
-
if (be !== Ae || (be || Ae) &&
|
|
11717
|
+
var be = f(R), Ae = f(_);
|
|
11718
|
+
if (be !== Ae || (be || Ae) && I(R) !== I(_) || W.strict && E && E(R) !== E(_))
|
|
11719
11719
|
return !1;
|
|
11720
|
-
var Ie =
|
|
11720
|
+
var Ie = g(R), Ye = g(_);
|
|
11721
11721
|
if (Ie !== Ye)
|
|
11722
11722
|
return !1;
|
|
11723
11723
|
if (Ie || Ye) {
|
|
11724
|
-
if (R.length !==
|
|
11724
|
+
if (R.length !== _.length)
|
|
11725
11725
|
return !1;
|
|
11726
11726
|
for (J = 0; J < R.length; J++)
|
|
11727
|
-
if (R[J] !==
|
|
11727
|
+
if (R[J] !== _[J])
|
|
11728
11728
|
return !1;
|
|
11729
11729
|
return !0;
|
|
11730
11730
|
}
|
|
11731
|
-
var je = ye(R), Re = ye(
|
|
11731
|
+
var je = ye(R), Re = ye(_);
|
|
11732
11732
|
if (je !== Re)
|
|
11733
11733
|
return !1;
|
|
11734
11734
|
if (je || Re) {
|
|
11735
|
-
if (R.length !==
|
|
11735
|
+
if (R.length !== _.length)
|
|
11736
11736
|
return !1;
|
|
11737
11737
|
for (J = 0; J < R.length; J++)
|
|
11738
|
-
if (R[J] !==
|
|
11738
|
+
if (R[J] !== _[J])
|
|
11739
11739
|
return !1;
|
|
11740
11740
|
return !0;
|
|
11741
11741
|
}
|
|
11742
|
-
var Xe = u(R), Je = u(
|
|
11742
|
+
var Xe = u(R), Je = u(_);
|
|
11743
11743
|
if (Xe !== Je)
|
|
11744
11744
|
return !1;
|
|
11745
11745
|
if (Xe || Je)
|
|
11746
|
-
return x(R) !== x(
|
|
11747
|
-
var Ze = h(R), kr = h(
|
|
11746
|
+
return x(R) !== x(_) ? !1 : typeof Uint8Array == "function" && te(new Uint8Array(R), new Uint8Array(_), W, U);
|
|
11747
|
+
var Ze = h(R), kr = h(_);
|
|
11748
11748
|
if (Ze !== kr)
|
|
11749
11749
|
return !1;
|
|
11750
11750
|
if (Ze || kr)
|
|
11751
|
-
return S(R) !== S(
|
|
11752
|
-
if (typeof R != typeof
|
|
11751
|
+
return S(R) !== S(_) ? !1 : typeof Uint8Array == "function" && te(new Uint8Array(R), new Uint8Array(_), W, U);
|
|
11752
|
+
if (typeof R != typeof _)
|
|
11753
11753
|
return !1;
|
|
11754
|
-
var dt = p(R), _t = p(
|
|
11754
|
+
var dt = p(R), _t = p(_);
|
|
11755
11755
|
if (dt.length !== _t.length)
|
|
11756
11756
|
return !1;
|
|
11757
11757
|
for (dt.sort(), _t.sort(), J = dt.length - 1; J >= 0; J--)
|
|
11758
11758
|
if (dt[J] != _t[J])
|
|
11759
11759
|
return !1;
|
|
11760
11760
|
for (J = dt.length - 1; J >= 0; J--)
|
|
11761
|
-
if (re = dt[J], !te(R[re],
|
|
11761
|
+
if (re = dt[J], !te(R[re], _[re], W, U))
|
|
11762
11762
|
return !1;
|
|
11763
|
-
var Jt =
|
|
11764
|
-
return Jt !== ft ? !1 : Jt === "Set" || ft === "Set" ? me(R,
|
|
11763
|
+
var Jt = v(R), ft = v(_);
|
|
11764
|
+
return Jt !== ft ? !1 : Jt === "Set" || ft === "Set" ? me(R, _, W, U) : Jt === "Map" ? De(R, _, W, U) : !0;
|
|
11765
11765
|
}
|
|
11766
|
-
return ta = function(
|
|
11767
|
-
return te(
|
|
11766
|
+
return ta = function(_, W, U) {
|
|
11767
|
+
return te(_, W, U, o());
|
|
11768
11768
|
}, ta;
|
|
11769
11769
|
}
|
|
11770
11770
|
var _2 = $2();
|
|
@@ -11801,20 +11801,20 @@ function z2({ editor: e }) {
|
|
|
11801
11801
|
o && c(i);
|
|
11802
11802
|
}, [o, i]);
|
|
11803
11803
|
const f = oe(() => {
|
|
11804
|
-
const
|
|
11804
|
+
const g = Bd(s);
|
|
11805
11805
|
e.chain().updateAttributes(zt.name, {
|
|
11806
|
-
src: (
|
|
11806
|
+
src: (g == null ? void 0 : g.src) || s
|
|
11807
11807
|
}).setNodeSelection(e.state.selection.from).focus().run(), a(!1);
|
|
11808
11808
|
}, [e, s, a]), d = oe(() => {
|
|
11809
11809
|
window.open(i, "_blank");
|
|
11810
11810
|
}, [i]), h = oe(() => {
|
|
11811
11811
|
a(!0);
|
|
11812
11812
|
}, [a]), p = oe(
|
|
11813
|
-
(
|
|
11814
|
-
e.chain().updateAttributes(zt.name,
|
|
11813
|
+
(g) => {
|
|
11814
|
+
e.chain().updateAttributes(zt.name, g).setNodeSelection(e.state.selection.from).focus().run();
|
|
11815
11815
|
},
|
|
11816
11816
|
[e]
|
|
11817
|
-
), m = oe(() => e.isActive(zt.name) && !i, [e, i]),
|
|
11817
|
+
), m = oe(() => e.isActive(zt.name) && !i, [e, i]), v = oe(() => Cd(zt.name, e), [e]);
|
|
11818
11818
|
return /* @__PURE__ */ T(de, { children: [
|
|
11819
11819
|
/* @__PURE__ */ l(
|
|
11820
11820
|
St,
|
|
@@ -11869,7 +11869,7 @@ function z2({ editor: e }) {
|
|
|
11869
11869
|
/* @__PURE__ */ l(
|
|
11870
11870
|
F,
|
|
11871
11871
|
{
|
|
11872
|
-
action:
|
|
11872
|
+
action: v,
|
|
11873
11873
|
icon: "Trash2",
|
|
11874
11874
|
tooltip: t("editor.delete")
|
|
11875
11875
|
}
|
|
@@ -11890,7 +11890,7 @@ function z2({ editor: e }) {
|
|
|
11890
11890
|
Ne,
|
|
11891
11891
|
{
|
|
11892
11892
|
autoFocus: !0,
|
|
11893
|
-
onInput: (
|
|
11893
|
+
onInput: (g) => c(g.target.value),
|
|
11894
11894
|
placeholder: "Enter link",
|
|
11895
11895
|
type: "url",
|
|
11896
11896
|
value: s
|
|
@@ -11998,12 +11998,12 @@ function q2(e) {
|
|
|
11998
11998
|
colors: s = Nf
|
|
11999
11999
|
} = e, c = we(() => {
|
|
12000
12000
|
const p = s, m = [];
|
|
12001
|
-
for (let
|
|
12002
|
-
m.push(p.slice(
|
|
12001
|
+
for (let v = 0; v < p.length; v += 10)
|
|
12002
|
+
m.push(p.slice(v, v + 10));
|
|
12003
12003
|
return m;
|
|
12004
12004
|
}, [s]), [u, f] = X([]), d = (p) => {
|
|
12005
|
-
const m = [...u],
|
|
12006
|
-
|
|
12005
|
+
const m = [...u], v = m.indexOf(p);
|
|
12006
|
+
v !== -1 && m.splice(v, 1), m.unshift(p), m.length > 10 && m.pop(), f(m);
|
|
12007
12007
|
};
|
|
12008
12008
|
function h(p) {
|
|
12009
12009
|
if (p === void 0) {
|
|
@@ -12057,19 +12057,19 @@ function q2(e) {
|
|
|
12057
12057
|
"span",
|
|
12058
12058
|
{
|
|
12059
12059
|
className: "richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",
|
|
12060
|
-
children: p.map((
|
|
12060
|
+
children: p.map((v, g) => /* @__PURE__ */ l(
|
|
12061
12061
|
"span",
|
|
12062
12062
|
{
|
|
12063
12063
|
className: "richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",
|
|
12064
|
-
onClick: () => h(
|
|
12064
|
+
onClick: () => h(v),
|
|
12065
12065
|
children: /* @__PURE__ */ l(
|
|
12066
12066
|
"span",
|
|
12067
12067
|
{
|
|
12068
12068
|
className: "richtext-relative richtext-block richtext-size-[18px] richtext-rounded-[2px] richtext-border-transparent",
|
|
12069
12069
|
style: {
|
|
12070
|
-
backgroundColor:
|
|
12070
|
+
backgroundColor: v
|
|
12071
12071
|
},
|
|
12072
|
-
children:
|
|
12072
|
+
children: v === i ? /* @__PURE__ */ l(
|
|
12073
12073
|
"svg",
|
|
12074
12074
|
{
|
|
12075
12075
|
className: "richtext-absolute -richtext-top-px richtext-left-px richtext-block richtext-size-3",
|
|
@@ -12093,7 +12093,7 @@ function q2(e) {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
)
|
|
12095
12095
|
},
|
|
12096
|
-
`sub-color-${
|
|
12096
|
+
`sub-color-${g}`
|
|
12097
12097
|
))
|
|
12098
12098
|
},
|
|
12099
12099
|
m
|
|
@@ -12200,20 +12200,20 @@ function U2({ editor: e, disabled: t, toolbar: r }) {
|
|
|
12200
12200
|
button: h,
|
|
12201
12201
|
divider: p = !1,
|
|
12202
12202
|
spacer: m = !1,
|
|
12203
|
-
toolbar:
|
|
12203
|
+
toolbar: v = !0
|
|
12204
12204
|
} = d.options;
|
|
12205
|
-
if (!h || !kx(h) || !
|
|
12205
|
+
if (!h || !kx(h) || !v)
|
|
12206
12206
|
continue;
|
|
12207
|
-
const
|
|
12207
|
+
const g = h({
|
|
12208
12208
|
editor: e,
|
|
12209
12209
|
extension: d,
|
|
12210
12210
|
t: n
|
|
12211
12211
|
});
|
|
12212
|
-
if (Array.isArray(
|
|
12213
|
-
const x =
|
|
12212
|
+
if (Array.isArray(g)) {
|
|
12213
|
+
const x = g.map((S, I) => ({
|
|
12214
12214
|
button: S,
|
|
12215
|
-
divider:
|
|
12216
|
-
spacer:
|
|
12215
|
+
divider: I === g.length - 1 ? p : !1,
|
|
12216
|
+
spacer: I === 0 ? m : !1,
|
|
12217
12217
|
type: d.type,
|
|
12218
12218
|
name: d.name
|
|
12219
12219
|
}));
|
|
@@ -12221,7 +12221,7 @@ function U2({ editor: e, disabled: t, toolbar: r }) {
|
|
|
12221
12221
|
continue;
|
|
12222
12222
|
}
|
|
12223
12223
|
f.push({
|
|
12224
|
-
button:
|
|
12224
|
+
button: g,
|
|
12225
12225
|
divider: p,
|
|
12226
12226
|
spacer: m,
|
|
12227
12227
|
type: d.type,
|
|
@@ -12532,7 +12532,7 @@ function nw(e, t) {
|
|
|
12532
12532
|
const { content: r, extensions: n, useEditorOptions: i = {} } = e, o = Cf(), a = we(() => {
|
|
12533
12533
|
const d = L1(n, n, "name");
|
|
12534
12534
|
return [...n.map((p) => {
|
|
12535
|
-
const m = n.find((
|
|
12535
|
+
const m = n.find((v) => v.name === p.name);
|
|
12536
12536
|
return m ? p.configure(m.options) : p;
|
|
12537
12537
|
}), ...d].map((p, m) => p.configure({ sort: m }));
|
|
12538
12538
|
}, [n]), s = yr((d) => {
|