vdc-editor 0.1.213 → 0.1.214
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/{BulkSpellChecker-BnB8tWHG.mjs → BulkSpellChecker-rs_0r0DS.mjs} +2 -2
- package/lib/{BulkSpellChecker-BnB8tWHG.mjs.map → BulkSpellChecker-rs_0r0DS.mjs.map} +1 -1
- package/lib/{index-DTtLJZUI.mjs → index-Dzwpymcg.mjs} +568 -568
- package/lib/{index-DTtLJZUI.mjs.map → index-Dzwpymcg.mjs.map} +1 -1
- package/lib/style.css +1 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +26 -26
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -246,7 +246,7 @@ const gn = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
$R.test(t) && !HR.test(t)
|
|
248
248
|
), r5 = () => !1, JR = (t) => zR.test(t), ZR = (t) => VR.test(t), QR = () => {
|
|
249
|
-
const t = gn("colors"), e = gn("spacing"), n = gn("blur"), o = gn("brightness"), r = gn("borderColor"), i = gn("borderRadius"), s = gn("borderSpacing"), a = gn("borderWidth"), l = gn("contrast"), u = gn("grayscale"), d = gn("hueRotate"), f = gn("invert"), h = gn("gap"), m = gn("gradientColorStops"), b = gn("gradientColorStopPositions"), y = gn("inset"), w = gn("margin"), x = gn("opacity"), _ = gn("padding"), E = gn("saturate"), C = gn("scale"), T = gn("sepia"), A = gn("skew"), k = gn("space"), F = gn("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", _t, e],
|
|
249
|
+
const t = gn("colors"), e = gn("spacing"), n = gn("blur"), o = gn("brightness"), r = gn("borderColor"), i = gn("borderRadius"), s = gn("borderSpacing"), a = gn("borderWidth"), l = gn("contrast"), u = gn("grayscale"), d = gn("hueRotate"), f = gn("invert"), h = gn("gap"), m = gn("gradientColorStops"), b = gn("gradientColorStopPositions"), y = gn("inset"), w = gn("margin"), x = gn("opacity"), _ = gn("padding"), E = gn("saturate"), C = gn("scale"), T = gn("sepia"), A = gn("skew"), k = gn("space"), F = gn("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", _t, e], U = () => [_t, e], ue = () => ["", Di, ys], be = () => ["auto", Hl, _t], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", _t], ne = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], he = () => [Hl, _t];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -257,25 +257,25 @@ const gn = (t) => {
|
|
|
257
257
|
brightness: he(),
|
|
258
258
|
borderColor: [t],
|
|
259
259
|
borderRadius: ["none", "", "full", ws, _t],
|
|
260
|
-
borderSpacing:
|
|
260
|
+
borderSpacing: U(),
|
|
261
261
|
borderWidth: ue(),
|
|
262
262
|
contrast: he(),
|
|
263
263
|
grayscale: re(),
|
|
264
264
|
hueRotate: he(),
|
|
265
265
|
invert: re(),
|
|
266
|
-
gap:
|
|
266
|
+
gap: U(),
|
|
267
267
|
gradientColorStops: [t],
|
|
268
268
|
gradientColorStopPositions: [UR, ys],
|
|
269
269
|
inset: Q(),
|
|
270
270
|
margin: Q(),
|
|
271
271
|
opacity: he(),
|
|
272
|
-
padding:
|
|
272
|
+
padding: U(),
|
|
273
273
|
saturate: he(),
|
|
274
274
|
scale: he(),
|
|
275
275
|
sepia: re(),
|
|
276
276
|
skew: he(),
|
|
277
|
-
space:
|
|
278
|
-
translate:
|
|
277
|
+
space: U(),
|
|
278
|
+
translate: U()
|
|
279
279
|
},
|
|
280
280
|
classGroups: {
|
|
281
281
|
// Layout
|
|
@@ -1061,7 +1061,7 @@ const gn = (t) => {
|
|
|
1061
1061
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1062
1062
|
*/
|
|
1063
1063
|
"text-decoration-style": [{
|
|
1064
|
-
decoration: [...
|
|
1064
|
+
decoration: [...V(), "wavy"]
|
|
1065
1065
|
}],
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Text Decoration Thickness
|
|
@@ -1106,7 +1106,7 @@ const gn = (t) => {
|
|
|
1106
1106
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1107
1107
|
*/
|
|
1108
1108
|
indent: [{
|
|
1109
|
-
indent:
|
|
1109
|
+
indent: U()
|
|
1110
1110
|
}],
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Vertical Alignment
|
|
@@ -1435,7 +1435,7 @@ const gn = (t) => {
|
|
|
1435
1435
|
* @see https://tailwindcss.com/docs/border-style
|
|
1436
1436
|
*/
|
|
1437
1437
|
"border-style": [{
|
|
1438
|
-
border: [...
|
|
1438
|
+
border: [...V(), "hidden"]
|
|
1439
1439
|
}],
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Divide Width X
|
|
@@ -1473,7 +1473,7 @@ const gn = (t) => {
|
|
|
1473
1473
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1474
1474
|
*/
|
|
1475
1475
|
"divide-style": [{
|
|
1476
|
-
divide:
|
|
1476
|
+
divide: V()
|
|
1477
1477
|
}],
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Border Color
|
|
@@ -1550,7 +1550,7 @@ const gn = (t) => {
|
|
|
1550
1550
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1551
1551
|
*/
|
|
1552
1552
|
"outline-style": [{
|
|
1553
|
-
outline: ["", ...
|
|
1553
|
+
outline: ["", ...V()]
|
|
1554
1554
|
}],
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Outline Offset
|
|
@@ -1997,126 +1997,126 @@ const gn = (t) => {
|
|
|
1997
1997
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1998
1998
|
*/
|
|
1999
1999
|
"scroll-m": [{
|
|
2000
|
-
"scroll-m":
|
|
2000
|
+
"scroll-m": U()
|
|
2001
2001
|
}],
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Scroll Margin X
|
|
2004
2004
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2005
2005
|
*/
|
|
2006
2006
|
"scroll-mx": [{
|
|
2007
|
-
"scroll-mx":
|
|
2007
|
+
"scroll-mx": U()
|
|
2008
2008
|
}],
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Scroll Margin Y
|
|
2011
2011
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2012
2012
|
*/
|
|
2013
2013
|
"scroll-my": [{
|
|
2014
|
-
"scroll-my":
|
|
2014
|
+
"scroll-my": U()
|
|
2015
2015
|
}],
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Scroll Margin Start
|
|
2018
2018
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2019
2019
|
*/
|
|
2020
2020
|
"scroll-ms": [{
|
|
2021
|
-
"scroll-ms":
|
|
2021
|
+
"scroll-ms": U()
|
|
2022
2022
|
}],
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Scroll Margin End
|
|
2025
2025
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2026
2026
|
*/
|
|
2027
2027
|
"scroll-me": [{
|
|
2028
|
-
"scroll-me":
|
|
2028
|
+
"scroll-me": U()
|
|
2029
2029
|
}],
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Scroll Margin Top
|
|
2032
2032
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2033
2033
|
*/
|
|
2034
2034
|
"scroll-mt": [{
|
|
2035
|
-
"scroll-mt":
|
|
2035
|
+
"scroll-mt": U()
|
|
2036
2036
|
}],
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Scroll Margin Right
|
|
2039
2039
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2040
2040
|
*/
|
|
2041
2041
|
"scroll-mr": [{
|
|
2042
|
-
"scroll-mr":
|
|
2042
|
+
"scroll-mr": U()
|
|
2043
2043
|
}],
|
|
2044
2044
|
/**
|
|
2045
2045
|
* Scroll Margin Bottom
|
|
2046
2046
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2047
2047
|
*/
|
|
2048
2048
|
"scroll-mb": [{
|
|
2049
|
-
"scroll-mb":
|
|
2049
|
+
"scroll-mb": U()
|
|
2050
2050
|
}],
|
|
2051
2051
|
/**
|
|
2052
2052
|
* Scroll Margin Left
|
|
2053
2053
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2054
2054
|
*/
|
|
2055
2055
|
"scroll-ml": [{
|
|
2056
|
-
"scroll-ml":
|
|
2056
|
+
"scroll-ml": U()
|
|
2057
2057
|
}],
|
|
2058
2058
|
/**
|
|
2059
2059
|
* Scroll Padding
|
|
2060
2060
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2061
2061
|
*/
|
|
2062
2062
|
"scroll-p": [{
|
|
2063
|
-
"scroll-p":
|
|
2063
|
+
"scroll-p": U()
|
|
2064
2064
|
}],
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Scroll Padding X
|
|
2067
2067
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2068
2068
|
*/
|
|
2069
2069
|
"scroll-px": [{
|
|
2070
|
-
"scroll-px":
|
|
2070
|
+
"scroll-px": U()
|
|
2071
2071
|
}],
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Scroll Padding Y
|
|
2074
2074
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2075
2075
|
*/
|
|
2076
2076
|
"scroll-py": [{
|
|
2077
|
-
"scroll-py":
|
|
2077
|
+
"scroll-py": U()
|
|
2078
2078
|
}],
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Scroll Padding Start
|
|
2081
2081
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2082
2082
|
*/
|
|
2083
2083
|
"scroll-ps": [{
|
|
2084
|
-
"scroll-ps":
|
|
2084
|
+
"scroll-ps": U()
|
|
2085
2085
|
}],
|
|
2086
2086
|
/**
|
|
2087
2087
|
* Scroll Padding End
|
|
2088
2088
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2089
2089
|
*/
|
|
2090
2090
|
"scroll-pe": [{
|
|
2091
|
-
"scroll-pe":
|
|
2091
|
+
"scroll-pe": U()
|
|
2092
2092
|
}],
|
|
2093
2093
|
/**
|
|
2094
2094
|
* Scroll Padding Top
|
|
2095
2095
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2096
2096
|
*/
|
|
2097
2097
|
"scroll-pt": [{
|
|
2098
|
-
"scroll-pt":
|
|
2098
|
+
"scroll-pt": U()
|
|
2099
2099
|
}],
|
|
2100
2100
|
/**
|
|
2101
2101
|
* Scroll Padding Right
|
|
2102
2102
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2103
2103
|
*/
|
|
2104
2104
|
"scroll-pr": [{
|
|
2105
|
-
"scroll-pr":
|
|
2105
|
+
"scroll-pr": U()
|
|
2106
2106
|
}],
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Scroll Padding Bottom
|
|
2109
2109
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2110
2110
|
*/
|
|
2111
2111
|
"scroll-pb": [{
|
|
2112
|
-
"scroll-pb":
|
|
2112
|
+
"scroll-pb": U()
|
|
2113
2113
|
}],
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Scroll Padding Left
|
|
2116
2116
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2117
2117
|
*/
|
|
2118
2118
|
"scroll-pl": [{
|
|
2119
|
-
"scroll-pl":
|
|
2119
|
+
"scroll-pl": U()
|
|
2120
2120
|
}],
|
|
2121
2121
|
/**
|
|
2122
2122
|
* Scroll Snap Align
|
|
@@ -6869,7 +6869,7 @@ class yh {
|
|
|
6869
6869
|
return Ue.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
|
-
class
|
|
6872
|
+
class Qe extends tt {
|
|
6873
6873
|
/**
|
|
6874
6874
|
Create a node selection. Does not verify the validity of its
|
|
6875
6875
|
argument.
|
|
@@ -6880,13 +6880,13 @@ class et extends tt {
|
|
|
6880
6880
|
}
|
|
6881
6881
|
map(e, n) {
|
|
6882
6882
|
let { deleted: o, pos: r } = n.mapResult(this.anchor), i = e.resolve(r);
|
|
6883
|
-
return o ? tt.near(i) : new
|
|
6883
|
+
return o ? tt.near(i) : new Qe(i);
|
|
6884
6884
|
}
|
|
6885
6885
|
content() {
|
|
6886
6886
|
return new Pe(Ce.from(this.node), 0, 0);
|
|
6887
6887
|
}
|
|
6888
6888
|
eq(e) {
|
|
6889
|
-
return e instanceof
|
|
6889
|
+
return e instanceof Qe && e.anchor == this.anchor;
|
|
6890
6890
|
}
|
|
6891
6891
|
toJSON() {
|
|
6892
6892
|
return { type: "node", anchor: this.anchor };
|
|
@@ -6900,13 +6900,13 @@ class et extends tt {
|
|
|
6900
6900
|
static fromJSON(e, n) {
|
|
6901
6901
|
if (typeof n.anchor != "number")
|
|
6902
6902
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
6903
|
-
return new
|
|
6903
|
+
return new Qe(e.resolve(n.anchor));
|
|
6904
6904
|
}
|
|
6905
6905
|
/**
|
|
6906
6906
|
Create a node selection from non-resolved positions.
|
|
6907
6907
|
*/
|
|
6908
6908
|
static create(e, n) {
|
|
6909
|
-
return new
|
|
6909
|
+
return new Qe(e.resolve(n));
|
|
6910
6910
|
}
|
|
6911
6911
|
/**
|
|
6912
6912
|
Determines whether the given node may be selected as a node
|
|
@@ -6916,8 +6916,8 @@ class et extends tt {
|
|
|
6916
6916
|
return !e.isText && e.type.spec.selectable !== !1;
|
|
6917
6917
|
}
|
|
6918
6918
|
}
|
|
6919
|
-
|
|
6920
|
-
tt.jsonID("node",
|
|
6919
|
+
Qe.prototype.visible = !1;
|
|
6920
|
+
tt.jsonID("node", Qe);
|
|
6921
6921
|
class Rb {
|
|
6922
6922
|
constructor(e) {
|
|
6923
6923
|
this.anchor = e;
|
|
@@ -6928,7 +6928,7 @@ class Rb {
|
|
|
6928
6928
|
}
|
|
6929
6929
|
resolve(e) {
|
|
6930
6930
|
let n = e.resolve(this.anchor), o = n.nodeAfter;
|
|
6931
|
-
return o &&
|
|
6931
|
+
return o && Qe.isSelectable(o) ? new Qe(n) : tt.near(n);
|
|
6932
6932
|
}
|
|
6933
6933
|
}
|
|
6934
6934
|
class vo extends tt {
|
|
@@ -6980,8 +6980,8 @@ function Ml(t, e, n, o, r, i = !1) {
|
|
|
6980
6980
|
for (let s = o - (r > 0 ? 0 : 1); r > 0 ? s < e.childCount : s >= 0; s += r) {
|
|
6981
6981
|
let a = e.child(s);
|
|
6982
6982
|
if (a.isAtom) {
|
|
6983
|
-
if (!i &&
|
|
6984
|
-
return
|
|
6983
|
+
if (!i && Qe.isSelectable(a))
|
|
6984
|
+
return Qe.create(t, n - (r < 0 ? a.nodeSize : 0));
|
|
6985
6985
|
} else {
|
|
6986
6986
|
let l = Ml(t, a, n + r, r < 0 ? a.childCount : 0, r, i);
|
|
6987
6987
|
if (l)
|
|
@@ -8887,9 +8887,9 @@ function Db(t, e = null) {
|
|
|
8887
8887
|
for (l = s; r && !r.node; )
|
|
8888
8888
|
r = r.parent;
|
|
8889
8889
|
let f = r.node;
|
|
8890
|
-
if (r && f.isAtom &&
|
|
8890
|
+
if (r && f.isAtom && Qe.isSelectable(f) && r.parent && !(f.isInline && eD(n.focusNode, n.focusOffset, r.dom))) {
|
|
8891
8891
|
let h = r.posBefore;
|
|
8892
|
-
u = new
|
|
8892
|
+
u = new Qe(s == h ? a : o.resolve(h));
|
|
8893
8893
|
}
|
|
8894
8894
|
} else {
|
|
8895
8895
|
if (n instanceof t.dom.ownerDocument.defaultView.Selection && n.rangeCount > 1) {
|
|
@@ -8971,7 +8971,7 @@ function MD(t) {
|
|
|
8971
8971
|
r ? n.setStart(o.parentNode, io(o) + 1) : n.setStart(o, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !r && !t.state.selection.visible && Vo && Fs <= 11 && (o.disabled = !0, o.disabled = !1);
|
|
8972
8972
|
}
|
|
8973
8973
|
function eC(t, e) {
|
|
8974
|
-
if (e instanceof
|
|
8974
|
+
if (e instanceof Qe) {
|
|
8975
8975
|
let n = t.docView.descAt(e.from);
|
|
8976
8976
|
n != t.lastSelectedViewDesc && (u6(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
|
|
8977
8977
|
} else
|
|
@@ -9019,17 +9019,17 @@ function d6(t, e, n) {
|
|
|
9019
9019
|
} else if (o.empty) {
|
|
9020
9020
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
9021
9021
|
let r = sg(t.state, e);
|
|
9022
|
-
return r && r instanceof
|
|
9022
|
+
return r && r instanceof Qe ? Ss(t, r) : !1;
|
|
9023
9023
|
} else if (!(Er && n.indexOf("m") > -1)) {
|
|
9024
9024
|
let r = o.$head, i = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, s;
|
|
9025
9025
|
if (!i || i.isText)
|
|
9026
9026
|
return !1;
|
|
9027
9027
|
let a = e < 0 ? r.pos - i.nodeSize : r.pos;
|
|
9028
|
-
return i.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ?
|
|
9028
|
+
return i.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Qe.isSelectable(i) ? Ss(t, new Qe(e < 0 ? t.state.doc.resolve(r.pos - i.nodeSize) : r)) : rd ? Ss(t, new Ue(t.state.doc.resolve(e < 0 ? a : a + i.nodeSize))) : !1 : !1;
|
|
9029
9029
|
}
|
|
9030
9030
|
} else return !1;
|
|
9031
9031
|
else {
|
|
9032
|
-
if (o instanceof
|
|
9032
|
+
if (o instanceof Qe && o.node.isInline)
|
|
9033
9033
|
return Ss(t, new Ue(e > 0 ? o.$to : o.$from));
|
|
9034
9034
|
{
|
|
9035
9035
|
let r = sg(t.state, e);
|
|
@@ -9185,7 +9185,7 @@ function p6(t, e, n) {
|
|
|
9185
9185
|
let { $from: r, $to: i } = o;
|
|
9186
9186
|
if (!r.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
9187
9187
|
let s = sg(t.state, e);
|
|
9188
|
-
if (s && s instanceof
|
|
9188
|
+
if (s && s instanceof Qe)
|
|
9189
9189
|
return Ss(t, s);
|
|
9190
9190
|
}
|
|
9191
9191
|
if (!r.parent.inlineContent) {
|
|
@@ -9542,22 +9542,22 @@ function ZD(t, e) {
|
|
|
9542
9542
|
if (e == -1)
|
|
9543
9543
|
return !1;
|
|
9544
9544
|
let n = t.state.doc.resolve(e), o = n.nodeAfter;
|
|
9545
|
-
return o && o.isAtom &&
|
|
9545
|
+
return o && o.isAtom && Qe.isSelectable(o) ? (Vl(t, new Qe(n)), !0) : !1;
|
|
9546
9546
|
}
|
|
9547
9547
|
function QD(t, e) {
|
|
9548
9548
|
if (e == -1)
|
|
9549
9549
|
return !1;
|
|
9550
9550
|
let n = t.state.selection, o, r;
|
|
9551
|
-
n instanceof
|
|
9551
|
+
n instanceof Qe && (o = n.node);
|
|
9552
9552
|
let i = t.state.doc.resolve(e);
|
|
9553
9553
|
for (let s = i.depth + 1; s > 0; s--) {
|
|
9554
9554
|
let a = s > i.depth ? i.nodeAfter : i.node(s);
|
|
9555
|
-
if (
|
|
9555
|
+
if (Qe.isSelectable(a)) {
|
|
9556
9556
|
o && n.$from.depth > 0 && s >= n.$from.depth && i.before(n.$from.depth + 1) == n.$from.pos ? r = i.before(n.$from.depth) : r = i.before(s);
|
|
9557
9557
|
break;
|
|
9558
9558
|
}
|
|
9559
9559
|
}
|
|
9560
|
-
return r != null ? (Vl(t,
|
|
9560
|
+
return r != null ? (Vl(t, Qe.create(t.state.doc, r)), !0) : !1;
|
|
9561
9561
|
}
|
|
9562
9562
|
function eP(t, e, n, o, r) {
|
|
9563
9563
|
return $b(t, "handleClickOn", e, n, o) || t.someProp("handleClick", (i) => i(t, e, o)) || (r ? QD(t, n) : ZD(t, n));
|
|
@@ -9579,8 +9579,8 @@ function oP(t, e, n) {
|
|
|
9579
9579
|
let s = i > r.depth ? r.nodeAfter : r.node(i), a = r.before(i);
|
|
9580
9580
|
if (s.inlineContent)
|
|
9581
9581
|
Vl(t, Ue.create(o, a + 1, a + 1 + s.content.size));
|
|
9582
|
-
else if (
|
|
9583
|
-
Vl(t,
|
|
9582
|
+
else if (Qe.isSelectable(s))
|
|
9583
|
+
Vl(t, Qe.create(o, a));
|
|
9584
9584
|
else
|
|
9585
9585
|
continue;
|
|
9586
9586
|
return !0;
|
|
@@ -9611,7 +9611,7 @@ class rP {
|
|
|
9611
9611
|
const a = r ? null : o.target, l = a ? e.docView.nearestDesc(a, !0) : null;
|
|
9612
9612
|
this.target = l && l.dom.nodeType == 1 ? l.dom : null;
|
|
9613
9613
|
let { selection: u } = e.state;
|
|
9614
|
-
(o.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || u instanceof
|
|
9614
|
+
(o.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || u instanceof Qe && u.from <= s && u.to > s) && (this.mightDrag = {
|
|
9615
9615
|
node: i,
|
|
9616
9616
|
pos: s,
|
|
9617
9617
|
addAttr: !!(this.target && !this.target.draggable),
|
|
@@ -9786,12 +9786,12 @@ Mo.dragstart = (t, e) => {
|
|
|
9786
9786
|
if (o && o.done(), !n.dataTransfer)
|
|
9787
9787
|
return;
|
|
9788
9788
|
let r = t.state.selection, i = r.empty ? null : t.posAtCoords(Ch(n)), s;
|
|
9789
|
-
if (!(i && i.pos >= r.from && i.pos <= (r instanceof
|
|
9789
|
+
if (!(i && i.pos >= r.from && i.pos <= (r instanceof Qe ? r.to - 1 : r.to))) {
|
|
9790
9790
|
if (o && o.mightDrag)
|
|
9791
|
-
s =
|
|
9791
|
+
s = Qe.create(t.state.doc, o.mightDrag.pos);
|
|
9792
9792
|
else if (n.target && n.target.nodeType == 1) {
|
|
9793
9793
|
let f = t.docView.nearestDesc(n.target, !0);
|
|
9794
|
-
f && f.node.type.spec.draggable && f != t.docView && (s =
|
|
9794
|
+
f && f.node.type.spec.draggable && f != t.docView && (s = Qe.create(t.state.doc, f.posBefore));
|
|
9795
9795
|
}
|
|
9796
9796
|
}
|
|
9797
9797
|
let a = (s || t.state.selection).content(), { dom: l, text: u, slice: d } = Bb(t, a);
|
|
@@ -9834,8 +9834,8 @@ No.drop = (t, e) => {
|
|
|
9834
9834
|
if (f ? u.replaceRangeWith(d, d, s.content.firstChild) : u.replaceRange(d, d, s), u.doc.eq(h))
|
|
9835
9835
|
return;
|
|
9836
9836
|
let m = u.doc.resolve(d);
|
|
9837
|
-
if (f &&
|
|
9838
|
-
u.setSelection(new
|
|
9837
|
+
if (f && Qe.isSelectable(s.content.firstChild) && m.nodeAfter && m.nodeAfter.sameMarkup(s.content.firstChild))
|
|
9838
|
+
u.setSelection(new Qe(m));
|
|
9839
9839
|
else {
|
|
9840
9840
|
let b = u.mapping.map(l);
|
|
9841
9841
|
u.mapping.maps[u.mapping.maps.length - 1].forEach((y, w, x, _) => b = _), u.setSelection(Pb(t, m, u.doc.resolve(b)));
|
|
@@ -10618,7 +10618,7 @@ function EP(t, e, n, o, r) {
|
|
|
10618
10618
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
10619
10619
|
let P = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, R = Db(t, P);
|
|
10620
10620
|
if (R && !t.state.selection.eq(R)) {
|
|
10621
|
-
if (go && Gi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (
|
|
10621
|
+
if (go && Gi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (U) => U(t, va(13, "Enter"))))
|
|
10622
10622
|
return;
|
|
10623
10623
|
let Q = t.state.tr.setSelection(R);
|
|
10624
10624
|
P == "pointer" ? Q.setMeta("pointer", !0) : P == "key" && Q.scrollIntoView(), i && Q.setMeta("composition", i), t.dispatch(Q);
|
|
@@ -10849,7 +10849,7 @@ class kP {
|
|
|
10849
10849
|
scrollToSelection() {
|
|
10850
10850
|
let e = this.domSelectionRange().focusNode;
|
|
10851
10851
|
if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
|
|
10852
|
-
if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof
|
|
10852
|
+
if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof Qe) {
|
|
10853
10853
|
let n = this.docView.domAfterPos(this.state.selection.from);
|
|
10854
10854
|
n.nodeType == 1 && Z4(this, n.getBoundingClientRect(), e);
|
|
10855
10855
|
} else
|
|
@@ -10886,7 +10886,7 @@ class kP {
|
|
|
10886
10886
|
let i = o.from + (this.state.doc.content.size - n.doc.content.size);
|
|
10887
10887
|
(i > 0 && this.state.doc.nodeAt(i)) == o.node && (r = i);
|
|
10888
10888
|
}
|
|
10889
|
-
this.dragging = new hC(e.slice, e.move, r < 0 ? void 0 :
|
|
10889
|
+
this.dragging = new hC(e.slice, e.move, r < 0 ? void 0 : Qe.create(this.state.doc, r));
|
|
10890
10890
|
}
|
|
10891
10891
|
someProp(e, n) {
|
|
10892
10892
|
let o = this._props && this._props[e], r;
|
|
@@ -11307,13 +11307,13 @@ const wC = (t, e, n) => {
|
|
|
11307
11307
|
let i = r.nodeBefore;
|
|
11308
11308
|
if (OC(t, r, e, -1))
|
|
11309
11309
|
return !0;
|
|
11310
|
-
if (o.parent.content.size == 0 && (Yl(i, "end") ||
|
|
11310
|
+
if (o.parent.content.size == 0 && (Yl(i, "end") || Qe.isSelectable(i)))
|
|
11311
11311
|
for (let s = o.depth; ; s--) {
|
|
11312
11312
|
let a = vh(t.doc, o.before(s), o.after(s), Pe.empty);
|
|
11313
11313
|
if (a && a.slice.size < a.to - a.from) {
|
|
11314
11314
|
if (e) {
|
|
11315
11315
|
let l = t.tr.step(a);
|
|
11316
|
-
l.setSelection(Yl(i, "end") ? tt.findFrom(l.doc.resolve(l.mapping.map(r.pos, -1)), -1) :
|
|
11316
|
+
l.setSelection(Yl(i, "end") ? tt.findFrom(l.doc.resolve(l.mapping.map(r.pos, -1)), -1) : Qe.create(l.doc, r.pos - i.nodeSize)), e(l.scrollIntoView());
|
|
11317
11317
|
}
|
|
11318
11318
|
return !0;
|
|
11319
11319
|
}
|
|
@@ -11381,7 +11381,7 @@ const CC = (t, e, n) => {
|
|
|
11381
11381
|
i = Wb(o);
|
|
11382
11382
|
}
|
|
11383
11383
|
let s = i && i.nodeBefore;
|
|
11384
|
-
return !s || !
|
|
11384
|
+
return !s || !Qe.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Qe.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
|
|
11385
11385
|
};
|
|
11386
11386
|
function Wb(t) {
|
|
11387
11387
|
if (!t.parent.type.spec.isolating)
|
|
@@ -11407,12 +11407,12 @@ const _C = (t, e, n) => {
|
|
|
11407
11407
|
let i = r.nodeAfter;
|
|
11408
11408
|
if (OC(t, r, e, 1))
|
|
11409
11409
|
return !0;
|
|
11410
|
-
if (o.parent.content.size == 0 && (Yl(i, "start") ||
|
|
11410
|
+
if (o.parent.content.size == 0 && (Yl(i, "start") || Qe.isSelectable(i))) {
|
|
11411
11411
|
let s = vh(t.doc, o.before(), o.after(), Pe.empty);
|
|
11412
11412
|
if (s && s.slice.size < s.to - s.from) {
|
|
11413
11413
|
if (e) {
|
|
11414
11414
|
let a = t.tr.step(s);
|
|
11415
|
-
a.setSelection(Yl(i, "start") ? tt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) :
|
|
11415
|
+
a.setSelection(Yl(i, "start") ? tt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) : Qe.create(a.doc, a.mapping.map(r.pos))), e(a.scrollIntoView());
|
|
11416
11416
|
}
|
|
11417
11417
|
return !0;
|
|
11418
11418
|
}
|
|
@@ -11428,7 +11428,7 @@ const _C = (t, e, n) => {
|
|
|
11428
11428
|
i = jb(o);
|
|
11429
11429
|
}
|
|
11430
11430
|
let s = i && i.nodeAfter;
|
|
11431
|
-
return !s || !
|
|
11431
|
+
return !s || !Qe.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Qe.create(t.doc, i.pos)).scrollIntoView()), !0);
|
|
11432
11432
|
};
|
|
11433
11433
|
function jb(t) {
|
|
11434
11434
|
if (!t.parent.type.spec.isolating)
|
|
@@ -11442,7 +11442,7 @@ function jb(t) {
|
|
|
11442
11442
|
return null;
|
|
11443
11443
|
}
|
|
11444
11444
|
const $P = (t, e) => {
|
|
11445
|
-
let n = t.selection, o = n instanceof
|
|
11445
|
+
let n = t.selection, o = n instanceof Qe, r;
|
|
11446
11446
|
if (o) {
|
|
11447
11447
|
if (n.node.isTextblock || !Gs(t.doc, n.from))
|
|
11448
11448
|
return !1;
|
|
@@ -11451,12 +11451,12 @@ const $P = (t, e) => {
|
|
|
11451
11451
|
return !1;
|
|
11452
11452
|
if (e) {
|
|
11453
11453
|
let i = t.tr.join(r);
|
|
11454
|
-
o && i.setSelection(
|
|
11454
|
+
o && i.setSelection(Qe.create(i.doc, r - t.doc.resolve(r).nodeBefore.nodeSize)), e(i.scrollIntoView());
|
|
11455
11455
|
}
|
|
11456
11456
|
return !0;
|
|
11457
11457
|
}, HP = (t, e) => {
|
|
11458
11458
|
let n = t.selection, o;
|
|
11459
|
-
if (n instanceof
|
|
11459
|
+
if (n instanceof Qe) {
|
|
11460
11460
|
if (n.node.isTextblock || !Gs(t.doc, n.to))
|
|
11461
11461
|
return !1;
|
|
11462
11462
|
o = n.to;
|
|
@@ -11518,7 +11518,7 @@ const VP = (t, e) => {
|
|
|
11518
11518
|
function UP(t) {
|
|
11519
11519
|
return (e, n) => {
|
|
11520
11520
|
let { $from: o, $to: r } = e.selection;
|
|
11521
|
-
if (e.selection instanceof
|
|
11521
|
+
if (e.selection instanceof Qe && e.selection.node.isBlock)
|
|
11522
11522
|
return !o.parentOffset || !sr(e.doc, o.pos) ? !1 : (n && n(e.tr.split(o.pos).scrollIntoView()), !0);
|
|
11523
11523
|
if (!o.depth)
|
|
11524
11524
|
return !1;
|
|
@@ -11544,7 +11544,7 @@ function UP(t) {
|
|
|
11544
11544
|
}
|
|
11545
11545
|
const WP = UP(), jP = (t, e) => {
|
|
11546
11546
|
let { $from: n, to: o } = t.selection, r, i = n.sharedDepth(o);
|
|
11547
|
-
return i == 0 ? !1 : (r = n.before(i), e && e(t.tr.setSelection(
|
|
11547
|
+
return i == 0 ? !1 : (r = n.before(i), e && e(t.tr.setSelection(Qe.create(t.doc, r))), !0);
|
|
11548
11548
|
}, qP = (t, e) => (e && e(t.tr.setSelection(new vo(t.doc))), !0);
|
|
11549
11549
|
function KP(t, e, n) {
|
|
11550
11550
|
let o = e.nodeBefore, r = e.nodeAfter, i = e.index();
|
|
@@ -13275,7 +13275,7 @@ function Nh(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
|
13275
13275
|
return !1;
|
|
13276
13276
|
}
|
|
13277
13277
|
function WC(t) {
|
|
13278
|
-
return t instanceof
|
|
13278
|
+
return t instanceof Qe;
|
|
13279
13279
|
}
|
|
13280
13280
|
function jC(t, e, n) {
|
|
13281
13281
|
const r = t.state.doc.content.size, i = Xi(e, 0, r), s = Xi(n, 0, r), a = t.coordsAtPos(i), l = t.coordsAtPos(s, -1), u = Math.min(a.top, l.top), d = Math.max(a.bottom, l.bottom), f = Math.min(a.left, l.left), h = Math.max(a.right, l.right), m = h - f, b = d - u, x = {
|
|
@@ -13344,7 +13344,7 @@ const mF = (t, e = {}) => ({ tr: n, state: o, dispatch: r }) => {
|
|
|
13344
13344
|
return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), i.isTextblock ? r().command(({ commands: a }) => O6(i, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => O6(i, { ...s, ...e })(a, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
13345
13345
|
}, vF = (t) => ({ tr: e, dispatch: n }) => {
|
|
13346
13346
|
if (n) {
|
|
13347
|
-
const { doc: o } = e, r = Xi(t, 0, o.content.size), i =
|
|
13347
|
+
const { doc: o } = e, r = Xi(t, 0, o.content.size), i = Qe.create(o, r);
|
|
13348
13348
|
e.setSelection(i);
|
|
13349
13349
|
}
|
|
13350
13350
|
return !0;
|
|
@@ -13367,7 +13367,7 @@ function D6(t, e) {
|
|
|
13367
13367
|
}
|
|
13368
13368
|
const xF = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
|
|
13369
13369
|
const { selection: i, doc: s } = e, { $from: a, $to: l } = i, u = r.extensionManager.attributes, d = jf(u, a.node().type.name, a.node().attrs);
|
|
13370
|
-
if (i instanceof
|
|
13370
|
+
if (i instanceof Qe && i.node.isBlock)
|
|
13371
13371
|
return !a.parentOffset || !sr(s, a.pos) ? !1 : (o && (t && D6(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
13372
13372
|
if (!a.parent.isBlock)
|
|
13373
13373
|
return !1;
|
|
@@ -14488,7 +14488,7 @@ class WF {
|
|
|
14488
14488
|
const b = this.getPos();
|
|
14489
14489
|
if (typeof b != "number")
|
|
14490
14490
|
return;
|
|
14491
|
-
const y =
|
|
14491
|
+
const y = Qe.create(u.state.doc, b), w = u.state.tr.setSelection(y);
|
|
14492
14492
|
u.dispatch(w);
|
|
14493
14493
|
}
|
|
14494
14494
|
stopEvent(e) {
|
|
@@ -14503,7 +14503,7 @@ class WF {
|
|
|
14503
14503
|
const i = e.type.startsWith("drag"), s = e.type === "drop";
|
|
14504
14504
|
if ((["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(o.tagName) || o.isContentEditable) && !s && !i)
|
|
14505
14505
|
return !0;
|
|
14506
|
-
const { isEditable: l } = this.editor, { isDragging: u } = this, d = !!this.node.type.spec.draggable, f =
|
|
14506
|
+
const { isEditable: l } = this.editor, { isDragging: u } = this, d = !!this.node.type.spec.draggable, f = Qe.isSelectable(this.node), h = e.type === "copy", m = e.type === "paste", b = e.type === "cut", y = e.type === "mousedown";
|
|
14507
14507
|
if (!d && f && i && e.target === this.dom && e.preventDefault(), d && i && !u && e.target === this.dom)
|
|
14508
14508
|
return e.preventDefault(), !1;
|
|
14509
14509
|
if (d && l && !u && y) {
|
|
@@ -14845,14 +14845,14 @@ function F6(t) {
|
|
|
14845
14845
|
}
|
|
14846
14846
|
var Q = Object.assign({
|
|
14847
14847
|
position: a
|
|
14848
|
-
}, u && p$),
|
|
14848
|
+
}, u && p$), U = d === !0 ? h$({
|
|
14849
14849
|
x: m,
|
|
14850
14850
|
y
|
|
14851
14851
|
}, cr(n)) : {
|
|
14852
14852
|
x: m,
|
|
14853
14853
|
y
|
|
14854
14854
|
};
|
|
14855
|
-
if (m =
|
|
14855
|
+
if (m = U.x, y = U.y, l) {
|
|
14856
14856
|
var ue;
|
|
14857
14857
|
return Object.assign({}, Q, (ue = {}, ue[C] = _ ? "0" : "", ue[E] = x ? "0" : "", ue.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", ue));
|
|
14858
14858
|
}
|
|
@@ -15067,10 +15067,10 @@ function Nc(t, e) {
|
|
|
15067
15067
|
right: P.right - T.right + x.right
|
|
15068
15068
|
}, Q = t.modifiersData.offset;
|
|
15069
15069
|
if (h === Ku && Q) {
|
|
15070
|
-
var
|
|
15070
|
+
var U = Q[r];
|
|
15071
15071
|
Object.keys(R).forEach(function(ue) {
|
|
15072
15072
|
var be = [Mr, Or].indexOf(ue) >= 0 ? 1 : -1, K = [Uo, Or].indexOf(ue) >= 0 ? "y" : "x";
|
|
15073
|
-
R[ue] +=
|
|
15073
|
+
R[ue] += U[K] * be;
|
|
15074
15074
|
});
|
|
15075
15075
|
}
|
|
15076
15076
|
return R;
|
|
@@ -15114,7 +15114,7 @@ function A$(t) {
|
|
|
15114
15114
|
allowedAutoPlacements: y
|
|
15115
15115
|
}) : Ve);
|
|
15116
15116
|
}, []), T = e.rects.reference, A = e.rects.popper, k = /* @__PURE__ */ new Map(), F = !0, P = C[0], R = 0; R < C.length; R++) {
|
|
15117
|
-
var Q = C[R],
|
|
15117
|
+
var Q = C[R], U = di(Q), ue = tu(Q) === Zl, be = [Uo, Or].indexOf(U) >= 0, K = be ? "width" : "height", V = Nc(e, {
|
|
15118
15118
|
placement: Q,
|
|
15119
15119
|
boundary: d,
|
|
15120
15120
|
rootBoundary: f,
|
|
@@ -15123,7 +15123,7 @@ function A$(t) {
|
|
|
15123
15123
|
}), B = be ? ue ? Mr : Wo : ue ? Or : Uo;
|
|
15124
15124
|
T[K] > A[K] && (B = qf(B));
|
|
15125
15125
|
var J = qf(B), re = [];
|
|
15126
|
-
if (i && re.push(U
|
|
15126
|
+
if (i && re.push(V[U] <= 0), a && re.push(V[B] <= 0, V[J] <= 0), re.every(function(ot) {
|
|
15127
15127
|
return ot;
|
|
15128
15128
|
})) {
|
|
15129
15129
|
P = Q, F = !1;
|
|
@@ -15255,23 +15255,23 @@ function F$(t) {
|
|
|
15255
15255
|
} : Object.assign({
|
|
15256
15256
|
mainAxis: 0,
|
|
15257
15257
|
altAxis: 0
|
|
15258
|
-
}, P), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
15258
|
+
}, P), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, U = {
|
|
15259
15259
|
x: 0,
|
|
15260
15260
|
y: 0
|
|
15261
15261
|
};
|
|
15262
15262
|
if (A) {
|
|
15263
15263
|
if (i) {
|
|
15264
|
-
var ue, be = C === "y" ? Uo : Wo, K = C === "y" ? Or : Mr,
|
|
15264
|
+
var ue, be = C === "y" ? Uo : Wo, K = C === "y" ? Or : Mr, V = C === "y" ? "height" : "width", B = A[C], J = B + w[be], re = B - w[K], ne = m ? -F[V] / 2 : 0, he = _ === Zl ? k[V] : F[V], Re = _ === Zl ? -F[V] : -k[V], De = e.elements.arrow, ot = m && De ? ov(De) : {
|
|
15265
15265
|
width: 0,
|
|
15266
15266
|
height: 0
|
|
15267
|
-
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), Ye = Ve[be], se = Ve[K], ce = uc(0, k[
|
|
15268
|
-
A[C] = Nt,
|
|
15267
|
+
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), Ye = Ve[be], se = Ve[K], ce = uc(0, k[V], ot[V]), we = E ? k[V] / 2 - ne - ce - Ye - R.mainAxis : he - ce - Ye - R.mainAxis, xe = E ? -k[V] / 2 + ne + ce + se + R.mainAxis : Re + ce + se + R.mainAxis, Ae = e.elements.arrow && ld(e.elements.arrow), ae = Ae ? C === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Me = (ue = Q == null ? void 0 : Q[C]) != null ? ue : 0, Ke = B + we - Me - ae, it = B + xe - Me, Nt = uc(m ? xp(J, Ke) : J, B, m ? Oa(re, it) : re);
|
|
15268
|
+
A[C] = Nt, U[C] = Nt - B;
|
|
15269
15269
|
}
|
|
15270
15270
|
if (a) {
|
|
15271
15271
|
var Ut, q = C === "x" ? Uo : Wo, z = C === "x" ? Or : Mr, ve = A[T], Oe = T === "y" ? "height" : "width", Ge = ve + w[q], mt = ve - w[z], oe = [Uo, Wo].indexOf(x) !== -1, X = (Ut = Q == null ? void 0 : Q[T]) != null ? Ut : 0, me = oe ? Ge : ve - k[Oe] - F[Oe] - X + R.altAxis, ge = oe ? ve + k[Oe] + F[Oe] - X - R.altAxis : mt, Ne = m && oe ? l$(me, ve, ge) : uc(m ? me : Ge, ve, m ? ge : mt);
|
|
15272
|
-
A[T] = Ne,
|
|
15272
|
+
A[T] = Ne, U[T] = Ne - ve;
|
|
15273
15273
|
}
|
|
15274
|
-
e.modifiersData[o] =
|
|
15274
|
+
e.modifiersData[o] = U;
|
|
15275
15275
|
}
|
|
15276
15276
|
}
|
|
15277
15277
|
const $$ = {
|
|
@@ -15860,7 +15860,7 @@ function _H(t, e) {
|
|
|
15860
15860
|
clearDelayTimeouts: me,
|
|
15861
15861
|
setProps: ge,
|
|
15862
15862
|
setContent: Ne,
|
|
15863
|
-
show:
|
|
15863
|
+
show: Je,
|
|
15864
15864
|
hide: yt,
|
|
15865
15865
|
hideWithInteractivity: jt,
|
|
15866
15866
|
enable: oe,
|
|
@@ -15887,7 +15887,7 @@ function _H(t, e) {
|
|
|
15887
15887
|
function Q() {
|
|
15888
15888
|
return R()[0] === "hold";
|
|
15889
15889
|
}
|
|
15890
|
-
function
|
|
15890
|
+
function U() {
|
|
15891
15891
|
var fe;
|
|
15892
15892
|
return !!((fe = C.props.render) != null && fe.$$tippy);
|
|
15893
15893
|
}
|
|
@@ -15901,7 +15901,7 @@ function _H(t, e) {
|
|
|
15901
15901
|
function K() {
|
|
15902
15902
|
return xg(A);
|
|
15903
15903
|
}
|
|
15904
|
-
function
|
|
15904
|
+
function V(fe) {
|
|
15905
15905
|
return C.state.isMounted && !C.state.isVisible || ci.isTouch || d && d.type === "focus" ? 0 : t1(C.props.delay, fe ? 0 : 1, nr.delay);
|
|
15906
15906
|
}
|
|
15907
15907
|
function B(fe) {
|
|
@@ -16070,7 +16070,7 @@ function _H(t, e) {
|
|
|
16070
16070
|
}
|
|
16071
16071
|
function q() {
|
|
16072
16072
|
z();
|
|
16073
|
-
var fe = C.props, qe = fe.popperOptions, rt = fe.placement, Pt = fe.offset, It = fe.getReferenceClientRect, Fn = fe.moveTransition, Zn =
|
|
16073
|
+
var fe = C.props, qe = fe.popperOptions, rt = fe.placement, Pt = fe.offset, It = fe.getReferenceClientRect, Fn = fe.moveTransition, Zn = U() ? xg(A).arrow : null, Qn = It ? {
|
|
16074
16074
|
getBoundingClientRect: It,
|
|
16075
16075
|
contextElement: It.contextElement || ue()
|
|
16076
16076
|
} : t, Dr = {
|
|
@@ -16080,7 +16080,7 @@ function _H(t, e) {
|
|
|
16080
16080
|
requires: ["computeStyles"],
|
|
16081
16081
|
fn: function(sl) {
|
|
16082
16082
|
var us = sl.state;
|
|
16083
|
-
if (
|
|
16083
|
+
if (U()) {
|
|
16084
16084
|
var Cd = K(), Au = Cd.box;
|
|
16085
16085
|
["placement", "reference-hidden", "escaped"].forEach(function(al) {
|
|
16086
16086
|
al === "placement" ? Au.setAttribute("data-placement", us.placement) : us.attributes.popper["data-popper-" + al] ? Au.setAttribute("data-" + al, "") : Au.removeAttribute("data-" + al);
|
|
@@ -16113,7 +16113,7 @@ function _H(t, e) {
|
|
|
16113
16113
|
adaptive: !Fn
|
|
16114
16114
|
}
|
|
16115
16115
|
}, Dr];
|
|
16116
|
-
|
|
16116
|
+
U() && Zn && eo.push({
|
|
16117
16117
|
name: "arrow",
|
|
16118
16118
|
options: {
|
|
16119
16119
|
element: Zn,
|
|
@@ -16143,7 +16143,7 @@ function _H(t, e) {
|
|
|
16143
16143
|
}
|
|
16144
16144
|
function Ge(fe) {
|
|
16145
16145
|
C.clearDelayTimeouts(), fe && J("onTrigger", [C, fe]), Ve();
|
|
16146
|
-
var qe =
|
|
16146
|
+
var qe = V(!0), rt = R(), Pt = rt[0], It = rt[1];
|
|
16147
16147
|
ci.isTouch && Pt === "hold" && It && (qe = It), qe ? o = setTimeout(function() {
|
|
16148
16148
|
C.show();
|
|
16149
16149
|
}, qe) : C.show();
|
|
@@ -16154,7 +16154,7 @@ function _H(t, e) {
|
|
|
16154
16154
|
return;
|
|
16155
16155
|
}
|
|
16156
16156
|
if (!(C.props.trigger.indexOf("mouseenter") >= 0 && C.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(fe.type) >= 0 && s)) {
|
|
16157
|
-
var qe =
|
|
16157
|
+
var qe = V(!1);
|
|
16158
16158
|
qe ? r = setTimeout(function() {
|
|
16159
16159
|
C.state.isVisible && C.hide();
|
|
16160
16160
|
}, qe) : i = requestAnimationFrame(function() {
|
|
@@ -16189,22 +16189,22 @@ function _H(t, e) {
|
|
|
16189
16189
|
content: fe
|
|
16190
16190
|
});
|
|
16191
16191
|
}
|
|
16192
|
-
function
|
|
16192
|
+
function Je() {
|
|
16193
16193
|
process.env.NODE_ENV !== "production" && Wi(C.state.isDestroyed, Sl("show"));
|
|
16194
16194
|
var fe = C.state.isVisible, qe = C.state.isDestroyed, rt = !C.state.isEnabled, Pt = ci.isTouch && !C.props.touch, It = t1(C.props.duration, 0, nr.duration);
|
|
16195
16195
|
if (!(fe || qe || rt || Pt) && !ue().hasAttribute("disabled") && (J("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
16196
|
-
if (C.state.isVisible = !0,
|
|
16196
|
+
if (C.state.isVisible = !0, U() && (A.style.visibility = "visible"), B(), Ve(), C.state.isMounted || (A.style.transition = "none"), U()) {
|
|
16197
16197
|
var Fn = K(), Zn = Fn.box, Qn = Fn.content;
|
|
16198
16198
|
n1([Zn, Qn], 0);
|
|
16199
16199
|
}
|
|
16200
16200
|
h = function() {
|
|
16201
16201
|
var eo;
|
|
16202
16202
|
if (!(!C.state.isVisible || u)) {
|
|
16203
|
-
if (u = !0, A.offsetHeight, A.style.transition = C.props.moveTransition,
|
|
16203
|
+
if (u = !0, A.offsetHeight, A.style.transition = C.props.moveTransition, U() && C.props.animation) {
|
|
16204
16204
|
var Si = K(), sl = Si.box, us = Si.content;
|
|
16205
16205
|
n1([sl, us], It), G6([sl, us], "visible");
|
|
16206
16206
|
}
|
|
16207
|
-
re(), ne(), q6(r1, C), (eo = C.popperInstance) == null || eo.forceUpdate(), J("onMount", [C]), C.props.animation &&
|
|
16207
|
+
re(), ne(), q6(r1, C), (eo = C.popperInstance) == null || eo.forceUpdate(), J("onMount", [C]), C.props.animation && U() && ce(It, function() {
|
|
16208
16208
|
C.state.isShown = !0, J("onShown", [C]);
|
|
16209
16209
|
});
|
|
16210
16210
|
}
|
|
@@ -16215,11 +16215,11 @@ function _H(t, e) {
|
|
|
16215
16215
|
process.env.NODE_ENV !== "production" && Wi(C.state.isDestroyed, Sl("hide"));
|
|
16216
16216
|
var fe = !C.state.isVisible, qe = C.state.isDestroyed, rt = !C.state.isEnabled, Pt = t1(C.props.duration, 1, nr.duration);
|
|
16217
16217
|
if (!(fe || qe || rt) && (J("onHide", [C], !1), C.props.onHide(C) !== !1)) {
|
|
16218
|
-
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1,
|
|
16218
|
+
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1, U() && (A.style.visibility = "hidden"), he(), Ye(), B(!0), U()) {
|
|
16219
16219
|
var It = K(), Fn = It.box, Zn = It.content;
|
|
16220
16220
|
C.props.animation && (n1([Fn, Zn], Pt), G6([Fn, Zn], "hidden"));
|
|
16221
16221
|
}
|
|
16222
|
-
re(), ne(), C.props.animation ?
|
|
16222
|
+
re(), ne(), C.props.animation ? U() && se(Pt, C.unmount) : C.unmount();
|
|
16223
16223
|
}
|
|
16224
16224
|
}
|
|
16225
16225
|
function jt(fe) {
|
|
@@ -17070,7 +17070,7 @@ const vE = "1", RH = {
|
|
|
17070
17070
|
}, cd = {
|
|
17071
17071
|
SAVE: "ctrl+s,command+s"
|
|
17072
17072
|
};
|
|
17073
|
-
var
|
|
17073
|
+
var et = /* @__PURE__ */ ((t) => (t.COMPARE = "compare", t.EDITOR = "editor", t.STRAIGHT = "straight", t.REPORT = "report", t.PLAIN_TEXT = "plainText", t.SUPER_VIEW_MOBILE = "superViewMobile", t))(et || {}), zo = /* @__PURE__ */ ((t) => (t.COMMENT = "editor-comment-section", t.DISABLE_SUPER_INPUT = "data-disable-super-input", t))(zo || {});
|
|
17074
17074
|
const LH = [
|
|
17075
17075
|
"a",
|
|
17076
17076
|
"abbr",
|
|
@@ -17232,9 +17232,9 @@ function yE(t) {
|
|
|
17232
17232
|
}
|
|
17233
17233
|
const bo = (t, e, n) => {
|
|
17234
17234
|
if (typeof t == "object") return t;
|
|
17235
|
-
if (typeof t == "string" && (t = yE(t), n ===
|
|
17235
|
+
if (typeof t == "string" && (t = yE(t), n === et.PLAIN_TEXT && !e))
|
|
17236
17236
|
return t.replace(/\r?\n/g, "<br>");
|
|
17237
|
-
if (!e || n ===
|
|
17237
|
+
if (!e || n === et.PLAIN_TEXT || n === et.EDITOR) return t;
|
|
17238
17238
|
const o = document.createElement("div");
|
|
17239
17239
|
return o.innerHTML = t, PH(o), o.innerHTML;
|
|
17240
17240
|
};
|
|
@@ -17279,7 +17279,7 @@ var _p = { exports: {} };
|
|
|
17279
17279
|
_p.exports;
|
|
17280
17280
|
(function(t, e) {
|
|
17281
17281
|
(function() {
|
|
17282
|
-
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, y = 2, w = 1, x = 2, _ = 4, E = 8, C = 16, T = 32, A = 64, k = 128, F = 256, P = 512, R = 30, Q = "...",
|
|
17282
|
+
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, y = 2, w = 1, x = 2, _ = 4, E = 8, C = 16, T = 32, A = 64, k = 128, F = 256, P = 512, R = 30, Q = "...", U = 800, ue = 16, be = 1, K = 2, V = 3, B = 1 / 0, J = 9007199254740991, re = 17976931348623157e292, ne = NaN, he = 4294967295, Re = he - 1, De = he >>> 1, ot = [
|
|
17283
17283
|
["ary", k],
|
|
17284
17284
|
["bind", w],
|
|
17285
17285
|
["bindKey", x],
|
|
@@ -17289,7 +17289,7 @@ _p.exports;
|
|
|
17289
17289
|
["partial", T],
|
|
17290
17290
|
["partialRight", A],
|
|
17291
17291
|
["rearg", F]
|
|
17292
|
-
], Ve = "[object Arguments]", Ye = "[object Array]", se = "[object AsyncFunction]", ce = "[object Boolean]", we = "[object Date]", xe = "[object DOMException]", Ae = "[object Error]", ae = "[object Function]", Me = "[object GeneratorFunction]", Ke = "[object Map]", it = "[object Number]", Nt = "[object Null]", Ut = "[object Object]", q = "[object Promise]", z = "[object Proxy]", ve = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", mt = "[object Symbol]", oe = "[object Undefined]", X = "[object WeakMap]", me = "[object WeakSet]", ge = "[object ArrayBuffer]", Ne = "[object DataView]",
|
|
17292
|
+
], Ve = "[object Arguments]", Ye = "[object Array]", se = "[object AsyncFunction]", ce = "[object Boolean]", we = "[object Date]", xe = "[object DOMException]", Ae = "[object Error]", ae = "[object Function]", Me = "[object GeneratorFunction]", Ke = "[object Map]", it = "[object Number]", Nt = "[object Null]", Ut = "[object Object]", q = "[object Promise]", z = "[object Proxy]", ve = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", mt = "[object Symbol]", oe = "[object Undefined]", X = "[object WeakMap]", me = "[object WeakSet]", ge = "[object ArrayBuffer]", Ne = "[object DataView]", Je = "[object Float32Array]", yt = "[object Float64Array]", jt = "[object Int8Array]", pn = "[object Int16Array]", Lr = "[object Int32Array]", fe = "[object Uint8Array]", qe = "[object Uint8ClampedArray]", rt = "[object Uint16Array]", Pt = "[object Uint32Array]", It = /\b__p \+= '';/g, Fn = /\b(__p \+=) '' \+/g, Zn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Qn = /&(?:amp|lt|gt|quot|#39);/g, Dr = /[&<>"']/g, eo = RegExp(Qn.source), Si = RegExp(Dr.source), sl = /<%-([\s\S]+?)%>/g, us = /<%([\s\S]+?)%>/g, Cd = /<%=([\s\S]+?)%>/g, Au = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, al = /^\w*$/, M7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _0 = /[\\^$.*+?()[\]{}|]/g, N7 = RegExp(_0.source), S0 = /^\s+/, I7 = /\s/, R7 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, L7 = /\{\n\/\* \[wrapped with (.+)\] \*/, D7 = /,? & /, P7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, B7 = /[()=,{}\[\]\/\s]/, F7 = /\\(\\)?/g, $7 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Z2 = /\w*$/, H7 = /^[-+]0x[0-9a-f]+$/i, z7 = /^0b[01]+$/i, V7 = /^\[object .+?Constructor\]$/, U7 = /^0o[0-7]+$/i, W7 = /^(?:0|[1-9]\d*)$/, j7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ed = /($^)/, q7 = /['\n\r\u2028\u2029\\]/g, _d = "\\ud800-\\udfff", K7 = "\\u0300-\\u036f", G7 = "\\ufe20-\\ufe2f", X7 = "\\u20d0-\\u20ff", Q2 = K7 + G7 + X7, ey = "\\u2700-\\u27bf", ty = "a-z\\xdf-\\xf6\\xf8-\\xff", Y7 = "\\xac\\xb1\\xd7\\xf7", J7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Z7 = "\\u2000-\\u206f", Q7 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ny = "A-Z\\xc0-\\xd6\\xd8-\\xde", oy = "\\ufe0e\\ufe0f", ry = Y7 + J7 + Z7 + Q7, T0 = "['’]", ek = "[" + _d + "]", iy = "[" + ry + "]", Sd = "[" + Q2 + "]", sy = "\\d+", tk = "[" + ey + "]", ay = "[" + ty + "]", ly = "[^" + _d + ry + sy + ey + ty + ny + "]", k0 = "\\ud83c[\\udffb-\\udfff]", nk = "(?:" + Sd + "|" + k0 + ")", uy = "[^" + _d + "]", A0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", O0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", ll = "[" + ny + "]", cy = "\\u200d", dy = "(?:" + ay + "|" + ly + ")", ok = "(?:" + ll + "|" + ly + ")", fy = "(?:" + T0 + "(?:d|ll|m|re|s|t|ve))?", py = "(?:" + T0 + "(?:D|LL|M|RE|S|T|VE))?", hy = nk + "?", my = "[" + oy + "]?", rk = "(?:" + cy + "(?:" + [uy, A0, O0].join("|") + ")" + my + hy + ")*", ik = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sk = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gy = my + hy + rk, ak = "(?:" + [tk, A0, O0].join("|") + ")" + gy, lk = "(?:" + [uy + Sd + "?", Sd, A0, O0, ek].join("|") + ")", uk = RegExp(T0, "g"), ck = RegExp(Sd, "g"), M0 = RegExp(k0 + "(?=" + k0 + ")|" + lk + gy, "g"), dk = RegExp([
|
|
17293
17293
|
ll + "?" + ay + "+" + fy + "(?=" + [iy, ll, "$"].join("|") + ")",
|
|
17294
17294
|
ok + "+" + py + "(?=" + [iy, ll + dy, "$"].join("|") + ")",
|
|
17295
17295
|
ll + "?" + dy + "+" + fy,
|
|
@@ -17330,9 +17330,9 @@ _p.exports;
|
|
|
17330
17330
|
"parseInt",
|
|
17331
17331
|
"setTimeout"
|
|
17332
17332
|
], mk = -1, hn = {};
|
|
17333
|
-
hn[
|
|
17333
|
+
hn[Je] = hn[yt] = hn[jt] = hn[pn] = hn[Lr] = hn[fe] = hn[qe] = hn[rt] = hn[Pt] = !0, hn[Ve] = hn[Ye] = hn[ge] = hn[ce] = hn[Ne] = hn[we] = hn[Ae] = hn[ae] = hn[Ke] = hn[it] = hn[Ut] = hn[ve] = hn[Oe] = hn[Ge] = hn[X] = !1;
|
|
17334
17334
|
var dn = {};
|
|
17335
|
-
dn[Ve] = dn[Ye] = dn[ge] = dn[Ne] = dn[ce] = dn[we] = dn[
|
|
17335
|
+
dn[Ve] = dn[Ye] = dn[ge] = dn[Ne] = dn[ce] = dn[we] = dn[Je] = dn[yt] = dn[jt] = dn[pn] = dn[Lr] = dn[Ke] = dn[it] = dn[Ut] = dn[ve] = dn[Oe] = dn[Ge] = dn[mt] = dn[fe] = dn[qe] = dn[rt] = dn[Pt] = !0, dn[Ae] = dn[ae] = dn[X] = !1;
|
|
17336
17336
|
var gk = {
|
|
17337
17337
|
// Latin-1 Supplement block.
|
|
17338
17338
|
À: "A",
|
|
@@ -17923,12 +17923,12 @@ _p.exports;
|
|
|
17923
17923
|
return c;
|
|
17924
17924
|
}
|
|
17925
17925
|
function mA() {
|
|
17926
|
-
var c = this.__wrapped__.value(), p = this.__dir__, v = vt(c), S = p < 0, O = v ? c.length : 0, L = k9(0, O, this.__views__), W = L.start, G = L.end, te = G - W, Ee = S ? G : W - 1, _e = this.__iteratees__, Te = _e.length, Fe = 0,
|
|
17927
|
-
if (!v || !S && O == te &&
|
|
17926
|
+
var c = this.__wrapped__.value(), p = this.__dir__, v = vt(c), S = p < 0, O = v ? c.length : 0, L = k9(0, O, this.__views__), W = L.start, G = L.end, te = G - W, Ee = S ? G : W - 1, _e = this.__iteratees__, Te = _e.length, Fe = 0, Ze = co(te, this.__takeCount__);
|
|
17927
|
+
if (!v || !S && O == te && Ze == te)
|
|
17928
17928
|
return f3(c, this.__actions__);
|
|
17929
17929
|
var lt = [];
|
|
17930
17930
|
e:
|
|
17931
|
-
for (; te-- && Fe <
|
|
17931
|
+
for (; te-- && Fe < Ze; ) {
|
|
17932
17932
|
Ee += p;
|
|
17933
17933
|
for (var St = -1, ut = c[Ee]; ++St < Te; ) {
|
|
17934
17934
|
var Rt = _e[St], $t = Rt.iteratee, Zo = Rt.type, So = $t(ut);
|
|
@@ -18158,9 +18158,9 @@ _p.exports;
|
|
|
18158
18158
|
}
|
|
18159
18159
|
}
|
|
18160
18160
|
L || (L = new Br());
|
|
18161
|
-
var
|
|
18162
|
-
if (
|
|
18163
|
-
return
|
|
18161
|
+
var Ze = L.get(c);
|
|
18162
|
+
if (Ze)
|
|
18163
|
+
return Ze;
|
|
18164
18164
|
L.set(c, W), u4(c) ? c.forEach(function(ut) {
|
|
18165
18165
|
W.add(gr(ut, p, v, ut, c, L));
|
|
18166
18166
|
}) : a4(c) && c.forEach(function(ut, Rt) {
|
|
@@ -18293,14 +18293,14 @@ _p.exports;
|
|
|
18293
18293
|
var Te = -1, Fe = G[0];
|
|
18294
18294
|
e:
|
|
18295
18295
|
for (; ++Te < O && Ee.length < te; ) {
|
|
18296
|
-
var
|
|
18297
|
-
if (
|
|
18296
|
+
var Ze = _e[Te], lt = p ? p(Ze) : Ze;
|
|
18297
|
+
if (Ze = v || Ze !== 0 ? Ze : 0, !(Fe ? Ou(Fe, lt) : S(Ee, lt, v))) {
|
|
18298
18298
|
for (W = L; --W; ) {
|
|
18299
18299
|
var St = G[W];
|
|
18300
18300
|
if (!(St ? Ou(St, lt) : S(c[W], lt, v)))
|
|
18301
18301
|
continue e;
|
|
18302
18302
|
}
|
|
18303
|
-
Fe && Fe.push(lt), Ee.push(
|
|
18303
|
+
Fe && Fe.push(lt), Ee.push(Ze);
|
|
18304
18304
|
}
|
|
18305
18305
|
}
|
|
18306
18306
|
return Ee;
|
|
@@ -18339,9 +18339,9 @@ _p.exports;
|
|
|
18339
18339
|
if (Fe && !_e)
|
|
18340
18340
|
return L || (L = new Br()), W || wl(c) ? N3(c, p, v, S, O, L) : _9(c, p, te, v, S, O, L);
|
|
18341
18341
|
if (!(v & b)) {
|
|
18342
|
-
var
|
|
18343
|
-
if (
|
|
18344
|
-
var St =
|
|
18342
|
+
var Ze = _e && Xt.call(c, "__wrapped__"), lt = Te && Xt.call(p, "__wrapped__");
|
|
18343
|
+
if (Ze || lt) {
|
|
18344
|
+
var St = Ze ? c.value() : c, ut = lt ? p.value() : p;
|
|
18345
18345
|
return L || (L = new Br()), O(St, ut, v, S, L);
|
|
18346
18346
|
}
|
|
18347
18347
|
}
|
|
@@ -18448,8 +18448,8 @@ _p.exports;
|
|
|
18448
18448
|
}
|
|
18449
18449
|
var _e = L ? L(G, te, v + "", c, p, W) : n, Te = _e === n;
|
|
18450
18450
|
if (Te) {
|
|
18451
|
-
var Fe = vt(te),
|
|
18452
|
-
_e = te, Fe ||
|
|
18451
|
+
var Fe = vt(te), Ze = !Fe && vs(te), lt = !Fe && !Ze && wl(te);
|
|
18452
|
+
_e = te, Fe || Ze || lt ? vt(G) ? _e = G : Nn(G) ? _e = Lo(G) : Ze ? (Te = !1, _e = m3(te, !0)) : lt ? (Te = !1, _e = g3(te, !0)) : _e = [] : Uu(te) || fa(te) ? (_e = G, fa(G) ? _e = f4(G) : (!xn(G) || Ii(G)) && (_e = L3(te))) : Te = !1;
|
|
18453
18453
|
}
|
|
18454
18454
|
Te && (W.set(te, _e), O(_e, te, S, L, W), W.delete(te)), q0(c, v, _e);
|
|
18455
18455
|
}
|
|
@@ -18596,10 +18596,10 @@ _p.exports;
|
|
|
18596
18596
|
return 0;
|
|
18597
18597
|
p = v(p);
|
|
18598
18598
|
for (var W = p !== p, G = p === null, te = Jo(p), Ee = p === n; O < L; ) {
|
|
18599
|
-
var _e = $d((O + L) / 2), Te = v(c[_e]), Fe = Te !== n,
|
|
18599
|
+
var _e = $d((O + L) / 2), Te = v(c[_e]), Fe = Te !== n, Ze = Te === null, lt = Te === Te, St = Jo(Te);
|
|
18600
18600
|
if (W)
|
|
18601
18601
|
var ut = S || lt;
|
|
18602
|
-
else Ee ? ut = lt && (S || Fe) : G ? ut = lt && Fe && (S || !
|
|
18602
|
+
else Ee ? ut = lt && (S || Fe) : G ? ut = lt && Fe && (S || !Ze) : te ? ut = lt && Fe && !Ze && (S || !St) : Ze || St ? ut = !1 : ut = S ? Te <= p : Te < p;
|
|
18603
18603
|
ut ? O = _e + 1 : L = _e;
|
|
18604
18604
|
}
|
|
18605
18605
|
return co(L, Re);
|
|
@@ -18759,10 +18759,10 @@ _p.exports;
|
|
|
18759
18759
|
function y3(c, p, v, S) {
|
|
18760
18760
|
for (var O = -1, L = c.length, W = -1, G = v.length, te = -1, Ee = p.length, _e = Un(L - G, 0), Te = le(_e + Ee), Fe = !S; ++O < _e; )
|
|
18761
18761
|
Te[O] = c[O];
|
|
18762
|
-
for (var
|
|
18763
|
-
Te[
|
|
18762
|
+
for (var Ze = O; ++te < Ee; )
|
|
18763
|
+
Te[Ze + te] = p[te];
|
|
18764
18764
|
for (; ++W < G; )
|
|
18765
|
-
(Fe || O < L) && (Te[
|
|
18765
|
+
(Fe || O < L) && (Te[Ze + v[W]] = c[O++]);
|
|
18766
18766
|
return Te;
|
|
18767
18767
|
}
|
|
18768
18768
|
function Lo(c, p) {
|
|
@@ -18931,13 +18931,13 @@ _p.exports;
|
|
|
18931
18931
|
});
|
|
18932
18932
|
}
|
|
18933
18933
|
function Yd(c, p, v, S, O, L, W, G, te, Ee) {
|
|
18934
|
-
var _e = p & k, Te = p & w, Fe = p & x,
|
|
18934
|
+
var _e = p & k, Te = p & w, Fe = p & x, Ze = p & (E | C), lt = p & P, St = Fe ? n : Hu(c);
|
|
18935
18935
|
function ut() {
|
|
18936
18936
|
for (var Rt = arguments.length, $t = le(Rt), Zo = Rt; Zo--; )
|
|
18937
18937
|
$t[Zo] = arguments[Zo];
|
|
18938
|
-
if (
|
|
18938
|
+
if (Ze)
|
|
18939
18939
|
var So = yl(ut), Qo = Ik($t, So);
|
|
18940
|
-
if (S && ($t = v3($t, S, O,
|
|
18940
|
+
if (S && ($t = v3($t, S, O, Ze)), L && ($t = y3($t, L, W, Ze)), Rt -= Qo, Ze && Rt < Ee) {
|
|
18941
18941
|
var In = fs($t, So);
|
|
18942
18942
|
return k3(
|
|
18943
18943
|
c,
|
|
@@ -19015,13 +19015,13 @@ _p.exports;
|
|
|
19015
19015
|
};
|
|
19016
19016
|
}
|
|
19017
19017
|
function k3(c, p, v, S, O, L, W, G, te, Ee) {
|
|
19018
|
-
var _e = p & E, Te = _e ? W : n, Fe = _e ? n : W,
|
|
19018
|
+
var _e = p & E, Te = _e ? W : n, Fe = _e ? n : W, Ze = _e ? L : n, lt = _e ? n : L;
|
|
19019
19019
|
p |= _e ? T : A, p &= ~(_e ? A : T), p & _ || (p &= -4);
|
|
19020
19020
|
var St = [
|
|
19021
19021
|
c,
|
|
19022
19022
|
p,
|
|
19023
19023
|
O,
|
|
19024
|
-
|
|
19024
|
+
Ze,
|
|
19025
19025
|
Te,
|
|
19026
19026
|
lt,
|
|
19027
19027
|
Fe,
|
|
@@ -19059,7 +19059,7 @@ _p.exports;
|
|
|
19059
19059
|
var _e = S, Te = O;
|
|
19060
19060
|
S = O = n;
|
|
19061
19061
|
}
|
|
19062
|
-
var Fe = te ? n : hm(c),
|
|
19062
|
+
var Fe = te ? n : hm(c), Ze = [
|
|
19063
19063
|
c,
|
|
19064
19064
|
p,
|
|
19065
19065
|
v,
|
|
@@ -19071,11 +19071,11 @@ _p.exports;
|
|
|
19071
19071
|
W,
|
|
19072
19072
|
G
|
|
19073
19073
|
];
|
|
19074
|
-
if (Fe && B9(
|
|
19074
|
+
if (Fe && B9(Ze, Fe), c = Ze[0], p = Ze[1], v = Ze[2], S = Ze[3], O = Ze[4], G = Ze[9] = Ze[9] === n ? te ? 0 : c.length : Un(Ze[9] - Ee, 0), !G && p & (E | C) && (p &= -25), !p || p == w)
|
|
19075
19075
|
var lt = y9(c, p, v);
|
|
19076
|
-
else p == E || p == C ? lt = w9(c, p, G) : (p == T || p == (w | T)) && !O.length ? lt = x9(c, p, v, S) : lt = Yd.apply(n,
|
|
19076
|
+
else p == E || p == C ? lt = w9(c, p, G) : (p == T || p == (w | T)) && !O.length ? lt = x9(c, p, v, S) : lt = Yd.apply(n, Ze);
|
|
19077
19077
|
var St = Fe ? l3 : $3;
|
|
19078
|
-
return H3(St(lt,
|
|
19078
|
+
return H3(St(lt, Ze), c, p);
|
|
19079
19079
|
}
|
|
19080
19080
|
function O3(c, p, v, S) {
|
|
19081
19081
|
return c === n || Fr(c, pl[v]) && !Xt.call(S, v) ? p : c;
|
|
@@ -19093,7 +19093,7 @@ _p.exports;
|
|
|
19093
19093
|
var Ee = L.get(c), _e = L.get(p);
|
|
19094
19094
|
if (Ee && _e)
|
|
19095
19095
|
return Ee == p && _e == c;
|
|
19096
|
-
var Te = -1, Fe = !0,
|
|
19096
|
+
var Te = -1, Fe = !0, Ze = v & y ? new aa() : n;
|
|
19097
19097
|
for (L.set(c, p), L.set(p, c); ++Te < G; ) {
|
|
19098
19098
|
var lt = c[Te], St = p[Te];
|
|
19099
19099
|
if (S)
|
|
@@ -19104,10 +19104,10 @@ _p.exports;
|
|
|
19104
19104
|
Fe = !1;
|
|
19105
19105
|
break;
|
|
19106
19106
|
}
|
|
19107
|
-
if (
|
|
19107
|
+
if (Ze) {
|
|
19108
19108
|
if (!D0(p, function(Rt, $t) {
|
|
19109
|
-
if (!Ou(
|
|
19110
|
-
return
|
|
19109
|
+
if (!Ou(Ze, $t) && (lt === Rt || O(lt, Rt, v, S, L)))
|
|
19110
|
+
return Ze.push($t);
|
|
19111
19111
|
})) {
|
|
19112
19112
|
Fe = !1;
|
|
19113
19113
|
break;
|
|
@@ -19163,9 +19163,9 @@ _p.exports;
|
|
|
19163
19163
|
if (!(W ? Fe in p : Xt.call(p, Fe)))
|
|
19164
19164
|
return !1;
|
|
19165
19165
|
}
|
|
19166
|
-
var
|
|
19167
|
-
if (
|
|
19168
|
-
return
|
|
19166
|
+
var Ze = L.get(c), lt = L.get(p);
|
|
19167
|
+
if (Ze && lt)
|
|
19168
|
+
return Ze == p && lt == c;
|
|
19169
19169
|
var St = !0;
|
|
19170
19170
|
L.set(c, p), L.set(p, c);
|
|
19171
19171
|
for (var ut = W; ++Te < te; ) {
|
|
@@ -19315,7 +19315,7 @@ _p.exports;
|
|
|
19315
19315
|
return new S(+c);
|
|
19316
19316
|
case Ne:
|
|
19317
19317
|
return p9(c, v);
|
|
19318
|
-
case
|
|
19318
|
+
case Je:
|
|
19319
19319
|
case yt:
|
|
19320
19320
|
case jt:
|
|
19321
19321
|
case pn:
|
|
@@ -19459,7 +19459,7 @@ _p.exports;
|
|
|
19459
19459
|
return function() {
|
|
19460
19460
|
var S = iA(), O = ue - (S - v);
|
|
19461
19461
|
if (v = S, O > 0) {
|
|
19462
|
-
if (++p >=
|
|
19462
|
+
if (++p >= U)
|
|
19463
19463
|
return arguments[0];
|
|
19464
19464
|
} else
|
|
19465
19465
|
p = 0;
|
|
@@ -19992,12 +19992,12 @@ _p.exports;
|
|
|
19992
19992
|
if (typeof c != "function")
|
|
19993
19993
|
throw new hr(s);
|
|
19994
19994
|
p = yr(p) || 0, xn(v) && (_e = !!v.leading, Te = "maxWait" in v, L = Te ? Un(yr(v.maxWait) || 0, p) : L, Fe = "trailing" in v ? !!v.trailing : Fe);
|
|
19995
|
-
function
|
|
19995
|
+
function Ze(In) {
|
|
19996
19996
|
var $r = S, Li = O;
|
|
19997
19997
|
return S = O = n, Ee = In, W = c.apply(Li, $r), W;
|
|
19998
19998
|
}
|
|
19999
19999
|
function lt(In) {
|
|
20000
|
-
return Ee = In, G = Vu(Rt, p), _e ?
|
|
20000
|
+
return Ee = In, G = Vu(Rt, p), _e ? Ze(In) : W;
|
|
20001
20001
|
}
|
|
20002
20002
|
function St(In) {
|
|
20003
20003
|
var $r = In - te, Li = In - Ee, E4 = p - $r;
|
|
@@ -20014,7 +20014,7 @@ _p.exports;
|
|
|
20014
20014
|
G = Vu(Rt, St(In));
|
|
20015
20015
|
}
|
|
20016
20016
|
function $t(In) {
|
|
20017
|
-
return G = n, Fe && S ?
|
|
20017
|
+
return G = n, Fe && S ? Ze(In) : (S = O = n, W);
|
|
20018
20018
|
}
|
|
20019
20019
|
function Zo() {
|
|
20020
20020
|
G !== n && h3(G), Ee = 0, S = te = O = G = n;
|
|
@@ -20028,7 +20028,7 @@ _p.exports;
|
|
|
20028
20028
|
if (G === n)
|
|
20029
20029
|
return lt(te);
|
|
20030
20030
|
if (Te)
|
|
20031
|
-
return h3(G), G = Vu(Rt, p),
|
|
20031
|
+
return h3(G), G = Vu(Rt, p), Ze(te);
|
|
20032
20032
|
}
|
|
20033
20033
|
return G === n && (G = Vu(Rt, p)), W;
|
|
20034
20034
|
}
|
|
@@ -20574,7 +20574,7 @@ _p.exports;
|
|
|
20574
20574
|
var O = df({}, p.imports, S.imports, O3), L = Kn(O), W = H0(O, L), G, te, Ee = 0, _e = p.interpolate || Ed, Te = "__p += '", Fe = V0(
|
|
20575
20575
|
(p.escape || Ed).source + "|" + _e.source + "|" + (_e === Cd ? $7 : Ed).source + "|" + (p.evaluate || Ed).source + "|$",
|
|
20576
20576
|
"g"
|
|
20577
|
-
),
|
|
20577
|
+
), Ze = "//# sourceURL=" + (Xt.call(p, "sourceURL") ? (p.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++mk + "]") + `
|
|
20578
20578
|
`;
|
|
20579
20579
|
c.replace(Fe, function(ut, Rt, $t, Zo, So, Qo) {
|
|
20580
20580
|
return $t || ($t = Zo), Te += c.slice(Ee, Qo).replace(q7, Dk), Rt && (G = !0, Te += `' +
|
|
@@ -20602,7 +20602,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20602
20602
|
`) + Te + `return __p
|
|
20603
20603
|
}`;
|
|
20604
20604
|
var St = x4(function() {
|
|
20605
|
-
return qt(L,
|
|
20605
|
+
return qt(L, Ze + "return " + Te).apply(n, W);
|
|
20606
20606
|
});
|
|
20607
20607
|
if (St.source = Te, Sm(St))
|
|
20608
20608
|
throw St;
|
|
@@ -20858,7 +20858,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20858
20858
|
return this.reverse()[c](v).reverse();
|
|
20859
20859
|
};
|
|
20860
20860
|
}), pr(["filter", "map", "takeWhile"], function(c, p) {
|
|
20861
|
-
var v = p + 1, S = v == be || v ==
|
|
20861
|
+
var v = p + 1, S = v == be || v == V;
|
|
20862
20862
|
Bt.prototype[c] = function(O) {
|
|
20863
20863
|
var L = this.clone();
|
|
20864
20864
|
return L.__iteratees__.push({
|
|
@@ -20904,7 +20904,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20904
20904
|
return S && Fe ? $t[0] : $t;
|
|
20905
20905
|
};
|
|
20906
20906
|
_e && v && typeof Ee == "function" && Ee.length != 1 && (te = _e = !1);
|
|
20907
|
-
var Fe = this.__chain__,
|
|
20907
|
+
var Fe = this.__chain__, Ze = !!this.__actions__.length, lt = L && !Fe, St = te && !Ze;
|
|
20908
20908
|
if (!L && _e) {
|
|
20909
20909
|
W = St ? W : new Bt(this);
|
|
20910
20910
|
var ut = c.apply(W, G);
|
|
@@ -21420,17 +21420,17 @@ const tz = (t) => ({
|
|
|
21420
21420
|
}, m = pv(r), b = fv(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", _ = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", C = i.reference[b] + i.reference[m] - h[m] - i.floating[b], T = h[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
21421
21421
|
let k = A ? A[E] : 0;
|
|
21422
21422
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = a.floating[E] || i.floating[b]);
|
|
21423
|
-
const F = C / 2 - T / 2, P = k / 2 - y[b] / 2 - 1, R = Us(f[x], P), Q = Us(f[_], P),
|
|
21423
|
+
const F = C / 2 - T / 2, P = k / 2 - y[b] / 2 - 1, R = Us(f[x], P), Q = Us(f[_], P), U = R, ue = k - y[b] - Q, be = k / 2 - y[b] / 2 + F, K = _g(U, be, ue), V = !l.arrow && hu(r) != null && be !== K && i.reference[b] / 2 - (be < U ? R : Q) - y[b] / 2 < 0, B = V ? be < U ? be - U : be - ue : 0;
|
|
21424
21424
|
return {
|
|
21425
21425
|
[m]: h[m] + B,
|
|
21426
21426
|
data: {
|
|
21427
21427
|
[m]: K,
|
|
21428
21428
|
centerOffset: be - K - B,
|
|
21429
|
-
...
|
|
21429
|
+
...V && {
|
|
21430
21430
|
alignmentOffset: B
|
|
21431
21431
|
}
|
|
21432
21432
|
},
|
|
21433
|
-
reset:
|
|
21433
|
+
reset: V
|
|
21434
21434
|
};
|
|
21435
21435
|
}
|
|
21436
21436
|
}), nz = function(t) {
|
|
@@ -21469,7 +21469,7 @@ const tz = (t) => ({
|
|
|
21469
21469
|
placement: r,
|
|
21470
21470
|
overflows: P
|
|
21471
21471
|
}], !P.every((be) => be <= 0)) {
|
|
21472
|
-
var Q,
|
|
21472
|
+
var Q, U;
|
|
21473
21473
|
const be = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, K = k[be];
|
|
21474
21474
|
if (K)
|
|
21475
21475
|
return {
|
|
@@ -21481,8 +21481,8 @@ const tz = (t) => ({
|
|
|
21481
21481
|
placement: K
|
|
21482
21482
|
}
|
|
21483
21483
|
};
|
|
21484
|
-
let
|
|
21485
|
-
if (!
|
|
21484
|
+
let V = (U = R.filter((B) => B.overflows[0] <= 0).sort((B, J) => B.overflows[1] - J.overflows[1])[0]) == null ? void 0 : U.placement;
|
|
21485
|
+
if (!V)
|
|
21486
21486
|
switch (m) {
|
|
21487
21487
|
case "bestFit": {
|
|
21488
21488
|
var ue;
|
|
@@ -21495,17 +21495,17 @@ const tz = (t) => ({
|
|
|
21495
21495
|
}
|
|
21496
21496
|
return !0;
|
|
21497
21497
|
}).map((J) => [J.placement, J.overflows.filter((re) => re > 0).reduce((re, ne) => re + ne, 0)]).sort((J, re) => J[1] - re[1])[0]) == null ? void 0 : ue[0];
|
|
21498
|
-
B && (
|
|
21498
|
+
B && (V = B);
|
|
21499
21499
|
break;
|
|
21500
21500
|
}
|
|
21501
21501
|
case "initialPlacement":
|
|
21502
|
-
|
|
21502
|
+
V = a;
|
|
21503
21503
|
break;
|
|
21504
21504
|
}
|
|
21505
|
-
if (r !==
|
|
21505
|
+
if (r !== V)
|
|
21506
21506
|
return {
|
|
21507
21507
|
reset: {
|
|
21508
|
-
placement:
|
|
21508
|
+
placement: V
|
|
21509
21509
|
}
|
|
21510
21510
|
};
|
|
21511
21511
|
}
|
|
@@ -21737,8 +21737,8 @@ const iz = function(t) {
|
|
|
21737
21737
|
const _ = y - d.top - d.bottom, E = b - d.left - d.right, C = Us(y - d[w], _), T = Us(b - d[x], E), A = !e.middlewareData.shift;
|
|
21738
21738
|
let k = C, F = T;
|
|
21739
21739
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (F = E), (o = e.middlewareData.shift) != null && o.enabled.y && (k = _), A && !h) {
|
|
21740
|
-
const R = er(d.left, 0), Q = er(d.right, 0),
|
|
21741
|
-
m ? F = b - 2 * (R !== 0 || Q !== 0 ? R + Q : er(d.left, d.right)) : k = y - 2 * (
|
|
21740
|
+
const R = er(d.left, 0), Q = er(d.right, 0), U = er(d.top, 0), ue = er(d.bottom, 0);
|
|
21741
|
+
m ? F = b - 2 * (R !== 0 || Q !== 0 ? R + Q : er(d.left, d.right)) : k = y - 2 * (U !== 0 || ue !== 0 ? U + ue : er(d.top, d.bottom));
|
|
21742
21742
|
}
|
|
21743
21743
|
await l({
|
|
21744
21744
|
...e,
|
|
@@ -24257,18 +24257,18 @@ const GE = {
|
|
|
24257
24257
|
}),
|
|
24258
24258
|
Oz({
|
|
24259
24259
|
...b.value,
|
|
24260
|
-
apply: ({ elements: R, rects: Q, availableWidth:
|
|
24261
|
-
const { width: be, height: K } = Q.reference,
|
|
24262
|
-
|
|
24260
|
+
apply: ({ elements: R, rects: Q, availableWidth: U, availableHeight: ue }) => {
|
|
24261
|
+
const { width: be, height: K } = Q.reference, V = R.floating.style;
|
|
24262
|
+
V.setProperty(
|
|
24263
24263
|
"--radix-popper-available-width",
|
|
24264
|
-
`${
|
|
24265
|
-
),
|
|
24264
|
+
`${U}px`
|
|
24265
|
+
), V.setProperty(
|
|
24266
24266
|
"--radix-popper-available-height",
|
|
24267
24267
|
`${ue}px`
|
|
24268
|
-
),
|
|
24268
|
+
), V.setProperty(
|
|
24269
24269
|
"--radix-popper-anchor-width",
|
|
24270
24270
|
`${be}px`
|
|
24271
|
-
),
|
|
24271
|
+
), V.setProperty(
|
|
24272
24272
|
"--radix-popper-anchor-height",
|
|
24273
24273
|
`${K}px`
|
|
24274
24274
|
);
|
|
@@ -24322,7 +24322,7 @@ const GE = {
|
|
|
24322
24322
|
arrowY: P,
|
|
24323
24323
|
shouldHideArrow: A
|
|
24324
24324
|
}), (R, Q) => {
|
|
24325
|
-
var
|
|
24325
|
+
var U, ue, be;
|
|
24326
24326
|
return M(), pe("div", {
|
|
24327
24327
|
ref_key: "floatingRef",
|
|
24328
24328
|
ref: a,
|
|
@@ -24334,7 +24334,7 @@ const GE = {
|
|
|
24334
24334
|
minWidth: "max-content",
|
|
24335
24335
|
zIndex: k.value,
|
|
24336
24336
|
"--radix-popper-transform-origin": [
|
|
24337
|
-
(
|
|
24337
|
+
(U = g(E).transformOrigin) == null ? void 0 : U.x,
|
|
24338
24338
|
(ue = g(E).transformOrigin) == null ? void 0 : ue.y
|
|
24339
24339
|
].join(" "),
|
|
24340
24340
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -24729,8 +24729,8 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24729
24729
|
window.clearTimeout(d.value);
|
|
24730
24730
|
});
|
|
24731
24731
|
function T(R) {
|
|
24732
|
-
var Q,
|
|
24733
|
-
return m.value === ((Q = h.value) == null ? void 0 : Q.side) && UV(R, (
|
|
24732
|
+
var Q, U;
|
|
24733
|
+
return m.value === ((Q = h.value) == null ? void 0 : Q.side) && UV(R, (U = h.value) == null ? void 0 : U.area);
|
|
24734
24734
|
}
|
|
24735
24735
|
async function A(R) {
|
|
24736
24736
|
var Q;
|
|
@@ -24741,7 +24741,7 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24741
24741
|
function k(R) {
|
|
24742
24742
|
if (R.defaultPrevented)
|
|
24743
24743
|
return;
|
|
24744
|
-
const Q = R.target.closest("[data-radix-menu-content]") === R.currentTarget,
|
|
24744
|
+
const Q = R.target.closest("[data-radix-menu-content]") === R.currentTarget, U = R.ctrlKey || R.altKey || R.metaKey, ue = R.key.length === 1, be = tV(
|
|
24745
24745
|
R,
|
|
24746
24746
|
yo(),
|
|
24747
24747
|
_.value,
|
|
@@ -24755,22 +24755,22 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24755
24755
|
);
|
|
24756
24756
|
if (be)
|
|
24757
24757
|
return be == null ? void 0 : be.focus();
|
|
24758
|
-
if (R.code === "Space" || (Q && (R.key === "Tab" && R.preventDefault(), !
|
|
24758
|
+
if (R.code === "Space" || (Q && (R.key === "Tab" && R.preventDefault(), !U && ue && C(R.key)), R.target !== _.value) || !zV.includes(R.key))
|
|
24759
24759
|
return;
|
|
24760
24760
|
R.preventDefault();
|
|
24761
24761
|
const K = E.value;
|
|
24762
24762
|
VE.includes(R.key) && K.reverse(), Ig(K);
|
|
24763
24763
|
}
|
|
24764
24764
|
function F(R) {
|
|
24765
|
-
var Q,
|
|
24766
|
-
(
|
|
24765
|
+
var Q, U;
|
|
24766
|
+
(U = (Q = R == null ? void 0 : R.currentTarget) == null ? void 0 : Q.contains) != null && U.call(Q, R.target) || (window.clearTimeout(d.value), u.value = "");
|
|
24767
24767
|
}
|
|
24768
24768
|
function P(R) {
|
|
24769
24769
|
var Q;
|
|
24770
24770
|
if (!Rg(R))
|
|
24771
24771
|
return;
|
|
24772
|
-
const
|
|
24773
|
-
if ((Q = R == null ? void 0 : R.currentTarget) != null && Q.contains(
|
|
24772
|
+
const U = R.target, ue = b.value !== R.clientX;
|
|
24773
|
+
if ((Q = R == null ? void 0 : R.currentTarget) != null && Q.contains(U) && ue) {
|
|
24774
24774
|
const be = R.clientX > b.value ? "right" : "left";
|
|
24775
24775
|
m.value = be, b.value = R.clientX;
|
|
24776
24776
|
}
|
|
@@ -24791,28 +24791,28 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24791
24791
|
"as-child": "",
|
|
24792
24792
|
trapped: g(s),
|
|
24793
24793
|
onMountAutoFocus: A,
|
|
24794
|
-
onUnmountAutoFocus: Q[7] || (Q[7] = (
|
|
24794
|
+
onUnmountAutoFocus: Q[7] || (Q[7] = (U) => o("closeAutoFocus", U))
|
|
24795
24795
|
}, {
|
|
24796
24796
|
default: N(() => [
|
|
24797
24797
|
D(g(hd), {
|
|
24798
24798
|
"as-child": "",
|
|
24799
24799
|
"disable-outside-pointer-events": g(a),
|
|
24800
|
-
onEscapeKeyDown: Q[2] || (Q[2] = (
|
|
24801
|
-
onPointerDownOutside: Q[3] || (Q[3] = (
|
|
24802
|
-
onFocusOutside: Q[4] || (Q[4] = (
|
|
24803
|
-
onInteractOutside: Q[5] || (Q[5] = (
|
|
24804
|
-
onDismiss: Q[6] || (Q[6] = (
|
|
24800
|
+
onEscapeKeyDown: Q[2] || (Q[2] = (U) => o("escapeKeyDown", U)),
|
|
24801
|
+
onPointerDownOutside: Q[3] || (Q[3] = (U) => o("pointerDownOutside", U)),
|
|
24802
|
+
onFocusOutside: Q[4] || (Q[4] = (U) => o("focusOutside", U)),
|
|
24803
|
+
onInteractOutside: Q[5] || (Q[5] = (U) => o("interactOutside", U)),
|
|
24804
|
+
onDismiss: Q[6] || (Q[6] = (U) => o("dismiss"))
|
|
24805
24805
|
}, {
|
|
24806
24806
|
default: N(() => [
|
|
24807
24807
|
D(g(n_), {
|
|
24808
24808
|
"current-tab-stop-id": y.value,
|
|
24809
|
-
"onUpdate:currentTabStopId": Q[0] || (Q[0] = (
|
|
24809
|
+
"onUpdate:currentTabStopId": Q[0] || (Q[0] = (U) => y.value = U),
|
|
24810
24810
|
"as-child": "",
|
|
24811
24811
|
orientation: "vertical",
|
|
24812
24812
|
dir: g(i).dir.value,
|
|
24813
24813
|
loop: g(l),
|
|
24814
|
-
onEntryFocus: Q[1] || (Q[1] = (
|
|
24815
|
-
o("entryFocus",
|
|
24814
|
+
onEntryFocus: Q[1] || (Q[1] = (U) => {
|
|
24815
|
+
o("entryFocus", U), g(i).isUsingKeyboardRef.value || U.preventDefault();
|
|
24816
24816
|
})
|
|
24817
24817
|
}, {
|
|
24818
24818
|
default: N(() => [
|
|
@@ -26838,7 +26838,7 @@ const AW = /* @__PURE__ */ j({
|
|
|
26838
26838
|
);
|
|
26839
26839
|
d.value.style.minWidth = `${xe}px`, d.value.style.right = `${Me}px`;
|
|
26840
26840
|
}
|
|
26841
|
-
const F = a.value, P = window.innerHeight - zr * 2, R = m.value.scrollHeight, Q = window.getComputedStyle(h.value),
|
|
26841
|
+
const F = a.value, P = window.innerHeight - zr * 2, R = m.value.scrollHeight, Q = window.getComputedStyle(h.value), U = Number.parseInt(
|
|
26842
26842
|
Q.borderTopWidth,
|
|
26843
26843
|
10
|
|
26844
26844
|
), ue = Number.parseInt(Q.paddingTop, 10), be = Number.parseInt(
|
|
@@ -26847,13 +26847,13 @@ const AW = /* @__PURE__ */ j({
|
|
|
26847
26847
|
), K = Number.parseInt(
|
|
26848
26848
|
Q.paddingBottom,
|
|
26849
26849
|
10
|
|
26850
|
-
),
|
|
26850
|
+
), V = U + ue + R + K + be, B = Math.min(
|
|
26851
26851
|
b.value.offsetHeight * 5,
|
|
26852
|
-
|
|
26852
|
+
V
|
|
26853
26853
|
), J = window.getComputedStyle(m.value), re = Number.parseInt(J.paddingTop, 10), ne = Number.parseInt(
|
|
26854
26854
|
J.paddingBottom,
|
|
26855
26855
|
10
|
|
26856
|
-
), he = C.top + C.height / 2 - zr, Re = P - he, De = b.value.offsetHeight / 2, ot = b.value.offsetTop + De, Ve =
|
|
26856
|
+
), he = C.top + C.height / 2 - zr, Re = P - he, De = b.value.offsetHeight / 2, ot = b.value.offsetTop + De, Ve = U + ue + ot, Ye = V - Ve;
|
|
26857
26857
|
if (Ve <= he) {
|
|
26858
26858
|
const se = b.value === F[F.length - 1];
|
|
26859
26859
|
d.value.style.bottom = "0px";
|
|
@@ -26867,7 +26867,7 @@ const AW = /* @__PURE__ */ j({
|
|
|
26867
26867
|
d.value.style.top = "0px";
|
|
26868
26868
|
const ce = Math.max(
|
|
26869
26869
|
he,
|
|
26870
|
-
|
|
26870
|
+
U + m.value.offsetTop + (se ? re : 0) + De
|
|
26871
26871
|
) + Ye;
|
|
26872
26872
|
d.value.style.height = `${ce}px`, m.value.scrollTop = Ve - he + m.value.offsetTop;
|
|
26873
26873
|
}
|
|
@@ -28595,7 +28595,7 @@ function $j(t, e = {}) {
|
|
|
28595
28595
|
}, Oe = ve();
|
|
28596
28596
|
return z && q.resetPeek(), Oe;
|
|
28597
28597
|
}
|
|
28598
|
-
function
|
|
28598
|
+
function U(q, z) {
|
|
28599
28599
|
const ve = q.currentChar();
|
|
28600
28600
|
return ve === xs ? xs : z(ve) ? (q.next(), ve) : null;
|
|
28601
28601
|
}
|
|
@@ -28608,7 +28608,7 @@ function $j(t, e = {}) {
|
|
|
28608
28608
|
z === 36;
|
|
28609
28609
|
}
|
|
28610
28610
|
function be(q) {
|
|
28611
|
-
return
|
|
28611
|
+
return U(q, ue);
|
|
28612
28612
|
}
|
|
28613
28613
|
function K(q) {
|
|
28614
28614
|
const z = q.charCodeAt(0);
|
|
@@ -28619,15 +28619,15 @@ function $j(t, e = {}) {
|
|
|
28619
28619
|
z === 36 || // $
|
|
28620
28620
|
z === 45;
|
|
28621
28621
|
}
|
|
28622
|
-
function
|
|
28623
|
-
return
|
|
28622
|
+
function V(q) {
|
|
28623
|
+
return U(q, K);
|
|
28624
28624
|
}
|
|
28625
28625
|
function B(q) {
|
|
28626
28626
|
const z = q.charCodeAt(0);
|
|
28627
28627
|
return z >= 48 && z <= 57;
|
|
28628
28628
|
}
|
|
28629
28629
|
function J(q) {
|
|
28630
|
-
return
|
|
28630
|
+
return U(q, B);
|
|
28631
28631
|
}
|
|
28632
28632
|
function re(q) {
|
|
28633
28633
|
const z = q.charCodeAt(0);
|
|
@@ -28636,7 +28636,7 @@ function $j(t, e = {}) {
|
|
|
28636
28636
|
z >= 97 && z <= 102;
|
|
28637
28637
|
}
|
|
28638
28638
|
function ne(q) {
|
|
28639
|
-
return
|
|
28639
|
+
return U(q, re);
|
|
28640
28640
|
}
|
|
28641
28641
|
function he(q) {
|
|
28642
28642
|
let z = "", ve = "";
|
|
@@ -28666,7 +28666,7 @@ function $j(t, e = {}) {
|
|
|
28666
28666
|
function De(q) {
|
|
28667
28667
|
w(q);
|
|
28668
28668
|
let z = "", ve = "";
|
|
28669
|
-
for (; z =
|
|
28669
|
+
for (; z = V(q); )
|
|
28670
28670
|
ve += z;
|
|
28671
28671
|
return q.currentChar() === xs && f(ft.UNTERMINATED_CLOSING_BRACE, i(), 0), ve;
|
|
28672
28672
|
}
|
|
@@ -28681,7 +28681,7 @@ function $j(t, e = {}) {
|
|
|
28681
28681
|
function Ye(q) {
|
|
28682
28682
|
w(q), b(q, "'");
|
|
28683
28683
|
let z = "", ve = "";
|
|
28684
|
-
for (; z =
|
|
28684
|
+
for (; z = U(q, Ve); )
|
|
28685
28685
|
z === "\\" ? ve += se(q) : ve += z;
|
|
28686
28686
|
const Oe = q.currentChar();
|
|
28687
28687
|
return Oe === To || Oe === xs ? (f(ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Oe === To && (q.next(), b(q, "'")), ve) : (b(q, "'"), ve);
|
|
@@ -28719,7 +28719,7 @@ function $j(t, e = {}) {
|
|
|
28719
28719
|
function xe(q) {
|
|
28720
28720
|
w(q);
|
|
28721
28721
|
let z = "", ve = "";
|
|
28722
|
-
for (; z =
|
|
28722
|
+
for (; z = U(q, we); )
|
|
28723
28723
|
ve += z;
|
|
28724
28724
|
return ve;
|
|
28725
28725
|
}
|
|
@@ -29897,7 +29897,7 @@ function Yq(t = {}) {
|
|
|
29897
29897
|
process.env.NODE_ENV !== "production" && sn(t.messageCompiler) && E_(za(Fo.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
29898
29898
|
const T = sn(t.messageResolver) ? t.messageResolver : T_ || Fq, A = sn(t.localeFallbacker) ? t.localeFallbacker : k_ || Oq, k = Ht(t.fallbackContext) ? t.fallbackContext : void 0, F = t, P = Ht(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), R = Ht(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), Q = Ht(F.__meta) ? F.__meta : {};
|
|
29899
29899
|
B8++;
|
|
29900
|
-
const
|
|
29900
|
+
const U = {
|
|
29901
29901
|
version: n,
|
|
29902
29902
|
cid: B8,
|
|
29903
29903
|
locale: o,
|
|
@@ -29921,7 +29921,7 @@ function Yq(t = {}) {
|
|
|
29921
29921
|
onWarn: e,
|
|
29922
29922
|
__meta: Q
|
|
29923
29923
|
};
|
|
29924
|
-
return
|
|
29924
|
+
return U.datetimeFormats = a, U.numberFormats = l, U.__datetimeFormatters = P, U.__numberFormatters = R, process.env.NODE_ENV !== "production" && (U.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && _q(U, n, Q), U;
|
|
29925
29925
|
}
|
|
29926
29926
|
const h1 = (t) => ({ [t]: en() });
|
|
29927
29927
|
function Qh(t, e) {
|
|
@@ -30199,18 +30199,18 @@ function j8(t, ...e) {
|
|
|
30199
30199
|
}, F = _r(C) ? C : P_(t, l, _, C, T, k);
|
|
30200
30200
|
if (A)
|
|
30201
30201
|
return C;
|
|
30202
|
-
const P = cK(t, _, E, u), R = iK(P), Q = aK(t, F, R),
|
|
30202
|
+
const P = cK(t, _, E, u), R = iK(P), Q = aK(t, F, R), U = o ? o(Q, l) : Q;
|
|
30203
30203
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
30204
30204
|
const ue = {
|
|
30205
30205
|
timestamp: Date.now(),
|
|
30206
30206
|
key: $e(l) ? l : _r(C) ? C.key : "",
|
|
30207
30207
|
locale: _ || (_r(C) ? C.locale : ""),
|
|
30208
30208
|
format: $e(C) ? C : _r(C) ? C.source : "",
|
|
30209
|
-
message:
|
|
30209
|
+
message: U
|
|
30210
30210
|
};
|
|
30211
30211
|
ue.meta = jn({}, t.__meta, /* @__PURE__ */ Gq() || {}), Sq(ue);
|
|
30212
30212
|
}
|
|
30213
|
-
return
|
|
30213
|
+
return U;
|
|
30214
30214
|
}
|
|
30215
30215
|
function sK(t) {
|
|
30216
30216
|
_n(t.list) ? t.list = t.list.map((e) => $e(e) ? S8(e) : e) : Ht(t.named) && Object.keys(t.named).forEach((e) => {
|
|
@@ -30657,11 +30657,11 @@ function Hv(t = {}) {
|
|
|
30657
30657
|
set: (X) => {
|
|
30658
30658
|
l.value = X, k.fallbackLocale = l.value, Gu(k, a.value, X);
|
|
30659
30659
|
}
|
|
30660
|
-
}),
|
|
30660
|
+
}), U = Y(() => u.value), ue = /* @__PURE__ */ Y(() => d.value), be = /* @__PURE__ */ Y(() => f.value);
|
|
30661
30661
|
function K() {
|
|
30662
30662
|
return sn(_) ? _ : null;
|
|
30663
30663
|
}
|
|
30664
|
-
function
|
|
30664
|
+
function V(X) {
|
|
30665
30665
|
_ = X, k.postTranslation = X;
|
|
30666
30666
|
}
|
|
30667
30667
|
function B() {
|
|
@@ -30673,7 +30673,7 @@ function Hv(t = {}) {
|
|
|
30673
30673
|
function re(X, me) {
|
|
30674
30674
|
return X !== "translate" || !me.resolvedMessage;
|
|
30675
30675
|
}
|
|
30676
|
-
const ne = (X, me, ge, Ne,
|
|
30676
|
+
const ne = (X, me, ge, Ne, Je, yt) => {
|
|
30677
30677
|
P();
|
|
30678
30678
|
let jt;
|
|
30679
30679
|
try {
|
|
@@ -30696,7 +30696,7 @@ function Hv(t = {}) {
|
|
|
30696
30696
|
groupId: `${ge}:${pn}`
|
|
30697
30697
|
});
|
|
30698
30698
|
}
|
|
30699
|
-
return e && b ? Ne(e) :
|
|
30699
|
+
return e && b ? Ne(e) : Je(pn);
|
|
30700
30700
|
} else {
|
|
30701
30701
|
if (yt(jt))
|
|
30702
30702
|
return jt;
|
|
@@ -30751,15 +30751,15 @@ function Hv(t = {}) {
|
|
|
30751
30751
|
return ne(() => {
|
|
30752
30752
|
if (!X)
|
|
30753
30753
|
return !1;
|
|
30754
|
-
const ge = $e(me) ? me : a.value, Ne = it(ge),
|
|
30755
|
-
return qs(
|
|
30754
|
+
const ge = $e(me) ? me : a.value, Ne = it(ge), Je = k.messageResolver(Ne, X);
|
|
30755
|
+
return qs(Je) || _r(Je) || $e(Je);
|
|
30756
30756
|
}, () => [X], "translate exists", (ge) => Reflect.apply(ge.te, ge, [X, me]), EK, (ge) => zt(ge));
|
|
30757
30757
|
}
|
|
30758
30758
|
function Me(X) {
|
|
30759
30759
|
let me = null;
|
|
30760
30760
|
const ge = __(k, l.value, a.value);
|
|
30761
30761
|
for (let Ne = 0; Ne < ge.length; Ne++) {
|
|
30762
|
-
const
|
|
30762
|
+
const Je = u.value[ge[Ne]] || {}, yt = k.messageResolver(Je, X);
|
|
30763
30763
|
if (yt != null) {
|
|
30764
30764
|
me = yt;
|
|
30765
30765
|
break;
|
|
@@ -30827,7 +30827,7 @@ function Hv(t = {}) {
|
|
|
30827
30827
|
get availableLocales() {
|
|
30828
30828
|
return Object.keys(u.value).sort();
|
|
30829
30829
|
},
|
|
30830
|
-
messages:
|
|
30830
|
+
messages: U,
|
|
30831
30831
|
get modifiers() {
|
|
30832
30832
|
return T;
|
|
30833
30833
|
},
|
|
@@ -30878,7 +30878,7 @@ function Hv(t = {}) {
|
|
|
30878
30878
|
setLocaleMessage: Nt,
|
|
30879
30879
|
mergeLocaleMessage: Ut,
|
|
30880
30880
|
getPostTranslationHandler: K,
|
|
30881
|
-
setPostTranslationHandler:
|
|
30881
|
+
setPostTranslationHandler: V,
|
|
30882
30882
|
getMissingHandler: B,
|
|
30883
30883
|
setMissingHandler: J,
|
|
30884
30884
|
[F_]: Ae
|
|
@@ -31804,7 +31804,7 @@ const iG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31804
31804
|
customClassToolbar: {}
|
|
31805
31805
|
},
|
|
31806
31806
|
setup(t) {
|
|
31807
|
-
const e = dR(() => import("./BulkSpellChecker-
|
|
31807
|
+
const e = dR(() => import("./BulkSpellChecker-rs_0r0DS.mjs")), { t: n } = Zt(), o = t, r = Yt("isEditable", H(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = Y(() => {
|
|
31808
31808
|
const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
|
|
31809
31809
|
let h = [];
|
|
31810
31810
|
for (const m of f) {
|
|
@@ -31827,7 +31827,7 @@ const iG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31827
31827
|
}
|
|
31828
31828
|
h.push({ button: _, divider: y, spacer: w, id: `${m.name}` });
|
|
31829
31829
|
}
|
|
31830
|
-
if (o.mode !==
|
|
31830
|
+
if (o.mode !== et.EDITOR)
|
|
31831
31831
|
return h.filter((m) => m.id && i.includes(m.id));
|
|
31832
31832
|
if (h = h.filter((m) => m.id !== "superText"), !r.value) {
|
|
31833
31833
|
h = h.map((b) => (b.button.componentProps.disabled = !0, b));
|
|
@@ -33931,7 +33931,7 @@ const uX = { key: 0 }, cX = {
|
|
|
33931
33931
|
sd(k, F);
|
|
33932
33932
|
}
|
|
33933
33933
|
return (k, F) => {
|
|
33934
|
-
const P = ct, R = Qi, Q = yu,
|
|
33934
|
+
const P = ct, R = Qi, Q = yu, U = Np, ue = au, be = Vc, K = Wv, V = Uv, B = nl, J = tl;
|
|
33935
33935
|
return M(), $(g(ud), {
|
|
33936
33936
|
editor: k.editor,
|
|
33937
33937
|
"plugin-key": "image-menus-123",
|
|
@@ -33983,7 +33983,7 @@ const uX = { key: 0 }, cX = {
|
|
|
33983
33983
|
D(B, { class: "w-84" }, {
|
|
33984
33984
|
default: N(() => [
|
|
33985
33985
|
ee("div", gX, [
|
|
33986
|
-
D(
|
|
33986
|
+
D(U, {
|
|
33987
33987
|
for: "maxWidth",
|
|
33988
33988
|
class: "whitespace-nowrap"
|
|
33989
33989
|
}, {
|
|
@@ -34001,7 +34001,7 @@ const uX = { key: 0 }, cX = {
|
|
|
34001
34001
|
onInput: _,
|
|
34002
34002
|
onKeyup: jl(d, ["enter"])
|
|
34003
34003
|
}, null, 8, ["modelValue"]),
|
|
34004
|
-
D(
|
|
34004
|
+
D(U, {
|
|
34005
34005
|
for: "maxWidth",
|
|
34006
34006
|
class: "whitespace-nowrap"
|
|
34007
34007
|
}, {
|
|
@@ -34021,7 +34021,7 @@ const uX = { key: 0 }, cX = {
|
|
|
34021
34021
|
}, null, 8, ["modelValue"])
|
|
34022
34022
|
]),
|
|
34023
34023
|
ee("div", bX, [
|
|
34024
|
-
D(
|
|
34024
|
+
D(V, {
|
|
34025
34025
|
"model-value": o.value,
|
|
34026
34026
|
"onUpdate:modelValue": [
|
|
34027
34027
|
F[2] || (F[2] = (re) => o.value = re),
|
|
@@ -34468,7 +34468,7 @@ const $X = () => {
|
|
|
34468
34468
|
(ne = k.value) == null || ne.closeDialog();
|
|
34469
34469
|
}
|
|
34470
34470
|
const Q = H([]);
|
|
34471
|
-
function
|
|
34471
|
+
function U(ne) {
|
|
34472
34472
|
Q.value = ne;
|
|
34473
34473
|
}
|
|
34474
34474
|
function ue(ne, he, Re = !0) {
|
|
@@ -34478,9 +34478,9 @@ const $X = () => {
|
|
|
34478
34478
|
we && (we.setAttribute(bt.ELEMENT_ID, Ye || ""), we.setAttribute(bt.TEXT, Re ? $H(se) : se));
|
|
34479
34479
|
}), ot.body.innerHTML;
|
|
34480
34480
|
}
|
|
34481
|
-
const be = (ne) => u.value = ne, K = H(null),
|
|
34481
|
+
const be = (ne) => u.value = ne, K = H(null), V = H();
|
|
34482
34482
|
function B(ne) {
|
|
34483
|
-
|
|
34483
|
+
V.value = ne;
|
|
34484
34484
|
}
|
|
34485
34485
|
const J = H();
|
|
34486
34486
|
function re(ne) {
|
|
@@ -34513,12 +34513,12 @@ const $X = () => {
|
|
|
34513
34513
|
openSuperInput: P,
|
|
34514
34514
|
closeSuperInput: R,
|
|
34515
34515
|
imageAttachments: Q,
|
|
34516
|
-
setImageAttachment:
|
|
34516
|
+
setImageAttachment: U,
|
|
34517
34517
|
getUpdatedContentBySuperText: ue,
|
|
34518
34518
|
textAlert: u,
|
|
34519
34519
|
setTextAlert: be,
|
|
34520
34520
|
focusFirstInvalidChar: K,
|
|
34521
|
-
editorSelectedMobile:
|
|
34521
|
+
editorSelectedMobile: V,
|
|
34522
34522
|
setEditorSelectedMobile: B,
|
|
34523
34523
|
editorContentMobile: J,
|
|
34524
34524
|
setEditorContentMobile: re
|
|
@@ -36094,23 +36094,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36094
36094
|
}
|
|
36095
36095
|
let ge = 0;
|
|
36096
36096
|
z.keywordPatternRe.lastIndex = 0;
|
|
36097
|
-
let Ne = z.keywordPatternRe.exec(Ge),
|
|
36097
|
+
let Ne = z.keywordPatternRe.exec(Ge), Je = "";
|
|
36098
36098
|
for (; Ne; ) {
|
|
36099
|
-
|
|
36099
|
+
Je += Ge.substring(ge, Ne.index);
|
|
36100
36100
|
const yt = Nt.case_insensitive ? Ne[0].toLowerCase() : Ne[0], jt = Re(z, yt);
|
|
36101
36101
|
if (jt) {
|
|
36102
36102
|
const [pn, Lr] = jt;
|
|
36103
|
-
if (Oe.addText(
|
|
36104
|
-
|
|
36103
|
+
if (Oe.addText(Je), Je = "", he[yt] = (he[yt] || 0) + 1, he[yt] <= dJ && (mt += Lr), pn.startsWith("_"))
|
|
36104
|
+
Je += Ne[0];
|
|
36105
36105
|
else {
|
|
36106
36106
|
const fe = Nt.classNameAliases[pn] || pn;
|
|
36107
36107
|
Ye(Ne[0], fe);
|
|
36108
36108
|
}
|
|
36109
36109
|
} else
|
|
36110
|
-
|
|
36110
|
+
Je += Ne[0];
|
|
36111
36111
|
ge = z.keywordPatternRe.lastIndex, Ne = z.keywordPatternRe.exec(Ge);
|
|
36112
36112
|
}
|
|
36113
|
-
|
|
36113
|
+
Je += Ge.substring(ge), Oe.addText(Je);
|
|
36114
36114
|
}
|
|
36115
36115
|
function ot() {
|
|
36116
36116
|
if (Ge === "") return;
|
|
@@ -36133,22 +36133,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36133
36133
|
ge !== "" && (Oe.startScope(Ne), Oe.addText(ge), Oe.endScope());
|
|
36134
36134
|
}
|
|
36135
36135
|
function se(ge, Ne) {
|
|
36136
|
-
let
|
|
36136
|
+
let Je = 1;
|
|
36137
36137
|
const yt = Ne.length - 1;
|
|
36138
|
-
for (;
|
|
36139
|
-
if (!ge._emit[
|
|
36140
|
-
|
|
36138
|
+
for (; Je <= yt; ) {
|
|
36139
|
+
if (!ge._emit[Je]) {
|
|
36140
|
+
Je++;
|
|
36141
36141
|
continue;
|
|
36142
36142
|
}
|
|
36143
|
-
const jt = Nt.classNameAliases[ge[
|
|
36144
|
-
jt ? Ye(pn, jt) : (Ge = pn, De(), Ge = ""),
|
|
36143
|
+
const jt = Nt.classNameAliases[ge[Je]] || ge[Je], pn = Ne[Je];
|
|
36144
|
+
jt ? Ye(pn, jt) : (Ge = pn, De(), Ge = ""), Je++;
|
|
36145
36145
|
}
|
|
36146
36146
|
}
|
|
36147
36147
|
function ce(ge, Ne) {
|
|
36148
36148
|
return ge.scope && typeof ge.scope == "string" && Oe.openNode(Nt.classNameAliases[ge.scope] || ge.scope), ge.beginScope && (ge.beginScope._wrap ? (Ye(Ge, Nt.classNameAliases[ge.beginScope._wrap] || ge.beginScope._wrap), Ge = "") : ge.beginScope._multi && (se(ge.beginScope, Ne), Ge = "")), z = Object.create(ge, { parent: { value: z } }), z;
|
|
36149
36149
|
}
|
|
36150
|
-
function we(ge, Ne,
|
|
36151
|
-
let yt = kY(ge.endRe,
|
|
36150
|
+
function we(ge, Ne, Je) {
|
|
36151
|
+
let yt = kY(ge.endRe, Je);
|
|
36152
36152
|
if (yt) {
|
|
36153
36153
|
if (ge["on:end"]) {
|
|
36154
36154
|
const jt = new xw(ge);
|
|
@@ -36161,20 +36161,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36161
36161
|
}
|
|
36162
36162
|
}
|
|
36163
36163
|
if (ge.endsWithParent)
|
|
36164
|
-
return we(ge.parent, Ne,
|
|
36164
|
+
return we(ge.parent, Ne, Je);
|
|
36165
36165
|
}
|
|
36166
36166
|
function xe(ge) {
|
|
36167
36167
|
return z.matcher.regexIndex === 0 ? (Ge += ge[0], 1) : (me = !0, 0);
|
|
36168
36168
|
}
|
|
36169
36169
|
function Ae(ge) {
|
|
36170
|
-
const Ne = ge[0],
|
|
36170
|
+
const Ne = ge[0], Je = ge.rule, yt = new xw(Je), jt = [Je.__beforeBegin, Je["on:begin"]];
|
|
36171
36171
|
for (const pn of jt)
|
|
36172
36172
|
if (pn && (pn(ge, yt), yt.isMatchIgnored))
|
|
36173
36173
|
return xe(Ne);
|
|
36174
|
-
return
|
|
36174
|
+
return Je.skip ? Ge += Ne : (Je.excludeBegin && (Ge += Ne), Ve(), !Je.returnBegin && !Je.excludeBegin && (Ge = Ne)), ce(Je, ge), Je.returnBegin ? 0 : Ne.length;
|
|
36175
36175
|
}
|
|
36176
36176
|
function ae(ge) {
|
|
36177
|
-
const Ne = ge[0],
|
|
36177
|
+
const Ne = ge[0], Je = J.substring(ge.index), yt = we(z, ge, Je);
|
|
36178
36178
|
if (!yt)
|
|
36179
36179
|
return kw;
|
|
36180
36180
|
const jt = z;
|
|
@@ -36192,10 +36192,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36192
36192
|
}
|
|
36193
36193
|
let Ke = {};
|
|
36194
36194
|
function it(ge, Ne) {
|
|
36195
|
-
const
|
|
36196
|
-
if (Ge += ge,
|
|
36195
|
+
const Je = Ne && Ne[0];
|
|
36196
|
+
if (Ge += ge, Je == null)
|
|
36197
36197
|
return Ve(), 0;
|
|
36198
|
-
if (Ke.type === "begin" && Ne.type === "end" && Ke.index === Ne.index &&
|
|
36198
|
+
if (Ke.type === "begin" && Ne.type === "end" && Ke.index === Ne.index && Je === "") {
|
|
36199
36199
|
if (Ge += J.slice(Ne.index, Ne.index + 1), !r) {
|
|
36200
36200
|
const yt = new Error(`0 width match regex (${B})`);
|
|
36201
36201
|
throw yt.languageName = B, yt.badRule = Ke.rule, yt;
|
|
@@ -36205,18 +36205,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36205
36205
|
if (Ke = Ne, Ne.type === "begin")
|
|
36206
36206
|
return Ae(Ne);
|
|
36207
36207
|
if (Ne.type === "illegal" && !re) {
|
|
36208
|
-
const yt = new Error('Illegal lexeme "' +
|
|
36208
|
+
const yt = new Error('Illegal lexeme "' + Je + '" for mode "' + (z.scope || "<unnamed>") + '"');
|
|
36209
36209
|
throw yt.mode = z, yt;
|
|
36210
36210
|
} else if (Ne.type === "end") {
|
|
36211
36211
|
const yt = ae(Ne);
|
|
36212
36212
|
if (yt !== kw)
|
|
36213
36213
|
return yt;
|
|
36214
36214
|
}
|
|
36215
|
-
if (Ne.type === "illegal" &&
|
|
36215
|
+
if (Ne.type === "illegal" && Je === "")
|
|
36216
36216
|
return 1;
|
|
36217
36217
|
if (X > 1e5 && X > Ne.index * 3)
|
|
36218
36218
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
36219
|
-
return Ge +=
|
|
36219
|
+
return Ge += Je, Je.length;
|
|
36220
36220
|
}
|
|
36221
36221
|
const Nt = P(B);
|
|
36222
36222
|
if (!Nt)
|
|
@@ -36234,8 +36234,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36234
36234
|
X++, me ? me = !1 : z.matcher.considerAll(), z.matcher.lastIndex = oe;
|
|
36235
36235
|
const ge = z.matcher.exec(J);
|
|
36236
36236
|
if (!ge) break;
|
|
36237
|
-
const Ne = J.substring(oe, ge.index),
|
|
36238
|
-
oe = ge.index +
|
|
36237
|
+
const Ne = J.substring(oe, ge.index), Je = it(Ne, ge);
|
|
36238
|
+
oe = ge.index + Je;
|
|
36239
36239
|
}
|
|
36240
36240
|
it(J.substring(oe));
|
|
36241
36241
|
}
|
|
@@ -36390,7 +36390,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36390
36390
|
const J = P(B);
|
|
36391
36391
|
return J && !J.disableAutodetect;
|
|
36392
36392
|
}
|
|
36393
|
-
function
|
|
36393
|
+
function U(B) {
|
|
36394
36394
|
B["before:highlightBlock"] && !B["before:highlightElement"] && (B["before:highlightElement"] = (J) => {
|
|
36395
36395
|
B["before:highlightBlock"](
|
|
36396
36396
|
Object.assign({ block: J.el }, J)
|
|
@@ -36402,7 +36402,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36402
36402
|
});
|
|
36403
36403
|
}
|
|
36404
36404
|
function ue(B) {
|
|
36405
|
-
|
|
36405
|
+
U(B), o.push(B);
|
|
36406
36406
|
}
|
|
36407
36407
|
function be(B) {
|
|
36408
36408
|
const J = o.indexOf(B);
|
|
@@ -36414,7 +36414,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36414
36414
|
ne[re] && ne[re](J);
|
|
36415
36415
|
});
|
|
36416
36416
|
}
|
|
36417
|
-
function
|
|
36417
|
+
function V(B) {
|
|
36418
36418
|
return Ol("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ol("10.7.0", "Please use highlightElement now."), y(B);
|
|
36419
36419
|
}
|
|
36420
36420
|
Object.assign(t, {
|
|
@@ -36423,7 +36423,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36423
36423
|
highlightAll: C,
|
|
36424
36424
|
highlightElement: y,
|
|
36425
36425
|
// TODO: Remove with v12 API
|
|
36426
|
-
highlightBlock:
|
|
36426
|
+
highlightBlock: V,
|
|
36427
36427
|
configure: w,
|
|
36428
36428
|
initHighlighting: x,
|
|
36429
36429
|
initHighlightingOnLoad: _,
|
|
@@ -37649,7 +37649,7 @@ const Dp = s0("XIcon", [
|
|
|
37649
37649
|
customClass: { default: "" }
|
|
37650
37650
|
},
|
|
37651
37651
|
setup(t) {
|
|
37652
|
-
const e = t, { t: n } = Zt(), o = Y(() => e.editor.extensionStorage["base-kit"].mode ===
|
|
37652
|
+
const e = t, { t: n } = Zt(), o = Y(() => e.editor.extensionStorage["base-kit"].mode === et.EDITOR), r = Yt("fontSize"), i = Y(() => {
|
|
37653
37653
|
const l = {
|
|
37654
37654
|
title: n("editor.fontSize.default.tooltip"),
|
|
37655
37655
|
isActive: () => !1
|
|
@@ -39336,13 +39336,13 @@ function IZ({
|
|
|
39336
39336
|
[Gp, Xp]
|
|
39337
39337
|
// <>
|
|
39338
39338
|
];
|
|
39339
|
-
for (let
|
|
39340
|
-
const [ue, be] = Q[
|
|
39339
|
+
for (let U = 0; U < Q.length; U++) {
|
|
39340
|
+
const [ue, be] = Q[U], K = Ie(T, ue);
|
|
39341
39341
|
Ie(A, ue, K), Ie(K, be, T);
|
|
39342
|
-
const
|
|
39343
|
-
Tt(K, e,
|
|
39342
|
+
const V = wr(Pf);
|
|
39343
|
+
Tt(K, e, V);
|
|
39344
39344
|
const B = wr();
|
|
39345
|
-
Tt(K, n), Tt(
|
|
39345
|
+
Tt(K, n), Tt(V, e, V), Tt(V, n, B), Tt(B, e, V), Tt(B, n, B), Ie(V, be, T), Ie(B, be, T);
|
|
39346
39346
|
}
|
|
39347
39347
|
return Ie(r, Gc, _), Ie(r, s2, NZ), {
|
|
39348
39348
|
start: r,
|
|
@@ -39911,7 +39911,7 @@ const UZ = wo.create({
|
|
|
39911
39911
|
if (a) {
|
|
39912
39912
|
const { $to: u } = s.selection, d = u.end();
|
|
39913
39913
|
if (u.nodeAfter)
|
|
39914
|
-
u.nodeAfter.isTextblock ? s.setSelection(Ue.create(s.doc, u.pos + 1)) : u.nodeAfter.isBlock ? s.setSelection(
|
|
39914
|
+
u.nodeAfter.isTextblock ? s.setSelection(Ue.create(s.doc, u.pos + 1)) : u.nodeAfter.isBlock ? s.setSelection(Qe.create(s.doc, u.pos)) : s.setSelection(Ue.create(s.doc, u.pos));
|
|
39915
39915
|
else {
|
|
39916
39916
|
const f = (l = u.parent.type.contentMatch.defaultType) === null || l === void 0 ? void 0 : l.create();
|
|
39917
39917
|
f && (s.insert(d, f), s.setSelection(Ue.create(s.doc, d + 1)));
|
|
@@ -40645,7 +40645,7 @@ class On extends tt {
|
|
|
40645
40645
|
for (; ; ) {
|
|
40646
40646
|
let s = n > 0 ? i.firstChild : i.lastChild;
|
|
40647
40647
|
if (!s) {
|
|
40648
|
-
if (i.isAtom && !i.isText && !
|
|
40648
|
+
if (i.isAtom && !i.isText && !Qe.isSelectable(i)) {
|
|
40649
40649
|
e = e.doc.resolve(r + i.nodeSize * n), o = !1;
|
|
40650
40650
|
continue e;
|
|
40651
40651
|
}
|
|
@@ -40748,7 +40748,7 @@ function vQ(t, e, n) {
|
|
|
40748
40748
|
if (!On.valid(o))
|
|
40749
40749
|
return !1;
|
|
40750
40750
|
let r = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
40751
|
-
return r && r.inside > -1 &&
|
|
40751
|
+
return r && r.inside > -1 && Qe.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new On(o))), !0);
|
|
40752
40752
|
}
|
|
40753
40753
|
function yQ(t, e) {
|
|
40754
40754
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof On))
|
|
@@ -42822,12 +42822,12 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42822
42822
|
return (k = o.parentEditor) == null ? void 0 : k.extensionManager.extensions.find((F) => F.name === "spellchecker");
|
|
42823
42823
|
}), d = Y(
|
|
42824
42824
|
() => {
|
|
42825
|
-
var k, F, P, R, Q,
|
|
42825
|
+
var k, F, P, R, Q, U, ue;
|
|
42826
42826
|
return KT.configure({
|
|
42827
42827
|
proofreader: new v7({
|
|
42828
42828
|
api: (F = (k = u.value) == null ? void 0 : k.options.proofreader) == null ? void 0 : F.api,
|
|
42829
42829
|
limit: (R = (P = u.value) == null ? void 0 : P.options.proofreader) == null ? void 0 : R.limit,
|
|
42830
|
-
transfer: (
|
|
42830
|
+
transfer: (U = (Q = u.value) == null ? void 0 : Q.options.proofreader) == null ? void 0 : U.transfer,
|
|
42831
42831
|
enabled: l.value
|
|
42832
42832
|
}),
|
|
42833
42833
|
uiStrings: (ue = u.value) == null ? void 0 : ue.options.uiStrings
|
|
@@ -42885,29 +42885,29 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42885
42885
|
` }), F = getComputedStyle(b.value);
|
|
42886
42886
|
E.font = F.font;
|
|
42887
42887
|
const P = 20, R = () => Math.max(0, (y.value || 0) - P);
|
|
42888
|
-
function Q(K,
|
|
42888
|
+
function Q(K, V) {
|
|
42889
42889
|
let B = 1, J = K.length, re = 0;
|
|
42890
42890
|
for (; B <= J; ) {
|
|
42891
42891
|
const ne = Math.floor((B + J) / 2);
|
|
42892
|
-
E.measureText(K.slice(0, ne)).width <=
|
|
42892
|
+
E.measureText(K.slice(0, ne)).width <= V ? (re = ne, B = ne + 1) : J = ne - 1;
|
|
42893
42893
|
}
|
|
42894
42894
|
return re;
|
|
42895
42895
|
}
|
|
42896
|
-
let
|
|
42896
|
+
let U = "";
|
|
42897
42897
|
const ue = [];
|
|
42898
42898
|
for (const K of k) {
|
|
42899
42899
|
if (K === `
|
|
42900
42900
|
`) {
|
|
42901
|
-
ue.push(
|
|
42901
|
+
ue.push(U), U = "";
|
|
42902
42902
|
continue;
|
|
42903
42903
|
}
|
|
42904
|
-
if (
|
|
42905
|
-
for (; E.measureText(
|
|
42906
|
-
const
|
|
42907
|
-
|
|
42904
|
+
if (U += K, E.measureText(U).width > R())
|
|
42905
|
+
for (; E.measureText(U).width > R(); ) {
|
|
42906
|
+
const V = Q(U, R());
|
|
42907
|
+
V <= 0 ? (ue.push(U.charAt(0)), U = U.slice(1)) : (ue.push(U.slice(0, V)), U = U.slice(V));
|
|
42908
42908
|
}
|
|
42909
42909
|
}
|
|
42910
|
-
return ue.push(
|
|
42910
|
+
return ue.push(U), ue.map((K) => `<p>${K}</p>`).join("");
|
|
42911
42911
|
}
|
|
42912
42912
|
const { isScrolling: T, handleScroll: A } = Qc();
|
|
42913
42913
|
return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: C }), (k, F) => (M(), pe("div", {
|
|
@@ -42945,7 +42945,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42945
42945
|
},
|
|
42946
42946
|
emits: ["close", "save"],
|
|
42947
42947
|
setup(t, { emit: e }) {
|
|
42948
|
-
var Q,
|
|
42948
|
+
var Q, U;
|
|
42949
42949
|
const n = e, o = t, { t: r } = Zt(), i = H(""), s = H(""), a = H(null), l = H(!1), u = ur({ x: 0, y: 0 }), d = H(!1), f = { x: 0, y: 0 }, h = H(!1), m = H(!1), b = (ue) => {
|
|
42950
42950
|
d.value = !0, f.x = ue.clientX - u.x, f.y = ue.clientY - u.y, document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
42951
42951
|
}, y = (ue) => {
|
|
@@ -42960,8 +42960,8 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42960
42960
|
m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await Mt();
|
|
42961
42961
|
const be = document.querySelector(".draggable-dialog");
|
|
42962
42962
|
if (be) {
|
|
42963
|
-
const { width: K, height:
|
|
42964
|
-
u.x = 0, u.y = (B -
|
|
42963
|
+
const { width: K, height: V } = be.getBoundingClientRect(), B = window.innerHeight;
|
|
42964
|
+
u.x = 0, u.y = (B - V) / 2;
|
|
42965
42965
|
}
|
|
42966
42966
|
}
|
|
42967
42967
|
},
|
|
@@ -42973,7 +42973,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42973
42973
|
i.value = a.value.wrapText(), s.value = "", m.value ? h.value = !0 : n("close"), n("save", i.value), i.value = "";
|
|
42974
42974
|
}, E = () => {
|
|
42975
42975
|
h.value = !1, n("close");
|
|
42976
|
-
}, C = (
|
|
42976
|
+
}, C = (U = (Q = o.editor) == null ? void 0 : Q.extensionManager.extensions.find((ue) => ue.name === "superText")) == null ? void 0 : U.options.specialCharModal, T = Zx("recentSpecialChars", []), A = (ue) => {
|
|
42977
42977
|
if (!ue) return;
|
|
42978
42978
|
const be = (T.value ?? []).filter((K) => K !== ue);
|
|
42979
42979
|
be.unshift(ue), T.value = be.slice(0, 5);
|
|
@@ -42995,7 +42995,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42995
42995
|
}), Be(i, (ue) => {
|
|
42996
42996
|
!o.superTextElementId || o.superTextElementId === "" || (m.value = ue !== (o.superTextInit ?? ""));
|
|
42997
42997
|
}), (ue, be) => {
|
|
42998
|
-
const K = B2,
|
|
42998
|
+
const K = B2, V = P2, B = D2, J = ST, re = L2, ne = R2, he = I2, Re = Zee;
|
|
42999
42999
|
return M(), pe(nt, null, [
|
|
43000
43000
|
D(he, { open: ue.open }, {
|
|
43001
43001
|
default: N(() => [
|
|
@@ -43030,7 +43030,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
43030
43030
|
]),
|
|
43031
43031
|
_: 1
|
|
43032
43032
|
}),
|
|
43033
|
-
D(
|
|
43033
|
+
D(V, {
|
|
43034
43034
|
class: "absolute right-3 top-3 text-white",
|
|
43035
43035
|
onClick: x
|
|
43036
43036
|
}, {
|
|
@@ -43166,7 +43166,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
43166
43166
|
disableSuperInput: { type: Boolean }
|
|
43167
43167
|
},
|
|
43168
43168
|
setup(t, { expose: e }) {
|
|
43169
|
-
const n = t, { t: o } = Zt(), r = H(!1), i = ur({ from: 0, to: 0, text: "" }), s = Yt("isEditable", H(!0)), a = Yt("canEditSuper", H(!0)), l = Y(() => n.mode ===
|
|
43169
|
+
const n = t, { t: o } = Zt(), r = H(!1), i = ur({ from: 0, to: 0, text: "" }), s = Yt("isEditable", H(!0)), a = Yt("canEditSuper", H(!0)), l = Y(() => n.mode === et.EDITOR || n.mode === et.PLAIN_TEXT || !a.value || n.disableSuperInput);
|
|
43170
43170
|
function u() {
|
|
43171
43171
|
if (!n.editor) return "";
|
|
43172
43172
|
const { from: _, to: E } = n.editor.state.selection, C = n.editor.state.doc.cut(_, E), A = Qr.fromSchema(n.editor.schema).serializeFragment(C.content), k = document.createElement("div");
|
|
@@ -43285,7 +43285,7 @@ const ute = {
|
|
|
43285
43285
|
__name: "PageNode",
|
|
43286
43286
|
props: Ga,
|
|
43287
43287
|
setup(t) {
|
|
43288
|
-
const { state: e, page: n, superTextStore: o } = uo(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode ===
|
|
43288
|
+
const { state: e, page: n, superTextStore: o } = uo(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode === et.REPORT), { width: f, height: h } = r, m = Y(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Ao(Ko.SUPER_VIEW_PAGE);
|
|
43289
43289
|
return Be(
|
|
43290
43290
|
() => t.node.attrs,
|
|
43291
43291
|
(y) => {
|
|
@@ -43321,7 +43321,7 @@ const ute = {
|
|
|
43321
43321
|
default: N(() => [
|
|
43322
43322
|
ee("div", ute, [
|
|
43323
43323
|
D(x, {
|
|
43324
|
-
mode: u.value ? g(
|
|
43324
|
+
mode: u.value ? g(et).REPORT : g(et).EDITOR,
|
|
43325
43325
|
editor: y.editor,
|
|
43326
43326
|
"super-text-store": g(o)
|
|
43327
43327
|
}, {
|
|
@@ -43351,7 +43351,7 @@ function tx(t, e) {
|
|
|
43351
43351
|
}
|
|
43352
43352
|
const fte = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
|
|
43353
43353
|
const { selection: i, doc: s } = e, { $from: a, $to: l } = i, u = r.extensionManager.attributes, d = tp(u, a.node().type.name, a.node().attrs);
|
|
43354
|
-
if (d.id = ub(), d.extend && (d.extend = !1), i instanceof
|
|
43354
|
+
if (d.id = ub(), d.extend && (d.extend = !1), i instanceof Qe && i.node.isBlock)
|
|
43355
43355
|
return !a.parentOffset || !sr(s, a.pos) ? !1 : (o && (t && tx(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
43356
43356
|
if (!a.parent.isBlock)
|
|
43357
43357
|
return !1;
|
|
@@ -43384,7 +43384,7 @@ const fte = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edi
|
|
|
43384
43384
|
return !0;
|
|
43385
43385
|
}, pte = (t) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
|
|
43386
43386
|
var y;
|
|
43387
|
-
const i = qn(t, n.schema), { $from: s, $to: a } = n.selection, l = n.selection instanceof
|
|
43387
|
+
const i = qn(t, n.schema), { $from: s, $to: a } = n.selection, l = n.selection instanceof Qe ? n.selection.node : null;
|
|
43388
43388
|
if (l != null && l.isBlock || s.depth < 2 || !s.sameParent(a))
|
|
43389
43389
|
return !1;
|
|
43390
43390
|
const u = s.node(-1);
|
|
@@ -43679,7 +43679,7 @@ const nx = (t) => t.command(({ tr: e }) => {
|
|
|
43679
43679
|
customClass: { default: "" }
|
|
43680
43680
|
},
|
|
43681
43681
|
setup(t) {
|
|
43682
|
-
const e = t, n = Y(() => e.editor.extensionStorage["base-kit"].mode ===
|
|
43682
|
+
const e = t, n = Y(() => e.editor.extensionStorage["base-kit"].mode === et.EDITOR), { t: o } = Zt(), r = [
|
|
43683
43683
|
{
|
|
43684
43684
|
label: o("editor.fontFamily.gulim"),
|
|
43685
43685
|
value: "Gulim"
|
|
@@ -44197,9 +44197,9 @@ const nx = (t) => t.command(({ tr: e }) => {
|
|
|
44197
44197
|
else
|
|
44198
44198
|
return;
|
|
44199
44199
|
const { width: F, height: P } = g(r), R = F / P;
|
|
44200
|
-
let Q = Number(e.node.attrs.width) || F,
|
|
44200
|
+
let Q = Number(e.node.attrs.width) || F, U = Number(e.node.attrs.height) || Math.round(Q / R);
|
|
44201
44201
|
const ue = g(o).width;
|
|
44202
|
-
Q = Math.min(Q > ue ? ue : Q, ue),
|
|
44202
|
+
Q = Math.min(Q > ue ? ue : Q, ue), U = Math.round(Q / R), Object.assign(s.value, { x: T, y: A, w: Q, h: U, dir: C }), i.value = !0, y();
|
|
44203
44203
|
}
|
|
44204
44204
|
const m = xt.throttle((E) => {
|
|
44205
44205
|
if (!g(i)) return;
|
|
@@ -44370,11 +44370,11 @@ const nx = (t) => t.command(({ tr: e }) => {
|
|
|
44370
44370
|
props: {
|
|
44371
44371
|
handleTextInput(t) {
|
|
44372
44372
|
const { selection: e } = t.state;
|
|
44373
|
-
return e instanceof
|
|
44373
|
+
return e instanceof Qe && e.node.type.name === "image";
|
|
44374
44374
|
},
|
|
44375
44375
|
handlePaste(t) {
|
|
44376
44376
|
const { selection: e } = t.state;
|
|
44377
|
-
return e instanceof
|
|
44377
|
+
return e instanceof Qe && e.node.type.name === "image";
|
|
44378
44378
|
}
|
|
44379
44379
|
}
|
|
44380
44380
|
})
|
|
@@ -44671,8 +44671,8 @@ function Hte(t, e) {
|
|
|
44671
44671
|
P > k && (R = P - A);
|
|
44672
44672
|
const Q = C.state.doc.content.size;
|
|
44673
44673
|
R < 0 && (R = 0), R > Q && (R = Q);
|
|
44674
|
-
const
|
|
44675
|
-
ue.delete(k, F), ue.insert(R,
|
|
44674
|
+
const U = T.type.create(T.attrs), ue = C.state.tr;
|
|
44675
|
+
ue.delete(k, F), ue.insert(R, U), C.dispatch(ue), b();
|
|
44676
44676
|
return;
|
|
44677
44677
|
}
|
|
44678
44678
|
if (o) {
|
|
@@ -45880,7 +45880,7 @@ function fne({ $from: t, $to: e }) {
|
|
|
45880
45880
|
function pne(t, e, n) {
|
|
45881
45881
|
const o = (e || t).selection, r = (e || t).doc;
|
|
45882
45882
|
let i, s;
|
|
45883
|
-
if (o instanceof
|
|
45883
|
+
if (o instanceof Qe && (s = o.node.type.spec.tableRole)) {
|
|
45884
45884
|
if (s == "cell" || s == "header_cell")
|
|
45885
45885
|
i = un.create(r, o.from);
|
|
45886
45886
|
else if (s == "row") {
|
|
@@ -48757,7 +48757,7 @@ const sre = {
|
|
|
48757
48757
|
width: 2,
|
|
48758
48758
|
class: "ProseMirror-dropcursor border-black"
|
|
48759
48759
|
})
|
|
48760
|
-
), this.options.characterCount !== !1 && e.push(uQ.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(oT.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push(nT.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(CQ.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(qJ.configure(this.options.textStyle)), this.options.imageUpload !== !1 && e.push(UT.configure(this.options.imageUpload)), this.options.video !== !1 && e.push(zT.configure(this.options.video)), this.options.videoUpload !== !1 && e.push(HT.configure(this.options.videoUpload)), this.options.history !== !1 && e.push(m2.configure(this.options.history)), this.options.fontSize !== !1 && e.push(FS.configure(this.options.fontSize)), this.options.fontFamily !== !1 && e.push(kT.configure(this.options.fontFamily)), this.options.mode !==
|
|
48760
|
+
), this.options.characterCount !== !1 && e.push(uQ.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(oT.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push(nT.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(CQ.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(qJ.configure(this.options.textStyle)), this.options.imageUpload !== !1 && e.push(UT.configure(this.options.imageUpload)), this.options.video !== !1 && e.push(zT.configure(this.options.video)), this.options.videoUpload !== !1 && e.push(HT.configure(this.options.videoUpload)), this.options.history !== !1 && e.push(m2.configure(this.options.history)), this.options.fontSize !== !1 && e.push(FS.configure(this.options.fontSize)), this.options.fontFamily !== !1 && e.push(kT.configure(this.options.fontFamily)), this.options.mode !== et.EDITOR && e.push(Ete), this.options.superText !== !1 && this.options.mode !== et.PLAIN_TEXT && (typeof this.options.superText == "boolean" ? e.push(sx.configure()) : e.push(sx.configure(this.options.superText))), this.options.mode === et.EDITOR && (this.options.image !== !1 && e.push(z2.configure()), e.push(
|
|
48761
48761
|
PS.configure({ spacer: !0 }),
|
|
48762
48762
|
gS,
|
|
48763
48763
|
mS,
|
|
@@ -48768,11 +48768,11 @@ const sre = {
|
|
|
48768
48768
|
$S.configure({ spacer: !0 }),
|
|
48769
48769
|
BS.configure({ types: ["heading", "paragraph"], spacer: !0 }),
|
|
48770
48770
|
AT
|
|
48771
|
-
)), this.options.mode !==
|
|
48771
|
+
)), this.options.mode !== et.EDITOR && this.options.configPlan !== !1 && this.options.mode !== et.PLAIN_TEXT && (typeof this.options.configPlan == "boolean" ? e.push(ax.configure()) : e.push(
|
|
48772
48772
|
ax.configure({
|
|
48773
48773
|
specialCharModal: (r = this.options.configPlan) == null ? void 0 : r.specialCharModal
|
|
48774
48774
|
})
|
|
48775
|
-
)), this.options.mode !==
|
|
48775
|
+
)), this.options.mode !== et.EDITOR && this.options.mode !== et.PLAIN_TEXT && e.push(Ste), (this.options.mode === et.STRAIGHT || this.options.mode === et.REPORT || this.options.mode === et.EDITOR) && this.options.timeHighlighter && e.push(koe.configure(this.options.timeHighlighter)), this.options.invalidCharFocus !== !1 && e.push(Aoe.configure(this.options.invalidCharFocus)), this.options.disabled && e.push(lre), e.push(
|
|
48776
48776
|
EQ,
|
|
48777
48777
|
iT.configure(),
|
|
48778
48778
|
Eoe.configure(),
|
|
@@ -49148,10 +49148,10 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49148
49148
|
return {
|
|
49149
49149
|
update: async (x, _) => {
|
|
49150
49150
|
var E, C, T, A, k, F, P;
|
|
49151
|
-
const R = (E = this.key) === null || E === void 0 ? void 0 : E.getState(_), Q = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state),
|
|
49152
|
-
if (!
|
|
49151
|
+
const R = (E = this.key) === null || E === void 0 ? void 0 : E.getState(_), Q = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), U = R.active && Q.active && R.range.from !== Q.range.from, ue = !R.active && Q.active, be = R.active && !Q.active, K = !ue && !be && R.query !== Q.query, V = ue || U && K, B = K || U, J = be || U && K;
|
|
49152
|
+
if (!V && !B && !J)
|
|
49153
49153
|
return;
|
|
49154
|
-
const re = J && !
|
|
49154
|
+
const re = J && !V ? R : Q, ne = x.dom.querySelector(`[data-decoration-id="${re.decorationId}"]`);
|
|
49155
49155
|
b = {
|
|
49156
49156
|
editor: e,
|
|
49157
49157
|
range: re.range,
|
|
@@ -49171,10 +49171,10 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49171
49171
|
const { decorationId: Re } = (he = this.key) === null || he === void 0 ? void 0 : he.getState(e.state), De = x.dom.querySelector(`[data-decoration-id="${Re}"]`);
|
|
49172
49172
|
return (De == null ? void 0 : De.getBoundingClientRect()) || null;
|
|
49173
49173
|
} : null
|
|
49174
|
-
},
|
|
49174
|
+
}, V && ((T = y == null ? void 0 : y.onBeforeStart) === null || T === void 0 || T.call(y, b)), B && ((A = y == null ? void 0 : y.onBeforeUpdate) === null || A === void 0 || A.call(y, b)), (B || V) && (b.items = await d({
|
|
49175
49175
|
editor: e,
|
|
49176
49176
|
query: re.query
|
|
49177
|
-
})), J && ((k = y == null ? void 0 : y.onExit) === null || k === void 0 || k.call(y, b)), B && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, b)),
|
|
49177
|
+
})), J && ((k = y == null ? void 0 : y.onExit) === null || k === void 0 || k.call(y, b)), B && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, b)), V && ((P = y == null ? void 0 : y.onStart) === null || P === void 0 || P.call(y, b));
|
|
49178
49178
|
},
|
|
49179
49179
|
destroy: () => {
|
|
49180
49180
|
var x;
|
|
@@ -49208,13 +49208,13 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49208
49208
|
allowedPrefixes: i,
|
|
49209
49209
|
startOfLine: s,
|
|
49210
49210
|
$position: k.$from
|
|
49211
|
-
}),
|
|
49211
|
+
}), U = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
49212
49212
|
Q && h({
|
|
49213
49213
|
editor: e,
|
|
49214
49214
|
state: C,
|
|
49215
49215
|
range: Q.range,
|
|
49216
49216
|
isActive: _.active
|
|
49217
|
-
}) ? (R.active = !0, R.decorationId = _.decorationId ? _.decorationId :
|
|
49217
|
+
}) ? (R.active = !0, R.decorationId = _.decorationId ? _.decorationId : U, R.range = Q.range, R.query = Q.query, R.text = Q.text) : R.active = !1;
|
|
49218
49218
|
} else
|
|
49219
49219
|
R.active = !1;
|
|
49220
49220
|
return R.active || (R.decorationId = null, R.range = { from: 0, to: 0 }, R.query = null, R.text = null), R;
|
|
@@ -53002,15 +53002,15 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53002
53002
|
if (!e.value || !t) return;
|
|
53003
53003
|
const A = e.value.index, k = e.value.id, { state: F } = t, { tr: P } = F;
|
|
53004
53004
|
let R = !1;
|
|
53005
|
-
F.doc.descendants((Q,
|
|
53005
|
+
F.doc.descendants((Q, U) => {
|
|
53006
53006
|
var ue, be;
|
|
53007
53007
|
if (((ue = Q.attrs) == null ? void 0 : ue[bt.ID]) === k) {
|
|
53008
53008
|
(be = Q.attrs[bt.TEXT]) != null && be.trim();
|
|
53009
53009
|
const K = T.trim();
|
|
53010
53010
|
if (f0(K))
|
|
53011
|
-
return P.delete(
|
|
53012
|
-
const { [bt.ELEMENT_ID]:
|
|
53013
|
-
return P.setNodeMarkup(
|
|
53011
|
+
return P.delete(U, U + 1), R = !0, !1;
|
|
53012
|
+
const { [bt.ELEMENT_ID]: V, ...B } = Q.attrs;
|
|
53013
|
+
return P.setNodeMarkup(U, void 0, {
|
|
53014
53014
|
...B,
|
|
53015
53015
|
[bt.TEXT]: K
|
|
53016
53016
|
}), R = !0, !1;
|
|
@@ -53051,8 +53051,8 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53051
53051
|
T.forEach((P) => {
|
|
53052
53052
|
const R = P.getAttribute("book-mark-id");
|
|
53053
53053
|
if (!R) return;
|
|
53054
|
-
const Q = P.offsetTop + P.offsetHeight,
|
|
53055
|
-
l.value.set(R, Math.max(Q,
|
|
53054
|
+
const Q = P.offsetTop + P.offsetHeight, U = l.value.get(R) || 0;
|
|
53055
|
+
l.value.set(R, Math.max(Q, U));
|
|
53056
53056
|
}), T.forEach((P, R) => {
|
|
53057
53057
|
k[R].isHidden && P.classList.add("hidden"), k[R].isTruncated && P.classList.add("super-text-truncate");
|
|
53058
53058
|
});
|
|
@@ -53063,9 +53063,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53063
53063
|
}, b = async () => {
|
|
53064
53064
|
await Mt();
|
|
53065
53065
|
const A = u().map((k) => {
|
|
53066
|
-
const F = k.getAttribute("node-id"), P = k.getAttribute("book-mark-content"), R = k.getAttribute("page-id"), Q = k.getAttribute("page-number"),
|
|
53066
|
+
const F = k.getAttribute("node-id"), P = k.getAttribute("book-mark-content"), R = k.getAttribute("page-id"), Q = k.getAttribute("page-number"), U = k.getBoundingClientRect(), ue = k.getAttribute("line-id"), be = k.getAttribute("element-id");
|
|
53067
53067
|
return {
|
|
53068
|
-
position:
|
|
53068
|
+
position: U,
|
|
53069
53069
|
text: h(P),
|
|
53070
53070
|
id: F,
|
|
53071
53071
|
pageId: R,
|
|
@@ -53102,9 +53102,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53102
53102
|
const x = async (T) => {
|
|
53103
53103
|
await Mt();
|
|
53104
53104
|
const A = t == null ? void 0 : t.view.dom.querySelector(`[node-id='${T.dataId}']`), k = r.value.find((R) => {
|
|
53105
|
-
const Q = R.getBoundingClientRect().top,
|
|
53106
|
-
if (
|
|
53107
|
-
const ue =
|
|
53105
|
+
const Q = R.getBoundingClientRect().top, U = A == null ? void 0 : A.getBoundingClientRect().top;
|
|
53106
|
+
if (U == null) return !1;
|
|
53107
|
+
const ue = U - Q;
|
|
53108
53108
|
return Math.abs(ue - 9) <= 2;
|
|
53109
53109
|
});
|
|
53110
53110
|
if (!k) return;
|
|
@@ -53117,8 +53117,8 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53117
53117
|
const P = k.getBoundingClientRect();
|
|
53118
53118
|
r.value.forEach((R, Q) => {
|
|
53119
53119
|
if (Q !== F) {
|
|
53120
|
-
const
|
|
53121
|
-
y(P,
|
|
53120
|
+
const U = R.getBoundingClientRect();
|
|
53121
|
+
y(P, U) && R.classList.add("hidden");
|
|
53122
53122
|
}
|
|
53123
53123
|
}), m();
|
|
53124
53124
|
}, _ = (T) => {
|
|
@@ -53224,9 +53224,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53224
53224
|
"line-id": k.lineId,
|
|
53225
53225
|
class: We(g(He)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
|
|
53226
53226
|
style: Dt({ top: `${k.visiblePosition || ((P = k.position) == null ? void 0 : P.top)}px` }),
|
|
53227
|
-
onMouseover: (
|
|
53227
|
+
onMouseover: (U) => g(f)(U, F),
|
|
53228
53228
|
onMouseleave: C[0] || (C[0] = //@ts-ignore
|
|
53229
|
-
(...
|
|
53229
|
+
(...U) => g(h) && g(h)(...U))
|
|
53230
53230
|
}, [
|
|
53231
53231
|
D(g(w7), {
|
|
53232
53232
|
role: "text",
|
|
@@ -53240,7 +53240,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53240
53240
|
}
|
|
53241
53241
|
)
|
|
53242
53242
|
),
|
|
53243
|
-
onDblclick: (
|
|
53243
|
+
onDblclick: (U) => b(k, F)
|
|
53244
53244
|
}, {
|
|
53245
53245
|
default: N(() => [
|
|
53246
53246
|
ee("div", {
|
|
@@ -53474,7 +53474,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53474
53474
|
const A = T.clipboardData;
|
|
53475
53475
|
if (!A) return !1;
|
|
53476
53476
|
const k = o.mode, F = A.getData("text/plain") || "", P = Array.from(A.items).some((R) => R.type.startsWith("image/"));
|
|
53477
|
-
return (k ===
|
|
53477
|
+
return (k === et.STRAIGHT || k === et.REPORT) && P ? (T.preventDefault(), !0) : k === et.PLAIN_TEXT ? (T.preventDefault(), C.dispatch(C.state.tr.insertText(F, C.state.selection.from)), !0) : !1;
|
|
53478
53478
|
},
|
|
53479
53479
|
clipboardTextParser: (C, T) => {
|
|
53480
53480
|
const A = C.split(/(?:\r\n?|\n)/), k = [];
|
|
@@ -53502,7 +53502,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53502
53502
|
m(_.value);
|
|
53503
53503
|
}
|
|
53504
53504
|
});
|
|
53505
|
-
Y(() => o.mode ===
|
|
53505
|
+
Y(() => o.mode === et.EDITOR);
|
|
53506
53506
|
async function w() {
|
|
53507
53507
|
await Mt(), i.emit({
|
|
53508
53508
|
action: "render"
|
|
@@ -53561,7 +53561,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53561
53561
|
});
|
|
53562
53562
|
const _ = H(null);
|
|
53563
53563
|
function E(C) {
|
|
53564
|
-
C ===
|
|
53564
|
+
C === et.REPORT && m(_.value);
|
|
53565
53565
|
}
|
|
53566
53566
|
return pt(() => {
|
|
53567
53567
|
E(o.mode);
|
|
@@ -53606,7 +53606,7 @@ function iae(t, e, n = !1, o = 200) {
|
|
|
53606
53606
|
const { height: r } = wR(t), i = H(0), s = H(0), a = H(o), l = H(0), u = async () => {
|
|
53607
53607
|
await Mt();
|
|
53608
53608
|
const d = r.value - 8;
|
|
53609
|
-
e.value ===
|
|
53609
|
+
e.value === et.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
|
|
53610
53610
|
};
|
|
53611
53611
|
return n || Be(() => r.value, u), pt(() => {
|
|
53612
53612
|
u();
|
|
@@ -53692,7 +53692,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53692
53692
|
const E = Y(() => [...u.extensions, ...xt.differenceBy(o.extensions, u.extensions, "name")].map((Me, Ke) => {
|
|
53693
53693
|
var it;
|
|
53694
53694
|
return ((it = Me.configure) == null ? void 0 : it.call(Me, { sort: Ke })) || Me;
|
|
53695
|
-
})), C = Y(() => o.mode ===
|
|
53695
|
+
})), C = Y(() => o.mode === et.EDITOR), T = H(o.fontSizeDefault), A = H(o.fontFamilyDefault);
|
|
53696
53696
|
fn("fontSize", T), fn("fontFamily", A);
|
|
53697
53697
|
const k = Y(() => {
|
|
53698
53698
|
const ae = {
|
|
@@ -53750,7 +53750,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53750
53750
|
const Ke = Me.clipboardData;
|
|
53751
53751
|
if (!Ke) return !1;
|
|
53752
53752
|
const it = o.mode, Nt = Array.from(Ke.items), Ut = Nt.some((z) => z.type.startsWith("image/")), q = Nt.some((z) => z.type.startsWith("video/"));
|
|
53753
|
-
return (it ===
|
|
53753
|
+
return (it === et.STRAIGHT || it === et.REPORT) && (Ut || q) ? (Me.preventDefault(), !0) : q ? (Me.preventDefault(), re(["video"]) && Nt.forEach(async (z) => {
|
|
53754
53754
|
var oe;
|
|
53755
53755
|
if (!z.type.startsWith("video/")) return;
|
|
53756
53756
|
const ve = z.getAsFile();
|
|
@@ -53790,7 +53790,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53790
53790
|
}
|
|
53791
53791
|
});
|
|
53792
53792
|
fn("minCharSuperInput", o.minChar.superPreview);
|
|
53793
|
-
const { contentInner: Q, measuredMinWidth:
|
|
53793
|
+
const { contentInner: Q, measuredMinWidth: U, measure: ue } = Rh({
|
|
53794
53794
|
minChars: o.minChar.content,
|
|
53795
53795
|
fontSize: T,
|
|
53796
53796
|
editor: R
|
|
@@ -53799,7 +53799,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53799
53799
|
return (ae = be.value) == null ? void 0 : ae.measuredMinWidthComment;
|
|
53800
53800
|
});
|
|
53801
53801
|
fn("measuredMinWidthComment", K);
|
|
53802
|
-
const
|
|
53802
|
+
const V = Y(() => C.value ? 0 : ne.value ? Number(U == null ? void 0 : U.value) + Number(K == null ? void 0 : K.value) + 30 : Number(U == null ? void 0 : U.value));
|
|
53803
53803
|
async function B() {
|
|
53804
53804
|
await Mt(), i.emit({
|
|
53805
53805
|
action: "render"
|
|
@@ -53809,7 +53809,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53809
53809
|
if (!ae) return "";
|
|
53810
53810
|
if (ae.isEmpty)
|
|
53811
53811
|
return Me === "json" ? {} : "";
|
|
53812
|
-
if (o.mode ===
|
|
53812
|
+
if (o.mode === et.PLAIN_TEXT)
|
|
53813
53813
|
return ae.getText({ blockSeparator: `
|
|
53814
53814
|
` });
|
|
53815
53815
|
switch (Me) {
|
|
@@ -53862,7 +53862,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53862
53862
|
const ne = Y(() => {
|
|
53863
53863
|
var it;
|
|
53864
53864
|
if (!((it = R == null ? void 0 : R.storage) != null && it.superText)) return !1;
|
|
53865
|
-
const { enable: ae } = R.storage.superText, Me = [
|
|
53865
|
+
const { enable: ae } = R.storage.superText, Me = [et.EDITOR, et.PLAIN_TEXT].includes(o.mode), Ke = o.disabled;
|
|
53866
53866
|
return ae && !Me && !Ke;
|
|
53867
53867
|
}), he = H(null), Re = Y(() => o.mode), { commentHeight: De, contentHeight: ot, minHeight: Ve, minHeightComment: Ye } = iae(
|
|
53868
53868
|
he,
|
|
@@ -53871,7 +53871,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53871
53871
|
typeof o.minHeight == "string" ? parseInt(o.minHeight) : o.minHeight
|
|
53872
53872
|
), se = H(null);
|
|
53873
53873
|
function ce(ae) {
|
|
53874
|
-
ae ===
|
|
53874
|
+
ae === et.STRAIGHT && w(se.value);
|
|
53875
53875
|
}
|
|
53876
53876
|
pt(() => {
|
|
53877
53877
|
ce(o.mode);
|
|
@@ -53962,14 +53962,14 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53962
53962
|
key: 1,
|
|
53963
53963
|
class: "space-y-2 flex-1 flex flex-col",
|
|
53964
53964
|
style: Dt({
|
|
53965
|
-
minWidth: `${
|
|
53965
|
+
minWidth: `${V.value}px`
|
|
53966
53966
|
})
|
|
53967
53967
|
}, [
|
|
53968
|
-
ae.mode === g(
|
|
53968
|
+
ae.mode === g(et).REPORT && !ae.hideComment ? (M(), $(rae, {
|
|
53969
53969
|
key: 0,
|
|
53970
53970
|
ref_key: "editorCommentRef",
|
|
53971
53971
|
ref: we,
|
|
53972
|
-
mode: g(
|
|
53972
|
+
mode: g(et).REPORT,
|
|
53973
53973
|
extensions: ae.extensions,
|
|
53974
53974
|
"model-value": o.comment,
|
|
53975
53975
|
disabled: o.disabled,
|
|
@@ -54024,7 +54024,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
54024
54024
|
D(g(fi), {
|
|
54025
54025
|
editor: g(R),
|
|
54026
54026
|
spellcheck: "true",
|
|
54027
|
-
class: We(g(He)("h-full break-all", ae.mode === g(
|
|
54027
|
+
class: We(g(He)("h-full break-all", ae.mode === g(et).PLAIN_TEXT && "plain-text"))
|
|
54028
54028
|
}, null, 8, ["editor", "class"])
|
|
54029
54029
|
]),
|
|
54030
54030
|
_: 1
|
|
@@ -54272,7 +54272,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
54272
54272
|
var m, b, y;
|
|
54273
54273
|
return M(), pe(nt, null, [
|
|
54274
54274
|
ee("div", dae, [
|
|
54275
|
-
g(i) && !f.disableSuperInput && f.mode !== g(
|
|
54275
|
+
g(i) && !f.disableSuperInput && f.mode !== g(et).EDITOR ? (M(), pe("button", {
|
|
54276
54276
|
key: 0,
|
|
54277
54277
|
class: "bubble-menu-item",
|
|
54278
54278
|
onClick: u
|
|
@@ -54868,12 +54868,12 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54868
54868
|
ae > xe[0] && ae <= we && (Ae.size = Ae.min, se.prevReachedMinPanes += Ae.min);
|
|
54869
54869
|
}), se.prevPanesSize = P(xe[0]), xe[0] === void 0) ? (se.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((Ae, ae) => {
|
|
54870
54870
|
ae > 0 && ae <= we && (Ae.size = Ae.min, se.prevReachedMinPanes += Ae.min);
|
|
54871
|
-
}), i.value[xe[1]].size = 100 - se.prevReachedMinPanes - i.value[0].min - se.prevPanesSize - se.nextPanesSize, null) : ce > 100 - se.nextPanesSize - i.value[xe[1]].min && (xe[1] =
|
|
54871
|
+
}), i.value[xe[1]].size = 100 - se.prevReachedMinPanes - i.value[0].min - se.prevPanesSize - se.nextPanesSize, null) : ce > 100 - se.nextPanesSize - i.value[xe[1]].min && (xe[1] = U(we).index, se.nextReachedMinPanes = 0, xe[1] > we + 1 && i.value.forEach((Ae, ae) => {
|
|
54872
54872
|
ae > we && ae < xe[1] && (Ae.size = Ae.min, se.nextReachedMinPanes += Ae.min);
|
|
54873
54873
|
}), se.nextPanesSize = R(xe[1] - 1), xe[1] === void 0) ? (se.nextReachedMinPanes = 0, i.value.forEach((Ae, ae) => {
|
|
54874
54874
|
ae < a.value - 1 && ae >= we + 1 && (Ae.size = Ae.min, se.nextReachedMinPanes += Ae.min);
|
|
54875
54875
|
}), i.value[xe[0]].size = 100 - se.prevPanesSize - R(xe[0] - 1), null) : { sums: se, panesToResize: xe };
|
|
54876
|
-
}, P = (se) => i.value.reduce((ce, we, xe) => ce + (xe < se ? we.size : 0), 0), R = (se) => i.value.reduce((ce, we, xe) => ce + (xe > se + 1 ? we.size : 0), 0), Q = (se) => [...i.value].reverse().find((ce) => ce.index < se && ce.size > ce.min) || {},
|
|
54876
|
+
}, P = (se) => i.value.reduce((ce, we, xe) => ce + (xe < se ? we.size : 0), 0), R = (se) => i.value.reduce((ce, we, xe) => ce + (xe > se + 1 ? we.size : 0), 0), Q = (se) => [...i.value].reverse().find((ce) => ce.index < se && ce.size > ce.min) || {}, U = (se) => i.value.find((ce) => ce.index > se + 1 && ce.size > ce.min) || {}, ue = () => {
|
|
54877
54877
|
var se;
|
|
54878
54878
|
const ce = Array.from(((se = l.value) == null ? void 0 : se.children) || []);
|
|
54879
54879
|
for (const we of ce) {
|
|
@@ -54885,7 +54885,7 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54885
54885
|
Ae.classList.add("splitpanes__splitter"), we || (Ae.onmousedown = (ae) => y(ae, xe), typeof window < "u" && "ontouchstart" in window && (Ae.ontouchstart = (ae) => y(ae, xe)), Ae.onclick = (ae) => _(ae, xe + 1)), Ae.ondblclick = (ae) => E(ae, xe + 1), ce.parentNode.insertBefore(Ae, ce);
|
|
54886
54886
|
}, K = (se) => {
|
|
54887
54887
|
se.onmousedown = void 0, se.onclick = void 0, se.ondblclick = void 0, se.remove();
|
|
54888
|
-
},
|
|
54888
|
+
}, V = () => {
|
|
54889
54889
|
var se;
|
|
54890
54890
|
const ce = Array.from(((se = l.value) == null ? void 0 : se.children) || []);
|
|
54891
54891
|
for (const xe of ce)
|
|
@@ -54900,14 +54900,14 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54900
54900
|
var ce;
|
|
54901
54901
|
let we = -1;
|
|
54902
54902
|
Array.from(((ce = l.value) == null ? void 0 : ce.children) || []).some((xe) => (xe.className.includes("splitpanes__pane") && we++, xe.isSameNode(se.el))), i.value.splice(we, 0, { ...se, index: we }), i.value.forEach((xe, Ae) => xe.index = Ae), u.value && Mt(() => {
|
|
54903
|
-
|
|
54903
|
+
V(), ne({ addedPane: i.value[we] }), Ve("pane-add", { pane: i.value[we] });
|
|
54904
54904
|
});
|
|
54905
54905
|
}, re = (se) => {
|
|
54906
54906
|
const ce = i.value.findIndex((xe) => xe.id === se);
|
|
54907
54907
|
i.value[ce].el = null;
|
|
54908
54908
|
const we = i.value.splice(ce, 1)[0];
|
|
54909
54909
|
i.value.forEach((xe, Ae) => xe.index = Ae), Mt(() => {
|
|
54910
|
-
|
|
54910
|
+
V(), Ve("pane-remove", { pane: we }), ne({ removedPane: { ...we } });
|
|
54911
54911
|
});
|
|
54912
54912
|
}, ne = (se = {}) => {
|
|
54913
54913
|
!se.addedPane && !se.removedPane ? Re() : i.value.some((ce) => ce.givenSize !== null || ce.min || ce.max < 100) ? De(se) : he(), u.value && Ve("resized");
|
|
@@ -54966,8 +54966,8 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54966
54966
|
panes: i.value.map((Ae) => ({ min: Ae.min, max: Ae.max, size: Ae.size }))
|
|
54967
54967
|
});
|
|
54968
54968
|
};
|
|
54969
|
-
Be(() => o.firstSplitter, () =>
|
|
54970
|
-
ue(),
|
|
54969
|
+
Be(() => o.firstSplitter, () => V()), pt(() => {
|
|
54970
|
+
ue(), V(), ne(), Ve("ready"), u.value = !0;
|
|
54971
54971
|
}), lo(() => u.value = !1);
|
|
54972
54972
|
const Ye = () => {
|
|
54973
54973
|
var se;
|
|
@@ -55165,7 +55165,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55165
55165
|
fontSize: C.value
|
|
55166
55166
|
})), k = H(), { height: F } = CR(), P = Y(() => {
|
|
55167
55167
|
var X;
|
|
55168
|
-
if (
|
|
55168
|
+
if (V.value)
|
|
55169
55169
|
return {
|
|
55170
55170
|
bottom: "15px"
|
|
55171
55171
|
};
|
|
@@ -55190,7 +55190,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55190
55190
|
maxWidth: Rn(o.maxWidth),
|
|
55191
55191
|
width: o.maxWidth ? "100%" : void 0,
|
|
55192
55192
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
55193
|
-
})),
|
|
55193
|
+
})), U = new is({
|
|
55194
55194
|
enablePasteRules: !1,
|
|
55195
55195
|
// disable Markdown when pasting
|
|
55196
55196
|
enableInputRules: !1,
|
|
@@ -55200,10 +55200,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55200
55200
|
handleKeyDown: xt.throttle((oe, X) => X.key === "Enter" && a.enter && !X.shiftKey ? (r("enter"), !0) : !1, vi),
|
|
55201
55201
|
transformPastedHTML: (oe) => (oe = oe.replace(/\s*style="[^"]*"/g, ""), oe),
|
|
55202
55202
|
handlePaste(oe, X) {
|
|
55203
|
-
var
|
|
55204
|
-
if (o.mode !==
|
|
55203
|
+
var Je;
|
|
55204
|
+
if (o.mode !== et.PLAIN_TEXT) return !1;
|
|
55205
55205
|
X.preventDefault();
|
|
55206
|
-
const me = ((
|
|
55206
|
+
const me = ((Je = X.clipboardData) == null ? void 0 : Je.getData("text/plain")) || "", { tr: ge, selection: Ne } = oe.state;
|
|
55207
55207
|
return oe.dispatch(ge.insertText(me, Ne.from)), !0;
|
|
55208
55208
|
}
|
|
55209
55209
|
},
|
|
@@ -55234,12 +55234,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55234
55234
|
});
|
|
55235
55235
|
}), y(X);
|
|
55236
55236
|
}
|
|
55237
|
-
const be = H(), K = H(!0),
|
|
55237
|
+
const be = H(), K = H(!0), V = H(!1);
|
|
55238
55238
|
function B() {
|
|
55239
55239
|
i.isNativeWebViewAvailable() && (i.receiveDataFromNative("keyboardDidShow", (oe) => {
|
|
55240
|
-
|
|
55240
|
+
V.value = !0;
|
|
55241
55241
|
}), i.receiveDataFromNative("keyboardDidHide", (oe) => {
|
|
55242
|
-
|
|
55242
|
+
V.value = !1;
|
|
55243
55243
|
}));
|
|
55244
55244
|
}
|
|
55245
55245
|
function J(oe) {
|
|
@@ -55253,18 +55253,18 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55253
55253
|
K.value = !me;
|
|
55254
55254
|
}
|
|
55255
55255
|
k4(document, "focusin", J), k4(document, "focusout", J), pt(() => {
|
|
55256
|
-
ne(
|
|
55256
|
+
ne(U), w(U), B();
|
|
55257
55257
|
});
|
|
55258
|
-
const re = Y(() => o.isShowFormatControlBar && K.value && !
|
|
55258
|
+
const re = Y(() => o.isShowFormatControlBar && K.value && !V.value);
|
|
55259
55259
|
function ne(oe) {
|
|
55260
|
-
be.value = oe ??
|
|
55260
|
+
be.value = oe ?? U, l.setEditorSelectedMobile(be.value);
|
|
55261
55261
|
}
|
|
55262
|
-
const he = Y(() =>
|
|
55262
|
+
const he = Y(() => U.storage.superText.isShowSuperInputMoblie);
|
|
55263
55263
|
function Re(oe, X) {
|
|
55264
55264
|
if (!oe) return "";
|
|
55265
55265
|
if (oe.isEmpty)
|
|
55266
55266
|
return X === "json" ? {} : "";
|
|
55267
|
-
if (o.mode ===
|
|
55267
|
+
if (o.mode === et.PLAIN_TEXT)
|
|
55268
55268
|
return oe.getText({ blockSeparator: `
|
|
55269
55269
|
` });
|
|
55270
55270
|
switch (X) {
|
|
@@ -55280,19 +55280,19 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55280
55280
|
}
|
|
55281
55281
|
}
|
|
55282
55282
|
function De(oe) {
|
|
55283
|
-
return oe.every((X) =>
|
|
55283
|
+
return oe.every((X) => U == null ? void 0 : U.extensionManager.extensions.find((me) => me.name === X));
|
|
55284
55284
|
}
|
|
55285
55285
|
Be(
|
|
55286
55286
|
() => b.languages,
|
|
55287
55287
|
() => {
|
|
55288
|
-
|
|
55288
|
+
U.commands.checkSpelling();
|
|
55289
55289
|
}
|
|
55290
55290
|
), Be(
|
|
55291
55291
|
() => o.modelValue,
|
|
55292
55292
|
(oe) => {
|
|
55293
|
-
if (!
|
|
55294
|
-
const { from: X, to: me } =
|
|
55295
|
-
|
|
55293
|
+
if (!U || xt.isEqual(Re(U, o.output), oe)) return;
|
|
55294
|
+
const { from: X, to: me } = U.state.selection;
|
|
55295
|
+
U.commands.setTextSelection({ from: X, to: me }), U.commands.setContent(bo(oe, o.disabled, o.mode), !1, {
|
|
55296
55296
|
preserveWhitespace: "full"
|
|
55297
55297
|
});
|
|
55298
55298
|
},
|
|
@@ -55307,7 +55307,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55307
55307
|
() => E.value,
|
|
55308
55308
|
(oe) => {
|
|
55309
55309
|
var X;
|
|
55310
|
-
|
|
55310
|
+
U == null || U.setEditable(oe), (X = U == null ? void 0 : U.commands) != null && X.setIsEnableSuggestion && U.commands.setIsEnableSuggestion(oe);
|
|
55311
55311
|
},
|
|
55312
55312
|
{ immediate: !0 }
|
|
55313
55313
|
), Be(
|
|
@@ -55319,18 +55319,18 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55319
55319
|
}
|
|
55320
55320
|
), zn(() => {
|
|
55321
55321
|
var oe;
|
|
55322
|
-
|
|
55322
|
+
U == null || U.destroy(), (oe = be.value) == null || oe.destroy();
|
|
55323
55323
|
}), bd(cd.SAVE, () => {
|
|
55324
|
-
localStorage.setItem("content", Re(
|
|
55324
|
+
localStorage.setItem("content", Re(U, "html"));
|
|
55325
55325
|
});
|
|
55326
55326
|
const ot = (oe, X) => {
|
|
55327
|
-
const me =
|
|
55327
|
+
const me = U;
|
|
55328
55328
|
if (me) {
|
|
55329
55329
|
if (X) {
|
|
55330
|
-
const ge = me.state.doc.nodeAt(+X), { [bt.ELEMENT_ID]: Ne, ...
|
|
55330
|
+
const ge = me.state.doc.nodeAt(+X), { [bt.ELEMENT_ID]: Ne, ...Je } = (ge == null ? void 0 : ge.attrs) || {};
|
|
55331
55331
|
me.view.dispatch(
|
|
55332
55332
|
me.state.tr.setNodeMarkup(+X, void 0, {
|
|
55333
|
-
...
|
|
55333
|
+
...Je,
|
|
55334
55334
|
[bt.TEXT]: oe
|
|
55335
55335
|
})
|
|
55336
55336
|
);
|
|
@@ -55348,7 +55348,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55348
55348
|
}
|
|
55349
55349
|
}, Ve = (oe) => {
|
|
55350
55350
|
var me;
|
|
55351
|
-
const X = be.value ??
|
|
55351
|
+
const X = be.value ?? U;
|
|
55352
55352
|
if (X) {
|
|
55353
55353
|
const { from: ge } = X.view.state.selection;
|
|
55354
55354
|
X.commands.insertContentAt(ge, {
|
|
@@ -55359,20 +55359,20 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55359
55359
|
(me = be.value) == null || me.commands.toggleConfigPlanInput();
|
|
55360
55360
|
};
|
|
55361
55361
|
function Ye(oe) {
|
|
55362
|
-
oe ===
|
|
55362
|
+
oe === et.STRAIGHT && U.commands.focus("end"), oe === et.EDITOR && U.commands.focus("end");
|
|
55363
55363
|
}
|
|
55364
|
-
const se = Y(() => E.value && o.mode ===
|
|
55364
|
+
const se = Y(() => E.value && o.mode === et.STRAIGHT || E.value && o.mode === et.REPORT);
|
|
55365
55365
|
pt(() => {
|
|
55366
55366
|
var oe, X;
|
|
55367
|
-
o.autoFocus && Ye(o.mode), (oe =
|
|
55367
|
+
o.autoFocus && Ye(o.mode), (oe = U == null ? void 0 : U.commands) != null && oe.setIsMobile && U.commands.setIsMobile(!0), (X = U.storage.superText) != null && X.enable && U.commands.toggleSuperTextView();
|
|
55368
55368
|
}), Be(
|
|
55369
55369
|
() => o.mode,
|
|
55370
55370
|
(oe) => {
|
|
55371
55371
|
o.autoFocus && Ye(oe);
|
|
55372
55372
|
}
|
|
55373
55373
|
);
|
|
55374
|
-
const ce = (mt =
|
|
55375
|
-
const oe = o.mode ===
|
|
55374
|
+
const ce = (mt = U.extensionManager.extensions.find((oe) => oe.name === "superText")) == null ? void 0 : mt.options.bottomSheetComponent, we = Y(() => {
|
|
55375
|
+
const oe = o.mode === et.REPORT, X = o.mode === et.EDITOR && o.isScreenSplit, me = !o.hideComment;
|
|
55376
55376
|
return (oe || X) && me;
|
|
55377
55377
|
}), xe = Y(() => !we.value), {
|
|
55378
55378
|
HEADER_ONLY_SIZE: Ae,
|
|
@@ -55386,12 +55386,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55386
55386
|
function q() {
|
|
55387
55387
|
if (!o.contentAutoCopied) return;
|
|
55388
55388
|
const oe = eL(o.contentAutoCopied, ".super-text");
|
|
55389
|
-
_(
|
|
55389
|
+
_(U, oe);
|
|
55390
55390
|
}
|
|
55391
55391
|
const { isScrolling: z, handleScroll: ve } = Qc(), { isScrolling: Oe, handleScroll: Ge } = Qc();
|
|
55392
|
-
return e({ editor:
|
|
55392
|
+
return e({ editor: U }), (oe, X) => {
|
|
55393
55393
|
var Pt, It, Fn, Zn;
|
|
55394
|
-
const me = S7, ge = C0, Ne = x0,
|
|
55394
|
+
const me = S7, ge = C0, Ne = x0, Je = w0, yt = r0, jt = E7, pn = uae, Lr = Np, fe = aae, qe = ln, rt = ao;
|
|
55395
55395
|
return M(), pe(nt, null, [
|
|
55396
55396
|
g(be) ? (M(), pe("div", {
|
|
55397
55397
|
key: 0,
|
|
@@ -55405,30 +55405,30 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55405
55405
|
!o.height && "flex-1",
|
|
55406
55406
|
oe.editorClass,
|
|
55407
55407
|
oe.disabled && "disabled",
|
|
55408
|
-
oe.mode !== g(
|
|
55408
|
+
oe.mode !== g(et).EDITOR && oe.isShowLineNumber && "editor-line"
|
|
55409
55409
|
)
|
|
55410
55410
|
)
|
|
55411
55411
|
}, [
|
|
55412
55412
|
!oe.hideBubble && !oe.disabled && g(E) ? (M(), pe(nt, { key: 0 }, [
|
|
55413
55413
|
D(me, {
|
|
55414
|
-
editor: g(
|
|
55414
|
+
editor: g(U),
|
|
55415
55415
|
mode: oe.mode
|
|
55416
55416
|
}, null, 8, ["editor", "mode"]),
|
|
55417
55417
|
De([g(vd)]) ? (M(), $(ge, {
|
|
55418
55418
|
key: 0,
|
|
55419
|
-
editor: g(
|
|
55419
|
+
editor: g(U)
|
|
55420
55420
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55421
55421
|
De([g(il)]) ? (M(), $(Ne, {
|
|
55422
55422
|
key: 1,
|
|
55423
|
-
editor: g(
|
|
55423
|
+
editor: g(U)
|
|
55424
55424
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55425
|
-
De([g(ta)]) ? (M(), $(
|
|
55425
|
+
De([g(ta)]) ? (M(), $(Je, {
|
|
55426
55426
|
key: 2,
|
|
55427
|
-
editor: g(
|
|
55427
|
+
editor: g(U)
|
|
55428
55428
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55429
55429
|
De([g(na), g(oa)]) ? (M(), $(yt, {
|
|
55430
55430
|
key: 3,
|
|
55431
|
-
editor: g(
|
|
55431
|
+
editor: g(U)
|
|
55432
55432
|
}, null, 8, ["editor"])) : Se("", !0)
|
|
55433
55433
|
], 64)) : Se("", !0),
|
|
55434
55434
|
oe.hideToolbar ? Se("", !0) : (M(), $(jt, {
|
|
@@ -55438,17 +55438,17 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55438
55438
|
disabled: oe.disabled,
|
|
55439
55439
|
class: "mb-[3px]",
|
|
55440
55440
|
"custom-class-toolbar": oe.customClassToolbar,
|
|
55441
|
-
"active-extensions": oe.mode === g(
|
|
55441
|
+
"active-extensions": oe.mode === g(et).EDITOR ? [Yc] : void 0
|
|
55442
55442
|
}, null, 8, ["editor", "mode", "disabled", "custom-class-toolbar", "active-extensions"])),
|
|
55443
55443
|
(M(), $(ed, { to: "body" }, [
|
|
55444
|
-
oe.isShowFormatControlBar && oe.mode === g(
|
|
55444
|
+
oe.isShowFormatControlBar && oe.mode === g(et).EDITOR ? (M(), pe("div", {
|
|
55445
55445
|
key: 0,
|
|
55446
55446
|
style: Dt({
|
|
55447
55447
|
...g(P),
|
|
55448
55448
|
visibility: g(K) ? "visible" : "hidden",
|
|
55449
55449
|
pointerEvents: g(K) ? "auto" : "none"
|
|
55450
55450
|
}),
|
|
55451
|
-
class: We(g(He)("absolute left-5 right-5 z-[12]", g(
|
|
55451
|
+
class: We(g(He)("absolute left-5 right-5 z-[12]", g(V) && "fixed", oe.customClassFormatControlBar))
|
|
55452
55452
|
}, [
|
|
55453
55453
|
D(pn, {
|
|
55454
55454
|
editor: g(be),
|
|
@@ -55464,7 +55464,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55464
55464
|
onResize: g(Ut)
|
|
55465
55465
|
}, {
|
|
55466
55466
|
default: N(() => [
|
|
55467
|
-
g(we) ? (M(), $(g(Ra), {
|
|
55467
|
+
o.comment && g(we) ? (M(), $(g(Ra), {
|
|
55468
55468
|
key: 0,
|
|
55469
55469
|
size: g(Ke),
|
|
55470
55470
|
"min-size": g(Ae),
|
|
@@ -55480,13 +55480,13 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55480
55480
|
}, null, 8, ["title-bar"])) : Se("", !0),
|
|
55481
55481
|
(Dr = oe.fieldNameComment) != null && Dr.label ? (M(), pe("div", {
|
|
55482
55482
|
key: 1,
|
|
55483
|
-
onClick: X[0] || (X[0] = (eo) => g(Nt)("pane1")),
|
|
55484
55483
|
class: We(
|
|
55485
55484
|
g(He)(
|
|
55486
55485
|
"flex justify-between items-center py-1.5 mb-1 active:bg-ed-accent",
|
|
55487
55486
|
!oe.isAccordion && "pointer-events-none"
|
|
55488
55487
|
)
|
|
55489
|
-
)
|
|
55488
|
+
),
|
|
55489
|
+
onClick: X[0] || (X[0] = (eo) => g(Nt)("pane1"))
|
|
55490
55490
|
}, [
|
|
55491
55491
|
D(ph, {
|
|
55492
55492
|
"field-name": oe.fieldNameComment,
|
|
@@ -55498,15 +55498,15 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55498
55498
|
})) : Se("", !0)
|
|
55499
55499
|
], 2)) : Se("", !0),
|
|
55500
55500
|
ko(ee("div", {
|
|
55501
|
-
onScroll: X[2] || (X[2] = //@ts-ignore
|
|
55502
|
-
(...eo) => g(ve) && g(ve)(...eo)),
|
|
55503
55501
|
class: We(
|
|
55504
55502
|
g(He)(
|
|
55505
55503
|
"flex-1 !overflow-y-auto overflow-x-hidden basis-0 flex h-full flex-col",
|
|
55506
55504
|
!g(z) && "scrollbar-thumb-transparent",
|
|
55507
55505
|
oe.contentClass
|
|
55508
55506
|
)
|
|
55509
|
-
)
|
|
55507
|
+
),
|
|
55508
|
+
onScroll: X[2] || (X[2] = //@ts-ignore
|
|
55509
|
+
(...eo) => g(ve) && g(ve)(...eo))
|
|
55510
55510
|
}, [
|
|
55511
55511
|
D(vae, {
|
|
55512
55512
|
ref: "editorCommentRef",
|
|
@@ -55544,13 +55544,13 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55544
55544
|
ee("div", wae, [
|
|
55545
55545
|
(Dr = oe.fieldNameContent) != null && Dr.label ? (M(), pe("div", {
|
|
55546
55546
|
key: 0,
|
|
55547
|
-
onClick: X[3] || (X[3] = (Si) => g(Nt)("pane2")),
|
|
55548
55547
|
class: We(
|
|
55549
55548
|
g(He)(
|
|
55550
55549
|
"flex justify-between items-center py-1.5 mb-1 active:bg-ed-accent flex-1",
|
|
55551
55550
|
!oe.isAccordion && "pointer-events-none"
|
|
55552
55551
|
)
|
|
55553
|
-
)
|
|
55552
|
+
),
|
|
55553
|
+
onClick: X[3] || (X[3] = (Si) => g(Nt)("pane2"))
|
|
55554
55554
|
}, [
|
|
55555
55555
|
D(ph, {
|
|
55556
55556
|
"field-name": oe.fieldNameContent,
|
|
@@ -55581,18 +55581,18 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55581
55581
|
}),
|
|
55582
55582
|
D(fe, {
|
|
55583
55583
|
id: "superView",
|
|
55584
|
-
checked: g(
|
|
55585
|
-
"onUpdate:checked": X[4] || (X[4] = (Si) => g(V).commands.toggleSuperTextView()),
|
|
55584
|
+
checked: g(U).storage.superText.enable,
|
|
55586
55585
|
class: "w-8 h-5 data-[state=checked]:bg-blue-500",
|
|
55587
|
-
"custom-class-thumb": "w-4 h-4 data-[state=checked]:translate-x-3"
|
|
55586
|
+
"custom-class-thumb": "w-4 h-4 data-[state=checked]:translate-x-3",
|
|
55587
|
+
"onUpdate:checked": X[4] || (X[4] = (Si) => g(U).commands.toggleSuperTextView())
|
|
55588
55588
|
}, null, 8, ["checked"])
|
|
55589
55589
|
], 2)) : Se("", !0),
|
|
55590
55590
|
oe.contentAutoCopied ? (M(), $(rt, {
|
|
55591
55591
|
key: 2,
|
|
55592
55592
|
disabled: g(f0)(oe.contentAutoCopied),
|
|
55593
|
-
onClick: q,
|
|
55594
55593
|
variant: "ghost",
|
|
55595
|
-
class: "w-fit h-fit p-0 gap-x-1 label-large text-blue-500"
|
|
55594
|
+
class: "w-fit h-fit p-0 gap-x-1 label-large text-blue-500",
|
|
55595
|
+
onClick: q
|
|
55596
55596
|
}, {
|
|
55597
55597
|
default: N(() => [
|
|
55598
55598
|
D(qe, {
|
|
@@ -55605,20 +55605,20 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55605
55605
|
}, 8, ["disabled"])) : Se("", !0)
|
|
55606
55606
|
]),
|
|
55607
55607
|
ko(ee("div", {
|
|
55608
|
-
onScroll: X[5] || (X[5] = //@ts-ignore
|
|
55609
|
-
(...Si) => g(Ge) && g(Ge)(...Si)),
|
|
55610
55608
|
class: We(
|
|
55611
55609
|
g(He)(
|
|
55612
55610
|
"flex-1 !overflow-y-auto overflow-x-hidden basis-0 flex flex-col",
|
|
55613
55611
|
!g(Oe) && "scrollbar-thumb-transparent",
|
|
55614
55612
|
oe.contentClass
|
|
55615
55613
|
)
|
|
55616
|
-
)
|
|
55614
|
+
),
|
|
55615
|
+
onScroll: X[5] || (X[5] = //@ts-ignore
|
|
55616
|
+
(...Si) => g(Ge) && g(Ge)(...Si))
|
|
55617
55617
|
}, [
|
|
55618
55618
|
D(g(fi), {
|
|
55619
55619
|
id: "editor-panel",
|
|
55620
|
-
editor: g(
|
|
55621
|
-
class: We(["flex-1 flex-col relative break-all", oe.mode === g(
|
|
55620
|
+
editor: g(U),
|
|
55621
|
+
class: We(["flex-1 flex-col relative break-all", oe.mode === g(et).PLAIN_TEXT && "plain-text"])
|
|
55622
55622
|
}, null, 8, ["editor", "class"])
|
|
55623
55623
|
], 34), [
|
|
55624
55624
|
[ir, g(Me)]
|
|
@@ -55631,12 +55631,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55631
55631
|
_: 1
|
|
55632
55632
|
}, 8, ["class", "style", "onResize"])
|
|
55633
55633
|
], 6)) : Se("", !0),
|
|
55634
|
-
(Pt = g(
|
|
55634
|
+
(Pt = g(U)) != null && Pt.storage.superText && g(ce) ? (M(), $(bae, {
|
|
55635
55635
|
key: 1,
|
|
55636
55636
|
open: g(he),
|
|
55637
|
-
editor: g(
|
|
55637
|
+
editor: g(U),
|
|
55638
55638
|
"bottom-sheet-component": g(ce),
|
|
55639
|
-
onClose: X[6] || (X[6] = (Qn) => g(
|
|
55639
|
+
onClose: X[6] || (X[6] = (Qn) => g(U).commands.toggleSuperInputMoblie()),
|
|
55640
55640
|
onSave: ot
|
|
55641
55641
|
}, null, 8, ["open", "editor", "bottom-sheet-component"])) : Se("", !0),
|
|
55642
55642
|
(It = g(be)) != null && It.storage.configPlan ? (M(), $(MT, {
|
|
@@ -55654,7 +55654,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55654
55654
|
}), _le = /* @__PURE__ */ j({
|
|
55655
55655
|
__name: "ArticleEditor",
|
|
55656
55656
|
props: {
|
|
55657
|
-
mode: { default:
|
|
55657
|
+
mode: { default: et.STRAIGHT },
|
|
55658
55658
|
isMobile: { type: Boolean },
|
|
55659
55659
|
superTextArea: {},
|
|
55660
55660
|
modelValue: {},
|
|
@@ -55716,7 +55716,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55716
55716
|
}), Sle = /* @__PURE__ */ j({
|
|
55717
55717
|
__name: "DigitalNewsEditor",
|
|
55718
55718
|
props: {
|
|
55719
|
-
mode: { default:
|
|
55719
|
+
mode: { default: et.EDITOR },
|
|
55720
55720
|
isMobile: { type: Boolean },
|
|
55721
55721
|
superTextArea: {},
|
|
55722
55722
|
modelValue: {},
|
|
@@ -55789,8 +55789,8 @@ var A7 = { exports: {} };
|
|
|
55789
55789
|
return /^\s+$/.test(K);
|
|
55790
55790
|
}
|
|
55791
55791
|
function r(K) {
|
|
55792
|
-
var
|
|
55793
|
-
return !!
|
|
55792
|
+
var V = K.match(/^\s*<([^!>][^>]*)>\s*$/);
|
|
55793
|
+
return !!V && V[1].trim().split(" ")[0];
|
|
55794
55794
|
}
|
|
55795
55795
|
function i(K) {
|
|
55796
55796
|
return !r(K);
|
|
@@ -55803,18 +55803,18 @@ var A7 = { exports: {} };
|
|
|
55803
55803
|
}
|
|
55804
55804
|
var l, u = new RegExp("^<(iframe|object|math|svg|script|video|head|style|a)");
|
|
55805
55805
|
function d(K) {
|
|
55806
|
-
var
|
|
55807
|
-
return
|
|
55806
|
+
var V = l.exec(K);
|
|
55807
|
+
return V && V[1];
|
|
55808
55808
|
}
|
|
55809
|
-
function f(K,
|
|
55810
|
-
return K.substring(K.length -
|
|
55809
|
+
function f(K, V) {
|
|
55810
|
+
return K.substring(K.length - V.length - 2) === "</" + V;
|
|
55811
55811
|
}
|
|
55812
55812
|
function h(K) {
|
|
55813
55813
|
return /^\s*<[^>]+\/>\s*$/.test(K);
|
|
55814
55814
|
}
|
|
55815
55815
|
function m(K) {
|
|
55816
|
-
var
|
|
55817
|
-
return
|
|
55816
|
+
var V = /^<img[\s>]/.test(K);
|
|
55817
|
+
return V || i(K) || d(K) || h(K);
|
|
55818
55818
|
}
|
|
55819
55819
|
function b(K) {
|
|
55820
55820
|
return {
|
|
@@ -55822,39 +55822,39 @@ var A7 = { exports: {} };
|
|
|
55822
55822
|
key: x(K)
|
|
55823
55823
|
};
|
|
55824
55824
|
}
|
|
55825
|
-
function y(K,
|
|
55826
|
-
this.segment = J, this.length = B, this.startInBefore = K + J.beforeIndex, this.startInAfter =
|
|
55825
|
+
function y(K, V, B, J) {
|
|
55826
|
+
this.segment = J, this.length = B, this.startInBefore = K + J.beforeIndex, this.startInAfter = V + J.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = K, this.segmentStartInAfter = V, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
|
|
55827
55827
|
}
|
|
55828
55828
|
function w(K) {
|
|
55829
|
-
for (var
|
|
55829
|
+
for (var V = "char", B = "", J = "", re = [], ne = 0; ne < K.length; ne++) {
|
|
55830
55830
|
var he = K[ne];
|
|
55831
|
-
switch (
|
|
55831
|
+
switch (V) {
|
|
55832
55832
|
case "tag":
|
|
55833
55833
|
var Re = d(B);
|
|
55834
|
-
Re ? (
|
|
55834
|
+
Re ? (V = "atomic_tag", J = Re, B += he) : s(B) ? (V = "html_comment", B += he) : e(he) ? (B += ">", re.push(b(B)), B = "", o(he) ? V = "whitespace" : V = "char") : B += he;
|
|
55835
55835
|
break;
|
|
55836
55836
|
case "atomic_tag":
|
|
55837
|
-
e(he) && f(B, J) ? (B += ">", re.push(b(B)), B = "", J = "",
|
|
55837
|
+
e(he) && f(B, J) ? (B += ">", re.push(b(B)), B = "", J = "", V = "char") : B += he;
|
|
55838
55838
|
break;
|
|
55839
55839
|
case "html_comment":
|
|
55840
|
-
B += he, a(B) && (B = "",
|
|
55840
|
+
B += he, a(B) && (B = "", V = "char");
|
|
55841
55841
|
break;
|
|
55842
55842
|
case "char":
|
|
55843
|
-
n(he) ? (B && re.push(b(B)), B = "<",
|
|
55843
|
+
n(he) ? (B && re.push(b(B)), B = "<", V = "tag") : /\s/.test(he) ? (B && re.push(b(B)), B = he, V = "whitespace") : /[\w\d\#@]/.test(he) ? B += he : /&/.test(he) ? (B && re.push(b(B)), B = he) : (B += he, re.push(b(B)), B = "");
|
|
55844
55844
|
break;
|
|
55845
55845
|
case "whitespace":
|
|
55846
|
-
n(he) ? (B && re.push(b(B)), B = "<",
|
|
55846
|
+
n(he) ? (B && re.push(b(B)), B = "<", V = "tag") : o(he) ? B += he : (B && re.push(b(B)), B = he, V = "char");
|
|
55847
55847
|
break;
|
|
55848
55848
|
default:
|
|
55849
|
-
throw new Error("Unknown mode " +
|
|
55849
|
+
throw new Error("Unknown mode " + V);
|
|
55850
55850
|
}
|
|
55851
55851
|
}
|
|
55852
55852
|
return B && re.push(b(B)), re;
|
|
55853
55853
|
}
|
|
55854
55854
|
function x(K) {
|
|
55855
|
-
var
|
|
55856
|
-
if (
|
|
55857
|
-
return '<img src="' +
|
|
55855
|
+
var V = /^<img.*src=['"]([^"']*)['"].*>$/.exec(K);
|
|
55856
|
+
if (V)
|
|
55857
|
+
return '<img src="' + V[1] + '">';
|
|
55858
55858
|
var B = /^<a.*href=['"]([^"']*)['"]/.exec(K);
|
|
55859
55859
|
if (B)
|
|
55860
55860
|
return '<a href="' + B[1] + '"></a>';
|
|
@@ -55876,12 +55876,12 @@ var A7 = { exports: {} };
|
|
|
55876
55876
|
return De ? "<" + De[1].toLowerCase() + ">" : K && K.replace(/(\s+| | )/g, " ");
|
|
55877
55877
|
}
|
|
55878
55878
|
function _(K) {
|
|
55879
|
-
return K.reduce(function(
|
|
55880
|
-
return
|
|
55879
|
+
return K.reduce(function(V, B, J) {
|
|
55880
|
+
return V[B.key] ? V[B.key].push(J) : V[B.key] = [J], V;
|
|
55881
55881
|
}, /* @__PURE__ */ Object.create(null));
|
|
55882
55882
|
}
|
|
55883
|
-
function E(K,
|
|
55884
|
-
return
|
|
55883
|
+
function E(K, V) {
|
|
55884
|
+
return V.endInBefore < K.startInBefore && V.endInAfter < K.startInAfter ? -1 : V.startInBefore > K.endInBefore && V.startInAfter > K.endInAfter ? 1 : 0;
|
|
55885
55885
|
}
|
|
55886
55886
|
function C() {
|
|
55887
55887
|
this._root = null;
|
|
@@ -55893,7 +55893,7 @@ var A7 = { exports: {} };
|
|
|
55893
55893
|
* @param {Match} value The match to add to the binary search tree.
|
|
55894
55894
|
*/
|
|
55895
55895
|
add: function(K) {
|
|
55896
|
-
var
|
|
55896
|
+
var V = {
|
|
55897
55897
|
value: K,
|
|
55898
55898
|
left: null,
|
|
55899
55899
|
right: null
|
|
@@ -55905,21 +55905,21 @@ var A7 = { exports: {} };
|
|
|
55905
55905
|
if (B.left)
|
|
55906
55906
|
B = B.left;
|
|
55907
55907
|
else {
|
|
55908
|
-
B.left =
|
|
55908
|
+
B.left = V;
|
|
55909
55909
|
break;
|
|
55910
55910
|
}
|
|
55911
55911
|
else if (J === 1)
|
|
55912
55912
|
if (B.right)
|
|
55913
55913
|
B = B.right;
|
|
55914
55914
|
else {
|
|
55915
|
-
B.right =
|
|
55915
|
+
B.right = V;
|
|
55916
55916
|
break;
|
|
55917
55917
|
}
|
|
55918
55918
|
else
|
|
55919
55919
|
break;
|
|
55920
55920
|
}
|
|
55921
55921
|
else
|
|
55922
|
-
this._root =
|
|
55922
|
+
this._root = V;
|
|
55923
55923
|
},
|
|
55924
55924
|
/**
|
|
55925
55925
|
* Converts the binary search tree into an array using an in-order traversal.
|
|
@@ -55927,18 +55927,18 @@ var A7 = { exports: {} };
|
|
|
55927
55927
|
* @return {Array.<Match>} An array containing the matches in the binary search tree.
|
|
55928
55928
|
*/
|
|
55929
55929
|
toArray: function() {
|
|
55930
|
-
function K(
|
|
55931
|
-
return
|
|
55930
|
+
function K(V, B) {
|
|
55931
|
+
return V && (K(V.left, B), B.push(V.value), K(V.right, B)), B;
|
|
55932
55932
|
}
|
|
55933
55933
|
return K(this._root, []);
|
|
55934
55934
|
}
|
|
55935
55935
|
};
|
|
55936
55936
|
function T(K) {
|
|
55937
|
-
for (var
|
|
55938
|
-
var he = !1, Re =
|
|
55937
|
+
for (var V = K.beforeTokens, B = K.afterMap, J = null, re = null, ne = 0; ne < V.length; ne++) {
|
|
55938
|
+
var he = !1, Re = V.length - ne;
|
|
55939
55939
|
if (re && Re < re.length)
|
|
55940
55940
|
break;
|
|
55941
|
-
var De =
|
|
55941
|
+
var De = V[ne];
|
|
55942
55942
|
if (De.key === " ") {
|
|
55943
55943
|
J = ne;
|
|
55944
55944
|
continue;
|
|
@@ -55958,37 +55958,37 @@ var A7 = { exports: {} };
|
|
|
55958
55958
|
}
|
|
55959
55959
|
return re;
|
|
55960
55960
|
}
|
|
55961
|
-
function A(K,
|
|
55962
|
-
var ne = K.beforeTokens, he = K.afterTokens, Re =
|
|
55961
|
+
function A(K, V, B, J, re) {
|
|
55962
|
+
var ne = K.beforeTokens, he = K.afterTokens, Re = V + J, De = B + J;
|
|
55963
55963
|
if (!(Re >= ne.length || De >= he.length)) {
|
|
55964
55964
|
if (J) {
|
|
55965
55965
|
var ot = ne[Re].key, Ve = he[De].key;
|
|
55966
55966
|
if (ot !== Ve)
|
|
55967
55967
|
return;
|
|
55968
55968
|
}
|
|
55969
|
-
for (var Ye = !0, se = 1, ce =
|
|
55969
|
+
for (var Ye = !0, se = 1, ce = V + se, we = B + se; Ye && ce < ne.length && we < he.length; ) {
|
|
55970
55970
|
var xe = ne[ce].key, Ae = he[we].key;
|
|
55971
|
-
xe === Ae ? (se++, ce =
|
|
55971
|
+
xe === Ae ? (se++, ce = V + se, we = B + se) : Ye = !1;
|
|
55972
55972
|
}
|
|
55973
|
-
if (re &&
|
|
55974
|
-
var ae = ne[
|
|
55975
|
-
ae === " " && Me === " " && (
|
|
55973
|
+
if (re && V > 0 && B > 0) {
|
|
55974
|
+
var ae = ne[V - 1].key, Me = he[B - 1].key;
|
|
55975
|
+
ae === " " && Me === " " && (V--, B--, se++);
|
|
55976
55976
|
}
|
|
55977
|
-
return new y(
|
|
55977
|
+
return new y(V, B, se, K);
|
|
55978
55978
|
}
|
|
55979
55979
|
}
|
|
55980
|
-
function k(K,
|
|
55980
|
+
function k(K, V, B, J) {
|
|
55981
55981
|
return {
|
|
55982
55982
|
beforeTokens: K,
|
|
55983
|
-
afterTokens:
|
|
55983
|
+
afterTokens: V,
|
|
55984
55984
|
beforeMap: _(K),
|
|
55985
|
-
afterMap: _(
|
|
55985
|
+
afterMap: _(V),
|
|
55986
55986
|
beforeIndex: B,
|
|
55987
55987
|
afterIndex: J
|
|
55988
55988
|
};
|
|
55989
55989
|
}
|
|
55990
55990
|
function F(K) {
|
|
55991
|
-
for (var
|
|
55991
|
+
for (var V = new C(), B, J = [K]; J.length; )
|
|
55992
55992
|
if (K = J.pop(), B = T(K), B && B.length) {
|
|
55993
55993
|
if (B.segmentStartInBefore > 0 && B.segmentStartInAfter > 0) {
|
|
55994
55994
|
var re = K.beforeTokens.slice(
|
|
@@ -56008,15 +56008,15 @@ var A7 = { exports: {} };
|
|
|
56008
56008
|
Re,
|
|
56009
56009
|
De,
|
|
56010
56010
|
ot
|
|
56011
|
-
)),
|
|
56011
|
+
)), V.add(B);
|
|
56012
56012
|
}
|
|
56013
|
-
return
|
|
56013
|
+
return V.toArray();
|
|
56014
56014
|
}
|
|
56015
|
-
function P(K,
|
|
56015
|
+
function P(K, V) {
|
|
56016
56016
|
if (!K) throw new Error("Missing beforeTokens");
|
|
56017
|
-
if (!
|
|
56018
|
-
var B = 0, J = 0, re = [], ne = k(K,
|
|
56019
|
-
he.push(new y(K.length,
|
|
56017
|
+
if (!V) throw new Error("Missing afterTokens");
|
|
56018
|
+
var B = 0, J = 0, re = [], ne = k(K, V, 0, 0), he = F(ne);
|
|
56019
|
+
he.push(new y(K.length, V.length, 0, ne));
|
|
56020
56020
|
for (var Re = 0; Re < he.length; Re++) {
|
|
56021
56021
|
var De = he[Re], ot = "none";
|
|
56022
56022
|
B === De.startInBefore ? J !== De.startInAfter && (ot = "insert") : (ot = "delete", J !== De.startInAfter && (ot = "replace")), ot !== "none" && re.push({
|
|
@@ -56044,21 +56044,21 @@ var A7 = { exports: {} };
|
|
|
56044
56044
|
return Ve;
|
|
56045
56045
|
}
|
|
56046
56046
|
function R(K) {
|
|
56047
|
-
this.tokens = K, this.notes = K.reduce(function(
|
|
56048
|
-
|
|
56047
|
+
this.tokens = K, this.notes = K.reduce(function(V, B, J) {
|
|
56048
|
+
V.notes.push({
|
|
56049
56049
|
isWrappable: m(B),
|
|
56050
56050
|
insertedTag: !1
|
|
56051
56051
|
});
|
|
56052
|
-
var re = !h(B) && r(B), ne =
|
|
56053
|
-
return re && (ne && "/" + ne.tag === re ? (
|
|
56052
|
+
var re = !h(B) && r(B), ne = V.tagStack[V.tagStack.length - 1];
|
|
56053
|
+
return re && (ne && "/" + ne.tag === re ? (V.notes[ne.position].insertedTag = !0, V.tagStack.pop()) : V.tagStack.push({
|
|
56054
56054
|
tag: re,
|
|
56055
56055
|
position: J
|
|
56056
|
-
})),
|
|
56056
|
+
})), V;
|
|
56057
56057
|
}, { notes: [], tagStack: [] }).notes;
|
|
56058
56058
|
}
|
|
56059
|
-
R.prototype.combine = function(K,
|
|
56059
|
+
R.prototype.combine = function(K, V) {
|
|
56060
56060
|
var B = this.notes, J = this.tokens.slice(), re = J.reduce(function(ne, he, Re) {
|
|
56061
|
-
B[Re].insertedTag && (J[Re] =
|
|
56061
|
+
B[Re].insertedTag && (J[Re] = V(J[Re])), ne.status === null && (ne.status = B[Re].isWrappable);
|
|
56062
56062
|
var De = B[Re].isWrappable;
|
|
56063
56063
|
return De !== ne.status && (ne.list.push({
|
|
56064
56064
|
isWrappable: ne.status,
|
|
@@ -56070,8 +56070,8 @@ var A7 = { exports: {} };
|
|
|
56070
56070
|
}, { list: [], status: null, lastIndex: 0 }).list;
|
|
56071
56071
|
return re.map(K).join("");
|
|
56072
56072
|
};
|
|
56073
|
-
function Q(K,
|
|
56074
|
-
var ne = new R(
|
|
56073
|
+
function Q(K, V, B, J, re) {
|
|
56074
|
+
var ne = new R(V);
|
|
56075
56075
|
J = J ? J + "-" : "";
|
|
56076
56076
|
var he = " data-" + J + 'operation-index="' + B + '"';
|
|
56077
56077
|
return re && (he += ' class="' + re + '"'), ne.combine(function(Re) {
|
|
@@ -56087,46 +56087,46 @@ var A7 = { exports: {} };
|
|
|
56087
56087
|
return De += " data-" + J + 'operation-index="' + B + '"', Re.replace(/>\s*$/, De + "$&");
|
|
56088
56088
|
});
|
|
56089
56089
|
}
|
|
56090
|
-
var
|
|
56091
|
-
equal: function(K,
|
|
56090
|
+
var U = {
|
|
56091
|
+
equal: function(K, V, B, J, re, ne) {
|
|
56092
56092
|
var he = B.slice(K.startInAfter, K.endInAfter + 1);
|
|
56093
56093
|
return he.reduce(function(Re, De) {
|
|
56094
56094
|
return Re + De.string;
|
|
56095
56095
|
}, "");
|
|
56096
56096
|
},
|
|
56097
|
-
insert: function(K,
|
|
56097
|
+
insert: function(K, V, B, J, re, ne) {
|
|
56098
56098
|
var he = B.slice(K.startInAfter, K.endInAfter + 1), Re = he.map(function(De) {
|
|
56099
56099
|
return De.string;
|
|
56100
56100
|
});
|
|
56101
56101
|
return Q("ins", Re, J, re, ne);
|
|
56102
56102
|
},
|
|
56103
|
-
delete: function(K,
|
|
56104
|
-
var he =
|
|
56103
|
+
delete: function(K, V, B, J, re, ne) {
|
|
56104
|
+
var he = V.slice(K.startInBefore, K.endInBefore + 1), Re = he.map(function(De) {
|
|
56105
56105
|
return De.string;
|
|
56106
56106
|
});
|
|
56107
56107
|
return Q("del", Re, J, re, ne);
|
|
56108
56108
|
},
|
|
56109
56109
|
replace: function() {
|
|
56110
|
-
return
|
|
56110
|
+
return U.delete.apply(null, arguments) + U.insert.apply(null, arguments);
|
|
56111
56111
|
}
|
|
56112
56112
|
};
|
|
56113
|
-
function ue(K,
|
|
56113
|
+
function ue(K, V, B, J, re) {
|
|
56114
56114
|
return B.reduce(function(ne, he, Re) {
|
|
56115
|
-
return ne +
|
|
56115
|
+
return ne + U[he.action](
|
|
56116
56116
|
he,
|
|
56117
56117
|
K,
|
|
56118
|
-
|
|
56118
|
+
V,
|
|
56119
56119
|
Re,
|
|
56120
56120
|
J,
|
|
56121
56121
|
re
|
|
56122
56122
|
);
|
|
56123
56123
|
}, "");
|
|
56124
56124
|
}
|
|
56125
|
-
function be(K,
|
|
56126
|
-
if (K ===
|
|
56127
|
-
re ? l = new RegExp("^<(" + re.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, K = w(K),
|
|
56128
|
-
var ne = P(K,
|
|
56129
|
-
return ue(K,
|
|
56125
|
+
function be(K, V, B, J, re) {
|
|
56126
|
+
if (K === V) return K;
|
|
56127
|
+
re ? l = new RegExp("^<(" + re.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, K = w(K), V = w(V);
|
|
56128
|
+
var ne = P(K, V);
|
|
56129
|
+
return ue(K, V, ne, J, B);
|
|
56130
56130
|
}
|
|
56131
56131
|
be.htmlToTokens = w, be.findMatchingBlocks = F, F.findBestMatch = T, F.createMap = _, F.createToken = b, F.createSegment = k, F.getKeyForToken = x, be.calculateOperations = P, be.renderOperations = ue, t !== null ? t.exports = be : this.htmldiff = be;
|
|
56132
56132
|
}).call(Rl);
|
|
@@ -56177,7 +56177,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56177
56177
|
class: "flex flex-col"
|
|
56178
56178
|
}, {
|
|
56179
56179
|
default: N(() => {
|
|
56180
|
-
var x, _, E, C, T, A, k, F, P, R
|
|
56180
|
+
var x, _, E, C, T, A, k, F, P, R;
|
|
56181
56181
|
return [
|
|
56182
56182
|
(_ = (x = b.originalData) == null ? void 0 : x.titleBar) != null && _.title ? (M(), pe("div", Eae, [
|
|
56183
56183
|
ee("div", _ae, [
|
|
@@ -56202,18 +56202,18 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56202
56202
|
)
|
|
56203
56203
|
),
|
|
56204
56204
|
onScroll: y[0] || (y[0] = //@ts-ignore
|
|
56205
|
-
(...
|
|
56205
|
+
(...Q) => g(f) && g(f)(...Q))
|
|
56206
56206
|
}, [
|
|
56207
56207
|
D(xc, {
|
|
56208
56208
|
"editor-class": "h-full",
|
|
56209
|
-
mode:
|
|
56209
|
+
mode: g(et).REPORT,
|
|
56210
56210
|
disabled: "",
|
|
56211
56211
|
"hide-toolbar": "",
|
|
56212
56212
|
extensions: b.extensions,
|
|
56213
|
-
"field-name-comment": (
|
|
56214
|
-
"field-name-content": (
|
|
56215
|
-
comment: (
|
|
56216
|
-
"model-value": (
|
|
56213
|
+
"field-name-comment": (k = b.originalData) == null ? void 0 : k.fieldNameComment,
|
|
56214
|
+
"field-name-content": (F = b.originalData) == null ? void 0 : F.fieldNameContent,
|
|
56215
|
+
comment: (P = b.originalData) == null ? void 0 : P.comment,
|
|
56216
|
+
"model-value": (R = b.originalData) == null ? void 0 : R.content
|
|
56217
56217
|
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
|
|
56218
56218
|
], 34), [
|
|
56219
56219
|
[ir, g(i)]
|
|
@@ -56224,19 +56224,19 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56224
56224
|
}, 8, ["size", "min-size"]),
|
|
56225
56225
|
g(n) ? (M(), $(g(Ra), { key: 0 }, {
|
|
56226
56226
|
default: N(() => {
|
|
56227
|
-
var x, _, E, C
|
|
56227
|
+
var x, _, E, C;
|
|
56228
56228
|
return [
|
|
56229
56229
|
ee("div", Mae, [
|
|
56230
56230
|
D(xc, {
|
|
56231
56231
|
"editor-class": "h-full",
|
|
56232
|
-
mode:
|
|
56232
|
+
mode: g(et).REPORT,
|
|
56233
56233
|
disabled: "",
|
|
56234
56234
|
"hide-toolbar": "",
|
|
56235
56235
|
extensions: b.extensions,
|
|
56236
|
-
"field-name-comment": (
|
|
56237
|
-
"field-name-content": (
|
|
56238
|
-
comment: (
|
|
56239
|
-
"model-value": (
|
|
56236
|
+
"field-name-comment": (x = b.changedData) == null ? void 0 : x.fieldNameComment,
|
|
56237
|
+
"field-name-content": (_ = b.changedData) == null ? void 0 : _.fieldNameContent,
|
|
56238
|
+
comment: (E = b.changedData) == null ? void 0 : E.comment,
|
|
56239
|
+
"model-value": (C = b.changedData) == null ? void 0 : C.content
|
|
56240
56240
|
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
|
|
56241
56241
|
])
|
|
56242
56242
|
];
|
|
@@ -56249,7 +56249,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56249
56249
|
class: "flex flex-col"
|
|
56250
56250
|
}, {
|
|
56251
56251
|
default: N(() => {
|
|
56252
|
-
var x, _, E, C, T, A, k, F
|
|
56252
|
+
var x, _, E, C, T, A, k, F;
|
|
56253
56253
|
return [
|
|
56254
56254
|
(_ = (x = b.changedData) == null ? void 0 : x.titleBar) != null && _.title ? (M(), pe("div", Nae, [
|
|
56255
56255
|
ee("div", Iae, [
|
|
@@ -56274,16 +56274,16 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56274
56274
|
)
|
|
56275
56275
|
),
|
|
56276
56276
|
onScroll: y[1] || (y[1] = //@ts-ignore
|
|
56277
|
-
(...
|
|
56277
|
+
(...P) => g(m) && g(m)(...P))
|
|
56278
56278
|
}, [
|
|
56279
56279
|
D(xc, {
|
|
56280
56280
|
"editor-class": "h-full",
|
|
56281
|
-
mode:
|
|
56281
|
+
mode: g(et).REPORT,
|
|
56282
56282
|
disabled: "",
|
|
56283
56283
|
"hide-toolbar": "",
|
|
56284
56284
|
extensions: b.extensions,
|
|
56285
|
-
"field-name-comment": (
|
|
56286
|
-
"field-name-content": (
|
|
56285
|
+
"field-name-comment": (k = b.changedData) == null ? void 0 : k.fieldNameComment,
|
|
56286
|
+
"field-name-content": (F = b.changedData) == null ? void 0 : F.fieldNameContent,
|
|
56287
56287
|
comment: g(o).comment,
|
|
56288
56288
|
"model-value": g(o).content
|
|
56289
56289
|
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
|
|
@@ -56300,7 +56300,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56300
56300
|
], 2);
|
|
56301
56301
|
};
|
|
56302
56302
|
}
|
|
56303
|
-
}), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-
|
|
56303
|
+
}), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-6fac59e6"]]), O7 = (t) => {
|
|
56304
56304
|
if (!t) return -1;
|
|
56305
56305
|
const { from: e } = t.state.selection;
|
|
56306
56306
|
let n = 0;
|
|
@@ -56360,7 +56360,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56360
56360
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
56361
56361
|
setup(t, { expose: e, emit: n }) {
|
|
56362
56362
|
const o = t, r = n;
|
|
56363
|
-
Y(() => o.mode ===
|
|
56363
|
+
Y(() => o.mode === et.EDITOR);
|
|
56364
56364
|
const i = Ao(Ko.RENDER_SUPER_TEXT), s = uo(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = H(!1);
|
|
56365
56365
|
fn("isEditable", f);
|
|
56366
56366
|
const h = H(i8(o.modelValue));
|
|
@@ -56551,22 +56551,22 @@ const kle = /* @__PURE__ */ j({
|
|
|
56551
56551
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
56552
56552
|
setup(t, { expose: e, emit: n }) {
|
|
56553
56553
|
const o = t, r = n;
|
|
56554
|
-
fn("isMobile", !0), Y(() => o.mode ===
|
|
56554
|
+
fn("isMobile", !0), Y(() => o.mode === et.EDITOR);
|
|
56555
56555
|
const i = Ao(Ko.INCREASE_DECREASE_FONTSIZE);
|
|
56556
56556
|
nd();
|
|
56557
56557
|
const s = uo(), { state: a, isFullscreen: l, isReady: u, editor: d, updateEditorState: f, checkSpellStore: h } = s, m = H(!1);
|
|
56558
56558
|
fn("isEditable", m);
|
|
56559
56559
|
const b = H(void 0), y = H(), w = Y(
|
|
56560
56560
|
() => [...a.extensions, ...xt.differenceBy(o.extensions, a.extensions, "name")].map(
|
|
56561
|
-
(
|
|
56561
|
+
(V, B) => V.configure({ sort: B })
|
|
56562
56562
|
)
|
|
56563
56563
|
), x = H(o.fontSizeDefault), _ = H(o.fontFamilyDefault);
|
|
56564
56564
|
fn("fontSize", x), fn("fontFamily", _);
|
|
56565
56565
|
const E = Y(() => ({
|
|
56566
56566
|
fontFamily: _.value,
|
|
56567
56567
|
fontSize: x.value
|
|
56568
|
-
})), C = H(), T = (
|
|
56569
|
-
const B = parseInt(x.value || "12px"), J =
|
|
56568
|
+
})), C = H(), T = (V) => {
|
|
56569
|
+
const B = parseInt(x.value || "12px"), J = V ? B + 2 : B - 2;
|
|
56570
56570
|
x.value = J + "px";
|
|
56571
56571
|
};
|
|
56572
56572
|
du(() => {
|
|
@@ -56584,9 +56584,9 @@ const kle = /* @__PURE__ */ j({
|
|
|
56584
56584
|
width: o.maxWidth ? "100%" : void 0,
|
|
56585
56585
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
56586
56586
|
}));
|
|
56587
|
-
function k(
|
|
56587
|
+
function k(V) {
|
|
56588
56588
|
if (o.disabled || o.readonly) return;
|
|
56589
|
-
const B = O7(
|
|
56589
|
+
const B = O7(V);
|
|
56590
56590
|
b.value = B;
|
|
56591
56591
|
}
|
|
56592
56592
|
function F() {
|
|
@@ -56598,13 +56598,13 @@ const kle = /* @__PURE__ */ j({
|
|
|
56598
56598
|
enableInputRules: !1,
|
|
56599
56599
|
// disable Markdown when typing
|
|
56600
56600
|
content: bo(o.modelValue, o.disabled, o.mode),
|
|
56601
|
-
onCreate: ({ editor:
|
|
56602
|
-
f(
|
|
56601
|
+
onCreate: ({ editor: V }) => {
|
|
56602
|
+
f(V);
|
|
56603
56603
|
},
|
|
56604
|
-
onUpdate: xt.throttle(({ editor:
|
|
56604
|
+
onUpdate: xt.throttle(({ editor: V }) => {
|
|
56605
56605
|
u.value = !0;
|
|
56606
|
-
const B = be(
|
|
56607
|
-
r("update:modelValue", B), r("change", { editor:
|
|
56606
|
+
const B = be(V, o.output);
|
|
56607
|
+
r("update:modelValue", B), r("change", { editor: V, output: B }), f(V);
|
|
56608
56608
|
}, vi),
|
|
56609
56609
|
extensions: xt.uniqBy(xt.reverse(g(w)), "name"),
|
|
56610
56610
|
editable: m.value,
|
|
@@ -56621,40 +56621,40 @@ const kle = /* @__PURE__ */ j({
|
|
|
56621
56621
|
pt(() => {
|
|
56622
56622
|
Q.value = P;
|
|
56623
56623
|
});
|
|
56624
|
-
const
|
|
56624
|
+
const U = ({ lineIndex: V }) => {
|
|
56625
56625
|
var J;
|
|
56626
|
-
P && Wx({ lineIndex:
|
|
56626
|
+
P && Wx({ lineIndex: V, editor: P });
|
|
56627
56627
|
const B = (J = y.value) == null ? void 0 : J.editor;
|
|
56628
|
-
B && Wx({ lineIndex:
|
|
56628
|
+
B && Wx({ lineIndex: V, editor: B });
|
|
56629
56629
|
};
|
|
56630
56630
|
Be(
|
|
56631
56631
|
() => b.value,
|
|
56632
|
-
(
|
|
56633
|
-
r("lineFocus", { lineIndex:
|
|
56632
|
+
(V) => {
|
|
56633
|
+
r("lineFocus", { lineIndex: V }), U({ lineIndex: V });
|
|
56634
56634
|
},
|
|
56635
56635
|
{ immediate: !0 }
|
|
56636
56636
|
);
|
|
56637
|
-
function ue(
|
|
56637
|
+
function ue(V) {
|
|
56638
56638
|
Q.value = P;
|
|
56639
56639
|
}
|
|
56640
|
-
function be(
|
|
56641
|
-
if (!
|
|
56642
|
-
if (
|
|
56640
|
+
function be(V, B) {
|
|
56641
|
+
if (!V) return "";
|
|
56642
|
+
if (V.isEmpty)
|
|
56643
56643
|
return B === "json" ? {} : "";
|
|
56644
56644
|
switch (B) {
|
|
56645
56645
|
case "html":
|
|
56646
|
-
return
|
|
56646
|
+
return V.getHTML();
|
|
56647
56647
|
case "json":
|
|
56648
|
-
return
|
|
56648
|
+
return V.getJSON();
|
|
56649
56649
|
case "text":
|
|
56650
|
-
return
|
|
56650
|
+
return V.getText({ blockSeparator: `
|
|
56651
56651
|
` });
|
|
56652
56652
|
default:
|
|
56653
56653
|
return "";
|
|
56654
56654
|
}
|
|
56655
56655
|
}
|
|
56656
|
-
function K(
|
|
56657
|
-
return
|
|
56656
|
+
function K(V) {
|
|
56657
|
+
return V.every((B) => P == null ? void 0 : P.extensionManager.extensions.find((J) => J.name === B));
|
|
56658
56658
|
}
|
|
56659
56659
|
return Be(
|
|
56660
56660
|
() => h.languages,
|
|
@@ -56663,28 +56663,28 @@ const kle = /* @__PURE__ */ j({
|
|
|
56663
56663
|
}
|
|
56664
56664
|
), Be(
|
|
56665
56665
|
() => o.modelValue,
|
|
56666
|
-
(
|
|
56667
|
-
if (!P || xt.isEqual(be(P, o.output),
|
|
56666
|
+
(V) => {
|
|
56667
|
+
if (!P || xt.isEqual(be(P, o.output), V)) return;
|
|
56668
56668
|
const { from: B, to: J } = P.state.selection;
|
|
56669
|
-
P.commands.setTextSelection({ from: B, to: J }), P.commands.setContent(bo(
|
|
56669
|
+
P.commands.setTextSelection({ from: B, to: J }), P.commands.setContent(bo(V, o.disabled, o.mode), !1);
|
|
56670
56670
|
},
|
|
56671
56671
|
{ deep: !0 }
|
|
56672
56672
|
), Be(
|
|
56673
56673
|
() => d.value,
|
|
56674
56674
|
() => {
|
|
56675
|
-
d.value && d.value.on("selectionUpdate", ({ editor:
|
|
56676
|
-
r("changed:selection", { editor:
|
|
56675
|
+
d.value && d.value.on("selectionUpdate", ({ editor: V }) => {
|
|
56676
|
+
r("changed:selection", { editor: V });
|
|
56677
56677
|
});
|
|
56678
56678
|
}
|
|
56679
56679
|
), zn(() => {
|
|
56680
|
-
var
|
|
56681
|
-
P == null || P.destroy(), (
|
|
56680
|
+
var V;
|
|
56681
|
+
P == null || P.destroy(), (V = Q.value) == null || V.destroy();
|
|
56682
56682
|
}), bd(cd.SAVE, () => {
|
|
56683
56683
|
localStorage.setItem("content", be(P, "html"));
|
|
56684
56684
|
}), pt(() => {
|
|
56685
|
-
var
|
|
56686
|
-
(
|
|
56687
|
-
}), E0(P), e({ editor: P }), (
|
|
56685
|
+
var V, B;
|
|
56686
|
+
(V = P == null ? void 0 : P.commands) != null && V.setIsEnableSuggestion && P.commands.setIsEnableSuggestion(!1), (B = P == null ? void 0 : P.commands) != null && B.setIsMobile && P.commands.setIsMobile(!0);
|
|
56687
|
+
}), E0(P), e({ editor: P }), (V, B) => {
|
|
56688
56688
|
const J = C0, re = x0, ne = w0, he = r0, Re = E7, De = ph;
|
|
56689
56689
|
return Q.value ? (M(), pe("div", {
|
|
56690
56690
|
key: 0,
|
|
@@ -56696,11 +56696,11 @@ const kle = /* @__PURE__ */ j({
|
|
|
56696
56696
|
g(He)(
|
|
56697
56697
|
"vdc-editor mobile relative w-full flex flex-col editor-line-number editor-line",
|
|
56698
56698
|
!o.height && "flex-1",
|
|
56699
|
-
|
|
56699
|
+
V.editorClass
|
|
56700
56700
|
)
|
|
56701
56701
|
)
|
|
56702
56702
|
}, [
|
|
56703
|
-
!
|
|
56703
|
+
!V.hideBubble && !V.disabled && m.value ? (M(), pe(nt, { key: 0 }, [
|
|
56704
56704
|
K([g(vd)]) ? (M(), $(J, {
|
|
56705
56705
|
key: 0,
|
|
56706
56706
|
editor: g(P)
|
|
@@ -56718,13 +56718,13 @@ const kle = /* @__PURE__ */ j({
|
|
|
56718
56718
|
editor: g(P)
|
|
56719
56719
|
}, null, 8, ["editor"])) : Se("", !0)
|
|
56720
56720
|
], 64)) : Se("", !0),
|
|
56721
|
-
|
|
56721
|
+
V.hideToolbar ? Se("", !0) : (M(), $(Re, {
|
|
56722
56722
|
key: 1,
|
|
56723
56723
|
editor: Q.value,
|
|
56724
|
-
mode:
|
|
56725
|
-
disabled:
|
|
56724
|
+
mode: V.mode,
|
|
56725
|
+
disabled: V.disabled,
|
|
56726
56726
|
class: "mb-[3px]",
|
|
56727
|
-
"custom-class-toolbar":
|
|
56727
|
+
"custom-class-toolbar": V.customClassToolbar,
|
|
56728
56728
|
"active-extensions": [Yc]
|
|
56729
56729
|
}, null, 8, ["editor", "mode", "disabled", "custom-class-toolbar", "active-extensions"])),
|
|
56730
56730
|
D(g(J2), {
|
|
@@ -56744,15 +56744,15 @@ const kle = /* @__PURE__ */ j({
|
|
|
56744
56744
|
class: We(
|
|
56745
56745
|
g(He)(
|
|
56746
56746
|
"flex-1 !overflow-y-auto scrollbar-hide basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56747
|
-
|
|
56747
|
+
V.contentClass
|
|
56748
56748
|
)
|
|
56749
56749
|
)
|
|
56750
56750
|
}, [
|
|
56751
|
-
(ot =
|
|
56751
|
+
(ot = V.fieldNameContent) != null && ot.label ? (M(), $(De, {
|
|
56752
56752
|
key: 0,
|
|
56753
|
-
"field-name":
|
|
56754
|
-
mode:
|
|
56755
|
-
disabled:
|
|
56753
|
+
"field-name": V.fieldNameContent,
|
|
56754
|
+
mode: V.mode,
|
|
56755
|
+
disabled: V.disabled,
|
|
56756
56756
|
class: "mb-1"
|
|
56757
56757
|
}, null, 8, ["field-name", "mode", "disabled"])) : Se("", !0),
|
|
56758
56758
|
D(g(fi), {
|
|
@@ -56775,21 +56775,21 @@ const kle = /* @__PURE__ */ j({
|
|
|
56775
56775
|
g(He)(
|
|
56776
56776
|
"flex-1 overflow-y-auto scrollbar-hide flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56777
56777
|
R.value && "border-ed-blue",
|
|
56778
|
-
|
|
56779
|
-
|
|
56778
|
+
V.disabled && "border-transparent",
|
|
56779
|
+
V.contentClass
|
|
56780
56780
|
)
|
|
56781
56781
|
)
|
|
56782
56782
|
}, [
|
|
56783
56783
|
D($ae, {
|
|
56784
56784
|
ref_key: "superEditorRef",
|
|
56785
56785
|
ref: y,
|
|
56786
|
-
mode:
|
|
56787
|
-
"field-name-super":
|
|
56788
|
-
extensions:
|
|
56789
|
-
"model-value":
|
|
56790
|
-
disabled:
|
|
56791
|
-
readonly:
|
|
56792
|
-
onLineFocus:
|
|
56786
|
+
mode: V.mode,
|
|
56787
|
+
"field-name-super": V.fieldNameSuper,
|
|
56788
|
+
extensions: V.extensions,
|
|
56789
|
+
"model-value": V.modelValue,
|
|
56790
|
+
disabled: V.disabled,
|
|
56791
|
+
readonly: V.readonly,
|
|
56792
|
+
onLineFocus: U
|
|
56793
56793
|
}, null, 8, ["mode", "field-name-super", "extensions", "model-value", "disabled", "readonly"])
|
|
56794
56794
|
], 2)
|
|
56795
56795
|
]),
|
|
@@ -57220,7 +57220,7 @@ export {
|
|
|
57220
57220
|
zae as B,
|
|
57221
57221
|
Lp as C,
|
|
57222
57222
|
Lt as D,
|
|
57223
|
-
|
|
57223
|
+
et as E,
|
|
57224
57224
|
Vae as F,
|
|
57225
57225
|
Kt as P,
|
|
57226
57226
|
$o as S,
|
|
@@ -57252,4 +57252,4 @@ export {
|
|
|
57252
57252
|
nle as y,
|
|
57253
57253
|
Yae as z
|
|
57254
57254
|
};
|
|
57255
|
-
//# sourceMappingURL=index-
|
|
57255
|
+
//# sourceMappingURL=index-Dzwpymcg.mjs.map
|