@zipify/wysiwyg 1.0.0-dev.58 → 1.0.0-dev.60
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/dist/wysiwyg.css +1 -1
- package/dist/wysiwyg.mjs +693 -660
- package/example/tooltip/Tooltip.js +1 -1
- package/lib/components/toolbar/ToolbarRow.vue +1 -0
- package/lib/components/toolbar/controls/ListControl.vue +68 -30
- package/lib/components/toolbar/controls/__tests__/ListControl.test.js +18 -3
- package/lib/services/ContentNormalizer.js +13 -4
- package/lib/services/__tests__/ContentNormalizer.test.js +21 -0
- package/package.json +1 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ty = Object.defineProperty;
|
|
2
2
|
var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { computed as
|
|
3
|
+
var $r = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { computed as A, ref as q, watch as rn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ft, onMounted as mp, toRef as fe, reactive as ny } from "vue";
|
|
5
5
|
import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
|
|
6
6
|
function ce(r) {
|
|
7
7
|
this.content = r;
|
|
@@ -660,7 +660,7 @@ class no {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
const cy = /* @__PURE__ */ Object.create(null);
|
|
663
|
-
class
|
|
663
|
+
class gt {
|
|
664
664
|
constructor(e, t, n, i = H.none) {
|
|
665
665
|
this.type = e, this.attrs = t, this.marks = i, this.content = n || S.empty;
|
|
666
666
|
}
|
|
@@ -707,10 +707,10 @@ class vt {
|
|
|
707
707
|
return this.type == e && to(this.attrs, t || e.defaultAttrs || cy) && H.sameSet(this.marks, n || H.none);
|
|
708
708
|
}
|
|
709
709
|
copy(e = null) {
|
|
710
|
-
return e == this.content ? this : new
|
|
710
|
+
return e == this.content ? this : new gt(this.type, this.attrs, e, this.marks);
|
|
711
711
|
}
|
|
712
712
|
mark(e) {
|
|
713
|
-
return e == this.marks ? this : new
|
|
713
|
+
return e == this.marks ? this : new gt(this.type, this.attrs, this.content, e);
|
|
714
714
|
}
|
|
715
715
|
cut(e, t = this.content.size) {
|
|
716
716
|
return e == 0 && t == this.content.size ? this : this.copy(this.content.cut(e, t));
|
|
@@ -844,8 +844,8 @@ class vt {
|
|
|
844
844
|
return e.nodeType(t.type).create(t.attrs, i, n);
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
|
|
848
|
-
class io extends
|
|
847
|
+
gt.prototype.text = void 0;
|
|
848
|
+
class io extends gt {
|
|
849
849
|
constructor(e, t, n, i) {
|
|
850
850
|
if (super(e, t, null, i), !n)
|
|
851
851
|
throw new RangeError("Empty text nodes are not allowed");
|
|
@@ -1242,12 +1242,12 @@ class oo {
|
|
|
1242
1242
|
create(e = null, t, n) {
|
|
1243
1243
|
if (this.isText)
|
|
1244
1244
|
throw new Error("NodeType.create can't construct text nodes");
|
|
1245
|
-
return new
|
|
1245
|
+
return new gt(this, this.computeAttrs(e), S.from(t), H.setFrom(n));
|
|
1246
1246
|
}
|
|
1247
1247
|
createChecked(e = null, t, n) {
|
|
1248
1248
|
if (t = S.from(t), !this.validContent(t))
|
|
1249
1249
|
throw new RangeError("Invalid content for node " + this.name);
|
|
1250
|
-
return new
|
|
1250
|
+
return new gt(this, this.computeAttrs(e), t, H.setFrom(n));
|
|
1251
1251
|
}
|
|
1252
1252
|
createAndFill(e = null, t, n) {
|
|
1253
1253
|
if (e = this.computeAttrs(e), t = S.from(t), t.size) {
|
|
@@ -1257,7 +1257,7 @@ class oo {
|
|
|
1257
1257
|
t = s.append(t);
|
|
1258
1258
|
}
|
|
1259
1259
|
let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(S.empty, !0);
|
|
1260
|
-
return o ? new
|
|
1260
|
+
return o ? new gt(this, e, t.append(o), H.setFrom(n)) : null;
|
|
1261
1261
|
}
|
|
1262
1262
|
validContent(e) {
|
|
1263
1263
|
let t = this.contentMatch.matchFragment(e);
|
|
@@ -1373,7 +1373,7 @@ class _y {
|
|
|
1373
1373
|
return typeof e == "string" && (e = this.marks[e]), e.create(t);
|
|
1374
1374
|
}
|
|
1375
1375
|
nodeFromJSON(e) {
|
|
1376
|
-
return
|
|
1376
|
+
return gt.fromJSON(this, e);
|
|
1377
1377
|
}
|
|
1378
1378
|
markFromJSON(e) {
|
|
1379
1379
|
return H.fromJSON(this, e);
|
|
@@ -1401,7 +1401,7 @@ function eu(r, e) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
return t;
|
|
1403
1403
|
}
|
|
1404
|
-
class
|
|
1404
|
+
class nn {
|
|
1405
1405
|
constructor(e, t) {
|
|
1406
1406
|
this.schema = e, this.rules = t, this.tags = [], this.styles = [], t.forEach((n) => {
|
|
1407
1407
|
n.tag ? this.tags.push(n) : n.style && this.styles.push(n);
|
|
@@ -1474,7 +1474,7 @@ class rn {
|
|
|
1474
1474
|
return t;
|
|
1475
1475
|
}
|
|
1476
1476
|
static fromSchema(e) {
|
|
1477
|
-
return e.cached.domParser || (e.cached.domParser = new
|
|
1477
|
+
return e.cached.domParser || (e.cached.domParser = new nn(e, nn.schemaRules(e)));
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
const Ap = {
|
|
@@ -1856,7 +1856,7 @@ function Cy(r, e) {
|
|
|
1856
1856
|
if (r.eq(e[t]))
|
|
1857
1857
|
return e[t];
|
|
1858
1858
|
}
|
|
1859
|
-
class
|
|
1859
|
+
class mt {
|
|
1860
1860
|
constructor(e, t) {
|
|
1861
1861
|
this.nodes = e, this.marks = t;
|
|
1862
1862
|
}
|
|
@@ -1887,7 +1887,7 @@ class pt {
|
|
|
1887
1887
|
}), n;
|
|
1888
1888
|
}
|
|
1889
1889
|
serializeNodeInner(e, t) {
|
|
1890
|
-
let { dom: n, contentDOM: i } =
|
|
1890
|
+
let { dom: n, contentDOM: i } = mt.renderSpec(xs(t), this.nodes[e.type.name](e));
|
|
1891
1891
|
if (i) {
|
|
1892
1892
|
if (e.isLeaf)
|
|
1893
1893
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -1905,7 +1905,7 @@ class pt {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
serializeMark(e, t, n = {}) {
|
|
1907
1907
|
let i = this.marks[e.type.name];
|
|
1908
|
-
return i &&
|
|
1908
|
+
return i && mt.renderSpec(xs(n), i(e, t));
|
|
1909
1909
|
}
|
|
1910
1910
|
static renderSpec(e, t, n = null) {
|
|
1911
1911
|
if (typeof t == "string")
|
|
@@ -1932,7 +1932,7 @@ class pt {
|
|
|
1932
1932
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
1933
1933
|
return { dom: a, contentDOM: a };
|
|
1934
1934
|
} else {
|
|
1935
|
-
let { dom: d, contentDOM: h } =
|
|
1935
|
+
let { dom: d, contentDOM: h } = mt.renderSpec(e, f, n);
|
|
1936
1936
|
if (a.appendChild(d), h) {
|
|
1937
1937
|
if (s)
|
|
1938
1938
|
throw new RangeError("Multiple content holes");
|
|
@@ -1943,7 +1943,7 @@ class pt {
|
|
|
1943
1943
|
return { dom: a, contentDOM: s };
|
|
1944
1944
|
}
|
|
1945
1945
|
static fromSchema(e) {
|
|
1946
|
-
return e.cached.domSerializer || (e.cached.domSerializer = new
|
|
1946
|
+
return e.cached.domSerializer || (e.cached.domSerializer = new mt(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
1947
1947
|
}
|
|
1948
1948
|
static nodesFromSchema(e) {
|
|
1949
1949
|
let t = iu(e.nodes);
|
|
@@ -2059,15 +2059,15 @@ class Ge {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
Ge.empty = new Ge([]);
|
|
2062
|
-
class
|
|
2062
|
+
class Xr {
|
|
2063
2063
|
constructor(e = [], t, n = 0, i = e.length) {
|
|
2064
2064
|
this.maps = e, this.mirror = t, this.from = n, this.to = i;
|
|
2065
2065
|
}
|
|
2066
2066
|
slice(e = 0, t = this.maps.length) {
|
|
2067
|
-
return new
|
|
2067
|
+
return new Xr(this.maps, this.mirror, e, t);
|
|
2068
2068
|
}
|
|
2069
2069
|
copy() {
|
|
2070
|
-
return new
|
|
2070
|
+
return new Xr(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);
|
|
2071
2071
|
}
|
|
2072
2072
|
appendMap(e, t) {
|
|
2073
2073
|
this.to = this.maps.push(e), t != null && this.setMirror(this.maps.length - 1, t);
|
|
@@ -2095,7 +2095,7 @@ class Yr {
|
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
2097
|
invert() {
|
|
2098
|
-
let e = new
|
|
2098
|
+
let e = new Xr();
|
|
2099
2099
|
return e.appendMappingInverted(this), e;
|
|
2100
2100
|
}
|
|
2101
2101
|
map(e, t = 1) {
|
|
@@ -2183,7 +2183,7 @@ class zt extends Jt {
|
|
|
2183
2183
|
return Fe.fromReplace(e, this.from, this.to, o);
|
|
2184
2184
|
}
|
|
2185
2185
|
invert() {
|
|
2186
|
-
return new
|
|
2186
|
+
return new vt(this.from, this.to, this.mark);
|
|
2187
2187
|
}
|
|
2188
2188
|
map(e) {
|
|
2189
2189
|
let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
|
|
@@ -2207,7 +2207,7 @@ class zt extends Jt {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
}
|
|
2209
2209
|
Jt.jsonID("addMark", zt);
|
|
2210
|
-
class
|
|
2210
|
+
class vt extends Jt {
|
|
2211
2211
|
constructor(e, t, n) {
|
|
2212
2212
|
super(), this.from = e, this.to = t, this.mark = n;
|
|
2213
2213
|
}
|
|
@@ -2220,10 +2220,10 @@ class mt extends Jt {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
map(e) {
|
|
2222
2222
|
let t = e.mapResult(this.from, 1), n = e.mapResult(this.to, -1);
|
|
2223
|
-
return t.deleted && n.deleted || t.pos >= n.pos ? null : new
|
|
2223
|
+
return t.deleted && n.deleted || t.pos >= n.pos ? null : new vt(t.pos, n.pos, this.mark);
|
|
2224
2224
|
}
|
|
2225
2225
|
merge(e) {
|
|
2226
|
-
return e instanceof
|
|
2226
|
+
return e instanceof vt && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new vt(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
2227
2227
|
}
|
|
2228
2228
|
toJSON() {
|
|
2229
2229
|
return {
|
|
@@ -2236,10 +2236,10 @@ class mt extends Jt {
|
|
|
2236
2236
|
static fromJSON(e, t) {
|
|
2237
2237
|
if (typeof t.from != "number" || typeof t.to != "number")
|
|
2238
2238
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
2239
|
-
return new
|
|
2239
|
+
return new vt(t.from, t.to, e.markFromJSON(t.mark));
|
|
2240
2240
|
}
|
|
2241
2241
|
}
|
|
2242
|
-
Jt.jsonID("removeMark",
|
|
2242
|
+
Jt.jsonID("removeMark", vt);
|
|
2243
2243
|
class ge extends Jt {
|
|
2244
2244
|
constructor(e, t, n, i = !1) {
|
|
2245
2245
|
super(), this.from = e, this.to = t, this.slice = n, this.structure = i;
|
|
@@ -2352,7 +2352,7 @@ function Ay(r, e, t, n) {
|
|
|
2352
2352
|
if (!n.isInSet(f) && c.type.allowsMarkType(n.type)) {
|
|
2353
2353
|
let d = Math.max(u, e), h = Math.min(u + l.nodeSize, t), p = n.addToSet(f);
|
|
2354
2354
|
for (let m = 0; m < f.length; m++)
|
|
2355
|
-
f[m].isInSet(p) || (s && s.to == d && s.mark.eq(f[m]) ? s.to = h : i.push(s = new
|
|
2355
|
+
f[m].isInSet(p) || (s && s.to == d && s.mark.eq(f[m]) ? s.to = h : i.push(s = new vt(d, h, f[m])));
|
|
2356
2356
|
a && a.to == d ? a.to = h : o.push(a = new zt(d, h, n));
|
|
2357
2357
|
}
|
|
2358
2358
|
}), i.forEach((l) => r.step(l)), o.forEach((l) => r.step(l));
|
|
@@ -2381,7 +2381,7 @@ function Ty(r, e, t, n) {
|
|
|
2381
2381
|
d ? (d.to = u, d.step = o) : i.push({ style: f, from: Math.max(a, e), to: u, step: o });
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
}), i.forEach((s) => r.step(new
|
|
2384
|
+
}), i.forEach((s) => r.step(new vt(s.from, s.to, s.style)));
|
|
2385
2385
|
}
|
|
2386
2386
|
function My(r, e, t, n = t.contentMatch) {
|
|
2387
2387
|
let i = r.doc.nodeAt(e), o = [], s = e + 1;
|
|
@@ -2392,7 +2392,7 @@ function My(r, e, t, n = t.contentMatch) {
|
|
|
2392
2392
|
else {
|
|
2393
2393
|
n = c;
|
|
2394
2394
|
for (let f = 0; f < l.marks.length; f++)
|
|
2395
|
-
t.allowsMarkType(l.marks[f].type) || r.step(new
|
|
2395
|
+
t.allowsMarkType(l.marks[f].type) || r.step(new vt(s, u, l.marks[f]));
|
|
2396
2396
|
}
|
|
2397
2397
|
s = u;
|
|
2398
2398
|
}
|
|
@@ -2406,7 +2406,7 @@ function My(r, e, t, n = t.contentMatch) {
|
|
|
2406
2406
|
function $y(r, e, t) {
|
|
2407
2407
|
return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
|
|
2408
2408
|
}
|
|
2409
|
-
function
|
|
2409
|
+
function mn(r) {
|
|
2410
2410
|
let t = r.parent.content.cutByIndex(r.startIndex, r.endIndex);
|
|
2411
2411
|
for (let n = r.depth; ; --n) {
|
|
2412
2412
|
let i = r.$from.node(n), o = r.$from.index(n), s = r.$to.indexAfter(n);
|
|
@@ -2490,7 +2490,7 @@ function Ly(r, e, t, n, i) {
|
|
|
2490
2490
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
2491
2491
|
r.step(new se(e, e + o.nodeSize, e + 1, e + o.nodeSize - 1, new k(S.from(s), 0, 0), 1, !0));
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function Zr(r, e, t = 1, n) {
|
|
2494
2494
|
let i = r.resolve(e), o = i.depth - t, s = n && n[n.length - 1] || i.parent;
|
|
2495
2495
|
if (o < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !s.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
|
|
2496
2496
|
return !1;
|
|
@@ -2832,18 +2832,18 @@ function Lp(r, e) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
return t;
|
|
2834
2834
|
}
|
|
2835
|
-
let
|
|
2835
|
+
let on = class extends Error {
|
|
2836
2836
|
};
|
|
2837
|
-
|
|
2837
|
+
on = function r(e) {
|
|
2838
2838
|
let t = Error.call(this, e);
|
|
2839
2839
|
return t.__proto__ = r.prototype, t;
|
|
2840
2840
|
};
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2841
|
+
on.prototype = Object.create(Error.prototype);
|
|
2842
|
+
on.prototype.constructor = on;
|
|
2843
|
+
on.prototype.name = "TransformError";
|
|
2844
2844
|
class zp {
|
|
2845
2845
|
constructor(e) {
|
|
2846
|
-
this.doc = e, this.steps = [], this.docs = [], this.mapping = new
|
|
2846
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new Xr();
|
|
2847
2847
|
}
|
|
2848
2848
|
get before() {
|
|
2849
2849
|
return this.docs.length ? this.docs[0] : this.doc;
|
|
@@ -2851,7 +2851,7 @@ class zp {
|
|
|
2851
2851
|
step(e) {
|
|
2852
2852
|
let t = this.maybeStep(e);
|
|
2853
2853
|
if (t.failed)
|
|
2854
|
-
throw new
|
|
2854
|
+
throw new on(t.failed);
|
|
2855
2855
|
return this;
|
|
2856
2856
|
}
|
|
2857
2857
|
maybeStep(e) {
|
|
@@ -2965,11 +2965,11 @@ class P {
|
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
2967
|
static findFrom(e, t, n = !1) {
|
|
2968
|
-
let i = e.parent.inlineContent ? new B(e) :
|
|
2968
|
+
let i = e.parent.inlineContent ? new B(e) : Br(e.node(0), e.parent, e.pos, e.index(), t, n);
|
|
2969
2969
|
if (i)
|
|
2970
2970
|
return i;
|
|
2971
2971
|
for (let o = e.depth - 1; o >= 0; o--) {
|
|
2972
|
-
let s = t < 0 ?
|
|
2972
|
+
let s = t < 0 ? Br(e.node(0), e.node(o), e.before(o + 1), e.index(o), t, n) : Br(e.node(0), e.node(o), e.after(o + 1), e.index(o) + 1, t, n);
|
|
2973
2973
|
if (s)
|
|
2974
2974
|
return s;
|
|
2975
2975
|
}
|
|
@@ -2979,10 +2979,10 @@ class P {
|
|
|
2979
2979
|
return this.findFrom(e, t) || this.findFrom(e, -t) || new Xe(e.node(0));
|
|
2980
2980
|
}
|
|
2981
2981
|
static atStart(e) {
|
|
2982
|
-
return
|
|
2982
|
+
return Br(e, e, 0, 0, 1) || new Xe(e);
|
|
2983
2983
|
}
|
|
2984
2984
|
static atEnd(e) {
|
|
2985
|
-
return
|
|
2985
|
+
return Br(e, e, e.content.size, e.childCount, -1) || new Xe(e);
|
|
2986
2986
|
}
|
|
2987
2987
|
static fromJSON(e, t) {
|
|
2988
2988
|
if (!t || !t.type)
|
|
@@ -3158,7 +3158,7 @@ const Zy = {
|
|
|
3158
3158
|
return new Xe(r);
|
|
3159
3159
|
}
|
|
3160
3160
|
};
|
|
3161
|
-
function
|
|
3161
|
+
function Br(r, e, t, n, i, o = !1) {
|
|
3162
3162
|
if (e.inlineContent)
|
|
3163
3163
|
return B.create(r, t);
|
|
3164
3164
|
for (let s = n - (i > 0 ? 0 : 1); i > 0 ? s < e.childCount : s >= 0; s += i) {
|
|
@@ -3167,7 +3167,7 @@ function Pr(r, e, t, n, i, o = !1) {
|
|
|
3167
3167
|
if (!o && I.isSelectable(a))
|
|
3168
3168
|
return I.create(r, t - (i < 0 ? a.nodeSize : 0));
|
|
3169
3169
|
} else {
|
|
3170
|
-
let l =
|
|
3170
|
+
let l = Br(r, a, t + i, i < 0 ? a.childCount : 0, i, o);
|
|
3171
3171
|
if (l)
|
|
3172
3172
|
return l;
|
|
3173
3173
|
}
|
|
@@ -3318,7 +3318,7 @@ class Ts {
|
|
|
3318
3318
|
});
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
class
|
|
3321
|
+
class jr {
|
|
3322
3322
|
constructor(e) {
|
|
3323
3323
|
this.config = e;
|
|
3324
3324
|
}
|
|
@@ -3368,7 +3368,7 @@ class zr {
|
|
|
3368
3368
|
applyInner(e) {
|
|
3369
3369
|
if (!e.before.eq(this.doc))
|
|
3370
3370
|
throw new RangeError("Applying a mismatched transaction");
|
|
3371
|
-
let t = new
|
|
3371
|
+
let t = new jr(this.config), n = this.config.fields;
|
|
3372
3372
|
for (let i = 0; i < n.length; i++) {
|
|
3373
3373
|
let o = n[i];
|
|
3374
3374
|
t[o.name] = o.apply(e, this[o.name], this, t);
|
|
@@ -3379,13 +3379,13 @@ class zr {
|
|
|
3379
3379
|
return new Qy(this);
|
|
3380
3380
|
}
|
|
3381
3381
|
static create(e) {
|
|
3382
|
-
let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new
|
|
3382
|
+
let t = new Ts(e.doc ? e.doc.type.schema : e.schema, e.plugins), n = new jr(t);
|
|
3383
3383
|
for (let i = 0; i < t.fields.length; i++)
|
|
3384
3384
|
n[t.fields[i].name] = t.fields[i].init(e, n);
|
|
3385
3385
|
return n;
|
|
3386
3386
|
}
|
|
3387
3387
|
reconfigure(e) {
|
|
3388
|
-
let t = new Ts(this.schema, e.plugins), n = t.fields, i = new
|
|
3388
|
+
let t = new Ts(this.schema, e.plugins), n = t.fields, i = new jr(t);
|
|
3389
3389
|
for (let o = 0; o < n.length; o++) {
|
|
3390
3390
|
let s = n[o].name;
|
|
3391
3391
|
i[s] = this.hasOwnProperty(s) ? this[s] : n[o].init(e, i);
|
|
@@ -3408,10 +3408,10 @@ class zr {
|
|
|
3408
3408
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
3409
3409
|
if (!e.schema)
|
|
3410
3410
|
throw new RangeError("Required config field 'schema' missing");
|
|
3411
|
-
let i = new Ts(e.schema, e.plugins), o = new
|
|
3411
|
+
let i = new Ts(e.schema, e.plugins), o = new jr(i);
|
|
3412
3412
|
return i.fields.forEach((s) => {
|
|
3413
3413
|
if (s.name == "doc")
|
|
3414
|
-
o.doc =
|
|
3414
|
+
o.doc = gt.fromJSON(e.schema, t.doc);
|
|
3415
3415
|
else if (s.name == "selection")
|
|
3416
3416
|
o.selection = P.fromJSON(o.doc, t.selection);
|
|
3417
3417
|
else if (s.name == "storedMarks")
|
|
@@ -3437,7 +3437,7 @@ function jp(r, e, t) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return t;
|
|
3439
3439
|
}
|
|
3440
|
-
class
|
|
3440
|
+
class Te {
|
|
3441
3441
|
constructor(e) {
|
|
3442
3442
|
this.spec = e, this.props = {}, e.props && jp(e.props, this, this.props), this.key = e.key ? e.key.key : Vp("plugin");
|
|
3443
3443
|
}
|
|
@@ -3460,9 +3460,9 @@ class tt {
|
|
|
3460
3460
|
return e[this.key];
|
|
3461
3461
|
}
|
|
3462
3462
|
}
|
|
3463
|
-
const Ut = typeof navigator < "u" ? navigator : null, hu = typeof document < "u" ? document : null, Yt = Ut && Ut.userAgent || "", za = /Edge\/(\d+)/.exec(Yt), Hp = /MSIE \d/.exec(Yt), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt), Ie = !!(Hp || ja || za), Vt = Hp ? document.documentMode : ja ? +ja[1] : za ? +za[1] : 0,
|
|
3464
|
-
|
|
3465
|
-
const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0,
|
|
3463
|
+
const Ut = typeof navigator < "u" ? navigator : null, hu = typeof document < "u" ? document : null, Yt = Ut && Ut.userAgent || "", za = /Edge\/(\d+)/.exec(Yt), Hp = /MSIE \d/.exec(Yt), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt), Ie = !!(Hp || ja || za), Vt = Hp ? document.documentMode : ja ? +ja[1] : za ? +za[1] : 0, yt = !Ie && /gecko\/(\d+)/i.test(Yt);
|
|
3464
|
+
yt && +(/Firefox\/(\d+)/.exec(Yt) || [0, 0])[1];
|
|
3465
|
+
const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, ke = !Ie && !!Ut && /Apple Computer/.test(Ut.vendor), sn = ke && (/Mobile\/\w+/.test(Yt) || !!Ut && Ut.maxTouchPoints > 2), Be = sn || (Ut ? /Mac/.test(Ut.platform) : !1), dt = /Android \d/.test(Yt), Ko = !!hu && "webkitFontSmoothing" in hu.documentElement.style, r0 = Ko ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, $e = function(r) {
|
|
3466
3466
|
for (var e = 0; ; e++)
|
|
3467
3467
|
if (r = r.previousSibling, !r)
|
|
3468
3468
|
return e;
|
|
@@ -3471,7 +3471,7 @@ const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, Oe
|
|
|
3471
3471
|
return e && e.nodeType == 11 ? e.host : e;
|
|
3472
3472
|
};
|
|
3473
3473
|
let pu = null;
|
|
3474
|
-
const
|
|
3474
|
+
const Et = function(r, e, t) {
|
|
3475
3475
|
let n = pu || (pu = document.createRange());
|
|
3476
3476
|
return n.setEnd(r, t == null ? r.nodeValue.length : t), n.setStart(r, e || 0), n;
|
|
3477
3477
|
}, ti = function(r, e, t, n) {
|
|
@@ -3481,7 +3481,7 @@ function mu(r, e, t, n, i) {
|
|
|
3481
3481
|
for (; ; ) {
|
|
3482
3482
|
if (r == t && e == n)
|
|
3483
3483
|
return !0;
|
|
3484
|
-
if (e == (i < 0 ? 0 :
|
|
3484
|
+
if (e == (i < 0 ? 0 : ht(r))) {
|
|
3485
3485
|
let o = r.parentNode;
|
|
3486
3486
|
if (!o || o.nodeType != 1 || o0(r) || n0.test(r.nodeName) || r.contentEditable == "false")
|
|
3487
3487
|
return !1;
|
|
@@ -3489,22 +3489,22 @@ function mu(r, e, t, n, i) {
|
|
|
3489
3489
|
} else if (r.nodeType == 1) {
|
|
3490
3490
|
if (r = r.childNodes[e + (i < 0 ? -1 : 0)], r.contentEditable == "false")
|
|
3491
3491
|
return !1;
|
|
3492
|
-
e = i < 0 ?
|
|
3492
|
+
e = i < 0 ? ht(r) : 0;
|
|
3493
3493
|
} else
|
|
3494
3494
|
return !1;
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function ht(r) {
|
|
3498
3498
|
return r.nodeType == 3 ? r.nodeValue.length : r.childNodes.length;
|
|
3499
3499
|
}
|
|
3500
3500
|
function i0(r, e, t) {
|
|
3501
|
-
for (let n = e == 0, i = e ==
|
|
3501
|
+
for (let n = e == 0, i = e == ht(r); n || i; ) {
|
|
3502
3502
|
if (r == t)
|
|
3503
3503
|
return !0;
|
|
3504
3504
|
let o = $e(r);
|
|
3505
3505
|
if (r = r.parentNode, !r)
|
|
3506
3506
|
return !1;
|
|
3507
|
-
n = n && o == 0, i = i && o ==
|
|
3507
|
+
n = n && o == 0, i = i && o == ht(r);
|
|
3508
3508
|
}
|
|
3509
3509
|
}
|
|
3510
3510
|
function o0(r) {
|
|
@@ -3517,7 +3517,7 @@ const Al = function(r) {
|
|
|
3517
3517
|
let e = r.isCollapsed;
|
|
3518
3518
|
return e && be && r.rangeCount && !r.getRangeAt(0).collapsed && (e = !1), e;
|
|
3519
3519
|
};
|
|
3520
|
-
function
|
|
3520
|
+
function Vr(r, e) {
|
|
3521
3521
|
let t = document.createEvent("Event");
|
|
3522
3522
|
return t.initEvent("keydown", !0, !0), t.keyCode = r, t.key = t.code = e, t;
|
|
3523
3523
|
}
|
|
@@ -3529,7 +3529,7 @@ function s0(r) {
|
|
|
3529
3529
|
bottom: r.documentElement.clientHeight
|
|
3530
3530
|
};
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function Mt(r, e) {
|
|
3533
3533
|
return typeof r == "number" ? r : r[e];
|
|
3534
3534
|
}
|
|
3535
3535
|
function a0(r) {
|
|
@@ -3547,7 +3547,7 @@ function vu(r, e, t) {
|
|
|
3547
3547
|
if (s.nodeType != 1)
|
|
3548
3548
|
continue;
|
|
3549
3549
|
let a = s, l = a == o.body, u = l ? s0(o) : a0(a), c = 0, f = 0;
|
|
3550
|
-
if (e.top < u.top +
|
|
3550
|
+
if (e.top < u.top + Mt(n, "top") ? f = -(u.top - e.top + Mt(i, "top")) : e.bottom > u.bottom - Mt(n, "bottom") && (f = e.bottom - u.bottom + Mt(i, "bottom")), e.left < u.left + Mt(n, "left") ? c = -(u.left - e.left + Mt(i, "left")) : e.right > u.right - Mt(n, "right") && (c = e.right - u.right + Mt(i, "right")), c || f)
|
|
3551
3551
|
if (l)
|
|
3552
3552
|
o.defaultView.scrollBy(c, f);
|
|
3553
3553
|
else {
|
|
@@ -3590,18 +3590,18 @@ function qp(r, e) {
|
|
|
3590
3590
|
n.scrollTop != i + e && (n.scrollTop = i + e), n.scrollLeft != o && (n.scrollLeft = o);
|
|
3591
3591
|
}
|
|
3592
3592
|
}
|
|
3593
|
-
let
|
|
3593
|
+
let Fr = null;
|
|
3594
3594
|
function u0(r) {
|
|
3595
3595
|
if (r.setActive)
|
|
3596
3596
|
return r.setActive();
|
|
3597
|
-
if (
|
|
3598
|
-
return r.focus(
|
|
3597
|
+
if (Fr)
|
|
3598
|
+
return r.focus(Fr);
|
|
3599
3599
|
let e = Wp(r);
|
|
3600
|
-
r.focus(
|
|
3600
|
+
r.focus(Fr == null ? {
|
|
3601
3601
|
get preventScroll() {
|
|
3602
|
-
return
|
|
3602
|
+
return Fr = { preventScroll: !0 }, !0;
|
|
3603
3603
|
}
|
|
3604
|
-
} : void 0),
|
|
3604
|
+
} : void 0), Fr || (Fr = !1, qp(e, 0));
|
|
3605
3605
|
}
|
|
3606
3606
|
function Up(r, e) {
|
|
3607
3607
|
let t, n = 2e8, i, o = 0, s = e.top, a = e.top;
|
|
@@ -3610,7 +3610,7 @@ function Up(r, e) {
|
|
|
3610
3610
|
if (l.nodeType == 1)
|
|
3611
3611
|
c = l.getClientRects();
|
|
3612
3612
|
else if (l.nodeType == 3)
|
|
3613
|
-
c =
|
|
3613
|
+
c = Et(l).getClientRects();
|
|
3614
3614
|
else
|
|
3615
3615
|
continue;
|
|
3616
3616
|
for (let f = 0; f < c.length; f++) {
|
|
@@ -3635,7 +3635,7 @@ function f0(r, e) {
|
|
|
3635
3635
|
let t = r.nodeValue.length, n = document.createRange();
|
|
3636
3636
|
for (let i = 0; i < t; i++) {
|
|
3637
3637
|
n.setEnd(r, i + 1), n.setStart(r, i);
|
|
3638
|
-
let o =
|
|
3638
|
+
let o = Nt(n, 1);
|
|
3639
3639
|
if (o.top != o.bottom && Tl(e, o))
|
|
3640
3640
|
return { node: r, offset: i + (e.left >= (o.left + o.right) / 2 ? 1 : 0) };
|
|
3641
3641
|
}
|
|
@@ -3711,11 +3711,11 @@ function m0(r, e) {
|
|
|
3711
3711
|
if (!Tl(e, l) || (o = Kp(r.dom, e, l), !o))
|
|
3712
3712
|
return null;
|
|
3713
3713
|
}
|
|
3714
|
-
if (
|
|
3714
|
+
if (ke)
|
|
3715
3715
|
for (let l = o; n && l; l = kl(l))
|
|
3716
3716
|
l.draggable && (n = void 0);
|
|
3717
3717
|
if (o = d0(o, e), n) {
|
|
3718
|
-
if (
|
|
3718
|
+
if (yt && n.nodeType == 1 && (i = Math.min(i, n.childNodes.length), i < n.childNodes.length)) {
|
|
3719
3719
|
let l = n.childNodes[i], u;
|
|
3720
3720
|
l.nodeName == "IMG" && (u = l.getBoundingClientRect()).right <= e.left && u.bottom > e.top && i++;
|
|
3721
3721
|
}
|
|
@@ -3725,20 +3725,20 @@ function m0(r, e) {
|
|
|
3725
3725
|
let a = r.docView.nearestDesc(o, !0);
|
|
3726
3726
|
return { pos: s, inside: a ? a.posAtStart - a.border : -1 };
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function Nt(r, e) {
|
|
3729
3729
|
let t = r.getClientRects();
|
|
3730
3730
|
return t.length ? t[e < 0 ? 0 : t.length - 1] : r.getBoundingClientRect();
|
|
3731
3731
|
}
|
|
3732
3732
|
const v0 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
3733
3733
|
function Gp(r, e, t) {
|
|
3734
|
-
let { node: n, offset: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), o = Ko ||
|
|
3734
|
+
let { node: n, offset: i } = r.docView.domFromPos(e, t < 0 ? -1 : 1), o = Ko || yt;
|
|
3735
3735
|
if (n.nodeType == 3)
|
|
3736
3736
|
if (o && (v0.test(n.nodeValue) || (t < 0 ? !i : i == n.nodeValue.length))) {
|
|
3737
|
-
let s =
|
|
3738
|
-
if (
|
|
3739
|
-
let a =
|
|
3737
|
+
let s = Nt(Et(n, i, i), t);
|
|
3738
|
+
if (yt && i && /\s/.test(n.nodeValue[i - 1]) && i < n.nodeValue.length) {
|
|
3739
|
+
let a = Nt(Et(n, i - 1, i - 1), -1);
|
|
3740
3740
|
if (a.top == s.top) {
|
|
3741
|
-
let l =
|
|
3741
|
+
let l = Nt(Et(n, i, i + 1), -1);
|
|
3742
3742
|
if (l.top != s.top)
|
|
3743
3743
|
return Cn(l, l.left < a.left);
|
|
3744
3744
|
}
|
|
@@ -3746,35 +3746,35 @@ function Gp(r, e, t) {
|
|
|
3746
3746
|
return s;
|
|
3747
3747
|
} else {
|
|
3748
3748
|
let s = i, a = i, l = t < 0 ? 1 : -1;
|
|
3749
|
-
return t < 0 && !i ? (a++, l = -1) : t >= 0 && i == n.nodeValue.length ? (s--, l = 1) : t < 0 ? s-- : a++, Cn(
|
|
3749
|
+
return t < 0 && !i ? (a++, l = -1) : t >= 0 && i == n.nodeValue.length ? (s--, l = 1) : t < 0 ? s-- : a++, Cn(Nt(Et(n, s, a), l), l < 0);
|
|
3750
3750
|
}
|
|
3751
3751
|
if (!r.state.doc.resolve(e).parent.inlineContent) {
|
|
3752
|
-
if (i && (t < 0 || i ==
|
|
3752
|
+
if (i && (t < 0 || i == ht(n))) {
|
|
3753
3753
|
let s = n.childNodes[i - 1];
|
|
3754
3754
|
if (s.nodeType == 1)
|
|
3755
3755
|
return $s(s.getBoundingClientRect(), !1);
|
|
3756
3756
|
}
|
|
3757
|
-
if (i <
|
|
3757
|
+
if (i < ht(n)) {
|
|
3758
3758
|
let s = n.childNodes[i];
|
|
3759
3759
|
if (s.nodeType == 1)
|
|
3760
3760
|
return $s(s.getBoundingClientRect(), !0);
|
|
3761
3761
|
}
|
|
3762
3762
|
return $s(n.getBoundingClientRect(), t >= 0);
|
|
3763
3763
|
}
|
|
3764
|
-
if (i && (t < 0 || i ==
|
|
3765
|
-
let s = n.childNodes[i - 1], a = s.nodeType == 3 ?
|
|
3764
|
+
if (i && (t < 0 || i == ht(n))) {
|
|
3765
|
+
let s = n.childNodes[i - 1], a = s.nodeType == 3 ? Et(s, ht(s) - (o ? 0 : 1)) : s.nodeType == 1 && (s.nodeName != "BR" || !s.nextSibling) ? s : null;
|
|
3766
3766
|
if (a)
|
|
3767
|
-
return Cn(
|
|
3767
|
+
return Cn(Nt(a, 1), !1);
|
|
3768
3768
|
}
|
|
3769
|
-
if (i <
|
|
3769
|
+
if (i < ht(n)) {
|
|
3770
3770
|
let s = n.childNodes[i];
|
|
3771
3771
|
for (; s.pmViewDesc && s.pmViewDesc.ignoreForCoords; )
|
|
3772
3772
|
s = s.nextSibling;
|
|
3773
|
-
let a = s ? s.nodeType == 3 ?
|
|
3773
|
+
let a = s ? s.nodeType == 3 ? Et(s, 0, o ? 0 : 1) : s.nodeType == 1 ? s : null : null;
|
|
3774
3774
|
if (a)
|
|
3775
|
-
return Cn(
|
|
3775
|
+
return Cn(Nt(a, -1), !0);
|
|
3776
3776
|
}
|
|
3777
|
-
return Cn(
|
|
3777
|
+
return Cn(Nt(n.nodeType == 3 ? Et(n) : n, -t), t >= 0);
|
|
3778
3778
|
}
|
|
3779
3779
|
function Cn(r, e) {
|
|
3780
3780
|
if (r.width == 0)
|
|
@@ -3817,7 +3817,7 @@ function g0(r, e, t) {
|
|
|
3817
3817
|
if (a.nodeType == 1)
|
|
3818
3818
|
l = a.getClientRects();
|
|
3819
3819
|
else if (a.nodeType == 3)
|
|
3820
|
-
l =
|
|
3820
|
+
l = Et(a, 0, a.nodeValue.length).getClientRects();
|
|
3821
3821
|
else
|
|
3822
3822
|
continue;
|
|
3823
3823
|
for (let u = 0; u < l.length; u++) {
|
|
@@ -3846,7 +3846,7 @@ let gu = null, yu = null, bu = !1;
|
|
|
3846
3846
|
function _0(r, e, t) {
|
|
3847
3847
|
return gu == e && yu == t ? bu : (gu = e, yu = t, bu = t == "up" || t == "down" ? g0(r, e, t) : b0(r, e, t));
|
|
3848
3848
|
}
|
|
3849
|
-
const Ze = 0, _u = 1,
|
|
3849
|
+
const Ze = 0, _u = 1, Hr = 2, bt = 3;
|
|
3850
3850
|
class ui {
|
|
3851
3851
|
constructor(e, t, n, i) {
|
|
3852
3852
|
this.parent = e, this.children = t, this.dom = n, this.contentDOM = i, this.dirty = Ze, n.pmViewDesc = this;
|
|
@@ -4081,7 +4081,7 @@ class ui {
|
|
|
4081
4081
|
h = m;
|
|
4082
4082
|
}
|
|
4083
4083
|
let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), u = n.getSelection(), c = !1;
|
|
4084
|
-
if ((
|
|
4084
|
+
if ((yt || ke) && e == t) {
|
|
4085
4085
|
let { node: d, offset: h } = a;
|
|
4086
4086
|
if (d.nodeType == 3) {
|
|
4087
4087
|
if (c = !!(h && d.nodeValue[h - 1] == `
|
|
@@ -4100,11 +4100,11 @@ class ui {
|
|
|
4100
4100
|
c = p && (p.nodeName == "BR" || p.contentEditable == "false");
|
|
4101
4101
|
}
|
|
4102
4102
|
}
|
|
4103
|
-
if (
|
|
4103
|
+
if (yt && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
|
|
4104
4104
|
let d = u.focusNode.childNodes[u.focusOffset];
|
|
4105
4105
|
d && d.contentEditable == "false" && (i = !0);
|
|
4106
4106
|
}
|
|
4107
|
-
if (!(i || c &&
|
|
4107
|
+
if (!(i || c && ke) && ti(a.node, a.offset, u.anchorNode, u.anchorOffset) && ti(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
4108
4108
|
return;
|
|
4109
4109
|
let f = !1;
|
|
4110
4110
|
if ((u.extend || e == t) && !c) {
|
|
@@ -4137,19 +4137,19 @@ class ui {
|
|
|
4137
4137
|
if (n == s ? e <= s && t >= n : e < s && t > n) {
|
|
4138
4138
|
let a = n + o.border, l = s - o.border;
|
|
4139
4139
|
if (e >= a && t <= l) {
|
|
4140
|
-
this.dirty = e == n || t == s ?
|
|
4140
|
+
this.dirty = e == n || t == s ? Hr : _u, e == a && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = bt : o.markDirty(e - a, t - a);
|
|
4141
4141
|
return;
|
|
4142
4142
|
} else
|
|
4143
|
-
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ?
|
|
4143
|
+
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Hr : bt;
|
|
4144
4144
|
}
|
|
4145
4145
|
n = s;
|
|
4146
4146
|
}
|
|
4147
|
-
this.dirty =
|
|
4147
|
+
this.dirty = Hr;
|
|
4148
4148
|
}
|
|
4149
4149
|
markParentsDirty() {
|
|
4150
4150
|
let e = 1;
|
|
4151
4151
|
for (let t = this.parent; t; t = t.parent, e++) {
|
|
4152
|
-
let n = e == 1 ?
|
|
4152
|
+
let n = e == 1 ? Hr : _u;
|
|
4153
4153
|
t.dirty < n && (t.dirty = n);
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
@@ -4223,13 +4223,13 @@ class _r extends ui {
|
|
|
4223
4223
|
}
|
|
4224
4224
|
static create(e, t, n, i) {
|
|
4225
4225
|
let o = i.nodeViews[t.type.name], s = o && o(t, i, n);
|
|
4226
|
-
return (!s || !s.dom) && (s =
|
|
4226
|
+
return (!s || !s.dom) && (s = mt.renderSpec(document, t.type.spec.toDOM(t, n))), new _r(e, t, s.dom, s.contentDOM || s.dom);
|
|
4227
4227
|
}
|
|
4228
4228
|
parseRule() {
|
|
4229
|
-
return this.dirty &
|
|
4229
|
+
return this.dirty & bt || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM || void 0 };
|
|
4230
4230
|
}
|
|
4231
4231
|
matchesMark(e) {
|
|
4232
|
-
return this.dirty !=
|
|
4232
|
+
return this.dirty != bt && this.mark.eq(e);
|
|
4233
4233
|
}
|
|
4234
4234
|
markDirty(e, t) {
|
|
4235
4235
|
if (super.markDirty(e, t), this.dirty != Ze) {
|
|
@@ -4264,7 +4264,7 @@ class Sr extends ui {
|
|
|
4264
4264
|
else if (c.nodeType != 3)
|
|
4265
4265
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
4266
4266
|
} else
|
|
4267
|
-
c || ({ dom: c, contentDOM: f } =
|
|
4267
|
+
c || ({ dom: c, contentDOM: f } = mt.renderSpec(document, t.type.spec.toDOM(t)));
|
|
4268
4268
|
!f && !t.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), t.type.spec.draggable && (c.draggable = !0));
|
|
4269
4269
|
let d = c;
|
|
4270
4270
|
return c = em(c, n, t), u ? l = new E0(e, t, n, i, c, f || null, d, u, o, s + 1) : t.isText ? new Go(e, t, n, i, c, d, o) : new Sr(e, t, n, i, c, f || null, d, o, s + 1);
|
|
@@ -4306,7 +4306,7 @@ class Sr extends ui {
|
|
|
4306
4306
|
l.syncToMarks(u.marks, n, e);
|
|
4307
4307
|
let h;
|
|
4308
4308
|
l.findNodeMatch(u, c, f, d) || a && e.state.selection.from > i && e.state.selection.to < i + u.nodeSize && (h = l.findIndexWithChild(o.node)) > -1 && l.updateNodeAt(u, c, f, h, e) || l.updateNextNode(u, c, f, e, d) || l.addNode(u, c, f, e, i), i += u.nodeSize;
|
|
4309
|
-
}), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty ==
|
|
4309
|
+
}), l.syncToMarks([], n, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Hr) && (s && this.protectLocalComposition(e, s), Zp(this.contentDOM, this.children, e), sn && k0(this.dom));
|
|
4310
4310
|
}
|
|
4311
4311
|
localCompositionInfo(e, t) {
|
|
4312
4312
|
let { from: n, to: i } = e.state.selection;
|
|
@@ -4336,7 +4336,7 @@ class Sr extends ui {
|
|
|
4336
4336
|
e.input.compositionNodes.push(s), this.children = qa(this.children, n, n + i.length, e, s);
|
|
4337
4337
|
}
|
|
4338
4338
|
update(e, t, n, i) {
|
|
4339
|
-
return this.dirty ==
|
|
4339
|
+
return this.dirty == bt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, n, i), !0);
|
|
4340
4340
|
}
|
|
4341
4341
|
updateInner(e, t, n, i) {
|
|
4342
4342
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = n, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ze;
|
|
@@ -4371,7 +4371,7 @@ class Go extends Sr {
|
|
|
4371
4371
|
return { skip: e || !0 };
|
|
4372
4372
|
}
|
|
4373
4373
|
update(e, t, n, i) {
|
|
4374
|
-
return this.dirty ==
|
|
4374
|
+
return this.dirty == bt || this.dirty != Ze && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ze || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ze, !0);
|
|
4375
4375
|
}
|
|
4376
4376
|
inParent() {
|
|
4377
4377
|
let e = this.parent.contentDOM;
|
|
@@ -4394,7 +4394,7 @@ class Go extends Sr {
|
|
|
4394
4394
|
return new Go(this.parent, i, this.outerDeco, this.innerDeco, o, o, n);
|
|
4395
4395
|
}
|
|
4396
4396
|
markDirty(e, t) {
|
|
4397
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
4397
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = bt);
|
|
4398
4398
|
}
|
|
4399
4399
|
get domAtom() {
|
|
4400
4400
|
return !1;
|
|
@@ -4419,7 +4419,7 @@ class E0 extends Sr {
|
|
|
4419
4419
|
super(e, t, n, i, o, s, a, u, c), this.spec = l;
|
|
4420
4420
|
}
|
|
4421
4421
|
update(e, t, n, i) {
|
|
4422
|
-
if (this.dirty ==
|
|
4422
|
+
if (this.dirty == bt)
|
|
4423
4423
|
return !1;
|
|
4424
4424
|
if (this.spec.update) {
|
|
4425
4425
|
let o = this.spec.update(e, t, n);
|
|
@@ -4590,7 +4590,7 @@ class w0 {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
updateNodeAt(e, t, n, i, o) {
|
|
4592
4592
|
let s = this.top.children[i];
|
|
4593
|
-
return s.dirty ==
|
|
4593
|
+
return s.dirty == bt && s.dom == s.contentDOM && (s.dirty = Hr), s.update(e, t, n, o) ? (this.destroyBetween(this.index, i), this.index = i + 1, !0) : !1;
|
|
4594
4594
|
}
|
|
4595
4595
|
findIndexWithChild(e) {
|
|
4596
4596
|
for (; ; ) {
|
|
@@ -4617,7 +4617,7 @@ class w0 {
|
|
|
4617
4617
|
if (l != null && l != o)
|
|
4618
4618
|
return !1;
|
|
4619
4619
|
let u = a.dom;
|
|
4620
|
-
if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty !=
|
|
4620
|
+
if (!(this.lock && (u == this.lock || u.nodeType == 1 && u.contains(this.lock.parentNode)) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != bt && Wa(t, a.outerDeco))) && a.update(e, t, n, i))
|
|
4621
4621
|
return this.destroyBetween(this.index, s), a.dom != u && (this.changed = !0), this.index++, !0;
|
|
4622
4622
|
break;
|
|
4623
4623
|
}
|
|
@@ -4640,7 +4640,7 @@ class w0 {
|
|
|
4640
4640
|
let e = this.top.children[this.index - 1], t = this.top;
|
|
4641
4641
|
for (; e instanceof _r; )
|
|
4642
4642
|
t = e, e = t.children[t.children.length - 1];
|
|
4643
|
-
(!e || !(e instanceof Go) || /\n$/.test(e.node.text)) && ((
|
|
4643
|
+
(!e || !(e instanceof Go) || /\n$/.test(e.node.text)) && ((ke || be) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
4644
4644
|
}
|
|
4645
4645
|
addHackNode(e, t) {
|
|
4646
4646
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -4742,7 +4742,7 @@ function A0(r, e) {
|
|
|
4742
4742
|
if (r.nodeType == 1 && e > 0) {
|
|
4743
4743
|
if (r.childNodes.length > e && r.childNodes[e].nodeType == 3)
|
|
4744
4744
|
return r.childNodes[e];
|
|
4745
|
-
r = r.childNodes[e - 1], e =
|
|
4745
|
+
r = r.childNodes[e - 1], e = ht(r);
|
|
4746
4746
|
} else if (r.nodeType == 1 && e < r.childNodes.length)
|
|
4747
4747
|
r = r.childNodes[e], e = 0;
|
|
4748
4748
|
else
|
|
@@ -4829,10 +4829,10 @@ function Kt(r, e = !1) {
|
|
|
4829
4829
|
r.domObserver.setCurSelection(), r.domObserver.connectSelection();
|
|
4830
4830
|
}
|
|
4831
4831
|
}
|
|
4832
|
-
const Du =
|
|
4832
|
+
const Du = ke || be && t0 < 63;
|
|
4833
4833
|
function wu(r, e) {
|
|
4834
4834
|
let { node: t, offset: n } = r.docView.domFromPos(e, 0), i = n < t.childNodes.length ? t.childNodes[n] : null, o = n ? t.childNodes[n - 1] : null;
|
|
4835
|
-
if (
|
|
4835
|
+
if (ke && i && i.contentEditable == "false")
|
|
4836
4836
|
return Fs(i);
|
|
4837
4837
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
4838
4838
|
if (i)
|
|
@@ -4842,7 +4842,7 @@ function wu(r, e) {
|
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
4844
|
function Fs(r) {
|
|
4845
|
-
return r.contentEditable = "true",
|
|
4845
|
+
return r.contentEditable = "true", ke && r.draggable && (r.draggable = !1, r.wasDraggable = !0), r;
|
|
4846
4846
|
}
|
|
4847
4847
|
function xu(r) {
|
|
4848
4848
|
r.contentEditable = "false", r.wasDraggable && (r.draggable = !0, r.wasDraggable = null);
|
|
@@ -4934,7 +4934,7 @@ function Is(r) {
|
|
|
4934
4934
|
if (!t)
|
|
4935
4935
|
return;
|
|
4936
4936
|
let i, o, s = !1;
|
|
4937
|
-
for (
|
|
4937
|
+
for (yt && t.nodeType == 1 && n < lo(t) && Wn(t.childNodes[n]) && (s = !0); ; )
|
|
4938
4938
|
if (n > 0) {
|
|
4939
4939
|
if (t.nodeType != 1)
|
|
4940
4940
|
break;
|
|
@@ -5050,7 +5050,7 @@ function Mu(r, e, t) {
|
|
|
5050
5050
|
r.domObserver.stop(), e.contentEditable = t, r.domObserver.start();
|
|
5051
5051
|
}
|
|
5052
5052
|
function I0(r) {
|
|
5053
|
-
if (!
|
|
5053
|
+
if (!ke || r.state.selection.$head.parentOffset > 0)
|
|
5054
5054
|
return !1;
|
|
5055
5055
|
let { focusNode: e, focusOffset: t } = r.domSelection();
|
|
5056
5056
|
if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
@@ -5074,7 +5074,7 @@ function sm(r, e) {
|
|
|
5074
5074
|
let h = n.firstChild;
|
|
5075
5075
|
t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), n = h.content;
|
|
5076
5076
|
}
|
|
5077
|
-
let s = r.someProp("clipboardSerializer") ||
|
|
5077
|
+
let s = r.someProp("clipboardSerializer") || mt.fromSchema(r.state.schema), a = dm(), l = a.createElement("div");
|
|
5078
5078
|
l.appendChild(s.serializeFragment(n, { document: a }));
|
|
5079
5079
|
let u = l.firstChild, c, f = 0;
|
|
5080
5080
|
for (; u && u.nodeType == 1 && (c = fm[u.nodeName.toLowerCase()]); ) {
|
|
@@ -5107,7 +5107,7 @@ function am(r, e, t, n, i) {
|
|
|
5107
5107
|
if (f)
|
|
5108
5108
|
a = f;
|
|
5109
5109
|
else {
|
|
5110
|
-
let d = i.marks(), { schema: h } = r.state, p =
|
|
5110
|
+
let d = i.marks(), { schema: h } = r.state, p = mt.fromSchema(h);
|
|
5111
5111
|
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
|
|
5112
5112
|
let v = s.appendChild(document.createElement("p"));
|
|
5113
5113
|
m && v.appendChild(p.serializeNode(h.text(m, d)));
|
|
@@ -5121,7 +5121,7 @@ function am(r, e, t, n, i) {
|
|
|
5121
5121
|
if (c && c[3])
|
|
5122
5122
|
for (let f = +c[3]; f > 0 && s.firstChild; f--)
|
|
5123
5123
|
s = s.firstChild;
|
|
5124
|
-
if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") ||
|
|
5124
|
+
if (a || (a = (r.someProp("clipboardParser") || r.someProp("domParser") || nn.fromSchema(r.state.schema)).parseSlice(s, {
|
|
5125
5125
|
preserveWhitespace: !!(l || c),
|
|
5126
5126
|
context: i,
|
|
5127
5127
|
ruleFromNode(d) {
|
|
@@ -5241,7 +5241,7 @@ function j0(r, e) {
|
|
|
5241
5241
|
}
|
|
5242
5242
|
return new k(i, o, s);
|
|
5243
5243
|
}
|
|
5244
|
-
const
|
|
5244
|
+
const Ae = {};
|
|
5245
5245
|
let _e = {};
|
|
5246
5246
|
class V0 {
|
|
5247
5247
|
constructor() {
|
|
@@ -5249,13 +5249,13 @@ class V0 {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
5251
|
function H0(r) {
|
|
5252
|
-
for (let e in
|
|
5253
|
-
let t =
|
|
5252
|
+
for (let e in Ae) {
|
|
5253
|
+
let t = Ae[e];
|
|
5254
5254
|
r.dom.addEventListener(e, r.input.eventHandlers[e] = (n) => {
|
|
5255
5255
|
q0(r, n) && !$l(r, n) && (r.editable || !(n.type in _e)) && t(r, n);
|
|
5256
5256
|
});
|
|
5257
5257
|
}
|
|
5258
|
-
|
|
5258
|
+
ke && r.dom.addEventListener("input", () => null), Ja(r);
|
|
5259
5259
|
}
|
|
5260
5260
|
function cr(r, e) {
|
|
5261
5261
|
r.input.lastSelectionOrigin = e, r.input.lastSelectionTime = Date.now();
|
|
@@ -5289,15 +5289,15 @@ function q0(r, e) {
|
|
|
5289
5289
|
return !0;
|
|
5290
5290
|
}
|
|
5291
5291
|
function U0(r, e) {
|
|
5292
|
-
!$l(r, e) &&
|
|
5292
|
+
!$l(r, e) && Ae[e.type] && (r.editable || !(e.type in _e)) && Ae[e.type](r, e);
|
|
5293
5293
|
}
|
|
5294
5294
|
_e.keydown = (r, e) => {
|
|
5295
5295
|
let t = e;
|
|
5296
|
-
if (r.input.shiftKey = t.keyCode == 16 || t.shiftKey, !pm(r, t) && (r.input.lastKeyCode = t.keyCode, r.input.lastKeyCodeTime = Date.now(), !(
|
|
5297
|
-
if (t.keyCode != 229 && r.domObserver.forceFlush(),
|
|
5296
|
+
if (r.input.shiftKey = t.keyCode == 16 || t.shiftKey, !pm(r, t) && (r.input.lastKeyCode = t.keyCode, r.input.lastKeyCodeTime = Date.now(), !(dt && be && t.keyCode == 13)))
|
|
5297
|
+
if (t.keyCode != 229 && r.domObserver.forceFlush(), sn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
5298
5298
|
let n = Date.now();
|
|
5299
5299
|
r.input.lastIOSEnter = n, r.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
5300
|
-
r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r,
|
|
5300
|
+
r.input.lastIOSEnter == n && (r.someProp("handleKeyDown", (i) => i(r, Vr(13, "Enter"))), r.input.lastIOSEnter = 0);
|
|
5301
5301
|
}, 200);
|
|
5302
5302
|
} else
|
|
5303
5303
|
r.someProp("handleKeyDown", (n) => n(r, t)) || R0(r, t) ? t.preventDefault() : cr(r, "key");
|
|
@@ -5335,7 +5335,7 @@ function Fl(r, e, t, n, i) {
|
|
|
5335
5335
|
return !0;
|
|
5336
5336
|
return !1;
|
|
5337
5337
|
}
|
|
5338
|
-
function
|
|
5338
|
+
function Qr(r, e, t) {
|
|
5339
5339
|
r.focused || r.focus();
|
|
5340
5340
|
let n = r.state.tr.setSelection(e);
|
|
5341
5341
|
t == "pointer" && n.setMeta("pointer", !0), r.dispatch(n);
|
|
@@ -5344,7 +5344,7 @@ function G0(r, e) {
|
|
|
5344
5344
|
if (e == -1)
|
|
5345
5345
|
return !1;
|
|
5346
5346
|
let t = r.state.doc.resolve(e), n = t.nodeAfter;
|
|
5347
|
-
return n && n.isAtom && I.isSelectable(n) ? (
|
|
5347
|
+
return n && n.isAtom && I.isSelectable(n) ? (Qr(r, new I(t), "pointer"), !0) : !1;
|
|
5348
5348
|
}
|
|
5349
5349
|
function J0(r, e) {
|
|
5350
5350
|
if (e == -1)
|
|
@@ -5359,7 +5359,7 @@ function J0(r, e) {
|
|
|
5359
5359
|
break;
|
|
5360
5360
|
}
|
|
5361
5361
|
}
|
|
5362
|
-
return i != null ? (
|
|
5362
|
+
return i != null ? (Qr(r, I.create(r.state.doc, i), "pointer"), !0) : !1;
|
|
5363
5363
|
}
|
|
5364
5364
|
function Y0(r, e, t, n, i) {
|
|
5365
5365
|
return Fl(r, "handleClickOn", e, t, n) || r.someProp("handleClick", (o) => o(r, e, n)) || (i ? J0(r, t) : G0(r, t));
|
|
@@ -5375,14 +5375,14 @@ function Q0(r, e, t) {
|
|
|
5375
5375
|
return !1;
|
|
5376
5376
|
let n = r.state.doc;
|
|
5377
5377
|
if (e == -1)
|
|
5378
|
-
return n.inlineContent ? (
|
|
5378
|
+
return n.inlineContent ? (Qr(r, B.create(n, 0, n.content.size), "pointer"), !0) : !1;
|
|
5379
5379
|
let i = n.resolve(e);
|
|
5380
5380
|
for (let o = i.depth + 1; o > 0; o--) {
|
|
5381
5381
|
let s = o > i.depth ? i.nodeAfter : i.node(o), a = i.before(o);
|
|
5382
5382
|
if (s.inlineContent)
|
|
5383
|
-
|
|
5383
|
+
Qr(r, B.create(n, a + 1, a + 1 + s.content.size), "pointer");
|
|
5384
5384
|
else if (I.isSelectable(s))
|
|
5385
|
-
|
|
5385
|
+
Qr(r, I.create(n, a), "pointer");
|
|
5386
5386
|
else
|
|
5387
5387
|
continue;
|
|
5388
5388
|
return !0;
|
|
@@ -5392,7 +5392,7 @@ function Il(r) {
|
|
|
5392
5392
|
return co(r);
|
|
5393
5393
|
}
|
|
5394
5394
|
const hm = Be ? "metaKey" : "ctrlKey";
|
|
5395
|
-
|
|
5395
|
+
Ae.mousedown = (r, e) => {
|
|
5396
5396
|
let t = e;
|
|
5397
5397
|
r.input.shiftKey = t.shiftKey;
|
|
5398
5398
|
let n = Il(r), i = Date.now(), o = "singleClick";
|
|
@@ -5417,7 +5417,7 @@ class eb {
|
|
|
5417
5417
|
node: o,
|
|
5418
5418
|
pos: s,
|
|
5419
5419
|
addAttr: !!(this.target && !this.target.draggable),
|
|
5420
|
-
setUneditable: !!(this.target &&
|
|
5420
|
+
setUneditable: !!(this.target && yt && !this.target.hasAttribute("contentEditable"))
|
|
5421
5421
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
5422
5422
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
5423
5423
|
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), cr(e, "pointer");
|
|
@@ -5429,27 +5429,27 @@ class eb {
|
|
|
5429
5429
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
5430
5430
|
return;
|
|
5431
5431
|
let t = this.pos;
|
|
5432
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed ||
|
|
5432
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Qr(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
|
|
5433
5433
|
}
|
|
5434
5434
|
move(e) {
|
|
5435
5435
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0), cr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
|
-
|
|
5438
|
+
Ae.touchdown = (r) => {
|
|
5439
5439
|
Il(r), cr(r, "pointer");
|
|
5440
5440
|
};
|
|
5441
|
-
|
|
5441
|
+
Ae.contextmenu = (r) => Il(r);
|
|
5442
5442
|
function pm(r, e) {
|
|
5443
|
-
return r.composing ? !0 :
|
|
5443
|
+
return r.composing ? !0 : ke && Math.abs(e.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
|
|
5444
5444
|
}
|
|
5445
|
-
const tb =
|
|
5445
|
+
const tb = dt ? 5e3 : -1;
|
|
5446
5446
|
_e.compositionstart = _e.compositionupdate = (r) => {
|
|
5447
5447
|
if (!r.composing) {
|
|
5448
5448
|
r.domObserver.flush();
|
|
5449
5449
|
let { state: e } = r, t = e.selection.$from;
|
|
5450
5450
|
if (e.selection.empty && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((n) => n.type.spec.inclusive === !1)))
|
|
5451
5451
|
r.markCursor = r.state.storedMarks || t.marks(), co(r, !0), r.markCursor = null;
|
|
5452
|
-
else if (co(r),
|
|
5452
|
+
else if (co(r), yt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
|
|
5453
5453
|
let n = r.domSelection();
|
|
5454
5454
|
for (let i = n.focusNode, o = n.focusOffset; i && i.nodeType == 1 && o != 0; ) {
|
|
5455
5455
|
let s = o < 0 ? i.lastChild : i.childNodes[o - 1];
|
|
@@ -5481,7 +5481,7 @@ function rb() {
|
|
|
5481
5481
|
return r.initEvent("event", !0, !0), r.timeStamp;
|
|
5482
5482
|
}
|
|
5483
5483
|
function co(r, e = !1) {
|
|
5484
|
-
if (!(
|
|
5484
|
+
if (!(dt && r.domObserver.flushingSoon >= 0)) {
|
|
5485
5485
|
if (r.domObserver.forceFlush(), vm(r), e || r.docView && r.docView.dirty) {
|
|
5486
5486
|
let t = tm(r);
|
|
5487
5487
|
return t && !t.eq(r.state.selection) ? r.dispatch(r.state.tr.setSelection(t)) : r.updateState(r.state), !0;
|
|
@@ -5499,12 +5499,12 @@ function nb(r, e) {
|
|
|
5499
5499
|
t.parentNode && t.parentNode.removeChild(t), r.focus();
|
|
5500
5500
|
}, 50);
|
|
5501
5501
|
}
|
|
5502
|
-
const
|
|
5503
|
-
|
|
5502
|
+
const an = Ie && Vt < 15 || sn && r0 < 604;
|
|
5503
|
+
Ae.copy = _e.cut = (r, e) => {
|
|
5504
5504
|
let t = e, n = r.state.selection, i = t.type == "cut";
|
|
5505
5505
|
if (n.empty)
|
|
5506
5506
|
return;
|
|
5507
|
-
let o =
|
|
5507
|
+
let o = an ? null : t.clipboardData, s = n.content(), { dom: a, text: l } = sm(r, s);
|
|
5508
5508
|
o ? (t.preventDefault(), o.clearData(), o.setData("text/html", a.innerHTML), o.setData("text/plain", l)) : nb(r, a), i && r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
|
|
5509
5509
|
};
|
|
5510
5510
|
function ib(r) {
|
|
@@ -5529,9 +5529,9 @@ function Ya(r, e, t, n) {
|
|
|
5529
5529
|
}
|
|
5530
5530
|
_e.paste = (r, e) => {
|
|
5531
5531
|
let t = e;
|
|
5532
|
-
if (r.composing && !
|
|
5532
|
+
if (r.composing && !dt)
|
|
5533
5533
|
return;
|
|
5534
|
-
let n =
|
|
5534
|
+
let n = an ? null : t.clipboardData;
|
|
5535
5535
|
n && Ya(r, n.getData("text/plain"), n.getData("text/html"), t) ? t.preventDefault() : ob(r, t);
|
|
5536
5536
|
};
|
|
5537
5537
|
class sb {
|
|
@@ -5540,7 +5540,7 @@ class sb {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
}
|
|
5542
5542
|
const gm = Be ? "altKey" : "ctrlKey";
|
|
5543
|
-
|
|
5543
|
+
Ae.dragstart = (r, e) => {
|
|
5544
5544
|
let t = e, n = r.input.mouseDown;
|
|
5545
5545
|
if (n && n.done(), !t.dataTransfer)
|
|
5546
5546
|
return;
|
|
@@ -5554,9 +5554,9 @@ ke.dragstart = (r, e) => {
|
|
|
5554
5554
|
}
|
|
5555
5555
|
}
|
|
5556
5556
|
let s = r.state.selection.content(), { dom: a, text: l } = sm(r, s);
|
|
5557
|
-
t.dataTransfer.clearData(), t.dataTransfer.setData(
|
|
5557
|
+
t.dataTransfer.clearData(), t.dataTransfer.setData(an ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", an || t.dataTransfer.setData("text/plain", l), r.dragging = new sb(s, !t[gm]);
|
|
5558
5558
|
};
|
|
5559
|
-
|
|
5559
|
+
Ae.dragend = (r) => {
|
|
5560
5560
|
let e = r.dragging;
|
|
5561
5561
|
window.setTimeout(() => {
|
|
5562
5562
|
r.dragging == e && (r.dragging = null);
|
|
@@ -5576,7 +5576,7 @@ _e.drop = (r, e) => {
|
|
|
5576
5576
|
let s = n && n.slice;
|
|
5577
5577
|
s ? r.someProp("transformPasted", (p) => {
|
|
5578
5578
|
s = p(s);
|
|
5579
|
-
}) : s = am(r, t.dataTransfer.getData(
|
|
5579
|
+
}) : s = am(r, t.dataTransfer.getData(an ? "Text" : "text/plain"), an ? null : t.dataTransfer.getData("text/html"), !1, o);
|
|
5580
5580
|
let a = !!(n && !t[gm]);
|
|
5581
5581
|
if (r.someProp("handleDrop", (p) => p(r, t, s || k.empty, a))) {
|
|
5582
5582
|
t.preventDefault();
|
|
@@ -5601,21 +5601,21 @@ _e.drop = (r, e) => {
|
|
|
5601
5601
|
}
|
|
5602
5602
|
r.focus(), r.dispatch(u.setMeta("uiEvent", "drop"));
|
|
5603
5603
|
};
|
|
5604
|
-
|
|
5604
|
+
Ae.focus = (r) => {
|
|
5605
5605
|
r.focused || (r.domObserver.stop(), r.dom.classList.add("ProseMirror-focused"), r.domObserver.start(), r.focused = !0, setTimeout(() => {
|
|
5606
5606
|
r.docView && r.hasFocus() && !r.domObserver.currentSelection.eq(r.domSelection()) && Kt(r);
|
|
5607
5607
|
}, 20));
|
|
5608
5608
|
};
|
|
5609
|
-
|
|
5609
|
+
Ae.blur = (r, e) => {
|
|
5610
5610
|
let t = e;
|
|
5611
5611
|
r.focused && (r.domObserver.stop(), r.dom.classList.remove("ProseMirror-focused"), r.domObserver.start(), t.relatedTarget && r.dom.contains(t.relatedTarget) && r.domObserver.currentSelection.clear(), r.focused = !1);
|
|
5612
5612
|
};
|
|
5613
|
-
|
|
5614
|
-
if (be &&
|
|
5613
|
+
Ae.beforeinput = (r, e) => {
|
|
5614
|
+
if (be && dt && e.inputType == "deleteContentBackward") {
|
|
5615
5615
|
r.domObserver.flushSoon();
|
|
5616
5616
|
let { domChangeCount: n } = r.input;
|
|
5617
5617
|
setTimeout(() => {
|
|
5618
|
-
if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r,
|
|
5618
|
+
if (r.input.domChangeCount != n || (r.dom.blur(), r.focus(), r.someProp("handleKeyDown", (o) => o(r, Vr(8, "Backspace")))))
|
|
5619
5619
|
return;
|
|
5620
5620
|
let { $cursor: i } = r.state.selection;
|
|
5621
5621
|
i && i.pos > 0 && r.dispatch(r.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
|
|
@@ -5623,7 +5623,7 @@ ke.beforeinput = (r, e) => {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
};
|
|
5625
5625
|
for (let r in _e)
|
|
5626
|
-
|
|
5626
|
+
Ae[r] = _e[r];
|
|
5627
5627
|
function ri(r, e) {
|
|
5628
5628
|
if (r == e)
|
|
5629
5629
|
return !0;
|
|
@@ -5723,10 +5723,10 @@ class Le {
|
|
|
5723
5723
|
return this.type instanceof Ht;
|
|
5724
5724
|
}
|
|
5725
5725
|
}
|
|
5726
|
-
const
|
|
5726
|
+
const Lr = [], hr = {};
|
|
5727
5727
|
class ue {
|
|
5728
5728
|
constructor(e, t) {
|
|
5729
|
-
this.local = e.length ? e :
|
|
5729
|
+
this.local = e.length ? e : Lr, this.children = t.length ? t : Lr;
|
|
5730
5730
|
}
|
|
5731
5731
|
static create(e, t) {
|
|
5732
5732
|
return t.length ? uo(t, e, 0, hr) : ve;
|
|
@@ -5755,7 +5755,7 @@ class ue {
|
|
|
5755
5755
|
let l = this.local[a].map(e, n, i);
|
|
5756
5756
|
l && l.type.valid(t, l) ? (s || (s = [])).push(l) : o.onRemove && o.onRemove(this.local[a].spec);
|
|
5757
5757
|
}
|
|
5758
|
-
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr),
|
|
5758
|
+
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), Lr) : ve;
|
|
5759
5759
|
}
|
|
5760
5760
|
add(e, t) {
|
|
5761
5761
|
return t.length ? this == ve ? ue.create(e, t) : this.addInner(e, t, 0) : this;
|
|
@@ -5818,8 +5818,8 @@ class ue {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
5820
|
if (i) {
|
|
5821
|
-
let a = new ue(i.sort(pr),
|
|
5822
|
-
return n ? new
|
|
5821
|
+
let a = new ue(i.sort(pr), Lr);
|
|
5822
|
+
return n ? new Lt([a, n]) : a;
|
|
5823
5823
|
}
|
|
5824
5824
|
return n || ve;
|
|
5825
5825
|
}
|
|
@@ -5841,7 +5841,7 @@ class ue {
|
|
|
5841
5841
|
}
|
|
5842
5842
|
localsInner(e) {
|
|
5843
5843
|
if (this == ve)
|
|
5844
|
-
return
|
|
5844
|
+
return Lr;
|
|
5845
5845
|
if (e.inlineContent || !this.local.some(Ht.is))
|
|
5846
5846
|
return this.local;
|
|
5847
5847
|
let t = [];
|
|
@@ -5853,13 +5853,13 @@ class ue {
|
|
|
5853
5853
|
ue.empty = new ue([], []);
|
|
5854
5854
|
ue.removeOverlap = Pl;
|
|
5855
5855
|
const ve = ue.empty;
|
|
5856
|
-
class
|
|
5856
|
+
class Lt {
|
|
5857
5857
|
constructor(e) {
|
|
5858
5858
|
this.members = e;
|
|
5859
5859
|
}
|
|
5860
5860
|
map(e, t) {
|
|
5861
5861
|
const n = this.members.map((i) => i.map(e, t, hr));
|
|
5862
|
-
return
|
|
5862
|
+
return Lt.from(n);
|
|
5863
5863
|
}
|
|
5864
5864
|
forChild(e, t) {
|
|
5865
5865
|
if (t.isLeaf)
|
|
@@ -5867,12 +5867,12 @@ class Bt {
|
|
|
5867
5867
|
let n = [];
|
|
5868
5868
|
for (let i = 0; i < this.members.length; i++) {
|
|
5869
5869
|
let o = this.members[i].forChild(e, t);
|
|
5870
|
-
o != ve && (o instanceof
|
|
5870
|
+
o != ve && (o instanceof Lt ? n = n.concat(o.members) : n.push(o));
|
|
5871
5871
|
}
|
|
5872
|
-
return
|
|
5872
|
+
return Lt.from(n);
|
|
5873
5873
|
}
|
|
5874
5874
|
eq(e) {
|
|
5875
|
-
if (!(e instanceof
|
|
5875
|
+
if (!(e instanceof Lt) || e.members.length != this.members.length)
|
|
5876
5876
|
return !1;
|
|
5877
5877
|
for (let t = 0; t < this.members.length; t++)
|
|
5878
5878
|
if (!this.members[t].eq(e.members[t]))
|
|
@@ -5892,7 +5892,7 @@ class Bt {
|
|
|
5892
5892
|
t.push(o[s]);
|
|
5893
5893
|
}
|
|
5894
5894
|
}
|
|
5895
|
-
return t ? Pl(n ? t : t.sort(pr)) :
|
|
5895
|
+
return t ? Pl(n ? t : t.sort(pr)) : Lr;
|
|
5896
5896
|
}
|
|
5897
5897
|
static from(e) {
|
|
5898
5898
|
switch (e.length) {
|
|
@@ -5901,7 +5901,7 @@ class Bt {
|
|
|
5901
5901
|
case 1:
|
|
5902
5902
|
return e[0];
|
|
5903
5903
|
default:
|
|
5904
|
-
return new
|
|
5904
|
+
return new Lt(e);
|
|
5905
5905
|
}
|
|
5906
5906
|
}
|
|
5907
5907
|
}
|
|
@@ -6033,7 +6033,7 @@ function Rs(r) {
|
|
|
6033
6033
|
return r.someProp("decorations", (t) => {
|
|
6034
6034
|
let n = t(r.state);
|
|
6035
6035
|
n && n != ve && e.push(n);
|
|
6036
|
-
}), r.cursorWrapper && e.push(ue.create(r.state.doc, [r.cursorWrapper.deco])),
|
|
6036
|
+
}), r.cursorWrapper && e.push(ue.create(r.state.doc, [r.cursorWrapper.deco])), Lt.from(e);
|
|
6037
6037
|
}
|
|
6038
6038
|
const cb = {
|
|
6039
6039
|
childList: !0,
|
|
@@ -6135,7 +6135,7 @@ class db {
|
|
|
6135
6135
|
let u = this.registerMutation(e[l], a);
|
|
6136
6136
|
u && (i = i < 0 ? u.from : Math.min(u.from, i), o = o < 0 ? u.to : Math.max(u.to, o), u.typeOver && (s = !0));
|
|
6137
6137
|
}
|
|
6138
|
-
if (
|
|
6138
|
+
if (yt && a.length > 1) {
|
|
6139
6139
|
let l = a.filter((u) => u.nodeName == "BR");
|
|
6140
6140
|
if (l.length == 2) {
|
|
6141
6141
|
let u = l[0], c = l[1];
|
|
@@ -6187,7 +6187,7 @@ function pb(r, e, t) {
|
|
|
6187
6187
|
if (!y || y.size)
|
|
6188
6188
|
break;
|
|
6189
6189
|
}
|
|
6190
|
-
let f = r.state.doc, d = r.someProp("domParser") ||
|
|
6190
|
+
let f = r.state.doc, d = r.someProp("domParser") || nn.fromSchema(r.state.schema), h = f.resolve(s), p = null, m = d.parse(n, {
|
|
6191
6191
|
topNode: h.parent,
|
|
6192
6192
|
topMatch: h.parent.contentMatchAt(h.index()),
|
|
6193
6193
|
topOpen: !0,
|
|
@@ -6209,10 +6209,10 @@ function mb(r) {
|
|
|
6209
6209
|
if (e)
|
|
6210
6210
|
return e.parseRule();
|
|
6211
6211
|
if (r.nodeName == "BR" && r.parentNode) {
|
|
6212
|
-
if (
|
|
6212
|
+
if (ke && /^(ul|ol)$/i.test(r.parentNode.nodeName)) {
|
|
6213
6213
|
let t = document.createElement("div");
|
|
6214
6214
|
return t.appendChild(document.createElement("li")), { skip: t };
|
|
6215
|
-
} else if (r.parentNode.lastChild == r ||
|
|
6215
|
+
} else if (r.parentNode.lastChild == r || ke && /^(tr|table)$/i.test(r.parentNode.nodeName))
|
|
6216
6216
|
return { ignore: !0 };
|
|
6217
6217
|
} else if (r.nodeName == "IMG" && r.getAttribute("mark-placeholder"))
|
|
6218
6218
|
return { ignore: !0 };
|
|
@@ -6237,7 +6237,7 @@ function vb(r, e, t, n, i) {
|
|
|
6237
6237
|
let u = r.state.doc, c = u.slice(l.from, l.to), f, d;
|
|
6238
6238
|
r.input.lastKeyCode === 8 && Date.now() - 100 < r.input.lastKeyCodeTime ? (f = r.state.selection.to, d = "end") : (f = r.state.selection.from, d = "start"), r.input.lastKeyCode = null;
|
|
6239
6239
|
let h = bb(c.content, l.doc.content, l.from, f, d);
|
|
6240
|
-
if ((
|
|
6240
|
+
if ((sn && r.input.lastIOSEnter > Date.now() - 225 || dt) && i.some((E) => E.nodeName == "DIV" || E.nodeName == "P") && (!h || h.endA >= h.endB) && r.someProp("handleKeyDown", (E) => E(r, Vr(13, "Enter")))) {
|
|
6241
6241
|
r.input.lastIOSEnter = 0;
|
|
6242
6242
|
return;
|
|
6243
6243
|
}
|
|
@@ -6253,17 +6253,17 @@ function vb(r, e, t, n, i) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
r.input.domChangeCount++, r.state.selection.from < r.state.selection.to && h.start == h.endB && r.state.selection instanceof B && (h.start > r.state.selection.from && h.start <= r.state.selection.from + 2 && r.state.selection.from >= l.from ? h.start = r.state.selection.from : h.endA < r.state.selection.to && h.endA >= r.state.selection.to - 2 && r.state.selection.to <= l.to && (h.endB += r.state.selection.to - h.endA, h.endA = r.state.selection.to)), Ie && Vt <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > l.from && l.doc.textBetween(h.start - l.from - 1, h.start - l.from + 1) == " \xA0" && (h.start--, h.endA--, h.endB--);
|
|
6255
6255
|
let p = l.doc.resolveNoCache(h.start - l.from), m = l.doc.resolveNoCache(h.endB - l.from), v = u.resolve(h.start), g = p.sameParent(m) && p.parent.inlineContent && v.end() >= h.endA, y;
|
|
6256
|
-
if ((
|
|
6256
|
+
if ((sn && r.input.lastIOSEnter > Date.now() - 225 && (!g || i.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !g && p.pos < l.doc.content.size && (y = P.findFrom(l.doc.resolve(p.pos + 1), 1, !0)) && y.head == m.pos) && r.someProp("handleKeyDown", (E) => E(r, Vr(13, "Enter")))) {
|
|
6257
6257
|
r.input.lastIOSEnter = 0;
|
|
6258
6258
|
return;
|
|
6259
6259
|
}
|
|
6260
|
-
if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r,
|
|
6261
|
-
|
|
6260
|
+
if (r.state.selection.anchor > h.start && yb(u, h.start, h.endA, p, m) && r.someProp("handleKeyDown", (E) => E(r, Vr(8, "Backspace")))) {
|
|
6261
|
+
dt && be && r.domObserver.suppressSelectionUpdates();
|
|
6262
6262
|
return;
|
|
6263
6263
|
}
|
|
6264
|
-
be &&
|
|
6264
|
+
be && dt && h.endB == h.start && (r.input.lastAndroidDelete = Date.now()), dt && !g && p.start() != m.start() && m.parentOffset == 0 && p.depth == m.depth && l.sel && l.sel.anchor == l.sel.head && l.sel.head == h.endA && (h.endB -= 2, m = l.doc.resolveNoCache(h.endB - l.from), setTimeout(() => {
|
|
6265
6265
|
r.someProp("handleKeyDown", function(E) {
|
|
6266
|
-
return E(r,
|
|
6266
|
+
return E(r, Vr(13, "Enter"));
|
|
6267
6267
|
});
|
|
6268
6268
|
}, 20));
|
|
6269
6269
|
let D = h.start, _ = h.endA, x, b, C;
|
|
@@ -6281,7 +6281,7 @@ function vb(r, e, t, n, i) {
|
|
|
6281
6281
|
}
|
|
6282
6282
|
if (x || (x = r.state.tr.replace(D, _, l.doc.slice(h.start - l.from, h.endB - l.from))), l.sel) {
|
|
6283
6283
|
let E = Ru(r, x.doc, l.sel);
|
|
6284
|
-
E && !(be &&
|
|
6284
|
+
E && !(be && dt && r.composing && E.empty && (h.start != h.endB || r.input.lastAndroidDelete < Date.now() - 100) && (E.head == D || E.head == x.mapping.map(_) - 1) || Ie && E.empty && E.head == D) && x.setSelection(E);
|
|
6285
6285
|
}
|
|
6286
6286
|
b && x.ensureMarks(b), r.dispatch(x.scrollIntoView());
|
|
6287
6287
|
}
|
|
@@ -6664,7 +6664,7 @@ function Ls(r, e, t) {
|
|
|
6664
6664
|
return e.altKey && (r = "Alt-" + r), e.ctrlKey && (r = "Ctrl-" + r), e.metaKey && (r = "Meta-" + r), t !== !1 && e.shiftKey && (r = "Shift-" + r), r;
|
|
6665
6665
|
}
|
|
6666
6666
|
function Mb(r) {
|
|
6667
|
-
return new
|
|
6667
|
+
return new Te({ props: { handleKeyDown: $b(r) } });
|
|
6668
6668
|
}
|
|
6669
6669
|
function $b(r) {
|
|
6670
6670
|
let e = Tb(r);
|
|
@@ -6690,25 +6690,25 @@ const Fb = (r, e) => r.selection.empty ? !1 : (e && e(r.tr.deleteSelection().scr
|
|
|
6690
6690
|
return !1;
|
|
6691
6691
|
let i = Sm(n);
|
|
6692
6692
|
if (!i) {
|
|
6693
|
-
let s = n.blockRange(), a = s &&
|
|
6693
|
+
let s = n.blockRange(), a = s && mn(s);
|
|
6694
6694
|
return a == null ? !1 : (e && e(r.tr.lift(s, a).scrollIntoView()), !0);
|
|
6695
6695
|
}
|
|
6696
6696
|
let o = i.nodeBefore;
|
|
6697
6697
|
if (!o.type.spec.isolating && wm(r, i, e))
|
|
6698
6698
|
return !0;
|
|
6699
|
-
if (n.parent.content.size == 0 && (
|
|
6699
|
+
if (n.parent.content.size == 0 && (ln(o, "end") || I.isSelectable(o))) {
|
|
6700
6700
|
let s = Cl(r.doc, n.before(), n.after(), k.empty);
|
|
6701
6701
|
if (s && s.slice.size < s.to - s.from) {
|
|
6702
6702
|
if (e) {
|
|
6703
6703
|
let a = r.tr.step(s);
|
|
6704
|
-
a.setSelection(
|
|
6704
|
+
a.setSelection(ln(o, "end") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos, -1)), -1) : I.create(a.doc, i.pos - o.nodeSize)), e(a.scrollIntoView());
|
|
6705
6705
|
}
|
|
6706
6706
|
return !0;
|
|
6707
6707
|
}
|
|
6708
6708
|
}
|
|
6709
6709
|
return o.isAtom && i.depth == n.depth - 1 ? (e && e(r.tr.delete(i.pos - o.nodeSize, i.pos).scrollIntoView()), !0) : !1;
|
|
6710
6710
|
};
|
|
6711
|
-
function
|
|
6711
|
+
function ln(r, e, t = !1) {
|
|
6712
6712
|
for (let n = r; n; n = e == "start" ? n.firstChild : n.lastChild) {
|
|
6713
6713
|
if (n.isTextblock)
|
|
6714
6714
|
return !0;
|
|
@@ -6749,12 +6749,12 @@ const Rb = (r, e, t) => {
|
|
|
6749
6749
|
let o = i.nodeAfter;
|
|
6750
6750
|
if (wm(r, i, e))
|
|
6751
6751
|
return !0;
|
|
6752
|
-
if (n.parent.content.size == 0 && (
|
|
6752
|
+
if (n.parent.content.size == 0 && (ln(o, "start") || I.isSelectable(o))) {
|
|
6753
6753
|
let s = Cl(r.doc, n.before(), n.after(), k.empty);
|
|
6754
6754
|
if (s && s.slice.size < s.to - s.from) {
|
|
6755
6755
|
if (e) {
|
|
6756
6756
|
let a = r.tr.step(s);
|
|
6757
|
-
a.setSelection(
|
|
6757
|
+
a.setSelection(ln(o, "start") ? P.findFrom(a.doc.resolve(a.mapping.map(i.pos)), 1) : I.create(a.doc, a.mapping.map(i.pos))), e(a.scrollIntoView());
|
|
6758
6758
|
}
|
|
6759
6759
|
return !0;
|
|
6760
6760
|
}
|
|
@@ -6784,7 +6784,7 @@ function Em(r) {
|
|
|
6784
6784
|
return null;
|
|
6785
6785
|
}
|
|
6786
6786
|
const Bb = (r, e) => {
|
|
6787
|
-
let { $from: t, $to: n } = r.selection, i = t.blockRange(n), o = i &&
|
|
6787
|
+
let { $from: t, $to: n } = r.selection, i = t.blockRange(n), o = i && mn(i);
|
|
6788
6788
|
return o == null ? !1 : (e && e(r.tr.lift(i, o).scrollIntoView()), !0);
|
|
6789
6789
|
}, Lb = (r, e) => {
|
|
6790
6790
|
let { $head: t, $anchor: n } = r.selection;
|
|
@@ -6829,10 +6829,10 @@ const zb = (r, e) => {
|
|
|
6829
6829
|
return !1;
|
|
6830
6830
|
if (t.depth > 1 && t.after() != t.end(-1)) {
|
|
6831
6831
|
let o = t.before();
|
|
6832
|
-
if (
|
|
6832
|
+
if (Zr(r.doc, o))
|
|
6833
6833
|
return e && e(r.tr.split(o).scrollIntoView()), !0;
|
|
6834
6834
|
}
|
|
6835
|
-
let n = t.blockRange(), i = n &&
|
|
6835
|
+
let n = t.blockRange(), i = n && mn(n);
|
|
6836
6836
|
return i == null ? !1 : (e && e(r.tr.lift(n, i).scrollIntoView()), !0);
|
|
6837
6837
|
}, Hb = (r, e) => {
|
|
6838
6838
|
let { $from: t, to: n } = r.selection, i, o = t.sharedDepth(n);
|
|
@@ -6860,10 +6860,10 @@ function wm(r, e, t) {
|
|
|
6860
6860
|
}
|
|
6861
6861
|
return !0;
|
|
6862
6862
|
}
|
|
6863
|
-
let l = P.findFrom(e, 1), u = l && l.$from.blockRange(l.$to), c = u &&
|
|
6863
|
+
let l = P.findFrom(e, 1), u = l && l.$from.blockRange(l.$to), c = u && mn(u);
|
|
6864
6864
|
if (c != null && c >= e.depth)
|
|
6865
6865
|
return t && t(r.tr.lift(u, c).scrollIntoView()), !0;
|
|
6866
|
-
if (a &&
|
|
6866
|
+
if (a && ln(i, "start", !0) && ln(n, "end")) {
|
|
6867
6867
|
let f = n, d = [];
|
|
6868
6868
|
for (; d.push(f), !f.isTextblock; )
|
|
6869
6869
|
f = f.lastChild;
|
|
@@ -6943,7 +6943,7 @@ function Jb(r, e, t, n, i) {
|
|
|
6943
6943
|
t[c].type == i && (s = c + 1);
|
|
6944
6944
|
let a = t.length - s, l = e.start + t.length - (n ? 2 : 0), u = e.parent;
|
|
6945
6945
|
for (let c = e.startIndex, f = e.endIndex, d = !0; c < f; c++, d = !1)
|
|
6946
|
-
!d &&
|
|
6946
|
+
!d && Zr(r.doc, l, a) && (r.split(l, a), l += 2 * a), l += u.child(c).nodeSize;
|
|
6947
6947
|
return r;
|
|
6948
6948
|
}
|
|
6949
6949
|
function Yb(r) {
|
|
@@ -6954,7 +6954,7 @@ function Yb(r) {
|
|
|
6954
6954
|
}
|
|
6955
6955
|
function Xb(r, e, t, n) {
|
|
6956
6956
|
let i = r.tr, o = n.end, s = n.$to.end(n.depth);
|
|
6957
|
-
return o < s && (i.step(new se(o - 1, s, o, s, new k(S.from(t.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new no(i.doc.resolve(n.$from.pos), i.doc.resolve(s), n.depth)), e(i.lift(n,
|
|
6957
|
+
return o < s && (i.step(new se(o - 1, s, o, s, new k(S.from(t.create(null, n.parent.copy())), 1, 0), 1, !0)), n = new no(i.doc.resolve(n.$from.pos), i.doc.resolve(s), n.depth)), e(i.lift(n, mn(n)).scrollIntoView()), !0;
|
|
6958
6958
|
}
|
|
6959
6959
|
function Zb(r, e, t) {
|
|
6960
6960
|
let n = r.tr, i = t.parent;
|
|
@@ -7094,10 +7094,10 @@ class e1 {
|
|
|
7094
7094
|
this.callbacks = {};
|
|
7095
7095
|
}
|
|
7096
7096
|
}
|
|
7097
|
-
function
|
|
7098
|
-
return r.config[e] === void 0 && r.parent ?
|
|
7097
|
+
function T(r, e, t) {
|
|
7098
|
+
return r.config[e] === void 0 && r.parent ? T(r.parent, e, t) : typeof r.config[e] == "function" ? r.config[e].bind({
|
|
7099
7099
|
...t,
|
|
7100
|
-
parent: r.parent ?
|
|
7100
|
+
parent: r.parent ? T(r.parent, e, t) : null
|
|
7101
7101
|
}) : r.config[e];
|
|
7102
7102
|
}
|
|
7103
7103
|
function Zo(r) {
|
|
@@ -7122,7 +7122,7 @@ function Cm(r) {
|
|
|
7122
7122
|
name: s.name,
|
|
7123
7123
|
options: s.options,
|
|
7124
7124
|
storage: s.storage
|
|
7125
|
-
}, l =
|
|
7125
|
+
}, l = T(s, "addGlobalAttributes", a);
|
|
7126
7126
|
if (!l)
|
|
7127
7127
|
return;
|
|
7128
7128
|
l().forEach((c) => {
|
|
@@ -7144,7 +7144,7 @@ function Cm(r) {
|
|
|
7144
7144
|
name: s.name,
|
|
7145
7145
|
options: s.options,
|
|
7146
7146
|
storage: s.storage
|
|
7147
|
-
}, l =
|
|
7147
|
+
}, l = T(s, "addAttributes", a);
|
|
7148
7148
|
if (!l)
|
|
7149
7149
|
return;
|
|
7150
7150
|
const u = l();
|
|
@@ -7169,7 +7169,7 @@ function ae(r, e) {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
return r;
|
|
7171
7171
|
}
|
|
7172
|
-
function
|
|
7172
|
+
function vn(...r) {
|
|
7173
7173
|
return r.filter((e) => !!e).reduce((e, t) => {
|
|
7174
7174
|
const n = { ...e };
|
|
7175
7175
|
return Object.entries(t).forEach(([i, o]) => {
|
|
@@ -7184,7 +7184,7 @@ function mn(...r) {
|
|
|
7184
7184
|
function Xa(r, e) {
|
|
7185
7185
|
return e.filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(r.attrs) || {} : {
|
|
7186
7186
|
[t.name]: r.attrs[t.name]
|
|
7187
|
-
}).reduce((t, n) =>
|
|
7187
|
+
}).reduce((t, n) => vn(t, n), {});
|
|
7188
7188
|
}
|
|
7189
7189
|
function Om(r) {
|
|
7190
7190
|
return typeof r == "function";
|
|
@@ -7221,41 +7221,41 @@ function Uu(r) {
|
|
|
7221
7221
|
}
|
|
7222
7222
|
function n1(r) {
|
|
7223
7223
|
var e;
|
|
7224
|
-
const t = Cm(r), { nodeExtensions: n, markExtensions: i } = Zo(r), o = (e = n.find((l) =>
|
|
7224
|
+
const t = Cm(r), { nodeExtensions: n, markExtensions: i } = Zo(r), o = (e = n.find((l) => T(l, "topNode"))) === null || e === void 0 ? void 0 : e.name, s = Object.fromEntries(n.map((l) => {
|
|
7225
7225
|
const u = t.filter((v) => v.type === l.name), c = {
|
|
7226
7226
|
name: l.name,
|
|
7227
7227
|
options: l.options,
|
|
7228
7228
|
storage: l.storage
|
|
7229
7229
|
}, f = r.reduce((v, g) => {
|
|
7230
|
-
const y =
|
|
7230
|
+
const y = T(g, "extendNodeSchema", c);
|
|
7231
7231
|
return {
|
|
7232
7232
|
...v,
|
|
7233
7233
|
...y ? y(l) : {}
|
|
7234
7234
|
};
|
|
7235
7235
|
}, {}), d = Uu({
|
|
7236
7236
|
...f,
|
|
7237
|
-
content: R(
|
|
7238
|
-
marks: R(
|
|
7239
|
-
group: R(
|
|
7240
|
-
inline: R(
|
|
7241
|
-
atom: R(
|
|
7242
|
-
selectable: R(
|
|
7243
|
-
draggable: R(
|
|
7244
|
-
code: R(
|
|
7245
|
-
defining: R(
|
|
7246
|
-
isolating: R(
|
|
7237
|
+
content: R(T(l, "content", c)),
|
|
7238
|
+
marks: R(T(l, "marks", c)),
|
|
7239
|
+
group: R(T(l, "group", c)),
|
|
7240
|
+
inline: R(T(l, "inline", c)),
|
|
7241
|
+
atom: R(T(l, "atom", c)),
|
|
7242
|
+
selectable: R(T(l, "selectable", c)),
|
|
7243
|
+
draggable: R(T(l, "draggable", c)),
|
|
7244
|
+
code: R(T(l, "code", c)),
|
|
7245
|
+
defining: R(T(l, "defining", c)),
|
|
7246
|
+
isolating: R(T(l, "isolating", c)),
|
|
7247
7247
|
attrs: Object.fromEntries(u.map((v) => {
|
|
7248
7248
|
var g;
|
|
7249
7249
|
return [v.name, { default: (g = v == null ? void 0 : v.attribute) === null || g === void 0 ? void 0 : g.default }];
|
|
7250
7250
|
}))
|
|
7251
|
-
}), h = R(
|
|
7251
|
+
}), h = R(T(l, "parseHTML", c));
|
|
7252
7252
|
h && (d.parseDOM = h.map((v) => qu(v, u)));
|
|
7253
|
-
const p =
|
|
7253
|
+
const p = T(l, "renderHTML", c);
|
|
7254
7254
|
p && (d.toDOM = (v) => p({
|
|
7255
7255
|
node: v,
|
|
7256
7256
|
HTMLAttributes: Xa(v, u)
|
|
7257
7257
|
}));
|
|
7258
|
-
const m =
|
|
7258
|
+
const m = T(l, "renderText", c);
|
|
7259
7259
|
return m && (d.toText = m), [l.name, d];
|
|
7260
7260
|
})), a = Object.fromEntries(i.map((l) => {
|
|
7261
7261
|
const u = t.filter((m) => m.type === l.name), c = {
|
|
@@ -7263,25 +7263,25 @@ function n1(r) {
|
|
|
7263
7263
|
options: l.options,
|
|
7264
7264
|
storage: l.storage
|
|
7265
7265
|
}, f = r.reduce((m, v) => {
|
|
7266
|
-
const g =
|
|
7266
|
+
const g = T(v, "extendMarkSchema", c);
|
|
7267
7267
|
return {
|
|
7268
7268
|
...m,
|
|
7269
7269
|
...g ? g(l) : {}
|
|
7270
7270
|
};
|
|
7271
7271
|
}, {}), d = Uu({
|
|
7272
7272
|
...f,
|
|
7273
|
-
inclusive: R(
|
|
7274
|
-
excludes: R(
|
|
7275
|
-
group: R(
|
|
7276
|
-
spanning: R(
|
|
7277
|
-
code: R(
|
|
7273
|
+
inclusive: R(T(l, "inclusive", c)),
|
|
7274
|
+
excludes: R(T(l, "excludes", c)),
|
|
7275
|
+
group: R(T(l, "group", c)),
|
|
7276
|
+
spanning: R(T(l, "spanning", c)),
|
|
7277
|
+
code: R(T(l, "code", c)),
|
|
7278
7278
|
attrs: Object.fromEntries(u.map((m) => {
|
|
7279
7279
|
var v;
|
|
7280
7280
|
return [m.name, { default: (v = m == null ? void 0 : m.attribute) === null || v === void 0 ? void 0 : v.default }];
|
|
7281
7281
|
}))
|
|
7282
|
-
}), h = R(
|
|
7282
|
+
}), h = R(T(l, "parseHTML", c));
|
|
7283
7283
|
h && (d.parseDOM = h.map((m) => qu(m, u)));
|
|
7284
|
-
const p =
|
|
7284
|
+
const p = T(l, "renderHTML", c);
|
|
7285
7285
|
return p && (d.toDOM = (m) => p({
|
|
7286
7286
|
mark: m,
|
|
7287
7287
|
HTMLAttributes: Xa(m, u)
|
|
@@ -7370,7 +7370,7 @@ function js(r) {
|
|
|
7370
7370
|
}), c;
|
|
7371
7371
|
}
|
|
7372
7372
|
function s1(r) {
|
|
7373
|
-
const { editor: e, rules: t } = r, n = new
|
|
7373
|
+
const { editor: e, rules: t } = r, n = new Te({
|
|
7374
7374
|
state: {
|
|
7375
7375
|
init() {
|
|
7376
7376
|
return null;
|
|
@@ -7470,7 +7470,7 @@ function u1(r) {
|
|
|
7470
7470
|
function f1(r) {
|
|
7471
7471
|
const { editor: e, rules: t } = r;
|
|
7472
7472
|
let n = null, i = !1, o = !1;
|
|
7473
|
-
return t.map((a) => new
|
|
7473
|
+
return t.map((a) => new Te({
|
|
7474
7474
|
view(l) {
|
|
7475
7475
|
const u = (c) => {
|
|
7476
7476
|
var f;
|
|
@@ -7518,9 +7518,9 @@ function d1(r) {
|
|
|
7518
7518
|
const e = r.filter((t, n) => r.indexOf(t) !== n);
|
|
7519
7519
|
return [...new Set(e)];
|
|
7520
7520
|
}
|
|
7521
|
-
class
|
|
7521
|
+
class Wr {
|
|
7522
7522
|
constructor(e, t) {
|
|
7523
|
-
this.splittableMarks = [], this.editor = t, this.extensions =
|
|
7523
|
+
this.splittableMarks = [], this.editor = t, this.extensions = Wr.resolve(e), this.schema = n1(this.extensions), this.extensions.forEach((n) => {
|
|
7524
7524
|
var i;
|
|
7525
7525
|
this.editor.extensionStorage[n.name] = n.storage;
|
|
7526
7526
|
const o = {
|
|
@@ -7530,27 +7530,27 @@ class Hr {
|
|
|
7530
7530
|
editor: this.editor,
|
|
7531
7531
|
type: zs(n.name, this.schema)
|
|
7532
7532
|
};
|
|
7533
|
-
n.type === "mark" && ((i = R(
|
|
7534
|
-
const s =
|
|
7533
|
+
n.type === "mark" && ((i = R(T(n, "keepOnSplit", o))) !== null && i !== void 0 ? i : !0) && this.splittableMarks.push(n.name);
|
|
7534
|
+
const s = T(n, "onBeforeCreate", o);
|
|
7535
7535
|
s && this.editor.on("beforeCreate", s);
|
|
7536
|
-
const a =
|
|
7536
|
+
const a = T(n, "onCreate", o);
|
|
7537
7537
|
a && this.editor.on("create", a);
|
|
7538
|
-
const l =
|
|
7538
|
+
const l = T(n, "onUpdate", o);
|
|
7539
7539
|
l && this.editor.on("update", l);
|
|
7540
|
-
const u =
|
|
7540
|
+
const u = T(n, "onSelectionUpdate", o);
|
|
7541
7541
|
u && this.editor.on("selectionUpdate", u);
|
|
7542
|
-
const c =
|
|
7542
|
+
const c = T(n, "onTransaction", o);
|
|
7543
7543
|
c && this.editor.on("transaction", c);
|
|
7544
|
-
const f =
|
|
7544
|
+
const f = T(n, "onFocus", o);
|
|
7545
7545
|
f && this.editor.on("focus", f);
|
|
7546
|
-
const d =
|
|
7546
|
+
const d = T(n, "onBlur", o);
|
|
7547
7547
|
d && this.editor.on("blur", d);
|
|
7548
|
-
const h =
|
|
7548
|
+
const h = T(n, "onDestroy", o);
|
|
7549
7549
|
h && this.editor.on("destroy", h);
|
|
7550
7550
|
});
|
|
7551
7551
|
}
|
|
7552
7552
|
static resolve(e) {
|
|
7553
|
-
const t =
|
|
7553
|
+
const t = Wr.sort(Wr.flatten(e)), n = d1(t.map((i) => i.name));
|
|
7554
7554
|
return n.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), t;
|
|
7555
7555
|
}
|
|
7556
7556
|
static flatten(e) {
|
|
@@ -7559,7 +7559,7 @@ class Hr {
|
|
|
7559
7559
|
name: t.name,
|
|
7560
7560
|
options: t.options,
|
|
7561
7561
|
storage: t.storage
|
|
7562
|
-
}, i =
|
|
7562
|
+
}, i = T(t, "addExtensions", n);
|
|
7563
7563
|
return i ? [
|
|
7564
7564
|
t,
|
|
7565
7565
|
...this.flatten(i())
|
|
@@ -7568,7 +7568,7 @@ class Hr {
|
|
|
7568
7568
|
}
|
|
7569
7569
|
static sort(e) {
|
|
7570
7570
|
return e.sort((n, i) => {
|
|
7571
|
-
const o =
|
|
7571
|
+
const o = T(n, "priority") || 100, s = T(i, "priority") || 100;
|
|
7572
7572
|
return o > s ? -1 : o < s ? 1 : 0;
|
|
7573
7573
|
});
|
|
7574
7574
|
}
|
|
@@ -7580,7 +7580,7 @@ class Hr {
|
|
|
7580
7580
|
storage: t.storage,
|
|
7581
7581
|
editor: this.editor,
|
|
7582
7582
|
type: zs(t.name, this.schema)
|
|
7583
|
-
}, i =
|
|
7583
|
+
}, i = T(t, "addCommands", n);
|
|
7584
7584
|
return i ? {
|
|
7585
7585
|
...e,
|
|
7586
7586
|
...i()
|
|
@@ -7588,23 +7588,23 @@ class Hr {
|
|
|
7588
7588
|
}, {});
|
|
7589
7589
|
}
|
|
7590
7590
|
get plugins() {
|
|
7591
|
-
const { editor: e } = this, t =
|
|
7591
|
+
const { editor: e } = this, t = Wr.sort([...this.extensions].reverse()), n = [], i = [], o = t.map((s) => {
|
|
7592
7592
|
const a = {
|
|
7593
7593
|
name: s.name,
|
|
7594
7594
|
options: s.options,
|
|
7595
7595
|
storage: s.storage,
|
|
7596
7596
|
editor: e,
|
|
7597
7597
|
type: zs(s.name, this.schema)
|
|
7598
|
-
}, l = [], u =
|
|
7598
|
+
}, l = [], u = T(s, "addKeyboardShortcuts", a);
|
|
7599
7599
|
if (u) {
|
|
7600
7600
|
const h = Object.fromEntries(Object.entries(u()).map(([m, v]) => [m, () => v({ editor: e })])), p = Mb(h);
|
|
7601
7601
|
l.push(p);
|
|
7602
7602
|
}
|
|
7603
|
-
const c =
|
|
7603
|
+
const c = T(s, "addInputRules", a);
|
|
7604
7604
|
Ku(s, e.options.enableInputRules) && c && n.push(...c());
|
|
7605
|
-
const f =
|
|
7605
|
+
const f = T(s, "addPasteRules", a);
|
|
7606
7606
|
Ku(s, e.options.enablePasteRules) && f && i.push(...f());
|
|
7607
|
-
const d =
|
|
7607
|
+
const d = T(s, "addProseMirrorPlugins", a);
|
|
7608
7608
|
if (d) {
|
|
7609
7609
|
const h = d();
|
|
7610
7610
|
l.push(...h);
|
|
@@ -7628,14 +7628,14 @@ class Hr {
|
|
|
7628
7628
|
}
|
|
7629
7629
|
get nodeViews() {
|
|
7630
7630
|
const { editor: e } = this, { nodeExtensions: t } = Zo(this.extensions);
|
|
7631
|
-
return Object.fromEntries(t.filter((n) => !!
|
|
7631
|
+
return Object.fromEntries(t.filter((n) => !!T(n, "addNodeView")).map((n) => {
|
|
7632
7632
|
const i = this.attributes.filter((l) => l.type === n.name), o = {
|
|
7633
7633
|
name: n.name,
|
|
7634
7634
|
options: n.options,
|
|
7635
7635
|
storage: n.storage,
|
|
7636
7636
|
editor: e,
|
|
7637
7637
|
type: ae(n.name, this.schema)
|
|
7638
|
-
}, s =
|
|
7638
|
+
}, s = T(n, "addNodeView", o);
|
|
7639
7639
|
if (!s)
|
|
7640
7640
|
return [];
|
|
7641
7641
|
const a = (l, u, c, f) => {
|
|
@@ -7673,9 +7673,9 @@ class te {
|
|
|
7673
7673
|
}, this.config = {
|
|
7674
7674
|
...this.config,
|
|
7675
7675
|
...e
|
|
7676
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
7676
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
7677
7677
|
name: this.name
|
|
7678
|
-
}))), this.storage = R(
|
|
7678
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
7679
7679
|
name: this.name,
|
|
7680
7680
|
options: this.options
|
|
7681
7681
|
})) || {};
|
|
@@ -7685,16 +7685,16 @@ class te {
|
|
|
7685
7685
|
}
|
|
7686
7686
|
configure(e = {}) {
|
|
7687
7687
|
const t = this.extend();
|
|
7688
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
7688
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
7689
7689
|
name: t.name,
|
|
7690
7690
|
options: t.options
|
|
7691
7691
|
})), t;
|
|
7692
7692
|
}
|
|
7693
7693
|
extend(e = {}) {
|
|
7694
7694
|
const t = new te(e);
|
|
7695
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
7695
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
7696
7696
|
name: t.name
|
|
7697
|
-
})), t.storage = R(
|
|
7697
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
7698
7698
|
name: t.name,
|
|
7699
7699
|
options: t.options
|
|
7700
7700
|
})), t;
|
|
@@ -7724,7 +7724,7 @@ const p1 = te.create({
|
|
|
7724
7724
|
name: "clipboardTextSerializer",
|
|
7725
7725
|
addProseMirrorPlugins() {
|
|
7726
7726
|
return [
|
|
7727
|
-
new
|
|
7727
|
+
new Te({
|
|
7728
7728
|
key: new tt("clipboardTextSerializer"),
|
|
7729
7729
|
props: {
|
|
7730
7730
|
clipboardTextSerializer: () => {
|
|
@@ -7749,7 +7749,7 @@ const p1 = te.create({
|
|
|
7749
7749
|
const { doc: u, mapping: c } = e, f = u.resolve(c.map(l)), d = u.resolve(c.map(l + a.nodeSize)), h = f.blockRange(d);
|
|
7750
7750
|
if (!h)
|
|
7751
7751
|
return;
|
|
7752
|
-
const p =
|
|
7752
|
+
const p = mn(h);
|
|
7753
7753
|
if (a.type.isTextblock) {
|
|
7754
7754
|
const { defaultType: m } = f.parent.contentMatchAt(f.index());
|
|
7755
7755
|
e.setNodeMarkup(h.start, m);
|
|
@@ -7893,7 +7893,7 @@ function po(r, e, t) {
|
|
|
7893
7893
|
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", r, "Error:", n), po("", e, t);
|
|
7894
7894
|
}
|
|
7895
7895
|
if (typeof r == "string") {
|
|
7896
|
-
const n =
|
|
7896
|
+
const n = nn.fromSchema(e);
|
|
7897
7897
|
return t.slice ? n.parseSlice(Gu(r), t.parseOptions).content : n.parse(Gu(r), t.parseOptions);
|
|
7898
7898
|
}
|
|
7899
7899
|
return po("", e, t);
|
|
@@ -8103,7 +8103,7 @@ function Yu(r, e) {
|
|
|
8103
8103
|
const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, editor: i }) => {
|
|
8104
8104
|
const { selection: o, doc: s } = e, { $from: a, $to: l } = o, u = i.extensionManager.attributes, c = Wi(u, a.node().type.name, a.node().attrs);
|
|
8105
8105
|
if (o instanceof I && o.node.isBlock)
|
|
8106
|
-
return !a.parentOffset || !
|
|
8106
|
+
return !a.parentOffset || !Zr(s, a.pos) ? !1 : (n && (r && Yu(t, i.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
8107
8107
|
if (!a.parent.isBlock)
|
|
8108
8108
|
return !1;
|
|
8109
8109
|
if (n) {
|
|
@@ -8113,8 +8113,8 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
8113
8113
|
let h = f && d ? [{
|
|
8114
8114
|
type: d,
|
|
8115
8115
|
attrs: c
|
|
8116
|
-
}] : void 0, p =
|
|
8117
|
-
if (!h && !p &&
|
|
8116
|
+
}] : void 0, p = Zr(e.doc, e.mapping.map(a.pos), 1, h);
|
|
8117
|
+
if (!h && !p && Zr(e.doc, e.mapping.map(a.pos), 1, d ? [{ type: d }] : void 0) && (p = !0, h = d ? [{
|
|
8118
8118
|
type: d,
|
|
8119
8119
|
attrs: c
|
|
8120
8120
|
}] : void 0), p && (e.split(e.mapping.map(a.pos), 1, h), d && !f && !a.parentOffset && a.parent.type !== d)) {
|
|
@@ -8157,7 +8157,7 @@ const a_ = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: n, edit
|
|
|
8157
8157
|
const d = l.pos === a.end() ? c.contentMatchAt(0).defaultType : null, h = Wi(f, c.type.name, c.attrs), p = Wi(f, a.node().type.name, a.node().attrs);
|
|
8158
8158
|
e.delete(a.pos, l.pos);
|
|
8159
8159
|
const m = d ? [{ type: s, attrs: h }, { type: d, attrs: p }] : [{ type: s, attrs: h }];
|
|
8160
|
-
return
|
|
8160
|
+
return Zr(e.doc, a.pos, 2) ? (n && e.split(a.pos, 2, m).scrollIntoView(), !0) : !1;
|
|
8161
8161
|
};
|
|
8162
8162
|
function c_(r, e) {
|
|
8163
8163
|
for (let t = r.depth; t > 0; t -= 1) {
|
|
@@ -8182,7 +8182,7 @@ function Xu(r, e) {
|
|
|
8182
8182
|
name: n.name,
|
|
8183
8183
|
options: n.options,
|
|
8184
8184
|
storage: n.storage
|
|
8185
|
-
}, o = R(
|
|
8185
|
+
}, o = R(T(n, "group", i));
|
|
8186
8186
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
8187
8187
|
}
|
|
8188
8188
|
const Zu = (r, e) => {
|
|
@@ -8378,7 +8378,7 @@ const S_ = te.create({
|
|
|
8378
8378
|
name: "editable",
|
|
8379
8379
|
addProseMirrorPlugins() {
|
|
8380
8380
|
return [
|
|
8381
|
-
new
|
|
8381
|
+
new Te({
|
|
8382
8382
|
key: new tt("editable"),
|
|
8383
8383
|
props: {
|
|
8384
8384
|
editable: () => this.editor.options.editable
|
|
@@ -8391,7 +8391,7 @@ const S_ = te.create({
|
|
|
8391
8391
|
addProseMirrorPlugins() {
|
|
8392
8392
|
const { editor: r } = this;
|
|
8393
8393
|
return [
|
|
8394
|
-
new
|
|
8394
|
+
new Te({
|
|
8395
8395
|
key: new tt("focusEvents"),
|
|
8396
8396
|
props: {
|
|
8397
8397
|
handleDOMEvents: {
|
|
@@ -8457,7 +8457,7 @@ const S_ = te.create({
|
|
|
8457
8457
|
},
|
|
8458
8458
|
addProseMirrorPlugins() {
|
|
8459
8459
|
return [
|
|
8460
|
-
new
|
|
8460
|
+
new Te({
|
|
8461
8461
|
key: new tt("clearDocument"),
|
|
8462
8462
|
appendTransaction: (r, e, t) => {
|
|
8463
8463
|
if (!(r.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
|
|
@@ -8482,7 +8482,7 @@ const S_ = te.create({
|
|
|
8482
8482
|
name: "tabindex",
|
|
8483
8483
|
addProseMirrorPlugins() {
|
|
8484
8484
|
return [
|
|
8485
|
-
new
|
|
8485
|
+
new Te({
|
|
8486
8486
|
key: new tt("tabindex"),
|
|
8487
8487
|
props: {
|
|
8488
8488
|
attributes: this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -8513,7 +8513,7 @@ function Im(r, e) {
|
|
|
8513
8513
|
return t === "node" ? O_(r, e) : t === "mark" ? Fm(r, e) : {};
|
|
8514
8514
|
}
|
|
8515
8515
|
function k_(r, e) {
|
|
8516
|
-
const t =
|
|
8516
|
+
const t = mt.fromSchema(e).serializeFragment(r), i = document.implementation.createHTMLDocument().createElement("div");
|
|
8517
8517
|
return i.appendChild(t), i.innerHTML;
|
|
8518
8518
|
}
|
|
8519
8519
|
function A_(r, e) {
|
|
@@ -8687,7 +8687,7 @@ class I_ extends e1 {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
createExtensionManager() {
|
|
8689
8689
|
const t = [...this.options.enableCoreExtensions ? Object.values(C_) : [], ...this.options.extensions].filter((n) => ["extension", "node", "mark"].includes(n == null ? void 0 : n.type));
|
|
8690
|
-
this.extensionManager = new
|
|
8690
|
+
this.extensionManager = new Wr(t, this);
|
|
8691
8691
|
}
|
|
8692
8692
|
createCommandManager() {
|
|
8693
8693
|
this.commandManager = new Xo({
|
|
@@ -8702,7 +8702,7 @@ class I_ extends e1 {
|
|
|
8702
8702
|
this.view = new _b(this.options.element, {
|
|
8703
8703
|
...this.options.editorProps,
|
|
8704
8704
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
8705
|
-
state:
|
|
8705
|
+
state: jr.create({
|
|
8706
8706
|
doc: e,
|
|
8707
8707
|
selection: t || void 0
|
|
8708
8708
|
})
|
|
@@ -8881,7 +8881,7 @@ function z_(r) {
|
|
|
8881
8881
|
}
|
|
8882
8882
|
});
|
|
8883
8883
|
}
|
|
8884
|
-
function
|
|
8884
|
+
function At(r) {
|
|
8885
8885
|
return new Ll({
|
|
8886
8886
|
find: r.find,
|
|
8887
8887
|
handler: ({ state: e, range: t, match: n }) => {
|
|
@@ -8918,9 +8918,9 @@ class je {
|
|
|
8918
8918
|
}, this.config = {
|
|
8919
8919
|
...this.config,
|
|
8920
8920
|
...e
|
|
8921
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
8921
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
8922
8922
|
name: this.name
|
|
8923
|
-
}))), this.storage = R(
|
|
8923
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
8924
8924
|
name: this.name,
|
|
8925
8925
|
options: this.options
|
|
8926
8926
|
})) || {};
|
|
@@ -8930,22 +8930,22 @@ class je {
|
|
|
8930
8930
|
}
|
|
8931
8931
|
configure(e = {}) {
|
|
8932
8932
|
const t = this.extend();
|
|
8933
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
8933
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
8934
8934
|
name: t.name,
|
|
8935
8935
|
options: t.options
|
|
8936
8936
|
})), t;
|
|
8937
8937
|
}
|
|
8938
8938
|
extend(e = {}) {
|
|
8939
8939
|
const t = new je(e);
|
|
8940
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
8940
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
8941
8941
|
name: t.name
|
|
8942
|
-
})), t.storage = R(
|
|
8942
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
8943
8943
|
name: t.name,
|
|
8944
8944
|
options: t.options
|
|
8945
8945
|
})), t;
|
|
8946
8946
|
}
|
|
8947
8947
|
}
|
|
8948
|
-
class
|
|
8948
|
+
class Ot {
|
|
8949
8949
|
constructor(e = {}) {
|
|
8950
8950
|
this.type = "node", this.name = "node", this.parent = null, this.child = null, this.config = {
|
|
8951
8951
|
name: this.name,
|
|
@@ -8953,28 +8953,28 @@ class xt {
|
|
|
8953
8953
|
}, this.config = {
|
|
8954
8954
|
...this.config,
|
|
8955
8955
|
...e
|
|
8956
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
8956
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
8957
8957
|
name: this.name
|
|
8958
|
-
}))), this.storage = R(
|
|
8958
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
8959
8959
|
name: this.name,
|
|
8960
8960
|
options: this.options
|
|
8961
8961
|
})) || {};
|
|
8962
8962
|
}
|
|
8963
8963
|
static create(e = {}) {
|
|
8964
|
-
return new
|
|
8964
|
+
return new Ot(e);
|
|
8965
8965
|
}
|
|
8966
8966
|
configure(e = {}) {
|
|
8967
8967
|
const t = this.extend();
|
|
8968
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
8968
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
8969
8969
|
name: t.name,
|
|
8970
8970
|
options: t.options
|
|
8971
8971
|
})), t;
|
|
8972
8972
|
}
|
|
8973
8973
|
extend(e = {}) {
|
|
8974
|
-
const t = new
|
|
8975
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
8974
|
+
const t = new Ot(e);
|
|
8975
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
8976
8976
|
name: t.name
|
|
8977
|
-
})), t.storage = R(
|
|
8977
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
8978
8978
|
name: t.name,
|
|
8979
8979
|
options: t.options
|
|
8980
8980
|
})), t;
|
|
@@ -8998,12 +8998,12 @@ function V_(r) {
|
|
|
8998
8998
|
}
|
|
8999
8999
|
});
|
|
9000
9000
|
}
|
|
9001
|
-
var
|
|
9002
|
-
return r.concat([e + "-" +
|
|
9001
|
+
var Ce = "top", Ve = "bottom", He = "right", Oe = "left", ts = "auto", fi = [Ce, Ve, He, Oe], cn = "start", ii = "end", H_ = "clippingParents", Nm = "viewport", On = "popper", W_ = "reference", ef = /* @__PURE__ */ fi.reduce(function(r, e) {
|
|
9002
|
+
return r.concat([e + "-" + cn, e + "-" + ii]);
|
|
9003
9003
|
}, []), Rm = /* @__PURE__ */ [].concat(fi, [ts]).reduce(function(r, e) {
|
|
9004
|
-
return r.concat([e, e + "-" +
|
|
9004
|
+
return r.concat([e, e + "-" + cn, e + "-" + ii]);
|
|
9005
9005
|
}, []), q_ = "beforeRead", U_ = "read", K_ = "afterRead", G_ = "beforeMain", J_ = "main", Y_ = "afterMain", X_ = "beforeWrite", Z_ = "write", Q_ = "afterWrite", tl = [q_, U_, K_, G_, J_, Y_, X_, Z_, Q_];
|
|
9006
|
-
function
|
|
9006
|
+
function _t(r) {
|
|
9007
9007
|
return r ? (r.nodeName || "").toLowerCase() : null;
|
|
9008
9008
|
}
|
|
9009
9009
|
function rt(r) {
|
|
@@ -9015,7 +9015,7 @@ function rt(r) {
|
|
|
9015
9015
|
}
|
|
9016
9016
|
return r;
|
|
9017
9017
|
}
|
|
9018
|
-
function
|
|
9018
|
+
function un(r) {
|
|
9019
9019
|
var e = rt(r).Element;
|
|
9020
9020
|
return r instanceof e || r instanceof Element;
|
|
9021
9021
|
}
|
|
@@ -9033,7 +9033,7 @@ function eS(r) {
|
|
|
9033
9033
|
var e = r.state;
|
|
9034
9034
|
Object.keys(e.elements).forEach(function(t) {
|
|
9035
9035
|
var n = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
|
|
9036
|
-
!Ne(o) || !
|
|
9036
|
+
!Ne(o) || !_t(o) || (Object.assign(o.style, n), Object.keys(i).forEach(function(s) {
|
|
9037
9037
|
var a = i[s];
|
|
9038
9038
|
a === !1 ? o.removeAttribute(s) : o.setAttribute(s, a === !0 ? "" : a);
|
|
9039
9039
|
}));
|
|
@@ -9057,7 +9057,7 @@ function tS(r) {
|
|
|
9057
9057
|
var i = e.elements[n], o = e.attributes[n] || {}, s = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]), a = s.reduce(function(l, u) {
|
|
9058
9058
|
return l[u] = "", l;
|
|
9059
9059
|
}, {});
|
|
9060
|
-
!Ne(i) || !
|
|
9060
|
+
!Ne(i) || !_t(i) || (Object.assign(i.style, a), Object.keys(o).forEach(function(l) {
|
|
9061
9061
|
i.removeAttribute(l);
|
|
9062
9062
|
}));
|
|
9063
9063
|
});
|
|
@@ -9074,13 +9074,13 @@ const rS = {
|
|
|
9074
9074
|
function Qe(r) {
|
|
9075
9075
|
return r.split("-")[0];
|
|
9076
9076
|
}
|
|
9077
|
-
var mr = Math.max, mo = Math.min,
|
|
9078
|
-
function
|
|
9077
|
+
var mr = Math.max, mo = Math.min, fn = Math.round;
|
|
9078
|
+
function dn(r, e) {
|
|
9079
9079
|
e === void 0 && (e = !1);
|
|
9080
9080
|
var t = r.getBoundingClientRect(), n = 1, i = 1;
|
|
9081
9081
|
if (Ne(r) && e) {
|
|
9082
9082
|
var o = r.offsetHeight, s = r.offsetWidth;
|
|
9083
|
-
s > 0 && (n =
|
|
9083
|
+
s > 0 && (n = fn(t.width) / s || 1), o > 0 && (i = fn(t.height) / o || 1);
|
|
9084
9084
|
}
|
|
9085
9085
|
return {
|
|
9086
9086
|
width: t.width / n,
|
|
@@ -9094,7 +9094,7 @@ function fn(r, e) {
|
|
|
9094
9094
|
};
|
|
9095
9095
|
}
|
|
9096
9096
|
function Wl(r) {
|
|
9097
|
-
var e =
|
|
9097
|
+
var e = dn(r), t = r.offsetWidth, n = r.offsetHeight;
|
|
9098
9098
|
return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
|
|
9099
9099
|
x: r.offsetLeft,
|
|
9100
9100
|
y: r.offsetTop,
|
|
@@ -9120,13 +9120,13 @@ function et(r) {
|
|
|
9120
9120
|
return rt(r).getComputedStyle(r);
|
|
9121
9121
|
}
|
|
9122
9122
|
function nS(r) {
|
|
9123
|
-
return ["table", "td", "th"].indexOf(
|
|
9123
|
+
return ["table", "td", "th"].indexOf(_t(r)) >= 0;
|
|
9124
9124
|
}
|
|
9125
9125
|
function Zt(r) {
|
|
9126
|
-
return ((
|
|
9126
|
+
return ((un(r) ? r.ownerDocument : r.document) || window.document).documentElement;
|
|
9127
9127
|
}
|
|
9128
9128
|
function rs(r) {
|
|
9129
|
-
return
|
|
9129
|
+
return _t(r) === "html" ? r : r.assignedSlot || r.parentNode || (Hl(r) ? r.host : null) || Zt(r);
|
|
9130
9130
|
}
|
|
9131
9131
|
function tf(r) {
|
|
9132
9132
|
return !Ne(r) || et(r).position === "fixed" ? null : r.offsetParent;
|
|
@@ -9139,7 +9139,7 @@ function iS(r) {
|
|
|
9139
9139
|
return null;
|
|
9140
9140
|
}
|
|
9141
9141
|
var i = rs(r);
|
|
9142
|
-
for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(
|
|
9142
|
+
for (Hl(i) && (i = i.host); Ne(i) && ["html", "body"].indexOf(_t(i)) < 0; ) {
|
|
9143
9143
|
var o = et(i);
|
|
9144
9144
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
9145
9145
|
return i;
|
|
@@ -9150,7 +9150,7 @@ function iS(r) {
|
|
|
9150
9150
|
function di(r) {
|
|
9151
9151
|
for (var e = rt(r), t = tf(r); t && nS(t) && et(t).position === "static"; )
|
|
9152
9152
|
t = tf(t);
|
|
9153
|
-
return t && (
|
|
9153
|
+
return t && (_t(t) === "html" || _t(t) === "body" && et(t).position === "static") ? e : t || iS(r) || e;
|
|
9154
9154
|
}
|
|
9155
9155
|
function ql(r) {
|
|
9156
9156
|
return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
|
|
@@ -9184,9 +9184,9 @@ var sS = function(e, t) {
|
|
|
9184
9184
|
})) : e, Lm(typeof e != "number" ? e : zm(e, fi));
|
|
9185
9185
|
};
|
|
9186
9186
|
function aS(r) {
|
|
9187
|
-
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Qe(t.placement), l = ql(a), u = [
|
|
9187
|
+
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Qe(t.placement), l = ql(a), u = [Oe, He].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
9188
9188
|
if (!(!o || !s)) {
|
|
9189
|
-
var f = sS(i.padding, t), d = Wl(o), h = l === "y" ?
|
|
9189
|
+
var f = sS(i.padding, t), d = Wl(o), h = l === "y" ? Ce : Oe, p = l === "y" ? Ve : He, m = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], v = s[l] - t.rects.reference[l], g = di(o), y = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, D = m / 2 - v / 2, _ = f[h], x = y - d[c] - f[p], b = y / 2 - d[c] / 2 + D, C = qn(_, b, x), E = l;
|
|
9190
9190
|
t.modifiersData[n] = (e = {}, e[E] = C, e.centerOffset = C - b, e);
|
|
9191
9191
|
}
|
|
9192
9192
|
}
|
|
@@ -9209,7 +9209,7 @@ const cS = {
|
|
|
9209
9209
|
requires: ["popperOffsets"],
|
|
9210
9210
|
requiresIfExists: ["preventOverflow"]
|
|
9211
9211
|
};
|
|
9212
|
-
function
|
|
9212
|
+
function hn(r) {
|
|
9213
9213
|
return r.split("-")[1];
|
|
9214
9214
|
}
|
|
9215
9215
|
var uS = {
|
|
@@ -9221,8 +9221,8 @@ var uS = {
|
|
|
9221
9221
|
function fS(r) {
|
|
9222
9222
|
var e = r.x, t = r.y, n = window, i = n.devicePixelRatio || 1;
|
|
9223
9223
|
return {
|
|
9224
|
-
x:
|
|
9225
|
-
y:
|
|
9224
|
+
x: fn(e * i) / i || 0,
|
|
9225
|
+
y: fn(t * i) / i || 0
|
|
9226
9226
|
};
|
|
9227
9227
|
}
|
|
9228
9228
|
function rf(r) {
|
|
@@ -9234,15 +9234,15 @@ function rf(r) {
|
|
|
9234
9234
|
y: m
|
|
9235
9235
|
};
|
|
9236
9236
|
h = v.x, m = v.y;
|
|
9237
|
-
var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D =
|
|
9237
|
+
var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D = Oe, _ = Ce, x = window;
|
|
9238
9238
|
if (u) {
|
|
9239
9239
|
var b = di(t), C = "clientHeight", E = "clientWidth";
|
|
9240
|
-
if (b === rt(t) && (b = Zt(t), et(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i ===
|
|
9240
|
+
if (b === rt(t) && (b = Zt(t), et(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i === Ce || (i === Oe || i === He) && o === ii) {
|
|
9241
9241
|
_ = Ve;
|
|
9242
9242
|
var F = f && b === x && x.visualViewport ? x.visualViewport.height : b[C];
|
|
9243
9243
|
m -= F - n.height, m *= l ? 1 : -1;
|
|
9244
9244
|
}
|
|
9245
|
-
if (i ===
|
|
9245
|
+
if (i === Oe || (i === Ce || i === Ve) && o === ii) {
|
|
9246
9246
|
D = He;
|
|
9247
9247
|
var V = f && b === x && x.visualViewport ? x.visualViewport.width : b[E];
|
|
9248
9248
|
h -= V - n.width, h *= l ? 1 : -1;
|
|
@@ -9277,7 +9277,7 @@ function dS(r) {
|
|
|
9277
9277
|
}
|
|
9278
9278
|
var c = {
|
|
9279
9279
|
placement: Qe(e.placement),
|
|
9280
|
-
variation:
|
|
9280
|
+
variation: hn(e.placement),
|
|
9281
9281
|
popper: e.elements.popper,
|
|
9282
9282
|
popperRect: e.rects.popper,
|
|
9283
9283
|
gpuAcceleration: i,
|
|
@@ -9354,7 +9354,7 @@ function Ul(r) {
|
|
|
9354
9354
|
};
|
|
9355
9355
|
}
|
|
9356
9356
|
function Kl(r) {
|
|
9357
|
-
return
|
|
9357
|
+
return dn(Zt(r)).left + Ul(r).scrollLeft;
|
|
9358
9358
|
}
|
|
9359
9359
|
function yS(r) {
|
|
9360
9360
|
var e = rt(r), t = Zt(r), n = e.visualViewport, i = t.clientWidth, o = t.clientHeight, s = 0, a = 0;
|
|
@@ -9379,7 +9379,7 @@ function Gl(r) {
|
|
|
9379
9379
|
return /auto|scroll|overlay|hidden/.test(t + i + n);
|
|
9380
9380
|
}
|
|
9381
9381
|
function jm(r) {
|
|
9382
|
-
return ["html", "body", "#document"].indexOf(
|
|
9382
|
+
return ["html", "body", "#document"].indexOf(_t(r)) >= 0 ? r.ownerDocument.body : Ne(r) && Gl(r) ? r : jm(rs(r));
|
|
9383
9383
|
}
|
|
9384
9384
|
function Un(r, e) {
|
|
9385
9385
|
var t;
|
|
@@ -9396,16 +9396,16 @@ function rl(r) {
|
|
|
9396
9396
|
});
|
|
9397
9397
|
}
|
|
9398
9398
|
function _S(r) {
|
|
9399
|
-
var e =
|
|
9399
|
+
var e = dn(r);
|
|
9400
9400
|
return e.top = e.top + r.clientTop, e.left = e.left + r.clientLeft, e.bottom = e.top + r.clientHeight, e.right = e.left + r.clientWidth, e.width = r.clientWidth, e.height = r.clientHeight, e.x = e.left, e.y = e.top, e;
|
|
9401
9401
|
}
|
|
9402
9402
|
function of(r, e) {
|
|
9403
|
-
return e === Nm ? rl(yS(r)) :
|
|
9403
|
+
return e === Nm ? rl(yS(r)) : un(e) ? _S(e) : rl(bS(Zt(r)));
|
|
9404
9404
|
}
|
|
9405
9405
|
function SS(r) {
|
|
9406
9406
|
var e = Un(rs(r)), t = ["absolute", "fixed"].indexOf(et(r).position) >= 0, n = t && Ne(r) ? di(r) : r;
|
|
9407
|
-
return
|
|
9408
|
-
return
|
|
9407
|
+
return un(n) ? e.filter(function(i) {
|
|
9408
|
+
return un(i) && Pm(i, n) && _t(i) !== "body";
|
|
9409
9409
|
}) : [];
|
|
9410
9410
|
}
|
|
9411
9411
|
function ES(r, e, t) {
|
|
@@ -9416,9 +9416,9 @@ function ES(r, e, t) {
|
|
|
9416
9416
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
9417
9417
|
}
|
|
9418
9418
|
function Vm(r) {
|
|
9419
|
-
var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ?
|
|
9419
|
+
var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
|
|
9420
9420
|
switch (i) {
|
|
9421
|
-
case
|
|
9421
|
+
case Ce:
|
|
9422
9422
|
l = {
|
|
9423
9423
|
x: s,
|
|
9424
9424
|
y: e.y - t.height
|
|
@@ -9436,7 +9436,7 @@ function Vm(r) {
|
|
|
9436
9436
|
y: a
|
|
9437
9437
|
};
|
|
9438
9438
|
break;
|
|
9439
|
-
case
|
|
9439
|
+
case Oe:
|
|
9440
9440
|
l = {
|
|
9441
9441
|
x: e.x - t.width,
|
|
9442
9442
|
y: a
|
|
@@ -9452,7 +9452,7 @@ function Vm(r) {
|
|
|
9452
9452
|
if (u != null) {
|
|
9453
9453
|
var c = u === "y" ? "height" : "width";
|
|
9454
9454
|
switch (o) {
|
|
9455
|
-
case
|
|
9455
|
+
case cn:
|
|
9456
9456
|
l[u] = l[u] - (e[c] / 2 - t[c] / 2);
|
|
9457
9457
|
break;
|
|
9458
9458
|
case ii:
|
|
@@ -9464,7 +9464,7 @@ function Vm(r) {
|
|
|
9464
9464
|
}
|
|
9465
9465
|
function oi(r, e) {
|
|
9466
9466
|
e === void 0 && (e = {});
|
|
9467
|
-
var t = e, n = t.placement, i = n === void 0 ? r.placement : n, o = t.boundary, s = o === void 0 ? H_ : o, a = t.rootBoundary, l = a === void 0 ? Nm : a, u = t.elementContext, c = u === void 0 ? On : u, f = t.altBoundary, d = f === void 0 ? !1 : f, h = t.padding, p = h === void 0 ? 0 : h, m = Lm(typeof p != "number" ? p : zm(p, fi)), v = c === On ? W_ : On, g = r.rects.popper, y = r.elements[d ? v : c], D = ES(
|
|
9467
|
+
var t = e, n = t.placement, i = n === void 0 ? r.placement : n, o = t.boundary, s = o === void 0 ? H_ : o, a = t.rootBoundary, l = a === void 0 ? Nm : a, u = t.elementContext, c = u === void 0 ? On : u, f = t.altBoundary, d = f === void 0 ? !1 : f, h = t.padding, p = h === void 0 ? 0 : h, m = Lm(typeof p != "number" ? p : zm(p, fi)), v = c === On ? W_ : On, g = r.rects.popper, y = r.elements[d ? v : c], D = ES(un(y) ? y : y.contextElement || Zt(r.elements.popper), s, l), _ = dn(r.elements.reference), x = Vm({
|
|
9468
9468
|
reference: _,
|
|
9469
9469
|
element: g,
|
|
9470
9470
|
strategy: "absolute",
|
|
@@ -9478,7 +9478,7 @@ function oi(r, e) {
|
|
|
9478
9478
|
if (c === On && F) {
|
|
9479
9479
|
var V = F[i];
|
|
9480
9480
|
Object.keys(E).forEach(function(j) {
|
|
9481
|
-
var Q = [He, Ve].indexOf(j) >= 0 ? 1 : -1, J = [
|
|
9481
|
+
var Q = [He, Ve].indexOf(j) >= 0 ? 1 : -1, J = [Ce, Ve].indexOf(j) >= 0 ? "y" : "x";
|
|
9482
9482
|
E[j] += V[J] * Q;
|
|
9483
9483
|
});
|
|
9484
9484
|
}
|
|
@@ -9486,8 +9486,8 @@ function oi(r, e) {
|
|
|
9486
9486
|
}
|
|
9487
9487
|
function DS(r, e) {
|
|
9488
9488
|
e === void 0 && (e = {});
|
|
9489
|
-
var t = e, n = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, u = l === void 0 ? Rm : l, c =
|
|
9490
|
-
return
|
|
9489
|
+
var t = e, n = t.placement, i = t.boundary, o = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, u = l === void 0 ? Rm : l, c = hn(n), f = c ? a ? ef : ef.filter(function(p) {
|
|
9490
|
+
return hn(p) === c;
|
|
9491
9491
|
}) : fi, d = f.filter(function(p) {
|
|
9492
9492
|
return u.indexOf(p) >= 0;
|
|
9493
9493
|
});
|
|
@@ -9513,23 +9513,23 @@ function wS(r) {
|
|
|
9513
9513
|
function xS(r) {
|
|
9514
9514
|
var e = r.state, t = r.options, n = r.name;
|
|
9515
9515
|
if (!e.modifiersData[n]._skip) {
|
|
9516
|
-
for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function(Mr,
|
|
9517
|
-
return Mr.concat(Qe(
|
|
9518
|
-
placement:
|
|
9516
|
+
for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, u = t.padding, c = t.boundary, f = t.rootBoundary, d = t.altBoundary, h = t.flipVariations, p = h === void 0 ? !0 : h, m = t.allowedAutoPlacements, v = e.options.placement, g = Qe(v), y = g === v, D = l || (y || !p ? [qi(v)] : wS(v)), _ = [v].concat(D).reduce(function(Mr, Tt) {
|
|
9517
|
+
return Mr.concat(Qe(Tt) === ts ? DS(e, {
|
|
9518
|
+
placement: Tt,
|
|
9519
9519
|
boundary: c,
|
|
9520
9520
|
rootBoundary: f,
|
|
9521
9521
|
padding: u,
|
|
9522
9522
|
flipVariations: p,
|
|
9523
9523
|
allowedAutoPlacements: m
|
|
9524
|
-
}) :
|
|
9524
|
+
}) : Tt);
|
|
9525
9525
|
}, []), x = e.rects.reference, b = e.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, F = _[0], V = 0; V < _.length; V++) {
|
|
9526
|
-
var j = _[V], Q = Qe(j), J =
|
|
9526
|
+
var j = _[V], Q = Qe(j), J = hn(j) === cn, st = [Ce, Ve].indexOf(Q) >= 0, Ee = st ? "width" : "height", Y = oi(e, {
|
|
9527
9527
|
placement: j,
|
|
9528
9528
|
boundary: c,
|
|
9529
9529
|
rootBoundary: f,
|
|
9530
9530
|
altBoundary: d,
|
|
9531
9531
|
padding: u
|
|
9532
|
-
}), De = st ? J ? He :
|
|
9532
|
+
}), De = st ? J ? He : Oe : J ? Ve : Ce;
|
|
9533
9533
|
x[Ee] > b[Ee] && (De = qi(De));
|
|
9534
9534
|
var Tr = qi(De), K = [];
|
|
9535
9535
|
if (o && K.push(Y[Q] <= 0), a && K.push(Y[De] <= 0, Y[Tr] <= 0), K.every(function(Mr) {
|
|
@@ -9541,18 +9541,18 @@ function xS(r) {
|
|
|
9541
9541
|
C.set(j, K);
|
|
9542
9542
|
}
|
|
9543
9543
|
if (E)
|
|
9544
|
-
for (var X = p ? 3 : 1,
|
|
9545
|
-
var
|
|
9544
|
+
for (var X = p ? 3 : 1, St = function(Tt) {
|
|
9545
|
+
var xn = _.find(function(_i) {
|
|
9546
9546
|
var tr = C.get(_i);
|
|
9547
9547
|
if (tr)
|
|
9548
|
-
return tr.slice(0,
|
|
9548
|
+
return tr.slice(0, Tt).every(function(bs) {
|
|
9549
9549
|
return bs;
|
|
9550
9550
|
});
|
|
9551
9551
|
});
|
|
9552
|
-
if (
|
|
9553
|
-
return F =
|
|
9554
|
-
},
|
|
9555
|
-
var bi =
|
|
9552
|
+
if (xn)
|
|
9553
|
+
return F = xn, "break";
|
|
9554
|
+
}, wn = X; wn > 0; wn--) {
|
|
9555
|
+
var bi = St(wn);
|
|
9556
9556
|
if (bi === "break")
|
|
9557
9557
|
break;
|
|
9558
9558
|
}
|
|
@@ -9581,7 +9581,7 @@ function sf(r, e, t) {
|
|
|
9581
9581
|
};
|
|
9582
9582
|
}
|
|
9583
9583
|
function af(r) {
|
|
9584
|
-
return [
|
|
9584
|
+
return [Ce, He, Ve, Oe].some(function(e) {
|
|
9585
9585
|
return r[e] >= 0;
|
|
9586
9586
|
});
|
|
9587
9587
|
}
|
|
@@ -9609,10 +9609,10 @@ const kS = {
|
|
|
9609
9609
|
fn: OS
|
|
9610
9610
|
};
|
|
9611
9611
|
function AS(r, e, t) {
|
|
9612
|
-
var n = Qe(r), i = [
|
|
9612
|
+
var n = Qe(r), i = [Oe, Ce].indexOf(n) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
|
|
9613
9613
|
placement: r
|
|
9614
9614
|
})) : t, s = o[0], a = o[1];
|
|
9615
|
-
return s = s || 0, a = (a || 0) * i, [
|
|
9615
|
+
return s = s || 0, a = (a || 0) * i, [Oe, He].indexOf(n) >= 0 ? {
|
|
9616
9616
|
x: a,
|
|
9617
9617
|
y: s
|
|
9618
9618
|
} : {
|
|
@@ -9658,7 +9658,7 @@ function NS(r) {
|
|
|
9658
9658
|
rootBoundary: u,
|
|
9659
9659
|
padding: f,
|
|
9660
9660
|
altBoundary: c
|
|
9661
|
-
}), g = Qe(e.placement), y =
|
|
9661
|
+
}), g = Qe(e.placement), y = hn(e.placement), D = !y, _ = ql(g), x = IS(_), b = e.modifiersData.popperOffsets, C = e.rects.reference, E = e.rects.popper, F = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
9662
9662
|
placement: e.placement
|
|
9663
9663
|
})) : m, V = typeof F == "number" ? {
|
|
9664
9664
|
mainAxis: F,
|
|
@@ -9672,14 +9672,14 @@ function NS(r) {
|
|
|
9672
9672
|
};
|
|
9673
9673
|
if (!!b) {
|
|
9674
9674
|
if (o) {
|
|
9675
|
-
var J, st = _ === "y" ?
|
|
9675
|
+
var J, st = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Tr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, Mr = h && bi ? Wl(bi) : {
|
|
9676
9676
|
width: 0,
|
|
9677
9677
|
height: 0
|
|
9678
|
-
},
|
|
9678
|
+
}, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y], Mr[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Tr, Xg) : Tr, De, h ? mr(K, Zg) : K);
|
|
9679
9679
|
b[_] = Wc, Q[_] = Wc - De;
|
|
9680
9680
|
}
|
|
9681
9681
|
if (a) {
|
|
9682
|
-
var qc, Qg = _ === "x" ?
|
|
9682
|
+
var qc, Qg = _ === "x" ? Ce : Oe, ey = _ === "x" ? Ve : He, rr = b[x], Si = x === "y" ? "height" : "width", Uc = rr + v[Qg], Kc = rr - v[ey], Ss = [Ce, Oe].indexOf(g) !== -1, Gc = (qc = j == null ? void 0 : j[x]) != null ? qc : 0, Jc = Ss ? Uc : rr - C[Si] - E[Si] - Gc + V.altAxis, Yc = Ss ? rr + C[Si] + E[Si] - Gc - V.altAxis : Kc, Xc = h && Ss ? oS(Jc, rr, Yc) : qn(h ? Jc : Uc, rr, h ? Yc : Kc);
|
|
9683
9683
|
b[x] = Xc, Q[x] = Xc - rr;
|
|
9684
9684
|
}
|
|
9685
9685
|
e.modifiersData[n] = Q;
|
|
@@ -9702,19 +9702,19 @@ function BS(r) {
|
|
|
9702
9702
|
return r === rt(r) || !Ne(r) ? Ul(r) : PS(r);
|
|
9703
9703
|
}
|
|
9704
9704
|
function LS(r) {
|
|
9705
|
-
var e = r.getBoundingClientRect(), t =
|
|
9705
|
+
var e = r.getBoundingClientRect(), t = fn(e.width) / r.offsetWidth || 1, n = fn(e.height) / r.offsetHeight || 1;
|
|
9706
9706
|
return t !== 1 || n !== 1;
|
|
9707
9707
|
}
|
|
9708
9708
|
function zS(r, e, t) {
|
|
9709
9709
|
t === void 0 && (t = !1);
|
|
9710
|
-
var n = Ne(e), i = Ne(e) && LS(e), o = Zt(e), s =
|
|
9710
|
+
var n = Ne(e), i = Ne(e) && LS(e), o = Zt(e), s = dn(r, i), a = {
|
|
9711
9711
|
scrollLeft: 0,
|
|
9712
9712
|
scrollTop: 0
|
|
9713
9713
|
}, l = {
|
|
9714
9714
|
x: 0,
|
|
9715
9715
|
y: 0
|
|
9716
9716
|
};
|
|
9717
|
-
return (n || !n && !t) && ((
|
|
9717
|
+
return (n || !n && !t) && ((_t(e) !== "body" || Gl(o)) && (a = BS(e)), Ne(e) ? (l = dn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = Kl(o))), {
|
|
9718
9718
|
x: s.left + a.scrollLeft - l.x,
|
|
9719
9719
|
y: s.top + a.scrollTop - l.y,
|
|
9720
9720
|
width: s.width,
|
|
@@ -9758,7 +9758,7 @@ function HS(r) {
|
|
|
9758
9758
|
})), e;
|
|
9759
9759
|
};
|
|
9760
9760
|
}
|
|
9761
|
-
function
|
|
9761
|
+
function $t(r) {
|
|
9762
9762
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
9763
9763
|
t[n - 1] = arguments[n];
|
|
9764
9764
|
return [].concat(t).reduce(function(i, o) {
|
|
@@ -9773,25 +9773,25 @@ function qS(r) {
|
|
|
9773
9773
|
}).forEach(function(t) {
|
|
9774
9774
|
switch (t) {
|
|
9775
9775
|
case "name":
|
|
9776
|
-
typeof e.name != "string" && console.error(
|
|
9776
|
+
typeof e.name != "string" && console.error($t(nr, String(e.name), '"name"', '"string"', '"' + String(e.name) + '"'));
|
|
9777
9777
|
break;
|
|
9778
9778
|
case "enabled":
|
|
9779
|
-
typeof e.enabled != "boolean" && console.error(
|
|
9779
|
+
typeof e.enabled != "boolean" && console.error($t(nr, e.name, '"enabled"', '"boolean"', '"' + String(e.enabled) + '"'));
|
|
9780
9780
|
break;
|
|
9781
9781
|
case "phase":
|
|
9782
|
-
tl.indexOf(e.phase) < 0 && console.error(
|
|
9782
|
+
tl.indexOf(e.phase) < 0 && console.error($t(nr, e.name, '"phase"', "either " + tl.join(", "), '"' + String(e.phase) + '"'));
|
|
9783
9783
|
break;
|
|
9784
9784
|
case "fn":
|
|
9785
|
-
typeof e.fn != "function" && console.error(
|
|
9785
|
+
typeof e.fn != "function" && console.error($t(nr, e.name, '"fn"', '"function"', '"' + String(e.fn) + '"'));
|
|
9786
9786
|
break;
|
|
9787
9787
|
case "effect":
|
|
9788
|
-
e.effect != null && typeof e.effect != "function" && console.error(
|
|
9788
|
+
e.effect != null && typeof e.effect != "function" && console.error($t(nr, e.name, '"effect"', '"function"', '"' + String(e.fn) + '"'));
|
|
9789
9789
|
break;
|
|
9790
9790
|
case "requires":
|
|
9791
|
-
e.requires != null && !Array.isArray(e.requires) && console.error(
|
|
9791
|
+
e.requires != null && !Array.isArray(e.requires) && console.error($t(nr, e.name, '"requires"', '"array"', '"' + String(e.requires) + '"'));
|
|
9792
9792
|
break;
|
|
9793
9793
|
case "requiresIfExists":
|
|
9794
|
-
Array.isArray(e.requiresIfExists) || console.error(
|
|
9794
|
+
Array.isArray(e.requiresIfExists) || console.error($t(nr, e.name, '"requiresIfExists"', '"array"', '"' + String(e.requiresIfExists) + '"'));
|
|
9795
9795
|
break;
|
|
9796
9796
|
case "options":
|
|
9797
9797
|
case "data":
|
|
@@ -9804,7 +9804,7 @@ function qS(r) {
|
|
|
9804
9804
|
e.requires && e.requires.forEach(function(n) {
|
|
9805
9805
|
r.find(function(i) {
|
|
9806
9806
|
return i.name === n;
|
|
9807
|
-
}) == null && console.error(
|
|
9807
|
+
}) == null && console.error($t(WS, String(e.name), n, n));
|
|
9808
9808
|
});
|
|
9809
9809
|
});
|
|
9810
9810
|
});
|
|
@@ -9862,7 +9862,7 @@ function JS(r) {
|
|
|
9862
9862
|
setOptions: function(g) {
|
|
9863
9863
|
var y = typeof g == "function" ? g(c.options) : g;
|
|
9864
9864
|
m(), c.options = Object.assign({}, o, c.options, y), c.scrollParents = {
|
|
9865
|
-
reference:
|
|
9865
|
+
reference: un(a) ? Un(a) : a.contextElement ? Un(a.contextElement) : [],
|
|
9866
9866
|
popper: Un(l)
|
|
9867
9867
|
};
|
|
9868
9868
|
var D = VS(KS([].concat(n, c.options.modifiers)));
|
|
@@ -10012,7 +10012,7 @@ const ZS = {
|
|
|
10012
10012
|
this.DESKTOP
|
|
10013
10013
|
];
|
|
10014
10014
|
}
|
|
10015
|
-
}),
|
|
10015
|
+
}), en = Object.freeze({
|
|
10016
10016
|
UPPERCASE: "uppercase",
|
|
10017
10017
|
LOWERCASE: "lowercase",
|
|
10018
10018
|
CAPITALIZE: "capitalize"
|
|
@@ -10039,7 +10039,7 @@ const ZS = {
|
|
|
10039
10039
|
get blocks() {
|
|
10040
10040
|
return [this.PARAGRAPH, this.LIST, this.HEADING];
|
|
10041
10041
|
}
|
|
10042
|
-
}),
|
|
10042
|
+
}), we = Object.freeze({
|
|
10043
10043
|
DISC: "disc",
|
|
10044
10044
|
CIRCLE: "circle",
|
|
10045
10045
|
SQUARE: "square",
|
|
@@ -10091,7 +10091,7 @@ const ZS = {
|
|
|
10091
10091
|
}), jt = Object.freeze({
|
|
10092
10092
|
BLANK: "_blank",
|
|
10093
10093
|
SELF: "_self"
|
|
10094
|
-
}),
|
|
10094
|
+
}), pt = Object.freeze({
|
|
10095
10095
|
URL: "url",
|
|
10096
10096
|
BLOCK: "block"
|
|
10097
10097
|
});
|
|
@@ -10144,7 +10144,7 @@ const tE = {
|
|
|
10144
10144
|
}
|
|
10145
10145
|
},
|
|
10146
10146
|
setup(r) {
|
|
10147
|
-
return { classes:
|
|
10147
|
+
return { classes: A(() => ({
|
|
10148
10148
|
"zw-toolbar__divider--vertical": r.vertical,
|
|
10149
10149
|
"zw-toolbar__divider--horizontal": r.horizontal
|
|
10150
10150
|
})) };
|
|
@@ -10182,7 +10182,7 @@ var aE = /* @__PURE__ */ $(
|
|
|
10182
10182
|
oE,
|
|
10183
10183
|
!1,
|
|
10184
10184
|
lE,
|
|
10185
|
-
"
|
|
10185
|
+
"a6ed2ebe",
|
|
10186
10186
|
null,
|
|
10187
10187
|
null
|
|
10188
10188
|
);
|
|
@@ -10268,7 +10268,7 @@ const gE = {
|
|
|
10268
10268
|
}
|
|
10269
10269
|
},
|
|
10270
10270
|
setup(r) {
|
|
10271
|
-
return { classes:
|
|
10271
|
+
return { classes: A(() => ({
|
|
10272
10272
|
[`zw-button--${r.skin}`]: r.skin !== "none",
|
|
10273
10273
|
"zw-button--active": r.active,
|
|
10274
10274
|
"zw-button--icon": r.icon
|
|
@@ -10494,10 +10494,10 @@ const iD = {
|
|
|
10494
10494
|
}
|
|
10495
10495
|
},
|
|
10496
10496
|
setup(r) {
|
|
10497
|
-
const e =
|
|
10497
|
+
const e = A(() => tD(r.name)), t = A(() => isNaN(Number(r.size)) ? r.size : `${r.size}px`), n = A(() => r.size ? {
|
|
10498
10498
|
"--zw-icon-width": t.value,
|
|
10499
10499
|
"--zw-icon-height": t.value
|
|
10500
|
-
} : null), i =
|
|
10500
|
+
} : null), i = A(() => ({
|
|
10501
10501
|
"zw-icon--auto-color": r.autoColor
|
|
10502
10502
|
}));
|
|
10503
10503
|
return {
|
|
@@ -10524,9 +10524,9 @@ function sD(r) {
|
|
|
10524
10524
|
const ye = /* @__PURE__ */ function() {
|
|
10525
10525
|
return oD.exports;
|
|
10526
10526
|
}();
|
|
10527
|
-
var
|
|
10527
|
+
var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ci = function(r) {
|
|
10528
10528
|
return r && r.Math == Math && r;
|
|
10529
|
-
}, le = Ci(typeof globalThis == "object" && globalThis) || Ci(typeof window == "object" && window) || Ci(typeof self == "object" && self) || Ci(typeof
|
|
10529
|
+
}, le = Ci(typeof globalThis == "object" && globalThis) || Ci(typeof window == "object" && window) || Ci(typeof self == "object" && self) || Ci(typeof xe == "object" && xe) || function() {
|
|
10530
10530
|
return this;
|
|
10531
10531
|
}() || Function("return this")(), ns = { exports: {} }, yf = le, aD = Object.defineProperty, Yl = function(r, e) {
|
|
10532
10532
|
try {
|
|
@@ -10561,13 +10561,13 @@ var G = function(r) {
|
|
|
10561
10561
|
return r && function() {
|
|
10562
10562
|
return nl.apply(r, arguments);
|
|
10563
10563
|
};
|
|
10564
|
-
}, pD = TypeError,
|
|
10564
|
+
}, pD = TypeError, gn = function(r) {
|
|
10565
10565
|
if (r == null)
|
|
10566
10566
|
throw pD("Can't call method on " + r);
|
|
10567
10567
|
return r;
|
|
10568
|
-
}, mD =
|
|
10568
|
+
}, mD = gn, vD = Object, yn = function(r) {
|
|
10569
10569
|
return vD(mD(r));
|
|
10570
|
-
}, gD = U, yD =
|
|
10570
|
+
}, gD = U, yD = yn, bD = gD({}.hasOwnProperty), nt = Object.hasOwn || function(e, t) {
|
|
10571
10571
|
return bD(yD(e), t);
|
|
10572
10572
|
}, _D = U, SD = 0, ED = Math.random(), DD = _D(1 .toString), Zl = function(r) {
|
|
10573
10573
|
return "Symbol(" + (r === void 0 ? "" : r) + ")_" + DD(++SD + ED, 36);
|
|
@@ -10583,12 +10583,12 @@ wf && (Ke = wf.split("."), go = Ke[0] > 0 && Ke[0] < 4 ? 1 : +(Ke[0] + Ke[1]));
|
|
|
10583
10583
|
var Ql = go, xf = Ql, kD = G, Xm = !!Object.getOwnPropertySymbols && !kD(function() {
|
|
10584
10584
|
var r = Symbol();
|
|
10585
10585
|
return !String(r) || !(Object(r) instanceof Symbol) || !Symbol.sham && xf && xf < 41;
|
|
10586
|
-
}), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm,
|
|
10587
|
-
if (!Cf(
|
|
10586
|
+
}), AD = Xm, Zm = AD && !Symbol.sham && typeof Symbol.iterator == "symbol", TD = le, MD = ns.exports, Cf = nt, $D = Zl, Of = Xm, Qm = Zm, Ir = MD("wks"), vr = TD.Symbol, kf = vr && vr.for, FD = Qm ? vr : vr && vr.withoutSetter || $D, Se = function(r) {
|
|
10587
|
+
if (!Cf(Ir, r) || !(Of || typeof Ir[r] == "string")) {
|
|
10588
10588
|
var e = "Symbol." + r;
|
|
10589
|
-
Of && Cf(vr, r) ?
|
|
10589
|
+
Of && Cf(vr, r) ? Ir[r] = vr[r] : Qm && kf ? Ir[r] = kf(e) : Ir[r] = FD(e);
|
|
10590
10590
|
}
|
|
10591
|
-
return
|
|
10591
|
+
return Ir[r];
|
|
10592
10592
|
}, ID = Se, ND = ID("toStringTag"), ev = {};
|
|
10593
10593
|
ev[ND] = "z";
|
|
10594
10594
|
var ec = String(ev) === "[object z]", it = {}, RD = G, ot = !RD(function() {
|
|
@@ -10690,13 +10690,13 @@ var ac = sl.inspectSource, Aw = le, Tw = re, Mw = ac, Ff = Aw.WeakMap, sv = Tw(F
|
|
|
10690
10690
|
writable: !(r & 4),
|
|
10691
10691
|
value: e
|
|
10692
10692
|
};
|
|
10693
|
-
}, $w = ot, Fw = it, Iw = as,
|
|
10693
|
+
}, $w = ot, Fw = it, Iw = as, bn = $w ? function(r, e, t) {
|
|
10694
10694
|
return Fw.f(r, e, Iw(1, t));
|
|
10695
10695
|
} : function(r, e, t) {
|
|
10696
10696
|
return r[e] = t, r;
|
|
10697
10697
|
}, Nw = ns.exports, Rw = Zl, If = Nw("keys"), lc = function(r) {
|
|
10698
10698
|
return If[r] || (If[r] = Rw(r));
|
|
10699
|
-
}, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw =
|
|
10699
|
+
}, ls = {}, Pw = sv, av = le, Zs = U, Bw = We, Lw = bn, Qs = nt, ea = Xl, zw = lc, jw = ls, Nf = "Object already initialized", al = av.TypeError, Vw = av.WeakMap, yo, si, bo, Hw = function(r) {
|
|
10700
10700
|
return bo(r) ? si(r) : yo(r, {});
|
|
10701
10701
|
}, Ww = function(r) {
|
|
10702
10702
|
return function(e) {
|
|
@@ -10718,24 +10718,24 @@ if (Pw || ea.state) {
|
|
|
10718
10718
|
return Rf(ir, r);
|
|
10719
10719
|
};
|
|
10720
10720
|
} else {
|
|
10721
|
-
var
|
|
10722
|
-
jw[
|
|
10723
|
-
if (Qs(r,
|
|
10721
|
+
var Nr = zw("state");
|
|
10722
|
+
jw[Nr] = !0, yo = function(r, e) {
|
|
10723
|
+
if (Qs(r, Nr))
|
|
10724
10724
|
throw new al(Nf);
|
|
10725
|
-
return e.facade = r, Lw(r,
|
|
10725
|
+
return e.facade = r, Lw(r, Nr, e), e;
|
|
10726
10726
|
}, si = function(r) {
|
|
10727
|
-
return Qs(r,
|
|
10727
|
+
return Qs(r, Nr) ? r[Nr] : {};
|
|
10728
10728
|
}, bo = function(r) {
|
|
10729
|
-
return Qs(r,
|
|
10729
|
+
return Qs(r, Nr);
|
|
10730
10730
|
};
|
|
10731
10731
|
}
|
|
10732
|
-
var
|
|
10732
|
+
var _n = {
|
|
10733
10733
|
set: yo,
|
|
10734
10734
|
get: si,
|
|
10735
10735
|
has: bo,
|
|
10736
10736
|
enforce: Hw,
|
|
10737
10737
|
getterFor: Ww
|
|
10738
|
-
}, Kw = G, Gw = re, Ai = nt, ll = ot, Jw = sc.CONFIGURABLE, Yw = ac, lv =
|
|
10738
|
+
}, Kw = G, Gw = re, Ai = nt, ll = ot, Jw = sc.CONFIGURABLE, Yw = ac, lv = _n, Xw = lv.enforce, Zw = lv.get, Ui = Object.defineProperty, Qw = ll && !Kw(function() {
|
|
10739
10739
|
return Ui(function() {
|
|
10740
10740
|
}, "length", { value: 8 }).length !== 8;
|
|
10741
10741
|
}), ex = String(String).split("String"), tx = iv.exports = function(r, e, t) {
|
|
@@ -10871,7 +10871,7 @@ var Ux = !mv || Lx(function() {
|
|
|
10871
10871
|
return Lf(r) && (e = r.constructor, Kx(e) && (e === zf || Lf(e.prototype)) ? e = void 0 : Gx(e) && (e = e[Yx], e === null && (e = void 0))), e === void 0 ? zf : e;
|
|
10872
10872
|
}, Zx = Xx, Qx = function(r, e) {
|
|
10873
10873
|
return new (Zx(r))(e === 0 ? 0 : e);
|
|
10874
|
-
}, eC = dv, tC = U, rC = us, nC =
|
|
10874
|
+
}, eC = dv, tC = U, rC = us, nC = yn, iC = mi, oC = Qx, jf = tC([].push), Ft = function(r) {
|
|
10875
10875
|
var e = r == 1, t = r == 2, n = r == 3, i = r == 4, o = r == 6, s = r == 7, a = r == 5 || o;
|
|
10876
10876
|
return function(l, u, c, f) {
|
|
10877
10877
|
for (var d = nC(l), h = rC(d), p = eC(u, c), m = iC(h), v = 0, g = f || oC, y = e ? g(l, m) : t || s ? g(l, 0) : void 0, D, _; m > v; v++)
|
|
@@ -10899,14 +10899,14 @@ var Ux = !mv || Lx(function() {
|
|
|
10899
10899
|
return o ? -1 : n || i ? i : y;
|
|
10900
10900
|
};
|
|
10901
10901
|
}, fc = {
|
|
10902
|
-
forEach:
|
|
10903
|
-
map:
|
|
10904
|
-
filter:
|
|
10905
|
-
some:
|
|
10906
|
-
every:
|
|
10907
|
-
find:
|
|
10908
|
-
findIndex:
|
|
10909
|
-
filterReject:
|
|
10902
|
+
forEach: Ft(0),
|
|
10903
|
+
map: Ft(1),
|
|
10904
|
+
filter: Ft(2),
|
|
10905
|
+
some: Ft(3),
|
|
10906
|
+
every: Ft(4),
|
|
10907
|
+
find: Ft(5),
|
|
10908
|
+
findIndex: Ft(6),
|
|
10909
|
+
filterReject: Ft(7)
|
|
10910
10910
|
}, sC = G, gv = function(r, e) {
|
|
10911
10911
|
var t = [][r];
|
|
10912
10912
|
return !!t && sC(function() {
|
|
@@ -10916,7 +10916,7 @@ var Ux = !mv || Lx(function() {
|
|
|
10916
10916
|
});
|
|
10917
10917
|
}, aC = fc.forEach, lC = gv, cC = lC("forEach"), uC = cC ? [].forEach : function(e) {
|
|
10918
10918
|
return aC(this, e, arguments.length > 1 ? arguments[1] : void 0);
|
|
10919
|
-
}, Vf = le, Hf = uv, fC = fv, na = uC, dC =
|
|
10919
|
+
}, Vf = le, Hf = uv, fC = fv, na = uC, dC = bn, yv = function(r) {
|
|
10920
10920
|
if (r && r.forEach !== na)
|
|
10921
10921
|
try {
|
|
10922
10922
|
dC(r, "forEach", na);
|
|
@@ -10932,9 +10932,9 @@ pc.f = pC ? function(e) {
|
|
|
10932
10932
|
var t = _v(this, e);
|
|
10933
10933
|
return !!t && t.enumerable;
|
|
10934
10934
|
} : bv;
|
|
10935
|
-
var mC = us, vC =
|
|
10935
|
+
var mC = us, vC = gn, Sn = function(r) {
|
|
10936
10936
|
return mC(vC(r));
|
|
10937
|
-
}, gC = ot, yC = qe, bC = pc, _C = as, SC =
|
|
10937
|
+
}, gC = ot, yC = qe, bC = pc, _C = as, SC = Sn, EC = ic, DC = nt, wC = tv, Wf = Object.getOwnPropertyDescriptor;
|
|
10938
10938
|
hc.f = gC ? Wf : function(e, t) {
|
|
10939
10939
|
if (e = SC(e), t = EC(t), wC)
|
|
10940
10940
|
try {
|
|
@@ -10947,7 +10947,7 @@ hc.f = gC ? Wf : function(e, t) {
|
|
|
10947
10947
|
var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
|
|
10948
10948
|
var t = xC(r);
|
|
10949
10949
|
return t < 0 ? CC(t + e, 0) : OC(t, e);
|
|
10950
|
-
}, kC =
|
|
10950
|
+
}, kC = Sn, AC = Sv, TC = mi, qf = function(r) {
|
|
10951
10951
|
return function(e, t, n) {
|
|
10952
10952
|
var i = kC(e), o = TC(i), s = AC(n, o), a;
|
|
10953
10953
|
if (r && t != t) {
|
|
@@ -10963,7 +10963,7 @@ var ds = {}, xC = fs, CC = Math.max, OC = Math.min, Sv = function(r, e) {
|
|
|
10963
10963
|
}, MC = {
|
|
10964
10964
|
includes: qf(!0),
|
|
10965
10965
|
indexOf: qf(!1)
|
|
10966
|
-
}, $C = U, oa = nt, FC =
|
|
10966
|
+
}, $C = U, oa = nt, FC = Sn, IC = MC.indexOf, NC = ls, Uf = $C([].push), Ev = function(r, e) {
|
|
10967
10967
|
var t = FC(r), n = 0, i = [], o;
|
|
10968
10968
|
for (o in t)
|
|
10969
10969
|
!oa(NC, o) && oa(t, o) && Uf(i, o);
|
|
@@ -10997,7 +10997,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
10997
10997
|
return t == rO ? !0 : t == tO ? !1 : XC(e) ? YC(e) : !!e;
|
|
10998
10998
|
}, QC = vi.normalize = function(r) {
|
|
10999
10999
|
return String(r).replace(ZC, ".").toLowerCase();
|
|
11000
|
-
}, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO =
|
|
11000
|
+
}, eO = vi.data = {}, tO = vi.NATIVE = "N", rO = vi.POLYFILL = "P", Dv = vi, sa = le, nO = hc.f, iO = bn, oO = xr, sO = Yl, aO = JC, lO = Dv, Qt = function(r, e) {
|
|
11001
11001
|
var t = r.target, n = r.global, i = r.stat, o, s, a, l, u, c;
|
|
11002
11002
|
if (n ? s = sa : i ? s = sa[t] || sO(t, {}) : s = (sa[t] || {}).prototype, s)
|
|
11003
11003
|
for (a in e) {
|
|
@@ -11013,7 +11013,7 @@ var LC = hi, zC = U, jC = ds, VC = vc, HC = Re, WC = zC([].concat), qC = LC("Ref
|
|
|
11013
11013
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
11014
11014
|
return uO(r);
|
|
11015
11015
|
}, wv = `
|
|
11016
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO =
|
|
11016
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`, fO = U, dO = gn, hO = Or, pO = wv, Gf = fO("".replace), _o = "[" + pO + "]", mO = RegExp("^" + _o + _o + "*"), vO = RegExp(_o + _o + "*$"), aa = function(r) {
|
|
11017
11017
|
return function(e) {
|
|
11018
11018
|
var t = hO(dO(e));
|
|
11019
11019
|
return r & 1 && (t = Gf(t, mO, "")), r & 2 && (t = Gf(t, vO, "")), t;
|
|
@@ -11033,8 +11033,8 @@ xO({ global: !0, forced: parseInt != Zf }, {
|
|
|
11033
11033
|
});
|
|
11034
11034
|
var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
11035
11035
|
return CO(e, OO);
|
|
11036
|
-
}, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO =
|
|
11037
|
-
if (Qf &&
|
|
11036
|
+
}, Qf = ot, kO = U, AO = qe, TO = G, la = Ov, MO = vc, $O = pc, FO = yn, IO = us, Rr = Object.assign, ed = Object.defineProperty, NO = kO([].concat), RO = !Rr || TO(function() {
|
|
11037
|
+
if (Qf && Rr({ b: 1 }, Rr(ed({}, "a", {
|
|
11038
11038
|
enumerable: !0,
|
|
11039
11039
|
get: function() {
|
|
11040
11040
|
ed(this, "b", {
|
|
@@ -11047,13 +11047,13 @@ var CO = Ev, OO = mc, Ov = Object.keys || function(e) {
|
|
|
11047
11047
|
var r = {}, e = {}, t = Symbol(), n = "abcdefghijklmnopqrst";
|
|
11048
11048
|
return r[t] = 7, n.split("").forEach(function(i) {
|
|
11049
11049
|
e[i] = i;
|
|
11050
|
-
}),
|
|
11050
|
+
}), Rr({}, r)[t] != 7 || la(Rr({}, e)).join("") != n;
|
|
11051
11051
|
}) ? function(e, t) {
|
|
11052
11052
|
for (var n = FO(e), i = arguments.length, o = 1, s = MO.f, a = $O.f; i > o; )
|
|
11053
11053
|
for (var l = IO(arguments[o++]), u = s ? NO(la(l), s(l)) : la(l), c = u.length, f = 0, d; c > f; )
|
|
11054
11054
|
d = u[f++], (!Qf || AO(a, l, d)) && (n[d] = l[d]);
|
|
11055
11055
|
return n;
|
|
11056
|
-
} :
|
|
11056
|
+
} : Rr, PO = Qt, td = RO;
|
|
11057
11057
|
PO({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== td }, {
|
|
11058
11058
|
assign: td
|
|
11059
11059
|
});
|
|
@@ -11070,7 +11070,7 @@ HO({ target: "Array", proto: !0, forced: !UO }, {
|
|
|
11070
11070
|
return WO(this, e, arguments.length > 1 ? arguments[1] : void 0);
|
|
11071
11071
|
}
|
|
11072
11072
|
});
|
|
11073
|
-
var kv = {}, KO = ot, GO = rv, JO = it, YO = Re, XO =
|
|
11073
|
+
var kv = {}, KO = ot, GO = rv, JO = it, YO = Re, XO = Sn, ZO = Ov;
|
|
11074
11074
|
kv.f = KO && !GO ? Object.defineProperties : function(e, t) {
|
|
11075
11075
|
YO(e);
|
|
11076
11076
|
for (var n = XO(t), i = ZO(t), o = i.length, s = 0, a; o > s; )
|
|
@@ -11112,7 +11112,7 @@ var fk = function(r) {
|
|
|
11112
11112
|
function r() {
|
|
11113
11113
|
}
|
|
11114
11114
|
return r.prototype.constructor = null, Object.getPrototypeOf(new r()) !== r.prototype;
|
|
11115
|
-
}), pk = nt, mk = re, vk =
|
|
11115
|
+
}), pk = nt, mk = re, vk = yn, gk = lc, yk = hk, sd = gk("IE_PROTO"), hl = Object, bk = hl.prototype, Mv = yk ? hl.getPrototypeOf : function(r) {
|
|
11116
11116
|
var e = vk(r);
|
|
11117
11117
|
if (pk(e, sd))
|
|
11118
11118
|
return e[sd];
|
|
@@ -11151,7 +11151,7 @@ var Fv = {
|
|
|
11151
11151
|
return function(i, o) {
|
|
11152
11152
|
return zk(i), jk(o), r ? t(i, o) : i.__proto__ = o, i;
|
|
11153
11153
|
};
|
|
11154
|
-
}() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk =
|
|
11154
|
+
}() : void 0), Vk = Qt, Hk = qe, Nv = sc, Wk = re, qk = Ik, cd = Mv, ud = Iv, Uk = yc, Kk = bn, da = xr, Gk = Se, Jk = gi, Rv = Fv, Yk = Nv.PROPER, Xk = Nv.CONFIGURABLE, fd = Rv.IteratorPrototype, Mi = Rv.BUGGY_SAFARI_ITERATORS, An = Gk("iterator"), dd = "keys", Tn = "values", hd = "entries", Zk = function() {
|
|
11155
11155
|
return this;
|
|
11156
11156
|
}, Pv = function(r, e, t, n, i, o, s) {
|
|
11157
11157
|
qk(t, e, n);
|
|
@@ -11191,7 +11191,7 @@ var Fv = {
|
|
|
11191
11191
|
else
|
|
11192
11192
|
Vk({ target: e, proto: !0, forced: Mi || u }, m);
|
|
11193
11193
|
return c[An] !== d && da(c, An, d, { name: i }), Jk[e] = d, m;
|
|
11194
|
-
}, Qk =
|
|
11194
|
+
}, Qk = Sn, bc = fk, pd = gi, Bv = _n, eA = it.f, tA = Pv, rA = ot, Lv = "Array Iterator", nA = Bv.set, iA = Bv.getterFor(Lv), oA = tA(Array, "Array", function(r, e) {
|
|
11195
11195
|
nA(this, {
|
|
11196
11196
|
type: Lv,
|
|
11197
11197
|
target: Qk(r),
|
|
@@ -11210,7 +11210,7 @@ if (rA && md.name !== "values")
|
|
|
11210
11210
|
eA(md, "name", { value: "values" });
|
|
11211
11211
|
} catch {
|
|
11212
11212
|
}
|
|
11213
|
-
var _c = U, sA = fs, aA = Or, lA =
|
|
11213
|
+
var _c = U, sA = fs, aA = Or, lA = gn, cA = _c("".charAt), vd = _c("".charCodeAt), uA = _c("".slice), gd = function(r) {
|
|
11214
11214
|
return function(e, t) {
|
|
11215
11215
|
var n = aA(lA(e)), i = sA(t), o = n.length, s, a;
|
|
11216
11216
|
return i < 0 || i >= o ? r ? "" : void 0 : (s = vd(n, i), s < 55296 || s > 56319 || i + 1 === o || (a = vd(n, i + 1)) < 56320 || a > 57343 ? r ? cA(n, i) : s : r ? uA(n, i, i + 2) : (s - 55296 << 10) + (a - 56320) + 65536);
|
|
@@ -11218,7 +11218,7 @@ var _c = U, sA = fs, aA = Or, lA = vn, cA = _c("".charAt), vd = _c("".charCodeAt
|
|
|
11218
11218
|
}, zv = {
|
|
11219
11219
|
codeAt: gd(!1),
|
|
11220
11220
|
charAt: gd(!0)
|
|
11221
|
-
}, fA = zv.charAt, dA = Or, jv =
|
|
11221
|
+
}, fA = zv.charAt, dA = Or, jv = _n, hA = Pv, Vv = "String Iterator", pA = jv.set, mA = jv.getterFor(Vv);
|
|
11222
11222
|
hA(String, "String", function(r) {
|
|
11223
11223
|
pA(this, {
|
|
11224
11224
|
type: Vv,
|
|
@@ -11240,7 +11240,7 @@ var vA = xr, Hv = function(r, e, t) {
|
|
|
11240
11240
|
for (var n = SA(r), i = yd(e, n), o = yd(t === void 0 ? n : t, n), s = DA(wA(o - i, 0)), a = 0; i < o; i++, a++)
|
|
11241
11241
|
EA(s, a, r[i]);
|
|
11242
11242
|
return s.length = a, s;
|
|
11243
|
-
}, CA = Cr, OA =
|
|
11243
|
+
}, CA = Cr, OA = Sn, qv = ds.f, kA = xA, Uv = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], AA = function(r) {
|
|
11244
11244
|
try {
|
|
11245
11245
|
return qv(r);
|
|
11246
11246
|
} catch {
|
|
@@ -11261,40 +11261,40 @@ var TA = G, MA = TA(function() {
|
|
|
11261
11261
|
return !FA(e) || bd && IA(e) == "ArrayBuffer" ? !1 : Ji ? Ji(e) : !0;
|
|
11262
11262
|
} : Ji, RA = G, PA = !RA(function() {
|
|
11263
11263
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
11264
|
-
}), BA = Qt, LA = U, zA = ls, jA = We, Sc = nt, VA = it.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1,
|
|
11265
|
-
VA(r,
|
|
11264
|
+
}), BA = Qt, LA = U, zA = ls, jA = We, Sc = nt, VA = it.f, _d = ds, HA = Wv, Ec = Kv, WA = Zl, qA = PA, Gv = !1, kt = WA("meta"), UA = 0, Dc = function(r) {
|
|
11265
|
+
VA(r, kt, { value: {
|
|
11266
11266
|
objectID: "O" + UA++,
|
|
11267
11267
|
weakData: {}
|
|
11268
11268
|
} });
|
|
11269
11269
|
}, KA = function(r, e) {
|
|
11270
11270
|
if (!jA(r))
|
|
11271
11271
|
return typeof r == "symbol" ? r : (typeof r == "string" ? "S" : "P") + r;
|
|
11272
|
-
if (!Sc(r,
|
|
11272
|
+
if (!Sc(r, kt)) {
|
|
11273
11273
|
if (!Ec(r))
|
|
11274
11274
|
return "F";
|
|
11275
11275
|
if (!e)
|
|
11276
11276
|
return "E";
|
|
11277
11277
|
Dc(r);
|
|
11278
11278
|
}
|
|
11279
|
-
return r[
|
|
11279
|
+
return r[kt].objectID;
|
|
11280
11280
|
}, GA = function(r, e) {
|
|
11281
|
-
if (!Sc(r,
|
|
11281
|
+
if (!Sc(r, kt)) {
|
|
11282
11282
|
if (!Ec(r))
|
|
11283
11283
|
return !0;
|
|
11284
11284
|
if (!e)
|
|
11285
11285
|
return !1;
|
|
11286
11286
|
Dc(r);
|
|
11287
11287
|
}
|
|
11288
|
-
return r[
|
|
11288
|
+
return r[kt].weakData;
|
|
11289
11289
|
}, JA = function(r) {
|
|
11290
|
-
return qA && Gv && Ec(r) && !Sc(r,
|
|
11290
|
+
return qA && Gv && Ec(r) && !Sc(r, kt) && Dc(r), r;
|
|
11291
11291
|
}, YA = function() {
|
|
11292
11292
|
XA.enable = function() {
|
|
11293
11293
|
}, Gv = !0;
|
|
11294
11294
|
var r = _d.f, e = LA([].splice), t = {};
|
|
11295
|
-
t[
|
|
11295
|
+
t[kt] = 1, r(t).length && (_d.f = function(n) {
|
|
11296
11296
|
for (var i = r(n), o = 0, s = i.length; o < s; o++)
|
|
11297
|
-
if (i[o] ===
|
|
11297
|
+
if (i[o] === kt) {
|
|
11298
11298
|
e(i, o, 1);
|
|
11299
11299
|
break;
|
|
11300
11300
|
}
|
|
@@ -11308,7 +11308,7 @@ var TA = G, MA = TA(function() {
|
|
|
11308
11308
|
getWeakData: GA,
|
|
11309
11309
|
onFreeze: JA
|
|
11310
11310
|
};
|
|
11311
|
-
zA[
|
|
11311
|
+
zA[kt] = !0;
|
|
11312
11312
|
var ZA = Se, QA = gi, eT = ZA("iterator"), tT = Array.prototype, rT = function(r) {
|
|
11313
11313
|
return r !== void 0 && (QA.Array === r || tT[eT] === r);
|
|
11314
11314
|
}, nT = cs, Sd = pi, iT = gi, oT = Se, sT = oT("iterator"), Jv = function(r) {
|
|
@@ -11451,7 +11451,7 @@ var TT = function(r, e) {
|
|
|
11451
11451
|
}), l.prototype = a, a.constructor = l), (p || v) && (c("delete"), c("has"), n && c("get")), (v || h) && c(o), i && a.clear && delete a.clear;
|
|
11452
11452
|
}
|
|
11453
11453
|
return u[r] = l, IT({ global: !0, constructor: !0, forced: l != s }, u), HT(l, r), i || t.setStrong(l, r, n), l;
|
|
11454
|
-
}, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = nt, tg =
|
|
11454
|
+
}, UT = U, Ad = Hv, $i = hs.exports.getWeakData, KT = Re, ma = We, GT = Xv, JT = Yv, eg = fc, Td = nt, tg = _n, YT = tg.set, XT = tg.getterFor, ZT = eg.find, QT = eg.findIndex, e2 = UT([].splice), t2 = 0, Fi = function(r) {
|
|
11455
11455
|
return r.frozen || (r.frozen = new rg());
|
|
11456
11456
|
}, rg = function() {
|
|
11457
11457
|
this.entries = [];
|
|
@@ -11524,7 +11524,7 @@ var r2 = {
|
|
|
11524
11524
|
}
|
|
11525
11525
|
}), i;
|
|
11526
11526
|
}
|
|
11527
|
-
}, Md = le, Ii = U, n2 = Hv, i2 = hs.exports, o2 = qT, ng = r2, Ni = We, Ri = Kv, Pi =
|
|
11527
|
+
}, Md = le, Ii = U, n2 = Hv, i2 = hs.exports, o2 = qT, ng = r2, Ni = We, Ri = Kv, Pi = _n.enforce, s2 = sv, a2 = !Md.ActiveXObject && "ActiveXObject" in Md, Mn, ig = function(r) {
|
|
11528
11528
|
return function() {
|
|
11529
11529
|
return r(this, arguments.length ? arguments[0] : void 0);
|
|
11530
11530
|
};
|
|
@@ -11564,7 +11564,7 @@ if (s2 && a2) {
|
|
|
11564
11564
|
}
|
|
11565
11565
|
});
|
|
11566
11566
|
}
|
|
11567
|
-
var Nd = le, og = uv, c2 = fv, zn = oA, ga =
|
|
11567
|
+
var Nd = le, og = uv, c2 = fv, zn = oA, ga = bn, sg = Se, ya = sg("iterator"), Rd = sg("toStringTag"), ba = zn.values, ag = function(r, e) {
|
|
11568
11568
|
if (r) {
|
|
11569
11569
|
if (r[ya] !== ba)
|
|
11570
11570
|
try {
|
|
@@ -11586,7 +11586,7 @@ var Nd = le, og = uv, c2 = fv, zn = oA, ga = yn, sg = Se, ya = sg("iterator"), R
|
|
|
11586
11586
|
for (var _a in og)
|
|
11587
11587
|
ag(Nd[_a] && Nd[_a].prototype, _a);
|
|
11588
11588
|
ag(c2, "DOMTokenList");
|
|
11589
|
-
var lg = "Expected a function", Pd = 0 / 0, u2 = "[object Symbol]", f2 = /^\s+|\s+$/g, d2 = /^[-+]0x[0-9a-f]+$/i, h2 = /^0b[01]+$/i, p2 = /^0o[0-7]+$/i, m2 = parseInt, v2 = typeof
|
|
11589
|
+
var lg = "Expected a function", Pd = 0 / 0, u2 = "[object Symbol]", f2 = /^\s+|\s+$/g, d2 = /^[-+]0x[0-9a-f]+$/i, h2 = /^0b[01]+$/i, p2 = /^0o[0-7]+$/i, m2 = parseInt, v2 = typeof xe == "object" && xe && xe.Object === Object && xe, g2 = typeof self == "object" && self && self.Object === Object && self, y2 = v2 || g2 || Function("return this")(), b2 = Object.prototype, _2 = b2.toString, S2 = Math.max, E2 = Math.min, Sa = function() {
|
|
11590
11590
|
return y2.Date.now();
|
|
11591
11591
|
};
|
|
11592
11592
|
function D2(r, e, t) {
|
|
@@ -11671,7 +11671,7 @@ function Bd(r) {
|
|
|
11671
11671
|
var t = h2.test(r);
|
|
11672
11672
|
return t || p2.test(r) ? m2(r.slice(2), t ? 2 : 8) : d2.test(r) ? Pd : +r;
|
|
11673
11673
|
}
|
|
11674
|
-
var Ld = w2, O2 = "Expected a function", zd = 0 / 0, k2 = "[object Symbol]", A2 = /^\s+|\s+$/g, T2 = /^[-+]0x[0-9a-f]+$/i, M2 = /^0b[01]+$/i, $2 = /^0o[0-7]+$/i, F2 = parseInt, I2 = typeof
|
|
11674
|
+
var Ld = w2, O2 = "Expected a function", zd = 0 / 0, k2 = "[object Symbol]", A2 = /^\s+|\s+$/g, T2 = /^[-+]0x[0-9a-f]+$/i, M2 = /^0b[01]+$/i, $2 = /^0o[0-7]+$/i, F2 = parseInt, I2 = typeof xe == "object" && xe && xe.Object === Object && xe, N2 = typeof self == "object" && self && self.Object === Object && self, R2 = I2 || N2 || Function("return this")(), P2 = Object.prototype, B2 = P2.toString, L2 = Math.max, z2 = Math.min, Ea = function() {
|
|
11675
11675
|
return R2.Date.now();
|
|
11676
11676
|
};
|
|
11677
11677
|
function j2(r, e, t) {
|
|
@@ -11746,7 +11746,7 @@ function jd(r) {
|
|
|
11746
11746
|
var t = M2.test(r);
|
|
11747
11747
|
return t || $2.test(r) ? F2(r.slice(2), t ? 2 : 8) : T2.test(r) ? zd : +r;
|
|
11748
11748
|
}
|
|
11749
|
-
var Vd = j2, W2 = "Expected a function", cg = "__lodash_hash_undefined__", q2 = "[object Function]", U2 = "[object GeneratorFunction]", K2 = /[\\^$.*+?()[\]{}|]/g, G2 = /^\[object .+?Constructor\]$/, J2 = typeof
|
|
11749
|
+
var Vd = j2, W2 = "Expected a function", cg = "__lodash_hash_undefined__", q2 = "[object Function]", U2 = "[object GeneratorFunction]", K2 = /[\\^$.*+?()[\]{}|]/g, G2 = /^\[object .+?Constructor\]$/, J2 = typeof xe == "object" && xe && xe.Object === Object && xe, Y2 = typeof self == "object" && self && self.Object === Object && self, ug = J2 || Y2 || Function("return this")();
|
|
11750
11750
|
function X2(r, e) {
|
|
11751
11751
|
return r == null ? void 0 : r[e];
|
|
11752
11752
|
}
|
|
@@ -11799,7 +11799,7 @@ Dr.prototype.delete = sM;
|
|
|
11799
11799
|
Dr.prototype.get = aM;
|
|
11800
11800
|
Dr.prototype.has = lM;
|
|
11801
11801
|
Dr.prototype.set = cM;
|
|
11802
|
-
function
|
|
11802
|
+
function En(r) {
|
|
11803
11803
|
var e = -1, t = r ? r.length : 0;
|
|
11804
11804
|
for (this.clear(); ++e < t; ) {
|
|
11805
11805
|
var n = r[e];
|
|
@@ -11827,11 +11827,11 @@ function pM(r, e) {
|
|
|
11827
11827
|
var t = this.__data__, n = ps(t, r);
|
|
11828
11828
|
return n < 0 ? t.push([r, e]) : t[n][1] = e, this;
|
|
11829
11829
|
}
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11830
|
+
En.prototype.clear = uM;
|
|
11831
|
+
En.prototype.delete = fM;
|
|
11832
|
+
En.prototype.get = dM;
|
|
11833
|
+
En.prototype.has = hM;
|
|
11834
|
+
En.prototype.set = pM;
|
|
11835
11835
|
function kr(r) {
|
|
11836
11836
|
var e = -1, t = r ? r.length : 0;
|
|
11837
11837
|
for (this.clear(); ++e < t; ) {
|
|
@@ -11842,7 +11842,7 @@ function kr(r) {
|
|
|
11842
11842
|
function mM() {
|
|
11843
11843
|
this.__data__ = {
|
|
11844
11844
|
hash: new Dr(),
|
|
11845
|
-
map: new (iM ||
|
|
11845
|
+
map: new (iM || En)(),
|
|
11846
11846
|
string: new Dr()
|
|
11847
11847
|
};
|
|
11848
11848
|
}
|
|
@@ -11993,12 +11993,12 @@ var yr = function(r) {
|
|
|
11993
11993
|
return !1;
|
|
11994
11994
|
}, Gn = typeof window < "u" ? window : {}, Li = /* @__PURE__ */ new WeakMap(), Ud = /auto|scroll/, $M = /^tb|vertical/, FM = /msie|trident/i.test(Gn.navigator && Gn.navigator.userAgent), at = function(r) {
|
|
11995
11995
|
return parseFloat(r || "0");
|
|
11996
|
-
},
|
|
11996
|
+
}, tn = function(r, e, t) {
|
|
11997
11997
|
return r === void 0 && (r = 0), e === void 0 && (e = 0), t === void 0 && (t = !1), new TM((t ? e : r) || 0, (t ? r : e) || 0);
|
|
11998
11998
|
}, Kd = yr({
|
|
11999
|
-
devicePixelContentBoxSize:
|
|
12000
|
-
borderBoxSize:
|
|
12001
|
-
contentBoxSize:
|
|
11999
|
+
devicePixelContentBoxSize: tn(),
|
|
12000
|
+
borderBoxSize: tn(),
|
|
12001
|
+
contentBoxSize: tn(),
|
|
12002
12002
|
contentRect: new mg(0, 0, 0, 0)
|
|
12003
12003
|
}), gg = function(r, e) {
|
|
12004
12004
|
if (e === void 0 && (e = !1), Li.has(r) && !e)
|
|
@@ -12006,9 +12006,9 @@ var yr = function(r) {
|
|
|
12006
12006
|
if (vg(r))
|
|
12007
12007
|
return Li.set(r, Kd), Kd;
|
|
12008
12008
|
var t = getComputedStyle(r), n = Cc(r) && r.ownerSVGElement && r.getBBox(), i = !FM && t.boxSizing === "border-box", o = $M.test(t.writingMode || ""), s = !n && Ud.test(t.overflowY || ""), a = !n && Ud.test(t.overflowX || ""), l = n ? 0 : at(t.paddingTop), u = n ? 0 : at(t.paddingRight), c = n ? 0 : at(t.paddingBottom), f = n ? 0 : at(t.paddingLeft), d = n ? 0 : at(t.borderTopWidth), h = n ? 0 : at(t.borderRightWidth), p = n ? 0 : at(t.borderBottomWidth), m = n ? 0 : at(t.borderLeftWidth), v = f + u, g = l + c, y = m + h, D = d + p, _ = a ? r.offsetHeight - D - r.clientHeight : 0, x = s ? r.offsetWidth - y - r.clientWidth : 0, b = i ? v + y : 0, C = i ? g + D : 0, E = n ? n.width : at(t.width) - b - x, F = n ? n.height : at(t.height) - C - _, V = E + v + x + y, j = F + g + _ + D, Q = yr({
|
|
12009
|
-
devicePixelContentBoxSize:
|
|
12010
|
-
borderBoxSize:
|
|
12011
|
-
contentBoxSize:
|
|
12009
|
+
devicePixelContentBoxSize: tn(Math.round(E * devicePixelRatio), Math.round(F * devicePixelRatio), o),
|
|
12010
|
+
borderBoxSize: tn(V, j, o),
|
|
12011
|
+
contentBoxSize: tn(E, F, o),
|
|
12012
12012
|
contentRect: new mg(f, l, E, F)
|
|
12013
12013
|
});
|
|
12014
12014
|
return Li.set(r, Q), Q;
|
|
@@ -12209,7 +12209,7 @@ var yr = function(r) {
|
|
|
12209
12209
|
}, r.toString = function() {
|
|
12210
12210
|
return "function ResizeObserver () { [polyfill code] }";
|
|
12211
12211
|
}, r;
|
|
12212
|
-
}(), GM = ss, JM =
|
|
12212
|
+
}(), GM = ss, JM = yn, YM = us, XM = mi, ZM = TypeError, Qd = function(r) {
|
|
12213
12213
|
return function(e, t, n, i) {
|
|
12214
12214
|
GM(t);
|
|
12215
12215
|
var o = JM(e), s = YM(o), a = XM(o), l = r ? a - 1 : 0, u = r ? -1 : 1;
|
|
@@ -12258,17 +12258,17 @@ var c$ = Re, u$ = function() {
|
|
|
12258
12258
|
}), b$ = G, _$ = le, S$ = _$.RegExp, E$ = b$(function() {
|
|
12259
12259
|
var r = S$("(?<a>b)", "g");
|
|
12260
12260
|
return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
|
|
12261
|
-
}),
|
|
12261
|
+
}), qr = qe, vs = U, D$ = Or, w$ = u$, x$ = p$, C$ = ns.exports, O$ = gc, k$ = _n.get, A$ = y$, T$ = E$, M$ = C$("native-string-replace", String.prototype.replace), Eo = RegExp.prototype.exec, gl = Eo, $$ = vs("".charAt), F$ = vs("".indexOf), I$ = vs("".replace), Ca = vs("".slice), yl = function() {
|
|
12262
12262
|
var r = /a/, e = /b*/g;
|
|
12263
|
-
return
|
|
12263
|
+
return qr(Eo, r, "a"), qr(Eo, e, "a"), r.lastIndex !== 0 || e.lastIndex !== 0;
|
|
12264
12264
|
}(), Sg = x$.BROKEN_CARET, bl = /()??/.exec("")[1] !== void 0, N$ = yl || bl || Sg || A$ || T$;
|
|
12265
12265
|
N$ && (gl = function(e) {
|
|
12266
12266
|
var t = this, n = k$(t), i = D$(e), o = n.raw, s, a, l, u, c, f, d;
|
|
12267
12267
|
if (o)
|
|
12268
|
-
return o.lastIndex = t.lastIndex, s =
|
|
12269
|
-
var h = n.groups, p = Sg && t.sticky, m =
|
|
12268
|
+
return o.lastIndex = t.lastIndex, s = qr(gl, o, i), t.lastIndex = o.lastIndex, s;
|
|
12269
|
+
var h = n.groups, p = Sg && t.sticky, m = qr(w$, t), v = t.source, g = 0, y = i;
|
|
12270
12270
|
if (p && (m = I$(m, "y", ""), F$(m, "g") === -1 && (m += "g"), y = Ca(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && $$(i, t.lastIndex - 1) !== `
|
|
12271
|
-
`) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u =
|
|
12271
|
+
`) && (v = "(?: " + v + ")", y = " " + y, g++), a = new RegExp("^(?:" + v + ")", m)), bl && (a = new RegExp("^" + v + "$(?!\\s)", m)), yl && (l = t.lastIndex), u = qr(Eo, p ? a : t, y), p ? u ? (u.input = Ca(u.input, g), u[0] = Ca(u[0], g), u.index = t.lastIndex, t.lastIndex += u[0].length) : t.lastIndex = 0 : yl && u && (t.lastIndex = t.global ? u.index + u[0].length : l), bl && u && u.length > 1 && qr(M$, u[0], a, function() {
|
|
12272
12272
|
for (c = 1; c < arguments.length - 2; c++)
|
|
12273
12273
|
arguments[c] === void 0 && (u[c] = void 0);
|
|
12274
12274
|
}), u && h)
|
|
@@ -12280,7 +12280,7 @@ var Tc = gl, R$ = Qt, th = Tc;
|
|
|
12280
12280
|
R$({ target: "RegExp", proto: !0, forced: /./.exec !== th }, {
|
|
12281
12281
|
exec: th
|
|
12282
12282
|
});
|
|
12283
|
-
var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ =
|
|
12283
|
+
var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = bn, L$ = Eg("species"), Oa = RegExp.prototype, Dg = function(r, e, t, n) {
|
|
12284
12284
|
var i = Eg(r), o = !ih(function() {
|
|
12285
12285
|
var u = {};
|
|
12286
12286
|
return u[i] = function() {
|
|
@@ -12313,7 +12313,7 @@ var rh = U, nh = xr, P$ = Tc, ih = G, Eg = Se, B$ = yn, L$ = Eg("species"), Oa =
|
|
|
12313
12313
|
if (H$(r) === "RegExp")
|
|
12314
12314
|
return oh(W$, r, e);
|
|
12315
12315
|
throw q$("RegExp#exec called on incompatible receiver");
|
|
12316
|
-
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = Or, Y$ =
|
|
12316
|
+
}, U$ = qe, K$ = Dg, G$ = Re, J$ = cc, ka = Or, Y$ = gn, X$ = pi, Z$ = wg, sh = xg;
|
|
12317
12317
|
K$("match", function(r, e, t) {
|
|
12318
12318
|
return [
|
|
12319
12319
|
function(i) {
|
|
@@ -12349,7 +12349,7 @@ Q$ && !eF && tF(Og, iF, {
|
|
|
12349
12349
|
});
|
|
12350
12350
|
var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof Reflect == "object" && Reflect.apply || (oF ? lh.bind(ah) : function() {
|
|
12351
12351
|
return lh.apply(ah, arguments);
|
|
12352
|
-
}), Mc = U, aF =
|
|
12352
|
+
}), Mc = U, aF = yn, lF = Math.floor, Aa = Mc("".charAt), cF = Mc("".replace), Ta = Mc("".slice), uF = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, fF = /\$([$&'`]|\d{1,2})/g, dF = function(r, e, t, n, i, o) {
|
|
12353
12353
|
var s = t + r.length, a = n.length, l = fF;
|
|
12354
12354
|
return i !== void 0 && (i = aF(i), l = uF), cF(o, l, function(u, c) {
|
|
12355
12355
|
var f;
|
|
@@ -12377,7 +12377,7 @@ var oF = is, Ag = Function.prototype, ah = Ag.apply, lh = Ag.call, sF = typeof R
|
|
|
12377
12377
|
}
|
|
12378
12378
|
return f === void 0 ? "" : f;
|
|
12379
12379
|
});
|
|
12380
|
-
}, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc,
|
|
12380
|
+
}, hF = sF, ch = qe, gs = U, pF = Dg, mF = G, vF = Re, gF = re, yF = fs, bF = cc, Pr = Or, _F = gn, SF = wg, EF = pi, DF = dF, wF = xg, xF = Se, _l = xF("replace"), CF = Math.max, OF = Math.min, kF = gs([].concat), Ma = gs([].push), uh = gs("".indexOf), fh = gs("".slice), AF = function(r) {
|
|
12381
12381
|
return r === void 0 ? r : String(r);
|
|
12382
12382
|
}, TF = function() {
|
|
12383
12383
|
return "a".replace(/./, "$0") === "$0";
|
|
@@ -12395,17 +12395,17 @@ pF("replace", function(r, e, t) {
|
|
|
12395
12395
|
return [
|
|
12396
12396
|
function(o, s) {
|
|
12397
12397
|
var a = _F(this), l = o == null ? void 0 : EF(o, _l);
|
|
12398
|
-
return l ? ch(l, o, a, s) : ch(e,
|
|
12398
|
+
return l ? ch(l, o, a, s) : ch(e, Pr(a), o, s);
|
|
12399
12399
|
},
|
|
12400
12400
|
function(i, o) {
|
|
12401
|
-
var s = vF(this), a =
|
|
12401
|
+
var s = vF(this), a = Pr(i);
|
|
12402
12402
|
if (typeof o == "string" && uh(o, n) === -1 && uh(o, "$<") === -1) {
|
|
12403
12403
|
var l = t(e, s, a, o);
|
|
12404
12404
|
if (l.done)
|
|
12405
12405
|
return l.value;
|
|
12406
12406
|
}
|
|
12407
12407
|
var u = gF(o);
|
|
12408
|
-
u || (o =
|
|
12408
|
+
u || (o = Pr(o));
|
|
12409
12409
|
var c = s.global;
|
|
12410
12410
|
if (c) {
|
|
12411
12411
|
var f = s.unicode;
|
|
@@ -12415,18 +12415,18 @@ pF("replace", function(r, e, t) {
|
|
|
12415
12415
|
var h = wF(s, a);
|
|
12416
12416
|
if (h === null || (Ma(d, h), !c))
|
|
12417
12417
|
break;
|
|
12418
|
-
var p =
|
|
12418
|
+
var p = Pr(h[0]);
|
|
12419
12419
|
p === "" && (s.lastIndex = SF(a, bF(s.lastIndex), f));
|
|
12420
12420
|
}
|
|
12421
12421
|
for (var m = "", v = 0, g = 0; g < d.length; g++) {
|
|
12422
12422
|
h = d[g];
|
|
12423
|
-
for (var y =
|
|
12423
|
+
for (var y = Pr(h[0]), D = CF(OF(yF(h.index), a.length), 0), _ = [], x = 1; x < h.length; x++)
|
|
12424
12424
|
Ma(_, AF(h[x]));
|
|
12425
12425
|
var b = h.groups;
|
|
12426
12426
|
if (u) {
|
|
12427
12427
|
var C = kF([y], _, D, a);
|
|
12428
12428
|
b !== void 0 && Ma(C, b);
|
|
12429
|
-
var E =
|
|
12429
|
+
var E = Pr(hF(o, void 0, C));
|
|
12430
12430
|
} else
|
|
12431
12431
|
E = DF(y, a, D, _, b, o);
|
|
12432
12432
|
D >= v && (m += fh(a, v, D) + E, v = D + y.length);
|
|
@@ -12460,33 +12460,33 @@ var Do = function(e) {
|
|
|
12460
12460
|
}, {});
|
|
12461
12461
|
return t;
|
|
12462
12462
|
};
|
|
12463
|
-
function
|
|
12463
|
+
function It(r) {
|
|
12464
12464
|
return !r || !r.ownerDocument || !r.ownerDocument.defaultView ? window : r.ownerDocument.defaultView;
|
|
12465
12465
|
}
|
|
12466
12466
|
function Zi(r) {
|
|
12467
12467
|
return !r || !r.ownerDocument ? document : r.ownerDocument;
|
|
12468
12468
|
}
|
|
12469
|
-
var
|
|
12469
|
+
var zr = null, hh = null;
|
|
12470
12470
|
dc && window.addEventListener("resize", function() {
|
|
12471
|
-
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio,
|
|
12471
|
+
hh !== window.devicePixelRatio && (hh = window.devicePixelRatio, zr = null);
|
|
12472
12472
|
});
|
|
12473
12473
|
function ph(r) {
|
|
12474
|
-
if (
|
|
12474
|
+
if (zr === null) {
|
|
12475
12475
|
var e = Zi(r);
|
|
12476
12476
|
if (typeof e > "u")
|
|
12477
|
-
return
|
|
12477
|
+
return zr = 0, zr;
|
|
12478
12478
|
var t = e.body, n = e.createElement("div");
|
|
12479
12479
|
n.classList.add("simplebar-hide-scrollbar"), t.appendChild(n);
|
|
12480
12480
|
var i = n.getBoundingClientRect().right;
|
|
12481
|
-
t.removeChild(n),
|
|
12481
|
+
t.removeChild(n), zr = i;
|
|
12482
12482
|
}
|
|
12483
|
-
return
|
|
12483
|
+
return zr;
|
|
12484
12484
|
}
|
|
12485
12485
|
var Z = /* @__PURE__ */ function() {
|
|
12486
12486
|
function r(t, n) {
|
|
12487
12487
|
var i = this;
|
|
12488
12488
|
this.onScroll = function() {
|
|
12489
|
-
var o =
|
|
12489
|
+
var o = It(i.el);
|
|
12490
12490
|
i.scrollXTicking || (o.requestAnimationFrame(i.scrollX), i.scrollXTicking = !0), i.scrollYTicking || (o.requestAnimationFrame(i.scrollY), i.scrollYTicking = !0);
|
|
12491
12491
|
}, this.scrollX = function() {
|
|
12492
12492
|
i.axis.x.isOverflowing && (i.showScrollbar("x"), i.positionScrollbar("x")), i.scrollXTicking = !1;
|
|
@@ -12511,7 +12511,7 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12511
12511
|
var d = s - a.rect[i.axis[i.draggedAxis].offsetAttr] - i.axis[i.draggedAxis].dragOffset, h = d / (l - u.size), p = h * (c - f);
|
|
12512
12512
|
i.draggedAxis === "x" && (p = i.isRtl && r.getRtlHelpers().isRtlScrollbarInverted ? p - (l + u.size) : p, p = i.isRtl && r.getRtlHelpers().isRtlScrollingInverted ? -p : p), i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr] = p;
|
|
12513
12513
|
}, this.onEndDrag = function(o) {
|
|
12514
|
-
var s = Zi(i.el), a =
|
|
12514
|
+
var s = Zi(i.el), a = It(i.el);
|
|
12515
12515
|
o.preventDefault(), o.stopPropagation(), i.el.classList.remove(i.classNames.dragging), s.removeEventListener("mousemove", i.drag, !0), s.removeEventListener("mouseup", i.onEndDrag, !0), i.removePreventClickId = a.setTimeout(function() {
|
|
12516
12516
|
s.removeEventListener("click", i.preventClick, !0), s.removeEventListener("dblclick", i.preventClick, !0), i.removePreventClickId = null;
|
|
12517
12517
|
});
|
|
@@ -12565,7 +12565,7 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12565
12565
|
isRtlScrollbarInverted: s.left !== a.left
|
|
12566
12566
|
};
|
|
12567
12567
|
}, r.getOffset = function(n) {
|
|
12568
|
-
var i = n.getBoundingClientRect(), o = Zi(n), s =
|
|
12568
|
+
var i = n.getBoundingClientRect(), o = Zi(n), s = It(n);
|
|
12569
12569
|
return {
|
|
12570
12570
|
top: i.top + (s.pageYOffset || o.documentElement.scrollTop),
|
|
12571
12571
|
left: i.left + (s.pageXOffset || o.documentElement.scrollLeft)
|
|
@@ -12594,7 +12594,7 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12594
12594
|
var n = this.options.ariaLabel || "scrollable content";
|
|
12595
12595
|
this.contentWrapperEl.setAttribute("tabindex", "0"), this.contentWrapperEl.setAttribute("role", "region"), this.contentWrapperEl.setAttribute("aria-label", n);
|
|
12596
12596
|
}, e.initListeners = function() {
|
|
12597
|
-
var n = this, i =
|
|
12597
|
+
var n = this, i = It(this.el);
|
|
12598
12598
|
this.options.autoHide && this.el.addEventListener("mouseenter", this.onMouseEnter), ["mousedown", "click", "dblclick"].forEach(function(a) {
|
|
12599
12599
|
n.el.addEventListener(a, n.onPointerEvent, !0);
|
|
12600
12600
|
}), ["touchstart", "touchend", "touchmove"].forEach(function(a) {
|
|
@@ -12614,7 +12614,7 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12614
12614
|
characterData: !0
|
|
12615
12615
|
});
|
|
12616
12616
|
}, e.recalculate = function() {
|
|
12617
|
-
var n =
|
|
12617
|
+
var n = It(this.el);
|
|
12618
12618
|
this.elStyles = n.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
12619
12619
|
var i = this.heightAutoObserverEl.offsetHeight <= 1, o = this.heightAutoObserverEl.offsetWidth <= 1, s = this.contentEl.offsetWidth, a = this.contentWrapperEl.offsetWidth, l = this.elStyles.overflowX, u = this.elStyles.overflowY;
|
|
12620
12620
|
this.contentEl.style.padding = this.elStyles.paddingTop + " " + this.elStyles.paddingRight + " " + this.elStyles.paddingBottom + " " + this.elStyles.paddingLeft, this.wrapperEl.style.margin = "-" + this.elStyles.paddingTop + " -" + this.elStyles.paddingRight + " -" + this.elStyles.paddingBottom + " -" + this.elStyles.paddingLeft;
|
|
@@ -12654,12 +12654,12 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12654
12654
|
this.axis[n].isVisible || (i.classList.add(this.classNames.visible), this.axis[n].isVisible = !0), this.options.autoHide && this.hideScrollbars();
|
|
12655
12655
|
}, e.onDragStart = function(n, i) {
|
|
12656
12656
|
i === void 0 && (i = "y");
|
|
12657
|
-
var o = Zi(this.el), s =
|
|
12657
|
+
var o = Zi(this.el), s = It(this.el), a = this.axis[i].scrollbar, l = i === "y" ? n.pageY : n.pageX;
|
|
12658
12658
|
this.axis[i].dragOffset = l - a.rect[this.axis[i].offsetAttr], this.draggedAxis = i, this.el.classList.add(this.classNames.dragging), o.addEventListener("mousemove", this.drag, !0), o.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (o.addEventListener("click", this.preventClick, !0), o.addEventListener("dblclick", this.preventClick, !0)) : (s.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
12659
12659
|
}, e.onTrackClick = function(n, i) {
|
|
12660
12660
|
var o = this;
|
|
12661
12661
|
if (i === void 0 && (i = "y"), !!this.options.clickOnTrack) {
|
|
12662
|
-
var s =
|
|
12662
|
+
var s = It(this.el);
|
|
12663
12663
|
this.axis[i].scrollbar.rect = this.axis[i].scrollbar.el.getBoundingClientRect();
|
|
12664
12664
|
var a = this.axis[i].scrollbar, l = a.rect[this.axis[i].offsetAttr], u = parseInt(this.elStyles[this.axis[i].sizeAttr], 10), c = this.contentWrapperEl[this.axis[i].scrollOffsetAttr], f = i === "y" ? this.mouseY - l : this.mouseX - l, d = f < 0 ? -1 : 1, h = d === -1 ? c - u : c + u, p = function m() {
|
|
12665
12665
|
if (d === -1) {
|
|
@@ -12685,7 +12685,7 @@ var Z = /* @__PURE__ */ function() {
|
|
|
12685
12685
|
return ph(this.el);
|
|
12686
12686
|
}
|
|
12687
12687
|
}, e.removeListeners = function() {
|
|
12688
|
-
var n = this, i =
|
|
12688
|
+
var n = this, i = It(this.el);
|
|
12689
12689
|
this.options.autoHide && this.el.removeEventListener("mouseenter", this.onMouseEnter), ["mousedown", "click", "dblclick"].forEach(function(o) {
|
|
12690
12690
|
n.el.removeEventListener(o, n.onPointerEvent, !0);
|
|
12691
12691
|
}), ["touchstart", "touchend", "touchmove"].forEach(function(o) {
|
|
@@ -12779,10 +12779,10 @@ function mh({ validations: r }) {
|
|
|
12779
12779
|
const $F = (r) => r;
|
|
12780
12780
|
function Tg({ valueRef: r, format: e = $F }) {
|
|
12781
12781
|
const t = q(e(r.value));
|
|
12782
|
-
return
|
|
12782
|
+
return rn(r, () => t.value = e(r.value)), t;
|
|
12783
12783
|
}
|
|
12784
12784
|
function wo(r) {
|
|
12785
|
-
return
|
|
12785
|
+
return A(() => {
|
|
12786
12786
|
var e;
|
|
12787
12787
|
return ((e = r.value) == null ? void 0 : e.$el) || r.value;
|
|
12788
12788
|
});
|
|
@@ -12859,7 +12859,7 @@ function Mg({ targetRef: r, isActiveRef: e, event: t, onEvent: n, options: i })
|
|
|
12859
12859
|
function a() {
|
|
12860
12860
|
!r.value || (e.value ? o() : s());
|
|
12861
12861
|
}
|
|
12862
|
-
|
|
12862
|
+
rn(e, a), rn(r, a), Dl(s), a();
|
|
12863
12863
|
}
|
|
12864
12864
|
const IF = [
|
|
12865
12865
|
"BUTTON",
|
|
@@ -12906,7 +12906,7 @@ const BF = {
|
|
|
12906
12906
|
name: "ScrollView",
|
|
12907
12907
|
setup() {
|
|
12908
12908
|
const r = q(null), e = q(null);
|
|
12909
|
-
return
|
|
12909
|
+
return ft(Fg, e), mp(() => {
|
|
12910
12910
|
const t = Z.getOptions(r.value.attributes), n = new Z(r.value, t);
|
|
12911
12911
|
e.value = n.getScrollElement();
|
|
12912
12912
|
}), { hostRef: r };
|
|
@@ -13016,7 +13016,7 @@ const JF = {
|
|
|
13016
13016
|
const t = Tg({
|
|
13017
13017
|
valueRef: fe(r, "value"),
|
|
13018
13018
|
format: Number
|
|
13019
|
-
}), n =
|
|
13019
|
+
}), n = A(() => {
|
|
13020
13020
|
const o = Number(r.min), s = Number(r.max), a = Number(r.step);
|
|
13021
13021
|
return { "--zw-range-progress": `${(Math.ceil(t.value / a) * a - o) / (s - o) * 100}%` };
|
|
13022
13022
|
});
|
|
@@ -13148,7 +13148,7 @@ const tI = {
|
|
|
13148
13148
|
max: t(r.max)
|
|
13149
13149
|
}), i = (l) => n.change(l.target.value), o = () => n.increment(Number(r.step)), s = () => n.decrement(Number(r.step));
|
|
13150
13150
|
return {
|
|
13151
|
-
elementClasses:
|
|
13151
|
+
elementClasses: A(() => ({
|
|
13152
13152
|
"zw-number-field--disabled": r.disabled
|
|
13153
13153
|
})),
|
|
13154
13154
|
tempValue: n.temp,
|
|
@@ -13218,7 +13218,7 @@ class sI {
|
|
|
13218
13218
|
this.listRef = e, this.triggerUpdate = t;
|
|
13219
13219
|
}
|
|
13220
13220
|
}
|
|
13221
|
-
class
|
|
13221
|
+
class Ct {
|
|
13222
13222
|
static use(e) {
|
|
13223
13223
|
this.window = e;
|
|
13224
13224
|
}
|
|
@@ -13235,19 +13235,23 @@ class wt {
|
|
|
13235
13235
|
return this.window.getComputedStyle(e);
|
|
13236
13236
|
}
|
|
13237
13237
|
}
|
|
13238
|
-
|
|
13239
|
-
const
|
|
13238
|
+
$r(Ct, "window", window);
|
|
13239
|
+
const ut = class {
|
|
13240
13240
|
static normalize(e) {
|
|
13241
|
-
|
|
13241
|
+
const t = {
|
|
13242
|
+
content: e,
|
|
13243
|
+
parser: ut.PARSER
|
|
13244
|
+
};
|
|
13245
|
+
return new ut(t).normalize();
|
|
13242
13246
|
}
|
|
13243
|
-
constructor(e) {
|
|
13244
|
-
this._content = e, this._dom = null;
|
|
13247
|
+
constructor({ content: e, parser: t }) {
|
|
13248
|
+
this._content = e, this._parser = t, this._dom = null;
|
|
13245
13249
|
}
|
|
13246
13250
|
normalize() {
|
|
13247
13251
|
return typeof this._content != "string" ? this._content : this._normalizeTextContent();
|
|
13248
13252
|
}
|
|
13249
13253
|
_normalizeTextContent() {
|
|
13250
|
-
return this._dom =
|
|
13254
|
+
return this._dom = this._parser.parseFromString(this._content, "text/html"), this._iterateNodes(this._removeEmptyNodes, this._isBlockNode), this._iterateNodes(this._normalizeListItems, (e) => e.tagName === "LI"), this._iterateNodes(this._normalizeSettingsStructure, (e) => e.tagName === "SPAN"), this._iterateNodes(this._normalizeStyles, (e) => e.tagName !== "SPAN"), this._dom.body.innerHTML;
|
|
13251
13255
|
}
|
|
13252
13256
|
_iterateNodes(e, t = () => !0) {
|
|
13253
13257
|
const n = this._dom.createNodeIterator(this._dom.body, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -13258,14 +13262,15 @@ const Pt = class {
|
|
|
13258
13262
|
e.call(this, i), i = n.nextNode();
|
|
13259
13263
|
}
|
|
13260
13264
|
_removeEmptyNodes(e) {
|
|
13261
|
-
e.
|
|
13265
|
+
e.innerHTML.replace(/\n/g, "").trim() || e.remove();
|
|
13262
13266
|
}
|
|
13263
13267
|
_normalizeListItems(e) {
|
|
13264
13268
|
const t = new DocumentFragment(), n = Array.from(e.childNodes);
|
|
13265
13269
|
let i;
|
|
13266
13270
|
const o = (s) => {
|
|
13267
|
-
this._assignElementProperties(s, e,
|
|
13271
|
+
this._assignElementProperties(s, e, ut.BLOCK_STYLES), t.append(s);
|
|
13268
13272
|
};
|
|
13273
|
+
this._assignElementProperties(e, e.parentElement, ut.BLOCK_STYLES);
|
|
13269
13274
|
for (const s of n) {
|
|
13270
13275
|
if (s.tagName === "P") {
|
|
13271
13276
|
o(s), i = null;
|
|
@@ -13273,7 +13278,7 @@ const Pt = class {
|
|
|
13273
13278
|
}
|
|
13274
13279
|
i || (i = document.createElement("p"), o(i)), i.append(s);
|
|
13275
13280
|
}
|
|
13276
|
-
e.append(t), this._removeStyleProperties(e,
|
|
13281
|
+
e.append(t), this._removeStyleProperties(e, ut.BLOCK_STYLES);
|
|
13277
13282
|
}
|
|
13278
13283
|
_normalizeSettingsStructure(e) {
|
|
13279
13284
|
if (this._isOnlyTextContent(e))
|
|
@@ -13301,10 +13306,10 @@ const Pt = class {
|
|
|
13301
13306
|
return Array.from(e.childNodes).every((t) => t.nodeType === Node.TEXT_NODE);
|
|
13302
13307
|
}
|
|
13303
13308
|
_isBlockNode(e) {
|
|
13304
|
-
return
|
|
13309
|
+
return ut.BLOCK_NODE_NAMES.includes(e.tagName);
|
|
13305
13310
|
}
|
|
13306
13311
|
_getMigratingStyles(e, { customProperties: t } = {}) {
|
|
13307
|
-
const n =
|
|
13312
|
+
const n = ut.BLOCK_STYLES, i = [];
|
|
13308
13313
|
for (let o = 0; o < e.style.length; o++) {
|
|
13309
13314
|
const s = e.style.item(o);
|
|
13310
13315
|
n.includes(s) || !t && s.startsWith("--") || i.push(s);
|
|
@@ -13314,7 +13319,7 @@ const Pt = class {
|
|
|
13314
13319
|
_wrapTextNode(e, t) {
|
|
13315
13320
|
if (t.nodeType !== Node.TEXT_NODE)
|
|
13316
13321
|
return t;
|
|
13317
|
-
const n =
|
|
13322
|
+
const n = Ct.document.createElement("span");
|
|
13318
13323
|
return n.append(t.cloneNode()), e.replaceChild(n, t), n;
|
|
13319
13324
|
}
|
|
13320
13325
|
_assignElementProperties(e, t, n) {
|
|
@@ -13324,7 +13329,7 @@ const Pt = class {
|
|
|
13324
13329
|
}
|
|
13325
13330
|
}
|
|
13326
13331
|
_canAssignElementProperty(e, t, n) {
|
|
13327
|
-
return e.style.getPropertyValue(n) ? !1 :
|
|
13332
|
+
return e.style.getPropertyValue(n) ? !1 : ut.ASSIGN_STYLE_RULES.every((i) => i.tag.test(e.tagName.toLowerCase()) ? !i.ignore.test(n) : !0);
|
|
13328
13333
|
}
|
|
13329
13334
|
_removeStyleProperties(e, t) {
|
|
13330
13335
|
for (const n of t)
|
|
@@ -13332,8 +13337,8 @@ const Pt = class {
|
|
|
13332
13337
|
e.style.length === 0 && e.removeAttribute("style");
|
|
13333
13338
|
}
|
|
13334
13339
|
};
|
|
13335
|
-
let
|
|
13336
|
-
|
|
13340
|
+
let wt = ut;
|
|
13341
|
+
$r(wt, "PARSER", new DOMParser()), $r(wt, "BLOCK_STYLES", ["text-align", "line-height"]), $r(wt, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]), $r(wt, "ASSIGN_STYLE_RULES", [
|
|
13337
13342
|
{
|
|
13338
13343
|
tag: /^(b|strong)$/,
|
|
13339
13344
|
ignore: /font-weight/
|
|
@@ -13350,7 +13355,7 @@ xn(Lt, "BLOCK_STYLES", ["text-align", "line-height"]), xn(Lt, "BLOCK_NODE_NAMES"
|
|
|
13350
13355
|
const Vi = /* @__PURE__ */ new WeakMap();
|
|
13351
13356
|
function $a(r, e) {
|
|
13352
13357
|
const t = ["click", e, { capture: !0 }], n = r ? "addEventListener" : "removeEventListener";
|
|
13353
|
-
|
|
13358
|
+
Ct.window !== window && window.document[n](...t), Ct.document[n](...t);
|
|
13354
13359
|
}
|
|
13355
13360
|
const Fc = {
|
|
13356
13361
|
bind(r, { value: e }) {
|
|
@@ -13419,7 +13424,7 @@ const cI = {
|
|
|
13419
13424
|
}
|
|
13420
13425
|
},
|
|
13421
13426
|
setup(r) {
|
|
13422
|
-
const e = r.toggler || yi(), t = q(null), n =
|
|
13427
|
+
const e = r.toggler || yi(), t = q(null), n = A(() => ({
|
|
13423
13428
|
"--zw-modal-max-height": `${r.maxHeight}px`,
|
|
13424
13429
|
"--zw-modal-max-width": `${r.maxWidth}px`
|
|
13425
13430
|
}));
|
|
@@ -13505,7 +13510,7 @@ const pI = {
|
|
|
13505
13510
|
}
|
|
13506
13511
|
},
|
|
13507
13512
|
setup(r, { emit: e }) {
|
|
13508
|
-
const t = (i) => e("input", i.target.value), n =
|
|
13513
|
+
const t = (i) => e("input", i.target.value), n = A(() => r.label.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (i, o) => o.toUpperCase()));
|
|
13509
13514
|
return { onInput: t, fieldId: n };
|
|
13510
13515
|
}
|
|
13511
13516
|
}, Eh = {};
|
|
@@ -13597,10 +13602,10 @@ function DI({ optionsRef: r, inputRef: e, stateless: t, onChange: n }) {
|
|
|
13597
13602
|
o(c, u);
|
|
13598
13603
|
}
|
|
13599
13604
|
const a = () => s(e.value, { emitEvent: !1 });
|
|
13600
|
-
return a(),
|
|
13605
|
+
return a(), rn(e, a), { activeOption: i, activateOption: o };
|
|
13601
13606
|
}
|
|
13602
13607
|
function Ic(r) {
|
|
13603
|
-
return
|
|
13608
|
+
return A(() => {
|
|
13604
13609
|
var e, t;
|
|
13605
13610
|
return ((e = r.value) == null ? void 0 : e.title) || ((t = r.value) == null ? void 0 : t.id) || "";
|
|
13606
13611
|
});
|
|
@@ -13650,7 +13655,7 @@ const CI = {
|
|
|
13650
13655
|
}
|
|
13651
13656
|
},
|
|
13652
13657
|
setup(r) {
|
|
13653
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = fe(r, "color"), i = Ic(e.activeOption), o =
|
|
13658
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = fe(r, "color"), i = Ic(e.activeOption), o = A(() => ({
|
|
13654
13659
|
"zw-dropdown__activator--active": t.isOpened.value,
|
|
13655
13660
|
"zw-dropdown__activator--gray": n.value === "gray"
|
|
13656
13661
|
}));
|
|
@@ -13704,10 +13709,10 @@ const $I = {
|
|
|
13704
13709
|
}
|
|
13705
13710
|
},
|
|
13706
13711
|
setup(r) {
|
|
13707
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(fe(r, "option")), a =
|
|
13712
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(fe(r, "option")), a = A(() => {
|
|
13708
13713
|
var c;
|
|
13709
13714
|
return r.option.id === ((c = e.activeOption.value) == null ? void 0 : c.id);
|
|
13710
|
-
}), l =
|
|
13715
|
+
}), l = A(() => ({ "zw-dropdown__option--active": a.value }));
|
|
13711
13716
|
function u() {
|
|
13712
13717
|
e.activateOption(r.option), t.close();
|
|
13713
13718
|
}
|
|
@@ -13740,7 +13745,7 @@ function II(r) {
|
|
|
13740
13745
|
for (let e in xh)
|
|
13741
13746
|
this[e] = xh[e];
|
|
13742
13747
|
}
|
|
13743
|
-
const
|
|
13748
|
+
const Dn = /* @__PURE__ */ function() {
|
|
13744
13749
|
return FI.exports;
|
|
13745
13750
|
}();
|
|
13746
13751
|
var NI = function() {
|
|
@@ -13764,7 +13769,7 @@ var NI = function() {
|
|
|
13764
13769
|
const PI = {
|
|
13765
13770
|
name: "DropdownGroup",
|
|
13766
13771
|
components: {
|
|
13767
|
-
DropdownOption:
|
|
13772
|
+
DropdownOption: Dn
|
|
13768
13773
|
},
|
|
13769
13774
|
props: {
|
|
13770
13775
|
group: {
|
|
@@ -13856,7 +13861,7 @@ const JI = {
|
|
|
13856
13861
|
components: {
|
|
13857
13862
|
ScrollView: jF,
|
|
13858
13863
|
DropdownGroup: zI,
|
|
13859
|
-
DropdownOption:
|
|
13864
|
+
DropdownOption: Dn,
|
|
13860
13865
|
DropdownDivider: UI
|
|
13861
13866
|
},
|
|
13862
13867
|
props: {
|
|
@@ -13866,7 +13871,7 @@ const JI = {
|
|
|
13866
13871
|
}
|
|
13867
13872
|
},
|
|
13868
13873
|
setup() {
|
|
13869
|
-
|
|
13874
|
+
ft(Wt.SESSION, {});
|
|
13870
13875
|
}
|
|
13871
13876
|
}, kh = {};
|
|
13872
13877
|
var YI = /* @__PURE__ */ $(
|
|
@@ -13961,7 +13966,7 @@ const tN = {
|
|
|
13961
13966
|
wrapperRef: t,
|
|
13962
13967
|
modalRef: n
|
|
13963
13968
|
});
|
|
13964
|
-
return
|
|
13969
|
+
return ft(Wt.ACTIVE_MANAGER, i), ft(Wt.TOGGLER, o), {
|
|
13965
13970
|
dropdownRef: t,
|
|
13966
13971
|
modalRef: n,
|
|
13967
13972
|
toggler: o
|
|
@@ -13986,7 +13991,7 @@ const er = /* @__PURE__ */ function() {
|
|
|
13986
13991
|
return rN.exports;
|
|
13987
13992
|
}();
|
|
13988
13993
|
function iN({ pickerRef: r, initialColorRef: e, onClosed: t, onBeforeOpened: n }) {
|
|
13989
|
-
const i = q(e.value), o =
|
|
13994
|
+
const i = q(e.value), o = A(() => {
|
|
13990
13995
|
var c, f;
|
|
13991
13996
|
return (f = (c = r.value) == null ? void 0 : c.isVisible) != null ? f : !1;
|
|
13992
13997
|
});
|
|
@@ -14026,7 +14031,7 @@ function oN({ isOpenedRef: r, onCancel: e, onApply: t }) {
|
|
|
14026
14031
|
}
|
|
14027
14032
|
}
|
|
14028
14033
|
Mg({
|
|
14029
|
-
targetRef: q(
|
|
14034
|
+
targetRef: q(Ct.document),
|
|
14030
14035
|
isActiveRef: r,
|
|
14031
14036
|
event: "keydown",
|
|
14032
14037
|
onEvent: i,
|
|
@@ -14192,12 +14197,12 @@ const hN = [ne.FONT_SIZE, ne.FONT_WEIGHT], pN = {
|
|
|
14192
14197
|
tooltip: pe
|
|
14193
14198
|
},
|
|
14194
14199
|
setup() {
|
|
14195
|
-
const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i =
|
|
14200
|
+
const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = A(() => {
|
|
14196
14201
|
const { attributes: l, marks: u } = n.value;
|
|
14197
14202
|
return !!l.length || !!u.length;
|
|
14198
14203
|
});
|
|
14199
14204
|
return {
|
|
14200
|
-
options:
|
|
14205
|
+
options: A(() => e.value.map((l) => ({
|
|
14201
14206
|
id: l.id,
|
|
14202
14207
|
title: l.name
|
|
14203
14208
|
}))),
|
|
@@ -14232,7 +14237,7 @@ function gN({ limit: r }) {
|
|
|
14232
14237
|
function n(o) {
|
|
14233
14238
|
t.value = Array.from(/* @__PURE__ */ new Set([o, ...t.value])).slice(0, r), e.setItem($h, t.value);
|
|
14234
14239
|
}
|
|
14235
|
-
const i =
|
|
14240
|
+
const i = A(() => !t.value.length);
|
|
14236
14241
|
return { fonts: t, isEmpty: i, add: n };
|
|
14237
14242
|
}
|
|
14238
14243
|
var yN = function() {
|
|
@@ -14277,16 +14282,16 @@ const _N = {
|
|
|
14277
14282
|
name: "FontFamilyControl",
|
|
14278
14283
|
components: {
|
|
14279
14284
|
Dropdown: er,
|
|
14280
|
-
DropdownOption:
|
|
14285
|
+
DropdownOption: Dn
|
|
14281
14286
|
},
|
|
14282
14287
|
directives: {
|
|
14283
14288
|
tooltip: pe
|
|
14284
14289
|
},
|
|
14285
14290
|
setup() {
|
|
14286
|
-
const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n =
|
|
14291
|
+
const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n = A(() => ({
|
|
14287
14292
|
id: "Recently Used",
|
|
14288
14293
|
options: t.fonts.value.map((l) => ({ id: l }))
|
|
14289
|
-
})), i =
|
|
14294
|
+
})), i = A(() => {
|
|
14290
14295
|
var u, c;
|
|
14291
14296
|
const l = {};
|
|
14292
14297
|
for (const f of r)
|
|
@@ -14354,7 +14359,7 @@ const CN = {
|
|
|
14354
14359
|
tooltip: pe
|
|
14355
14360
|
},
|
|
14356
14361
|
setup() {
|
|
14357
|
-
const r = z(L.EDITOR), e = r.commands.getFont(), t =
|
|
14362
|
+
const r = z(L.EDITOR), e = r.commands.getFont(), t = A(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
|
|
14358
14363
|
return {
|
|
14359
14364
|
options: t,
|
|
14360
14365
|
currentValue: n,
|
|
@@ -14410,7 +14415,7 @@ const $N = {
|
|
|
14410
14415
|
tooltip: pe
|
|
14411
14416
|
},
|
|
14412
14417
|
setup() {
|
|
14413
|
-
const r = z(L.FONT_SIZES), e = z(L.EDITOR), t =
|
|
14418
|
+
const r = z(L.FONT_SIZES), e = z(L.EDITOR), t = A(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
|
|
14414
14419
|
return {
|
|
14415
14420
|
options: t,
|
|
14416
14421
|
currentValue: n,
|
|
@@ -14687,7 +14692,7 @@ const tR = {
|
|
|
14687
14692
|
setup() {
|
|
14688
14693
|
const r = z(L.EDITOR);
|
|
14689
14694
|
return {
|
|
14690
|
-
currentValue:
|
|
14695
|
+
currentValue: A(() => r.commands.isUnderline().value),
|
|
14691
14696
|
apply: () => r.chain().focus().toggleUnderline().run()
|
|
14692
14697
|
};
|
|
14693
14698
|
}
|
|
@@ -14805,7 +14810,7 @@ const hR = {
|
|
|
14805
14810
|
setup() {
|
|
14806
14811
|
const r = z(L.EDITOR);
|
|
14807
14812
|
return {
|
|
14808
|
-
currentValue:
|
|
14813
|
+
currentValue: A(() => r.isActive("superscript")),
|
|
14809
14814
|
apply: () => r.chain().focus().toggleSuperscript().run()
|
|
14810
14815
|
};
|
|
14811
14816
|
}
|
|
@@ -14877,9 +14882,9 @@ const bR = {
|
|
|
14877
14882
|
tooltip: pe
|
|
14878
14883
|
},
|
|
14879
14884
|
styles: [
|
|
14880
|
-
{ id:
|
|
14881
|
-
{ id:
|
|
14882
|
-
{ id:
|
|
14885
|
+
{ id: en.UPPERCASE, title: "UPPERCASE" },
|
|
14886
|
+
{ id: en.LOWERCASE, title: "lowercase" },
|
|
14887
|
+
{ id: en.CAPITALIZE, title: "Capitalize" }
|
|
14883
14888
|
],
|
|
14884
14889
|
setup() {
|
|
14885
14890
|
const r = z(L.EDITOR);
|
|
@@ -15185,7 +15190,30 @@ const Lg = /* @__PURE__ */ function() {
|
|
|
15185
15190
|
}();
|
|
15186
15191
|
var LR = function() {
|
|
15187
15192
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
15188
|
-
return n("
|
|
15193
|
+
return n("div", {
|
|
15194
|
+
staticClass: "zpa-list-control"
|
|
15195
|
+
}, [n("Button", {
|
|
15196
|
+
directives: [{
|
|
15197
|
+
name: "tooltip",
|
|
15198
|
+
rawName: "v-tooltip",
|
|
15199
|
+
value: "Bullets",
|
|
15200
|
+
expression: "'Bullets'"
|
|
15201
|
+
}],
|
|
15202
|
+
attrs: {
|
|
15203
|
+
icon: "",
|
|
15204
|
+
skin: "toolbar",
|
|
15205
|
+
active: e.isCurrentListSelected
|
|
15206
|
+
},
|
|
15207
|
+
on: {
|
|
15208
|
+
click: e.toggle
|
|
15209
|
+
}
|
|
15210
|
+
}, [n("Icon", {
|
|
15211
|
+
attrs: {
|
|
15212
|
+
name: e.currentIcon,
|
|
15213
|
+
size: "28px",
|
|
15214
|
+
"auto-color": ""
|
|
15215
|
+
}
|
|
15216
|
+
})], 1), n("Dropdown", {
|
|
15189
15217
|
attrs: {
|
|
15190
15218
|
value: e.currentValue,
|
|
15191
15219
|
options: e.$options.listTypes
|
|
@@ -15207,15 +15235,16 @@ var LR = function() {
|
|
|
15207
15235
|
attrs: {
|
|
15208
15236
|
icon: "",
|
|
15209
15237
|
skin: "toolbar",
|
|
15210
|
-
active: a
|
|
15238
|
+
active: a
|
|
15211
15239
|
},
|
|
15212
15240
|
on: {
|
|
15213
15241
|
click: s
|
|
15214
15242
|
}
|
|
15215
15243
|
}, [n("Icon", {
|
|
15244
|
+
staticClass: "zw-list-control__activator",
|
|
15216
15245
|
attrs: {
|
|
15217
|
-
name:
|
|
15218
|
-
size: "
|
|
15246
|
+
name: "arrow",
|
|
15247
|
+
size: "8px",
|
|
15219
15248
|
"auto-color": ""
|
|
15220
15249
|
}
|
|
15221
15250
|
})], 1)];
|
|
@@ -15238,17 +15267,17 @@ var LR = function() {
|
|
|
15238
15267
|
})], 1)];
|
|
15239
15268
|
}
|
|
15240
15269
|
}])
|
|
15241
|
-
});
|
|
15270
|
+
})], 1);
|
|
15242
15271
|
}, zR = [];
|
|
15243
15272
|
const jR = {
|
|
15244
15273
|
name: "ListControl",
|
|
15245
|
-
listTypes:
|
|
15274
|
+
listTypes: we.values.map((r) => ({
|
|
15246
15275
|
id: r,
|
|
15247
15276
|
icon: `list-${r}`
|
|
15248
15277
|
})),
|
|
15249
15278
|
components: {
|
|
15250
15279
|
Dropdown: er,
|
|
15251
|
-
DropdownOption:
|
|
15280
|
+
DropdownOption: Dn,
|
|
15252
15281
|
Button: ie,
|
|
15253
15282
|
Icon: ye
|
|
15254
15283
|
},
|
|
@@ -15256,12 +15285,16 @@ const jR = {
|
|
|
15256
15285
|
tooltip: pe
|
|
15257
15286
|
},
|
|
15258
15287
|
setup() {
|
|
15259
|
-
const r = z(L.EDITOR), e = r.commands.getListType(), t =
|
|
15288
|
+
const r = z(L.EDITOR), e = r.commands.getListType(), t = A(() => !!e.value), n = A(() => e.value || "none"), i = q(we.DISC), o = A(() => e.value === i.value), s = A(() => `list-${i.value}`), a = (u) => {
|
|
15289
|
+
i.value = u, r.chain().focus().applyList(u).run();
|
|
15290
|
+
};
|
|
15260
15291
|
return {
|
|
15261
15292
|
isList: t,
|
|
15262
15293
|
currentValue: n,
|
|
15263
|
-
currentIcon:
|
|
15264
|
-
|
|
15294
|
+
currentIcon: s,
|
|
15295
|
+
isCurrentListSelected: o,
|
|
15296
|
+
apply: a,
|
|
15297
|
+
toggle: () => a(i.value || we.DISC)
|
|
15265
15298
|
};
|
|
15266
15299
|
}
|
|
15267
15300
|
}, Uh = {};
|
|
@@ -15271,7 +15304,7 @@ var VR = /* @__PURE__ */ $(
|
|
|
15271
15304
|
zR,
|
|
15272
15305
|
!1,
|
|
15273
15306
|
HR,
|
|
15274
|
-
"
|
|
15307
|
+
"ce2b1130",
|
|
15275
15308
|
null,
|
|
15276
15309
|
null
|
|
15277
15310
|
);
|
|
@@ -15365,7 +15398,7 @@ const QR = {
|
|
|
15365
15398
|
components: { Icon: ye, Button: ie },
|
|
15366
15399
|
setup(r, { emit: e }) {
|
|
15367
15400
|
const t = z(L.EDITOR);
|
|
15368
|
-
return { isLink:
|
|
15401
|
+
return { isLink: A(() => t.isActive("link")), removeLink: () => e("remove-link") };
|
|
15369
15402
|
}
|
|
15370
15403
|
}, Gh = {};
|
|
15371
15404
|
var eP = /* @__PURE__ */ $(
|
|
@@ -15431,12 +15464,12 @@ const lP = /* @__PURE__ */ function() {
|
|
|
15431
15464
|
return sP.exports;
|
|
15432
15465
|
}();
|
|
15433
15466
|
function cP() {
|
|
15434
|
-
const r = z(L.EDITOR), e = z(L.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination:
|
|
15467
|
+
const r = z(L.EDITOR), e = z(L.PAGE_BLOCKS), t = q({ text: "", target: jt.SELF, destination: pt.URL }), n = q({ block: e.value[0].id, url: "" }), i = q({ id: pt.URL });
|
|
15435
15468
|
function o(f) {
|
|
15436
15469
|
t.value.target = f ? jt.BLANK : jt.SELF;
|
|
15437
15470
|
}
|
|
15438
15471
|
function s() {
|
|
15439
|
-
t.value.text = r.commands.getSelectedText(), i.value.id = r.getAttributes("link").destination ||
|
|
15472
|
+
t.value.text = r.commands.getSelectedText(), i.value.id = r.getAttributes("link").destination || pt.URL, n.value[i.value.id] = r.getAttributes("link").href || "", t.value.target = r.getAttributes("link").target || jt.SELF;
|
|
15440
15473
|
}
|
|
15441
15474
|
function a() {
|
|
15442
15475
|
r.chain().focus().applyLink({
|
|
@@ -15501,7 +15534,7 @@ var uP = function() {
|
|
|
15501
15534
|
}, fP = [];
|
|
15502
15535
|
const dP = {
|
|
15503
15536
|
name: "LinkControlPageBlock",
|
|
15504
|
-
components: { DropdownOption:
|
|
15537
|
+
components: { DropdownOption: Dn, Dropdown: er, FieldLabel: $c },
|
|
15505
15538
|
props: {
|
|
15506
15539
|
value: {
|
|
15507
15540
|
type: Number,
|
|
@@ -15644,14 +15677,14 @@ var EP = function() {
|
|
|
15644
15677
|
const wP = {
|
|
15645
15678
|
name: "LinkControlDestination",
|
|
15646
15679
|
destinationTypes: [
|
|
15647
|
-
{ id:
|
|
15648
|
-
{ id:
|
|
15680
|
+
{ id: pt.URL, title: "URL" },
|
|
15681
|
+
{ id: pt.BLOCK, title: "Page Block" }
|
|
15649
15682
|
],
|
|
15650
15683
|
components: {
|
|
15651
15684
|
LinkControlPageBlock: mP,
|
|
15652
15685
|
LinkControlUrl: SP,
|
|
15653
15686
|
FieldLabel: $c,
|
|
15654
|
-
DropdownOption:
|
|
15687
|
+
DropdownOption: Dn,
|
|
15655
15688
|
Dropdown: er
|
|
15656
15689
|
},
|
|
15657
15690
|
props: {
|
|
@@ -15665,9 +15698,9 @@ const wP = {
|
|
|
15665
15698
|
}
|
|
15666
15699
|
},
|
|
15667
15700
|
setup(r, { emit: e }) {
|
|
15668
|
-
const t = fe(r, "link"), n =
|
|
15701
|
+
const t = fe(r, "link"), n = A(() => t.value.currentDestination.value.id === "url");
|
|
15669
15702
|
return {
|
|
15670
|
-
isTargetBlank:
|
|
15703
|
+
isTargetBlank: A(() => t.value.linkData.value.target === jt.BLANK),
|
|
15671
15704
|
isURLDestination: n,
|
|
15672
15705
|
changeDestination: (a) => {
|
|
15673
15706
|
e("reset-errors"), t.value.currentDestination.value.id = a, n.value || (t.value.target = jt.SELF), t.value.destinationHrefs.value.url = "";
|
|
@@ -15787,7 +15820,7 @@ const TP = {
|
|
|
15787
15820
|
onBeforeOpened: () => c(),
|
|
15788
15821
|
wrapperRef: r,
|
|
15789
15822
|
modalRef: e
|
|
15790
|
-
}), d =
|
|
15823
|
+
}), d = A(() => f.isOpened.value || t.isActive("link"));
|
|
15791
15824
|
return {
|
|
15792
15825
|
wrapperRef: r,
|
|
15793
15826
|
modalRef: e,
|
|
@@ -15979,11 +16012,11 @@ const GP = {
|
|
|
15979
16012
|
}
|
|
15980
16013
|
},
|
|
15981
16014
|
setup(r) {
|
|
15982
|
-
const e =
|
|
15983
|
-
|
|
16015
|
+
const e = A(() => r.device === vo.DESKTOP ? LP : qP), t = A(() => r.toolbar.isActiveRef.value), n = q(null);
|
|
16016
|
+
rn(n, (o) => {
|
|
15984
16017
|
o && r.toolbar.mount(o);
|
|
15985
16018
|
});
|
|
15986
|
-
const i =
|
|
16019
|
+
const i = A(() => ({
|
|
15987
16020
|
"--zw-toolbar-offset-y": `${r.toolbar.offsets[1]}px`
|
|
15988
16021
|
}));
|
|
15989
16022
|
return {
|
|
@@ -16013,14 +16046,14 @@ const XP = /* @__PURE__ */ function() {
|
|
|
16013
16046
|
}();
|
|
16014
16047
|
function ZP({ content: r, onChange: e, extensions: t }) {
|
|
16015
16048
|
const n = ny(new XS({
|
|
16016
|
-
content:
|
|
16049
|
+
content: wt.normalize(r.value),
|
|
16017
16050
|
onUpdate: () => e(n.getJSON()),
|
|
16018
16051
|
extensions: t,
|
|
16019
16052
|
injectCSS: !1
|
|
16020
16053
|
}));
|
|
16021
|
-
return Dl(() => n.destroy()),
|
|
16054
|
+
return Dl(() => n.destroy()), rn(r, (i) => {
|
|
16022
16055
|
if (JSON.stringify(n.getJSON()) !== JSON.stringify(i)) {
|
|
16023
|
-
const s =
|
|
16056
|
+
const s = wt.normalize(i);
|
|
16024
16057
|
n.commands.setContent(s, !1);
|
|
16025
16058
|
}
|
|
16026
16059
|
}), n;
|
|
@@ -16076,19 +16109,19 @@ const eB = je.create({
|
|
|
16076
16109
|
}),
|
|
16077
16110
|
getFont: O(({ commands: r }) => {
|
|
16078
16111
|
const e = r.getFontFamily();
|
|
16079
|
-
return
|
|
16112
|
+
return A(() => r.findFontByName(e.value));
|
|
16080
16113
|
}),
|
|
16081
16114
|
findFontByName: O((r, e) => this.options.fonts.find((t) => t.name === e)),
|
|
16082
16115
|
getFontFamily: O(({ editor: r, commands: e }) => {
|
|
16083
16116
|
const t = e.getDefaultFontFamily();
|
|
16084
|
-
return
|
|
16117
|
+
return A(() => {
|
|
16085
16118
|
var n, i;
|
|
16086
16119
|
return (i = (n = r.getAttributes(this.name)) == null ? void 0 : n.value) != null ? i : t.value;
|
|
16087
16120
|
});
|
|
16088
16121
|
}),
|
|
16089
16122
|
getDefaultFontFamily: O(({ commands: r }) => {
|
|
16090
16123
|
const e = r.getPreset();
|
|
16091
|
-
return
|
|
16124
|
+
return A(() => e.value.common.font_family);
|
|
16092
16125
|
})
|
|
16093
16126
|
};
|
|
16094
16127
|
},
|
|
@@ -16112,7 +16145,7 @@ const eB = je.create({
|
|
|
16112
16145
|
const e = r.value ? `"${r.value}"` : null;
|
|
16113
16146
|
return wr({ font_family: e });
|
|
16114
16147
|
}
|
|
16115
|
-
}), tB =
|
|
16148
|
+
}), tB = Ot.create({
|
|
16116
16149
|
name: "heading",
|
|
16117
16150
|
addOptions() {
|
|
16118
16151
|
return {
|
|
@@ -16138,7 +16171,7 @@ const eB = je.create({
|
|
|
16138
16171
|
}));
|
|
16139
16172
|
},
|
|
16140
16173
|
renderHTML({ node: r, HTMLAttributes: e }) {
|
|
16141
|
-
return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`,
|
|
16174
|
+
return [`h${this.options.levels.includes(r.attrs.level) ? r.attrs.level : this.options.levels[0]}`, vn(this.options.HTMLAttributes, e), 0];
|
|
16142
16175
|
},
|
|
16143
16176
|
addCommands() {
|
|
16144
16177
|
return {
|
|
@@ -16210,10 +16243,10 @@ const rB = te.create({
|
|
|
16210
16243
|
return e.find((n) => t === n.id);
|
|
16211
16244
|
}
|
|
16212
16245
|
return {
|
|
16213
|
-
getPresetList: O(() =>
|
|
16246
|
+
getPresetList: O(() => A(() => this.options.presets.filter((e) => !e.hidden))),
|
|
16214
16247
|
getPreset: O(({ commands: e }) => {
|
|
16215
16248
|
const t = e.getBlockAttributes("preset", { id: this.options.defaultId }), n = e.getPresetList();
|
|
16216
|
-
return
|
|
16249
|
+
return A(() => r(n.value, t.value.id));
|
|
16217
16250
|
}),
|
|
16218
16251
|
applyPreset: O(({ commands: e, chain: t }, n) => {
|
|
16219
16252
|
var l, u;
|
|
@@ -16233,7 +16266,7 @@ const rB = te.create({
|
|
|
16233
16266
|
}),
|
|
16234
16267
|
getPresetCustomization: O(({ editor: e }) => {
|
|
16235
16268
|
const t = fe(e, "state");
|
|
16236
|
-
return
|
|
16269
|
+
return A(() => {
|
|
16237
16270
|
const n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), { from: o, to: s } = t.value.selection;
|
|
16238
16271
|
return t.value.doc.nodesBetween(o, s, (a) => {
|
|
16239
16272
|
for (const [l, u] of Object.entries(a.attrs))
|
|
@@ -16255,12 +16288,12 @@ const rB = te.create({
|
|
|
16255
16288
|
};
|
|
16256
16289
|
},
|
|
16257
16290
|
onCreate() {
|
|
16258
|
-
const r =
|
|
16291
|
+
const r = Ct.document.querySelector("[data-zw-styles]");
|
|
16259
16292
|
if (r) {
|
|
16260
16293
|
this.storage.presetStyleEl = r;
|
|
16261
16294
|
return;
|
|
16262
16295
|
}
|
|
16263
|
-
this.storage.presetStyleEl =
|
|
16296
|
+
this.storage.presetStyleEl = Ct.document.createElement("style"), this.storage.presetStyleEl.dataset.zwStyles = "";
|
|
16264
16297
|
for (const e of this.options.presets) {
|
|
16265
16298
|
const n = [` ${np(this.options.baseClass, e)} {`];
|
|
16266
16299
|
for (const i of vo.values)
|
|
@@ -16270,7 +16303,7 @@ const rB = te.create({
|
|
|
16270
16303
|
}
|
|
16271
16304
|
n.push("}"), this.storage.presetStyleEl.innerHTML += n.join(" ");
|
|
16272
16305
|
}
|
|
16273
|
-
|
|
16306
|
+
Ct.head.append(this.storage.presetStyleEl);
|
|
16274
16307
|
}
|
|
16275
16308
|
}), nB = je.create({
|
|
16276
16309
|
name: ne.FONT_WEIGHT,
|
|
@@ -16288,7 +16321,7 @@ const rB = te.create({
|
|
|
16288
16321
|
}),
|
|
16289
16322
|
getFontWeight: O(({ editor: r, commands: e }) => {
|
|
16290
16323
|
const t = e.getDefaultFontWeight(), n = e.getFont();
|
|
16291
|
-
return
|
|
16324
|
+
return A(() => {
|
|
16292
16325
|
var o, s;
|
|
16293
16326
|
const i = (s = (o = r.getAttributes(this.name)) == null ? void 0 : o.value) != null ? s : t.value;
|
|
16294
16327
|
return n.value.isWeightSupported(i) ? i : n.value.findClosestWeight(i);
|
|
@@ -16296,7 +16329,7 @@ const rB = te.create({
|
|
|
16296
16329
|
}),
|
|
16297
16330
|
getDefaultFontWeight: O(({ commands: r }) => {
|
|
16298
16331
|
const e = r.getPreset();
|
|
16299
|
-
return
|
|
16332
|
+
return A(() => e.value.common.font_weight);
|
|
16300
16333
|
})
|
|
16301
16334
|
};
|
|
16302
16335
|
},
|
|
@@ -16345,14 +16378,14 @@ const rB = te.create({
|
|
|
16345
16378
|
return {
|
|
16346
16379
|
getFontSize: O(({ editor: r, commands: e }) => {
|
|
16347
16380
|
const t = e.getDevice(), n = e.getDefaultFontSize();
|
|
16348
|
-
return
|
|
16381
|
+
return A(() => {
|
|
16349
16382
|
var i, o;
|
|
16350
16383
|
return (o = (i = r.getAttributes(this.name)) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16351
16384
|
});
|
|
16352
16385
|
}),
|
|
16353
16386
|
getDefaultFontSize: O(({ commands: r }) => {
|
|
16354
16387
|
const e = r.getDevice(), t = r.getPreset();
|
|
16355
|
-
return
|
|
16388
|
+
return A(() => t.value[e.value].font_size.replace("px", ""));
|
|
16356
16389
|
}),
|
|
16357
16390
|
applyFontSize: O(({ commands: r }, e) => {
|
|
16358
16391
|
const t = r.getDevice().value;
|
|
@@ -16414,14 +16447,14 @@ const rB = te.create({
|
|
|
16414
16447
|
return {
|
|
16415
16448
|
getFontColor: O(({ commands: r, editor: e }) => {
|
|
16416
16449
|
const t = r.getDefaultFontColor();
|
|
16417
|
-
return
|
|
16450
|
+
return A(() => {
|
|
16418
16451
|
var n, i;
|
|
16419
16452
|
return (i = (n = e.getAttributes(this.name)) == null ? void 0 : n.value) != null ? i : t.value;
|
|
16420
16453
|
});
|
|
16421
16454
|
}),
|
|
16422
16455
|
getDefaultFontColor: O(({ commands: r }) => {
|
|
16423
16456
|
const e = r.getPreset();
|
|
16424
|
-
return
|
|
16457
|
+
return A(() => e.value.common.color);
|
|
16425
16458
|
}),
|
|
16426
16459
|
applyFontColor: O(({ commands: r }, e) => {
|
|
16427
16460
|
r.setMark(this.name, { value: e });
|
|
@@ -16451,7 +16484,7 @@ const rB = te.create({
|
|
|
16451
16484
|
}),
|
|
16452
16485
|
addCommands() {
|
|
16453
16486
|
return {
|
|
16454
|
-
getBackgroundColor: O(({ editor: r }) =>
|
|
16487
|
+
getBackgroundColor: O(({ editor: r }) => A(() => {
|
|
16455
16488
|
var e, t;
|
|
16456
16489
|
return (t = (e = r.getAttributes(this.name)) == null ? void 0 : e.value) != null ? t : "rgba(255, 255, 255, 0%)";
|
|
16457
16490
|
})),
|
|
@@ -16492,18 +16525,18 @@ const rB = te.create({
|
|
|
16492
16525
|
return {
|
|
16493
16526
|
isItalic: O(({ editor: r, commands: e }) => {
|
|
16494
16527
|
const t = e.getDefaultFontStyle();
|
|
16495
|
-
return
|
|
16528
|
+
return A(() => {
|
|
16496
16529
|
var n, i;
|
|
16497
16530
|
return (i = (n = r.getAttributes(this.name)) == null ? void 0 : n.italic) != null ? i : t.value.italic;
|
|
16498
16531
|
});
|
|
16499
16532
|
}),
|
|
16500
16533
|
isItalicAvailable: O(({ commands: r }) => {
|
|
16501
16534
|
const e = r.getFont(), t = r.getFontWeight();
|
|
16502
|
-
return
|
|
16535
|
+
return A(() => e.value.isItalicSupported(t.value));
|
|
16503
16536
|
}),
|
|
16504
16537
|
getDefaultFontStyle: O(({ commands: r }) => {
|
|
16505
16538
|
const e = r.getPreset();
|
|
16506
|
-
return
|
|
16539
|
+
return A(() => ({
|
|
16507
16540
|
italic: e.value.common.font_style === "italic"
|
|
16508
16541
|
}));
|
|
16509
16542
|
}),
|
|
@@ -16553,15 +16586,15 @@ const rB = te.create({
|
|
|
16553
16586
|
return {
|
|
16554
16587
|
isUnderline: O(({ commands: r, editor: e }) => {
|
|
16555
16588
|
const t = r.getTextDecoration();
|
|
16556
|
-
return
|
|
16589
|
+
return A(() => e.isActive("link") || t.value.underline);
|
|
16557
16590
|
}),
|
|
16558
16591
|
isStrikeThrough: O(({ commands: r }) => {
|
|
16559
16592
|
const e = r.getTextDecoration();
|
|
16560
|
-
return
|
|
16593
|
+
return A(() => e.value.strike_through);
|
|
16561
16594
|
}),
|
|
16562
16595
|
getTextDecoration: O(({ editor: r, commands: e }) => {
|
|
16563
16596
|
const t = e.getDefaultTextDecoration();
|
|
16564
|
-
return
|
|
16597
|
+
return A(() => {
|
|
16565
16598
|
var i, o, s;
|
|
16566
16599
|
const n = (i = r.getAttributes(this.name)) != null ? i : {};
|
|
16567
16600
|
return {
|
|
@@ -16572,7 +16605,7 @@ const rB = te.create({
|
|
|
16572
16605
|
}),
|
|
16573
16606
|
getDefaultTextDecoration: O(({ commands: r }) => {
|
|
16574
16607
|
const e = r.getPreset();
|
|
16575
|
-
return
|
|
16608
|
+
return A(() => {
|
|
16576
16609
|
const t = e.value.common.text_decoration;
|
|
16577
16610
|
return {
|
|
16578
16611
|
underline: t.includes("underline"),
|
|
@@ -16649,11 +16682,11 @@ const rB = te.create({
|
|
|
16649
16682
|
return {
|
|
16650
16683
|
applyCaseStyle: O(({ commands: r }, e) => {
|
|
16651
16684
|
switch (e) {
|
|
16652
|
-
case
|
|
16685
|
+
case en.CAPITALIZE:
|
|
16653
16686
|
return r.applyCapitalize();
|
|
16654
|
-
case
|
|
16687
|
+
case en.LOWERCASE:
|
|
16655
16688
|
return r.applyLowerCase();
|
|
16656
|
-
case
|
|
16689
|
+
case en.UPPERCASE:
|
|
16657
16690
|
return r.applyUpperCase();
|
|
16658
16691
|
}
|
|
16659
16692
|
}),
|
|
@@ -16710,14 +16743,14 @@ const rB = te.create({
|
|
|
16710
16743
|
}),
|
|
16711
16744
|
getAlignment: O(({ commands: r }) => {
|
|
16712
16745
|
const e = r.getBlockAttributes(this.name, ip), t = r.getDevice(), n = r.getDefaultAlignment();
|
|
16713
|
-
return
|
|
16746
|
+
return A(() => {
|
|
16714
16747
|
var i, o;
|
|
16715
16748
|
return (o = (i = e.value) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16716
16749
|
});
|
|
16717
16750
|
}),
|
|
16718
16751
|
getDefaultAlignment: O(({ commands: r }) => {
|
|
16719
16752
|
const e = r.getDevice(), t = r.getPreset();
|
|
16720
|
-
return
|
|
16753
|
+
return A(() => t.value[e.value].alignment);
|
|
16721
16754
|
})
|
|
16722
16755
|
};
|
|
16723
16756
|
},
|
|
@@ -16767,14 +16800,14 @@ const rB = te.create({
|
|
|
16767
16800
|
return {
|
|
16768
16801
|
getLineHeight: O(({ commands: r }) => {
|
|
16769
16802
|
const e = r.getBlockAttributes(this.name, op), t = r.getDevice(), n = r.getDefaultLineHeight();
|
|
16770
|
-
return
|
|
16803
|
+
return A(() => {
|
|
16771
16804
|
var i, o;
|
|
16772
16805
|
return (o = (i = e.value) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16773
16806
|
});
|
|
16774
16807
|
}),
|
|
16775
16808
|
getDefaultLineHeight: O(({ commands: r }) => {
|
|
16776
16809
|
const e = r.getDevice(), t = r.getPreset();
|
|
16777
|
-
return
|
|
16810
|
+
return A(() => t.value[e.value].line_height);
|
|
16778
16811
|
}),
|
|
16779
16812
|
applyLineHeight: O(({ commands: r }, e) => {
|
|
16780
16813
|
const t = r.getDevice().value;
|
|
@@ -16782,7 +16815,7 @@ const rB = te.create({
|
|
|
16782
16815
|
})
|
|
16783
16816
|
};
|
|
16784
16817
|
}
|
|
16785
|
-
}), hB =
|
|
16818
|
+
}), hB = Ot.create({
|
|
16786
16819
|
name: "listItem",
|
|
16787
16820
|
addOptions() {
|
|
16788
16821
|
return {
|
|
@@ -16799,7 +16832,7 @@ const rB = te.create({
|
|
|
16799
16832
|
];
|
|
16800
16833
|
},
|
|
16801
16834
|
renderHTML({ HTMLAttributes: r }) {
|
|
16802
|
-
return ["li",
|
|
16835
|
+
return ["li", vn(this.options.HTMLAttributes, r), 0];
|
|
16803
16836
|
},
|
|
16804
16837
|
addKeyboardShortcuts() {
|
|
16805
16838
|
return {
|
|
@@ -16814,7 +16847,7 @@ const rB = te.create({
|
|
|
16814
16847
|
const { Enter: r } = this.parent();
|
|
16815
16848
|
return { Enter: r };
|
|
16816
16849
|
}
|
|
16817
|
-
}), mB =
|
|
16850
|
+
}), mB = Ot.create({
|
|
16818
16851
|
name: ee.LIST,
|
|
16819
16852
|
content: `${ee.LIST_ITEM}+`,
|
|
16820
16853
|
group: "block list",
|
|
@@ -16829,11 +16862,11 @@ const rB = te.create({
|
|
|
16829
16862
|
}),
|
|
16830
16863
|
parseHTML() {
|
|
16831
16864
|
const r = {
|
|
16832
|
-
a:
|
|
16833
|
-
i:
|
|
16834
|
-
1:
|
|
16865
|
+
a: we.ROMAN,
|
|
16866
|
+
i: we.LATIN,
|
|
16867
|
+
1: we.DECIMAL
|
|
16835
16868
|
}, e = (t) => {
|
|
16836
|
-
for (const n of
|
|
16869
|
+
for (const n of we.values) {
|
|
16837
16870
|
const i = `.${this.options.baseClass}${n}`;
|
|
16838
16871
|
if (t.matches(i) || r[t.type.toLowerCase()] === n)
|
|
16839
16872
|
return n;
|
|
@@ -16843,26 +16876,26 @@ const rB = te.create({
|
|
|
16843
16876
|
{
|
|
16844
16877
|
tag: "ol",
|
|
16845
16878
|
getAttrs: (t) => ({
|
|
16846
|
-
bullet: { type: e(t) ||
|
|
16879
|
+
bullet: { type: e(t) || we.DECIMAL }
|
|
16847
16880
|
})
|
|
16848
16881
|
},
|
|
16849
16882
|
{
|
|
16850
16883
|
tag: "ul",
|
|
16851
16884
|
getAttrs: (t) => ({
|
|
16852
|
-
bullet: { type: e(t) ||
|
|
16885
|
+
bullet: { type: e(t) || we.DISC }
|
|
16853
16886
|
})
|
|
16854
16887
|
}
|
|
16855
16888
|
];
|
|
16856
16889
|
},
|
|
16857
16890
|
renderHTML({ HTMLAttributes: r }) {
|
|
16858
|
-
const t =
|
|
16891
|
+
const t = we.ordered.includes(r.bullet.type) ? "ol" : "ul", n = this.options.baseClass + r.bullet.type;
|
|
16859
16892
|
return [t, { class: n }, 0];
|
|
16860
16893
|
},
|
|
16861
16894
|
addCommands() {
|
|
16862
16895
|
return {
|
|
16863
16896
|
getListType: O(({ commands: r }) => {
|
|
16864
16897
|
const e = r.getBlockAttributes("bullet", { type: null });
|
|
16865
|
-
return
|
|
16898
|
+
return A(() => {
|
|
16866
16899
|
var t;
|
|
16867
16900
|
return (t = e.value.type) != null ? t : null;
|
|
16868
16901
|
});
|
|
@@ -16888,10 +16921,10 @@ const rB = te.create({
|
|
|
16888
16921
|
joinPredicate: (n, { attrs: i }) => i.bullet.type === e
|
|
16889
16922
|
});
|
|
16890
16923
|
return [
|
|
16891
|
-
r(
|
|
16892
|
-
r(
|
|
16893
|
-
r(
|
|
16894
|
-
r(
|
|
16924
|
+
r(we.DISC, /^\s*([-+*])\s$/),
|
|
16925
|
+
r(we.DECIMAL, /^(\d+)\.\s$/),
|
|
16926
|
+
r(we.LATIN, /^([ivx]{1,3})\.\s$/i),
|
|
16927
|
+
r(we.ROMAN, /^([a-z])\.\s$/i)
|
|
16895
16928
|
];
|
|
16896
16929
|
}
|
|
16897
16930
|
});
|
|
@@ -16947,35 +16980,35 @@ var W = function() {
|
|
|
16947
16980
|
for (; o < s - 1; )
|
|
16948
16981
|
a = i(), w(e, t[o], a), e = a, o++;
|
|
16949
16982
|
w(e, t[s - 1], n);
|
|
16950
|
-
}, Ue = "DOMAIN",
|
|
16983
|
+
}, Ue = "DOMAIN", Dt = "LOCALHOST", lt = "TLD", Pe = "NUM", pn = "PROTOCOL", Rc = "MAILTO", zg = "WS", Pc = "NL", Ur = "OPENBRACE", Jn = "OPENBRACKET", Yn = "OPENANGLEBRACKET", Xn = "OPENPAREN", ar = "CLOSEBRACE", Kr = "CLOSEBRACKET", Gr = "CLOSEANGLEBRACKET", Jr = "CLOSEPAREN", Co = "AMPERSAND", Oo = "APOSTROPHE", ko = "ASTERISK", Yr = "AT", Ao = "BACKSLASH", To = "BACKTICK", Mo = "CARET", Zn = "COLON", Bc = "COMMA", $o = "DOLLAR", Pt = "DOT", Fo = "EQUALS", Lc = "EXCLAMATION", Io = "HYPHEN", No = "PERCENT", Ro = "PIPE", Po = "PLUS", Bo = "POUND", Lo = "QUERY", zc = "QUOTE", jc = "SEMI", xt = "SLASH", zo = "TILDE", jo = "UNDERSCORE", Vo = "SYM", gB = /* @__PURE__ */ Object.freeze({
|
|
16951
16984
|
__proto__: null,
|
|
16952
16985
|
DOMAIN: Ue,
|
|
16953
|
-
LOCALHOST:
|
|
16986
|
+
LOCALHOST: Dt,
|
|
16954
16987
|
TLD: lt,
|
|
16955
16988
|
NUM: Pe,
|
|
16956
|
-
PROTOCOL:
|
|
16989
|
+
PROTOCOL: pn,
|
|
16957
16990
|
MAILTO: Rc,
|
|
16958
16991
|
WS: zg,
|
|
16959
16992
|
NL: Pc,
|
|
16960
|
-
OPENBRACE:
|
|
16993
|
+
OPENBRACE: Ur,
|
|
16961
16994
|
OPENBRACKET: Jn,
|
|
16962
16995
|
OPENANGLEBRACKET: Yn,
|
|
16963
16996
|
OPENPAREN: Xn,
|
|
16964
16997
|
CLOSEBRACE: ar,
|
|
16965
|
-
CLOSEBRACKET:
|
|
16966
|
-
CLOSEANGLEBRACKET:
|
|
16967
|
-
CLOSEPAREN:
|
|
16998
|
+
CLOSEBRACKET: Kr,
|
|
16999
|
+
CLOSEANGLEBRACKET: Gr,
|
|
17000
|
+
CLOSEPAREN: Jr,
|
|
16968
17001
|
AMPERSAND: Co,
|
|
16969
17002
|
APOSTROPHE: Oo,
|
|
16970
17003
|
ASTERISK: ko,
|
|
16971
|
-
AT:
|
|
17004
|
+
AT: Yr,
|
|
16972
17005
|
BACKSLASH: Ao,
|
|
16973
17006
|
BACKTICK: To,
|
|
16974
17007
|
CARET: Mo,
|
|
16975
17008
|
COLON: Zn,
|
|
16976
17009
|
COMMA: Bc,
|
|
16977
17010
|
DOLLAR: $o,
|
|
16978
|
-
DOT:
|
|
17011
|
+
DOT: Pt,
|
|
16979
17012
|
EQUALS: Fo,
|
|
16980
17013
|
EXCLAMATION: Lc,
|
|
16981
17014
|
HYPHEN: Io,
|
|
@@ -16986,7 +17019,7 @@ var W = function() {
|
|
|
16986
17019
|
QUERY: Lo,
|
|
16987
17020
|
QUOTE: zc,
|
|
16988
17021
|
SEMI: jc,
|
|
16989
|
-
SLASH:
|
|
17022
|
+
SLASH: xt,
|
|
16990
17023
|
TILDE: zo,
|
|
16991
17024
|
UNDERSCORE: jo,
|
|
16992
17025
|
SYM: Vo
|
|
@@ -17001,18 +17034,18 @@ function yB() {
|
|
|
17001
17034
|
var x = a();
|
|
17002
17035
|
return x.t = _, x;
|
|
17003
17036
|
};
|
|
17004
|
-
vB(e, [["'", M(Oo)], ["{", M(
|
|
17037
|
+
vB(e, [["'", M(Oo)], ["{", M(Ur)], ["[", M(Jn)], ["<", M(Yn)], ["(", M(Xn)], ["}", M(ar)], ["]", M(Kr)], [">", M(Gr)], [")", M(Jr)], ["&", M(Co)], ["*", M(ko)], ["@", M(Yr)], ["`", M(To)], ["^", M(Mo)], [":", M(Zn)], [",", M(Bc)], ["$", M($o)], [".", M(Pt)], ["=", M(Fo)], ["!", M(Lc)], ["-", M(Io)], ["%", M(No)], ["|", M(Ro)], ["+", M(Po)], ["#", M(Bo)], ["?", M(Lo)], ['"', M(zc)], ["/", M(xt)], [";", M(jc)], ["~", M(zo)], ["_", M(jo)], ["\\", M(Ao)]]), w(e, `
|
|
17005
17038
|
`, M(Pc)), oe(e, ap, o), w(o, `
|
|
17006
17039
|
`, W()), oe(o, ap, o);
|
|
17007
17040
|
for (var u = 0; u < sp.length; u++)
|
|
17008
17041
|
or(e, sp[u], l(lt), a);
|
|
17009
17042
|
var c = a(), f = a(), d = a(), h = a();
|
|
17010
17043
|
or(e, "file", c, a), or(e, "ftp", f, a), or(e, "http", d, a), or(e, "mailto", h, a);
|
|
17011
|
-
var p = a(), m = M(
|
|
17044
|
+
var p = a(), m = M(pn), v = M(Rc);
|
|
17012
17045
|
w(f, "s", p), w(f, ":", m), w(d, "s", p), w(d, ":", m), w(c, ":", m), w(p, ":", m), w(h, ":", v);
|
|
17013
17046
|
for (var g = a(), y = 0; y < r.length; y++)
|
|
17014
17047
|
or(e, r[y], g, a);
|
|
17015
|
-
return w(g, ":", m), or(e, "localhost", l(
|
|
17048
|
+
return w(g, ":", m), or(e, "localhost", l(Dt), a), oe(e, Rn, t), oe(e, Fn, n), oe(e, In, n), oe(e, Nn, n), oe(t, Rn, t), oe(t, Fn, n), oe(t, In, n), oe(t, Nn, n), w(t, "-", i), w(n, "-", i), w(i, "-", i), oe(n, Rn, n), oe(n, Fn, n), oe(n, In, n), oe(n, Nn, n), oe(i, Rn, n), oe(i, Fn, n), oe(i, In, n), oe(i, Nn, n), e.jd = M(Vo), e;
|
|
17016
17049
|
}
|
|
17017
17050
|
function bB(r, e) {
|
|
17018
17051
|
for (var t = _B(e.replace(/[A-Z]/g, function(h) {
|
|
@@ -17150,19 +17183,19 @@ var jg = Ar("email", {
|
|
|
17150
17183
|
toHref: function() {
|
|
17151
17184
|
return "mailto:" + this.toString();
|
|
17152
17185
|
}
|
|
17153
|
-
}), El = Ar("text"), Vg = Ar("nl"),
|
|
17186
|
+
}), El = Ar("text"), Vg = Ar("nl"), Rt = Ar("url", {
|
|
17154
17187
|
isLink: !0,
|
|
17155
17188
|
toHref: function() {
|
|
17156
|
-
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t ===
|
|
17189
|
+
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t === pn; )
|
|
17157
17190
|
n = !0, o.push(t[s].v), s++;
|
|
17158
|
-
for (; t[s].t ===
|
|
17191
|
+
for (; t[s].t === xt; )
|
|
17159
17192
|
i = !0, o.push(t[s].v), s++;
|
|
17160
17193
|
for (; s < t.length; s++)
|
|
17161
17194
|
o.push(t[s].v);
|
|
17162
17195
|
return o = o.join(""), n || i || (o = "".concat(e, "://").concat(o)), o;
|
|
17163
17196
|
},
|
|
17164
17197
|
hasProtocol: function() {
|
|
17165
|
-
return this.tk[0].t ===
|
|
17198
|
+
return this.tk[0].t === pn;
|
|
17166
17199
|
}
|
|
17167
17200
|
}), DB = /* @__PURE__ */ Object.freeze({
|
|
17168
17201
|
__proto__: null,
|
|
@@ -17173,15 +17206,15 @@ var jg = Ar("email", {
|
|
|
17173
17206
|
Email: Sl,
|
|
17174
17207
|
Text: El,
|
|
17175
17208
|
Nl: Vg,
|
|
17176
|
-
Url:
|
|
17209
|
+
Url: Rt
|
|
17177
17210
|
});
|
|
17178
17211
|
function wB() {
|
|
17179
|
-
var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(
|
|
17180
|
-
w(r, Pc, Tr), w(r,
|
|
17181
|
-
var K = [Co, ko,
|
|
17182
|
-
w(c,
|
|
17183
|
-
var
|
|
17184
|
-
return N(o,
|
|
17212
|
+
var r = W(), e = W(), t = W(), n = W(), i = W(), o = W(), s = W(), a = M(Rt), l = W(), u = M(Rt), c = M(Rt), f = W(), d = W(), h = W(), p = W(), m = W(), v = M(Rt), g = M(Rt), y = M(Rt), D = M(Rt), _ = W(), x = W(), b = W(), C = W(), E = W(), F = W(), V = M(Sl), j = W(), Q = M(Sl), J = M(jg), st = W(), Ee = W(), Y = W(), De = W(), Tr = M(Vg);
|
|
17213
|
+
w(r, Pc, Tr), w(r, pn, e), w(r, Rc, t), w(e, xt, n), w(n, xt, i), w(r, lt, o), w(r, Ue, o), w(r, Dt, a), w(r, Pe, o), w(i, lt, c), w(i, Ue, c), w(i, Pe, c), w(i, Dt, c), w(o, Pt, s), w(E, Pt, F), w(s, lt, a), w(s, Ue, o), w(s, Pe, o), w(s, Dt, o), w(F, lt, V), w(F, Ue, E), w(F, Pe, E), w(F, Dt, E), w(a, Pt, s), w(V, Pt, F), w(a, Zn, l), w(a, xt, c), w(l, Pe, u), w(u, xt, c), w(V, Zn, j), w(j, Pe, Q);
|
|
17214
|
+
var K = [Co, ko, Yr, Ao, To, Mo, $o, Ue, Fo, Io, Dt, Pe, No, Ro, Po, Bo, pn, xt, Vo, zo, lt, jo], X = [Oo, Gr, ar, Kr, Jr, Zn, Bc, Pt, Lc, Yn, Ur, Jn, Xn, Lo, zc, jc];
|
|
17215
|
+
w(c, Ur, d), w(c, Jn, h), w(c, Yn, p), w(c, Xn, m), w(f, Ur, d), w(f, Jn, h), w(f, Yn, p), w(f, Xn, m), w(d, ar, c), w(h, Kr, c), w(p, Gr, c), w(m, Jr, c), w(v, ar, c), w(g, Kr, c), w(y, Gr, c), w(D, Jr, c), w(_, ar, c), w(x, Kr, c), w(b, Gr, c), w(C, Jr, c), N(d, K, v), N(h, K, g), N(p, K, y), N(m, K, D), N(d, X, _), N(h, X, x), N(p, X, b), N(m, X, C), N(v, K, v), N(g, K, g), N(y, K, y), N(D, K, D), N(v, X, v), N(g, X, g), N(y, X, y), N(D, X, D), N(_, K, v), N(x, K, g), N(b, K, y), N(C, K, D), N(_, X, _), N(x, X, x), N(b, X, b), N(C, X, C), N(c, K, c), N(f, K, c), N(c, X, f), N(f, X, f), w(t, lt, J), w(t, Ue, J), w(t, Pe, J), w(t, Dt, J), N(J, K, J), N(J, X, st), N(st, K, J), N(st, X, st);
|
|
17216
|
+
var St = [Co, Oo, ko, Ao, To, Mo, ar, $o, Ue, Fo, Io, Pe, Ur, No, Ro, Po, Bo, Lo, xt, Vo, zo, lt, jo];
|
|
17217
|
+
return N(o, St, Ee), w(o, Yr, Y), N(a, St, Ee), w(a, Yr, Y), N(s, St, Ee), N(Ee, St, Ee), w(Ee, Yr, Y), w(Ee, Pt, De), N(De, St, Ee), w(Y, lt, E), w(Y, Ue, E), w(Y, Pe, E), w(Y, Dt, V), r;
|
|
17185
17218
|
}
|
|
17186
17219
|
function xB(r, e, t) {
|
|
17187
17220
|
for (var n = t.length, i = 0, o = [], s = []; i < n; ) {
|
|
@@ -17250,7 +17283,7 @@ function cp(r) {
|
|
|
17250
17283
|
return t.length === 1 && t[0].isLink && (!e || t[0].t === e);
|
|
17251
17284
|
}
|
|
17252
17285
|
function AB(r) {
|
|
17253
|
-
return new
|
|
17286
|
+
return new Te({
|
|
17254
17287
|
key: new tt("autolink"),
|
|
17255
17288
|
appendTransaction: (e, t, n) => {
|
|
17256
17289
|
const i = e.some((c) => c.docChanged) && !t.doc.eq(n.doc), o = e.some((c) => c.getMeta("preventAutolink"));
|
|
@@ -17285,7 +17318,7 @@ function AB(r) {
|
|
|
17285
17318
|
});
|
|
17286
17319
|
}
|
|
17287
17320
|
function TB(r) {
|
|
17288
|
-
return new
|
|
17321
|
+
return new Te({
|
|
17289
17322
|
key: new tt("handleClickLink"),
|
|
17290
17323
|
props: {
|
|
17291
17324
|
handleClick: (e, t, n) => {
|
|
@@ -17297,7 +17330,7 @@ function TB(r) {
|
|
|
17297
17330
|
});
|
|
17298
17331
|
}
|
|
17299
17332
|
function MB(r) {
|
|
17300
|
-
return new
|
|
17333
|
+
return new Te({
|
|
17301
17334
|
key: new tt("handlePasteLink"),
|
|
17302
17335
|
props: {
|
|
17303
17336
|
handlePaste: (e, t, n) => {
|
|
@@ -17361,7 +17394,7 @@ const $B = je.create({
|
|
|
17361
17394
|
renderHTML({ HTMLAttributes: r }) {
|
|
17362
17395
|
return [
|
|
17363
17396
|
"a",
|
|
17364
|
-
|
|
17397
|
+
vn(this.options.HTMLAttributes, r),
|
|
17365
17398
|
0
|
|
17366
17399
|
];
|
|
17367
17400
|
},
|
|
@@ -17425,13 +17458,13 @@ const $B = je.create({
|
|
|
17425
17458
|
parseHTML: (r) => r.getAttribute("target") || jt.SELF
|
|
17426
17459
|
},
|
|
17427
17460
|
destination: {
|
|
17428
|
-
default:
|
|
17461
|
+
default: pt.URL,
|
|
17429
17462
|
parseHTML: (r) => {
|
|
17430
17463
|
const e = r.getAttribute("href");
|
|
17431
17464
|
if (!e.startsWith("#"))
|
|
17432
|
-
return
|
|
17465
|
+
return pt.URL;
|
|
17433
17466
|
const t = e.replace("#", "");
|
|
17434
|
-
return (this.options.pageBlocks.value || this.options.pageBlocks).find((o) => o.id === parseInt(t)) ?
|
|
17467
|
+
return (this.options.pageBlocks.value || this.options.pageBlocks).find((o) => o.id === parseInt(t)) ? pt.BLOCK : pt.URL;
|
|
17435
17468
|
}
|
|
17436
17469
|
}
|
|
17437
17470
|
};
|
|
@@ -17453,7 +17486,7 @@ const $B = je.create({
|
|
|
17453
17486
|
};
|
|
17454
17487
|
},
|
|
17455
17488
|
renderHTML({ HTMLAttributes: r }) {
|
|
17456
|
-
const e = r.destination ===
|
|
17489
|
+
const e = r.destination === pt.BLOCK ? `#${r.href}` : r.href, n = `${this.options.basePresetClass + this.options.preset.id} zw-style`, i = {
|
|
17457
17490
|
href: e,
|
|
17458
17491
|
target: r.target,
|
|
17459
17492
|
class: n
|
|
@@ -17481,7 +17514,7 @@ const $B = je.create({
|
|
|
17481
17514
|
];
|
|
17482
17515
|
},
|
|
17483
17516
|
renderHTML({ HTMLAttributes: r }) {
|
|
17484
|
-
return ["sup",
|
|
17517
|
+
return ["sup", vn(this.options.HTMLAttributes, r), 0];
|
|
17485
17518
|
},
|
|
17486
17519
|
addCommands() {
|
|
17487
17520
|
return {
|
|
@@ -17497,11 +17530,11 @@ const $B = je.create({
|
|
|
17497
17530
|
}
|
|
17498
17531
|
}), NB = IB.extend({
|
|
17499
17532
|
addKeyboardShortcuts: null
|
|
17500
|
-
}), RB =
|
|
17533
|
+
}), RB = Ot.create({
|
|
17501
17534
|
name: "doc",
|
|
17502
17535
|
topNode: !0,
|
|
17503
17536
|
content: "block+"
|
|
17504
|
-
}), PB =
|
|
17537
|
+
}), PB = Ot.create({
|
|
17505
17538
|
name: "paragraph",
|
|
17506
17539
|
priority: 1e3,
|
|
17507
17540
|
addOptions() {
|
|
@@ -17517,7 +17550,7 @@ const $B = je.create({
|
|
|
17517
17550
|
];
|
|
17518
17551
|
},
|
|
17519
17552
|
renderHTML({ HTMLAttributes: r }) {
|
|
17520
|
-
return ["p",
|
|
17553
|
+
return ["p", vn(this.options.HTMLAttributes, r), 0];
|
|
17521
17554
|
},
|
|
17522
17555
|
addCommands() {
|
|
17523
17556
|
return {
|
|
@@ -17529,7 +17562,7 @@ const $B = je.create({
|
|
|
17529
17562
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
17530
17563
|
};
|
|
17531
17564
|
}
|
|
17532
|
-
}), BB =
|
|
17565
|
+
}), BB = Ot.create({
|
|
17533
17566
|
name: "text",
|
|
17534
17567
|
group: "inline"
|
|
17535
17568
|
}), LB = te.create({
|
|
@@ -17546,7 +17579,7 @@ const $B = je.create({
|
|
|
17546
17579
|
},
|
|
17547
17580
|
addProseMirrorPlugins() {
|
|
17548
17581
|
return [
|
|
17549
|
-
new
|
|
17582
|
+
new Te({
|
|
17550
17583
|
props: {
|
|
17551
17584
|
decorations: ({ doc: r, selection: e }) => {
|
|
17552
17585
|
const t = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: n } = e, i = [];
|
|
@@ -17713,7 +17746,7 @@ class Je {
|
|
|
17713
17746
|
return u > HB && (a = VB(a, u), s -= u), new Je(a.append(o), s);
|
|
17714
17747
|
}
|
|
17715
17748
|
remapping(e, t) {
|
|
17716
|
-
let n = new
|
|
17749
|
+
let n = new Xr();
|
|
17717
17750
|
return this.items.forEach((i, o) => {
|
|
17718
17751
|
let s = i.mirrorOffset != null && o - i.mirrorOffset >= e ? n.maps.length - i.mirrorOffset : void 0;
|
|
17719
17752
|
n.appendMap(i.map, s);
|
|
@@ -17792,7 +17825,7 @@ class ct {
|
|
|
17792
17825
|
}
|
|
17793
17826
|
}
|
|
17794
17827
|
}
|
|
17795
|
-
class
|
|
17828
|
+
class Bt {
|
|
17796
17829
|
constructor(e, t, n, i) {
|
|
17797
17830
|
this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = i;
|
|
17798
17831
|
}
|
|
@@ -17802,17 +17835,17 @@ function WB(r, e, t, n) {
|
|
|
17802
17835
|
let i = t.getMeta(qt), o;
|
|
17803
17836
|
if (i)
|
|
17804
17837
|
return i.historyState;
|
|
17805
|
-
t.getMeta(UB) && (r = new
|
|
17838
|
+
t.getMeta(UB) && (r = new Bt(r.done, r.undone, null, 0));
|
|
17806
17839
|
let s = t.getMeta("appendedTransaction");
|
|
17807
17840
|
if (t.steps.length == 0)
|
|
17808
17841
|
return r;
|
|
17809
17842
|
if (s && s.getMeta(qt))
|
|
17810
|
-
return s.getMeta(qt).redo ? new
|
|
17843
|
+
return s.getMeta(qt).redo ? new Bt(r.done.addTransform(t, void 0, n, eo(e)), r.undone, up(t.mapping.maps[t.steps.length - 1]), r.prevTime) : new Bt(r.done, r.undone.addTransform(t, void 0, n, eo(e)), null, r.prevTime);
|
|
17811
17844
|
if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
17812
17845
|
let a = r.prevTime == 0 || !s && (r.prevTime < (t.time || 0) - n.newGroupDelay || !qB(t, r.prevRanges)), l = s ? Ia(r.prevRanges, t.mapping) : up(t.mapping.maps[t.steps.length - 1]);
|
|
17813
|
-
return new
|
|
17846
|
+
return new Bt(r.done.addTransform(t, a ? e.selection.getBookmark() : void 0, n, eo(e)), Je.empty, l, t.time);
|
|
17814
17847
|
} else
|
|
17815
|
-
return (o = t.getMeta("rebased")) ? new
|
|
17848
|
+
return (o = t.getMeta("rebased")) ? new Bt(r.done.rebased(t, o), r.undone.rebased(t, o), Ia(r.prevRanges, t.mapping), r.prevTime) : new Bt(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ia(r.prevRanges, t.mapping), r.prevTime);
|
|
17816
17849
|
}
|
|
17817
17850
|
function qB(r, e) {
|
|
17818
17851
|
if (!e)
|
|
@@ -17843,7 +17876,7 @@ function Ug(r, e, t, n) {
|
|
|
17843
17876
|
let i = eo(e), o = qt.get(e).spec.config, s = (n ? r.undone : r.done).popEvent(e, i);
|
|
17844
17877
|
if (!s)
|
|
17845
17878
|
return;
|
|
17846
|
-
let a = s.selection.resolve(s.transform.doc), l = (n ? r.done : r.undone).addTransform(s.transform, e.selection.getBookmark(), o, i), u = new
|
|
17879
|
+
let a = s.selection.resolve(s.transform.doc), l = (n ? r.done : r.undone).addTransform(s.transform, e.selection.getBookmark(), o, i), u = new Bt(n ? l : s.remaining, n ? s.remaining : l, null, 0);
|
|
17847
17880
|
t(s.transform.setSelection(a).setMeta(qt, { redo: n, historyState: u }).scrollIntoView());
|
|
17848
17881
|
}
|
|
17849
17882
|
let Na = !1, fp = null;
|
|
@@ -17864,11 +17897,11 @@ function KB(r = {}) {
|
|
|
17864
17897
|
return r = {
|
|
17865
17898
|
depth: r.depth || 100,
|
|
17866
17899
|
newGroupDelay: r.newGroupDelay || 500
|
|
17867
|
-
}, new
|
|
17900
|
+
}, new Te({
|
|
17868
17901
|
key: qt,
|
|
17869
17902
|
state: {
|
|
17870
17903
|
init() {
|
|
17871
|
-
return new
|
|
17904
|
+
return new Bt(Je.empty, Je.empty, null, 0);
|
|
17872
17905
|
},
|
|
17873
17906
|
apply(e, t, n) {
|
|
17874
17907
|
return WB(t, n, e, r);
|
|
@@ -17931,7 +17964,7 @@ const Kg = (r, e) => {
|
|
|
17931
17964
|
[e]: { ...n, ...i, ...t }
|
|
17932
17965
|
});
|
|
17933
17966
|
}),
|
|
17934
|
-
getBlockAttributes: O(({ editor: r }, e, t) =>
|
|
17967
|
+
getBlockAttributes: O(({ editor: r }, e, t) => A(() => {
|
|
17935
17968
|
var i;
|
|
17936
17969
|
let n = Object.assign({}, t || {});
|
|
17937
17970
|
for (const o of ee.blocks)
|
|
@@ -17940,31 +17973,31 @@ const Kg = (r, e) => {
|
|
|
17940
17973
|
}))
|
|
17941
17974
|
};
|
|
17942
17975
|
}
|
|
17943
|
-
}), YB =
|
|
17976
|
+
}), YB = At({
|
|
17944
17977
|
find: /"/,
|
|
17945
17978
|
replace: "\u201D"
|
|
17946
|
-
}), XB =
|
|
17979
|
+
}), XB = At({
|
|
17947
17980
|
find: /'/,
|
|
17948
17981
|
replace: "\u2019"
|
|
17949
|
-
}), ZB =
|
|
17982
|
+
}), ZB = At({
|
|
17950
17983
|
find: /\(c\)/i,
|
|
17951
17984
|
replace: "\xA9"
|
|
17952
|
-
}), QB =
|
|
17985
|
+
}), QB = At({
|
|
17953
17986
|
find: /\.\.\./,
|
|
17954
17987
|
replace: "\u2026"
|
|
17955
|
-
}), eL =
|
|
17988
|
+
}), eL = At({
|
|
17956
17989
|
find: /--/,
|
|
17957
17990
|
replace: "\u2014"
|
|
17958
|
-
}), tL =
|
|
17991
|
+
}), tL = At({
|
|
17959
17992
|
find: /(?:^|[\s{[(<'"\u2018\u201C])(")/,
|
|
17960
17993
|
replace: "\u201C"
|
|
17961
|
-
}), rL =
|
|
17994
|
+
}), rL = At({
|
|
17962
17995
|
find: /(?:^|[\s{[(<'"\u2018\u201C])(')/,
|
|
17963
17996
|
replace: "\u2018"
|
|
17964
|
-
}), nL =
|
|
17997
|
+
}), nL = At({
|
|
17965
17998
|
find: /\(r\)/i,
|
|
17966
17999
|
replace: "\xAE"
|
|
17967
|
-
}), iL =
|
|
18000
|
+
}), iL = At({
|
|
17968
18001
|
find: /\(tm\)/i,
|
|
17969
18002
|
replace: "\u2122"
|
|
17970
18003
|
}), oL = te.create({
|
|
@@ -18028,7 +18061,7 @@ const Kg = (r, e) => {
|
|
|
18028
18061
|
class aL {
|
|
18029
18062
|
static create(e) {
|
|
18030
18063
|
const t = new this(e || {});
|
|
18031
|
-
return new
|
|
18064
|
+
return new Te({
|
|
18032
18065
|
key: new tt(this.name),
|
|
18033
18066
|
props: t.buildProps()
|
|
18034
18067
|
});
|
|
@@ -18043,7 +18076,7 @@ class aL {
|
|
|
18043
18076
|
class lL extends aL {
|
|
18044
18077
|
buildProps() {
|
|
18045
18078
|
return {
|
|
18046
|
-
transformPastedHTML:
|
|
18079
|
+
transformPastedHTML: wt.normalize,
|
|
18047
18080
|
handlePaste: this._handlePaste.bind(this)
|
|
18048
18081
|
};
|
|
18049
18082
|
}
|
|
@@ -18240,11 +18273,11 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18240
18273
|
},
|
|
18241
18274
|
emits: [
|
|
18242
18275
|
"input",
|
|
18243
|
-
"
|
|
18276
|
+
"update-favorite-colors"
|
|
18244
18277
|
],
|
|
18245
18278
|
setup(r, { emit: e }) {
|
|
18246
|
-
|
|
18247
|
-
const t = r.fonts.map((h) => new dL(h)), n = q(null), i = q(null), o =
|
|
18279
|
+
Ct.use(r.window);
|
|
18280
|
+
const t = r.fonts.map((h) => new dL(h)), n = q(null), i = q(null), o = A(() => {
|
|
18248
18281
|
var h;
|
|
18249
18282
|
return ((h = i.value) == null ? void 0 : h.$el) || document.body;
|
|
18250
18283
|
}), s = QP({
|
|
@@ -18275,7 +18308,7 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18275
18308
|
listRef: fe(r, "favoriteColors"),
|
|
18276
18309
|
triggerUpdate: (h) => e("update-favorite-colors", h)
|
|
18277
18310
|
});
|
|
18278
|
-
return
|
|
18311
|
+
return ft(L.EDITOR, c), ft(L.FONTS, t), ft(L.FONT_SIZES, f), ft(L.LOCAL_STORAGE, new oI(localStorage)), ft(L.FAVORITE_COLORS, d), ft(L.PAGE_BLOCKS, u), {
|
|
18279
18312
|
editor: c,
|
|
18280
18313
|
toolbarRef: n,
|
|
18281
18314
|
wysiwygRef: i,
|