@opengis/richtext 0.0.39 → 0.0.41
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/richtext.js +359 -356
- package/dist/richtext.umd.cjs +29 -29
- package/package.json +1 -1
package/dist/richtext.js
CHANGED
|
@@ -401,11 +401,11 @@ class j {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
j.empty = new j([], 0);
|
|
404
|
-
const
|
|
404
|
+
const el = { index: 0, offset: 0 };
|
|
405
405
|
function fs(t, e) {
|
|
406
|
-
return
|
|
406
|
+
return el.index = t, el.offset = e, el;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function zs(t, e) {
|
|
409
409
|
if (t === e)
|
|
410
410
|
return !0;
|
|
411
411
|
if (!(t && typeof t == "object") || !(e && typeof e == "object"))
|
|
@@ -417,11 +417,11 @@ function Vs(t, e) {
|
|
|
417
417
|
if (t.length != e.length)
|
|
418
418
|
return !1;
|
|
419
419
|
for (let r = 0; r < t.length; r++)
|
|
420
|
-
if (!
|
|
420
|
+
if (!zs(t[r], e[r]))
|
|
421
421
|
return !1;
|
|
422
422
|
} else {
|
|
423
423
|
for (let r in t)
|
|
424
|
-
if (!(r in e) || !
|
|
424
|
+
if (!(r in e) || !zs(t[r], e[r]))
|
|
425
425
|
return !1;
|
|
426
426
|
for (let r in e)
|
|
427
427
|
if (!(r in t))
|
|
@@ -483,7 +483,7 @@ let je = class Ll {
|
|
|
483
483
|
another mark.
|
|
484
484
|
*/
|
|
485
485
|
eq(e) {
|
|
486
|
-
return this == e || this.type == e.type &&
|
|
486
|
+
return this == e || this.type == e.type && zs(this.attrs, e.attrs);
|
|
487
487
|
}
|
|
488
488
|
/**
|
|
489
489
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -535,7 +535,7 @@ let je = class Ll {
|
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
je.none = [];
|
|
538
|
-
class
|
|
538
|
+
class Hs extends Error {
|
|
539
539
|
}
|
|
540
540
|
class oe {
|
|
541
541
|
/**
|
|
@@ -638,9 +638,9 @@ function vf(t, e, n, r) {
|
|
|
638
638
|
}
|
|
639
639
|
function ig(t, e, n) {
|
|
640
640
|
if (n.openStart > t.depth)
|
|
641
|
-
throw new
|
|
641
|
+
throw new Hs("Inserted content deeper than insertion position");
|
|
642
642
|
if (t.depth - n.openStart != e.depth - n.openEnd)
|
|
643
|
-
throw new
|
|
643
|
+
throw new Hs("Inconsistent open depths");
|
|
644
644
|
return bf(t, e, n, 0);
|
|
645
645
|
}
|
|
646
646
|
function bf(t, e, n, r) {
|
|
@@ -656,11 +656,11 @@ function bf(t, e, n, r) {
|
|
|
656
656
|
let { start: i, end: l } = lg(n, t);
|
|
657
657
|
return _r(s, wf(t, i, l, e, r));
|
|
658
658
|
}
|
|
659
|
-
else return _r(s,
|
|
659
|
+
else return _r(s, js(t, e, r));
|
|
660
660
|
}
|
|
661
661
|
function xf(t, e) {
|
|
662
662
|
if (!e.type.compatibleContent(t.type))
|
|
663
|
-
throw new
|
|
663
|
+
throw new Hs("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
664
664
|
}
|
|
665
665
|
function Ol(t, e, n) {
|
|
666
666
|
let r = t.node(n);
|
|
@@ -682,13 +682,13 @@ function _r(t, e) {
|
|
|
682
682
|
}
|
|
683
683
|
function wf(t, e, n, r, o) {
|
|
684
684
|
let s = t.depth > o && Ol(t, e, o + 1), i = r.depth > o && Ol(n, r, o + 1), l = [];
|
|
685
|
-
return Mo(null, t, o, l), s && i && e.index(o) == n.index(o) ? (xf(s, i), Sr(_r(s, wf(t, e, n, r, o + 1)), l)) : (s && Sr(_r(s,
|
|
685
|
+
return Mo(null, t, o, l), s && i && e.index(o) == n.index(o) ? (xf(s, i), Sr(_r(s, wf(t, e, n, r, o + 1)), l)) : (s && Sr(_r(s, js(t, e, o + 1)), l), Mo(e, n, o, l), i && Sr(_r(i, js(n, r, o + 1)), l)), Mo(r, null, o, l), new j(l);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function js(t, e, n) {
|
|
688
688
|
let r = [];
|
|
689
689
|
if (Mo(null, t, n, r), t.depth > n) {
|
|
690
690
|
let o = Ol(t, e, n + 1);
|
|
691
|
-
Sr(_r(o,
|
|
691
|
+
Sr(_r(o, js(t, e, n + 1)), r);
|
|
692
692
|
}
|
|
693
693
|
return Mo(e, null, n, r), new j(r);
|
|
694
694
|
}
|
|
@@ -886,7 +886,7 @@ class Vo {
|
|
|
886
886
|
return e.blockRange(this);
|
|
887
887
|
for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
|
|
888
888
|
if (e.pos <= this.end(r) && (!n || n(this.node(r))))
|
|
889
|
-
return new
|
|
889
|
+
return new Us(this, e, r);
|
|
890
890
|
return null;
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
@@ -954,7 +954,7 @@ class ag {
|
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
const cg = 12, Dc = /* @__PURE__ */ new WeakMap();
|
|
957
|
-
class
|
|
957
|
+
class Us {
|
|
958
958
|
/**
|
|
959
959
|
Construct a node range. `$from` and `$to` should point into the
|
|
960
960
|
same node until at least the given `depth`, since a node range
|
|
@@ -1113,7 +1113,7 @@ let or = class Il {
|
|
|
1113
1113
|
attributes, and marks.
|
|
1114
1114
|
*/
|
|
1115
1115
|
hasMarkup(e, n, r) {
|
|
1116
|
-
return this.type == e &&
|
|
1116
|
+
return this.type == e && zs(this.attrs, n || e.defaultAttrs || ug) && je.sameSet(this.marks, r || je.none);
|
|
1117
1117
|
}
|
|
1118
1118
|
/**
|
|
1119
1119
|
Create a new node with the same markup as this node, containing
|
|
@@ -1365,7 +1365,7 @@ let or = class Il {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
};
|
|
1367
1367
|
or.prototype.text = void 0;
|
|
1368
|
-
class
|
|
1368
|
+
class Ws extends or {
|
|
1369
1369
|
/**
|
|
1370
1370
|
@internal
|
|
1371
1371
|
*/
|
|
@@ -1387,10 +1387,10 @@ class Us extends or {
|
|
|
1387
1387
|
return this.text.length;
|
|
1388
1388
|
}
|
|
1389
1389
|
mark(e) {
|
|
1390
|
-
return e == this.marks ? this : new
|
|
1390
|
+
return e == this.marks ? this : new Ws(this.type, this.attrs, this.text, e);
|
|
1391
1391
|
}
|
|
1392
1392
|
withText(e) {
|
|
1393
|
-
return e == this.text ? this : new
|
|
1393
|
+
return e == this.text ? this : new Ws(this.type, this.attrs, e, this.marks);
|
|
1394
1394
|
}
|
|
1395
1395
|
cut(e = 0, n = this.text.length) {
|
|
1396
1396
|
return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n));
|
|
@@ -1987,7 +1987,7 @@ class wg {
|
|
|
1987
1987
|
return !this.hasDefault;
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
class
|
|
1990
|
+
class Oi {
|
|
1991
1991
|
/**
|
|
1992
1992
|
@internal
|
|
1993
1993
|
*/
|
|
@@ -2009,7 +2009,7 @@ class Li {
|
|
|
2009
2009
|
*/
|
|
2010
2010
|
static compile(e, n) {
|
|
2011
2011
|
let r = /* @__PURE__ */ Object.create(null), o = 0;
|
|
2012
|
-
return e.forEach((s, i) => r[s] = new
|
|
2012
|
+
return e.forEach((s, i) => r[s] = new Oi(s, o++, n, i)), r;
|
|
2013
2013
|
}
|
|
2014
2014
|
/**
|
|
2015
2015
|
When there is a mark of this type in the given set, a new set
|
|
@@ -2051,7 +2051,7 @@ class Nf {
|
|
|
2051
2051
|
let n = this.spec = {};
|
|
2052
2052
|
for (let o in e)
|
|
2053
2053
|
n[o] = e[o];
|
|
2054
|
-
n.nodes = kt.from(e.nodes), n.marks = kt.from(e.marks || {}), this.nodes = $c.compile(this.spec.nodes, this), this.marks =
|
|
2054
|
+
n.nodes = kt.from(e.nodes), n.marks = kt.from(e.marks || {}), this.nodes = $c.compile(this.spec.nodes, this), this.marks = Oi.compile(this.spec.marks, this);
|
|
2055
2055
|
let r = /* @__PURE__ */ Object.create(null);
|
|
2056
2056
|
for (let o in this.nodes) {
|
|
2057
2057
|
if (o in this.marks)
|
|
@@ -2093,7 +2093,7 @@ class Nf {
|
|
|
2093
2093
|
*/
|
|
2094
2094
|
text(e, n) {
|
|
2095
2095
|
let r = this.nodes.text;
|
|
2096
|
-
return new
|
|
2096
|
+
return new Ws(r, r.defaultAttrs, e, je.setFrom(n));
|
|
2097
2097
|
}
|
|
2098
2098
|
/**
|
|
2099
2099
|
Create a mark with the given type and attributes.
|
|
@@ -2652,7 +2652,7 @@ class zr {
|
|
|
2652
2652
|
nodes.
|
|
2653
2653
|
*/
|
|
2654
2654
|
serializeFragment(e, n = {}, r) {
|
|
2655
|
-
r || (r =
|
|
2655
|
+
r || (r = tl(n).createDocumentFragment());
|
|
2656
2656
|
let o = r, s = [];
|
|
2657
2657
|
return e.forEach((i) => {
|
|
2658
2658
|
if (s.length || i.marks.length) {
|
|
@@ -2681,7 +2681,7 @@ class zr {
|
|
|
2681
2681
|
@internal
|
|
2682
2682
|
*/
|
|
2683
2683
|
serializeNodeInner(e, n) {
|
|
2684
|
-
let { dom: r, contentDOM: o } =
|
|
2684
|
+
let { dom: r, contentDOM: o } = Is(tl(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
2685
2685
|
if (o) {
|
|
2686
2686
|
if (e.isLeaf)
|
|
2687
2687
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -2709,10 +2709,10 @@ class zr {
|
|
|
2709
2709
|
*/
|
|
2710
2710
|
serializeMark(e, n, r = {}) {
|
|
2711
2711
|
let o = this.marks[e.type.name];
|
|
2712
|
-
return o &&
|
|
2712
|
+
return o && Is(tl(r), o(e, n), null, e.attrs);
|
|
2713
2713
|
}
|
|
2714
2714
|
static renderSpec(e, n, r = null, o) {
|
|
2715
|
-
return
|
|
2715
|
+
return Is(e, n, r, o);
|
|
2716
2716
|
}
|
|
2717
2717
|
/**
|
|
2718
2718
|
Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
|
|
@@ -2744,7 +2744,7 @@ function jc(t) {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
return e;
|
|
2746
2746
|
}
|
|
2747
|
-
function
|
|
2747
|
+
function tl(t) {
|
|
2748
2748
|
return t.document || window.document;
|
|
2749
2749
|
}
|
|
2750
2750
|
const Uc = /* @__PURE__ */ new WeakMap();
|
|
@@ -2768,7 +2768,7 @@ function Mg(t) {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
return n(t), e;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function Is(t, e, n, r) {
|
|
2772
2772
|
if (typeof e == "string")
|
|
2773
2773
|
return { dom: t.createTextNode(e) };
|
|
2774
2774
|
if (e.nodeType != null)
|
|
@@ -2798,7 +2798,7 @@ function Os(t, e, n, r) {
|
|
|
2798
2798
|
throw new RangeError("Content hole must be the only child of its parent node");
|
|
2799
2799
|
return { dom: a, contentDOM: a };
|
|
2800
2800
|
} else {
|
|
2801
|
-
let { dom: p, contentDOM: h } =
|
|
2801
|
+
let { dom: p, contentDOM: h } = Is(t, f, n, r);
|
|
2802
2802
|
if (a.appendChild(p), h) {
|
|
2803
2803
|
if (l)
|
|
2804
2804
|
throw new RangeError("Multiple content holes");
|
|
@@ -2818,7 +2818,7 @@ function Wc(t) {
|
|
|
2818
2818
|
function Ng(t) {
|
|
2819
2819
|
return (t - (t & If)) / Df;
|
|
2820
2820
|
}
|
|
2821
|
-
const Rf = 1, Pf = 2,
|
|
2821
|
+
const Rf = 1, Pf = 2, Ds = 4, $f = 8;
|
|
2822
2822
|
class Pl {
|
|
2823
2823
|
/**
|
|
2824
2824
|
@internal
|
|
@@ -2838,13 +2838,13 @@ class Pl {
|
|
|
2838
2838
|
Tells you whether the token before the mapped position was deleted.
|
|
2839
2839
|
*/
|
|
2840
2840
|
get deletedBefore() {
|
|
2841
|
-
return (this.delInfo & (Rf |
|
|
2841
|
+
return (this.delInfo & (Rf | Ds)) > 0;
|
|
2842
2842
|
}
|
|
2843
2843
|
/**
|
|
2844
2844
|
True when the token after the mapped position was deleted.
|
|
2845
2845
|
*/
|
|
2846
2846
|
get deletedAfter() {
|
|
2847
|
-
return (this.delInfo & (Pf |
|
|
2847
|
+
return (this.delInfo & (Pf | Ds)) > 0;
|
|
2848
2848
|
}
|
|
2849
2849
|
/**
|
|
2850
2850
|
Tells whether any of the steps mapped through deletes across the
|
|
@@ -2852,7 +2852,7 @@ class Pl {
|
|
|
2852
2852
|
position).
|
|
2853
2853
|
*/
|
|
2854
2854
|
get deletedAcross() {
|
|
2855
|
-
return (this.delInfo &
|
|
2855
|
+
return (this.delInfo & Ds) > 0;
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
2858
|
class Ut {
|
|
@@ -2895,7 +2895,7 @@ class Ut {
|
|
|
2895
2895
|
let f = c ? e == a ? -1 : e == d ? 1 : n : n, p = a + o + (f < 0 ? 0 : u);
|
|
2896
2896
|
if (r)
|
|
2897
2897
|
return p;
|
|
2898
|
-
let h = e == (n < 0 ? a : d) ? null : Ag(l / 3, e - a), g = e == a ? Pf : e == d ? Rf :
|
|
2898
|
+
let h = e == (n < 0 ? a : d) ? null : Ag(l / 3, e - a), g = e == a ? Pf : e == d ? Rf : Ds;
|
|
2899
2899
|
return (n < 0 ? e != a : e != d) && (g |= $f), new Pl(p, g, h);
|
|
2900
2900
|
}
|
|
2901
2901
|
o += u - c;
|
|
@@ -3059,7 +3059,7 @@ class Ho {
|
|
|
3059
3059
|
return r ? e : new Pl(e, o, null);
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
|
-
const
|
|
3062
|
+
const nl = /* @__PURE__ */ Object.create(null);
|
|
3063
3063
|
class Ot {
|
|
3064
3064
|
/**
|
|
3065
3065
|
Get the step map that represents the changes made by this step,
|
|
@@ -3084,7 +3084,7 @@ class Ot {
|
|
|
3084
3084
|
static fromJSON(e, n) {
|
|
3085
3085
|
if (!n || !n.stepType)
|
|
3086
3086
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
3087
|
-
let r =
|
|
3087
|
+
let r = nl[n.stepType];
|
|
3088
3088
|
if (!r)
|
|
3089
3089
|
throw new RangeError(`No step type ${n.stepType} defined`);
|
|
3090
3090
|
return r.fromJSON(e, n);
|
|
@@ -3096,9 +3096,9 @@ class Ot {
|
|
|
3096
3096
|
that's unlikely to clash with steps from other modules.
|
|
3097
3097
|
*/
|
|
3098
3098
|
static jsonID(e, n) {
|
|
3099
|
-
if (e in
|
|
3099
|
+
if (e in nl)
|
|
3100
3100
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
3101
|
-
return
|
|
3101
|
+
return nl[e] = n, n.prototype.jsonID = e, n;
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
3104
|
class ct {
|
|
@@ -3129,7 +3129,7 @@ class ct {
|
|
|
3129
3129
|
try {
|
|
3130
3130
|
return ct.ok(e.replace(n, r, o));
|
|
3131
3131
|
} catch (s) {
|
|
3132
|
-
if (s instanceof
|
|
3132
|
+
if (s instanceof Hs)
|
|
3133
3133
|
return ct.fail(s.message);
|
|
3134
3134
|
throw s;
|
|
3135
3135
|
}
|
|
@@ -3445,7 +3445,7 @@ function Og(t, e, n, r) {
|
|
|
3445
3445
|
return;
|
|
3446
3446
|
s++;
|
|
3447
3447
|
let a = null;
|
|
3448
|
-
if (r instanceof
|
|
3448
|
+
if (r instanceof Oi) {
|
|
3449
3449
|
let c = i.marks, u;
|
|
3450
3450
|
for (; u = r.isInSet(c); )
|
|
3451
3451
|
(a || (a = [])).push(u), c = u.removeFromSet(c);
|
|
@@ -3644,7 +3644,7 @@ function Hg(t, e) {
|
|
|
3644
3644
|
function Vf(t, e) {
|
|
3645
3645
|
return !!(t && e && !t.isLeaf && Hg(t, e));
|
|
3646
3646
|
}
|
|
3647
|
-
function
|
|
3647
|
+
function Ii(t, e, n = -1) {
|
|
3648
3648
|
let r = t.resolve(e);
|
|
3649
3649
|
for (let o = r.depth; ; o--) {
|
|
3650
3650
|
let s, i, l = r.index(o);
|
|
@@ -3717,7 +3717,7 @@ function zf(t, e, n) {
|
|
|
3717
3717
|
}
|
|
3718
3718
|
return null;
|
|
3719
3719
|
}
|
|
3720
|
-
function
|
|
3720
|
+
function Di(t, e, n = e, r = oe.empty) {
|
|
3721
3721
|
if (e == n && !r.size)
|
|
3722
3722
|
return null;
|
|
3723
3723
|
let o = t.resolve(e), s = t.resolve(n);
|
|
@@ -3772,7 +3772,7 @@ class Wg {
|
|
|
3772
3772
|
for (let n = 1; n <= 2; n++)
|
|
3773
3773
|
for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
3774
3774
|
let o, s = null;
|
|
3775
|
-
r ? (s =
|
|
3775
|
+
r ? (s = rl(this.unplaced.content, r - 1).firstChild, o = s.content) : o = this.unplaced.content;
|
|
3776
3776
|
let i = o.firstChild;
|
|
3777
3777
|
for (let l = this.depth; l >= 0; l--) {
|
|
3778
3778
|
let { type: a, match: c } = this.frontier[l], u, d = null;
|
|
@@ -3786,11 +3786,11 @@ class Wg {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
3788
|
openMore() {
|
|
3789
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, o =
|
|
3789
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, o = rl(e, n);
|
|
3790
3790
|
return !o.childCount || o.firstChild.isLeaf ? !1 : (this.unplaced = new oe(e, n + 1, Math.max(r, o.size + n >= e.size - r ? n + 1 : 0)), !0);
|
|
3791
3791
|
}
|
|
3792
3792
|
dropNode() {
|
|
3793
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, o =
|
|
3793
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, o = rl(e, n);
|
|
3794
3794
|
if (o.childCount <= 1 && n > 0) {
|
|
3795
3795
|
let s = e.size - n <= n + o.size;
|
|
3796
3796
|
this.unplaced = new oe(Eo(e, n - 1, 1), n - 1, s ? n - 1 : r);
|
|
@@ -3831,7 +3831,7 @@ class Wg {
|
|
|
3831
3831
|
if (!this.$to.parent.isTextblock)
|
|
3832
3832
|
return -1;
|
|
3833
3833
|
let e = this.frontier[this.depth], n;
|
|
3834
|
-
if (!e.type.isTextblock || !
|
|
3834
|
+
if (!e.type.isTextblock || !ol(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
3835
3835
|
return -1;
|
|
3836
3836
|
let { depth: r } = this.$to, o = this.$to.after(r);
|
|
3837
3837
|
for (; r > 1 && o == this.$to.end(--r); )
|
|
@@ -3840,10 +3840,10 @@ class Wg {
|
|
|
3840
3840
|
}
|
|
3841
3841
|
findCloseLevel(e) {
|
|
3842
3842
|
e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
|
|
3843
|
-
let { match: r, type: o } = this.frontier[n], s = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), i =
|
|
3843
|
+
let { match: r, type: o } = this.frontier[n], s = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), i = ol(e, n, o, r, s);
|
|
3844
3844
|
if (i) {
|
|
3845
3845
|
for (let l = n - 1; l >= 0; l--) {
|
|
3846
|
-
let { match: a, type: c } = this.frontier[l], u =
|
|
3846
|
+
let { match: a, type: c } = this.frontier[l], u = ol(e, l, c, a, !0);
|
|
3847
3847
|
if (!u || u.childCount)
|
|
3848
3848
|
continue e;
|
|
3849
3849
|
}
|
|
@@ -3879,7 +3879,7 @@ function Eo(t, e, n) {
|
|
|
3879
3879
|
function So(t, e, n) {
|
|
3880
3880
|
return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(So(t.lastChild.content, e - 1, n)));
|
|
3881
3881
|
}
|
|
3882
|
-
function
|
|
3882
|
+
function rl(t, e) {
|
|
3883
3883
|
for (let n = 0; n < e; n++)
|
|
3884
3884
|
t = t.firstChild.content;
|
|
3885
3885
|
return t;
|
|
@@ -3890,7 +3890,7 @@ function jf(t, e, n) {
|
|
|
3890
3890
|
let r = t.content;
|
|
3891
3891
|
return e > 1 && (r = r.replaceChild(0, jf(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(j.empty, !0)))), t.copy(r);
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function ol(t, e, n, r, o) {
|
|
3894
3894
|
let s = t.node(e), i = o ? t.indexAfter(e) : t.index(e);
|
|
3895
3895
|
if (i == s.childCount && !n.compatibleContent(s.type))
|
|
3896
3896
|
return null;
|
|
@@ -4125,7 +4125,7 @@ class Da {
|
|
|
4125
4125
|
given `slice`.
|
|
4126
4126
|
*/
|
|
4127
4127
|
replace(e, n = e, r = oe.empty) {
|
|
4128
|
-
let o =
|
|
4128
|
+
let o = Di(this.doc, e, n, r);
|
|
4129
4129
|
return o && this.step(o), this;
|
|
4130
4130
|
}
|
|
4131
4131
|
/**
|
|
@@ -4301,7 +4301,7 @@ class Da {
|
|
|
4301
4301
|
return Oa(this, e, n, r), this;
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
|
-
const
|
|
4304
|
+
const sl = /* @__PURE__ */ Object.create(null);
|
|
4305
4305
|
class ge {
|
|
4306
4306
|
/**
|
|
4307
4307
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -4437,7 +4437,7 @@ class ge {
|
|
|
4437
4437
|
static fromJSON(e, n) {
|
|
4438
4438
|
if (!n || !n.type)
|
|
4439
4439
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
4440
|
-
let r =
|
|
4440
|
+
let r = sl[n.type];
|
|
4441
4441
|
if (!r)
|
|
4442
4442
|
throw new RangeError(`No selection type ${n.type} defined`);
|
|
4443
4443
|
return r.fromJSON(e, n);
|
|
@@ -4449,9 +4449,9 @@ class ge {
|
|
|
4449
4449
|
clash with classes from other modules.
|
|
4450
4450
|
*/
|
|
4451
4451
|
static jsonID(e, n) {
|
|
4452
|
-
if (e in
|
|
4452
|
+
if (e in sl)
|
|
4453
4453
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
4454
|
-
return
|
|
4454
|
+
return sl[e] = n, n.prototype.jsonID = e, n;
|
|
4455
4455
|
}
|
|
4456
4456
|
/**
|
|
4457
4457
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -4510,7 +4510,7 @@ class me extends ge {
|
|
|
4510
4510
|
return e instanceof me && e.anchor == this.anchor && e.head == this.head;
|
|
4511
4511
|
}
|
|
4512
4512
|
getBookmark() {
|
|
4513
|
-
return new
|
|
4513
|
+
return new Ri(this.anchor, this.head);
|
|
4514
4514
|
}
|
|
4515
4515
|
toJSON() {
|
|
4516
4516
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -4551,12 +4551,12 @@ class me extends ge {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
}
|
|
4553
4553
|
ge.jsonID("text", me);
|
|
4554
|
-
class
|
|
4554
|
+
class Ri {
|
|
4555
4555
|
constructor(e, n) {
|
|
4556
4556
|
this.anchor = e, this.head = n;
|
|
4557
4557
|
}
|
|
4558
4558
|
map(e) {
|
|
4559
|
-
return new
|
|
4559
|
+
return new Ri(e.map(this.anchor), e.map(this.head));
|
|
4560
4560
|
}
|
|
4561
4561
|
resolve(e) {
|
|
4562
4562
|
return me.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -4617,7 +4617,7 @@ class Ra {
|
|
|
4617
4617
|
}
|
|
4618
4618
|
map(e) {
|
|
4619
4619
|
let { deleted: n, pos: r } = e.mapResult(this.anchor);
|
|
4620
|
-
return n ? new
|
|
4620
|
+
return n ? new Ri(r, r) : new Ra(r);
|
|
4621
4621
|
}
|
|
4622
4622
|
resolve(e) {
|
|
4623
4623
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -4890,7 +4890,7 @@ const Qg = [
|
|
|
4890
4890
|
}
|
|
4891
4891
|
})
|
|
4892
4892
|
];
|
|
4893
|
-
class
|
|
4893
|
+
class il {
|
|
4894
4894
|
constructor(e, n) {
|
|
4895
4895
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Qg.slice(), n && n.forEach((r) => {
|
|
4896
4896
|
if (this.pluginsByKey[r.key])
|
|
@@ -4991,7 +4991,7 @@ class Xr {
|
|
|
4991
4991
|
Create a new state.
|
|
4992
4992
|
*/
|
|
4993
4993
|
static create(e) {
|
|
4994
|
-
let n = new
|
|
4994
|
+
let n = new il(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Xr(n);
|
|
4995
4995
|
for (let o = 0; o < n.fields.length; o++)
|
|
4996
4996
|
r[n.fields[o].name] = n.fields[o].init(e, r);
|
|
4997
4997
|
return r;
|
|
@@ -5005,7 +5005,7 @@ class Xr {
|
|
|
5005
5005
|
configuration object..
|
|
5006
5006
|
*/
|
|
5007
5007
|
reconfigure(e) {
|
|
5008
|
-
let n = new
|
|
5008
|
+
let n = new il(this.schema, e.plugins), r = n.fields, o = new Xr(n);
|
|
5009
5009
|
for (let s = 0; s < r.length; s++) {
|
|
5010
5010
|
let i = r[s].name;
|
|
5011
5011
|
o[i] = this.hasOwnProperty(i) ? this[i] : r[s].init(e, o);
|
|
@@ -5042,7 +5042,7 @@ class Xr {
|
|
|
5042
5042
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
5043
5043
|
if (!e.schema)
|
|
5044
5044
|
throw new RangeError("Required config field 'schema' missing");
|
|
5045
|
-
let o = new
|
|
5045
|
+
let o = new il(e.schema, e.plugins), s = new Xr(o);
|
|
5046
5046
|
return o.fields.forEach((i) => {
|
|
5047
5047
|
if (i.name == "doc")
|
|
5048
5048
|
s.doc = or.fromJSON(e.schema, n.doc);
|
|
@@ -5085,9 +5085,9 @@ class Qe {
|
|
|
5085
5085
|
return e[this.key];
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
|
-
const
|
|
5088
|
+
const ll = /* @__PURE__ */ Object.create(null);
|
|
5089
5089
|
function Gf(t) {
|
|
5090
|
-
return t in
|
|
5090
|
+
return t in ll ? t + "$" + ++ll[t] : (ll[t] = 0, t + "$");
|
|
5091
5091
|
}
|
|
5092
5092
|
class it {
|
|
5093
5093
|
/**
|
|
@@ -5196,7 +5196,7 @@ function is(t) {
|
|
|
5196
5196
|
;
|
|
5197
5197
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
5198
5198
|
}
|
|
5199
|
-
const
|
|
5199
|
+
const Pi = function(t) {
|
|
5200
5200
|
return t.focusNode && Ir(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
5201
5201
|
};
|
|
5202
5202
|
function br(t, e) {
|
|
@@ -5461,14 +5461,14 @@ function tp(t, e, n) {
|
|
|
5461
5461
|
if (s == null && o && (n < 0 || o == rn(r))) {
|
|
5462
5462
|
let a = r.childNodes[o - 1];
|
|
5463
5463
|
if (a.nodeType == 1)
|
|
5464
|
-
return
|
|
5464
|
+
return al(a.getBoundingClientRect(), !1);
|
|
5465
5465
|
}
|
|
5466
5466
|
if (s == null && o < rn(r)) {
|
|
5467
5467
|
let a = r.childNodes[o];
|
|
5468
5468
|
if (a.nodeType == 1)
|
|
5469
|
-
return
|
|
5469
|
+
return al(a.getBoundingClientRect(), !0);
|
|
5470
5470
|
}
|
|
5471
|
-
return
|
|
5471
|
+
return al(r.getBoundingClientRect(), n >= 0);
|
|
5472
5472
|
}
|
|
5473
5473
|
if (s == null && o && (n < 0 || o == rn(r))) {
|
|
5474
5474
|
let a = r.childNodes[o - 1], c = a.nodeType == 3 ? Bn(a, rn(a) - (i ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
@@ -5491,7 +5491,7 @@ function xo(t, e) {
|
|
|
5491
5491
|
let n = e ? t.left : t.right;
|
|
5492
5492
|
return { top: t.top, bottom: t.bottom, left: n, right: n };
|
|
5493
5493
|
}
|
|
5494
|
-
function
|
|
5494
|
+
function al(t, e) {
|
|
5495
5495
|
if (t.height == 0)
|
|
5496
5496
|
return t;
|
|
5497
5497
|
let n = e ? t.top : t.bottom;
|
|
@@ -6028,7 +6028,7 @@ class ir extends as {
|
|
|
6028
6028
|
} else u || ({ dom: u, contentDOM: d } = zr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
6029
6029
|
!d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
|
|
6030
6030
|
let f = u;
|
|
6031
|
-
return u = lp(u, r, n), c ? a = new S0(e, n, r, o, u, d || null, f, c, s, i + 1) : n.isText ? new
|
|
6031
|
+
return u = lp(u, r, n), c ? a = new S0(e, n, r, o, u, d || null, f, c, s, i + 1) : n.isText ? new $i(e, n, r, o, u, f, s) : new ir(e, n, r, o, u, d || null, f, s, i + 1);
|
|
6032
6032
|
}
|
|
6033
6033
|
parseRule() {
|
|
6034
6034
|
if (this.node.type.spec.reparseInView)
|
|
@@ -6051,7 +6051,7 @@ class ir extends as {
|
|
|
6051
6051
|
return e;
|
|
6052
6052
|
}
|
|
6053
6053
|
matchesNode(e, n, r) {
|
|
6054
|
-
return this.dirty == sn && e.eq(this.node) &&
|
|
6054
|
+
return this.dirty == sn && e.eq(this.node) && Ks(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
6055
6055
|
}
|
|
6056
6056
|
get size() {
|
|
6057
6057
|
return this.node.nodeSize;
|
|
@@ -6109,7 +6109,7 @@ class ir extends as {
|
|
|
6109
6109
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = sn;
|
|
6110
6110
|
}
|
|
6111
6111
|
updateOuterDeco(e) {
|
|
6112
|
-
if (
|
|
6112
|
+
if (Ks(e, this.outerDeco))
|
|
6113
6113
|
return;
|
|
6114
6114
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
6115
6115
|
this.dom = ip(this.dom, this.nodeDOM, Hl(this.outerDeco, this.node, n), Hl(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
@@ -6131,7 +6131,7 @@ function lu(t, e, n, r, o) {
|
|
|
6131
6131
|
let s = new ir(void 0, t, e, n, r, r, r, o, 0);
|
|
6132
6132
|
return s.contentDOM && s.updateChildren(o, 0), s;
|
|
6133
6133
|
}
|
|
6134
|
-
class
|
|
6134
|
+
class $i extends ir {
|
|
6135
6135
|
constructor(e, n, r, o, s, i, l) {
|
|
6136
6136
|
super(e, n, r, o, s, null, i, l, 0);
|
|
6137
6137
|
}
|
|
@@ -6162,7 +6162,7 @@ class Pi extends ir {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
slice(e, n, r) {
|
|
6164
6164
|
let o = this.node.cut(e, n), s = document.createTextNode(o.text);
|
|
6165
|
-
return new
|
|
6165
|
+
return new $i(this.parent, o, this.outerDeco, this.innerDeco, s, s, r);
|
|
6166
6166
|
}
|
|
6167
6167
|
markDirty(e, n) {
|
|
6168
6168
|
super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = _n);
|
|
@@ -6301,7 +6301,7 @@ function _0(t, e, n) {
|
|
|
6301
6301
|
function lp(t, e, n) {
|
|
6302
6302
|
return ip(t, t, wr, Hl(e, n, t.nodeType != 1));
|
|
6303
6303
|
}
|
|
6304
|
-
function
|
|
6304
|
+
function Ks(t, e) {
|
|
6305
6305
|
if (t.length != e.length)
|
|
6306
6306
|
return !1;
|
|
6307
6307
|
for (let n = 0; n < t.length; n++)
|
|
@@ -6403,7 +6403,7 @@ class T0 {
|
|
|
6403
6403
|
let c = this.preMatch.matched.get(a);
|
|
6404
6404
|
if (c != null && c != s)
|
|
6405
6405
|
return !1;
|
|
6406
|
-
let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != _n &&
|
|
6406
|
+
let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != _n && Ks(n, a.outerDeco));
|
|
6407
6407
|
if (!f && a.update(e, n, r, o))
|
|
6408
6408
|
return this.destroyBetween(this.index, l), a.dom != u && (this.changed = !0), this.index++, !0;
|
|
6409
6409
|
if (!f && (d = this.recreateWrapper(a, e, n, r, o, i)))
|
|
@@ -6416,7 +6416,7 @@ class T0 {
|
|
|
6416
6416
|
// When a node with content is replaced by a different node with
|
|
6417
6417
|
// identical content, move over its children.
|
|
6418
6418
|
recreateWrapper(e, n, r, o, s, i) {
|
|
6419
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
6419
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !Ks(r, e.outerDeco) || !o.eq(e.innerDeco))
|
|
6420
6420
|
return null;
|
|
6421
6421
|
let l = ir.create(this.top, n, r, o, s, i);
|
|
6422
6422
|
if (l.contentDOM) {
|
|
@@ -6447,7 +6447,7 @@ class T0 {
|
|
|
6447
6447
|
for (; e instanceof Dr; )
|
|
6448
6448
|
n = e, e = n.children[n.children.length - 1];
|
|
6449
6449
|
(!e || // Empty textblock
|
|
6450
|
-
!(e instanceof
|
|
6450
|
+
!(e instanceof $i) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Dt || Nt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
6451
6451
|
}
|
|
6452
6452
|
addHackNode(e, n) {
|
|
6453
6453
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -6587,7 +6587,7 @@ function $a(t, e = null) {
|
|
|
6587
6587
|
if (i < 0)
|
|
6588
6588
|
return null;
|
|
6589
6589
|
let l = r.resolve(i), a, c;
|
|
6590
|
-
if (
|
|
6590
|
+
if (Pi(n)) {
|
|
6591
6591
|
for (a = i; o && !o.node; )
|
|
6592
6592
|
o = o.parent;
|
|
6593
6593
|
let d = o.node;
|
|
@@ -6643,15 +6643,15 @@ const cu = Dt || Nt && Yf < 63;
|
|
|
6643
6643
|
function uu(t, e) {
|
|
6644
6644
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, s = r ? n.childNodes[r - 1] : null;
|
|
6645
6645
|
if (Dt && o && o.contentEditable == "false")
|
|
6646
|
-
return
|
|
6646
|
+
return cl(o);
|
|
6647
6647
|
if ((!o || o.contentEditable == "false") && (!s || s.contentEditable == "false")) {
|
|
6648
6648
|
if (o)
|
|
6649
|
-
return
|
|
6649
|
+
return cl(o);
|
|
6650
6650
|
if (s)
|
|
6651
|
-
return
|
|
6651
|
+
return cl(s);
|
|
6652
6652
|
}
|
|
6653
6653
|
}
|
|
6654
|
-
function
|
|
6654
|
+
function cl(t) {
|
|
6655
6655
|
return t.contentEditable = "true", Dt && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
6656
6656
|
}
|
|
6657
6657
|
function du(t) {
|
|
@@ -6741,7 +6741,7 @@ function hu(t, e, n) {
|
|
|
6741
6741
|
}
|
|
6742
6742
|
}
|
|
6743
6743
|
}
|
|
6744
|
-
function
|
|
6744
|
+
function qs(t) {
|
|
6745
6745
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
6746
6746
|
}
|
|
6747
6747
|
function Lo(t, e) {
|
|
@@ -6756,7 +6756,7 @@ function P0(t) {
|
|
|
6756
6756
|
if (!n)
|
|
6757
6757
|
return;
|
|
6758
6758
|
let o, s, i = !1;
|
|
6759
|
-
for (on && n.nodeType == 1 && r <
|
|
6759
|
+
for (on && n.nodeType == 1 && r < qs(n) && Lo(n.childNodes[r], -1) && (i = !0); ; )
|
|
6760
6760
|
if (r > 0) {
|
|
6761
6761
|
if (n.nodeType != 1)
|
|
6762
6762
|
break;
|
|
@@ -6777,7 +6777,7 @@ function P0(t) {
|
|
|
6777
6777
|
for (; l && Lo(l, -1); )
|
|
6778
6778
|
o = n.parentNode, s = Ct(l), l = l.previousSibling;
|
|
6779
6779
|
if (l)
|
|
6780
|
-
n = l, r =
|
|
6780
|
+
n = l, r = qs(n);
|
|
6781
6781
|
else {
|
|
6782
6782
|
if (n = n.parentNode, n == t.dom)
|
|
6783
6783
|
break;
|
|
@@ -6791,7 +6791,7 @@ function $0(t) {
|
|
|
6791
6791
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
6792
6792
|
if (!n)
|
|
6793
6793
|
return;
|
|
6794
|
-
let o =
|
|
6794
|
+
let o = qs(n), s, i;
|
|
6795
6795
|
for (; ; )
|
|
6796
6796
|
if (r < o) {
|
|
6797
6797
|
if (n.nodeType != 1)
|
|
@@ -6809,7 +6809,7 @@ function $0(t) {
|
|
|
6809
6809
|
for (; l && Lo(l, 1); )
|
|
6810
6810
|
s = l.parentNode, i = Ct(l) + 1, l = l.nextSibling;
|
|
6811
6811
|
if (l)
|
|
6812
|
-
n = l, r = 0, o =
|
|
6812
|
+
n = l, r = 0, o = qs(n);
|
|
6813
6813
|
else {
|
|
6814
6814
|
if (n = n.parentNode, n == t.dom)
|
|
6815
6815
|
break;
|
|
@@ -6855,7 +6855,7 @@ function Wl(t, e, n) {
|
|
|
6855
6855
|
let r = t.domSelection();
|
|
6856
6856
|
if (!r)
|
|
6857
6857
|
return;
|
|
6858
|
-
if (
|
|
6858
|
+
if (Pi(r)) {
|
|
6859
6859
|
let s = document.createRange();
|
|
6860
6860
|
s.setEnd(e, n), s.setStart(e, n), r.removeAllRanges(), r.addRange(s);
|
|
6861
6861
|
} else r.extend && r.extend(e, n);
|
|
@@ -7107,10 +7107,10 @@ let xu = null;
|
|
|
7107
7107
|
function yp() {
|
|
7108
7108
|
return xu || (xu = document.implementation.createHTMLDocument("title"));
|
|
7109
7109
|
}
|
|
7110
|
-
let
|
|
7110
|
+
let ul = null;
|
|
7111
7111
|
function W0(t) {
|
|
7112
7112
|
let e = window.trustedTypes;
|
|
7113
|
-
return e ? (
|
|
7113
|
+
return e ? (ul || (ul = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ul.createHTML(t)) : t;
|
|
7114
7114
|
}
|
|
7115
7115
|
function K0(t) {
|
|
7116
7116
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
@@ -7222,7 +7222,7 @@ Pt.keypress = (t, e) => {
|
|
|
7222
7222
|
!/[\r\n]/.test(o) && !t.someProp("handleTextInput", (i) => i(t, r.$from.pos, r.$to.pos, o, s)) && t.dispatch(s()), n.preventDefault();
|
|
7223
7223
|
}
|
|
7224
7224
|
};
|
|
7225
|
-
function
|
|
7225
|
+
function Fi(t) {
|
|
7226
7226
|
return { left: t.clientX, top: t.clientY };
|
|
7227
7227
|
}
|
|
7228
7228
|
function ty(t, e) {
|
|
@@ -7293,7 +7293,7 @@ function ly(t, e, n) {
|
|
|
7293
7293
|
}
|
|
7294
7294
|
}
|
|
7295
7295
|
function Ha(t) {
|
|
7296
|
-
return
|
|
7296
|
+
return Gs(t);
|
|
7297
7297
|
}
|
|
7298
7298
|
const vp = en ? "metaKey" : "ctrlKey";
|
|
7299
7299
|
Rt.mousedown = (t, e) => {
|
|
@@ -7301,7 +7301,7 @@ Rt.mousedown = (t, e) => {
|
|
|
7301
7301
|
t.input.shiftKey = n.shiftKey;
|
|
7302
7302
|
let r = Ha(t), o = Date.now(), s = "singleClick";
|
|
7303
7303
|
o - t.input.lastClick.time < 500 && ty(n, t.input.lastClick) && !n[vp] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: s, button: n.button };
|
|
7304
|
-
let i = t.posAtCoords(
|
|
7304
|
+
let i = t.posAtCoords(Fi(n));
|
|
7305
7305
|
i && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new ay(t, i, n, !!r)) : (s == "doubleClick" ? sy : iy)(t, i.pos, i.inside, n) ? n.preventDefault() : rr(t, "pointer"));
|
|
7306
7306
|
};
|
|
7307
7307
|
class ay {
|
|
@@ -7333,7 +7333,7 @@ class ay {
|
|
|
7333
7333
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
7334
7334
|
return;
|
|
7335
7335
|
let n = this.pos;
|
|
7336
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
7336
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Fi(e))), this.updateAllowDefault(e), this.allowDefault || !n ? rr(this.view, "pointer") : oy(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
7337
7337
|
Dt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
7338
7338
|
// cursor, but still report that the node is selected
|
|
7339
7339
|
// when asked through getSelection. You'll then get a
|
|
@@ -7366,8 +7366,8 @@ Pt.compositionstart = Pt.compositionupdate = (t) => {
|
|
|
7366
7366
|
t.domObserver.flush();
|
|
7367
7367
|
let { state: e } = t, n = e.selection.$to;
|
|
7368
7368
|
if (e.selection instanceof me && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
7369
|
-
t.markCursor = t.state.storedMarks || n.marks(),
|
|
7370
|
-
else if (
|
|
7369
|
+
t.markCursor = t.state.storedMarks || n.marks(), Gs(t, !0), t.markCursor = null;
|
|
7370
|
+
else if (Gs(t, !e.selection.empty), on && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
7371
7371
|
let r = t.domSelectionRange();
|
|
7372
7372
|
for (let o = r.focusNode, s = r.focusOffset; o && o.nodeType == 1 && s != 0; ) {
|
|
7373
7373
|
let i = s < 0 ? o.lastChild : o.childNodes[s - 1];
|
|
@@ -7389,7 +7389,7 @@ Pt.compositionend = (t, e) => {
|
|
|
7389
7389
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, xp(t, 20));
|
|
7390
7390
|
};
|
|
7391
7391
|
function xp(t, e) {
|
|
7392
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
7392
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Gs(t), e));
|
|
7393
7393
|
}
|
|
7394
7394
|
function wp(t) {
|
|
7395
7395
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = dy()); t.input.compositionNodes.length > 0; )
|
|
@@ -7418,7 +7418,7 @@ function dy() {
|
|
|
7418
7418
|
let t = document.createEvent("Event");
|
|
7419
7419
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
7420
7420
|
}
|
|
7421
|
-
function
|
|
7421
|
+
function Gs(t, e = !1) {
|
|
7422
7422
|
if (!(Vn && t.domObserver.flushingSoon >= 0)) {
|
|
7423
7423
|
if (t.domObserver.forceFlush(), wp(t), e || t.docView && t.docView.dirty) {
|
|
7424
7424
|
let n = $a(t), r = t.state.selection;
|
|
@@ -7495,7 +7495,7 @@ Rt.dragstart = (t, e) => {
|
|
|
7495
7495
|
let n = e, r = t.input.mouseDown;
|
|
7496
7496
|
if (r && r.done(), !n.dataTransfer)
|
|
7497
7497
|
return;
|
|
7498
|
-
let o = t.state.selection, s = o.empty ? null : t.posAtCoords(
|
|
7498
|
+
let o = t.state.selection, s = o.empty ? null : t.posAtCoords(Fi(n)), i;
|
|
7499
7499
|
if (!(s && s.pos >= o.from && s.pos <= (o instanceof pe ? o.to - 1 : o.to))) {
|
|
7500
7500
|
if (r && r.mightDrag)
|
|
7501
7501
|
i = pe.create(t.state.doc, r.mightDrag.pos);
|
|
@@ -7518,7 +7518,7 @@ Pt.drop = (t, e) => {
|
|
|
7518
7518
|
let n = e, r = t.dragging;
|
|
7519
7519
|
if (t.dragging = null, !n.dataTransfer)
|
|
7520
7520
|
return;
|
|
7521
|
-
let o = t.posAtCoords(
|
|
7521
|
+
let o = t.posAtCoords(Fi(n));
|
|
7522
7522
|
if (!o)
|
|
7523
7523
|
return;
|
|
7524
7524
|
let s = t.state.doc.resolve(o.pos), i = r && r.slice;
|
|
@@ -7586,7 +7586,7 @@ function Ko(t, e) {
|
|
|
7586
7586
|
return !1;
|
|
7587
7587
|
return !0;
|
|
7588
7588
|
}
|
|
7589
|
-
class
|
|
7589
|
+
class Js {
|
|
7590
7590
|
constructor(e, n) {
|
|
7591
7591
|
this.toDOM = e, this.spec = n || Tr, this.side = this.spec.side || 0;
|
|
7592
7592
|
}
|
|
@@ -7598,7 +7598,7 @@ class Gs {
|
|
|
7598
7598
|
return !0;
|
|
7599
7599
|
}
|
|
7600
7600
|
eq(e) {
|
|
7601
|
-
return this == e || e instanceof
|
|
7601
|
+
return this == e || e instanceof Js && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Ko(this.spec, e.spec));
|
|
7602
7602
|
}
|
|
7603
7603
|
destroy(e) {
|
|
7604
7604
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -7679,7 +7679,7 @@ class bt {
|
|
|
7679
7679
|
widget's current document position.
|
|
7680
7680
|
*/
|
|
7681
7681
|
static widget(e, n, r) {
|
|
7682
|
-
return new bt(e, e, new
|
|
7682
|
+
return new bt(e, e, new Js(n, r));
|
|
7683
7683
|
}
|
|
7684
7684
|
/**
|
|
7685
7685
|
Creates an inline decoration, which adds the given attributes to
|
|
@@ -7713,7 +7713,7 @@ class bt {
|
|
|
7713
7713
|
@internal
|
|
7714
7714
|
*/
|
|
7715
7715
|
get widget() {
|
|
7716
|
-
return this.type instanceof
|
|
7716
|
+
return this.type instanceof Js;
|
|
7717
7717
|
}
|
|
7718
7718
|
}
|
|
7719
7719
|
const qr = [], Tr = {};
|
|
@@ -7730,7 +7730,7 @@ class Ke {
|
|
|
7730
7730
|
you must make a copy if you want need to preserve that.
|
|
7731
7731
|
*/
|
|
7732
7732
|
static create(e, n) {
|
|
7733
|
-
return n.length ?
|
|
7733
|
+
return n.length ? Ys(n, e, 0, Tr) : Mt;
|
|
7734
7734
|
}
|
|
7735
7735
|
/**
|
|
7736
7736
|
Find all decorations in this set which touch the given range
|
|
@@ -7789,7 +7789,7 @@ class Ke {
|
|
|
7789
7789
|
if (u = _p(n, l, c)) {
|
|
7790
7790
|
for (o || (o = this.children.slice()); s < o.length && o[s] < a; )
|
|
7791
7791
|
s += 3;
|
|
7792
|
-
o[s] == a ? o[s + 2] = o[s + 2].addInner(l, u, c + 1) : o.splice(s, 0, a, a + l.nodeSize,
|
|
7792
|
+
o[s] == a ? o[s + 2] = o[s + 2].addInner(l, u, c + 1) : o.splice(s, 0, a, a + l.nodeSize, Ys(u, l, c + 1, Tr)), s += 3;
|
|
7793
7793
|
}
|
|
7794
7794
|
});
|
|
7795
7795
|
let i = Sp(s ? Tp(n) : n, -r);
|
|
@@ -7985,7 +7985,7 @@ function gy(t, e, n, r, o, s, i) {
|
|
|
7985
7985
|
a = !0;
|
|
7986
7986
|
}
|
|
7987
7987
|
if (a) {
|
|
7988
|
-
let c = yy(l, t, e, n, o, s, i), u =
|
|
7988
|
+
let c = yy(l, t, e, n, o, s, i), u = Ys(c, r, 0, i);
|
|
7989
7989
|
e = u.local;
|
|
7990
7990
|
for (let d = 0; d < l.length; d += 3)
|
|
7991
7991
|
l[d + 1] < 0 && (l.splice(d, 3), d -= 3);
|
|
@@ -8035,13 +8035,13 @@ function Tp(t) {
|
|
|
8035
8035
|
t[n] != null && e.push(t[n]);
|
|
8036
8036
|
return e;
|
|
8037
8037
|
}
|
|
8038
|
-
function
|
|
8038
|
+
function Ys(t, e, n, r) {
|
|
8039
8039
|
let o = [], s = !1;
|
|
8040
8040
|
e.forEach((l, a) => {
|
|
8041
8041
|
let c = _p(t, l, a + n);
|
|
8042
8042
|
if (c) {
|
|
8043
8043
|
s = !0;
|
|
8044
|
-
let u =
|
|
8044
|
+
let u = Ys(c, l, n + a + 1, r);
|
|
8045
8045
|
u != Mt && o.push(a, a + l.nodeSize, u);
|
|
8046
8046
|
}
|
|
8047
8047
|
});
|
|
@@ -8076,7 +8076,7 @@ function wu(t, e, n) {
|
|
|
8076
8076
|
e++;
|
|
8077
8077
|
t.splice(e, 0, n);
|
|
8078
8078
|
}
|
|
8079
|
-
function
|
|
8079
|
+
function dl(t) {
|
|
8080
8080
|
let e = [];
|
|
8081
8081
|
return t.someProp("decorations", (n) => {
|
|
8082
8082
|
let r = n(t.state);
|
|
@@ -8212,7 +8212,7 @@ class wy {
|
|
|
8212
8212
|
}
|
|
8213
8213
|
}
|
|
8214
8214
|
let c = null;
|
|
8215
|
-
s < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
8215
|
+
s < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Pi(r) && (c = $a(e)) && c.eq(ge.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, jn(e), this.currentSelection.set(r), e.scrollToSelection()) : (s > -1 || o) && (s > -1 && (e.docView.markDirty(s, i), ky(e)), this.handleDOMChange(s, i, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || jn(e), this.currentSelection.set(r));
|
|
8216
8216
|
}
|
|
8217
8217
|
registerMutation(e, n) {
|
|
8218
8218
|
if (n.indexOf(e.target) > -1)
|
|
@@ -8281,7 +8281,7 @@ function Ey(t, e) {
|
|
|
8281
8281
|
}
|
|
8282
8282
|
function Sy(t, e, n) {
|
|
8283
8283
|
let { node: r, fromOffset: o, toOffset: s, from: i, to: l } = t.docView.parseRange(e, n), a = t.domSelectionRange(), c, u = a.anchorNode;
|
|
8284
|
-
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }],
|
|
8284
|
+
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: a.anchorOffset }], Pi(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), Nt && t.input.lastKeyCode === 8)
|
|
8285
8285
|
for (let y = s; y > o; y--) {
|
|
8286
8286
|
let v = r.childNodes[y - 1], b = v.pmViewDesc;
|
|
8287
8287
|
if (v.nodeName == "BR" && !b) {
|
|
@@ -8423,7 +8423,7 @@ function Ny(t, e, n, r, o) {
|
|
|
8423
8423
|
if (
|
|
8424
8424
|
// The content must have shrunk
|
|
8425
8425
|
n - e <= o.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
8426
|
-
|
|
8426
|
+
fl(r, !0, !1) < o.pos
|
|
8427
8427
|
)
|
|
8428
8428
|
return !1;
|
|
8429
8429
|
let s = t.resolve(e);
|
|
@@ -8433,10 +8433,10 @@ function Ny(t, e, n, r, o) {
|
|
|
8433
8433
|
}
|
|
8434
8434
|
if (s.parentOffset < s.parent.content.size || !s.parent.isTextblock)
|
|
8435
8435
|
return !1;
|
|
8436
|
-
let i = t.resolve(
|
|
8437
|
-
return !i.parent.isTextblock || i.pos > n ||
|
|
8436
|
+
let i = t.resolve(fl(s, !0, !0));
|
|
8437
|
+
return !i.parent.isTextblock || i.pos > n || fl(i, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(i.parent.content);
|
|
8438
8438
|
}
|
|
8439
|
-
function
|
|
8439
|
+
function fl(t, e, n) {
|
|
8440
8440
|
let r = t.depth, o = e ? t.end() : t.pos;
|
|
8441
8441
|
for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
|
|
8442
8442
|
r--, o++, e = !1;
|
|
@@ -8480,7 +8480,7 @@ class Mp {
|
|
|
8480
8480
|
added to the document.
|
|
8481
8481
|
*/
|
|
8482
8482
|
constructor(e, n) {
|
|
8483
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Y0(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Lu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Au(this), Mu(this), this.nodeViews = Nu(this), this.docView = lu(this.state.doc, Tu(this),
|
|
8483
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Y0(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Lu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Au(this), Mu(this), this.nodeViews = Nu(this), this.docView = lu(this.state.doc, Tu(this), dl(this), this.dom, this), this.domObserver = new wy(this, (r, o, s, i) => My(this, r, o, s, i)), this.domObserver.start(), X0(this), this.updatePluginViews();
|
|
8484
8484
|
}
|
|
8485
8485
|
/**
|
|
8486
8486
|
Holds `true` when a
|
|
@@ -8543,7 +8543,7 @@ class Mp {
|
|
|
8543
8543
|
Iy(p, this.nodeViews) && (this.nodeViews = p, s = !0);
|
|
8544
8544
|
}
|
|
8545
8545
|
(l || n.handleDOMEvents != this._props.handleDOMEvents) && ql(this), this.editable = Au(this), Mu(this);
|
|
8546
|
-
let a =
|
|
8546
|
+
let a = dl(this), c = Tu(this), u = o.plugins != e.plugins && !o.doc.eq(e.doc) ? "reset" : e.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", d = s || !this.docView.matchesNode(e.doc, c, a);
|
|
8547
8547
|
(d || !e.selection.eq(o.selection)) && (i = !0);
|
|
8548
8548
|
let f = u == "preserve" && i && this.dom.style.overflowAnchor == null && d0(this);
|
|
8549
8549
|
if (i) {
|
|
@@ -8773,7 +8773,7 @@ class Mp {
|
|
|
8773
8773
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
8774
8774
|
*/
|
|
8775
8775
|
destroy() {
|
|
8776
|
-
this.docView && (Z0(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
8776
|
+
this.docView && (Z0(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], dl(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, e0());
|
|
8777
8777
|
}
|
|
8778
8778
|
/**
|
|
8779
8779
|
This is true when the view has been
|
|
@@ -8905,7 +8905,7 @@ var cr = {
|
|
|
8905
8905
|
220: "\\",
|
|
8906
8906
|
221: "]",
|
|
8907
8907
|
222: "'"
|
|
8908
|
-
},
|
|
8908
|
+
}, Xs = {
|
|
8909
8909
|
48: ")",
|
|
8910
8910
|
49: "!",
|
|
8911
8911
|
50: "@",
|
|
@@ -8934,10 +8934,10 @@ var cr = {
|
|
|
8934
8934
|
for (var Et = 0; Et < 10; Et++) cr[48 + Et] = cr[96 + Et] = String(Et);
|
|
8935
8935
|
for (var Et = 1; Et <= 24; Et++) cr[Et + 111] = "F" + Et;
|
|
8936
8936
|
for (var Et = 65; Et <= 90; Et++)
|
|
8937
|
-
cr[Et] = String.fromCharCode(Et + 32),
|
|
8938
|
-
for (var
|
|
8937
|
+
cr[Et] = String.fromCharCode(Et + 32), Xs[Et] = String.fromCharCode(Et);
|
|
8938
|
+
for (var pl in cr) Xs.hasOwnProperty(pl) || (Xs[pl] = cr[pl]);
|
|
8939
8939
|
function Py(t) {
|
|
8940
|
-
var e = Dy && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Ry && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ?
|
|
8940
|
+
var e = Dy && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || Ry && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Xs : cr)[t.keyCode] || t.key || "Unidentified";
|
|
8941
8941
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
8942
8942
|
}
|
|
8943
8943
|
const $y = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Fy = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -8968,7 +8968,7 @@ function Vy(t) {
|
|
|
8968
8968
|
e[By(n)] = t[n];
|
|
8969
8969
|
return e;
|
|
8970
8970
|
}
|
|
8971
|
-
function
|
|
8971
|
+
function hl(t, e, n = !0) {
|
|
8972
8972
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
8973
8973
|
}
|
|
8974
8974
|
function zy(t) {
|
|
@@ -8977,18 +8977,18 @@ function zy(t) {
|
|
|
8977
8977
|
function Wa(t) {
|
|
8978
8978
|
let e = Vy(t);
|
|
8979
8979
|
return function(n, r) {
|
|
8980
|
-
let o = Py(r), s, i = e[
|
|
8980
|
+
let o = Py(r), s, i = e[hl(o, r)];
|
|
8981
8981
|
if (i && i(n.state, n.dispatch, n))
|
|
8982
8982
|
return !0;
|
|
8983
8983
|
if (o.length == 1 && o != " ") {
|
|
8984
8984
|
if (r.shiftKey) {
|
|
8985
|
-
let l = e[
|
|
8985
|
+
let l = e[hl(o, r, !1)];
|
|
8986
8986
|
if (l && l(n.state, n.dispatch, n))
|
|
8987
8987
|
return !0;
|
|
8988
8988
|
}
|
|
8989
8989
|
if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
8990
8990
|
!(Fy && r.ctrlKey && r.altKey) && (s = cr[r.keyCode]) && s != o) {
|
|
8991
|
-
let l = e[
|
|
8991
|
+
let l = e[hl(s, r)];
|
|
8992
8992
|
if (l && l(n.state, n.dispatch, n))
|
|
8993
8993
|
return !0;
|
|
8994
8994
|
}
|
|
@@ -9015,7 +9015,7 @@ const Np = (t, e, n) => {
|
|
|
9015
9015
|
return !0;
|
|
9016
9016
|
if (r.parent.content.size == 0 && (io(s, "end") || pe.isSelectable(s)))
|
|
9017
9017
|
for (let i = r.depth; ; i--) {
|
|
9018
|
-
let l =
|
|
9018
|
+
let l = Di(t.doc, r.before(i), r.after(i), oe.empty);
|
|
9019
9019
|
if (l && l.slice.size < l.to - l.from) {
|
|
9020
9020
|
if (e) {
|
|
9021
9021
|
let a = t.tr.step(l);
|
|
@@ -9059,7 +9059,7 @@ function Lp(t, e, n) {
|
|
|
9059
9059
|
return !1;
|
|
9060
9060
|
l = u;
|
|
9061
9061
|
}
|
|
9062
|
-
let c =
|
|
9062
|
+
let c = Di(t.doc, s, a, oe.empty);
|
|
9063
9063
|
if (!c || c.from != s || c instanceof vt && c.slice.size >= a - s)
|
|
9064
9064
|
return !1;
|
|
9065
9065
|
if (n) {
|
|
@@ -9114,7 +9114,7 @@ const Dp = (t, e, n) => {
|
|
|
9114
9114
|
if (Bp(t, o, e, 1))
|
|
9115
9115
|
return !0;
|
|
9116
9116
|
if (r.parent.content.size == 0 && (io(s, "start") || pe.isSelectable(s))) {
|
|
9117
|
-
let i =
|
|
9117
|
+
let i = Di(t.doc, r.before(), r.after(), oe.empty);
|
|
9118
9118
|
if (i && i.slice.size < i.to - i.from) {
|
|
9119
9119
|
if (e) {
|
|
9120
9120
|
let l = t.tr.step(i);
|
|
@@ -9153,7 +9153,7 @@ const Uy = (t, e) => {
|
|
|
9153
9153
|
if (n.node.isTextblock || !fr(t.doc, n.from))
|
|
9154
9154
|
return !1;
|
|
9155
9155
|
o = n.from;
|
|
9156
|
-
} else if (o =
|
|
9156
|
+
} else if (o = Ii(t.doc, n.from, -1), o == null)
|
|
9157
9157
|
return !1;
|
|
9158
9158
|
if (e) {
|
|
9159
9159
|
let s = t.tr.join(o);
|
|
@@ -9166,7 +9166,7 @@ const Uy = (t, e) => {
|
|
|
9166
9166
|
if (n.node.isTextblock || !fr(t.doc, n.to))
|
|
9167
9167
|
return !1;
|
|
9168
9168
|
r = n.to;
|
|
9169
|
-
} else if (r =
|
|
9169
|
+
} else if (r = Ii(t.doc, n.to, 1), r == null)
|
|
9170
9170
|
return !1;
|
|
9171
9171
|
return e && e(t.tr.join(r).scrollIntoView()), !0;
|
|
9172
9172
|
}, Ky = (t, e) => {
|
|
@@ -9372,7 +9372,7 @@ function nv(t, e, n, r = null) {
|
|
|
9372
9372
|
if (e.$from.index(e.depth - 1) == 0)
|
|
9373
9373
|
return !1;
|
|
9374
9374
|
let a = i.resolve(e.start - 2);
|
|
9375
|
-
s = new
|
|
9375
|
+
s = new Us(a, a, e.depth), e.endIndex < e.parent.childCount && (e = new Us(e.$from, i.resolve(e.$to.end(e.depth)), e.depth)), o = !0;
|
|
9376
9376
|
}
|
|
9377
9377
|
let l = Ia(s, n, r, e);
|
|
9378
9378
|
return l ? (t && rv(t, e, l, o, n), !0) : !1;
|
|
@@ -9398,7 +9398,7 @@ function ov(t) {
|
|
|
9398
9398
|
}
|
|
9399
9399
|
function sv(t, e, n, r) {
|
|
9400
9400
|
let o = t.tr, s = r.end, i = r.$to.end(r.depth);
|
|
9401
|
-
s < i && (o.step(new xt(s - 1, i, s, i, new oe(j.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new
|
|
9401
|
+
s < i && (o.step(new xt(s - 1, i, s, i, new oe(j.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Us(o.doc.resolve(r.$from.pos), o.doc.resolve(i), r.depth));
|
|
9402
9402
|
const l = mo(r);
|
|
9403
9403
|
if (l == null)
|
|
9404
9404
|
return !1;
|
|
@@ -9441,7 +9441,7 @@ var av = Object.defineProperty, zp = (t, e) => {
|
|
|
9441
9441
|
for (var n in e)
|
|
9442
9442
|
av(t, n, { get: e[n], enumerable: !0 });
|
|
9443
9443
|
};
|
|
9444
|
-
function
|
|
9444
|
+
function Bi(t) {
|
|
9445
9445
|
const { state: e, transaction: n } = t;
|
|
9446
9446
|
let { selection: r } = n, { doc: o } = n, { storedMarks: s } = n;
|
|
9447
9447
|
return {
|
|
@@ -9466,7 +9466,7 @@ function Fi(t) {
|
|
|
9466
9466
|
}
|
|
9467
9467
|
};
|
|
9468
9468
|
}
|
|
9469
|
-
var
|
|
9469
|
+
var Vi = class {
|
|
9470
9470
|
constructor(t) {
|
|
9471
9471
|
this.editor = t.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = t.state;
|
|
9472
9472
|
}
|
|
@@ -9517,7 +9517,7 @@ var Bi = class {
|
|
|
9517
9517
|
tr: t,
|
|
9518
9518
|
editor: r,
|
|
9519
9519
|
view: s,
|
|
9520
|
-
state:
|
|
9520
|
+
state: Bi({
|
|
9521
9521
|
state: o,
|
|
9522
9522
|
transaction: t
|
|
9523
9523
|
}),
|
|
@@ -9667,7 +9667,7 @@ function Up(t, e) {
|
|
|
9667
9667
|
};
|
|
9668
9668
|
}
|
|
9669
9669
|
}
|
|
9670
|
-
function
|
|
9670
|
+
function zi(t) {
|
|
9671
9671
|
return (e) => Up(e.$from, t);
|
|
9672
9672
|
}
|
|
9673
9673
|
function fe(t, e, n) {
|
|
@@ -9795,7 +9795,7 @@ function $e(...t) {
|
|
|
9795
9795
|
}), r;
|
|
9796
9796
|
}, {});
|
|
9797
9797
|
}
|
|
9798
|
-
function
|
|
9798
|
+
function Zs(t, e) {
|
|
9799
9799
|
return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
|
|
9800
9800
|
[n.name]: t.attrs[n.name]
|
|
9801
9801
|
}).reduce((n, r) => $e(n, r), {});
|
|
@@ -9874,7 +9874,7 @@ function hv(t, e) {
|
|
|
9874
9874
|
const g = fe(c, "renderHTML", d);
|
|
9875
9875
|
g && (p.toDOM = (v) => g({
|
|
9876
9876
|
node: v,
|
|
9877
|
-
HTMLAttributes:
|
|
9877
|
+
HTMLAttributes: Zs(v, u)
|
|
9878
9878
|
}));
|
|
9879
9879
|
const y = fe(c, "renderText", d);
|
|
9880
9880
|
return y && (p.toText = y), [c.name, p];
|
|
@@ -9915,7 +9915,7 @@ function hv(t, e) {
|
|
|
9915
9915
|
const g = fe(c, "renderHTML", d);
|
|
9916
9916
|
return g && (p.toDOM = (y) => g({
|
|
9917
9917
|
mark: y,
|
|
9918
|
-
HTMLAttributes:
|
|
9918
|
+
HTMLAttributes: Zs(y, u)
|
|
9919
9919
|
})), [c.name, p];
|
|
9920
9920
|
})
|
|
9921
9921
|
);
|
|
@@ -10005,11 +10005,11 @@ function yv(t, e) {
|
|
|
10005
10005
|
const i = s.reverse().find((l) => l.type.name === n.name);
|
|
10006
10006
|
return i ? { ...i.attrs } : {};
|
|
10007
10007
|
}
|
|
10008
|
-
function
|
|
10008
|
+
function Hi(t, e) {
|
|
10009
10009
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
10010
10010
|
}
|
|
10011
10011
|
function Xp(t, e) {
|
|
10012
|
-
const n =
|
|
10012
|
+
const n = Hi(
|
|
10013
10013
|
typeof e == "string" ? e : e.name,
|
|
10014
10014
|
t.schema
|
|
10015
10015
|
);
|
|
@@ -10058,12 +10058,12 @@ function Zp(t) {
|
|
|
10058
10058
|
function ec(t) {
|
|
10059
10059
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
10060
10060
|
}
|
|
10061
|
-
function
|
|
10061
|
+
function Qs(t, e, n = { strict: !0 }) {
|
|
10062
10062
|
const r = Object.keys(e);
|
|
10063
10063
|
return r.length ? r.every((o) => n.strict ? e[o] === t[o] : ec(e[o]) ? e[o].test(t[o]) : e[o] === t[o]) : !0;
|
|
10064
10064
|
}
|
|
10065
10065
|
function Qp(t, e, n = {}) {
|
|
10066
|
-
return t.find((r) => r.type === e &&
|
|
10066
|
+
return t.find((r) => r.type === e && Qs(
|
|
10067
10067
|
// Only check equality for the attributes that are provided
|
|
10068
10068
|
Object.fromEntries(Object.keys(n).map((o) => [o, r.attrs[o]])),
|
|
10069
10069
|
n
|
|
@@ -10116,10 +10116,10 @@ var xv = (t, e, n, r = 20) => {
|
|
|
10116
10116
|
}
|
|
10117
10117
|
return [i, s];
|
|
10118
10118
|
};
|
|
10119
|
-
function
|
|
10119
|
+
function ml(t, e) {
|
|
10120
10120
|
return e.nodes[t] || e.marks[t] || null;
|
|
10121
10121
|
}
|
|
10122
|
-
function
|
|
10122
|
+
function Rs(t, e, n) {
|
|
10123
10123
|
return Object.fromEntries(
|
|
10124
10124
|
Object.entries(n).filter(([r]) => {
|
|
10125
10125
|
const o = t.find((s) => s.type === e && s.name === r);
|
|
@@ -10144,7 +10144,7 @@ var wv = (t, e = 500) => {
|
|
|
10144
10144
|
function Jl(t, e, n = {}) {
|
|
10145
10145
|
const { empty: r, ranges: o } = t.selection, s = e ? Wn(e, t.schema) : null;
|
|
10146
10146
|
if (r)
|
|
10147
|
-
return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => s ? s.name === d.type.name : !0).find((d) =>
|
|
10147
|
+
return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => s ? s.name === d.type.name : !0).find((d) => Qs(d.attrs, n, { strict: !1 }));
|
|
10148
10148
|
let i = 0;
|
|
10149
10149
|
const l = [];
|
|
10150
10150
|
if (o.forEach(({ $from: d, $to: f }) => {
|
|
@@ -10163,7 +10163,7 @@ function Jl(t, e, n = {}) {
|
|
|
10163
10163
|
});
|
|
10164
10164
|
}), i === 0)
|
|
10165
10165
|
return !1;
|
|
10166
|
-
const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) =>
|
|
10166
|
+
const a = l.filter((d) => s ? s.name === d.mark.type.name : !0).filter((d) => Qs(d.mark.attrs, n, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = l.filter((d) => s ? d.mark.type !== s && d.mark.type.excludes(s) : !0).reduce((d, f) => d + f.to - f.from, 0);
|
|
10167
10167
|
return (a > 0 ? a + c : a) >= i;
|
|
10168
10168
|
}
|
|
10169
10169
|
function ur(t, e, n = {}) {
|
|
@@ -10178,19 +10178,19 @@ function ur(t, e, n = {}) {
|
|
|
10178
10178
|
to: h
|
|
10179
10179
|
});
|
|
10180
10180
|
});
|
|
10181
|
-
const a = o - r, c = l.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) =>
|
|
10181
|
+
const a = o - r, c = l.filter((d) => i ? i.name === d.node.type.name : !0).filter((d) => Qs(d.node.attrs, n, { strict: !1 }));
|
|
10182
10182
|
return s ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= a;
|
|
10183
10183
|
}
|
|
10184
10184
|
function kv(t, e, n = {}) {
|
|
10185
10185
|
if (!e)
|
|
10186
10186
|
return ur(t, null, n) || Jl(t, null, n);
|
|
10187
|
-
const r =
|
|
10187
|
+
const r = Hi(e, t.schema);
|
|
10188
10188
|
return r === "node" ? ur(t, e, n) : r === "mark" ? Jl(t, e, n) : !1;
|
|
10189
10189
|
}
|
|
10190
10190
|
var Cv = (t, e) => {
|
|
10191
10191
|
const { $from: n, $to: r, $anchor: o } = t.selection;
|
|
10192
10192
|
if (e) {
|
|
10193
|
-
const s =
|
|
10193
|
+
const s = zi((l) => l.type.name === e)(t.selection);
|
|
10194
10194
|
if (!s)
|
|
10195
10195
|
return !1;
|
|
10196
10196
|
const i = t.doc.resolve(s.pos + 1);
|
|
@@ -10215,7 +10215,7 @@ function $u(t, e) {
|
|
|
10215
10215
|
}, s = De(fe(r, "group", o));
|
|
10216
10216
|
return typeof s != "string" ? !1 : s.split(" ").includes("list");
|
|
10217
10217
|
}
|
|
10218
|
-
function
|
|
10218
|
+
function ji(t, {
|
|
10219
10219
|
checkChildren: e = !0,
|
|
10220
10220
|
ignoreWhitespace: n = !1
|
|
10221
10221
|
} = {}) {
|
|
@@ -10235,7 +10235,7 @@ function Hi(t, {
|
|
|
10235
10235
|
if (e) {
|
|
10236
10236
|
let o = !0;
|
|
10237
10237
|
return t.content.forEach((s) => {
|
|
10238
|
-
o !== !1 && (
|
|
10238
|
+
o !== !1 && (ji(s, { ignoreWhitespace: n, checkChildren: e }) || (o = !1));
|
|
10239
10239
|
}), o;
|
|
10240
10240
|
}
|
|
10241
10241
|
return !1;
|
|
@@ -10273,7 +10273,7 @@ function Sv(t, e, n) {
|
|
|
10273
10273
|
i === 0 && (i = u);
|
|
10274
10274
|
}), t.setSelection(ge.near(t.doc.resolve(i), n));
|
|
10275
10275
|
}
|
|
10276
|
-
var
|
|
10276
|
+
var Ui = class {
|
|
10277
10277
|
constructor(t) {
|
|
10278
10278
|
var e;
|
|
10279
10279
|
this.find = t.find, this.handler = t.handler, this.undoable = (e = t.undoable) != null ? e : !0;
|
|
@@ -10306,13 +10306,13 @@ function gs(t) {
|
|
|
10306
10306
|
const p = _v(d, f.find);
|
|
10307
10307
|
if (!p)
|
|
10308
10308
|
return;
|
|
10309
|
-
const h = a.state.tr, g =
|
|
10309
|
+
const h = a.state.tr, g = Bi({
|
|
10310
10310
|
state: a.state,
|
|
10311
10311
|
transaction: h
|
|
10312
10312
|
}), y = {
|
|
10313
10313
|
from: r - (p[0].length - s.length),
|
|
10314
10314
|
to: o
|
|
10315
|
-
}, { commands: v, chain: b, can: C } = new
|
|
10315
|
+
}, { commands: v, chain: b, can: C } = new Vi({
|
|
10316
10316
|
editor: n,
|
|
10317
10317
|
state: g
|
|
10318
10318
|
});
|
|
@@ -10502,7 +10502,7 @@ var Nv = class {
|
|
|
10502
10502
|
}) : [];
|
|
10503
10503
|
};
|
|
10504
10504
|
function Ov(t) {
|
|
10505
|
-
const { editor: e, state: n, from: r, to: o, rule: s, pasteEvent: i, dropEvent: l } = t, { commands: a, chain: c, can: u } = new
|
|
10505
|
+
const { editor: e, state: n, from: r, to: o, rule: s, pasteEvent: i, dropEvent: l } = t, { commands: a, chain: c, can: u } = new Vi({
|
|
10506
10506
|
editor: e,
|
|
10507
10507
|
state: n
|
|
10508
10508
|
}), d = [];
|
|
@@ -10556,7 +10556,7 @@ function Dv(t) {
|
|
|
10556
10556
|
rule: p,
|
|
10557
10557
|
pasteEvt: h
|
|
10558
10558
|
}) => {
|
|
10559
|
-
const g = u.tr, y =
|
|
10559
|
+
const g = u.tr, y = Bi({
|
|
10560
10560
|
state: u,
|
|
10561
10561
|
transaction: g
|
|
10562
10562
|
});
|
|
@@ -10639,7 +10639,7 @@ function Dv(t) {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
}));
|
|
10641
10641
|
}
|
|
10642
|
-
var
|
|
10642
|
+
var Wi = class {
|
|
10643
10643
|
constructor(t, e) {
|
|
10644
10644
|
this.splittableMarks = [], this.editor = e, this.extensions = qp(t), this.schema = hv(this.extensions, e), this.setupExtensions();
|
|
10645
10645
|
}
|
|
@@ -10654,7 +10654,7 @@ var Ui = class {
|
|
|
10654
10654
|
options: e.options,
|
|
10655
10655
|
storage: this.editor.extensionStorage[e.name],
|
|
10656
10656
|
editor: this.editor,
|
|
10657
|
-
type:
|
|
10657
|
+
type: ml(e.name, this.schema)
|
|
10658
10658
|
}, r = fe(e, "addCommands", n);
|
|
10659
10659
|
return r ? {
|
|
10660
10660
|
...t,
|
|
@@ -10674,7 +10674,7 @@ var Ui = class {
|
|
|
10674
10674
|
options: r.options,
|
|
10675
10675
|
storage: this.editor.extensionStorage[r.name],
|
|
10676
10676
|
editor: t,
|
|
10677
|
-
type:
|
|
10677
|
+
type: ml(r.name, this.schema)
|
|
10678
10678
|
}, s = [], i = fe(
|
|
10679
10679
|
r,
|
|
10680
10680
|
"addKeyboardShortcuts",
|
|
@@ -10745,7 +10745,7 @@ var Ui = class {
|
|
|
10745
10745
|
if (!s)
|
|
10746
10746
|
return [];
|
|
10747
10747
|
const i = (l, a, c, u, d) => {
|
|
10748
|
-
const f =
|
|
10748
|
+
const f = Zs(l, r);
|
|
10749
10749
|
return s()({
|
|
10750
10750
|
// pass-through
|
|
10751
10751
|
node: l,
|
|
@@ -10777,7 +10777,7 @@ var Ui = class {
|
|
|
10777
10777
|
if (!s)
|
|
10778
10778
|
return [];
|
|
10779
10779
|
const i = (l, a, c) => {
|
|
10780
|
-
const u =
|
|
10780
|
+
const u = Zs(l, r);
|
|
10781
10781
|
return s()({
|
|
10782
10782
|
// pass-through
|
|
10783
10783
|
mark: l,
|
|
@@ -10811,7 +10811,7 @@ var Ui = class {
|
|
|
10811
10811
|
options: e.options,
|
|
10812
10812
|
storage: this.editor.extensionStorage[e.name],
|
|
10813
10813
|
editor: this.editor,
|
|
10814
|
-
type:
|
|
10814
|
+
type: ml(e.name, this.schema)
|
|
10815
10815
|
};
|
|
10816
10816
|
e.type === "mark" && ((n = De(fe(e, "keepOnSplit", r))) == null || n) && this.splittableMarks.push(e.name);
|
|
10817
10817
|
const o = fe(e, "onBeforeCreate", r), s = fe(e, "onCreate", r), i = fe(e, "onUpdate", r), l = fe(
|
|
@@ -10823,9 +10823,9 @@ var Ui = class {
|
|
|
10823
10823
|
});
|
|
10824
10824
|
}
|
|
10825
10825
|
};
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10826
|
+
Wi.resolve = qp;
|
|
10827
|
+
Wi.sort = Qa;
|
|
10828
|
+
Wi.flatten = Xa;
|
|
10829
10829
|
var Rv = {};
|
|
10830
10830
|
zp(Rv, {
|
|
10831
10831
|
ClipboardTextSerializer: () => ih,
|
|
@@ -11103,14 +11103,14 @@ var Xv = (t = null, e = {}) => ({ editor: n, view: r, tr: o, dispatch: s }) => {
|
|
|
11103
11103
|
return !0;
|
|
11104
11104
|
}, nb = () => ({ state: t, dispatch: e }) => Uy(t, e), rb = () => ({ state: t, dispatch: e }) => Wy(t, e), ob = () => ({ state: t, dispatch: e }) => Np(t, e), sb = () => ({ state: t, dispatch: e }) => Dp(t, e), ib = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
11105
11105
|
try {
|
|
11106
|
-
const r =
|
|
11106
|
+
const r = Ii(t.doc, t.selection.$from.pos, -1);
|
|
11107
11107
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
11108
11108
|
} catch {
|
|
11109
11109
|
return !1;
|
|
11110
11110
|
}
|
|
11111
11111
|
}, lb = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
11112
11112
|
try {
|
|
11113
|
-
const r =
|
|
11113
|
+
const r = Ii(t.doc, t.selection.$from.pos, 1);
|
|
11114
11114
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
11115
11115
|
} catch {
|
|
11116
11116
|
return !1;
|
|
@@ -11170,7 +11170,7 @@ function Fu(t, e) {
|
|
|
11170
11170
|
}
|
|
11171
11171
|
var gb = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
|
|
11172
11172
|
let s = null, i = null;
|
|
11173
|
-
const l =
|
|
11173
|
+
const l = Hi(
|
|
11174
11174
|
typeof t == "string" ? t : t.name,
|
|
11175
11175
|
r.schema
|
|
11176
11176
|
);
|
|
@@ -11279,7 +11279,7 @@ function Bu(t, e) {
|
|
|
11279
11279
|
}
|
|
11280
11280
|
}
|
|
11281
11281
|
var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: o }) => {
|
|
11282
|
-
const { selection: s, doc: i } = e, { $from: l, $to: a } = s, c = o.extensionManager.attributes, u =
|
|
11282
|
+
const { selection: s, doc: i } = e, { $from: l, $to: a } = s, c = o.extensionManager.attributes, u = Rs(c, l.node().type.name, l.node().attrs);
|
|
11283
11283
|
if (s instanceof pe && s.node.isBlock)
|
|
11284
11284
|
return !l.parentOffset || !Hn(i, l.pos) ? !1 : (r && (t && Bu(n, o.extensionManager.splittableMarks), e.split(l.pos).scrollIntoView()), !0);
|
|
11285
11285
|
if (!l.parent.isBlock)
|
|
@@ -11325,7 +11325,7 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11325
11325
|
// eslint-disable-next-line no-nested-ternary
|
|
11326
11326
|
a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3
|
|
11327
11327
|
), w = {
|
|
11328
|
-
...
|
|
11328
|
+
...Rs(f, a.node().type.name, a.node().attrs),
|
|
11329
11329
|
...e
|
|
11330
11330
|
}, E = ((i = l.contentMatch.defaultType) == null ? void 0 : i.createAndFill(w)) || void 0;
|
|
11331
11331
|
v = v.append(j.from(l.createAndFill(null, E) || void 0));
|
|
@@ -11341,10 +11341,10 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11341
11341
|
return !0;
|
|
11342
11342
|
}
|
|
11343
11343
|
const p = c.pos === a.end() ? d.contentMatchAt(0).defaultType : null, h = {
|
|
11344
|
-
...
|
|
11344
|
+
...Rs(f, d.type.name, d.attrs),
|
|
11345
11345
|
...e
|
|
11346
11346
|
}, g = {
|
|
11347
|
-
...
|
|
11347
|
+
...Rs(f, a.node().type.name, a.node().attrs),
|
|
11348
11348
|
...e
|
|
11349
11349
|
};
|
|
11350
11350
|
n.delete(a.pos, c.pos);
|
|
@@ -11362,8 +11362,8 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11362
11362
|
n.ensureMarks(E);
|
|
11363
11363
|
}
|
|
11364
11364
|
return !0;
|
|
11365
|
-
},
|
|
11366
|
-
const n =
|
|
11365
|
+
}, gl = (t, e) => {
|
|
11366
|
+
const n = zi((i) => i.type === e)(t.selection);
|
|
11367
11367
|
if (!n)
|
|
11368
11368
|
return !0;
|
|
11369
11369
|
const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
@@ -11371,8 +11371,8 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11371
11371
|
return !0;
|
|
11372
11372
|
const o = t.doc.nodeAt(r);
|
|
11373
11373
|
return n.node.type === o?.type && fr(t.doc, n.pos) && t.join(n.pos), !0;
|
|
11374
|
-
},
|
|
11375
|
-
const n =
|
|
11374
|
+
}, yl = (t, e) => {
|
|
11375
|
+
const n = zi((i) => i.type === e)(t.selection);
|
|
11376
11376
|
if (!n)
|
|
11377
11377
|
return !0;
|
|
11378
11378
|
const r = t.doc.resolve(n.start).after(n.depth);
|
|
@@ -11384,17 +11384,17 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11384
11384
|
const { extensions: d, splittableMarks: f } = o.extensionManager, p = ut(t, i.schema), h = ut(e, i.schema), { selection: g, storedMarks: y } = i, { $from: v, $to: b } = g, C = v.blockRange(b), w = y || g.$to.parentOffset && g.$from.marks();
|
|
11385
11385
|
if (!C)
|
|
11386
11386
|
return !1;
|
|
11387
|
-
const E =
|
|
11387
|
+
const E = zi((D) => $u(D.type.name, d))(g);
|
|
11388
11388
|
if (C.depth >= 1 && E && C.depth - E.depth <= 1) {
|
|
11389
11389
|
if (E.node.type === p)
|
|
11390
11390
|
return c.liftListItem(h);
|
|
11391
11391
|
if ($u(E.node.type.name, d) && p.validContent(E.node.content) && l)
|
|
11392
|
-
return a().command(() => (s.setNodeMarkup(E.pos, p), !0)).command(() =>
|
|
11392
|
+
return a().command(() => (s.setNodeMarkup(E.pos, p), !0)).command(() => gl(s, p)).command(() => yl(s, p)).run();
|
|
11393
11393
|
}
|
|
11394
|
-
return !n || !w || !l ? a().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() =>
|
|
11394
|
+
return !n || !w || !l ? a().command(() => u().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => gl(s, p)).command(() => yl(s, p)).run() : a().command(() => {
|
|
11395
11395
|
const D = u().wrapInList(p, r), S = w.filter((M) => f.includes(M.type.name));
|
|
11396
11396
|
return s.ensureMarks(S), D ? !0 : c.clearNodes();
|
|
11397
|
-
}).wrapInList(p, r).command(() =>
|
|
11397
|
+
}).wrapInList(p, r).command(() => gl(s, p)).command(() => yl(s, p)).run();
|
|
11398
11398
|
}, Rb = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
11399
11399
|
const { extendEmptyMarkRange: s = !1 } = n, i = Wn(t, r.schema);
|
|
11400
11400
|
return Jl(r, i, e) ? o.unsetMark(i, { extendEmptyMarkRange: s }) : o.setMark(i, e);
|
|
@@ -11446,7 +11446,7 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11446
11446
|
return n.removeStoredMark(a), !0;
|
|
11447
11447
|
}, zb = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
11448
11448
|
let s = null, i = null;
|
|
11449
|
-
const l =
|
|
11449
|
+
const l = Hi(
|
|
11450
11450
|
typeof t == "string" ? t : t.name,
|
|
11451
11451
|
r.schema
|
|
11452
11452
|
);
|
|
@@ -11673,12 +11673,12 @@ var Ob = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
11673
11673
|
if (!r || o)
|
|
11674
11674
|
return;
|
|
11675
11675
|
const { empty: s, from: i, to: l } = e.selection, a = ge.atStart(e.doc).from, c = ge.atEnd(e.doc).to;
|
|
11676
|
-
if (s || !(i === a && l === c) || !
|
|
11676
|
+
if (s || !(i === a && l === c) || !ji(n.doc))
|
|
11677
11677
|
return;
|
|
11678
|
-
const f = n.tr, p =
|
|
11678
|
+
const f = n.tr, p = Bi({
|
|
11679
11679
|
state: n,
|
|
11680
11680
|
transaction: f
|
|
11681
|
-
}), { commands: h } = new
|
|
11681
|
+
}), { commands: h } = new Vi({
|
|
11682
11682
|
editor: this.editor,
|
|
11683
11683
|
state: p
|
|
11684
11684
|
});
|
|
@@ -12132,13 +12132,13 @@ var qb = class extends cv {
|
|
|
12132
12132
|
gh,
|
|
12133
12133
|
uh
|
|
12134
12134
|
].filter((s) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[s.name] !== !1 : !0) : [], ...this.options.extensions].filter((s) => ["extension", "node", "mark"].includes(s?.type));
|
|
12135
|
-
this.extensionManager = new
|
|
12135
|
+
this.extensionManager = new Wi(o, this);
|
|
12136
12136
|
}
|
|
12137
12137
|
/**
|
|
12138
12138
|
* Creates an command manager.
|
|
12139
12139
|
*/
|
|
12140
12140
|
createCommandManager() {
|
|
12141
|
-
this.commandManager = new
|
|
12141
|
+
this.commandManager = new Vi({
|
|
12142
12142
|
editor: this
|
|
12143
12143
|
});
|
|
12144
12144
|
}
|
|
@@ -12308,7 +12308,7 @@ var qb = class extends cv {
|
|
|
12308
12308
|
* Check if there is no content.
|
|
12309
12309
|
*/
|
|
12310
12310
|
get isEmpty() {
|
|
12311
|
-
return
|
|
12311
|
+
return ji(this.state.doc);
|
|
12312
12312
|
}
|
|
12313
12313
|
/**
|
|
12314
12314
|
* Destroy the editor.
|
|
@@ -12340,7 +12340,7 @@ var qb = class extends cv {
|
|
|
12340
12340
|
}
|
|
12341
12341
|
};
|
|
12342
12342
|
function Rr(t) {
|
|
12343
|
-
return new
|
|
12343
|
+
return new Ui({
|
|
12344
12344
|
find: t.find,
|
|
12345
12345
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12346
12346
|
const o = De(t.getAttributes, void 0, r);
|
|
@@ -12360,7 +12360,7 @@ function Rr(t) {
|
|
|
12360
12360
|
});
|
|
12361
12361
|
}
|
|
12362
12362
|
function vh(t) {
|
|
12363
|
-
return new
|
|
12363
|
+
return new Ui({
|
|
12364
12364
|
find: t.find,
|
|
12365
12365
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12366
12366
|
const o = De(t.getAttributes, void 0, r) || {}, { tr: s } = e, i = n.from;
|
|
@@ -12382,7 +12382,7 @@ function vh(t) {
|
|
|
12382
12382
|
});
|
|
12383
12383
|
}
|
|
12384
12384
|
function Yl(t) {
|
|
12385
|
-
return new
|
|
12385
|
+
return new Ui({
|
|
12386
12386
|
find: t.find,
|
|
12387
12387
|
handler: ({ state: e, range: n, match: r }) => {
|
|
12388
12388
|
const o = e.doc.resolve(n.from), s = De(t.getAttributes, void 0, r) || {};
|
|
@@ -12394,7 +12394,7 @@ function Yl(t) {
|
|
|
12394
12394
|
});
|
|
12395
12395
|
}
|
|
12396
12396
|
function lo(t) {
|
|
12397
|
-
return new
|
|
12397
|
+
return new Ui({
|
|
12398
12398
|
find: t.find,
|
|
12399
12399
|
handler: ({ state: e, range: n, match: r, chain: o }) => {
|
|
12400
12400
|
const s = De(t.getAttributes, void 0, r) || {}, i = e.tr.delete(n.from, n.to), a = i.doc.resolve(n.from).blockRange(), c = a && Ia(a, t.type, s);
|
|
@@ -13100,7 +13100,7 @@ function gn(t) {
|
|
|
13100
13100
|
if (e.node(n).type.spec.tableRole == "row") return !0;
|
|
13101
13101
|
return !1;
|
|
13102
13102
|
}
|
|
13103
|
-
function
|
|
13103
|
+
function Ki(t) {
|
|
13104
13104
|
const e = t.selection;
|
|
13105
13105
|
if ("$anchorCell" in e && e.$anchorCell)
|
|
13106
13106
|
return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
|
|
@@ -13464,7 +13464,7 @@ function x1(t, e, n, r) {
|
|
|
13464
13464
|
return r.setMeta(b1, { fixTables: !0 });
|
|
13465
13465
|
}
|
|
13466
13466
|
function Mn(t) {
|
|
13467
|
-
const e = t.selection, n =
|
|
13467
|
+
const e = t.selection, n = Ki(t), r = n.node(-1), o = n.start(-1), s = st.get(r);
|
|
13468
13468
|
return { ...e instanceof qe ? s.rectBetween(
|
|
13469
13469
|
e.$anchorCell.pos - o,
|
|
13470
13470
|
e.$headCell.pos - o
|
|
@@ -13736,7 +13736,7 @@ function L1(t) {
|
|
|
13736
13736
|
function O1(t, e) {
|
|
13737
13737
|
return function(n, r) {
|
|
13738
13738
|
if (!gn(n)) return !1;
|
|
13739
|
-
const o =
|
|
13739
|
+
const o = Ki(n);
|
|
13740
13740
|
if (o.nodeAfter.attrs[t] === e) return !1;
|
|
13741
13741
|
if (r) {
|
|
13742
13742
|
const s = n.tr;
|
|
@@ -13863,7 +13863,7 @@ function R1(t, e) {
|
|
|
13863
13863
|
function Wu(t) {
|
|
13864
13864
|
return function(e, n) {
|
|
13865
13865
|
if (!gn(e)) return !1;
|
|
13866
|
-
const r = R1(
|
|
13866
|
+
const r = R1(Ki(e), t);
|
|
13867
13867
|
if (r == null) return !1;
|
|
13868
13868
|
if (n) {
|
|
13869
13869
|
const o = e.doc.resolve(r);
|
|
@@ -14108,7 +14108,7 @@ var z1 = Wa({
|
|
|
14108
14108
|
Delete: bs,
|
|
14109
14109
|
"Mod-Delete": bs
|
|
14110
14110
|
});
|
|
14111
|
-
function
|
|
14111
|
+
function Ps(t, e, n) {
|
|
14112
14112
|
return n.eq(t.selection) ? !1 : (e && e(t.tr.setSelection(n).scrollIntoView()), !0);
|
|
14113
14113
|
}
|
|
14114
14114
|
function xs(t, e) {
|
|
@@ -14116,7 +14116,7 @@ function xs(t, e) {
|
|
|
14116
14116
|
if (!o) return !1;
|
|
14117
14117
|
const s = n.selection;
|
|
14118
14118
|
if (s instanceof qe)
|
|
14119
|
-
return
|
|
14119
|
+
return Ps(
|
|
14120
14120
|
n,
|
|
14121
14121
|
r,
|
|
14122
14122
|
ge.near(s.$headCell, e)
|
|
@@ -14125,7 +14125,7 @@ function xs(t, e) {
|
|
|
14125
14125
|
const i = Ah(o, t, e);
|
|
14126
14126
|
if (i == null) return !1;
|
|
14127
14127
|
if (t == "horiz")
|
|
14128
|
-
return
|
|
14128
|
+
return Ps(
|
|
14129
14129
|
n,
|
|
14130
14130
|
r,
|
|
14131
14131
|
ge.near(n.doc.resolve(s.head + e), e)
|
|
@@ -14133,7 +14133,7 @@ function xs(t, e) {
|
|
|
14133
14133
|
{
|
|
14134
14134
|
const l = n.doc.resolve(i), a = kh(l, t, e);
|
|
14135
14135
|
let c;
|
|
14136
|
-
return a ? c = ge.near(a, 1) : e < 0 ? c = ge.near(n.doc.resolve(l.before(-1)), -1) : c = ge.near(n.doc.resolve(l.after(-1)), 1),
|
|
14136
|
+
return a ? c = ge.near(a, 1) : e < 0 ? c = ge.near(n.doc.resolve(l.before(-1)), -1) : c = ge.near(n.doc.resolve(l.after(-1)), 1), Ps(n, r, c);
|
|
14137
14137
|
}
|
|
14138
14138
|
};
|
|
14139
14139
|
}
|
|
@@ -14150,7 +14150,7 @@ function ws(t, e) {
|
|
|
14150
14150
|
i = new qe(n.doc.resolve(a));
|
|
14151
14151
|
}
|
|
14152
14152
|
const l = kh(i.$headCell, t, e);
|
|
14153
|
-
return l ?
|
|
14153
|
+
return l ? Ps(
|
|
14154
14154
|
n,
|
|
14155
14155
|
r,
|
|
14156
14156
|
new qe(i.$anchorCell, l)
|
|
@@ -14181,7 +14181,7 @@ function j1(t, e, n) {
|
|
|
14181
14181
|
);
|
|
14182
14182
|
return r = B1(r, l.right - l.left, l.bottom - l.top), Gu(t.state, t.dispatch, i, l, r), !0;
|
|
14183
14183
|
} else if (r) {
|
|
14184
|
-
const s =
|
|
14184
|
+
const s = Ki(t.state), i = s.start(-1);
|
|
14185
14185
|
return Gu(
|
|
14186
14186
|
t.state,
|
|
14187
14187
|
t.dispatch,
|
|
@@ -14199,12 +14199,12 @@ function U1(t, e) {
|
|
|
14199
14199
|
let o;
|
|
14200
14200
|
if (e.shiftKey && t.state.selection instanceof qe)
|
|
14201
14201
|
s(t.state.selection.$anchorCell, e), e.preventDefault();
|
|
14202
|
-
else if (e.shiftKey && r && (o = go(t.state.selection.$anchor)) != null && ((n =
|
|
14202
|
+
else if (e.shiftKey && r && (o = go(t.state.selection.$anchor)) != null && ((n = vl(t, e)) == null ? void 0 : n.pos) != o.pos)
|
|
14203
14203
|
s(o, e), e.preventDefault();
|
|
14204
14204
|
else if (!r)
|
|
14205
14205
|
return;
|
|
14206
14206
|
function s(a, c) {
|
|
14207
|
-
let u =
|
|
14207
|
+
let u = vl(t, c);
|
|
14208
14208
|
const d = Qn.getState(t.state) == null;
|
|
14209
14209
|
if (!u || !ic(a, u))
|
|
14210
14210
|
if (d) u = a;
|
|
@@ -14223,7 +14223,7 @@ function U1(t, e) {
|
|
|
14223
14223
|
let d;
|
|
14224
14224
|
if (u != null)
|
|
14225
14225
|
d = t.state.doc.resolve(u);
|
|
14226
|
-
else if (Ju(t, c.target) != r && (d =
|
|
14226
|
+
else if (Ju(t, c.target) != r && (d = vl(t, e), !d))
|
|
14227
14227
|
return i();
|
|
14228
14228
|
d && s(d, c);
|
|
14229
14229
|
}
|
|
@@ -14248,7 +14248,7 @@ function Ju(t, e) {
|
|
|
14248
14248
|
return e;
|
|
14249
14249
|
return null;
|
|
14250
14250
|
}
|
|
14251
|
-
function
|
|
14251
|
+
function vl(t, e) {
|
|
14252
14252
|
const n = t.posAtCoords({
|
|
14253
14253
|
left: e.clientX,
|
|
14254
14254
|
top: e.clientY
|
|
@@ -14346,19 +14346,19 @@ function K1({
|
|
|
14346
14346
|
});
|
|
14347
14347
|
return s;
|
|
14348
14348
|
}
|
|
14349
|
-
var q1 = class
|
|
14349
|
+
var q1 = class $s {
|
|
14350
14350
|
constructor(e, n) {
|
|
14351
14351
|
this.activeHandle = e, this.dragging = n;
|
|
14352
14352
|
}
|
|
14353
14353
|
apply(e) {
|
|
14354
14354
|
const n = this, r = e.getMeta(Wt);
|
|
14355
14355
|
if (r && r.setHandle != null)
|
|
14356
|
-
return new
|
|
14356
|
+
return new $s(r.setHandle, !1);
|
|
14357
14357
|
if (r && r.setDragging !== void 0)
|
|
14358
|
-
return new
|
|
14358
|
+
return new $s(n.activeHandle, r.setDragging);
|
|
14359
14359
|
if (n.activeHandle > -1 && e.docChanged) {
|
|
14360
14360
|
let o = e.mapping.map(n.activeHandle, -1);
|
|
14361
|
-
return Ql(e.doc.resolve(o)) || (o = -1), new
|
|
14361
|
+
return Ql(e.doc.resolve(o)) || (o = -1), new $s(o, n.dragging);
|
|
14362
14362
|
}
|
|
14363
14363
|
return n;
|
|
14364
14364
|
}
|
|
@@ -15023,7 +15023,7 @@ var dx = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, fx = /(?:^|\s)(==(?!\s+
|
|
|
15023
15023
|
"Mod-.": () => this.editor.commands.toggleSuperscript()
|
|
15024
15024
|
};
|
|
15025
15025
|
}
|
|
15026
|
-
}),
|
|
15026
|
+
}), ei = (t, e) => {
|
|
15027
15027
|
if (t === "slot")
|
|
15028
15028
|
return 0;
|
|
15029
15029
|
if (t instanceof Function)
|
|
@@ -15046,7 +15046,7 @@ var dx = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, fx = /(?:^|\s)(==(?!\s+
|
|
|
15046
15046
|
return [{ tag: "blockquote" }];
|
|
15047
15047
|
},
|
|
15048
15048
|
renderHTML({ HTMLAttributes: t }) {
|
|
15049
|
-
return /* @__PURE__ */
|
|
15049
|
+
return /* @__PURE__ */ ei("blockquote", { ...$e(this.options.HTMLAttributes, t), children: /* @__PURE__ */ ei("slot", {}) });
|
|
15050
15050
|
},
|
|
15051
15051
|
addCommands() {
|
|
15052
15052
|
return {
|
|
@@ -15095,7 +15095,7 @@ var dx = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, fx = /(?:^|\s)(==(?!\s+
|
|
|
15095
15095
|
];
|
|
15096
15096
|
},
|
|
15097
15097
|
renderHTML({ HTMLAttributes: t }) {
|
|
15098
|
-
return /* @__PURE__ */
|
|
15098
|
+
return /* @__PURE__ */ ei("strong", { ...$e(this.options.HTMLAttributes, t), children: /* @__PURE__ */ ei("slot", {}) });
|
|
15099
15099
|
},
|
|
15100
15100
|
addCommands() {
|
|
15101
15101
|
return {
|
|
@@ -15581,7 +15581,7 @@ var dx = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, fx = /(?:^|\s)(==(?!\s+
|
|
|
15581
15581
|
];
|
|
15582
15582
|
}
|
|
15583
15583
|
});
|
|
15584
|
-
const $x = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Fx = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", ra = "numeric", oa = "ascii", sa = "alpha", Oo = "asciinumeric", To = "alphanumeric", ia = "domain", Ph = "emoji", Bx = "scheme", Vx = "slashscheme",
|
|
15584
|
+
const $x = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Fx = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", ra = "numeric", oa = "ascii", sa = "alpha", Oo = "asciinumeric", To = "alphanumeric", ia = "domain", Ph = "emoji", Bx = "scheme", Vx = "slashscheme", bl = "whitespace";
|
|
15585
15585
|
function zx(t, e) {
|
|
15586
15586
|
return t in e || (e[t] = []), e[t];
|
|
15587
15587
|
}
|
|
@@ -15722,73 +15722,73 @@ Ft.prototype = {
|
|
|
15722
15722
|
return o.j[t] = i, i;
|
|
15723
15723
|
}
|
|
15724
15724
|
};
|
|
15725
|
-
const Ce = (t, e, n, r, o) => t.ta(e, n, r, o), rt = (t, e, n, r, o) => t.tr(e, n, r, o), td = (t, e, n, r, o) => t.ts(e, n, r, o), X = (t, e, n, r, o) => t.tt(e, n, r, o), Fn = "WORD", la = "UWORD", $h = "ASCIINUMERICAL", Fh = "ALPHANUMERICAL", Yo = "LOCALHOST", aa = "TLD", ca = "UTLD",
|
|
15725
|
+
const Ce = (t, e, n, r, o) => t.ta(e, n, r, o), rt = (t, e, n, r, o) => t.tr(e, n, r, o), td = (t, e, n, r, o) => t.ts(e, n, r, o), X = (t, e, n, r, o) => t.tt(e, n, r, o), Fn = "WORD", la = "UWORD", $h = "ASCIINUMERICAL", Fh = "ALPHANUMERICAL", Yo = "LOCALHOST", aa = "TLD", ca = "UTLD", Fs = "SCHEME", Jr = "SLASH_SCHEME", lc = "NUM", ua = "WS", ac = "NL", Io = "OPENBRACE", Do = "CLOSEBRACE", ti = "OPENBRACKET", ni = "CLOSEBRACKET", ri = "OPENPAREN", oi = "CLOSEPAREN", si = "OPENANGLEBRACKET", ii = "CLOSEANGLEBRACKET", li = "FULLWIDTHLEFTPAREN", ai = "FULLWIDTHRIGHTPAREN", ci = "LEFTCORNERBRACKET", ui = "RIGHTCORNERBRACKET", di = "LEFTWHITECORNERBRACKET", fi = "RIGHTWHITECORNERBRACKET", pi = "FULLWIDTHLESSTHAN", hi = "FULLWIDTHGREATERTHAN", mi = "AMPERSAND", gi = "APOSTROPHE", yi = "ASTERISK", Yn = "AT", vi = "BACKSLASH", bi = "BACKTICK", xi = "CARET", er = "COLON", cc = "COMMA", wi = "DOLLAR", wn = "DOT", ki = "EQUALS", uc = "EXCLAMATION", Qt = "HYPHEN", Ro = "PERCENT", Ci = "PIPE", Ei = "PLUS", Si = "POUND", Po = "QUERY", dc = "QUOTE", Bh = "FULLWIDTHMIDDLEDOT", fc = "SEMI", kn = "SLASH", $o = "TILDE", _i = "UNDERSCORE", Vh = "EMOJI", Ti = "SYM";
|
|
15726
15726
|
var zh = /* @__PURE__ */ Object.freeze({
|
|
15727
15727
|
__proto__: null,
|
|
15728
15728
|
ALPHANUMERICAL: Fh,
|
|
15729
|
-
AMPERSAND:
|
|
15730
|
-
APOSTROPHE:
|
|
15729
|
+
AMPERSAND: mi,
|
|
15730
|
+
APOSTROPHE: gi,
|
|
15731
15731
|
ASCIINUMERICAL: $h,
|
|
15732
|
-
ASTERISK:
|
|
15732
|
+
ASTERISK: yi,
|
|
15733
15733
|
AT: Yn,
|
|
15734
|
-
BACKSLASH:
|
|
15735
|
-
BACKTICK:
|
|
15736
|
-
CARET:
|
|
15737
|
-
CLOSEANGLEBRACKET:
|
|
15734
|
+
BACKSLASH: vi,
|
|
15735
|
+
BACKTICK: bi,
|
|
15736
|
+
CARET: xi,
|
|
15737
|
+
CLOSEANGLEBRACKET: ii,
|
|
15738
15738
|
CLOSEBRACE: Do,
|
|
15739
|
-
CLOSEBRACKET:
|
|
15740
|
-
CLOSEPAREN:
|
|
15739
|
+
CLOSEBRACKET: ni,
|
|
15740
|
+
CLOSEPAREN: oi,
|
|
15741
15741
|
COLON: er,
|
|
15742
15742
|
COMMA: cc,
|
|
15743
|
-
DOLLAR:
|
|
15743
|
+
DOLLAR: wi,
|
|
15744
15744
|
DOT: wn,
|
|
15745
15745
|
EMOJI: Vh,
|
|
15746
|
-
EQUALS:
|
|
15746
|
+
EQUALS: ki,
|
|
15747
15747
|
EXCLAMATION: uc,
|
|
15748
|
-
FULLWIDTHGREATERTHAN:
|
|
15749
|
-
FULLWIDTHLEFTPAREN:
|
|
15750
|
-
FULLWIDTHLESSTHAN:
|
|
15748
|
+
FULLWIDTHGREATERTHAN: hi,
|
|
15749
|
+
FULLWIDTHLEFTPAREN: li,
|
|
15750
|
+
FULLWIDTHLESSTHAN: pi,
|
|
15751
15751
|
FULLWIDTHMIDDLEDOT: Bh,
|
|
15752
|
-
FULLWIDTHRIGHTPAREN:
|
|
15752
|
+
FULLWIDTHRIGHTPAREN: ai,
|
|
15753
15753
|
HYPHEN: Qt,
|
|
15754
|
-
LEFTCORNERBRACKET:
|
|
15755
|
-
LEFTWHITECORNERBRACKET:
|
|
15754
|
+
LEFTCORNERBRACKET: ci,
|
|
15755
|
+
LEFTWHITECORNERBRACKET: di,
|
|
15756
15756
|
LOCALHOST: Yo,
|
|
15757
15757
|
NL: ac,
|
|
15758
15758
|
NUM: lc,
|
|
15759
|
-
OPENANGLEBRACKET:
|
|
15759
|
+
OPENANGLEBRACKET: si,
|
|
15760
15760
|
OPENBRACE: Io,
|
|
15761
|
-
OPENBRACKET:
|
|
15762
|
-
OPENPAREN:
|
|
15761
|
+
OPENBRACKET: ti,
|
|
15762
|
+
OPENPAREN: ri,
|
|
15763
15763
|
PERCENT: Ro,
|
|
15764
|
-
PIPE:
|
|
15765
|
-
PLUS:
|
|
15766
|
-
POUND:
|
|
15764
|
+
PIPE: Ci,
|
|
15765
|
+
PLUS: Ei,
|
|
15766
|
+
POUND: Si,
|
|
15767
15767
|
QUERY: Po,
|
|
15768
15768
|
QUOTE: dc,
|
|
15769
|
-
RIGHTCORNERBRACKET:
|
|
15770
|
-
RIGHTWHITECORNERBRACKET:
|
|
15771
|
-
SCHEME:
|
|
15769
|
+
RIGHTCORNERBRACKET: ui,
|
|
15770
|
+
RIGHTWHITECORNERBRACKET: fi,
|
|
15771
|
+
SCHEME: Fs,
|
|
15772
15772
|
SEMI: fc,
|
|
15773
15773
|
SLASH: kn,
|
|
15774
15774
|
SLASH_SCHEME: Jr,
|
|
15775
|
-
SYM:
|
|
15775
|
+
SYM: Ti,
|
|
15776
15776
|
TILDE: $o,
|
|
15777
15777
|
TLD: aa,
|
|
15778
|
-
UNDERSCORE:
|
|
15778
|
+
UNDERSCORE: _i,
|
|
15779
15779
|
UTLD: ca,
|
|
15780
15780
|
UWORD: la,
|
|
15781
15781
|
WORD: Fn,
|
|
15782
15782
|
WS: ua
|
|
15783
15783
|
});
|
|
15784
|
-
const Dn = /[a-z]/, wo = new RegExp("\\p{L}", "u"),
|
|
15785
|
-
`, jx = "️", Ux = "",
|
|
15784
|
+
const Dn = /[a-z]/, wo = new RegExp("\\p{L}", "u"), xl = new RegExp("\\p{Emoji}", "u"), Rn = /\d/, wl = /\s/, nd = "\r", kl = `
|
|
15785
|
+
`, jx = "️", Ux = "", Cl = "";
|
|
15786
15786
|
let Cs = null, Es = null;
|
|
15787
15787
|
function Wx(t = []) {
|
|
15788
15788
|
const e = {};
|
|
15789
15789
|
Ft.groups = e;
|
|
15790
15790
|
const n = new Ft();
|
|
15791
|
-
Cs == null && (Cs = rd($x)), Es == null && (Es = rd(Fx)), X(n, "'",
|
|
15791
|
+
Cs == null && (Cs = rd($x)), Es == null && (Es = rd(Fx)), X(n, "'", gi), X(n, "{", Io), X(n, "}", Do), X(n, "[", ti), X(n, "]", ni), X(n, "(", ri), X(n, ")", oi), X(n, "<", si), X(n, ">", ii), X(n, "(", li), X(n, ")", ai), X(n, "「", ci), X(n, "」", ui), X(n, "『", di), X(n, "』", fi), X(n, "<", pi), X(n, ">", hi), X(n, "&", mi), X(n, "*", yi), X(n, "@", Yn), X(n, "`", bi), X(n, "^", xi), X(n, ":", er), X(n, ",", cc), X(n, "$", wi), X(n, ".", wn), X(n, "=", ki), X(n, "!", uc), X(n, "-", Qt), X(n, "%", Ro), X(n, "|", Ci), X(n, "+", Ei), X(n, "#", Si), X(n, "?", Po), X(n, '"', dc), X(n, "/", kn), X(n, ";", fc), X(n, "~", $o), X(n, "_", _i), X(n, "\\", vi), X(n, "・", Bh);
|
|
15792
15792
|
const r = rt(n, Rn, lc, {
|
|
15793
15793
|
[ra]: !0
|
|
15794
15794
|
});
|
|
@@ -15805,20 +15805,20 @@ function Wx(t = []) {
|
|
|
15805
15805
|
[sa]: !0
|
|
15806
15806
|
});
|
|
15807
15807
|
rt(l, Dn), rt(l, Rn, s), rt(l, wo, l), rt(s, Rn, s), rt(s, Dn), rt(s, wo, s);
|
|
15808
|
-
const a = X(n,
|
|
15809
|
-
[
|
|
15808
|
+
const a = X(n, kl, ac, {
|
|
15809
|
+
[bl]: !0
|
|
15810
15810
|
}), c = X(n, nd, ua, {
|
|
15811
|
-
[
|
|
15812
|
-
}), u = rt(n,
|
|
15813
|
-
[
|
|
15811
|
+
[bl]: !0
|
|
15812
|
+
}), u = rt(n, wl, ua, {
|
|
15813
|
+
[bl]: !0
|
|
15814
15814
|
});
|
|
15815
|
-
X(n,
|
|
15816
|
-
const d = rt(n,
|
|
15815
|
+
X(n, Cl, u), X(c, kl, a), X(c, Cl, u), rt(c, wl, u), X(u, nd), X(u, kl), rt(u, wl, u), X(u, Cl, u);
|
|
15816
|
+
const d = rt(n, xl, Vh, {
|
|
15817
15817
|
[Ph]: !0
|
|
15818
15818
|
});
|
|
15819
|
-
X(d, "#"), rt(d,
|
|
15819
|
+
X(d, "#"), rt(d, xl, d), X(d, jx, d);
|
|
15820
15820
|
const f = X(d, Ux);
|
|
15821
|
-
X(f, "#"), rt(f,
|
|
15821
|
+
X(f, "#"), rt(f, xl, d);
|
|
15822
15822
|
const p = [[Dn, i], [Rn, o]], h = [[Dn, null], [wo, l], [Rn, s]];
|
|
15823
15823
|
for (let g = 0; g < Cs.length; g++)
|
|
15824
15824
|
qn(n, Cs[g], aa, Fn, p);
|
|
@@ -15830,7 +15830,7 @@ function Wx(t = []) {
|
|
|
15830
15830
|
}, e), Cr(ca, {
|
|
15831
15831
|
utld: !0,
|
|
15832
15832
|
alpha: !0
|
|
15833
|
-
}, e), qn(n, "file",
|
|
15833
|
+
}, e), qn(n, "file", Fs, Fn, p), qn(n, "mailto", Fs, Fn, p), qn(n, "http", Jr, Fn, p), qn(n, "https", Jr, Fn, p), qn(n, "ftp", Jr, Fn, p), qn(n, "ftps", Jr, Fn, p), Cr(Fs, {
|
|
15834
15834
|
scheme: !0,
|
|
15835
15835
|
ascii: !0
|
|
15836
15836
|
}, e), Cr(Jr, {
|
|
@@ -15847,7 +15847,7 @@ function Wx(t = []) {
|
|
|
15847
15847
|
}
|
|
15848
15848
|
return td(n, "localhost", Yo, {
|
|
15849
15849
|
ascii: !0
|
|
15850
|
-
}), n.jd = new Ft(
|
|
15850
|
+
}), n.jd = new Ft(Ti), {
|
|
15851
15851
|
start: n,
|
|
15852
15852
|
tokens: Object.assign({
|
|
15853
15853
|
groups: e
|
|
@@ -16105,7 +16105,7 @@ jh.prototype = {
|
|
|
16105
16105
|
};
|
|
16106
16106
|
}
|
|
16107
16107
|
};
|
|
16108
|
-
function
|
|
16108
|
+
function qi(t, e) {
|
|
16109
16109
|
class n extends jh {
|
|
16110
16110
|
constructor(o, s) {
|
|
16111
16111
|
super(o, s), this.t = t;
|
|
@@ -16115,12 +16115,12 @@ function Ki(t, e) {
|
|
|
16115
16115
|
n.prototype[r] = e[r];
|
|
16116
16116
|
return n.t = t, n;
|
|
16117
16117
|
}
|
|
16118
|
-
const sd =
|
|
16118
|
+
const sd = qi("email", {
|
|
16119
16119
|
isLink: !0,
|
|
16120
16120
|
toHref() {
|
|
16121
16121
|
return "mailto:" + this.toString();
|
|
16122
16122
|
}
|
|
16123
|
-
}), id =
|
|
16123
|
+
}), id = qi("text"), qx = qi("nl"), Ss = qi("url", {
|
|
16124
16124
|
isLink: !0,
|
|
16125
16125
|
/**
|
|
16126
16126
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -16144,7 +16144,7 @@ const sd = Ki("email", {
|
|
|
16144
16144
|
function Gx({
|
|
16145
16145
|
groups: t
|
|
16146
16146
|
}) {
|
|
16147
|
-
const e = t.domain.concat([
|
|
16147
|
+
const e = t.domain.concat([mi, yi, Yn, vi, bi, xi, wi, ki, Qt, lc, Ro, Ci, Ei, Si, kn, Ti, $o, _i]), n = [gi, er, cc, wn, uc, Ro, Po, dc, fc, si, ii, Io, Do, ni, ti, ri, oi, li, ai, ci, ui, di, fi, pi, hi], r = [mi, gi, yi, vi, bi, xi, wi, ki, Qt, Io, Do, Ro, Ci, Ei, Si, Po, kn, Ti, $o, _i], o = Xt(), s = X(o, $o);
|
|
16148
16148
|
Ce(s, r, s), Ce(s, t.domain, s);
|
|
16149
16149
|
const i = Xt(), l = Xt(), a = Xt();
|
|
16150
16150
|
Ce(o, t.domain, i), Ce(o, t.scheme, l), Ce(o, t.slashscheme, a), Ce(i, r, s), Ce(i, t.domain, i);
|
|
@@ -16175,19 +16175,19 @@ function Gx({
|
|
|
16175
16175
|
const I = [
|
|
16176
16176
|
[Io, Do],
|
|
16177
16177
|
// {}
|
|
16178
|
-
[
|
|
16178
|
+
[ti, ni],
|
|
16179
16179
|
// []
|
|
16180
|
-
[
|
|
16180
|
+
[ri, oi],
|
|
16181
16181
|
// ()
|
|
16182
|
-
[
|
|
16182
|
+
[si, ii],
|
|
16183
16183
|
// <>
|
|
16184
|
-
[
|
|
16184
|
+
[li, ai],
|
|
16185
16185
|
// ()
|
|
16186
|
-
[
|
|
16186
|
+
[ci, ui],
|
|
16187
16187
|
// 「」
|
|
16188
|
-
[
|
|
16188
|
+
[di, fi],
|
|
16189
16189
|
// 『』
|
|
16190
|
-
[
|
|
16190
|
+
[pi, hi]
|
|
16191
16191
|
// <>
|
|
16192
16192
|
];
|
|
16193
16193
|
for (let O = 0; O < I.length; O++) {
|
|
@@ -16214,14 +16214,14 @@ function Jx(t, e, n) {
|
|
|
16214
16214
|
if (f < 0)
|
|
16215
16215
|
o -= u, o < r && (i.push(n[o]), o++);
|
|
16216
16216
|
else {
|
|
16217
|
-
i.length > 0 && (s.push(
|
|
16217
|
+
i.length > 0 && (s.push(El(id, e, i)), i = []), o -= f, u -= f;
|
|
16218
16218
|
const p = d.t, h = n.slice(o - u, o);
|
|
16219
|
-
s.push(
|
|
16219
|
+
s.push(El(p, e, h));
|
|
16220
16220
|
}
|
|
16221
16221
|
}
|
|
16222
|
-
return i.length > 0 && s.push(
|
|
16222
|
+
return i.length > 0 && s.push(El(id, e, i)), s;
|
|
16223
16223
|
}
|
|
16224
|
-
function
|
|
16224
|
+
function El(t, e, n) {
|
|
16225
16225
|
const r = n[0].s, o = n[n.length - 1].e, s = e.slice(r, o);
|
|
16226
16226
|
return new t(s, n);
|
|
16227
16227
|
}
|
|
@@ -17364,10 +17364,10 @@ function Aw(t) {
|
|
|
17364
17364
|
let e = document.createElement("div");
|
|
17365
17365
|
return e.className = "ProseMirror-gapcursor", Ke.create(t.doc, [bt.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
17366
17366
|
}
|
|
17367
|
-
var
|
|
17367
|
+
var Mi = 200, wt = function() {
|
|
17368
17368
|
};
|
|
17369
17369
|
wt.prototype.append = function(e) {
|
|
17370
|
-
return e.length ? (e = wt.from(e), !this.length && e || e.length <
|
|
17370
|
+
return e.length ? (e = wt.from(e), !this.length && e || e.length < Mi && this.leafAppend(e) || this.length < Mi && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
17371
17371
|
};
|
|
17372
17372
|
wt.prototype.prepend = function(e) {
|
|
17373
17373
|
return e.length ? wt.from(e).append(this) : this;
|
|
@@ -17416,10 +17416,10 @@ var nm = /* @__PURE__ */ (function(t) {
|
|
|
17416
17416
|
if (o(this.values[a], l + a) === !1)
|
|
17417
17417
|
return !1;
|
|
17418
17418
|
}, e.prototype.leafAppend = function(o) {
|
|
17419
|
-
if (this.length + o.length <=
|
|
17419
|
+
if (this.length + o.length <= Mi)
|
|
17420
17420
|
return new e(this.values.concat(o.flatten()));
|
|
17421
17421
|
}, e.prototype.leafPrepend = function(o) {
|
|
17422
|
-
if (this.length + o.length <=
|
|
17422
|
+
if (this.length + o.length <= Mi)
|
|
17423
17423
|
return new e(o.flatten().concat(this.values));
|
|
17424
17424
|
}, n.length.get = function() {
|
|
17425
17425
|
return this.values.length;
|
|
@@ -17609,11 +17609,11 @@ function Dw(t, e, n, r) {
|
|
|
17609
17609
|
if (n.steps.length == 0)
|
|
17610
17610
|
return t;
|
|
17611
17611
|
if (i && i.getMeta(Ar))
|
|
17612
|
-
return i.getMeta(Ar).redo ? new Xn(t.done.addTransform(n, void 0, r,
|
|
17612
|
+
return i.getMeta(Ar).redo ? new Xn(t.done.addTransform(n, void 0, r, Bs(e)), t.undone, fd(n.mapping.maps), t.prevTime, t.prevComposition) : new Xn(t.done, t.undone.addTransform(n, void 0, r, Bs(e)), null, t.prevTime, t.prevComposition);
|
|
17613
17613
|
if (n.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
|
|
17614
|
-
let l = n.getMeta("composition"), a = t.prevTime == 0 || !i && t.prevComposition != l && (t.prevTime < (n.time || 0) - r.newGroupDelay || !Rw(n, t.prevRanges)), c = i ?
|
|
17615
|
-
return new Xn(t.done.addTransform(n, a ? e.selection.getBookmark() : void 0, r,
|
|
17616
|
-
} else return (s = n.getMeta("rebased")) ? new Xn(t.done.rebased(n, s), t.undone.rebased(n, s),
|
|
17614
|
+
let l = n.getMeta("composition"), a = t.prevTime == 0 || !i && t.prevComposition != l && (t.prevTime < (n.time || 0) - r.newGroupDelay || !Rw(n, t.prevRanges)), c = i ? Sl(t.prevRanges, n.mapping) : fd(n.mapping.maps);
|
|
17615
|
+
return new Xn(t.done.addTransform(n, a ? e.selection.getBookmark() : void 0, r, Bs(e)), un.empty, c, n.time, l ?? t.prevComposition);
|
|
17616
|
+
} else return (s = n.getMeta("rebased")) ? new Xn(t.done.rebased(n, s), t.undone.rebased(n, s), Sl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Xn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Sl(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
17617
17617
|
}
|
|
17618
17618
|
function Rw(t, e) {
|
|
17619
17619
|
if (!e)
|
|
@@ -17632,7 +17632,7 @@ function fd(t) {
|
|
|
17632
17632
|
t[n].forEach((r, o, s, i) => e.push(s, i));
|
|
17633
17633
|
return e;
|
|
17634
17634
|
}
|
|
17635
|
-
function
|
|
17635
|
+
function Sl(t, e) {
|
|
17636
17636
|
if (!t)
|
|
17637
17637
|
return null;
|
|
17638
17638
|
let n = [];
|
|
@@ -17643,24 +17643,24 @@ function El(t, e) {
|
|
|
17643
17643
|
return n;
|
|
17644
17644
|
}
|
|
17645
17645
|
function Pw(t, e, n) {
|
|
17646
|
-
let r =
|
|
17646
|
+
let r = Bs(e), o = Ar.get(e).spec.config, s = (n ? t.undone : t.done).popEvent(e, r);
|
|
17647
17647
|
if (!s)
|
|
17648
17648
|
return null;
|
|
17649
17649
|
let i = s.selection.resolve(s.transform.doc), l = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), o, r), a = new Xn(n ? l : s.remaining, n ? s.remaining : l, null, 0, -1);
|
|
17650
17650
|
return s.transform.setSelection(i).setMeta(Ar, { redo: n, historyState: a });
|
|
17651
17651
|
}
|
|
17652
|
-
let
|
|
17653
|
-
function
|
|
17652
|
+
let _l = !1, pd = null;
|
|
17653
|
+
function Bs(t) {
|
|
17654
17654
|
let e = t.plugins;
|
|
17655
17655
|
if (pd != e) {
|
|
17656
|
-
|
|
17656
|
+
_l = !1, pd = e;
|
|
17657
17657
|
for (let n = 0; n < e.length; n++)
|
|
17658
17658
|
if (e[n].spec.historyPreserveItems) {
|
|
17659
|
-
|
|
17659
|
+
_l = !0;
|
|
17660
17660
|
break;
|
|
17661
17661
|
}
|
|
17662
17662
|
}
|
|
17663
|
-
return
|
|
17663
|
+
return _l;
|
|
17664
17664
|
}
|
|
17665
17665
|
const Ar = new it("history"), $w = new it("closeHistory");
|
|
17666
17666
|
function Fw(t = {}) {
|
|
@@ -17866,7 +17866,7 @@ ze.create({
|
|
|
17866
17866
|
return null;
|
|
17867
17867
|
const s = this.editor.isEmpty;
|
|
17868
17868
|
return t.descendants((i, l) => {
|
|
17869
|
-
const a = r >= l && r <= l + i.nodeSize, c = !i.isLeaf &&
|
|
17869
|
+
const a = r >= l && r <= l + i.nodeSize, c = !i.isLeaf && ji(i);
|
|
17870
17870
|
if ((a || !this.options.showOnlyCurrent) && c) {
|
|
17871
17871
|
const u = [this.options.emptyNodeClass];
|
|
17872
17872
|
s && u.push(this.options.emptyEditorClass);
|
|
@@ -20840,7 +20840,7 @@ const gE = ["placeholder", "disabled"], yE = /* @__PURE__ */ de({
|
|
|
20840
20840
|
[pt, r.value]
|
|
20841
20841
|
]);
|
|
20842
20842
|
}
|
|
20843
|
-
}), vE = ["placeholder", "disabled"],
|
|
20843
|
+
}), vE = ["placeholder", "disabled"], Ai = /* @__PURE__ */ de({
|
|
20844
20844
|
__name: "vs-input-text",
|
|
20845
20845
|
props: /* @__PURE__ */ Ve({
|
|
20846
20846
|
style: { default: () => ({}) },
|
|
@@ -21830,7 +21830,7 @@ function WS(t, e) {
|
|
|
21830
21830
|
ht('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
|
|
21831
21831
|
]));
|
|
21832
21832
|
}
|
|
21833
|
-
const
|
|
21833
|
+
const Gi = /* @__PURE__ */ Te(jS, [["render", WS]]), KS = {}, qS = {
|
|
21834
21834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21835
21835
|
width: "24",
|
|
21836
21836
|
height: "24",
|
|
@@ -21894,7 +21894,7 @@ const hm = /* @__PURE__ */ Te(KS, [["render", GS]]), JS = ["title"], YS = { clas
|
|
|
21894
21894
|
}),
|
|
21895
21895
|
class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
|
|
21896
21896
|
}, [
|
|
21897
|
-
ce(
|
|
21897
|
+
ce(Gi, { class: "w-4 h-4" })
|
|
21898
21898
|
]),
|
|
21899
21899
|
m("button", {
|
|
21900
21900
|
type: "button",
|
|
@@ -22152,7 +22152,7 @@ const hm = /* @__PURE__ */ Te(KS, [["render", GS]]), JS = ["title"], YS = { clas
|
|
|
22152
22152
|
class: "size-[30px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-red-600 hover:bg-red-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-red-100 dark:text-red-500 dark:hover:bg-red-500/20 dark:focus:bg-red-500/20",
|
|
22153
22153
|
onClick: d[2] || (d[2] = (f) => a())
|
|
22154
22154
|
}, [
|
|
22155
|
-
ce(
|
|
22155
|
+
ce(Gi, {
|
|
22156
22156
|
height: "14",
|
|
22157
22157
|
width: "14"
|
|
22158
22158
|
})
|
|
@@ -22720,9 +22720,9 @@ const E_ = /* @__PURE__ */ Te(w_, [["render", C_]]), S_ = { class: "flex flex-co
|
|
|
22720
22720
|
return document.body;
|
|
22721
22721
|
}, Yt = () => {
|
|
22722
22722
|
if (!a.value) return;
|
|
22723
|
-
const F = a.value.getBoundingClientRect(), q = window.innerHeight || document.documentElement.clientHeight, ne = window.innerWidth || document.documentElement.clientWidth, ve = 8, Fe = 8, yt = n.maxHeight || 300, jt = q - F.bottom - Fe - ve, Hr = F.top - Fe - ve, ds = jt >= Hr,
|
|
22723
|
+
const F = a.value.getBoundingClientRect(), q = window.innerHeight || document.documentElement.clientHeight, ne = window.innerWidth || document.documentElement.clientWidth, ve = 8, Fe = 8, yt = n.maxHeight || 300, jt = q - F.bottom - Fe - ve, Hr = F.top - Fe - ve, ds = jt >= Hr, Qi = Math.max(ne - ve * 2, 0);
|
|
22724
22724
|
let { width: vo } = F;
|
|
22725
|
-
|
|
22725
|
+
Qi > 0 && vo > Qi && (vo = Qi);
|
|
22726
22726
|
let { left: bo } = F;
|
|
22727
22727
|
bo + vo + ve > ne && (bo = ne - vo - ve), bo = Math.max(bo, ve);
|
|
22728
22728
|
const Zm = Math.min(
|
|
@@ -23544,7 +23544,7 @@ const QT = /* @__PURE__ */ Te(YT, [["render", ZT]]), eM = { class: "vs-datatable
|
|
|
23544
23544
|
onClick: (Z) => G(te),
|
|
23545
23545
|
class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-slate-600 hover:border-red-300 dark:hover:border-slate-500 hover:text-red-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
|
|
23546
23546
|
}, [
|
|
23547
|
-
ce(
|
|
23547
|
+
ce(Gi, {
|
|
23548
23548
|
width: "24",
|
|
23549
23549
|
height: "24",
|
|
23550
23550
|
class: "w-3 h-3"
|
|
@@ -24819,7 +24819,7 @@ const tA = /* @__PURE__ */ Te(ZM, [["render", eA]]), nA = { class: "map-search-w
|
|
|
24819
24819
|
onClick: N[8] || (N[8] = (Q) => K()),
|
|
24820
24820
|
disabled: i.value
|
|
24821
24821
|
}, [
|
|
24822
|
-
ce(
|
|
24822
|
+
ce(Gi, { class: "w-3 h-3" })
|
|
24823
24823
|
], 8, WA)
|
|
24824
24824
|
])
|
|
24825
24825
|
])) : ee("", !0)
|
|
@@ -25177,14 +25177,14 @@ const tA = /* @__PURE__ */ Te(ZM, [["render", eA]]), nA = { class: "map-search-w
|
|
|
25177
25177
|
}, [
|
|
25178
25178
|
y[1] || (y[1] = ht('<button class="cursor-move" data-v-a0f7fbfc><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-a0f7fbfc><circle cx="15" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="18" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="18" r="1.5" data-v-a0f7fbfc></circle></svg></button>', 1)),
|
|
25179
25179
|
m("div", vN, [
|
|
25180
|
-
ce(
|
|
25180
|
+
ce(Ai, {
|
|
25181
25181
|
modelValue: v.key,
|
|
25182
25182
|
"onUpdate:modelValue": (C) => v.key = C,
|
|
25183
25183
|
placeholder: "Ключ"
|
|
25184
25184
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
25185
25185
|
]),
|
|
25186
25186
|
m("div", bN, [
|
|
25187
|
-
ce(
|
|
25187
|
+
ce(Ai, {
|
|
25188
25188
|
modelValue: v.value,
|
|
25189
25189
|
"onUpdate:modelValue": (C) => v.value = C,
|
|
25190
25190
|
placeholder: "Значення"
|
|
@@ -25553,9 +25553,9 @@ const tA = /* @__PURE__ */ Te(ZM, [["render", eA]]), nA = { class: "map-search-w
|
|
|
25553
25553
|
]));
|
|
25554
25554
|
}
|
|
25555
25555
|
}), GN = {
|
|
25556
|
-
VsInputText:
|
|
25556
|
+
VsInputText: Ai,
|
|
25557
25557
|
VsInputRadio: yd,
|
|
25558
|
-
"vs-input-text":
|
|
25558
|
+
"vs-input-text": Ai,
|
|
25559
25559
|
"vs-input-password": yE,
|
|
25560
25560
|
"vs-input-textarea": _T,
|
|
25561
25561
|
"vs-input-mask": eS,
|
|
@@ -27079,7 +27079,7 @@ const bL = { class: "relative" }, xL = {
|
|
|
27079
27079
|
fullscreen: BL,
|
|
27080
27080
|
html_mode: jL,
|
|
27081
27081
|
tab: UL
|
|
27082
|
-
},
|
|
27082
|
+
}, Ni = {
|
|
27083
27083
|
// Базовий набір - мінімальний функціонал
|
|
27084
27084
|
basic: [
|
|
27085
27085
|
"history",
|
|
@@ -27619,7 +27619,7 @@ const bL = { class: "relative" }, xL = {
|
|
|
27619
27619
|
setup(t) {
|
|
27620
27620
|
const e = t, n = Ze(t, "modelValue"), { editor: r, editorInstance: o, focusEditor: s } = im(e), { isHtmlMode: i, htmlContent: l, htmlTextarea: a, toggleHtmlMode: c, onHtmlInput: u } = lm(r, (y, v) => {
|
|
27621
27621
|
y === "update:modelValue" && (n.value = v);
|
|
27622
|
-
}), { isFullscreen: d, toggleFullscreen: f } = am(), p = H(() => typeof e.toolbar == "string" ?
|
|
27622
|
+
}), { isFullscreen: d, toggleFullscreen: f } = am(), p = H(() => typeof e.toolbar == "string" ? Ni[e.toolbar] || Ni.default : e.toolbar), h = H(() => p.value.map((y) => vm[y]).filter(Boolean));
|
|
27623
27623
|
xe(() => e.modelValue, (y) => {
|
|
27624
27624
|
if (r.value) {
|
|
27625
27625
|
const v = y || "", b = r.value.getHTML();
|
|
@@ -27729,7 +27729,7 @@ const bL = { class: "relative" }, xL = {
|
|
|
27729
27729
|
"table"
|
|
27730
27730
|
], { editor: o, editorInstance: s, focusEditor: i } = im(e), { toggleHtmlMode: l } = lm(o, (d, f) => {
|
|
27731
27731
|
d === "update:modelValue" && (n.value = f);
|
|
27732
|
-
}), { toggleFullscreen: a } = am(), c = H(() => typeof r == "string" ?
|
|
27732
|
+
}), { toggleFullscreen: a } = am(), c = H(() => typeof r == "string" ? Ni[r] || Ni.default : r), u = H(() => c.value.map((d) => vm[d]).filter(Boolean));
|
|
27733
27733
|
return xe(() => e.modelValue, (d) => {
|
|
27734
27734
|
if (o.value) {
|
|
27735
27735
|
const f = d || "", p = o.value.getHTML();
|
|
@@ -27794,10 +27794,10 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
27794
27794
|
});
|
|
27795
27795
|
}
|
|
27796
27796
|
const QL = /\{([0-9a-zA-Z]+)\}/g;
|
|
27797
|
-
function
|
|
27797
|
+
function Ji(t, ...e) {
|
|
27798
27798
|
return e.length === 1 && Ae(e[0]) && (e = e[0]), (!e || !e.hasOwnProperty) && (e = {}), t.replace(QL, (n, r) => e.hasOwnProperty(r) ? e[r] : "");
|
|
27799
27799
|
}
|
|
27800
|
-
const An = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), eO = (t, e, n) => tO({ l: t, k: e, s: n }), tO = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), at = (t) => typeof t == "number" && isFinite(t), nO = (t) => wc(t) === "[object Date]", co = (t) => wc(t) === "[object RegExp]",
|
|
27800
|
+
const An = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), eO = (t, e, n) => tO({ l: t, k: e, s: n }), tO = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), at = (t) => typeof t == "number" && isFinite(t), nO = (t) => wc(t) === "[object Date]", co = (t) => wc(t) === "[object RegExp]", Yi = (t) => _e(t) && Object.keys(t).length === 0, ft = Object.assign, rO = Object.create, Be = (t = null) => rO(t);
|
|
27801
27801
|
let Td;
|
|
27802
27802
|
const Er = () => Td || (Td = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Be());
|
|
27803
27803
|
function Md(t) {
|
|
@@ -27871,7 +27871,7 @@ function Cc() {
|
|
|
27871
27871
|
};
|
|
27872
27872
|
}
|
|
27873
27873
|
const As = (t) => !Ae(t) || tt(t);
|
|
27874
|
-
function
|
|
27874
|
+
function Vs(t, e) {
|
|
27875
27875
|
if (As(t) || As(e))
|
|
27876
27876
|
throw new Error("Invalid value");
|
|
27877
27877
|
const n = [{ src: t, des: e }];
|
|
@@ -27937,7 +27937,7 @@ const ye = {
|
|
|
27937
27937
|
[ye.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
27938
27938
|
};
|
|
27939
27939
|
function yo(t, e, n = {}) {
|
|
27940
|
-
const { domain: r, messages: o, args: s } = n, i = process.env.NODE_ENV !== "production" ?
|
|
27940
|
+
const { domain: r, messages: o, args: s } = n, i = process.env.NODE_ENV !== "production" ? Ji((o || dO)[t] || "", ...s || []) : t, l = new SyntaxError(String(i));
|
|
27941
27941
|
return l.code = t, e && (l.location = e), l.domain = r, l;
|
|
27942
27942
|
}
|
|
27943
27943
|
function fO(t) {
|
|
@@ -28899,7 +28899,7 @@ const Mm = [
|
|
|
28899
28899
|
function Qo(t) {
|
|
28900
28900
|
return new Error(`unhandled node type: ${t}`);
|
|
28901
28901
|
}
|
|
28902
|
-
function
|
|
28902
|
+
function Tl(t) {
|
|
28903
28903
|
return (n) => WO(n, t);
|
|
28904
28904
|
}
|
|
28905
28905
|
function WO(t, e) {
|
|
@@ -28964,7 +28964,7 @@ function ga(t, e) {
|
|
|
28964
28964
|
}
|
|
28965
28965
|
const KO = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
28966
28966
|
function qO(t, e) {
|
|
28967
|
-
e && hO(t) && Tn(
|
|
28967
|
+
e && hO(t) && Tn(Ji(KO, { source: t }));
|
|
28968
28968
|
}
|
|
28969
28969
|
const GO = (t) => t;
|
|
28970
28970
|
let Ls = Be();
|
|
@@ -28987,7 +28987,7 @@ function YO(t, e) {
|
|
|
28987
28987
|
...e,
|
|
28988
28988
|
location: process.env.NODE_ENV !== "production",
|
|
28989
28989
|
jit: !0
|
|
28990
|
-
}), a =
|
|
28990
|
+
}), a = Tl(i);
|
|
28991
28991
|
return l ? a : Ls[o] = a;
|
|
28992
28992
|
} else {
|
|
28993
28993
|
if (process.env.NODE_ENV !== "production" && !ln(t))
|
|
@@ -28995,9 +28995,9 @@ function YO(t, e) {
|
|
|
28995
28995
|
const n = t.cacheKey;
|
|
28996
28996
|
if (n) {
|
|
28997
28997
|
const r = Ls[n];
|
|
28998
|
-
return r || (Ls[n] =
|
|
28998
|
+
return r || (Ls[n] = Tl(t));
|
|
28999
28999
|
} else
|
|
29000
|
-
return
|
|
29000
|
+
return Tl(t);
|
|
29001
29001
|
}
|
|
29002
29002
|
}
|
|
29003
29003
|
let es = null;
|
|
@@ -29041,18 +29041,18 @@ const n4 = {
|
|
|
29041
29041
|
function _c(t, e) {
|
|
29042
29042
|
return e.locale != null ? Rd(e.locale) : Rd(t.locale);
|
|
29043
29043
|
}
|
|
29044
|
-
let
|
|
29044
|
+
let Ml;
|
|
29045
29045
|
function Rd(t) {
|
|
29046
29046
|
if (se(t))
|
|
29047
29047
|
return t;
|
|
29048
29048
|
if (He(t)) {
|
|
29049
|
-
if (t.resolvedOnce &&
|
|
29050
|
-
return
|
|
29049
|
+
if (t.resolvedOnce && Ml != null)
|
|
29050
|
+
return Ml;
|
|
29051
29051
|
if (t.constructor.name === "Function") {
|
|
29052
29052
|
const e = t();
|
|
29053
29053
|
if (iO(e))
|
|
29054
29054
|
throw zn(At.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
29055
|
-
return
|
|
29055
|
+
return Ml = e;
|
|
29056
29056
|
} else
|
|
29057
29057
|
throw zn(At.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
29058
29058
|
} else
|
|
@@ -29411,9 +29411,9 @@ const $t = {
|
|
|
29411
29411
|
[$t.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
|
|
29412
29412
|
};
|
|
29413
29413
|
function Fr(t, ...e) {
|
|
29414
|
-
return
|
|
29414
|
+
return Ji(m4[t], ...e);
|
|
29415
29415
|
}
|
|
29416
|
-
const g4 = "11.1.12",
|
|
29416
|
+
const g4 = "11.1.12", Xi = -1, ts = "en-US", Li = "", Fd = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
|
|
29417
29417
|
function y4() {
|
|
29418
29418
|
return {
|
|
29419
29419
|
upper: (t, e) => e === "text" && se(t) ? t.toUpperCase() : e === "vnode" && Ae(t) && "__v_isVNode" in t ? t.children.toUpperCase() : t,
|
|
@@ -29443,7 +29443,7 @@ const Bd = (t) => {
|
|
|
29443
29443
|
}, C4 = () => Dm;
|
|
29444
29444
|
let Vd = 0;
|
|
29445
29445
|
function E4(t = {}) {
|
|
29446
|
-
const e = He(t.onWarn) ? t.onWarn : Tn, n = se(t.version) ? t.version : g4, r = se(t.locale) || He(t.locale) ? t.locale : ts, o = He(r) ? ts : r, s = tt(t.fallbackLocale) || _e(t.fallbackLocale) || se(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, i = _e(t.messages) ? t.messages :
|
|
29446
|
+
const e = He(t.onWarn) ? t.onWarn : Tn, n = se(t.version) ? t.version : g4, r = se(t.locale) || He(t.locale) ? t.locale : ts, o = He(r) ? ts : r, s = tt(t.fallbackLocale) || _e(t.fallbackLocale) || se(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, i = _e(t.messages) ? t.messages : Al(o), l = _e(t.datetimeFormats) ? t.datetimeFormats : Al(o), a = _e(t.numberFormats) ? t.numberFormats : Al(o), c = ft(Be(), t.modifiers, y4()), u = t.pluralRules || Be(), d = He(t.missing) ? t.missing : null, f = Ne(t.missingWarn) || co(t.missingWarn) ? t.missingWarn : !0, p = Ne(t.fallbackWarn) || co(t.fallbackWarn) ? t.fallbackWarn : !0, h = !!t.fallbackFormat, g = !!t.unresolving, y = He(t.postTranslation) ? t.postTranslation : null, v = _e(t.processor) ? t.processor : null, b = Ne(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, C = !!t.escapeParameter, w = He(t.messageCompiler) ? t.messageCompiler : Nm;
|
|
29447
29447
|
process.env.NODE_ENV !== "production" && He(t.messageCompiler) && xc(Fr($t.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
29448
29448
|
const E = He(t.messageResolver) ? t.messageResolver : Lm || f4, D = He(t.localeFallbacker) ? t.localeFallbacker : Om || r4, S = Ae(t.fallbackContext) ? t.fallbackContext : void 0, M = t, $ = Ae(M.__datetimeFormatters) ? M.__datetimeFormatters : /* @__PURE__ */ new Map(), R = Ae(M.__numberFormatters) ? M.__numberFormatters : /* @__PURE__ */ new Map(), I = Ae(M.__meta) ? M.__meta : {};
|
|
29449
29449
|
Vd++;
|
|
@@ -29473,8 +29473,8 @@ function E4(t = {}) {
|
|
|
29473
29473
|
};
|
|
29474
29474
|
return O.datetimeFormats = l, O.numberFormats = a, O.__datetimeFormatters = $, O.__numberFormatters = R, process.env.NODE_ENV !== "production" && (O.__v_emitter = M.__v_emitter != null ? M.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ZO(O, n, I), O;
|
|
29475
29475
|
}
|
|
29476
|
-
const
|
|
29477
|
-
function
|
|
29476
|
+
const Al = (t) => ({ [t]: Be() });
|
|
29477
|
+
function Zi(t, e) {
|
|
29478
29478
|
return t instanceof RegExp ? t.test(e) : t;
|
|
29479
29479
|
}
|
|
29480
29480
|
function Rm(t, e) {
|
|
@@ -29520,7 +29520,7 @@ const zd = typeof Intl < "u", $m = {
|
|
|
29520
29520
|
function Hd(t, ...e) {
|
|
29521
29521
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: s, localeFallbacker: i } = t, { __datetimeFormatters: l } = t;
|
|
29522
29522
|
if (process.env.NODE_ENV !== "production" && !$m.dateTimeFormat)
|
|
29523
|
-
return s(Fr($t.CANNOT_FORMAT_DATE)),
|
|
29523
|
+
return s(Fr($t.CANNOT_FORMAT_DATE)), Li;
|
|
29524
29524
|
const [a, c, u, d] = ya(...e), f = Ne(u.missingWarn) ? u.missingWarn : t.missingWarn, p = Ne(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, h = !!u.part, g = _c(t, u), y = i(
|
|
29525
29525
|
t,
|
|
29526
29526
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -29532,7 +29532,7 @@ function Hd(t, ...e) {
|
|
|
29532
29532
|
let v = {}, b, C = null, w = g, E = null;
|
|
29533
29533
|
const D = "datetime format";
|
|
29534
29534
|
for (let $ = 0; $ < y.length; $++) {
|
|
29535
|
-
if (b = E = y[$], process.env.NODE_ENV !== "production" && g !== b &&
|
|
29535
|
+
if (b = E = y[$], process.env.NODE_ENV !== "production" && g !== b && Zi(p, a) && s(Fr($t.FALLBACK_TO_DATE_FORMAT, {
|
|
29536
29536
|
key: a,
|
|
29537
29537
|
target: b
|
|
29538
29538
|
})), process.env.NODE_ENV !== "production" && g !== b) {
|
|
@@ -29550,9 +29550,9 @@ function Hd(t, ...e) {
|
|
|
29550
29550
|
Tc(t, a, b, f, D), w = E;
|
|
29551
29551
|
}
|
|
29552
29552
|
if (!_e(C) || !se(b))
|
|
29553
|
-
return r ?
|
|
29553
|
+
return r ? Xi : a;
|
|
29554
29554
|
let S = `${b}__${a}`;
|
|
29555
|
-
|
|
29555
|
+
Yi(d) || (S = `${S}__${JSON.stringify(d)}`);
|
|
29556
29556
|
let M = l.get(S);
|
|
29557
29557
|
return M || (M = new Intl.DateTimeFormat(b, ft({}, C, d)), l.set(S, M)), h ? M.formatToParts(c) : M.format(c);
|
|
29558
29558
|
}
|
|
@@ -29614,7 +29614,7 @@ function jd(t, e, n) {
|
|
|
29614
29614
|
function Ud(t, ...e) {
|
|
29615
29615
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: s, localeFallbacker: i } = t, { __numberFormatters: l } = t;
|
|
29616
29616
|
if (process.env.NODE_ENV !== "production" && !$m.numberFormat)
|
|
29617
|
-
return s(Fr($t.CANNOT_FORMAT_NUMBER)),
|
|
29617
|
+
return s(Fr($t.CANNOT_FORMAT_NUMBER)), Li;
|
|
29618
29618
|
const [a, c, u, d] = va(...e), f = Ne(u.missingWarn) ? u.missingWarn : t.missingWarn, p = Ne(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, h = !!u.part, g = _c(t, u), y = i(
|
|
29619
29619
|
t,
|
|
29620
29620
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -29626,7 +29626,7 @@ function Ud(t, ...e) {
|
|
|
29626
29626
|
let v = {}, b, C = null, w = g, E = null;
|
|
29627
29627
|
const D = "number format";
|
|
29628
29628
|
for (let $ = 0; $ < y.length; $++) {
|
|
29629
|
-
if (b = E = y[$], process.env.NODE_ENV !== "production" && g !== b &&
|
|
29629
|
+
if (b = E = y[$], process.env.NODE_ENV !== "production" && g !== b && Zi(p, a) && s(Fr($t.FALLBACK_TO_NUMBER_FORMAT, {
|
|
29630
29630
|
key: a,
|
|
29631
29631
|
target: b
|
|
29632
29632
|
})), process.env.NODE_ENV !== "production" && g !== b) {
|
|
@@ -29644,9 +29644,9 @@ function Ud(t, ...e) {
|
|
|
29644
29644
|
Tc(t, a, b, f, D), w = E;
|
|
29645
29645
|
}
|
|
29646
29646
|
if (!_e(C) || !se(b))
|
|
29647
|
-
return r ?
|
|
29647
|
+
return r ? Xi : a;
|
|
29648
29648
|
let S = `${b}__${a}`;
|
|
29649
|
-
|
|
29649
|
+
Yi(d) || (S = `${S}__${JSON.stringify(d)}`);
|
|
29650
29650
|
let M = l.get(S);
|
|
29651
29651
|
return M || (M = new Intl.NumberFormat(b, ft({}, C, d)), l.set(S, M)), h ? M.formatToParts(c) : M.format(c);
|
|
29652
29652
|
}
|
|
@@ -29740,7 +29740,7 @@ function Gd(t, ...e) {
|
|
|
29740
29740
|
l[y] || Be()
|
|
29741
29741
|
] : Vm(t, a, y, i, d, u), w = v, E = a;
|
|
29742
29742
|
if (!p && !(se(w) || ln(w) || tn(w)) && g && (w = h, E = w), !p && (!(se(w) || ln(w) || tn(w)) || !se(b)))
|
|
29743
|
-
return o ?
|
|
29743
|
+
return o ? Xi : a;
|
|
29744
29744
|
if (process.env.NODE_ENV !== "production" && se(w) && t.messageCompiler == null)
|
|
29745
29745
|
return Tn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`), a;
|
|
29746
29746
|
let D = !1;
|
|
@@ -29773,7 +29773,7 @@ function Vm(t, e, n, r, o, s) {
|
|
|
29773
29773
|
let d = Be(), f, p = null, h = n, g = null;
|
|
29774
29774
|
const y = "translate";
|
|
29775
29775
|
for (let v = 0; v < u.length; v++) {
|
|
29776
|
-
if (f = g = u[v], process.env.NODE_ENV !== "production" && n !== f && !Pm(n, f) &&
|
|
29776
|
+
if (f = g = u[v], process.env.NODE_ENV !== "production" && n !== f && !Pm(n, f) && Zi(o, e) && l(Fr($t.FALLBACK_TO_TRANSLATE, {
|
|
29777
29777
|
key: e,
|
|
29778
29778
|
target: f
|
|
29779
29779
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -29859,7 +29859,7 @@ function ba(...t) {
|
|
|
29859
29859
|
if (!se(e) && !at(e) && !tn(e) && !ln(e))
|
|
29860
29860
|
throw zn(At.INVALID_ARGUMENT);
|
|
29861
29861
|
const s = at(e) ? String(e) : (tn(e), e);
|
|
29862
|
-
return at(n) ? o.plural = n : se(n) ? o.default = n : _e(n) && !
|
|
29862
|
+
return at(n) ? o.plural = n : se(n) ? o.default = n : _e(n) && !Yi(n) ? o.named = n : tt(n) && (o.list = n), at(r) ? o.plural = r : se(r) ? o.default = r : _e(r) && ft(o, r), [s, o];
|
|
29863
29863
|
}
|
|
29864
29864
|
function P4(t, e, n, r, o, s) {
|
|
29865
29865
|
return {
|
|
@@ -30087,7 +30087,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
30087
30087
|
[nn.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
30088
30088
|
};
|
|
30089
30089
|
function fo(t, ...e) {
|
|
30090
|
-
return
|
|
30090
|
+
return Ji(Y4[t], ...e);
|
|
30091
30091
|
}
|
|
30092
30092
|
function rs(t) {
|
|
30093
30093
|
if (!Ae(t) || ln(t))
|
|
@@ -30122,9 +30122,9 @@ function Mc(t, e) {
|
|
|
30122
30122
|
if (tt(r) && r.forEach((l) => {
|
|
30123
30123
|
if ("locale" in l && "resource" in l) {
|
|
30124
30124
|
const { locale: a, resource: c } = l;
|
|
30125
|
-
a ? (i[a] = i[a] || Be(),
|
|
30125
|
+
a ? (i[a] = i[a] || Be(), Vs(c, i[a])) : Vs(c, i);
|
|
30126
30126
|
} else
|
|
30127
|
-
se(l) &&
|
|
30127
|
+
se(l) && Vs(JSON.parse(l), i);
|
|
30128
30128
|
}), o == null && s)
|
|
30129
30129
|
for (const l in i)
|
|
30130
30130
|
fn(i, l) && rs(i[l]);
|
|
@@ -30253,9 +30253,9 @@ function Ac(t = {}) {
|
|
|
30253
30253
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (S.fallbackContext = void 0);
|
|
30254
30254
|
}
|
|
30255
30255
|
if (Se !== "translate exists" && // for not `te` (e.g `t`)
|
|
30256
|
-
at(re) && re ===
|
|
30256
|
+
at(re) && re === Xi || Se === "translate exists" && !re) {
|
|
30257
30257
|
const [le, ke] = Y();
|
|
30258
|
-
if (process.env.NODE_ENV !== "production" && e && se(le) && Z(Se, ke) && (h && (
|
|
30258
|
+
if (process.env.NODE_ENV !== "production" && e && se(le) && Z(Se, ke) && (h && (Zi(p, le) || Rm(f, le)) && Tn(fo(nn.FALLBACK_TO_ROOT, {
|
|
30259
30259
|
key: le,
|
|
30260
30260
|
type: Se
|
|
30261
30261
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -30284,10 +30284,10 @@ function Ac(t = {}) {
|
|
|
30284
30284
|
return Re(Y, Se, ft({ resolvedMessage: !0 }, _ || {}));
|
|
30285
30285
|
}
|
|
30286
30286
|
function lt(...V) {
|
|
30287
|
-
return he((Y) => Reflect.apply(Hd, null, [Y, ...V]), () => ya(...V), "datetime format", (Y) => Reflect.apply(Y.d, Y, [...V]), () =>
|
|
30287
|
+
return he((Y) => Reflect.apply(Hd, null, [Y, ...V]), () => ya(...V), "datetime format", (Y) => Reflect.apply(Y.d, Y, [...V]), () => Li, (Y) => se(Y) || tt(Y));
|
|
30288
30288
|
}
|
|
30289
30289
|
function et(...V) {
|
|
30290
|
-
return he((Y) => Reflect.apply(Ud, null, [Y, ...V]), () => va(...V), "number format", (Y) => Reflect.apply(Y.n, Y, [...V]), () =>
|
|
30290
|
+
return he((Y) => Reflect.apply(Ud, null, [Y, ...V]), () => va(...V), "number format", (Y) => Reflect.apply(Y.n, Y, [...V]), () => Li, (Y) => se(Y) || tt(Y));
|
|
30291
30291
|
}
|
|
30292
30292
|
function gt(V) {
|
|
30293
30293
|
return V.map((Y) => se(Y) || at(Y) || Ne(Y) ? Jd(String(Y)) : Y);
|
|
@@ -30360,7 +30360,7 @@ function Ac(t = {}) {
|
|
|
30360
30360
|
if (o)
|
|
30361
30361
|
for (const _ in Se)
|
|
30362
30362
|
fn(Se, _) && rs(Se[_]);
|
|
30363
|
-
Y = Se[V],
|
|
30363
|
+
Y = Se[V], Vs(Y, c.value[V]), S.messages = c.value;
|
|
30364
30364
|
}
|
|
30365
30365
|
function T(V) {
|
|
30366
30366
|
return u.value[V] || {};
|
|
@@ -30460,7 +30460,7 @@ function Ac(t = {}) {
|
|
|
30460
30460
|
S.__v_emitter = void 0;
|
|
30461
30461
|
}), Ee;
|
|
30462
30462
|
}
|
|
30463
|
-
const qm = "vue-i18n: composer properties",
|
|
30463
|
+
const qm = "vue-i18n: composer properties", Nl = {
|
|
30464
30464
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
30465
30465
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
30466
30466
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -30475,7 +30475,7 @@ async function tI(t, e) {
|
|
|
30475
30475
|
try {
|
|
30476
30476
|
K4({
|
|
30477
30477
|
id: "vue-devtools-plugin-vue-i18n",
|
|
30478
|
-
label:
|
|
30478
|
+
label: Nl["vue-devtools-plugin-vue-i18n"],
|
|
30479
30479
|
packageName: "vue-i18n",
|
|
30480
30480
|
homepage: "https://vue-i18n.intlify.dev",
|
|
30481
30481
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
@@ -30489,7 +30489,7 @@ async function tI(t, e) {
|
|
|
30489
30489
|
i.vnode.el && i.vnode.el.__VUE_I18N__ && l && (e.mode === "legacy" ? i.vnode.el.__VUE_I18N__ !== e.global.__composer && ef(l, i.vnode.el.__VUE_I18N__) : ef(l, i.vnode.el.__VUE_I18N__));
|
|
30490
30490
|
}), o.addInspector({
|
|
30491
30491
|
id: "vue-i18n-resource-inspector",
|
|
30492
|
-
label:
|
|
30492
|
+
label: Nl["vue-i18n-resource-inspector"],
|
|
30493
30493
|
icon: "language",
|
|
30494
30494
|
treeFilterPlaceholder: Q4["vue-i18n-resource-inspector"]
|
|
30495
30495
|
}), o.on.getInspectorTree((i) => {
|
|
@@ -30512,7 +30512,7 @@ async function tI(t, e) {
|
|
|
30512
30512
|
i.app === t && i.inspectorId === "vue-i18n-resource-inspector" && dI(i, e);
|
|
30513
30513
|
}), o.addTimelineLayer({
|
|
30514
30514
|
id: "vue-i18n-timeline",
|
|
30515
|
-
label:
|
|
30515
|
+
label: Nl["vue-i18n-timeline"],
|
|
30516
30516
|
color: eI["vue-i18n-timeline"]
|
|
30517
30517
|
}), n(!0);
|
|
30518
30518
|
});
|
|
@@ -31245,7 +31245,7 @@ function EI(t) {
|
|
|
31245
31245
|
return e;
|
|
31246
31246
|
}
|
|
31247
31247
|
function SI(t, e) {
|
|
31248
|
-
return
|
|
31248
|
+
return Yi(t) ? "__i18n" in e ? "local" : "global" : t.useScope ? t.useScope : "local";
|
|
31249
31249
|
}
|
|
31250
31250
|
function _I(t) {
|
|
31251
31251
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
@@ -31397,7 +31397,7 @@ const II = {}, DI = {}, RI = "Paragraph", PI = "Heading 1", $I = "Heading 2", FI
|
|
|
31397
31397
|
create: v3,
|
|
31398
31398
|
update: b3,
|
|
31399
31399
|
cancel: x3
|
|
31400
|
-
},
|
|
31400
|
+
}, Os = kI({
|
|
31401
31401
|
legacy: !1,
|
|
31402
31402
|
// Set to false to use Composition API
|
|
31403
31403
|
locale: "uk",
|
|
@@ -31411,12 +31411,15 @@ const II = {}, DI = {}, RI = "Paragraph", PI = "Heading 1", $I = "Heading 2", FI
|
|
|
31411
31411
|
}), S3 = {
|
|
31412
31412
|
install: (t, e = {}) => {
|
|
31413
31413
|
if (e.i18nConfig) {
|
|
31414
|
-
const n = e.i18nConfig, r =
|
|
31415
|
-
r && n.global?.
|
|
31416
|
-
n.global.mergeLocaleMessage
|
|
31414
|
+
const n = e.i18nConfig, r = Os.global?.messages?.value ?? Os.global?.messages ?? Os.messages ?? {};
|
|
31415
|
+
r && typeof n.global?.mergeLocaleMessage == "function" ? Object.keys(r).forEach((o) => {
|
|
31416
|
+
n.global.mergeLocaleMessage(o, r[o]);
|
|
31417
|
+
}) : r && typeof n.global?.setLocaleMessage == "function" && Object.keys(r).forEach((o) => {
|
|
31418
|
+
const s = n.global.getLocaleMessage?.(o) ?? {};
|
|
31419
|
+
n.global.setLocaleMessage(o, { ...s, ...r[o] });
|
|
31417
31420
|
});
|
|
31418
31421
|
} else
|
|
31419
|
-
t.use(
|
|
31422
|
+
t.use(Os);
|
|
31420
31423
|
t.component("vs-richtext", Sd), t.component("vs-richtext-md", Sd), t.component("vs-richtext-page", ZL);
|
|
31421
31424
|
}
|
|
31422
31425
|
};
|