vdc-editor 0.1.192 → 0.1.193
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-DL0qXBWK.mjs → BulkSpellChecker-CbU_sVqs.mjs} +2 -2
- package/lib/{BulkSpellChecker-DL0qXBWK.mjs.map → BulkSpellChecker-CbU_sVqs.mjs.map} +1 -1
- package/lib/{index-BlIo9yWh.mjs → index-DTJg9eJF.mjs} +353 -350
- package/lib/{index-BlIo9yWh.mjs.map → index-DTJg9eJF.mjs.map} +1 -1
- package/lib/src/components/editor/CoreEditorMoblie.vue.d.ts +20 -0
- package/lib/src/components/editor/CoreEditorV2.vue.d.ts +20 -0
- package/lib/src/components/editor/EditorComment.vue.d.ts +20 -0
- package/lib/src/components/editor/EditorCommentMoblie.vue.d.ts +20 -0
- package/lib/src/components/editor/SuperViewMobileEditor.vue.d.ts +20 -0
- package/lib/src/components/editor/SuperViewMobileSuperEditor.vue.d.ts +20 -0
- package/lib/src/type.d.ts +4 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +11 -11
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -246,7 +246,7 @@ const hn = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
LR.test(t) && !DR.test(t)
|
|
248
248
|
), i5 = () => !1, qR = (t) => PR.test(t), KR = (t) => BR.test(t), GR = () => {
|
|
249
|
-
const t = hn("colors"), e = hn("spacing"), n = hn("blur"), o = hn("brightness"), r = hn("borderColor"), i = hn("borderRadius"), s = hn("borderSpacing"), a = hn("borderWidth"), l = hn("contrast"), u = hn("grayscale"), d = hn("hueRotate"), f = hn("invert"), h = hn("gap"), m = hn("gradientColorStops"), g = hn("gradientColorStopPositions"), y = hn("inset"), w = hn("margin"), x = hn("opacity"), _ = hn("padding"), C = hn("saturate"), E = hn("scale"), T = hn("sepia"), k = hn("skew"), A = hn("space"), F = hn("translate"), U = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", Tt, e], Q = () => [Tt, e], re = () => ["", Ii, bs], ve = () => ["auto", Pl, Tt], Y = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["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"],
|
|
249
|
+
const t = hn("colors"), e = hn("spacing"), n = hn("blur"), o = hn("brightness"), r = hn("borderColor"), i = hn("borderRadius"), s = hn("borderSpacing"), a = hn("borderWidth"), l = hn("contrast"), u = hn("grayscale"), d = hn("hueRotate"), f = hn("invert"), h = hn("gap"), m = hn("gradientColorStops"), g = hn("gradientColorStopPositions"), y = hn("inset"), w = hn("margin"), x = hn("opacity"), _ = hn("padding"), C = hn("saturate"), E = hn("scale"), T = hn("sepia"), k = hn("skew"), A = hn("space"), F = hn("translate"), U = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", Tt, e], Q = () => [Tt, e], re = () => ["", Ii, bs], ve = () => ["auto", Pl, Tt], Y = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], P = () => ["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"], ae = () => ["", "0", Tt], de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Pl, Tt];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -260,9 +260,9 @@ const hn = (t) => {
|
|
|
260
260
|
borderSpacing: Q(),
|
|
261
261
|
borderWidth: re(),
|
|
262
262
|
contrast: fe(),
|
|
263
|
-
grayscale:
|
|
263
|
+
grayscale: ae(),
|
|
264
264
|
hueRotate: fe(),
|
|
265
|
-
invert:
|
|
265
|
+
invert: ae(),
|
|
266
266
|
gap: Q(),
|
|
267
267
|
gradientColorStops: [t],
|
|
268
268
|
gradientColorStopPositions: [FR, bs],
|
|
@@ -272,7 +272,7 @@ const hn = (t) => {
|
|
|
272
272
|
padding: Q(),
|
|
273
273
|
saturate: fe(),
|
|
274
274
|
scale: fe(),
|
|
275
|
-
sepia:
|
|
275
|
+
sepia: ae(),
|
|
276
276
|
skew: fe(),
|
|
277
277
|
space: Q(),
|
|
278
278
|
translate: Q()
|
|
@@ -527,14 +527,14 @@ const hn = (t) => {
|
|
|
527
527
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
528
528
|
*/
|
|
529
529
|
grow: [{
|
|
530
|
-
grow:
|
|
530
|
+
grow: ae()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Flex Shrink
|
|
534
534
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
535
535
|
*/
|
|
536
536
|
shrink: [{
|
|
537
|
-
shrink:
|
|
537
|
+
shrink: ae()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Order
|
|
@@ -15115,14 +15115,14 @@ function E$(t) {
|
|
|
15115
15115
|
padding: u
|
|
15116
15116
|
}), P = ve ? re ? Sr : Ho : re ? _r : $o;
|
|
15117
15117
|
T[Y] > k[Y] && (P = Uf(P));
|
|
15118
|
-
var J = Uf(P),
|
|
15119
|
-
if (i &&
|
|
15118
|
+
var J = Uf(P), ae = [];
|
|
15119
|
+
if (i && ae.push(q[Q] <= 0), a && ae.push(q[P] <= 0, q[J] <= 0), ae.every(function(st) {
|
|
15120
15120
|
return st;
|
|
15121
15121
|
})) {
|
|
15122
15122
|
U = K, F = !1;
|
|
15123
15123
|
break;
|
|
15124
15124
|
}
|
|
15125
|
-
A.set(K,
|
|
15125
|
+
A.set(K, ae);
|
|
15126
15126
|
}
|
|
15127
15127
|
if (F)
|
|
15128
15128
|
for (var de = g ? 3 : 1, fe = function(Fe) {
|
|
@@ -15254,11 +15254,11 @@ function R$(t) {
|
|
|
15254
15254
|
};
|
|
15255
15255
|
if (k) {
|
|
15256
15256
|
if (i) {
|
|
15257
|
-
var re, ve = E === "y" ? $o : Ho, Y = E === "y" ? _r : Sr, q = E === "y" ? "height" : "width", P = k[E], J = P + w[ve],
|
|
15257
|
+
var re, ve = E === "y" ? $o : Ho, Y = E === "y" ? _r : Sr, q = E === "y" ? "height" : "width", P = k[E], J = P + w[ve], ae = P - w[Y], de = m ? -F[q] / 2 : 0, fe = _ === Kl ? A[q] : F[q], Re = _ === Kl ? -F[q] : -A[q], Pe = e.elements.arrow, st = m && Pe ? av(Pe) : {
|
|
15258
15258
|
width: 0,
|
|
15259
15259
|
height: 0
|
|
15260
|
-
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), it = Fe[ve], j = Fe[Y], oe = ac(0, A[q], st[q]), me = C ? A[q] / 2 - de - oe - it - I.mainAxis : fe - oe - it - I.mainAxis, ye = C ? -A[q] / 2 + de + oe + j + I.mainAxis : Re + oe + j + I.mainAxis, _e = e.elements.arrow && id(e.elements.arrow), ie = _e ? E === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Ae = (re = K == null ? void 0 : K[E]) != null ? re : 0, We = P + me - Ae - ie, ot = P + ye - Ae,
|
|
15261
|
-
k[E] =
|
|
15260
|
+
}, Fe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), it = Fe[ve], j = Fe[Y], oe = ac(0, A[q], st[q]), me = C ? A[q] / 2 - de - oe - it - I.mainAxis : fe - oe - it - I.mainAxis, ye = C ? -A[q] / 2 + de + oe + j + I.mainAxis : Re + oe + j + I.mainAxis, _e = e.elements.arrow && id(e.elements.arrow), ie = _e ? E === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, Ae = (re = K == null ? void 0 : K[E]) != null ? re : 0, We = P + me - Ae - ie, ot = P + ye - Ae, se = ac(m ? vp(J, We) : J, P, m ? ka(ae, ot) : ae);
|
|
15261
|
+
k[E] = se, Q[E] = se - P;
|
|
15262
15262
|
}
|
|
15263
15263
|
if (a) {
|
|
15264
15264
|
var $e, z = E === "x" ? $o : Ho, H = E === "x" ? _r : Sr, he = k[T], Se = T === "y" ? "height" : "width", Ke = he + w[z], yt = he - w[H], rt = [$o, Ho].indexOf(x) !== -1, ue = ($e = K == null ? void 0 : K[T]) != null ? $e : 0, Te = rt ? Ke : he - A[Se] - F[Se] - ue + I.altAxis, we = rt ? he + A[Se] + F[Se] - ue - I.altAxis : yt, Ne = m && rt ? o$(Te, he, we) : ac(m ? Te : Ke, he, m ? we : yt);
|
|
@@ -15908,7 +15908,7 @@ function yH(t, e) {
|
|
|
15908
15908
|
(Vt = E.props)[pe].apply(Vt, Ge);
|
|
15909
15909
|
}
|
|
15910
15910
|
}
|
|
15911
|
-
function
|
|
15911
|
+
function ae() {
|
|
15912
15912
|
var pe = E.props.aria;
|
|
15913
15913
|
if (pe.content) {
|
|
15914
15914
|
var Ge = "aria-" + pe.content, lt = k.id, Vt = Al(E.props.triggerTarget || t);
|
|
@@ -16008,10 +16008,10 @@ function yH(t, e) {
|
|
|
16008
16008
|
ye("mouseleave", ot);
|
|
16009
16009
|
break;
|
|
16010
16010
|
case "focus":
|
|
16011
|
-
ye(uH ? "focusout" : "blur",
|
|
16011
|
+
ye(uH ? "focusout" : "blur", se);
|
|
16012
16012
|
break;
|
|
16013
16013
|
case "focusin":
|
|
16014
|
-
ye("focusout",
|
|
16014
|
+
ye("focusout", se);
|
|
16015
16015
|
break;
|
|
16016
16016
|
}
|
|
16017
16017
|
});
|
|
@@ -16055,7 +16055,7 @@ function yH(t, e) {
|
|
|
16055
16055
|
yt(pe);
|
|
16056
16056
|
}
|
|
16057
16057
|
}
|
|
16058
|
-
function
|
|
16058
|
+
function se(pe) {
|
|
16059
16059
|
E.props.trigger.indexOf("focusin") < 0 && pe.target !== re() || E.props.interactive && pe.relatedTarget && k.contains(pe.relatedTarget) || yt(pe);
|
|
16060
16060
|
}
|
|
16061
16061
|
function $e(pe) {
|
|
@@ -16197,7 +16197,7 @@ function yH(t, e) {
|
|
|
16197
16197
|
var Su = Y(), nl = Su.box, as = Su.content;
|
|
16198
16198
|
s1([nl, as], Ft), G6([nl, as], "visible");
|
|
16199
16199
|
}
|
|
16200
|
-
|
|
16200
|
+
ae(), de(), q6(l1, E), (Ci = E.popperInstance) == null || Ci.forceUpdate(), J("onMount", [E]), E.props.animation && Q() && oe(Ft, function() {
|
|
16201
16201
|
E.state.isShown = !0, J("onShown", [E]);
|
|
16202
16202
|
});
|
|
16203
16203
|
}
|
|
@@ -16212,7 +16212,7 @@ function yH(t, e) {
|
|
|
16212
16212
|
var Ft = Y(), Yn = Ft.box, Oo = Ft.content;
|
|
16213
16213
|
E.props.animation && (s1([Yn, Oo], Vt), G6([Yn, Oo], "hidden"));
|
|
16214
16214
|
}
|
|
16215
|
-
|
|
16215
|
+
ae(), de(), E.props.animation ? Q() && j(Vt, E.unmount) : E.unmount();
|
|
16216
16216
|
}
|
|
16217
16217
|
}
|
|
16218
16218
|
function Xt(pe) {
|
|
@@ -17272,7 +17272,7 @@ var xp = { exports: {} };
|
|
|
17272
17272
|
xp.exports;
|
|
17273
17273
|
(function(t, e) {
|
|
17274
17274
|
(function() {
|
|
17275
|
-
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, g = 1, y = 2, w = 1, x = 2, _ = 4, C = 8, E = 16, T = 32, k = 64, A = 128, F = 256, U = 512, I = 30, K = "...", Q = 800, re = 16, ve = 1, Y = 2, q = 3, P = 1 / 0, J = 9007199254740991,
|
|
17275
|
+
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, g = 1, y = 2, w = 1, x = 2, _ = 4, C = 8, E = 16, T = 32, k = 64, A = 128, F = 256, U = 512, I = 30, K = "...", Q = 800, re = 16, ve = 1, Y = 2, q = 3, P = 1 / 0, J = 9007199254740991, ae = 17976931348623157e292, de = NaN, fe = 4294967295, Re = fe - 1, Pe = fe >>> 1, st = [
|
|
17276
17276
|
["ary", A],
|
|
17277
17277
|
["bind", w],
|
|
17278
17278
|
["bindKey", x],
|
|
@@ -17282,7 +17282,7 @@ xp.exports;
|
|
|
17282
17282
|
["partial", T],
|
|
17283
17283
|
["partialRight", k],
|
|
17284
17284
|
["rearg", F]
|
|
17285
|
-
], Fe = "[object Arguments]", it = "[object Array]", j = "[object AsyncFunction]", oe = "[object Boolean]", me = "[object Date]", ye = "[object DOMException]", _e = "[object Error]", ie = "[object Function]", Ae = "[object GeneratorFunction]", We = "[object Map]", ot = "[object Number]",
|
|
17285
|
+
], Fe = "[object Arguments]", it = "[object Array]", j = "[object AsyncFunction]", oe = "[object Boolean]", me = "[object Date]", ye = "[object DOMException]", _e = "[object Error]", ie = "[object Function]", Ae = "[object GeneratorFunction]", We = "[object Map]", ot = "[object Number]", se = "[object Null]", $e = "[object Object]", z = "[object Promise]", H = "[object Proxy]", he = "[object RegExp]", Se = "[object Set]", Ke = "[object String]", yt = "[object Symbol]", rt = "[object Undefined]", ue = "[object WeakMap]", Te = "[object WeakSet]", we = "[object ArrayBuffer]", Ne = "[object DataView]", Je = "[object Float32Array]", gt = "[object Float64Array]", Xt = "[object Int8Array]", wn = "[object Int16Array]", wi = "[object Int32Array]", pe = "[object Uint8Array]", Ge = "[object Uint8ClampedArray]", lt = "[object Uint16Array]", Vt = "[object Uint32Array]", Ft = /\b__p \+= '';/g, Yn = /\b(__p \+=) '' \+/g, Oo = /(__e\(.*?\)|\b__t\)) \+\n'';/g, xi = /&(?:amp|lt|gt|quot|#39);/g, _u = /[&<>"']/g, Ci = RegExp(xi.source), Su = RegExp(_u.source), nl = /<%-([\s\S]+?)%>/g, as = /<%([\s\S]+?)%>/g, yd = /<%=([\s\S]+?)%>/g, Tu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ol = /^\w*$/, k7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, A0 = /[\\^$.*+?()[\]{}|]/g, A7 = RegExp(A0.source), O0 = /^\s+/, O7 = /\s/, M7 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, N7 = /\{\n\/\* \[wrapped with (.+)\] \*/, I7 = /,? & /, R7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, L7 = /[()=,{}\[\]\/\s]/, D7 = /\\(\\)?/g, P7 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Z2 = /\w*$/, B7 = /^[-+]0x[0-9a-f]+$/i, F7 = /^0b[01]+$/i, $7 = /^\[object .+?Constructor\]$/, H7 = /^0o[0-7]+$/i, z7 = /^(?:0|[1-9]\d*)$/, V7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, wd = /($^)/, U7 = /['\n\r\u2028\u2029\\]/g, xd = "\\ud800-\\udfff", W7 = "\\u0300-\\u036f", j7 = "\\ufe20-\\ufe2f", q7 = "\\u20d0-\\u20ff", Q2 = W7 + j7 + q7, ey = "\\u2700-\\u27bf", ty = "a-z\\xdf-\\xf6\\xf8-\\xff", K7 = "\\xac\\xb1\\xd7\\xf7", G7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", X7 = "\\u2000-\\u206f", Y7 = " \\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 = K7 + G7 + X7 + Y7, M0 = "['’]", J7 = "[" + xd + "]", iy = "[" + ry + "]", Cd = "[" + Q2 + "]", sy = "\\d+", Z7 = "[" + ey + "]", ay = "[" + ty + "]", ly = "[^" + xd + ry + sy + ey + ty + ny + "]", N0 = "\\ud83c[\\udffb-\\udfff]", Q7 = "(?:" + Cd + "|" + N0 + ")", uy = "[^" + xd + "]", I0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", R0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", rl = "[" + ny + "]", cy = "\\u200d", dy = "(?:" + ay + "|" + ly + ")", ek = "(?:" + rl + "|" + ly + ")", fy = "(?:" + M0 + "(?:d|ll|m|re|s|t|ve))?", py = "(?:" + M0 + "(?:D|LL|M|RE|S|T|VE))?", hy = Q7 + "?", my = "[" + oy + "]?", tk = "(?:" + cy + "(?:" + [uy, I0, R0].join("|") + ")" + my + hy + ")*", nk = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ok = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gy = my + hy + tk, rk = "(?:" + [Z7, I0, R0].join("|") + ")" + gy, ik = "(?:" + [uy + Cd + "?", Cd, I0, R0, J7].join("|") + ")", sk = RegExp(M0, "g"), ak = RegExp(Cd, "g"), L0 = RegExp(N0 + "(?=" + N0 + ")|" + ik + gy, "g"), lk = RegExp([
|
|
17286
17286
|
rl + "?" + ay + "+" + fy + "(?=" + [iy, rl, "$"].join("|") + ")",
|
|
17287
17287
|
ek + "+" + py + "(?=" + [iy, rl + dy, "$"].join("|") + ")",
|
|
17288
17288
|
rl + "?" + dy + "+" + fy,
|
|
@@ -17545,84 +17545,84 @@ xp.exports;
|
|
|
17545
17545
|
} catch {
|
|
17546
17546
|
}
|
|
17547
17547
|
}(), yy = ar && ar.isArrayBuffer, wy = ar && ar.isDate, xy = ar && ar.isMap, Cy = ar && ar.isRegExp, Ey = ar && ar.isSet, _y = ar && ar.isTypedArray;
|
|
17548
|
-
function Wo(Z, ge,
|
|
17549
|
-
switch (
|
|
17548
|
+
function Wo(Z, ge, le) {
|
|
17549
|
+
switch (le.length) {
|
|
17550
17550
|
case 0:
|
|
17551
17551
|
return Z.call(ge);
|
|
17552
17552
|
case 1:
|
|
17553
|
-
return Z.call(ge,
|
|
17553
|
+
return Z.call(ge, le[0]);
|
|
17554
17554
|
case 2:
|
|
17555
|
-
return Z.call(ge,
|
|
17555
|
+
return Z.call(ge, le[0], le[1]);
|
|
17556
17556
|
case 3:
|
|
17557
|
-
return Z.call(ge,
|
|
17557
|
+
return Z.call(ge, le[0], le[1], le[2]);
|
|
17558
17558
|
}
|
|
17559
|
-
return Z.apply(ge,
|
|
17559
|
+
return Z.apply(ge, le);
|
|
17560
17560
|
}
|
|
17561
|
-
function wk(Z, ge,
|
|
17561
|
+
function wk(Z, ge, le, je) {
|
|
17562
17562
|
for (var bt = -1, Wt = Z == null ? 0 : Z.length; ++bt < Wt; ) {
|
|
17563
17563
|
var zn = Z[bt];
|
|
17564
|
-
ge(je, zn,
|
|
17564
|
+
ge(je, zn, le(zn), Z);
|
|
17565
17565
|
}
|
|
17566
17566
|
return je;
|
|
17567
17567
|
}
|
|
17568
17568
|
function lr(Z, ge) {
|
|
17569
|
-
for (var
|
|
17569
|
+
for (var le = -1, je = Z == null ? 0 : Z.length; ++le < je && ge(Z[le], le, Z) !== !1; )
|
|
17570
17570
|
;
|
|
17571
17571
|
return Z;
|
|
17572
17572
|
}
|
|
17573
17573
|
function xk(Z, ge) {
|
|
17574
|
-
for (var
|
|
17574
|
+
for (var le = Z == null ? 0 : Z.length; le-- && ge(Z[le], le, Z) !== !1; )
|
|
17575
17575
|
;
|
|
17576
17576
|
return Z;
|
|
17577
17577
|
}
|
|
17578
17578
|
function Sy(Z, ge) {
|
|
17579
|
-
for (var
|
|
17580
|
-
if (!ge(Z[
|
|
17579
|
+
for (var le = -1, je = Z == null ? 0 : Z.length; ++le < je; )
|
|
17580
|
+
if (!ge(Z[le], le, Z))
|
|
17581
17581
|
return !1;
|
|
17582
17582
|
return !0;
|
|
17583
17583
|
}
|
|
17584
17584
|
function ls(Z, ge) {
|
|
17585
|
-
for (var
|
|
17586
|
-
var zn = Z[
|
|
17587
|
-
ge(zn,
|
|
17585
|
+
for (var le = -1, je = Z == null ? 0 : Z.length, bt = 0, Wt = []; ++le < je; ) {
|
|
17586
|
+
var zn = Z[le];
|
|
17587
|
+
ge(zn, le, Z) && (Wt[bt++] = zn);
|
|
17588
17588
|
}
|
|
17589
17589
|
return Wt;
|
|
17590
17590
|
}
|
|
17591
17591
|
function Ed(Z, ge) {
|
|
17592
|
-
var
|
|
17593
|
-
return !!
|
|
17592
|
+
var le = Z == null ? 0 : Z.length;
|
|
17593
|
+
return !!le && il(Z, ge, 0) > -1;
|
|
17594
17594
|
}
|
|
17595
|
-
function B0(Z, ge,
|
|
17595
|
+
function B0(Z, ge, le) {
|
|
17596
17596
|
for (var je = -1, bt = Z == null ? 0 : Z.length; ++je < bt; )
|
|
17597
|
-
if (
|
|
17597
|
+
if (le(ge, Z[je]))
|
|
17598
17598
|
return !0;
|
|
17599
17599
|
return !1;
|
|
17600
17600
|
}
|
|
17601
17601
|
function gn(Z, ge) {
|
|
17602
|
-
for (var
|
|
17603
|
-
bt[
|
|
17602
|
+
for (var le = -1, je = Z == null ? 0 : Z.length, bt = Array(je); ++le < je; )
|
|
17603
|
+
bt[le] = ge(Z[le], le, Z);
|
|
17604
17604
|
return bt;
|
|
17605
17605
|
}
|
|
17606
17606
|
function us(Z, ge) {
|
|
17607
|
-
for (var
|
|
17608
|
-
Z[bt +
|
|
17607
|
+
for (var le = -1, je = ge.length, bt = Z.length; ++le < je; )
|
|
17608
|
+
Z[bt + le] = ge[le];
|
|
17609
17609
|
return Z;
|
|
17610
17610
|
}
|
|
17611
|
-
function F0(Z, ge,
|
|
17611
|
+
function F0(Z, ge, le, je) {
|
|
17612
17612
|
var bt = -1, Wt = Z == null ? 0 : Z.length;
|
|
17613
|
-
for (je && Wt && (
|
|
17614
|
-
|
|
17615
|
-
return
|
|
17613
|
+
for (je && Wt && (le = Z[++bt]); ++bt < Wt; )
|
|
17614
|
+
le = ge(le, Z[bt], bt, Z);
|
|
17615
|
+
return le;
|
|
17616
17616
|
}
|
|
17617
|
-
function Ck(Z, ge,
|
|
17617
|
+
function Ck(Z, ge, le, je) {
|
|
17618
17618
|
var bt = Z == null ? 0 : Z.length;
|
|
17619
|
-
for (je && bt && (
|
|
17620
|
-
|
|
17621
|
-
return
|
|
17619
|
+
for (je && bt && (le = Z[--bt]); bt--; )
|
|
17620
|
+
le = ge(le, Z[bt], bt, Z);
|
|
17621
|
+
return le;
|
|
17622
17622
|
}
|
|
17623
17623
|
function $0(Z, ge) {
|
|
17624
|
-
for (var
|
|
17625
|
-
if (ge(Z[
|
|
17624
|
+
for (var le = -1, je = Z == null ? 0 : Z.length; ++le < je; )
|
|
17625
|
+
if (ge(Z[le], le, Z))
|
|
17626
17626
|
return !0;
|
|
17627
17627
|
return !1;
|
|
17628
17628
|
}
|
|
@@ -17633,24 +17633,24 @@ xp.exports;
|
|
|
17633
17633
|
function Sk(Z) {
|
|
17634
17634
|
return Z.match(R7) || [];
|
|
17635
17635
|
}
|
|
17636
|
-
function Ty(Z, ge,
|
|
17636
|
+
function Ty(Z, ge, le) {
|
|
17637
17637
|
var je;
|
|
17638
|
-
return
|
|
17638
|
+
return le(Z, function(bt, Wt, zn) {
|
|
17639
17639
|
if (ge(bt, Wt, zn))
|
|
17640
17640
|
return je = Wt, !1;
|
|
17641
17641
|
}), je;
|
|
17642
17642
|
}
|
|
17643
|
-
function _d(Z, ge,
|
|
17644
|
-
for (var bt = Z.length, Wt =
|
|
17643
|
+
function _d(Z, ge, le, je) {
|
|
17644
|
+
for (var bt = Z.length, Wt = le + (je ? 1 : -1); je ? Wt-- : ++Wt < bt; )
|
|
17645
17645
|
if (ge(Z[Wt], Wt, Z))
|
|
17646
17646
|
return Wt;
|
|
17647
17647
|
return -1;
|
|
17648
17648
|
}
|
|
17649
|
-
function il(Z, ge,
|
|
17650
|
-
return ge === ge ? Bk(Z, ge,
|
|
17649
|
+
function il(Z, ge, le) {
|
|
17650
|
+
return ge === ge ? Bk(Z, ge, le) : _d(Z, ky, le);
|
|
17651
17651
|
}
|
|
17652
|
-
function Tk(Z, ge,
|
|
17653
|
-
for (var bt =
|
|
17652
|
+
function Tk(Z, ge, le, je) {
|
|
17653
|
+
for (var bt = le - 1, Wt = Z.length; ++bt < Wt; )
|
|
17654
17654
|
if (je(Z[bt], ge))
|
|
17655
17655
|
return bt;
|
|
17656
17656
|
return -1;
|
|
@@ -17659,8 +17659,8 @@ xp.exports;
|
|
|
17659
17659
|
return Z !== Z;
|
|
17660
17660
|
}
|
|
17661
17661
|
function Ay(Z, ge) {
|
|
17662
|
-
var
|
|
17663
|
-
return
|
|
17662
|
+
var le = Z == null ? 0 : Z.length;
|
|
17663
|
+
return le ? V0(Z, ge) / le : de;
|
|
17664
17664
|
}
|
|
17665
17665
|
function H0(Z) {
|
|
17666
17666
|
return function(ge) {
|
|
@@ -17672,32 +17672,32 @@ xp.exports;
|
|
|
17672
17672
|
return Z == null ? n : Z[ge];
|
|
17673
17673
|
};
|
|
17674
17674
|
}
|
|
17675
|
-
function Oy(Z, ge,
|
|
17675
|
+
function Oy(Z, ge, le, je, bt) {
|
|
17676
17676
|
return bt(Z, function(Wt, zn, nn) {
|
|
17677
|
-
|
|
17678
|
-
}),
|
|
17677
|
+
le = je ? (je = !1, Wt) : ge(le, Wt, zn, nn);
|
|
17678
|
+
}), le;
|
|
17679
17679
|
}
|
|
17680
17680
|
function kk(Z, ge) {
|
|
17681
|
-
var
|
|
17682
|
-
for (Z.sort(ge);
|
|
17683
|
-
Z[
|
|
17681
|
+
var le = Z.length;
|
|
17682
|
+
for (Z.sort(ge); le--; )
|
|
17683
|
+
Z[le] = Z[le].value;
|
|
17684
17684
|
return Z;
|
|
17685
17685
|
}
|
|
17686
17686
|
function V0(Z, ge) {
|
|
17687
|
-
for (var
|
|
17687
|
+
for (var le, je = -1, bt = Z.length; ++je < bt; ) {
|
|
17688
17688
|
var Wt = ge(Z[je]);
|
|
17689
|
-
Wt !== n && (
|
|
17689
|
+
Wt !== n && (le = le === n ? Wt : le + Wt);
|
|
17690
17690
|
}
|
|
17691
|
-
return
|
|
17691
|
+
return le;
|
|
17692
17692
|
}
|
|
17693
17693
|
function U0(Z, ge) {
|
|
17694
|
-
for (var
|
|
17695
|
-
je[
|
|
17694
|
+
for (var le = -1, je = Array(Z); ++le < Z; )
|
|
17695
|
+
je[le] = ge(le);
|
|
17696
17696
|
return je;
|
|
17697
17697
|
}
|
|
17698
17698
|
function Ak(Z, ge) {
|
|
17699
|
-
return gn(ge, function(
|
|
17700
|
-
return [
|
|
17699
|
+
return gn(ge, function(le) {
|
|
17700
|
+
return [le, Z[le]];
|
|
17701
17701
|
});
|
|
17702
17702
|
}
|
|
17703
17703
|
function My(Z) {
|
|
@@ -17709,26 +17709,26 @@ xp.exports;
|
|
|
17709
17709
|
};
|
|
17710
17710
|
}
|
|
17711
17711
|
function W0(Z, ge) {
|
|
17712
|
-
return gn(ge, function(
|
|
17713
|
-
return Z[
|
|
17712
|
+
return gn(ge, function(le) {
|
|
17713
|
+
return Z[le];
|
|
17714
17714
|
});
|
|
17715
17715
|
}
|
|
17716
17716
|
function ku(Z, ge) {
|
|
17717
17717
|
return Z.has(ge);
|
|
17718
17718
|
}
|
|
17719
17719
|
function Ny(Z, ge) {
|
|
17720
|
-
for (var
|
|
17720
|
+
for (var le = -1, je = Z.length; ++le < je && il(ge, Z[le], 0) > -1; )
|
|
17721
17721
|
;
|
|
17722
|
-
return
|
|
17722
|
+
return le;
|
|
17723
17723
|
}
|
|
17724
17724
|
function Iy(Z, ge) {
|
|
17725
|
-
for (var
|
|
17725
|
+
for (var le = Z.length; le-- && il(ge, Z[le], 0) > -1; )
|
|
17726
17726
|
;
|
|
17727
|
-
return
|
|
17727
|
+
return le;
|
|
17728
17728
|
}
|
|
17729
17729
|
function Ok(Z, ge) {
|
|
17730
|
-
for (var
|
|
17731
|
-
Z[
|
|
17730
|
+
for (var le = Z.length, je = 0; le--; )
|
|
17731
|
+
Z[le] === ge && ++je;
|
|
17732
17732
|
return je;
|
|
17733
17733
|
}
|
|
17734
17734
|
var Mk = z0(pk), Nk = z0(hk);
|
|
@@ -17745,48 +17745,48 @@ xp.exports;
|
|
|
17745
17745
|
return ck.test(Z);
|
|
17746
17746
|
}
|
|
17747
17747
|
function Dk(Z) {
|
|
17748
|
-
for (var ge,
|
|
17749
|
-
|
|
17750
|
-
return
|
|
17748
|
+
for (var ge, le = []; !(ge = Z.next()).done; )
|
|
17749
|
+
le.push(ge.value);
|
|
17750
|
+
return le;
|
|
17751
17751
|
}
|
|
17752
17752
|
function j0(Z) {
|
|
17753
|
-
var ge = -1,
|
|
17753
|
+
var ge = -1, le = Array(Z.size);
|
|
17754
17754
|
return Z.forEach(function(je, bt) {
|
|
17755
|
-
|
|
17756
|
-
}),
|
|
17755
|
+
le[++ge] = [bt, je];
|
|
17756
|
+
}), le;
|
|
17757
17757
|
}
|
|
17758
17758
|
function Ry(Z, ge) {
|
|
17759
|
-
return function(
|
|
17760
|
-
return Z(ge(
|
|
17759
|
+
return function(le) {
|
|
17760
|
+
return Z(ge(le));
|
|
17761
17761
|
};
|
|
17762
17762
|
}
|
|
17763
17763
|
function cs(Z, ge) {
|
|
17764
|
-
for (var
|
|
17765
|
-
var zn = Z[
|
|
17766
|
-
(zn === ge || zn === d) && (Z[
|
|
17764
|
+
for (var le = -1, je = Z.length, bt = 0, Wt = []; ++le < je; ) {
|
|
17765
|
+
var zn = Z[le];
|
|
17766
|
+
(zn === ge || zn === d) && (Z[le] = d, Wt[bt++] = le);
|
|
17767
17767
|
}
|
|
17768
17768
|
return Wt;
|
|
17769
17769
|
}
|
|
17770
17770
|
function Sd(Z) {
|
|
17771
|
-
var ge = -1,
|
|
17771
|
+
var ge = -1, le = Array(Z.size);
|
|
17772
17772
|
return Z.forEach(function(je) {
|
|
17773
|
-
|
|
17774
|
-
}),
|
|
17773
|
+
le[++ge] = je;
|
|
17774
|
+
}), le;
|
|
17775
17775
|
}
|
|
17776
17776
|
function Pk(Z) {
|
|
17777
|
-
var ge = -1,
|
|
17777
|
+
var ge = -1, le = Array(Z.size);
|
|
17778
17778
|
return Z.forEach(function(je) {
|
|
17779
|
-
|
|
17780
|
-
}),
|
|
17779
|
+
le[++ge] = [je, je];
|
|
17780
|
+
}), le;
|
|
17781
17781
|
}
|
|
17782
|
-
function Bk(Z, ge,
|
|
17783
|
-
for (var je =
|
|
17782
|
+
function Bk(Z, ge, le) {
|
|
17783
|
+
for (var je = le - 1, bt = Z.length; ++je < bt; )
|
|
17784
17784
|
if (Z[je] === ge)
|
|
17785
17785
|
return je;
|
|
17786
17786
|
return -1;
|
|
17787
17787
|
}
|
|
17788
|
-
function Fk(Z, ge,
|
|
17789
|
-
for (var je =
|
|
17788
|
+
function Fk(Z, ge, le) {
|
|
17789
|
+
for (var je = le + 1; je--; )
|
|
17790
17790
|
if (Z[je] === ge)
|
|
17791
17791
|
return je;
|
|
17792
17792
|
return je;
|
|
@@ -17816,7 +17816,7 @@ xp.exports;
|
|
|
17816
17816
|
}
|
|
17817
17817
|
var Uk = function Z(ge) {
|
|
17818
17818
|
ge = ge == null ? Jn : ll.defaults(Jn.Object(), ge, ll.pick(Jn, dk));
|
|
17819
|
-
var
|
|
17819
|
+
var le = ge.Array, je = ge.Date, bt = ge.Error, Wt = ge.Function, zn = ge.Math, nn = ge.Object, q0 = ge.RegExp, Wk = ge.String, ur = ge.TypeError, Td = le.prototype, jk = Wt.prototype, ul = nn.prototype, kd = ge["__core-js_shared__"], Ad = jk.toString, Yt = ul.hasOwnProperty, qk = 0, Dy = function() {
|
|
17820
17820
|
var c = /[^.]+$/.exec(kd && kd.keys && kd.keys.IE_PROTO || "");
|
|
17821
17821
|
return c ? "Symbol(src)_1." + c : "";
|
|
17822
17822
|
}(), Od = ul.toString, Kk = Ad.call(nn), Gk = Jn._, Xk = q0(
|
|
@@ -18120,7 +18120,7 @@ xp.exports;
|
|
|
18120
18120
|
}) : c[p] = v;
|
|
18121
18121
|
}
|
|
18122
18122
|
function J0(c, p) {
|
|
18123
|
-
for (var v = -1, S = p.length, O =
|
|
18123
|
+
for (var v = -1, S = p.length, O = le(S), L = c == null; ++v < S; )
|
|
18124
18124
|
O[v] = L ? n : Nm(c, p[v]);
|
|
18125
18125
|
return O;
|
|
18126
18126
|
}
|
|
@@ -18263,7 +18263,7 @@ xp.exports;
|
|
|
18263
18263
|
return wt(c) ? S : us(S, v(c));
|
|
18264
18264
|
}
|
|
18265
18265
|
function vo(c) {
|
|
18266
|
-
return c == null ? c === n ? rt :
|
|
18266
|
+
return c == null ? c === n ? rt : se : oa && oa in nn(c) ? E9(c) : P9(c);
|
|
18267
18267
|
}
|
|
18268
18268
|
function em(c, p) {
|
|
18269
18269
|
return c > p;
|
|
@@ -18278,7 +18278,7 @@ xp.exports;
|
|
|
18278
18278
|
return c >= io(p, v) && c < Vn(p, v);
|
|
18279
18279
|
}
|
|
18280
18280
|
function tm(c, p, v) {
|
|
18281
|
-
for (var S = v ? B0 : Ed, O = c[0].length, L = c.length, V = L, G =
|
|
18281
|
+
for (var S = v ? B0 : Ed, O = c[0].length, L = c.length, V = L, G = le(L), ee = 1 / 0, Ce = []; V--; ) {
|
|
18282
18282
|
var Ee = c[V];
|
|
18283
18283
|
V && p && (Ee = gn(Ee, jo(p))), ee = io(Ee.length, ee), G[V] = !v && (p || O >= 120 && Ee.length >= 120) ? new ia(V && Ee) : n;
|
|
18284
18284
|
}
|
|
@@ -18406,7 +18406,7 @@ xp.exports;
|
|
|
18406
18406
|
return c < p;
|
|
18407
18407
|
}
|
|
18408
18408
|
function t3(c, p) {
|
|
18409
|
-
var v = -1, S = No(c) ?
|
|
18409
|
+
var v = -1, S = No(c) ? le(c.length) : [];
|
|
18410
18410
|
return fs(c, function(O, L, V) {
|
|
18411
18411
|
S[++v] = p(O, L, V);
|
|
18412
18412
|
}), S;
|
|
@@ -18507,7 +18507,7 @@ xp.exports;
|
|
|
18507
18507
|
return c + Pd(zy() * (p - c + 1));
|
|
18508
18508
|
}
|
|
18509
18509
|
function o9(c, p, v, S) {
|
|
18510
|
-
for (var O = -1, L = Vn(Dd((p - c) / (v || 1)), 0), V =
|
|
18510
|
+
for (var O = -1, L = Vn(Dd((p - c) / (v || 1)), 0), V = le(L); L--; )
|
|
18511
18511
|
V[S ? L : ++O] = c, c += v;
|
|
18512
18512
|
return V;
|
|
18513
18513
|
}
|
|
@@ -18562,7 +18562,7 @@ xp.exports;
|
|
|
18562
18562
|
function fr(c, p, v) {
|
|
18563
18563
|
var S = -1, O = c.length;
|
|
18564
18564
|
p < 0 && (p = -p > O ? 0 : O + p), v = v > O ? O : v, v < 0 && (v += O), O = p > v ? 0 : v - p >>> 0, p >>>= 0;
|
|
18565
|
-
for (var L =
|
|
18565
|
+
for (var L = le(O); ++S < O; )
|
|
18566
18566
|
L[S] = c[S + p];
|
|
18567
18567
|
return L;
|
|
18568
18568
|
}
|
|
@@ -18664,7 +18664,7 @@ xp.exports;
|
|
|
18664
18664
|
var S = c.length;
|
|
18665
18665
|
if (S < 2)
|
|
18666
18666
|
return S ? ps(c[0]) : [];
|
|
18667
|
-
for (var O = -1, L =
|
|
18667
|
+
for (var O = -1, L = le(S); ++O < S; )
|
|
18668
18668
|
for (var V = c[O], G = -1; ++G < S; )
|
|
18669
18669
|
G != O && (L[O] = Lu(L[O] || V, c[G], p, v));
|
|
18670
18670
|
return ps(Zn(L, 1), p, v);
|
|
@@ -18741,7 +18741,7 @@ xp.exports;
|
|
|
18741
18741
|
return c.index - p.index;
|
|
18742
18742
|
}
|
|
18743
18743
|
function v3(c, p, v, S) {
|
|
18744
|
-
for (var O = -1, L = c.length, V = v.length, G = -1, ee = p.length, Ce = Vn(L - V, 0), Ee =
|
|
18744
|
+
for (var O = -1, L = c.length, V = v.length, G = -1, ee = p.length, Ce = Vn(L - V, 0), Ee = le(ee + Ce), ke = !S; ++G < ee; )
|
|
18745
18745
|
Ee[G] = p[G];
|
|
18746
18746
|
for (; ++O < V; )
|
|
18747
18747
|
(ke || O < L) && (Ee[v[O]] = c[O]);
|
|
@@ -18750,7 +18750,7 @@ xp.exports;
|
|
|
18750
18750
|
return Ee;
|
|
18751
18751
|
}
|
|
18752
18752
|
function y3(c, p, v, S) {
|
|
18753
|
-
for (var O = -1, L = c.length, V = -1, G = v.length, ee = -1, Ce = p.length, Ee = Vn(L - G, 0), ke =
|
|
18753
|
+
for (var O = -1, L = c.length, V = -1, G = v.length, ee = -1, Ce = p.length, Ee = Vn(L - G, 0), ke = le(Ee + Ce), He = !S; ++O < Ee; )
|
|
18754
18754
|
ke[O] = c[O];
|
|
18755
18755
|
for (var Qe = O; ++ee < Ce; )
|
|
18756
18756
|
ke[Qe + ee] = p[ee];
|
|
@@ -18760,7 +18760,7 @@ xp.exports;
|
|
|
18760
18760
|
}
|
|
18761
18761
|
function Mo(c, p) {
|
|
18762
18762
|
var v = -1, S = c.length;
|
|
18763
|
-
for (p || (p =
|
|
18763
|
+
for (p || (p = le(S)); ++v < S; )
|
|
18764
18764
|
p[v] = c[v];
|
|
18765
18765
|
return p;
|
|
18766
18766
|
}
|
|
@@ -18864,7 +18864,7 @@ xp.exports;
|
|
|
18864
18864
|
function b9(c, p, v) {
|
|
18865
18865
|
var S = Fu(c);
|
|
18866
18866
|
function O() {
|
|
18867
|
-
for (var L = arguments.length, V =
|
|
18867
|
+
for (var L = arguments.length, V = le(L), G = L, ee = ml(O); G--; )
|
|
18868
18868
|
V[G] = arguments[G];
|
|
18869
18869
|
var Ce = L < 3 && V[0] !== ee && V[L - 1] !== ee ? [] : cs(V, ee);
|
|
18870
18870
|
if (L -= Ce.length, L < v)
|
|
@@ -18926,7 +18926,7 @@ xp.exports;
|
|
|
18926
18926
|
function Kd(c, p, v, S, O, L, V, G, ee, Ce) {
|
|
18927
18927
|
var Ee = p & A, ke = p & w, He = p & x, Qe = p & (C | E), ct = p & U, kt = He ? n : Fu(c);
|
|
18928
18928
|
function dt() {
|
|
18929
|
-
for (var Lt = arguments.length, $t =
|
|
18929
|
+
for (var Lt = arguments.length, $t = le(Lt), Go = Lt; Go--; )
|
|
18930
18930
|
$t[Go] = arguments[Go];
|
|
18931
18931
|
if (Qe)
|
|
18932
18932
|
var wo = ml(dt), Xo = Ok($t, wo);
|
|
@@ -18989,7 +18989,7 @@ xp.exports;
|
|
|
18989
18989
|
function v9(c, p, v, S) {
|
|
18990
18990
|
var O = p & w, L = Fu(c);
|
|
18991
18991
|
function V() {
|
|
18992
|
-
for (var G = -1, ee = arguments.length, Ce = -1, Ee = S.length, ke =
|
|
18992
|
+
for (var G = -1, ee = arguments.length, Ce = -1, Ee = S.length, ke = le(Ee + ee), He = this && this !== Jn && this instanceof V ? L : c; ++Ce < Ee; )
|
|
18993
18993
|
ke[Ce] = S[Ce];
|
|
18994
18994
|
for (; ee--; )
|
|
18995
18995
|
ke[Ce++] = arguments[++G];
|
|
@@ -19418,10 +19418,10 @@ xp.exports;
|
|
|
19418
19418
|
}
|
|
19419
19419
|
function B3(c, p, v) {
|
|
19420
19420
|
return p = Vn(p === n ? c.length - 1 : p, 0), function() {
|
|
19421
|
-
for (var S = arguments, O = -1, L = Vn(S.length - p, 0), V =
|
|
19421
|
+
for (var S = arguments, O = -1, L = Vn(S.length - p, 0), V = le(L); ++O < L; )
|
|
19422
19422
|
V[O] = S[p + O];
|
|
19423
19423
|
O = -1;
|
|
19424
|
-
for (var G =
|
|
19424
|
+
for (var G = le(p + 1); ++O < p; )
|
|
19425
19425
|
G[O] = S[O];
|
|
19426
19426
|
return G[p] = v(V), Wo(c, this, G);
|
|
19427
19427
|
};
|
|
@@ -19509,7 +19509,7 @@ xp.exports;
|
|
|
19509
19509
|
var S = c == null ? 0 : c.length;
|
|
19510
19510
|
if (!S || p < 1)
|
|
19511
19511
|
return [];
|
|
19512
|
-
for (var O = 0, L = 0, V =
|
|
19512
|
+
for (var O = 0, L = 0, V = le(Dd(S / p)); O < S; )
|
|
19513
19513
|
V[L++] = fr(c, O, O += p);
|
|
19514
19514
|
return V;
|
|
19515
19515
|
}
|
|
@@ -19524,7 +19524,7 @@ xp.exports;
|
|
|
19524
19524
|
var c = arguments.length;
|
|
19525
19525
|
if (!c)
|
|
19526
19526
|
return [];
|
|
19527
|
-
for (var p =
|
|
19527
|
+
for (var p = le(c - 1), v = arguments[0], S = c; S--; )
|
|
19528
19528
|
p[S - 1] = arguments[S];
|
|
19529
19529
|
return us(wt(v) ? Mo(v) : [v], Zn(p, 1));
|
|
19530
19530
|
}
|
|
@@ -19872,7 +19872,7 @@ xp.exports;
|
|
|
19872
19872
|
return v < 0 && (v = Vn(O + v, 0)), af(c) ? v <= O && c.indexOf(p, v) > -1 : !!O && il(c, p, v) > -1;
|
|
19873
19873
|
}
|
|
19874
19874
|
var iM = It(function(c, p, v) {
|
|
19875
|
-
var S = -1, O = typeof p == "function", L = No(c) ?
|
|
19875
|
+
var S = -1, O = typeof p == "function", L = No(c) ? le(c.length) : [];
|
|
19876
19876
|
return fs(c, function(V) {
|
|
19877
19877
|
L[++S] = O ? Wo(p, V, v) : Du(V, p, v);
|
|
19878
19878
|
}), L;
|
|
@@ -20145,7 +20145,7 @@ xp.exports;
|
|
|
20145
20145
|
return arguments;
|
|
20146
20146
|
}()) ? Zy : function(c) {
|
|
20147
20147
|
return Tn(c) && Yt.call(c, "callee") && !Fy.call(c, "callee");
|
|
20148
|
-
}, wt =
|
|
20148
|
+
}, wt = le.isArray, FM = yy ? jo(yy) : qA;
|
|
20149
20149
|
function No(c) {
|
|
20150
20150
|
return c != null && sf(c.length) && !Oi(c);
|
|
20151
20151
|
}
|
|
@@ -20282,7 +20282,7 @@ xp.exports;
|
|
|
20282
20282
|
return c === 0 ? c : 0;
|
|
20283
20283
|
if (c = hr(c), c === P || c === -1 / 0) {
|
|
20284
20284
|
var p = c < 0 ? -1 : 1;
|
|
20285
|
-
return p *
|
|
20285
|
+
return p * ae;
|
|
20286
20286
|
}
|
|
20287
20287
|
return c === c ? c : 0;
|
|
20288
20288
|
}
|
|
@@ -21490,13 +21490,13 @@ const YH = (t) => ({
|
|
|
21490
21490
|
var re;
|
|
21491
21491
|
const P = (re = I.filter((J) => {
|
|
21492
21492
|
if (k) {
|
|
21493
|
-
const
|
|
21494
|
-
return
|
|
21493
|
+
const ae = Vs(J.placement);
|
|
21494
|
+
return ae === _ || // Create a bias to the `y` side axis due to horizontal
|
|
21495
21495
|
// reading directions favoring greater width.
|
|
21496
|
-
|
|
21496
|
+
ae === "y";
|
|
21497
21497
|
}
|
|
21498
21498
|
return !0;
|
|
21499
|
-
}).map((J) => [J.placement, J.overflows.filter((
|
|
21499
|
+
}).map((J) => [J.placement, J.overflows.filter((ae) => ae > 0).reduce((ae, de) => ae + de, 0)]).sort((J, ae) => J[1] - ae[1])[0]) == null ? void 0 : re[0];
|
|
21500
21500
|
P && (q = P);
|
|
21501
21501
|
break;
|
|
21502
21502
|
}
|
|
@@ -26830,7 +26830,7 @@ const CW = /* @__PURE__ */ W({
|
|
|
26830
26830
|
), q = Q + re + I + Y + ve, P = Math.min(
|
|
26831
26831
|
g.value.offsetHeight * 5,
|
|
26832
26832
|
q
|
|
26833
|
-
), J = window.getComputedStyle(m.value),
|
|
26833
|
+
), J = window.getComputedStyle(m.value), ae = Number.parseInt(J.paddingTop, 10), de = Number.parseInt(
|
|
26834
26834
|
J.paddingBottom,
|
|
26835
26835
|
10
|
|
26836
26836
|
), fe = E.top + E.height / 2 - Dr, Re = U - fe, Pe = g.value.offsetHeight / 2, st = g.value.offsetTop + Pe, Fe = Q + re + st, it = q - Fe;
|
|
@@ -26847,7 +26847,7 @@ const CW = /* @__PURE__ */ W({
|
|
|
26847
26847
|
d.value.style.top = "0px";
|
|
26848
26848
|
const oe = Math.max(
|
|
26849
26849
|
fe,
|
|
26850
|
-
Q + m.value.offsetTop + (j ?
|
|
26850
|
+
Q + m.value.offsetTop + (j ? ae : 0) + Pe
|
|
26851
26851
|
) + it;
|
|
26852
26852
|
d.value.style.height = `${oe}px`, m.value.scrollTop = Fe - fe + m.value.offsetTop;
|
|
26853
26853
|
}
|
|
@@ -28515,14 +28515,14 @@ function Nj(t, e = {}) {
|
|
|
28515
28515
|
function J(z) {
|
|
28516
28516
|
return Q(z, P);
|
|
28517
28517
|
}
|
|
28518
|
-
function
|
|
28518
|
+
function ae(z) {
|
|
28519
28519
|
const H = z.charCodeAt(0);
|
|
28520
28520
|
return H >= 48 && H <= 57 || // 0-9
|
|
28521
28521
|
H >= 65 && H <= 70 || // A-F
|
|
28522
28522
|
H >= 97 && H <= 102;
|
|
28523
28523
|
}
|
|
28524
28524
|
function de(z) {
|
|
28525
|
-
return Q(z,
|
|
28525
|
+
return Q(z, ae);
|
|
28526
28526
|
}
|
|
28527
28527
|
function fe(z) {
|
|
28528
28528
|
let H = "", he = "";
|
|
@@ -28655,7 +28655,7 @@ function Nj(t, e = {}) {
|
|
|
28655
28655
|
if (I(z))
|
|
28656
28656
|
return H.braceNest > 0 && f(mt.UNTERMINATED_CLOSING_BRACE, i(), 0), he = h(H, 1, Ae(z)), H.braceNest = 0, H.inLinked = !1, he;
|
|
28657
28657
|
if (H.braceNest > 0 && (H.currentType === 4 || H.currentType === 5 || H.currentType === 6))
|
|
28658
|
-
return f(mt.UNTERMINATED_CLOSING_BRACE, i(), 0), H.braceNest = 0,
|
|
28658
|
+
return f(mt.UNTERMINATED_CLOSING_BRACE, i(), 0), H.braceNest = 0, se(z, H);
|
|
28659
28659
|
if (Ke = C(z, H))
|
|
28660
28660
|
return he = h(H, 4, Pe(z)), w(z), he;
|
|
28661
28661
|
if (yt = E(z, H))
|
|
@@ -28696,10 +28696,10 @@ function Nj(t, e = {}) {
|
|
|
28696
28696
|
/* TokenChars.LinkedDelimiter */
|
|
28697
28697
|
);
|
|
28698
28698
|
default:
|
|
28699
|
-
return I(z) ? (Se = h(H, 1, Ae(z)), H.braceNest = 0, H.inLinked = !1, Se) : k(z, H) || F(z, H) ? (w(z), ot(z, H)) : A(z, H) ? (w(z), h(H, 11, _e(z))) : U(z, H) ? (w(z), Ke === "{" ? We(z, H) || Se : h(H, 10, ie(z))) : (he === 7 && f(mt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1,
|
|
28699
|
+
return I(z) ? (Se = h(H, 1, Ae(z)), H.braceNest = 0, H.inLinked = !1, Se) : k(z, H) || F(z, H) ? (w(z), ot(z, H)) : A(z, H) ? (w(z), h(H, 11, _e(z))) : U(z, H) ? (w(z), Ke === "{" ? We(z, H) || Se : h(H, 10, ie(z))) : (he === 7 && f(mt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, se(z, H));
|
|
28700
28700
|
}
|
|
28701
28701
|
}
|
|
28702
|
-
function
|
|
28702
|
+
function se(z, H) {
|
|
28703
28703
|
let he = {
|
|
28704
28704
|
type: 13
|
|
28705
28705
|
/* TokenTypes.EOF */
|
|
@@ -28736,7 +28736,7 @@ function Nj(t, e = {}) {
|
|
|
28736
28736
|
l,
|
|
28737
28737
|
13
|
|
28738
28738
|
/* TokenTypes.EOF */
|
|
28739
|
-
) :
|
|
28739
|
+
) : se(o, l);
|
|
28740
28740
|
}
|
|
28741
28741
|
return {
|
|
28742
28742
|
nextToken: $e,
|
|
@@ -30556,7 +30556,7 @@ function Uv(t = {}) {
|
|
|
30556
30556
|
function J(ue) {
|
|
30557
30557
|
ue !== null && (x = Yw(ue)), w = ue, A.missing = x;
|
|
30558
30558
|
}
|
|
30559
|
-
function
|
|
30559
|
+
function ae(ue, Te) {
|
|
30560
30560
|
return ue !== "translate" || !Te.resolvedMessage;
|
|
30561
30561
|
}
|
|
30562
30562
|
const de = (ue, Te, we, Ne, Je, gt) => {
|
|
@@ -30570,7 +30570,7 @@ function Uv(t = {}) {
|
|
|
30570
30570
|
if (we !== "translate exists" && // for not `te` (e.g `t`)
|
|
30571
30571
|
Rn(Xt) && Xt === Zh || we === "translate exists" && !Xt) {
|
|
30572
30572
|
const [wn, wi] = Te();
|
|
30573
|
-
if (process.env.NODE_ENV !== "production" && e && ze(wn) &&
|
|
30573
|
+
if (process.env.NODE_ENV !== "production" && e && ze(wn) && ae(we, wi) && (g && (Qh(m, wn) || N_(h, wn)) && Ys(e0(Rs.FALLBACK_TO_ROOT, {
|
|
30574
30574
|
key: wn,
|
|
30575
30575
|
type: we
|
|
30576
30576
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -30660,7 +30660,7 @@ function Uv(t = {}) {
|
|
|
30660
30660
|
function ot(ue) {
|
|
30661
30661
|
return u.value[ue] || {};
|
|
30662
30662
|
}
|
|
30663
|
-
function
|
|
30663
|
+
function se(ue, Te) {
|
|
30664
30664
|
if (r) {
|
|
30665
30665
|
const we = { [ue]: Te };
|
|
30666
30666
|
for (const Ne in we)
|
|
@@ -30761,7 +30761,7 @@ function Uv(t = {}) {
|
|
|
30761
30761
|
},
|
|
30762
30762
|
t: fe,
|
|
30763
30763
|
getLocaleMessage: ot,
|
|
30764
|
-
setLocaleMessage:
|
|
30764
|
+
setLocaleMessage: se,
|
|
30765
30765
|
mergeLocaleMessage: $e,
|
|
30766
30766
|
getPostTranslationHandler: Y,
|
|
30767
30767
|
setPostTranslationHandler: q,
|
|
@@ -31688,7 +31688,7 @@ const JK = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31688
31688
|
mode: {}
|
|
31689
31689
|
},
|
|
31690
31690
|
setup(t) {
|
|
31691
|
-
const e = lR(() => import("./BulkSpellChecker-
|
|
31691
|
+
const e = lR(() => import("./BulkSpellChecker-CbU_sVqs.mjs")), { t: n } = Jt(), o = t, r = Gt("isEditable", $(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = X(() => {
|
|
31692
31692
|
const f = [...o.editor.extensionManager.extensions].sort((m, g) => m.name === "superText" ? 1 : g.name === "superText" ? -1 : 0);
|
|
31693
31693
|
let h = [];
|
|
31694
31694
|
for (const m of f) {
|
|
@@ -35893,26 +35893,26 @@ const k1 = xS, T8 = Ls, k8 = Symbol("nomatch"), oJ = 7, NS = function(t) {
|
|
|
35893
35893
|
function u(P) {
|
|
35894
35894
|
let J = P.className + " ";
|
|
35895
35895
|
J += P.parentNode ? P.parentNode.className : "";
|
|
35896
|
-
const
|
|
35897
|
-
if (
|
|
35898
|
-
const de = U(
|
|
35899
|
-
return de || (S8(i.replace("{}",
|
|
35896
|
+
const ae = a.languageDetectRe.exec(J);
|
|
35897
|
+
if (ae) {
|
|
35898
|
+
const de = U(ae[1]);
|
|
35899
|
+
return de || (S8(i.replace("{}", ae[1])), S8("Falling back to no-highlight mode for this block.", P)), de ? ae[1] : "no-highlight";
|
|
35900
35900
|
}
|
|
35901
35901
|
return J.split(/\s+/).find((de) => l(de) || U(de));
|
|
35902
35902
|
}
|
|
35903
|
-
function d(P, J,
|
|
35903
|
+
function d(P, J, ae) {
|
|
35904
35904
|
let de = "", fe = "";
|
|
35905
|
-
typeof J == "object" ? (de = P,
|
|
35906
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J),
|
|
35905
|
+
typeof J == "object" ? (de = P, ae = J.ignoreIllegals, fe = J.language) : (Sl("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Sl("10.7.0", `Please use highlight(code, options) instead.
|
|
35906
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), ae === void 0 && (ae = !0);
|
|
35907
35907
|
const Re = {
|
|
35908
35908
|
code: de,
|
|
35909
35909
|
language: fe
|
|
35910
35910
|
};
|
|
35911
35911
|
Y("before:highlight", Re);
|
|
35912
|
-
const Pe = Re.result ? Re.result : f(Re.language, Re.code,
|
|
35912
|
+
const Pe = Re.result ? Re.result : f(Re.language, Re.code, ae);
|
|
35913
35913
|
return Pe.code = Re.code, Y("after:highlight", Pe), Pe;
|
|
35914
35914
|
}
|
|
35915
|
-
function f(P, J,
|
|
35915
|
+
function f(P, J, ae, de) {
|
|
35916
35916
|
const fe = /* @__PURE__ */ Object.create(null);
|
|
35917
35917
|
function Re(we, Ne) {
|
|
35918
35918
|
return we.keywords[Ne];
|
|
@@ -35927,13 +35927,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
35927
35927
|
let Ne = H.keywordPatternRe.exec(Ke), Je = "";
|
|
35928
35928
|
for (; Ne; ) {
|
|
35929
35929
|
Je += Ke.substring(we, Ne.index);
|
|
35930
|
-
const gt =
|
|
35930
|
+
const gt = se.case_insensitive ? Ne[0].toLowerCase() : Ne[0], Xt = Re(H, gt);
|
|
35931
35931
|
if (Xt) {
|
|
35932
35932
|
const [wn, wi] = Xt;
|
|
35933
35933
|
if (Se.addText(Je), Je = "", fe[gt] = (fe[gt] || 0) + 1, fe[gt] <= oJ && (yt += wi), wn.startsWith("_"))
|
|
35934
35934
|
Je += Ne[0];
|
|
35935
35935
|
else {
|
|
35936
|
-
const pe =
|
|
35936
|
+
const pe = se.classNameAliases[wn] || wn;
|
|
35937
35937
|
it(Ne[0], pe);
|
|
35938
35938
|
}
|
|
35939
35939
|
} else
|
|
@@ -35970,12 +35970,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
35970
35970
|
Je++;
|
|
35971
35971
|
continue;
|
|
35972
35972
|
}
|
|
35973
|
-
const Xt =
|
|
35973
|
+
const Xt = se.classNameAliases[we[Je]] || we[Je], wn = Ne[Je];
|
|
35974
35974
|
Xt ? it(wn, Xt) : (Ke = wn, Pe(), Ke = ""), Je++;
|
|
35975
35975
|
}
|
|
35976
35976
|
}
|
|
35977
35977
|
function oe(we, Ne) {
|
|
35978
|
-
return we.scope && typeof we.scope == "string" && Se.openNode(
|
|
35978
|
+
return we.scope && typeof we.scope == "string" && Se.openNode(se.classNameAliases[we.scope] || we.scope), we.beginScope && (we.beginScope._wrap ? (it(Ke, se.classNameAliases[we.beginScope._wrap] || we.beginScope._wrap), Ke = "") : we.beginScope._multi && (j(we.beginScope, Ne), Ke = "")), H = Object.create(we, { parent: { value: H } }), H;
|
|
35979
35979
|
}
|
|
35980
35980
|
function me(we, Ne, Je) {
|
|
35981
35981
|
let gt = yY(we.endRe, Je);
|
|
@@ -36016,7 +36016,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36016
36016
|
}
|
|
36017
36017
|
function Ae() {
|
|
36018
36018
|
const we = [];
|
|
36019
|
-
for (let Ne = H; Ne !==
|
|
36019
|
+
for (let Ne = H; Ne !== se; Ne = Ne.parent)
|
|
36020
36020
|
Ne.scope && we.unshift(Ne.scope);
|
|
36021
36021
|
we.forEach((Ne) => Se.openNode(Ne));
|
|
36022
36022
|
}
|
|
@@ -36034,7 +36034,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36034
36034
|
}
|
|
36035
36035
|
if (We = Ne, Ne.type === "begin")
|
|
36036
36036
|
return _e(Ne);
|
|
36037
|
-
if (Ne.type === "illegal" && !
|
|
36037
|
+
if (Ne.type === "illegal" && !ae) {
|
|
36038
36038
|
const gt = new Error('Illegal lexeme "' + Je + '" for mode "' + (H.scope || "<unnamed>") + '"');
|
|
36039
36039
|
throw gt.mode = H, gt;
|
|
36040
36040
|
} else if (Ne.type === "end") {
|
|
@@ -36048,17 +36048,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36048
36048
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
36049
36049
|
return Ke += Je, Je.length;
|
|
36050
36050
|
}
|
|
36051
|
-
const
|
|
36052
|
-
if (!
|
|
36051
|
+
const se = U(P);
|
|
36052
|
+
if (!se)
|
|
36053
36053
|
throw Aa(i.replace("{}", P)), new Error('Unknown language: "' + P + '"');
|
|
36054
|
-
const $e = QY(
|
|
36054
|
+
const $e = QY(se);
|
|
36055
36055
|
let z = "", H = de || $e;
|
|
36056
36056
|
const he = {}, Se = new a.__emitter(a);
|
|
36057
36057
|
Ae();
|
|
36058
36058
|
let Ke = "", yt = 0, rt = 0, ue = 0, Te = !1;
|
|
36059
36059
|
try {
|
|
36060
|
-
if (
|
|
36061
|
-
|
|
36060
|
+
if (se.__emitTokens)
|
|
36061
|
+
se.__emitTokens(J, Se);
|
|
36062
36062
|
else {
|
|
36063
36063
|
for (H.matcher.considerAll(); ; ) {
|
|
36064
36064
|
ue++, Te ? Te = !1 : H.matcher.considerAll(), H.matcher.lastIndex = rt;
|
|
@@ -36118,10 +36118,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36118
36118
|
}
|
|
36119
36119
|
function m(P, J) {
|
|
36120
36120
|
J = J || a.languages || Object.keys(e);
|
|
36121
|
-
const
|
|
36121
|
+
const ae = h(P), de = J.filter(U).filter(K).map(
|
|
36122
36122
|
(Fe) => f(Fe, P, !1)
|
|
36123
36123
|
);
|
|
36124
|
-
de.unshift(
|
|
36124
|
+
de.unshift(ae);
|
|
36125
36125
|
const fe = de.sort((Fe, it) => {
|
|
36126
36126
|
if (Fe.relevance !== it.relevance) return it.relevance - Fe.relevance;
|
|
36127
36127
|
if (Fe.language && it.language) {
|
|
@@ -36134,17 +36134,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36134
36134
|
}), [Re, Pe] = fe, st = Re;
|
|
36135
36135
|
return st.secondBest = Pe, st;
|
|
36136
36136
|
}
|
|
36137
|
-
function g(P, J,
|
|
36138
|
-
const de = J && n[J] ||
|
|
36137
|
+
function g(P, J, ae) {
|
|
36138
|
+
const de = J && n[J] || ae;
|
|
36139
36139
|
P.classList.add("hljs"), P.classList.add(`language-${de}`);
|
|
36140
36140
|
}
|
|
36141
36141
|
function y(P) {
|
|
36142
36142
|
let J = null;
|
|
36143
|
-
const
|
|
36144
|
-
if (l(
|
|
36143
|
+
const ae = u(P);
|
|
36144
|
+
if (l(ae)) return;
|
|
36145
36145
|
if (Y(
|
|
36146
36146
|
"before:highlightElement",
|
|
36147
|
-
{ el: P, language:
|
|
36147
|
+
{ el: P, language: ae }
|
|
36148
36148
|
), P.dataset.highlighted) {
|
|
36149
36149
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", P);
|
|
36150
36150
|
return;
|
|
@@ -36155,8 +36155,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36155
36155
|
P.innerHTML
|
|
36156
36156
|
);
|
|
36157
36157
|
J = P;
|
|
36158
|
-
const de = J.textContent, fe =
|
|
36159
|
-
P.innerHTML = fe.value, P.dataset.highlighted = "yes", g(P,
|
|
36158
|
+
const de = J.textContent, fe = ae ? d(de, { language: ae, ignoreIllegals: !0 }) : m(de);
|
|
36159
|
+
P.innerHTML = fe.value, P.dataset.highlighted = "yes", g(P, ae, fe.language), P.result = {
|
|
36160
36160
|
language: fe.language,
|
|
36161
36161
|
// TODO: remove with version 11.0
|
|
36162
36162
|
re: fe.relevance,
|
|
@@ -36188,17 +36188,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36188
36188
|
}
|
|
36189
36189
|
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
|
|
36190
36190
|
function k(P, J) {
|
|
36191
|
-
let
|
|
36191
|
+
let ae = null;
|
|
36192
36192
|
try {
|
|
36193
|
-
|
|
36193
|
+
ae = J(t);
|
|
36194
36194
|
} catch (de) {
|
|
36195
36195
|
if (Aa("Language definition for '{}' could not be registered.".replace("{}", P)), r)
|
|
36196
36196
|
Aa(de);
|
|
36197
36197
|
else
|
|
36198
36198
|
throw de;
|
|
36199
|
-
|
|
36199
|
+
ae = s;
|
|
36200
36200
|
}
|
|
36201
|
-
|
|
36201
|
+
ae.name || (ae.name = P), e[P] = ae, ae.rawDefinition = J.bind(null, t), ae.aliases && I(ae.aliases, { languageName: P });
|
|
36202
36202
|
}
|
|
36203
36203
|
function A(P) {
|
|
36204
36204
|
delete e[P];
|
|
@@ -36212,8 +36212,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36212
36212
|
return P = (P || "").toLowerCase(), e[P] || e[n[P]];
|
|
36213
36213
|
}
|
|
36214
36214
|
function I(P, { languageName: J }) {
|
|
36215
|
-
typeof P == "string" && (P = [P]), P.forEach((
|
|
36216
|
-
n[
|
|
36215
|
+
typeof P == "string" && (P = [P]), P.forEach((ae) => {
|
|
36216
|
+
n[ae.toLowerCase()] = J;
|
|
36217
36217
|
});
|
|
36218
36218
|
}
|
|
36219
36219
|
function K(P) {
|
|
@@ -36239,9 +36239,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = P, de = J), se =
|
|
|
36239
36239
|
J !== -1 && o.splice(J, 1);
|
|
36240
36240
|
}
|
|
36241
36241
|
function Y(P, J) {
|
|
36242
|
-
const
|
|
36242
|
+
const ae = P;
|
|
36243
36243
|
o.forEach(function(de) {
|
|
36244
|
-
de[
|
|
36244
|
+
de[ae] && de[ae](J);
|
|
36245
36245
|
});
|
|
36246
36246
|
}
|
|
36247
36247
|
function q(P) {
|
|
@@ -42786,14 +42786,14 @@ const u0 = "paragraph", br = "page", xT = "Extend", wu = "Node", uee = wu + xT,
|
|
|
42786
42786
|
}), Le(i, (re) => {
|
|
42787
42787
|
!o.superTextElementId || o.superTextElementId === "" || (m.value = re !== (o.superTextInit ?? ""));
|
|
42788
42788
|
}), (re, ve) => {
|
|
42789
|
-
const Y = P2, q = D2, P = L2, J = R2,
|
|
42789
|
+
const Y = P2, q = D2, P = L2, J = R2, ae = I2, de = N2, fe = qee;
|
|
42790
42790
|
return M(), be(nt, null, [
|
|
42791
42791
|
D(de, { open: re.open }, {
|
|
42792
42792
|
default: N(() => [
|
|
42793
42793
|
D(b(Tv), null, {
|
|
42794
42794
|
default: N(() => [
|
|
42795
42795
|
D(b(kv), { class: "!pointer-events-none bg-black/30" }),
|
|
42796
|
-
D(
|
|
42796
|
+
D(ae, {
|
|
42797
42797
|
"is-overlay-transparent": "",
|
|
42798
42798
|
class: "p-0 gap-0 !animate-none !transition-none max-w-max",
|
|
42799
42799
|
"as-child": ""
|
|
@@ -48917,16 +48917,16 @@ function are({ pluginKey: t = sre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48917
48917
|
const I = (C = this.key) === null || C === void 0 ? void 0 : C.getState(_), K = (E = this.key) === null || E === void 0 ? void 0 : E.getState(x.state), Q = I.active && K.active && I.range.from !== K.range.from, re = !I.active && K.active, ve = I.active && !K.active, Y = !re && !ve && I.query !== K.query, q = re || Q && Y, P = Y || Q, J = ve || Q && Y;
|
|
48918
48918
|
if (!q && !P && !J)
|
|
48919
48919
|
return;
|
|
48920
|
-
const
|
|
48920
|
+
const ae = J && !q ? I : K, de = x.dom.querySelector(`[data-decoration-id="${ae.decorationId}"]`);
|
|
48921
48921
|
g = {
|
|
48922
48922
|
editor: e,
|
|
48923
|
-
range:
|
|
48924
|
-
query:
|
|
48925
|
-
text:
|
|
48923
|
+
range: ae.range,
|
|
48924
|
+
query: ae.query,
|
|
48925
|
+
text: ae.text,
|
|
48926
48926
|
items: [],
|
|
48927
48927
|
command: (fe) => u({
|
|
48928
48928
|
editor: e,
|
|
48929
|
-
range:
|
|
48929
|
+
range: ae.range,
|
|
48930
48930
|
props: fe
|
|
48931
48931
|
}),
|
|
48932
48932
|
decorationNode: de,
|
|
@@ -48939,7 +48939,7 @@ function are({ pluginKey: t = sre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
48939
48939
|
} : null
|
|
48940
48940
|
}, q && ((T = y == null ? void 0 : y.onBeforeStart) === null || T === void 0 || T.call(y, g)), P && ((k = y == null ? void 0 : y.onBeforeUpdate) === null || k === void 0 || k.call(y, g)), (P || q) && (g.items = await d({
|
|
48941
48941
|
editor: e,
|
|
48942
|
-
query:
|
|
48942
|
+
query: ae.query
|
|
48943
48943
|
})), J && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), P && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, g)), q && ((U = y == null ? void 0 : y.onStart) === null || U === void 0 || U.call(y, g));
|
|
48944
48944
|
},
|
|
48945
48945
|
destroy: () => {
|
|
@@ -53126,7 +53126,7 @@ const yse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53126
53126
|
superPreviewCustomClass: { default: void 0 },
|
|
53127
53127
|
minChar: {}
|
|
53128
53128
|
},
|
|
53129
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
53129
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
53130
53130
|
setup(t, { expose: e, emit: n }) {
|
|
53131
53131
|
const o = t, r = n, i = Co(Uo.RENDER_SUPER_TEXT), s = Qc(), a = ro(), {
|
|
53132
53132
|
isReady: l,
|
|
@@ -53351,7 +53351,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53351
53351
|
content: 26
|
|
53352
53352
|
}) }
|
|
53353
53353
|
},
|
|
53354
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
53354
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
53355
53355
|
setup(t, { expose: e, emit: n }) {
|
|
53356
53356
|
const o = t, r = n, i = Co(Uo.RENDER_SUPER_TEXT), s = Co(Uo.INCREASE_DECREASE_FONTSIZE), a = Qc(), l = ro(), {
|
|
53357
53357
|
state: u,
|
|
@@ -53426,8 +53426,8 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53426
53426
|
handlePaste: (ie, Ae) => {
|
|
53427
53427
|
const We = Ae.clipboardData;
|
|
53428
53428
|
if (!We) return !1;
|
|
53429
|
-
const ot = o.mode,
|
|
53430
|
-
return (ot === Ze.STRAIGHT || ot === Ze.REPORT) && ($e || z) ? (Ae.preventDefault(), !0) : z ? (Ae.preventDefault(),
|
|
53429
|
+
const ot = o.mode, se = Array.from(We.items), $e = se.some((H) => H.type.startsWith("image/")), z = se.some((H) => H.type.startsWith("video/"));
|
|
53430
|
+
return (ot === Ze.STRAIGHT || ot === Ze.REPORT) && ($e || z) ? (Ae.preventDefault(), !0) : z ? (Ae.preventDefault(), ae(["video"]) && se.forEach(async (H) => {
|
|
53431
53431
|
var rt;
|
|
53432
53432
|
if (!H.type.startsWith("video/")) return;
|
|
53433
53433
|
const he = H.getAsFile();
|
|
@@ -53444,8 +53444,8 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53444
53444
|
let H = Vr.fromJSON(Ae.doc.type.schema, z);
|
|
53445
53445
|
ot.push(H);
|
|
53446
53446
|
});
|
|
53447
|
-
const
|
|
53448
|
-
return De.maxOpen(
|
|
53447
|
+
const se = xe.fromArray(ot);
|
|
53448
|
+
return De.maxOpen(se);
|
|
53449
53449
|
}
|
|
53450
53450
|
},
|
|
53451
53451
|
onCreate: ({ editor: ie }) => {
|
|
@@ -53458,9 +53458,10 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53458
53458
|
}, fi),
|
|
53459
53459
|
extensions: Et.uniqBy(Et.reverse(b(C)), "name"),
|
|
53460
53460
|
editable: x.value,
|
|
53461
|
-
onFocus: () => {
|
|
53462
|
-
w(j.value);
|
|
53461
|
+
onFocus: (ie) => {
|
|
53462
|
+
w(j.value), r("onFocus", ie);
|
|
53463
53463
|
},
|
|
53464
|
+
onBlur: (ie) => r("onBlur", ie),
|
|
53464
53465
|
parseOptions: {
|
|
53465
53466
|
preserveWhitespace: "full"
|
|
53466
53467
|
}
|
|
@@ -53500,7 +53501,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53500
53501
|
return "";
|
|
53501
53502
|
}
|
|
53502
53503
|
}
|
|
53503
|
-
function
|
|
53504
|
+
function ae(ie) {
|
|
53504
53505
|
return ie.every((Ae) => I == null ? void 0 : I.extensionManager.extensions.find((We) => We.name === Ae));
|
|
53505
53506
|
}
|
|
53506
53507
|
Le(
|
|
@@ -53571,7 +53572,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53571
53572
|
});
|
|
53572
53573
|
return e({ editor: I }), (ie, Ae) => {
|
|
53573
53574
|
var he;
|
|
53574
|
-
const We = S0, ot = _0,
|
|
53575
|
+
const We = S0, ot = _0, se = E0, $e = r0, z = QK, H = HH;
|
|
53575
53576
|
return b(I) ? (M(), be("div", {
|
|
53576
53577
|
key: 0,
|
|
53577
53578
|
id: "vdc-editor",
|
|
@@ -53585,19 +53586,19 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
53585
53586
|
style: Nt(U.value)
|
|
53586
53587
|
}, [
|
|
53587
53588
|
!ie.hideBubble && !ie.disabled && x.value ? (M(), be(nt, { key: 0 }, [
|
|
53588
|
-
|
|
53589
|
+
ae([b(hd)]) ? (M(), B(We, {
|
|
53589
53590
|
key: 0,
|
|
53590
53591
|
editor: b(I)
|
|
53591
53592
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
53592
|
-
|
|
53593
|
+
ae([b(tl)]) ? (M(), B(ot, {
|
|
53593
53594
|
key: 1,
|
|
53594
53595
|
editor: b(I)
|
|
53595
53596
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
53596
|
-
|
|
53597
|
+
ae([b(Qs)]) ? (M(), B(se, {
|
|
53597
53598
|
key: 2,
|
|
53598
53599
|
editor: b(I)
|
|
53599
53600
|
}, null, 8, ["editor"])) : Oe("", !0),
|
|
53600
|
-
|
|
53601
|
+
ae([b(ea), b(ta)]) ? (M(), B($e, {
|
|
53601
53602
|
key: 3,
|
|
53602
53603
|
editor: b(I)
|
|
53603
53604
|
}, null, 8, ["editor"])) : Oe("", !0)
|
|
@@ -54085,7 +54086,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54085
54086
|
superPreviewCustomClass: {},
|
|
54086
54087
|
minChar: {}
|
|
54087
54088
|
},
|
|
54088
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
54089
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
54089
54090
|
setup(t, { expose: e, emit: n }) {
|
|
54090
54091
|
const o = t, r = n, i = Qc(), s = ro(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = Gt("isEditable", $(!0)), h = Jx(), m = X(() => o.mode === Ze.EDITOR), g = new ns({
|
|
54091
54092
|
enablePasteRules: !1,
|
|
@@ -54328,9 +54329,9 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54328
54329
|
};
|
|
54329
54330
|
const ye = 0 + (o.pushOtherPanes ? 0 : me.prevPanesSize), _e = 100 - (o.pushOtherPanes ? 0 : me.nextPanesSize), ie = Math.max(Math.min(k(j), _e), ye);
|
|
54330
54331
|
let Ae = [oe, oe + 1], We = i.value[Ae[0]] || null, ot = i.value[Ae[1]] || null;
|
|
54331
|
-
const
|
|
54332
|
-
if (
|
|
54333
|
-
|
|
54332
|
+
const se = We.max < 100 && ie >= We.max + me.prevPanesSize, $e = ot.max < 100 && ie <= 100 - (ot.max + I(oe + 1));
|
|
54333
|
+
if (se || $e) {
|
|
54334
|
+
se ? (We.size = We.max, ot.size = Math.max(100 - We.max - me.prevPanesSize - me.nextPanesSize, 0)) : (We.size = Math.max(100 - ot.max - me.prevPanesSize - I(oe + 1), 0), ot.size = ot.max);
|
|
54334
54335
|
return;
|
|
54335
54336
|
}
|
|
54336
54337
|
if (o.pushOtherPanes) {
|
|
@@ -54379,7 +54380,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54379
54380
|
Array.from(((oe = l.value) == null ? void 0 : oe.children) || []).some((ye) => (ye.className.includes("splitpanes__pane") && me++, ye.isSameNode(j.el))), i.value.splice(me, 0, { ...j, index: me }), i.value.forEach((ye, _e) => ye.index = _e), u.value && Rt(() => {
|
|
54380
54381
|
q(), de({ addedPane: i.value[me] }), Fe("pane-add", { pane: i.value[me] });
|
|
54381
54382
|
});
|
|
54382
|
-
},
|
|
54383
|
+
}, ae = (j) => {
|
|
54383
54384
|
const oe = i.value.findIndex((ye) => ye.id === j);
|
|
54384
54385
|
i.value[oe].el = null;
|
|
54385
54386
|
const me = i.value.splice(oe, 1)[0];
|
|
@@ -54454,7 +54455,7 @@ const qse = { class: "flex flex-1" }, G2 = /* @__PURE__ */ W({
|
|
|
54454
54455
|
(j = r.default) == null ? void 0 : j.call(r)
|
|
54455
54456
|
);
|
|
54456
54457
|
};
|
|
54457
|
-
return cn("panes", i), cn("indexedPanes", s), cn("horizontal", X(() => o.horizontal)), cn("requestUpdate", P), cn("onPaneAdd", J), cn("onPaneRemove",
|
|
54458
|
+
return cn("panes", i), cn("indexedPanes", s), cn("horizontal", X(() => o.horizontal)), cn("requestUpdate", P), cn("onPaneAdd", J), cn("onPaneRemove", ae), cn("onPaneClick", E), (j, oe) => (M(), B(ir(it)));
|
|
54458
54459
|
}
|
|
54459
54460
|
}, Na = {
|
|
54460
54461
|
__name: "pane",
|
|
@@ -54689,7 +54690,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
54689
54690
|
superPreviewCustomClass: {},
|
|
54690
54691
|
minChar: {}
|
|
54691
54692
|
},
|
|
54692
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
54693
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
54693
54694
|
setup(t, { expose: e, emit: n }) {
|
|
54694
54695
|
const o = t, r = n, i = new tae();
|
|
54695
54696
|
cn("isMobile", !0);
|
|
@@ -54705,7 +54706,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
54705
54706
|
cn("isEditable", x);
|
|
54706
54707
|
const _ = X(
|
|
54707
54708
|
() => [...u.extensions, ...Et.differenceBy(o.extensions, u.extensions, "name")].map(
|
|
54708
|
-
(
|
|
54709
|
+
(se, $e) => se.configure({ sort: $e })
|
|
54709
54710
|
)
|
|
54710
54711
|
), C = $(o.fontSizeDefault), E = $(o.fontFamilyDefault);
|
|
54711
54712
|
cn("fontSize", C), cn("fontFamily", E);
|
|
@@ -54718,10 +54719,10 @@ const yc = /* @__PURE__ */ W({
|
|
|
54718
54719
|
return {
|
|
54719
54720
|
bottom: "15px"
|
|
54720
54721
|
};
|
|
54721
|
-
const
|
|
54722
|
-
return { bottom: `${A.value -
|
|
54723
|
-
}), U = (
|
|
54724
|
-
const $e = parseInt(C.value || "12px"), z =
|
|
54722
|
+
const se = (($e = k.value) == null ? void 0 : $e.getBoundingClientRect().bottom) || 0;
|
|
54723
|
+
return { bottom: `${A.value - se + 10}px` };
|
|
54724
|
+
}), U = (se) => {
|
|
54725
|
+
const $e = parseInt(C.value || "12px"), z = se ? $e + 2 : $e - 2;
|
|
54725
54726
|
C.value = z + "px";
|
|
54726
54727
|
};
|
|
54727
54728
|
Zc(() => {
|
|
@@ -54746,36 +54747,37 @@ const yc = /* @__PURE__ */ W({
|
|
|
54746
54747
|
// disable Markdown when typing
|
|
54747
54748
|
content: fo(o.modelValue, o.disabled, o.mode),
|
|
54748
54749
|
editorProps: {
|
|
54749
|
-
handleKeyDown: Et.throttle((
|
|
54750
|
-
transformPastedHTML: (
|
|
54751
|
-
handlePaste(
|
|
54750
|
+
handleKeyDown: Et.throttle((se, $e) => $e.key === "Enter" && a.enter && !$e.shiftKey ? (r("enter"), !0) : !1, fi),
|
|
54751
|
+
transformPastedHTML: (se) => (se = se.replace(/\s*style="[^"]*"/g, ""), se),
|
|
54752
|
+
handlePaste(se, $e) {
|
|
54752
54753
|
var Se;
|
|
54753
54754
|
if (o.mode !== Ze.PLAIN_TEXT) return !1;
|
|
54754
54755
|
$e.preventDefault();
|
|
54755
|
-
const z = ((Se = $e.clipboardData) == null ? void 0 : Se.getData("text/plain")) || "", { tr: H, selection: he } =
|
|
54756
|
-
return
|
|
54756
|
+
const z = ((Se = $e.clipboardData) == null ? void 0 : Se.getData("text/plain")) || "", { tr: H, selection: he } = se.state;
|
|
54757
|
+
return se.dispatch(H.insertText(z, he.from)), !0;
|
|
54757
54758
|
}
|
|
54758
54759
|
},
|
|
54759
|
-
onCreate: ({ editor:
|
|
54760
|
-
m(
|
|
54760
|
+
onCreate: ({ editor: se }) => {
|
|
54761
|
+
m(se);
|
|
54761
54762
|
},
|
|
54762
|
-
onUpdate: Et.throttle(({ editor:
|
|
54763
|
+
onUpdate: Et.throttle(({ editor: se }) => {
|
|
54763
54764
|
f.value = !0;
|
|
54764
|
-
const $e = fe(
|
|
54765
|
-
r("update:modelValue", $e), r("change", { editor:
|
|
54765
|
+
const $e = fe(se, o.output);
|
|
54766
|
+
r("update:modelValue", $e), r("change", { editor: se, output: $e }), m(se), Q(se);
|
|
54766
54767
|
}, fi),
|
|
54767
54768
|
extensions: Et.uniqBy(Et.reverse(b(_)), "name"),
|
|
54768
54769
|
editable: x.value,
|
|
54769
|
-
onFocus: () => {
|
|
54770
|
-
|
|
54770
|
+
onFocus: (se) => {
|
|
54771
|
+
ae(), r("onFocus", se);
|
|
54771
54772
|
},
|
|
54773
|
+
onBlur: (se) => r("onBlur", se),
|
|
54772
54774
|
parseOptions: {
|
|
54773
54775
|
preserveWhitespace: "full"
|
|
54774
54776
|
}
|
|
54775
54777
|
});
|
|
54776
|
-
function Q(
|
|
54778
|
+
function Q(se) {
|
|
54777
54779
|
const $e = [];
|
|
54778
|
-
|
|
54780
|
+
se.state.doc.descendants((z) => {
|
|
54779
54781
|
z.type.name === "image" && $e.push({
|
|
54780
54782
|
id: z.attrs.id,
|
|
54781
54783
|
src: z.attrs.src
|
|
@@ -54784,17 +54786,17 @@ const yc = /* @__PURE__ */ W({
|
|
|
54784
54786
|
}
|
|
54785
54787
|
const re = $(), ve = $(), Y = $(!0), q = $(!1);
|
|
54786
54788
|
function P() {
|
|
54787
|
-
i.isNativeWebViewAvailable() && (i.receiveDataFromNative("keyboardDidShow", (
|
|
54789
|
+
i.isNativeWebViewAvailable() && (i.receiveDataFromNative("keyboardDidShow", (se) => {
|
|
54788
54790
|
q.value = !0;
|
|
54789
|
-
}), i.receiveDataFromNative("keyboardDidHide", (
|
|
54791
|
+
}), i.receiveDataFromNative("keyboardDidHide", (se) => {
|
|
54790
54792
|
q.value = !1;
|
|
54791
54793
|
}));
|
|
54792
54794
|
}
|
|
54793
|
-
function J(
|
|
54795
|
+
function J(se) {
|
|
54794
54796
|
const $e = document.querySelectorAll(
|
|
54795
54797
|
'[contenteditable="true"]:not(.tiptap), .simple-editor, input, textarea'
|
|
54796
|
-
), z = Array.from($e).some((H) => H.contains(
|
|
54797
|
-
if (
|
|
54798
|
+
), z = Array.from($e).some((H) => H.contains(se.target));
|
|
54799
|
+
if (se.type === "focusout") {
|
|
54798
54800
|
Y.value = !0;
|
|
54799
54801
|
return;
|
|
54800
54802
|
}
|
|
@@ -54803,34 +54805,34 @@ const yc = /* @__PURE__ */ W({
|
|
|
54803
54805
|
k4(document, "focusin", J), k4(document, "focusout", J), pt(() => {
|
|
54804
54806
|
re.value = K, P();
|
|
54805
54807
|
});
|
|
54806
|
-
function se
|
|
54807
|
-
re.value =
|
|
54808
|
+
function ae(se) {
|
|
54809
|
+
re.value = se ?? K;
|
|
54808
54810
|
}
|
|
54809
54811
|
const de = X(() => {
|
|
54810
|
-
const
|
|
54811
|
-
return re.value.storage.superText.isShowSuperInputMoblie && !
|
|
54812
|
+
const se = re.value.view.dom.dataset.disableSuperInput && JSON.parse(re.value.view.dom.dataset.disableSuperInput);
|
|
54813
|
+
return re.value.storage.superText.isShowSuperInputMoblie && !se;
|
|
54812
54814
|
});
|
|
54813
|
-
function fe(
|
|
54814
|
-
if (!
|
|
54815
|
-
if (
|
|
54815
|
+
function fe(se, $e) {
|
|
54816
|
+
if (!se) return "";
|
|
54817
|
+
if (se.isEmpty)
|
|
54816
54818
|
return $e === "json" ? {} : "";
|
|
54817
54819
|
if (o.mode === Ze.PLAIN_TEXT)
|
|
54818
|
-
return
|
|
54820
|
+
return se.getText({ blockSeparator: `
|
|
54819
54821
|
` });
|
|
54820
54822
|
switch ($e) {
|
|
54821
54823
|
case "html":
|
|
54822
|
-
return
|
|
54824
|
+
return se.getHTML();
|
|
54823
54825
|
case "json":
|
|
54824
|
-
return
|
|
54826
|
+
return se.getJSON();
|
|
54825
54827
|
case "text":
|
|
54826
|
-
return
|
|
54828
|
+
return se.getText({ blockSeparator: `
|
|
54827
54829
|
` });
|
|
54828
54830
|
default:
|
|
54829
54831
|
return "";
|
|
54830
54832
|
}
|
|
54831
54833
|
}
|
|
54832
|
-
function Re(
|
|
54833
|
-
return
|
|
54834
|
+
function Re(se) {
|
|
54835
|
+
return se.every(($e) => K == null ? void 0 : K.extensionManager.extensions.find((z) => z.name === $e));
|
|
54834
54836
|
}
|
|
54835
54837
|
Le(
|
|
54836
54838
|
() => g.languages,
|
|
@@ -54839,10 +54841,10 @@ const yc = /* @__PURE__ */ W({
|
|
|
54839
54841
|
}
|
|
54840
54842
|
), Le(
|
|
54841
54843
|
() => o.modelValue,
|
|
54842
|
-
(
|
|
54843
|
-
if (!K || Et.isEqual(fe(K, o.output),
|
|
54844
|
+
(se) => {
|
|
54845
|
+
if (!K || Et.isEqual(fe(K, o.output), se)) return;
|
|
54844
54846
|
const { from: $e, to: z } = K.state.selection;
|
|
54845
|
-
K.commands.setTextSelection({ from: $e, to: z }), K.commands.setContent(fo(
|
|
54847
|
+
K.commands.setTextSelection({ from: $e, to: z }), K.commands.setContent(fo(se, o.disabled, o.mode), !1);
|
|
54846
54848
|
},
|
|
54847
54849
|
{ deep: !0 }
|
|
54848
54850
|
), Le(
|
|
@@ -54853,57 +54855,57 @@ const yc = /* @__PURE__ */ W({
|
|
|
54853
54855
|
{ immediate: !0 }
|
|
54854
54856
|
), Le(
|
|
54855
54857
|
() => x.value,
|
|
54856
|
-
(
|
|
54858
|
+
(se) => {
|
|
54857
54859
|
var $e;
|
|
54858
|
-
K == null || K.setEditable(
|
|
54860
|
+
K == null || K.setEditable(se), ($e = K == null ? void 0 : K.commands) != null && $e.setIsEnableSuggestion && K.commands.setIsEnableSuggestion(se);
|
|
54859
54861
|
},
|
|
54860
54862
|
{ immediate: !0 }
|
|
54861
54863
|
), Le(
|
|
54862
54864
|
() => h.value,
|
|
54863
54865
|
() => {
|
|
54864
|
-
h.value && h.value.on("selectionUpdate", ({ editor:
|
|
54865
|
-
r("changed:selection", { editor:
|
|
54866
|
+
h.value && h.value.on("selectionUpdate", ({ editor: se }) => {
|
|
54867
|
+
r("changed:selection", { editor: se });
|
|
54866
54868
|
});
|
|
54867
54869
|
}
|
|
54868
54870
|
), $n(() => {
|
|
54869
|
-
var
|
|
54870
|
-
K == null || K.destroy(), (
|
|
54871
|
+
var se;
|
|
54872
|
+
K == null || K.destroy(), (se = re.value) == null || se.destroy();
|
|
54871
54873
|
}), pd(sd.SAVE, () => {
|
|
54872
54874
|
localStorage.setItem("content", fe(K, "html"));
|
|
54873
54875
|
});
|
|
54874
|
-
const Pe = (
|
|
54876
|
+
const Pe = (se) => {
|
|
54875
54877
|
var z;
|
|
54876
54878
|
const $e = re.value ?? K;
|
|
54877
54879
|
if ($e) {
|
|
54878
54880
|
const { from: H } = $e.view.state.selection;
|
|
54879
54881
|
$e.commands.insertContentAt(H, {
|
|
54880
54882
|
type: "superText",
|
|
54881
|
-
attrs: { "data-id": ts(6), "data-text":
|
|
54883
|
+
attrs: { "data-id": ts(6), "data-text": se }
|
|
54882
54884
|
});
|
|
54883
54885
|
}
|
|
54884
54886
|
(z = re.value) == null || z.commands.toggleSuperInputMoblie();
|
|
54885
|
-
}, st = (
|
|
54887
|
+
}, st = (se) => {
|
|
54886
54888
|
var z;
|
|
54887
54889
|
const $e = re.value ?? K;
|
|
54888
54890
|
if ($e) {
|
|
54889
54891
|
const { from: H } = $e.view.state.selection;
|
|
54890
54892
|
$e.commands.insertContentAt(H, {
|
|
54891
54893
|
type: "configPlan",
|
|
54892
|
-
attrs: { "data-id": ts(6), "data-text":
|
|
54894
|
+
attrs: { "data-id": ts(6), "data-text": se }
|
|
54893
54895
|
});
|
|
54894
54896
|
}
|
|
54895
54897
|
(z = re.value) == null || z.commands.toggleConfigPlanInput();
|
|
54896
54898
|
};
|
|
54897
|
-
function Fe(
|
|
54898
|
-
|
|
54899
|
+
function Fe(se) {
|
|
54900
|
+
se === Ze.STRAIGHT && K.commands.focus("end"), se === Ze.EDITOR && K.commands.focus("end");
|
|
54899
54901
|
}
|
|
54900
54902
|
pt(() => {
|
|
54901
|
-
var
|
|
54902
|
-
o.autoFocus && Fe(o.mode), (
|
|
54903
|
+
var se;
|
|
54904
|
+
o.autoFocus && Fe(o.mode), (se = K == null ? void 0 : K.commands) != null && se.setIsMobile && K.commands.setIsMobile(!0);
|
|
54903
54905
|
}), Le(
|
|
54904
54906
|
() => o.mode,
|
|
54905
|
-
(
|
|
54906
|
-
o.autoFocus && Fe(
|
|
54907
|
+
(se) => {
|
|
54908
|
+
o.autoFocus && Fe(se);
|
|
54907
54909
|
}
|
|
54908
54910
|
);
|
|
54909
54911
|
const {
|
|
@@ -54923,9 +54925,9 @@ const yc = /* @__PURE__ */ W({
|
|
|
54923
54925
|
ie();
|
|
54924
54926
|
});
|
|
54925
54927
|
const ot = $();
|
|
54926
|
-
return ph(ot, (
|
|
54928
|
+
return ph(ot, (se) => {
|
|
54927
54929
|
it.value = !1;
|
|
54928
|
-
}), vd(K), e({ editor: K }), (
|
|
54930
|
+
}), vd(K), e({ editor: K }), (se, $e) => {
|
|
54929
54931
|
var rt, ue, Te, we, Ne;
|
|
54930
54932
|
const z = S0, H = _0, he = E0, Se = r0, Ke = _7, yt = Gse;
|
|
54931
54933
|
return M(), be(nt, null, [
|
|
@@ -54939,13 +54941,13 @@ const yc = /* @__PURE__ */ W({
|
|
|
54939
54941
|
b(Ye)(
|
|
54940
54942
|
"vdc-editor moblie relative w-full flex flex-col",
|
|
54941
54943
|
!o.height && "flex-1",
|
|
54942
|
-
|
|
54943
|
-
|
|
54944
|
-
|
|
54944
|
+
se.editorClass,
|
|
54945
|
+
se.disabled && "disabled",
|
|
54946
|
+
se.mode !== b(Ze).EDITOR && "editor-line"
|
|
54945
54947
|
)
|
|
54946
54948
|
)
|
|
54947
54949
|
}, [
|
|
54948
|
-
!
|
|
54950
|
+
!se.hideBubble && !se.disabled && x.value ? (M(), be(nt, { key: 0 }, [
|
|
54949
54951
|
Re([b(hd)]) ? (M(), B(z, {
|
|
54950
54952
|
key: 0,
|
|
54951
54953
|
editor: b(K)
|
|
@@ -54963,24 +54965,24 @@ const yc = /* @__PURE__ */ W({
|
|
|
54963
54965
|
editor: b(K)
|
|
54964
54966
|
}, null, 8, ["editor"])) : Oe("", !0)
|
|
54965
54967
|
], 64)) : Oe("", !0),
|
|
54966
|
-
|
|
54968
|
+
se.hideToolbar ? Oe("", !0) : (M(), B(Ke, {
|
|
54967
54969
|
key: 1,
|
|
54968
54970
|
editor: re.value,
|
|
54969
|
-
mode:
|
|
54970
|
-
disabled:
|
|
54971
|
-
class: Ve(["mb-[3px]",
|
|
54972
|
-
"active-extensions":
|
|
54971
|
+
mode: se.mode,
|
|
54972
|
+
disabled: se.disabled,
|
|
54973
|
+
class: Ve(["mb-[3px]", se.toolBarClass]),
|
|
54974
|
+
"active-extensions": se.mode === b(Ze).EDITOR ? [Xc] : void 0
|
|
54973
54975
|
}, null, 8, ["editor", "mode", "disabled", "class", "active-extensions"])),
|
|
54974
54976
|
(M(), B(su, { to: "body" }, [
|
|
54975
54977
|
ne("div", {
|
|
54976
54978
|
class: "fixed left-5 right-5 z-[12]",
|
|
54977
54979
|
style: Nt(F.value)
|
|
54978
54980
|
}, [
|
|
54979
|
-
|
|
54981
|
+
se.isShowFormatControlBar ? (M(), B(yt, {
|
|
54980
54982
|
key: 0,
|
|
54981
54983
|
editor: re.value,
|
|
54982
|
-
mode:
|
|
54983
|
-
disabled: !x.value ||
|
|
54984
|
+
mode: se.mode,
|
|
54985
|
+
disabled: !x.value || se.disabled,
|
|
54984
54986
|
style: Nt({ visibility: Y.value ? "visible" : "hidden" })
|
|
54985
54987
|
}, null, 8, ["editor", "mode", "disabled", "style"])) : Oe("", !0)
|
|
54986
54988
|
], 4)
|
|
@@ -54988,9 +54990,10 @@ const yc = /* @__PURE__ */ W({
|
|
|
54988
54990
|
D(b(Y2), {
|
|
54989
54991
|
class: Ve(
|
|
54990
54992
|
b(Ye)(
|
|
54991
|
-
"flex-1 basis-0 flex flex-col
|
|
54992
|
-
|
|
54993
|
-
|
|
54993
|
+
"flex-1 basis-0 flex flex-col",
|
|
54994
|
+
!w.value && "[&_*]:!font-inherit [&_*]:!text-font-size-inherit",
|
|
54995
|
+
E.value && !w.value && "[&_*]:!font-inherit",
|
|
54996
|
+
C.value && !w.value && "[&_*]:!text-font-size-inherit"
|
|
54994
54997
|
)
|
|
54995
54998
|
),
|
|
54996
54999
|
style: Nt({ ...T.value }),
|
|
@@ -54999,7 +55002,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
54999
55002
|
onResized: b(_e)
|
|
55000
55003
|
}, {
|
|
55001
55004
|
default: N(() => [
|
|
55002
|
-
(
|
|
55005
|
+
(se.mode === b(Ze).REPORT || se.mode === b(Ze).EDITOR && se.isScreenSplit) && !se.hideComment ? (M(), B(b(Na), {
|
|
55003
55006
|
key: 0,
|
|
55004
55007
|
size: b(me),
|
|
55005
55008
|
class: "border-none p-0 flex flex-col"
|
|
@@ -55007,34 +55010,34 @@ const yc = /* @__PURE__ */ W({
|
|
|
55007
55010
|
default: N(() => {
|
|
55008
55011
|
var Je;
|
|
55009
55012
|
return [
|
|
55010
|
-
(Je =
|
|
55013
|
+
(Je = se.titleBarComment) != null && Je.title ? (M(), B(Ab, {
|
|
55011
55014
|
key: 0,
|
|
55012
|
-
"title-bar":
|
|
55015
|
+
"title-bar": se.titleBarComment,
|
|
55013
55016
|
class: "mb-[3px]"
|
|
55014
55017
|
}, null, 8, ["title-bar"])) : Oe("", !0),
|
|
55015
55018
|
ne("div", {
|
|
55016
55019
|
class: Ve(
|
|
55017
55020
|
b(Ye)(
|
|
55018
55021
|
"flex-1 !overflow-y-auto basis-0 flex h-full flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",
|
|
55019
|
-
|
|
55022
|
+
se.disabled && "border-transparent",
|
|
55020
55023
|
Y.value && !q.value && "pb-16",
|
|
55021
|
-
|
|
55024
|
+
se.contentClass
|
|
55022
55025
|
)
|
|
55023
55026
|
)
|
|
55024
55027
|
}, [
|
|
55025
55028
|
D(eae, {
|
|
55026
55029
|
ref_key: "editorCommentRef",
|
|
55027
55030
|
ref: ve,
|
|
55028
|
-
mode:
|
|
55029
|
-
extensions:
|
|
55031
|
+
mode: se.mode,
|
|
55032
|
+
extensions: se.extensions,
|
|
55030
55033
|
"model-value": o.comment,
|
|
55031
55034
|
disabled: o.disabled,
|
|
55032
|
-
"disable-super-input":
|
|
55033
|
-
"field-name-comment":
|
|
55034
|
-
"is-show-format-control-bar":
|
|
55035
|
-
"auto-focus":
|
|
55035
|
+
"disable-super-input": se.disableSuperInput,
|
|
55036
|
+
"field-name-comment": se.fieldNameComment,
|
|
55037
|
+
"is-show-format-control-bar": se.isShowFormatControlBar,
|
|
55038
|
+
"auto-focus": se.autoFocus,
|
|
55036
55039
|
"onUpdate:modelValue": $e[0] || ($e[0] = (gt) => r("update:comment", gt)),
|
|
55037
|
-
onSetEditorSelected:
|
|
55040
|
+
onSetEditorSelected: ae
|
|
55038
55041
|
}, null, 8, ["mode", "extensions", "model-value", "disabled", "disable-super-input", "field-name-comment", "is-show-format-control-bar", "auto-focus"])
|
|
55039
55042
|
], 2)
|
|
55040
55043
|
];
|
|
@@ -55048,31 +55051,31 @@ const yc = /* @__PURE__ */ W({
|
|
|
55048
55051
|
default: N(() => {
|
|
55049
55052
|
var Je, gt;
|
|
55050
55053
|
return [
|
|
55051
|
-
(Je =
|
|
55054
|
+
(Je = se.titleBarContent) != null && Je.title ? (M(), B(Ab, {
|
|
55052
55055
|
key: 0,
|
|
55053
|
-
"title-bar":
|
|
55056
|
+
"title-bar": se.titleBarContent,
|
|
55054
55057
|
class: "mb-[3px]"
|
|
55055
55058
|
}, null, 8, ["title-bar"])) : Oe("", !0),
|
|
55056
55059
|
ne("div", {
|
|
55057
55060
|
class: Ve(
|
|
55058
55061
|
b(Ye)(
|
|
55059
55062
|
"flex-1 !overflow-y-auto basis-0 flex flex-col py-1.5 px-2.5 border border-ed-gray rounded-[5px] focus-within:border-ed-blue",
|
|
55060
|
-
|
|
55063
|
+
se.disabled && "border-transparent",
|
|
55061
55064
|
Y.value && !q.value && "pb-16",
|
|
55062
|
-
|
|
55065
|
+
se.contentClass
|
|
55063
55066
|
)
|
|
55064
55067
|
)
|
|
55065
55068
|
}, [
|
|
55066
|
-
(gt =
|
|
55069
|
+
(gt = se.fieldNameContent) != null && gt.label ? (M(), B(T0, {
|
|
55067
55070
|
key: 0,
|
|
55068
|
-
"field-name":
|
|
55069
|
-
mode:
|
|
55070
|
-
disabled:
|
|
55071
|
+
"field-name": se.fieldNameContent,
|
|
55072
|
+
mode: se.mode,
|
|
55073
|
+
disabled: se.disabled,
|
|
55071
55074
|
class: "mb-1"
|
|
55072
55075
|
}, null, 8, ["field-name", "mode", "disabled"])) : Oe("", !0),
|
|
55073
55076
|
D(X2, {
|
|
55074
55077
|
editor: b(K),
|
|
55075
|
-
mode:
|
|
55078
|
+
mode: se.mode
|
|
55076
55079
|
}, {
|
|
55077
55080
|
default: N(() => [
|
|
55078
55081
|
D(b(si), {
|
|
@@ -55081,7 +55084,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55081
55084
|
spellcheck: "true",
|
|
55082
55085
|
class: Ve([
|
|
55083
55086
|
"flex-1 flex-col relative break-all",
|
|
55084
|
-
|
|
55087
|
+
se.mode === b(Ze).PLAIN_TEXT && "plain-text",
|
|
55085
55088
|
!w.value && "[&_*:not(.super-text)]:!text-inherit [&_*]:!no-underline [&_*]:!font-normal"
|
|
55086
55089
|
])
|
|
55087
55090
|
}, null, 8, ["editor", "class"])
|
|
@@ -55097,7 +55100,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55097
55100
|
_: 1
|
|
55098
55101
|
}, 8, ["class", "style", "onReady", "onResized"])
|
|
55099
55102
|
], 6)) : Oe("", !0),
|
|
55100
|
-
b(it) && !
|
|
55103
|
+
b(it) && !se.disabled ? (M(), B(J2, {
|
|
55101
55104
|
key: 1,
|
|
55102
55105
|
ref_key: "splitToastRef",
|
|
55103
55106
|
ref: ot,
|
|
@@ -55119,7 +55122,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55119
55122
|
open: (we = re.value) == null ? void 0 : we.storage.configPlan.isShowConfigPlanInput,
|
|
55120
55123
|
"is-view-mode": !((Ne = re.value) != null && Ne.storage.configPlan.isShowConfigPlanInput),
|
|
55121
55124
|
editor: re.value,
|
|
55122
|
-
title:
|
|
55125
|
+
title: se.$t("editor.configPlan"),
|
|
55123
55126
|
onClose: $e[2] || ($e[2] = (Je) => re.value.commands.toggleConfigPlanInput()),
|
|
55124
55127
|
onSave: st
|
|
55125
55128
|
}, null, 8, ["open", "is-view-mode", "editor", "title"])) : Oe("", !0)
|
|
@@ -55295,30 +55298,30 @@ var S7 = { exports: {} };
|
|
|
55295
55298
|
this.segment = J, this.length = P, this.startInBefore = Y + J.beforeIndex, this.startInAfter = q + J.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = Y, this.segmentStartInAfter = q, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
|
|
55296
55299
|
}
|
|
55297
55300
|
function w(Y) {
|
|
55298
|
-
for (var q = "char", P = "", J = "",
|
|
55301
|
+
for (var q = "char", P = "", J = "", ae = [], de = 0; de < Y.length; de++) {
|
|
55299
55302
|
var fe = Y[de];
|
|
55300
55303
|
switch (q) {
|
|
55301
55304
|
case "tag":
|
|
55302
55305
|
var Re = d(P);
|
|
55303
|
-
Re ? (q = "atomic_tag", J = Re, P += fe) : s(P) ? (q = "html_comment", P += fe) : e(fe) ? (P += ">",
|
|
55306
|
+
Re ? (q = "atomic_tag", J = Re, P += fe) : s(P) ? (q = "html_comment", P += fe) : e(fe) ? (P += ">", ae.push(g(P)), P = "", o(fe) ? q = "whitespace" : q = "char") : P += fe;
|
|
55304
55307
|
break;
|
|
55305
55308
|
case "atomic_tag":
|
|
55306
|
-
e(fe) && f(P, J) ? (P += ">",
|
|
55309
|
+
e(fe) && f(P, J) ? (P += ">", ae.push(g(P)), P = "", J = "", q = "char") : P += fe;
|
|
55307
55310
|
break;
|
|
55308
55311
|
case "html_comment":
|
|
55309
55312
|
P += fe, a(P) && (P = "", q = "char");
|
|
55310
55313
|
break;
|
|
55311
55314
|
case "char":
|
|
55312
|
-
n(fe) ? (P &&
|
|
55315
|
+
n(fe) ? (P && ae.push(g(P)), P = "<", q = "tag") : /\s/.test(fe) ? (P && ae.push(g(P)), P = fe, q = "whitespace") : /[\w\d\#@]/.test(fe) ? P += fe : /&/.test(fe) ? (P && ae.push(g(P)), P = fe) : (P += fe, ae.push(g(P)), P = "");
|
|
55313
55316
|
break;
|
|
55314
55317
|
case "whitespace":
|
|
55315
|
-
n(fe) ? (P &&
|
|
55318
|
+
n(fe) ? (P && ae.push(g(P)), P = "<", q = "tag") : o(fe) ? P += fe : (P && ae.push(g(P)), P = fe, q = "char");
|
|
55316
55319
|
break;
|
|
55317
55320
|
default:
|
|
55318
55321
|
throw new Error("Unknown mode " + q);
|
|
55319
55322
|
}
|
|
55320
55323
|
}
|
|
55321
|
-
return P &&
|
|
55324
|
+
return P && ae.push(g(P)), ae;
|
|
55322
55325
|
}
|
|
55323
55326
|
function x(Y) {
|
|
55324
55327
|
var q = /^<img.*src=['"]([^"']*)['"].*>$/.exec(Y);
|
|
@@ -55331,9 +55334,9 @@ var S7 = { exports: {} };
|
|
|
55331
55334
|
if (J)
|
|
55332
55335
|
return '<object src="' + J[1] + '"></object>';
|
|
55333
55336
|
if (/^<(svg|math|video)[\s>]/.test(Y)) {
|
|
55334
|
-
var
|
|
55335
|
-
if (
|
|
55336
|
-
var de = Y.slice(0,
|
|
55337
|
+
var ae = Y.indexOf('data-uuid="');
|
|
55338
|
+
if (ae !== -1) {
|
|
55339
|
+
var de = Y.slice(0, ae), fe = Y.slice(ae + 44);
|
|
55337
55340
|
return de + fe;
|
|
55338
55341
|
} else
|
|
55339
55342
|
return Y;
|
|
@@ -55403,9 +55406,9 @@ var S7 = { exports: {} };
|
|
|
55403
55406
|
}
|
|
55404
55407
|
};
|
|
55405
55408
|
function T(Y) {
|
|
55406
|
-
for (var q = Y.beforeTokens, P = Y.afterMap, J = null,
|
|
55409
|
+
for (var q = Y.beforeTokens, P = Y.afterMap, J = null, ae = null, de = 0; de < q.length; de++) {
|
|
55407
55410
|
var fe = !1, Re = q.length - de;
|
|
55408
|
-
if (
|
|
55411
|
+
if (ae && Re < ae.length)
|
|
55409
55412
|
break;
|
|
55410
55413
|
var Pe = q[de];
|
|
55411
55414
|
if (Pe.key === " ") {
|
|
@@ -55415,19 +55418,19 @@ var S7 = { exports: {} };
|
|
|
55415
55418
|
J === de - 1 && (fe = !0);
|
|
55416
55419
|
var st = P[Pe.key];
|
|
55417
55420
|
st && st.forEach(function(Fe) {
|
|
55418
|
-
var it =
|
|
55421
|
+
var it = ae ? ae.length : 0, j = k(
|
|
55419
55422
|
Y,
|
|
55420
55423
|
de,
|
|
55421
55424
|
Fe,
|
|
55422
55425
|
it,
|
|
55423
55426
|
fe
|
|
55424
55427
|
);
|
|
55425
|
-
j && j.length > it && (
|
|
55428
|
+
j && j.length > it && (ae = j);
|
|
55426
55429
|
});
|
|
55427
55430
|
}
|
|
55428
|
-
return
|
|
55431
|
+
return ae;
|
|
55429
55432
|
}
|
|
55430
|
-
function k(Y, q, P, J,
|
|
55433
|
+
function k(Y, q, P, J, ae) {
|
|
55431
55434
|
var de = Y.beforeTokens, fe = Y.afterTokens, Re = q + J, Pe = P + J;
|
|
55432
55435
|
if (!(Re >= de.length || Pe >= fe.length)) {
|
|
55433
55436
|
if (J) {
|
|
@@ -55439,7 +55442,7 @@ var S7 = { exports: {} };
|
|
|
55439
55442
|
var ye = de[oe].key, _e = fe[me].key;
|
|
55440
55443
|
ye === _e ? (j++, oe = q + j, me = P + j) : it = !1;
|
|
55441
55444
|
}
|
|
55442
|
-
if (
|
|
55445
|
+
if (ae && q > 0 && P > 0) {
|
|
55443
55446
|
var ie = de[q - 1].key, Ae = fe[P - 1].key;
|
|
55444
55447
|
ie === " " && Ae === " " && (q--, P--, j++);
|
|
55445
55448
|
}
|
|
@@ -55460,12 +55463,12 @@ var S7 = { exports: {} };
|
|
|
55460
55463
|
for (var q = new E(), P, J = [Y]; J.length; )
|
|
55461
55464
|
if (Y = J.pop(), P = T(Y), P && P.length) {
|
|
55462
55465
|
if (P.segmentStartInBefore > 0 && P.segmentStartInAfter > 0) {
|
|
55463
|
-
var
|
|
55466
|
+
var ae = Y.beforeTokens.slice(
|
|
55464
55467
|
0,
|
|
55465
55468
|
P.segmentStartInBefore
|
|
55466
55469
|
), de = Y.afterTokens.slice(0, P.segmentStartInAfter);
|
|
55467
55470
|
J.push(A(
|
|
55468
|
-
|
|
55471
|
+
ae,
|
|
55469
55472
|
de,
|
|
55470
55473
|
Y.beforeIndex,
|
|
55471
55474
|
Y.afterIndex
|
|
@@ -55484,17 +55487,17 @@ var S7 = { exports: {} };
|
|
|
55484
55487
|
function U(Y, q) {
|
|
55485
55488
|
if (!Y) throw new Error("Missing beforeTokens");
|
|
55486
55489
|
if (!q) throw new Error("Missing afterTokens");
|
|
55487
|
-
var P = 0, J = 0,
|
|
55490
|
+
var P = 0, J = 0, ae = [], de = A(Y, q, 0, 0), fe = F(de);
|
|
55488
55491
|
fe.push(new y(Y.length, q.length, 0, de));
|
|
55489
55492
|
for (var Re = 0; Re < fe.length; Re++) {
|
|
55490
55493
|
var Pe = fe[Re], st = "none";
|
|
55491
|
-
P === Pe.startInBefore ? J !== Pe.startInAfter && (st = "insert") : (st = "delete", J !== Pe.startInAfter && (st = "replace")), st !== "none" &&
|
|
55494
|
+
P === Pe.startInBefore ? J !== Pe.startInAfter && (st = "insert") : (st = "delete", J !== Pe.startInAfter && (st = "replace")), st !== "none" && ae.push({
|
|
55492
55495
|
action: st,
|
|
55493
55496
|
startInBefore: P,
|
|
55494
55497
|
endInBefore: st !== "insert" ? Pe.startInBefore - 1 : null,
|
|
55495
55498
|
startInAfter: J,
|
|
55496
55499
|
endInAfter: st !== "delete" ? Pe.startInAfter - 1 : null
|
|
55497
|
-
}), Pe.length !== 0 &&
|
|
55500
|
+
}), Pe.length !== 0 && ae.push({
|
|
55498
55501
|
action: "equal",
|
|
55499
55502
|
startInBefore: Pe.startInBefore,
|
|
55500
55503
|
endInBefore: Pe.endInBefore,
|
|
@@ -55506,8 +55509,8 @@ var S7 = { exports: {} };
|
|
|
55506
55509
|
function j(ye) {
|
|
55507
55510
|
return ye.action !== "equal" || ye.endInBefore - ye.startInBefore !== 0 ? !1 : /^\s$/.test(Y.slice(ye.startInBefore, ye.endInBefore + 1));
|
|
55508
55511
|
}
|
|
55509
|
-
for (var oe = 0; oe <
|
|
55510
|
-
var me =
|
|
55512
|
+
for (var oe = 0; oe < ae.length; oe++) {
|
|
55513
|
+
var me = ae[oe];
|
|
55511
55514
|
j(me) && it.action === "replace" || me.action === "replace" && it.action === "replace" ? (it.endInBefore = me.endInBefore, it.endInAfter = me.endInAfter) : (Fe.push(me), it = me);
|
|
55512
55515
|
}
|
|
55513
55516
|
return Fe;
|
|
@@ -55518,15 +55521,15 @@ var S7 = { exports: {} };
|
|
|
55518
55521
|
isWrappable: m(P),
|
|
55519
55522
|
insertedTag: !1
|
|
55520
55523
|
});
|
|
55521
|
-
var
|
|
55522
|
-
return
|
|
55523
|
-
tag:
|
|
55524
|
+
var ae = !h(P) && r(P), de = q.tagStack[q.tagStack.length - 1];
|
|
55525
|
+
return ae && (de && "/" + de.tag === ae ? (q.notes[de.position].insertedTag = !0, q.tagStack.pop()) : q.tagStack.push({
|
|
55526
|
+
tag: ae,
|
|
55524
55527
|
position: J
|
|
55525
55528
|
})), q;
|
|
55526
55529
|
}, { notes: [], tagStack: [] }).notes;
|
|
55527
55530
|
}
|
|
55528
55531
|
I.prototype.combine = function(Y, q) {
|
|
55529
|
-
var P = this.notes, J = this.tokens.slice(),
|
|
55532
|
+
var P = this.notes, J = this.tokens.slice(), ae = J.reduce(function(de, fe, Re) {
|
|
55530
55533
|
P[Re].insertedTag && (J[Re] = q(J[Re])), de.status === null && (de.status = P[Re].isWrappable);
|
|
55531
55534
|
var Pe = P[Re].isWrappable;
|
|
55532
55535
|
return Pe !== de.status && (de.list.push({
|
|
@@ -55537,13 +55540,13 @@ var S7 = { exports: {} };
|
|
|
55537
55540
|
tokens: J.slice(de.lastIndex, Re + 1)
|
|
55538
55541
|
}), de;
|
|
55539
55542
|
}, { list: [], status: null, lastIndex: 0 }).list;
|
|
55540
|
-
return
|
|
55543
|
+
return ae.map(Y).join("");
|
|
55541
55544
|
};
|
|
55542
|
-
function K(Y, q, P, J,
|
|
55545
|
+
function K(Y, q, P, J, ae) {
|
|
55543
55546
|
var de = new I(q);
|
|
55544
55547
|
J = J ? J + "-" : "";
|
|
55545
55548
|
var fe = " data-" + J + 'operation-index="' + P + '"';
|
|
55546
|
-
return
|
|
55549
|
+
return ae && (fe += ' class="' + ae + '"'), de.combine(function(Re) {
|
|
55547
55550
|
if (Re.isWrappable) {
|
|
55548
55551
|
var Pe = Re.tokens.join("");
|
|
55549
55552
|
if (Pe.trim())
|
|
@@ -55557,29 +55560,29 @@ var S7 = { exports: {} };
|
|
|
55557
55560
|
});
|
|
55558
55561
|
}
|
|
55559
55562
|
var Q = {
|
|
55560
|
-
equal: function(Y, q, P, J,
|
|
55563
|
+
equal: function(Y, q, P, J, ae, de) {
|
|
55561
55564
|
var fe = P.slice(Y.startInAfter, Y.endInAfter + 1);
|
|
55562
55565
|
return fe.reduce(function(Re, Pe) {
|
|
55563
55566
|
return Re + Pe.string;
|
|
55564
55567
|
}, "");
|
|
55565
55568
|
},
|
|
55566
|
-
insert: function(Y, q, P, J,
|
|
55569
|
+
insert: function(Y, q, P, J, ae, de) {
|
|
55567
55570
|
var fe = P.slice(Y.startInAfter, Y.endInAfter + 1), Re = fe.map(function(Pe) {
|
|
55568
55571
|
return Pe.string;
|
|
55569
55572
|
});
|
|
55570
|
-
return K("ins", Re, J,
|
|
55573
|
+
return K("ins", Re, J, ae, de);
|
|
55571
55574
|
},
|
|
55572
|
-
delete: function(Y, q, P, J,
|
|
55575
|
+
delete: function(Y, q, P, J, ae, de) {
|
|
55573
55576
|
var fe = q.slice(Y.startInBefore, Y.endInBefore + 1), Re = fe.map(function(Pe) {
|
|
55574
55577
|
return Pe.string;
|
|
55575
55578
|
});
|
|
55576
|
-
return K("del", Re, J,
|
|
55579
|
+
return K("del", Re, J, ae, de);
|
|
55577
55580
|
},
|
|
55578
55581
|
replace: function() {
|
|
55579
55582
|
return Q.delete.apply(null, arguments) + Q.insert.apply(null, arguments);
|
|
55580
55583
|
}
|
|
55581
55584
|
};
|
|
55582
|
-
function re(Y, q, P, J,
|
|
55585
|
+
function re(Y, q, P, J, ae) {
|
|
55583
55586
|
return P.reduce(function(de, fe, Re) {
|
|
55584
55587
|
return de + Q[fe.action](
|
|
55585
55588
|
fe,
|
|
@@ -55587,13 +55590,13 @@ var S7 = { exports: {} };
|
|
|
55587
55590
|
q,
|
|
55588
55591
|
Re,
|
|
55589
55592
|
J,
|
|
55590
|
-
|
|
55593
|
+
ae
|
|
55591
55594
|
);
|
|
55592
55595
|
}, "");
|
|
55593
55596
|
}
|
|
55594
|
-
function ve(Y, q, P, J,
|
|
55597
|
+
function ve(Y, q, P, J, ae) {
|
|
55595
55598
|
if (Y === q) return Y;
|
|
55596
|
-
|
|
55599
|
+
ae ? l = new RegExp("^<(" + ae.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, Y = w(Y), q = w(q);
|
|
55597
55600
|
var de = U(Y, q);
|
|
55598
55601
|
return re(Y, q, de, J, P);
|
|
55599
55602
|
}
|
|
@@ -55804,7 +55807,7 @@ const oae = /* @__PURE__ */ IH(nae), Hx = (t, e, n) => {
|
|
|
55804
55807
|
superPreviewCustomClass: {},
|
|
55805
55808
|
minChar: {}
|
|
55806
55809
|
},
|
|
55807
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
55810
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
55808
55811
|
setup(t, { expose: e, emit: n }) {
|
|
55809
55812
|
const o = t, r = n, i = X(() => o.mode === Ze.EDITOR), s = Co(Uo.RENDER_SUPER_TEXT), a = ro(), { isReady: l, editor: u, updateEditorState: d, checkSpellStore: f } = a, h = $(!1);
|
|
55810
55813
|
cn("isEditable", h);
|
|
@@ -56002,7 +56005,7 @@ const Yae = /* @__PURE__ */ W({
|
|
|
56002
56005
|
superPreviewCustomClass: {},
|
|
56003
56006
|
minChar: {}
|
|
56004
56007
|
},
|
|
56005
|
-
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus"],
|
|
56008
|
+
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
56006
56009
|
setup(t, { expose: e, emit: n }) {
|
|
56007
56010
|
const o = t, r = n;
|
|
56008
56011
|
cn("isMobile", !0);
|
|
@@ -56142,7 +56145,7 @@ const Yae = /* @__PURE__ */ W({
|
|
|
56142
56145
|
const {
|
|
56143
56146
|
showMenuSplitter: P,
|
|
56144
56147
|
menuX: J,
|
|
56145
|
-
menuY:
|
|
56148
|
+
menuY: ae,
|
|
56146
56149
|
commentSize: de,
|
|
56147
56150
|
contentSize: fe,
|
|
56148
56151
|
setupSplitterListeners: Re,
|
|
@@ -56288,7 +56291,7 @@ const Yae = /* @__PURE__ */ W({
|
|
|
56288
56291
|
ref: it,
|
|
56289
56292
|
"icon-split-selected": b(st),
|
|
56290
56293
|
"menu-x": b(J),
|
|
56291
|
-
"menu-y": b(
|
|
56294
|
+
"menu-y": b(ae),
|
|
56292
56295
|
onOnChangeSplit: b(Fe)
|
|
56293
56296
|
}, null, 8, ["icon-split-selected", "menu-x", "menu-y", "onOnChangeSplit"])) : Oe("", !0)
|
|
56294
56297
|
], 64);
|
|
@@ -56745,4 +56748,4 @@ export {
|
|
|
56745
56748
|
Sae as y,
|
|
56746
56749
|
yae as z
|
|
56747
56750
|
};
|
|
56748
|
-
//# sourceMappingURL=index-
|
|
56751
|
+
//# sourceMappingURL=index-DTJg9eJF.mjs.map
|