@opengis/richtext 0.0.6 → 0.0.8
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 +396 -386
- package/dist/richtext.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/richtext.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $n, shallowRef as qh, onMounted as ki, onBeforeUnmount as Es, h as
|
|
1
|
+
import { defineComponent as $n, shallowRef as qh, onMounted as ki, onBeforeUnmount as Es, h as jr, ref as Oe, getCurrentInstance as rr, watchEffect as bb, nextTick as Gh, unref as dt, markRaw as yb, customRef as wb, createElementBlock as le, openBlock as ee, createElementVNode as z, normalizeClass as Ze, watch as ir, createCommentVNode as xr, createBlock as Ut, renderSlot as $i, Teleport as Jh, createVNode as Rt, Transition as Yh, withCtx as At, withDirectives as Du, normalizeStyle as ui, vShow as vb, Fragment as wn, renderList as Ur, toDisplayString as ci, resolveComponent as eo, mergeProps as _b, vModelDynamic as kb, effectScope as Eb, computed as fn, isRef as Sb, inject as Cb, onUnmounted as Tb, Text as Ab, resolveDynamicComponent as mo, vModelText as Ob } from "vue";
|
|
2
2
|
function Ye(t) {
|
|
3
3
|
this.content = t;
|
|
4
4
|
}
|
|
@@ -651,12 +651,12 @@ function tp(t, e, n, r) {
|
|
|
651
651
|
} else if (n.content.size)
|
|
652
652
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
653
653
|
let o = t.parent, a = o.content;
|
|
654
|
-
return
|
|
654
|
+
return Cr(o, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
655
655
|
} else {
|
|
656
656
|
let { start: o, end: a } = Nb(n, t);
|
|
657
|
-
return
|
|
657
|
+
return Cr(s, rp(t, o, a, e, r));
|
|
658
658
|
}
|
|
659
|
-
else return
|
|
659
|
+
else return Cr(s, yo(t, e, r));
|
|
660
660
|
}
|
|
661
661
|
function np(t, e) {
|
|
662
662
|
if (!e.type.compatibleContent(t.type))
|
|
@@ -666,29 +666,29 @@ function Nl(t, e, n) {
|
|
|
666
666
|
let r = t.node(n);
|
|
667
667
|
return np(r, e.node(n)), r;
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Sr(t, e) {
|
|
670
670
|
let n = e.length - 1;
|
|
671
671
|
n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
|
|
672
672
|
}
|
|
673
673
|
function Hi(t, e, n, r) {
|
|
674
674
|
let i = (e || t).node(n), s = 0, o = e ? e.index(n) : i.childCount;
|
|
675
|
-
t && (s = t.index(n), t.depth > n ? s++ : t.textOffset && (
|
|
675
|
+
t && (s = t.index(n), t.depth > n ? s++ : t.textOffset && (Sr(t.nodeAfter, r), s++));
|
|
676
676
|
for (let a = s; a < o; a++)
|
|
677
|
-
|
|
678
|
-
e && e.depth == n && e.textOffset &&
|
|
677
|
+
Sr(i.child(a), r);
|
|
678
|
+
e && e.depth == n && e.textOffset && Sr(e.nodeBefore, r);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function Cr(t, e) {
|
|
681
681
|
return t.type.checkContent(e), t.copy(e);
|
|
682
682
|
}
|
|
683
683
|
function rp(t, e, n, r, i) {
|
|
684
684
|
let s = t.depth > i && Nl(t, e, i + 1), o = r.depth > i && Nl(n, r, i + 1), a = [];
|
|
685
|
-
return Hi(null, t, i, a), s && o && e.index(i) == n.index(i) ? (np(s, o),
|
|
685
|
+
return Hi(null, t, i, a), s && o && e.index(i) == n.index(i) ? (np(s, o), Sr(Cr(s, rp(t, e, n, r, i + 1)), a)) : (s && Sr(Cr(s, yo(t, e, i + 1)), a), Hi(e, n, i, a), o && Sr(Cr(o, yo(n, r, i + 1)), a)), Hi(r, null, i, a), new $(a);
|
|
686
686
|
}
|
|
687
687
|
function yo(t, e, n) {
|
|
688
688
|
let r = [];
|
|
689
689
|
if (Hi(null, t, n, r), t.depth > n) {
|
|
690
690
|
let i = Nl(t, e, n + 1);
|
|
691
|
-
|
|
691
|
+
Sr(Cr(i, yo(t, e, n + 1)), r);
|
|
692
692
|
}
|
|
693
693
|
return Hi(e, null, n, r), new $(r);
|
|
694
694
|
}
|
|
@@ -1408,7 +1408,7 @@ function ip(t, e) {
|
|
|
1408
1408
|
e = t[n].type.name + "(" + e + ")";
|
|
1409
1409
|
return e;
|
|
1410
1410
|
}
|
|
1411
|
-
class
|
|
1411
|
+
class Lr {
|
|
1412
1412
|
/**
|
|
1413
1413
|
@internal
|
|
1414
1414
|
*/
|
|
@@ -1421,7 +1421,7 @@ class xr {
|
|
|
1421
1421
|
static parse(e, n) {
|
|
1422
1422
|
let r = new Pb(e, n);
|
|
1423
1423
|
if (r.next == null)
|
|
1424
|
-
return
|
|
1424
|
+
return Lr.empty;
|
|
1425
1425
|
let i = sp(r);
|
|
1426
1426
|
r.next && r.err("Unexpected trailing text");
|
|
1427
1427
|
let s = zb(Hb(i));
|
|
@@ -1570,7 +1570,7 @@ class xr {
|
|
|
1570
1570
|
`);
|
|
1571
1571
|
}
|
|
1572
1572
|
}
|
|
1573
|
-
|
|
1573
|
+
Lr.empty = new Lr(!0);
|
|
1574
1574
|
class Pb {
|
|
1575
1575
|
constructor(e, n) {
|
|
1576
1576
|
this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
|
|
@@ -1733,7 +1733,7 @@ function zb(t) {
|
|
|
1733
1733
|
});
|
|
1734
1734
|
});
|
|
1735
1735
|
});
|
|
1736
|
-
let s = e[r.join(",")] = new
|
|
1736
|
+
let s = e[r.join(",")] = new Lr(r.indexOf(t.length - 1) > -1);
|
|
1737
1737
|
for (let o = 0; o < i.length; o++) {
|
|
1738
1738
|
let a = i[o][1].sort(op);
|
|
1739
1739
|
s.next.push({ type: i[o][0], next: e[a.join(",")] || n(a) });
|
|
@@ -1816,7 +1816,7 @@ let Qc = class dp {
|
|
|
1816
1816
|
True for node types that allow no content.
|
|
1817
1817
|
*/
|
|
1818
1818
|
get isLeaf() {
|
|
1819
|
-
return this.contentMatch ==
|
|
1819
|
+
return this.contentMatch == Lr.empty;
|
|
1820
1820
|
}
|
|
1821
1821
|
/**
|
|
1822
1822
|
True when this node is an atom, i.e. when it does not have
|
|
@@ -2057,7 +2057,7 @@ class fp {
|
|
|
2057
2057
|
if (i in this.marks)
|
|
2058
2058
|
throw new RangeError(i + " can not be both a node and a mark");
|
|
2059
2059
|
let s = this.nodes[i], o = s.spec.content || "", a = s.spec.marks;
|
|
2060
|
-
if (s.contentMatch = r[o] || (r[o] =
|
|
2060
|
+
if (s.contentMatch = r[o] || (r[o] = Lr.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.spec.linebreakReplacement) {
|
|
2061
2061
|
if (this.linebreakReplacement)
|
|
2062
2062
|
throw new RangeError("Multiple linebreak nodes defined");
|
|
2063
2063
|
if (!s.isInline || !s.isLeaf)
|
|
@@ -2147,7 +2147,7 @@ function Wb(t) {
|
|
|
2147
2147
|
function Kb(t) {
|
|
2148
2148
|
return t.style != null;
|
|
2149
2149
|
}
|
|
2150
|
-
let
|
|
2150
|
+
let oi = class Ll {
|
|
2151
2151
|
/**
|
|
2152
2152
|
Create a parser that targets the given schema, using the given
|
|
2153
2153
|
parsing rules.
|
|
@@ -2646,7 +2646,7 @@ function rd(t, e) {
|
|
|
2646
2646
|
return !0;
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
2649
|
-
class
|
|
2649
|
+
class Wr {
|
|
2650
2650
|
/**
|
|
2651
2651
|
Create a serializer. `nodes` should map node names to functions
|
|
2652
2652
|
that take a node and return a description of the corresponding
|
|
@@ -2733,7 +2733,7 @@ class Ur {
|
|
|
2733
2733
|
properties in a schema's node and mark specs.
|
|
2734
2734
|
*/
|
|
2735
2735
|
static fromSchema(e) {
|
|
2736
|
-
return e.cached.domSerializer || (e.cached.domSerializer = new
|
|
2736
|
+
return e.cached.domSerializer || (e.cached.domSerializer = new Wr(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
2737
2737
|
}
|
|
2738
2738
|
/**
|
|
2739
2739
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -3260,7 +3260,7 @@ class Xn extends ot {
|
|
|
3260
3260
|
return new Xn(this.pos, this.mark);
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
|
-
return new
|
|
3263
|
+
return new Rr(this.pos, this.mark);
|
|
3264
3264
|
}
|
|
3265
3265
|
map(e) {
|
|
3266
3266
|
let n = e.mapResult(this.pos, 1);
|
|
@@ -3279,7 +3279,7 @@ class Xn extends ot {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
ot.jsonID("addNodeMark", Xn);
|
|
3282
|
-
class
|
|
3282
|
+
class Rr extends ot {
|
|
3283
3283
|
/**
|
|
3284
3284
|
Create a mark-removing step.
|
|
3285
3285
|
*/
|
|
@@ -3299,7 +3299,7 @@ class Lr extends ot {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
map(e) {
|
|
3301
3301
|
let n = e.mapResult(this.pos, 1);
|
|
3302
|
-
return n.deletedAfter ? null : new
|
|
3302
|
+
return n.deletedAfter ? null : new Rr(n.pos, this.mark);
|
|
3303
3303
|
}
|
|
3304
3304
|
toJSON() {
|
|
3305
3305
|
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -3310,10 +3310,10 @@ class Lr extends ot {
|
|
|
3310
3310
|
static fromJSON(e, n) {
|
|
3311
3311
|
if (typeof n.pos != "number")
|
|
3312
3312
|
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
3313
|
-
return new
|
|
3313
|
+
return new Rr(n.pos, e.markFromJSON(n.mark));
|
|
3314
3314
|
}
|
|
3315
3315
|
}
|
|
3316
|
-
ot.jsonID("removeNodeMark",
|
|
3316
|
+
ot.jsonID("removeNodeMark", Rr);
|
|
3317
3317
|
class Ue extends ot {
|
|
3318
3318
|
/**
|
|
3319
3319
|
The given `slice` should fit the 'gap' between `from` and
|
|
@@ -3641,7 +3641,7 @@ function cy(t, e, n = 1, r) {
|
|
|
3641
3641
|
}
|
|
3642
3642
|
t.step(new Ue(e, e, new W(s.append(o), n, n), !0));
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function ar(t, e) {
|
|
3645
3645
|
let n = t.resolve(e), r = n.index();
|
|
3646
3646
|
return kp(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
3647
3647
|
}
|
|
@@ -4009,7 +4009,7 @@ function Tp(t, e) {
|
|
|
4009
4009
|
}
|
|
4010
4010
|
return n;
|
|
4011
4011
|
}
|
|
4012
|
-
class
|
|
4012
|
+
class ai extends ot {
|
|
4013
4013
|
/**
|
|
4014
4014
|
Construct an attribute step.
|
|
4015
4015
|
*/
|
|
@@ -4031,11 +4031,11 @@ class oi extends ot {
|
|
|
4031
4031
|
return Nt.empty;
|
|
4032
4032
|
}
|
|
4033
4033
|
invert(e) {
|
|
4034
|
-
return new
|
|
4034
|
+
return new ai(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
4035
4035
|
}
|
|
4036
4036
|
map(e) {
|
|
4037
4037
|
let n = e.mapResult(this.pos, 1);
|
|
4038
|
-
return n.deletedAfter ? null : new
|
|
4038
|
+
return n.deletedAfter ? null : new ai(n.pos, this.attr, this.value);
|
|
4039
4039
|
}
|
|
4040
4040
|
toJSON() {
|
|
4041
4041
|
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
@@ -4043,10 +4043,10 @@ class oi extends ot {
|
|
|
4043
4043
|
static fromJSON(e, n) {
|
|
4044
4044
|
if (typeof n.pos != "number" || typeof n.attr != "string")
|
|
4045
4045
|
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
4046
|
-
return new
|
|
4046
|
+
return new ai(n.pos, n.attr, n.value);
|
|
4047
4047
|
}
|
|
4048
4048
|
}
|
|
4049
|
-
ot.jsonID("attr",
|
|
4049
|
+
ot.jsonID("attr", ai);
|
|
4050
4050
|
class ns extends ot {
|
|
4051
4051
|
/**
|
|
4052
4052
|
Construct an attribute step.
|
|
@@ -4247,7 +4247,7 @@ class $u {
|
|
|
4247
4247
|
to set attributes on the document itself.
|
|
4248
4248
|
*/
|
|
4249
4249
|
setNodeAttribute(e, n, r) {
|
|
4250
|
-
return this.step(new
|
|
4250
|
+
return this.step(new ai(e, n, r)), this;
|
|
4251
4251
|
}
|
|
4252
4252
|
/**
|
|
4253
4253
|
Set a single attribute on the document to a new value.
|
|
@@ -4270,11 +4270,11 @@ class $u {
|
|
|
4270
4270
|
if (!r)
|
|
4271
4271
|
throw new RangeError("No node at position " + e);
|
|
4272
4272
|
if (n instanceof Ce)
|
|
4273
|
-
n.isInSet(r.marks) && this.step(new
|
|
4273
|
+
n.isInSet(r.marks) && this.step(new Rr(e, n));
|
|
4274
4274
|
else {
|
|
4275
4275
|
let i = r.marks, s, o = [];
|
|
4276
4276
|
for (; s = n.isInSet(i); )
|
|
4277
|
-
o.push(new
|
|
4277
|
+
o.push(new Rr(e, s)), i = s.removeFromSet(i);
|
|
4278
4278
|
for (let a = o.length - 1; a >= 0; a--)
|
|
4279
4279
|
this.step(o[a]);
|
|
4280
4280
|
}
|
|
@@ -4410,11 +4410,11 @@ class te {
|
|
|
4410
4410
|
found.
|
|
4411
4411
|
*/
|
|
4412
4412
|
static findFrom(e, n, r = !1) {
|
|
4413
|
-
let i = e.parent.inlineContent ? new ne(e) :
|
|
4413
|
+
let i = e.parent.inlineContent ? new ne(e) : Zr(e.node(0), e.parent, e.pos, e.index(), n, r);
|
|
4414
4414
|
if (i)
|
|
4415
4415
|
return i;
|
|
4416
4416
|
for (let s = e.depth - 1; s >= 0; s--) {
|
|
4417
|
-
let o = n < 0 ?
|
|
4417
|
+
let o = n < 0 ? Zr(e.node(0), e.node(s), e.before(s + 1), e.index(s), n, r) : Zr(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, n, r);
|
|
4418
4418
|
if (o)
|
|
4419
4419
|
return o;
|
|
4420
4420
|
}
|
|
@@ -4435,14 +4435,14 @@ class te {
|
|
|
4435
4435
|
exists.
|
|
4436
4436
|
*/
|
|
4437
4437
|
static atStart(e) {
|
|
4438
|
-
return
|
|
4438
|
+
return Zr(e, e, 0, 0, 1) || new Wt(e);
|
|
4439
4439
|
}
|
|
4440
4440
|
/**
|
|
4441
4441
|
Find the cursor or leaf node selection closest to the end of the
|
|
4442
4442
|
given document.
|
|
4443
4443
|
*/
|
|
4444
4444
|
static atEnd(e) {
|
|
4445
|
-
return
|
|
4445
|
+
return Zr(e, e, e.content.size, e.childCount, -1) || new Wt(e);
|
|
4446
4446
|
}
|
|
4447
4447
|
/**
|
|
4448
4448
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -4681,7 +4681,7 @@ const _y = {
|
|
|
4681
4681
|
return new Wt(t);
|
|
4682
4682
|
}
|
|
4683
4683
|
};
|
|
4684
|
-
function
|
|
4684
|
+
function Zr(t, e, n, r, i, s = !1) {
|
|
4685
4685
|
if (e.inlineContent)
|
|
4686
4686
|
return ne.create(t, n);
|
|
4687
4687
|
for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
|
|
@@ -4690,7 +4690,7 @@ function Qr(t, e, n, r, i, s = !1) {
|
|
|
4690
4690
|
if (!s && Z.isSelectable(a))
|
|
4691
4691
|
return Z.create(t, n - (i < 0 ? a.nodeSize : 0));
|
|
4692
4692
|
} else {
|
|
4693
|
-
let l =
|
|
4693
|
+
let l = Zr(t, a, n + i, i < 0 ? a.childCount : 0, i, s);
|
|
4694
4694
|
if (l)
|
|
4695
4695
|
return l;
|
|
4696
4696
|
}
|
|
@@ -4913,7 +4913,7 @@ class qa {
|
|
|
4913
4913
|
});
|
|
4914
4914
|
}
|
|
4915
4915
|
}
|
|
4916
|
-
class
|
|
4916
|
+
class ii {
|
|
4917
4917
|
/**
|
|
4918
4918
|
@internal
|
|
4919
4919
|
*/
|
|
@@ -4988,7 +4988,7 @@ class ri {
|
|
|
4988
4988
|
applyInner(e) {
|
|
4989
4989
|
if (!e.before.eq(this.doc))
|
|
4990
4990
|
throw new RangeError("Applying a mismatched transaction");
|
|
4991
|
-
let n = new
|
|
4991
|
+
let n = new ii(this.config), r = this.config.fields;
|
|
4992
4992
|
for (let i = 0; i < r.length; i++) {
|
|
4993
4993
|
let s = r[i];
|
|
4994
4994
|
n[s.name] = s.apply(e, this[s.name], this, n);
|
|
@@ -5005,7 +5005,7 @@ class ri {
|
|
|
5005
5005
|
Create a new state.
|
|
5006
5006
|
*/
|
|
5007
5007
|
static create(e) {
|
|
5008
|
-
let n = new qa(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new
|
|
5008
|
+
let n = new qa(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new ii(n);
|
|
5009
5009
|
for (let i = 0; i < n.fields.length; i++)
|
|
5010
5010
|
r[n.fields[i].name] = n.fields[i].init(e, r);
|
|
5011
5011
|
return r;
|
|
@@ -5019,7 +5019,7 @@ class ri {
|
|
|
5019
5019
|
configuration object..
|
|
5020
5020
|
*/
|
|
5021
5021
|
reconfigure(e) {
|
|
5022
|
-
let n = new qa(this.schema, e.plugins), r = n.fields, i = new
|
|
5022
|
+
let n = new qa(this.schema, e.plugins), r = n.fields, i = new ii(n);
|
|
5023
5023
|
for (let s = 0; s < r.length; s++) {
|
|
5024
5024
|
let o = r[s].name;
|
|
5025
5025
|
i[o] = this.hasOwnProperty(o) ? this[o] : r[s].init(e, i);
|
|
@@ -5056,7 +5056,7 @@ class ri {
|
|
|
5056
5056
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
5057
5057
|
if (!e.schema)
|
|
5058
5058
|
throw new RangeError("Required config field 'schema' missing");
|
|
5059
|
-
let i = new qa(e.schema, e.plugins), s = new
|
|
5059
|
+
let i = new qa(e.schema, e.plugins), s = new ii(i);
|
|
5060
5060
|
return i.fields.forEach((o) => {
|
|
5061
5061
|
if (o.name == "doc")
|
|
5062
5062
|
s.doc = Zn.fromJSON(e.schema, n.doc);
|
|
@@ -5138,7 +5138,7 @@ const xn = function(t, e, n) {
|
|
|
5138
5138
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
5139
5139
|
}, Sy = function() {
|
|
5140
5140
|
Il = null;
|
|
5141
|
-
},
|
|
5141
|
+
}, Pr = function(t, e, n, r) {
|
|
5142
5142
|
return n && (pd(t, e, n, r, -1) || pd(t, e, n, r, 1));
|
|
5143
5143
|
}, Cy = /^(img|br|input|textarea|hr)$/i;
|
|
5144
5144
|
function pd(t, e, n, r, i) {
|
|
@@ -5211,9 +5211,9 @@ function Ss(t) {
|
|
|
5211
5211
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
5212
5212
|
}
|
|
5213
5213
|
const pa = function(t) {
|
|
5214
|
-
return t.focusNode &&
|
|
5214
|
+
return t.focusNode && Pr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
5215
5215
|
};
|
|
5216
|
-
function
|
|
5216
|
+
function br(t, e) {
|
|
5217
5217
|
let n = document.createEvent("Event");
|
|
5218
5218
|
return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
|
|
5219
5219
|
}
|
|
@@ -5237,9 +5237,9 @@ function Ny(t, e, n) {
|
|
|
5237
5237
|
return { node: r.startContainer, offset: Math.min(jt(r.startContainer), r.startOffset) };
|
|
5238
5238
|
}
|
|
5239
5239
|
}
|
|
5240
|
-
const gn = typeof navigator < "u" ? navigator : null, md = typeof document < "u" ? document : null,
|
|
5241
|
-
en && +(/Firefox\/(\d+)/.exec(
|
|
5242
|
-
const $l = !kt && /Chrome\/(\d+)/.exec(
|
|
5240
|
+
const gn = typeof navigator < "u" ? navigator : null, md = typeof document < "u" ? document : null, lr = gn && gn.userAgent || "", Bl = /Edge\/(\d+)/.exec(lr), Np = /MSIE \d/.exec(lr), Fl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lr), kt = !!(Np || Fl || Bl), er = Np ? document.documentMode : Fl ? +Fl[1] : Bl ? +Bl[1] : 0, en = !kt && /gecko\/(\d+)/i.test(lr);
|
|
5241
|
+
en && +(/Firefox\/(\d+)/.exec(lr) || [0, 0])[1];
|
|
5242
|
+
const $l = !kt && /Chrome\/(\d+)/.exec(lr), it = !!$l, xp = $l ? +$l[1] : 0, pt = !kt && !!gn && /Apple Computer/.test(gn.vendor), hi = pt && (/Mobile\/\w+/.test(lr) || !!gn && gn.maxTouchPoints > 2), zt = hi || (gn ? /Mac/.test(gn.platform) : !1), xy = gn ? /Win/.test(gn.platform) : !1, Rn = /Android \d/.test(lr), Cs = !!md && "webkitFontSmoothing" in md.documentElement.style, Ly = Cs ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5243
5243
|
function Ry(t) {
|
|
5244
5244
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
5245
5245
|
return e ? {
|
|
@@ -5319,18 +5319,18 @@ function Rp(t, e) {
|
|
|
5319
5319
|
r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != s && (r.scrollLeft = s);
|
|
5320
5320
|
}
|
|
5321
5321
|
}
|
|
5322
|
-
let
|
|
5322
|
+
let Jr = null;
|
|
5323
5323
|
function By(t) {
|
|
5324
5324
|
if (t.setActive)
|
|
5325
5325
|
return t.setActive();
|
|
5326
|
-
if (
|
|
5327
|
-
return t.focus(
|
|
5326
|
+
if (Jr)
|
|
5327
|
+
return t.focus(Jr);
|
|
5328
5328
|
let e = Lp(t);
|
|
5329
|
-
t.focus(
|
|
5329
|
+
t.focus(Jr == null ? {
|
|
5330
5330
|
get preventScroll() {
|
|
5331
|
-
return
|
|
5331
|
+
return Jr = { preventScroll: !0 }, !0;
|
|
5332
5332
|
}
|
|
5333
|
-
} : void 0),
|
|
5333
|
+
} : void 0), Jr || (Jr = !1, Rp(e, 0));
|
|
5334
5334
|
}
|
|
5335
5335
|
function Pp(t, e) {
|
|
5336
5336
|
let n, r = 2e8, i, s = 0, o = e.top, a = e.top, l, u;
|
|
@@ -5573,7 +5573,7 @@ let yd = null, wd = null, vd = !1;
|
|
|
5573
5573
|
function qy(t, e, n) {
|
|
5574
5574
|
return yd == e && wd == n ? vd : (yd = e, wd = n, vd = n == "up" || n == "down" ? Uy(t, e, n) : Ky(t, e, n));
|
|
5575
5575
|
}
|
|
5576
|
-
const Kt = 0, _d = 1,
|
|
5576
|
+
const Kt = 0, _d = 1, wr = 2, bn = 3;
|
|
5577
5577
|
class Ts {
|
|
5578
5578
|
constructor(e, n, r, i) {
|
|
5579
5579
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = Kt, r.pmViewDesc = this;
|
|
@@ -5856,7 +5856,7 @@ class Ts {
|
|
|
5856
5856
|
let m = c.focusNode.childNodes[c.focusOffset];
|
|
5857
5857
|
m && m.contentEditable == "false" && (i = !0);
|
|
5858
5858
|
}
|
|
5859
|
-
if (!(i || f && pt) &&
|
|
5859
|
+
if (!(i || f && pt) && Pr(a.node, a.offset, c.anchorNode, c.anchorOffset) && Pr(l.node, l.offset, c.focusNode, c.focusOffset))
|
|
5860
5860
|
return;
|
|
5861
5861
|
let h = !1;
|
|
5862
5862
|
if ((u.extend || e == n) && !f) {
|
|
@@ -5889,19 +5889,19 @@ class Ts {
|
|
|
5889
5889
|
if (r == o ? e <= o && n >= r : e < o && n > r) {
|
|
5890
5890
|
let a = r + s.border, l = o - s.border;
|
|
5891
5891
|
if (e >= a && n <= l) {
|
|
5892
|
-
this.dirty = e == r || n == o ?
|
|
5892
|
+
this.dirty = e == r || n == o ? wr : _d, e == a && n == l && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = bn : s.markDirty(e - a, n - a);
|
|
5893
5893
|
return;
|
|
5894
5894
|
} else
|
|
5895
|
-
s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ?
|
|
5895
|
+
s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? wr : bn;
|
|
5896
5896
|
}
|
|
5897
5897
|
r = o;
|
|
5898
5898
|
}
|
|
5899
|
-
this.dirty =
|
|
5899
|
+
this.dirty = wr;
|
|
5900
5900
|
}
|
|
5901
5901
|
markParentsDirty() {
|
|
5902
5902
|
let e = 1;
|
|
5903
5903
|
for (let n = this.parent; n; n = n.parent, e++) {
|
|
5904
|
-
let r = e == 1 ?
|
|
5904
|
+
let r = e == 1 ? wr : _d;
|
|
5905
5905
|
n.dirty < r && (n.dirty = r);
|
|
5906
5906
|
}
|
|
5907
5907
|
}
|
|
@@ -5978,13 +5978,13 @@ class Gy extends Ts {
|
|
|
5978
5978
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
5979
5979
|
}
|
|
5980
5980
|
}
|
|
5981
|
-
class
|
|
5981
|
+
class Dr extends Ts {
|
|
5982
5982
|
constructor(e, n, r, i, s) {
|
|
5983
5983
|
super(e, [], r, i), this.mark = n, this.spec = s;
|
|
5984
5984
|
}
|
|
5985
5985
|
static create(e, n, r, i) {
|
|
5986
5986
|
let s = i.nodeViews[n.type.name], o = s && s(n, i, r);
|
|
5987
|
-
return (!o || !o.dom) && (o =
|
|
5987
|
+
return (!o || !o.dom) && (o = Wr.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Dr(e, n, o.dom, o.contentDOM || o.dom, o);
|
|
5988
5988
|
}
|
|
5989
5989
|
parseRule() {
|
|
5990
5990
|
return this.dirty & bn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -6001,7 +6001,7 @@ class Pr extends Ts {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
6003
6003
|
slice(e, n, r) {
|
|
6004
|
-
let i =
|
|
6004
|
+
let i = Dr.create(this.parent, this.mark, !0, r), s = this.children, o = this.size;
|
|
6005
6005
|
n < o && (s = zl(s, n, o, r)), e > 0 && (s = zl(s, 0, e, r));
|
|
6006
6006
|
for (let a = 0; a < s.length; a++)
|
|
6007
6007
|
s[a].parent = i;
|
|
@@ -6039,7 +6039,7 @@ class tr extends Ts {
|
|
|
6039
6039
|
c = document.createTextNode(n.text);
|
|
6040
6040
|
else if (c.nodeType != 3)
|
|
6041
6041
|
throw new RangeError("Text must be rendered as a DOM text node");
|
|
6042
|
-
} else c || ({ dom: c, contentDOM: f } =
|
|
6042
|
+
} else c || ({ dom: c, contentDOM: f } = Wr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
6043
6043
|
!f && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
6044
6044
|
let h = c;
|
|
6045
6045
|
return c = Vp(c, r, n), u ? l = new Jy(e, n, r, i, c, f || null, h, u, s, o + 1) : n.isText ? new ma(e, n, r, i, c, h, s) : new tr(e, n, r, i, c, f || null, h, s, o + 1);
|
|
@@ -6085,7 +6085,7 @@ class tr extends Ts {
|
|
|
6085
6085
|
l.syncToMarks(u.marks, r, e);
|
|
6086
6086
|
let m;
|
|
6087
6087
|
l.findNodeMatch(u, c, f, h) || a && e.state.selection.from > i && e.state.selection.to < i + u.nodeSize && (m = l.findIndexWithChild(s.node)) > -1 && l.updateNodeAt(u, c, f, m, e) || l.updateNextNode(u, c, f, e, h, i) || l.addNode(u, c, f, e, i), i += u.nodeSize;
|
|
6088
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty ==
|
|
6088
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == wr) && (o && this.protectLocalComposition(e, o), Hp(this.contentDOM, this.children, e), hi && tw(this.dom));
|
|
6089
6089
|
}
|
|
6090
6090
|
localCompositionInfo(e, n) {
|
|
6091
6091
|
let { from: r, to: i } = e.state.selection;
|
|
@@ -6246,7 +6246,7 @@ function Hp(t, e, n) {
|
|
|
6246
6246
|
r = r.nextSibling;
|
|
6247
6247
|
} else
|
|
6248
6248
|
i = !0, t.insertBefore(a, r);
|
|
6249
|
-
if (o instanceof
|
|
6249
|
+
if (o instanceof Dr) {
|
|
6250
6250
|
let l = r ? r.previousSibling : t.lastChild;
|
|
6251
6251
|
Hp(o.contentDOM, o.children, n), r = l ? l.nextSibling : t.firstChild;
|
|
6252
6252
|
}
|
|
@@ -6259,11 +6259,11 @@ const Vi = function(t) {
|
|
|
6259
6259
|
t && (this.nodeName = t);
|
|
6260
6260
|
};
|
|
6261
6261
|
Vi.prototype = /* @__PURE__ */ Object.create(null);
|
|
6262
|
-
const
|
|
6262
|
+
const vr = [new Vi()];
|
|
6263
6263
|
function Hl(t, e, n) {
|
|
6264
6264
|
if (t.length == 0)
|
|
6265
|
-
return
|
|
6266
|
-
let r = n ?
|
|
6265
|
+
return vr;
|
|
6266
|
+
let r = n ? vr[0] : new Vi(), i = [r];
|
|
6267
6267
|
for (let s = 0; s < t.length; s++) {
|
|
6268
6268
|
let o = t[s].type.attrs;
|
|
6269
6269
|
if (o) {
|
|
@@ -6277,16 +6277,16 @@ function Hl(t, e, n) {
|
|
|
6277
6277
|
return i;
|
|
6278
6278
|
}
|
|
6279
6279
|
function zp(t, e, n, r) {
|
|
6280
|
-
if (n ==
|
|
6280
|
+
if (n == vr && r == vr)
|
|
6281
6281
|
return e;
|
|
6282
6282
|
let i = e;
|
|
6283
6283
|
for (let s = 0; s < r.length; s++) {
|
|
6284
6284
|
let o = r[s], a = n[s];
|
|
6285
6285
|
if (s) {
|
|
6286
6286
|
let l;
|
|
6287
|
-
a && a.nodeName == o.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == o.nodeName || (l = document.createElement(o.nodeName), l.pmIsDeco = !0, l.appendChild(i), a =
|
|
6287
|
+
a && a.nodeName == o.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == o.nodeName || (l = document.createElement(o.nodeName), l.pmIsDeco = !0, l.appendChild(i), a = vr[0]), i = l;
|
|
6288
6288
|
}
|
|
6289
|
-
Yy(i, a ||
|
|
6289
|
+
Yy(i, a || vr[0], o);
|
|
6290
6290
|
}
|
|
6291
6291
|
return i;
|
|
6292
6292
|
}
|
|
@@ -6313,7 +6313,7 @@ function Yy(t, e, n) {
|
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
6315
|
function Vp(t, e, n) {
|
|
6316
|
-
return zp(t, t,
|
|
6316
|
+
return zp(t, t, vr, Hl(e, n, t.nodeType != 1));
|
|
6317
6317
|
}
|
|
6318
6318
|
function _o(t, e) {
|
|
6319
6319
|
if (t.length != e.length)
|
|
@@ -6365,7 +6365,7 @@ class Xy {
|
|
|
6365
6365
|
if (a > -1)
|
|
6366
6366
|
a > this.index && (this.changed = !0, this.destroyBetween(this.index, a)), this.top = this.top.children[this.index];
|
|
6367
6367
|
else {
|
|
6368
|
-
let l =
|
|
6368
|
+
let l = Dr.create(this.top, e[s], n, r);
|
|
6369
6369
|
this.top.children.splice(this.index, 0, l), this.top = l, this.changed = !0;
|
|
6370
6370
|
}
|
|
6371
6371
|
this.index = 0, s++;
|
|
@@ -6389,7 +6389,7 @@ class Xy {
|
|
|
6389
6389
|
}
|
|
6390
6390
|
updateNodeAt(e, n, r, i, s) {
|
|
6391
6391
|
let o = this.top.children[i];
|
|
6392
|
-
return o.dirty == bn && o.dom == o.contentDOM && (o.dirty =
|
|
6392
|
+
return o.dirty == bn && o.dom == o.contentDOM && (o.dirty = wr), o.update(e, n, r, s) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
6393
6393
|
}
|
|
6394
6394
|
findIndexWithChild(e) {
|
|
6395
6395
|
for (; ; ) {
|
|
@@ -6421,7 +6421,7 @@ class Xy {
|
|
|
6421
6421
|
if (!h && l.update(e, n, r, i))
|
|
6422
6422
|
return this.destroyBetween(this.index, a), l.dom != c && (this.changed = !0), this.index++, !0;
|
|
6423
6423
|
if (!h && (f = this.recreateWrapper(l, e, n, r, i, o)))
|
|
6424
|
-
return this.destroyBetween(this.index, a), this.top.children[this.index] = f, f.contentDOM && (f.dirty =
|
|
6424
|
+
return this.destroyBetween(this.index, a), this.top.children[this.index] = f, f.contentDOM && (f.dirty = wr, f.updateChildren(i, o + 1), f.dirty = Kt), this.changed = !0, this.index++, !0;
|
|
6425
6425
|
break;
|
|
6426
6426
|
}
|
|
6427
6427
|
}
|
|
@@ -6458,7 +6458,7 @@ class Xy {
|
|
|
6458
6458
|
// contentEditable.
|
|
6459
6459
|
addTextblockHacks() {
|
|
6460
6460
|
let e = this.top.children[this.index - 1], n = this.top;
|
|
6461
|
-
for (; e instanceof
|
|
6461
|
+
for (; e instanceof Dr; )
|
|
6462
6462
|
n = e, e = n.children[n.children.length - 1];
|
|
6463
6463
|
(!e || // Empty textblock
|
|
6464
6464
|
!(e instanceof ma) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((pt || it) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
@@ -6484,7 +6484,7 @@ function Qy(t, e) {
|
|
|
6484
6484
|
for (; ; )
|
|
6485
6485
|
if (r) {
|
|
6486
6486
|
let u = n.children[r - 1];
|
|
6487
|
-
if (u instanceof
|
|
6487
|
+
if (u instanceof Dr)
|
|
6488
6488
|
n = u, r = u.children.length;
|
|
6489
6489
|
else {
|
|
6490
6490
|
a = u, r--;
|
|
@@ -6639,7 +6639,7 @@ function Bn(t, e = !1) {
|
|
|
6639
6639
|
if (Up(t, n), !!jp(t)) {
|
|
6640
6640
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && it) {
|
|
6641
6641
|
let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
|
|
6642
|
-
if (r.anchorNode && i.anchorNode &&
|
|
6642
|
+
if (r.anchorNode && i.anchorNode && Pr(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
6643
6643
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
6644
6644
|
return;
|
|
6645
6645
|
}
|
|
@@ -6716,7 +6716,7 @@ function Wp(t) {
|
|
|
6716
6716
|
}
|
|
6717
6717
|
function sw(t) {
|
|
6718
6718
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
6719
|
-
return
|
|
6719
|
+
return Pr(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
6720
6720
|
}
|
|
6721
6721
|
function Vl(t, e) {
|
|
6722
6722
|
let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), s = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
@@ -6762,7 +6762,7 @@ function ji(t, e) {
|
|
|
6762
6762
|
let n = t.pmViewDesc;
|
|
6763
6763
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
6764
6764
|
}
|
|
6765
|
-
function
|
|
6765
|
+
function Yr(t, e) {
|
|
6766
6766
|
return e < 0 ? ow(t) : aw(t);
|
|
6767
6767
|
}
|
|
6768
6768
|
function ow(t) {
|
|
@@ -6949,22 +6949,22 @@ function dw(t) {
|
|
|
6949
6949
|
function fw(t, e) {
|
|
6950
6950
|
let n = e.keyCode, r = dw(e);
|
|
6951
6951
|
if (n == 8 || zt && n == 72 && r == "c")
|
|
6952
|
-
return Ld(t, -1) ||
|
|
6952
|
+
return Ld(t, -1) || Yr(t, -1);
|
|
6953
6953
|
if (n == 46 && !e.shiftKey || zt && n == 68 && r == "c")
|
|
6954
|
-
return Ld(t, 1) ||
|
|
6954
|
+
return Ld(t, 1) || Yr(t, 1);
|
|
6955
6955
|
if (n == 13 || n == 27)
|
|
6956
6956
|
return !0;
|
|
6957
6957
|
if (n == 37 || zt && n == 66 && r == "c") {
|
|
6958
6958
|
let i = n == 37 ? Nd(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
6959
|
-
return Md(t, i, r) ||
|
|
6959
|
+
return Md(t, i, r) || Yr(t, i);
|
|
6960
6960
|
} else if (n == 39 || zt && n == 70 && r == "c") {
|
|
6961
6961
|
let i = n == 39 ? Nd(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
6962
|
-
return Md(t, i, r) ||
|
|
6962
|
+
return Md(t, i, r) || Yr(t, i);
|
|
6963
6963
|
} else {
|
|
6964
6964
|
if (n == 38 || zt && n == 80 && r == "c")
|
|
6965
|
-
return xd(t, -1, r) ||
|
|
6965
|
+
return xd(t, -1, r) || Yr(t, -1);
|
|
6966
6966
|
if (n == 40 || zt && n == 78 && r == "c")
|
|
6967
|
-
return cw(t) || xd(t, 1, r) ||
|
|
6967
|
+
return cw(t) || xd(t, 1, r) || Yr(t, 1);
|
|
6968
6968
|
if (r == (zt ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
6969
6969
|
return !0;
|
|
6970
6970
|
}
|
|
@@ -6980,7 +6980,7 @@ function Uu(t, e) {
|
|
|
6980
6980
|
let m = r.firstChild;
|
|
6981
6981
|
n.push(m.type.name, m.attrs != m.type.defaultAttrs ? m.attrs : null), r = m.content;
|
|
6982
6982
|
}
|
|
6983
|
-
let o = t.someProp("clipboardSerializer") ||
|
|
6983
|
+
let o = t.someProp("clipboardSerializer") || Wr.fromSchema(t.state.schema), a = Qp(), l = a.createElement("div");
|
|
6984
6984
|
l.appendChild(o.serializeFragment(r, { document: a }));
|
|
6985
6985
|
let u = l.firstChild, c, f = 0;
|
|
6986
6986
|
for (; u && u.nodeType == 1 && (c = Xp[u.nodeName.toLowerCase()]); ) {
|
|
@@ -7013,7 +7013,7 @@ function qp(t, e, n, r, i) {
|
|
|
7013
7013
|
if (f)
|
|
7014
7014
|
a = f;
|
|
7015
7015
|
else {
|
|
7016
|
-
let h = i.marks(), { schema: m } = t.state, b =
|
|
7016
|
+
let h = i.marks(), { schema: m } = t.state, b = Wr.fromSchema(m);
|
|
7017
7017
|
o = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((w) => {
|
|
7018
7018
|
let v = o.appendChild(document.createElement("p"));
|
|
7019
7019
|
w && v.appendChild(b.serializeNode(m.text(w, h)));
|
|
@@ -7033,7 +7033,7 @@ function qp(t, e, n, r, i) {
|
|
|
7033
7033
|
break;
|
|
7034
7034
|
o = h;
|
|
7035
7035
|
}
|
|
7036
|
-
if (a || (a = (t.someProp("clipboardParser") || t.someProp("domParser") ||
|
|
7036
|
+
if (a || (a = (t.someProp("clipboardParser") || t.someProp("domParser") || oi.fromSchema(t.state.schema)).parseSlice(o, {
|
|
7037
7037
|
preserveWhitespace: !!(l || c),
|
|
7038
7038
|
context: i,
|
|
7039
7039
|
ruleFromNode(h) {
|
|
@@ -7213,7 +7213,7 @@ gt.keydown = (t, e) => {
|
|
|
7213
7213
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), hi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
7214
7214
|
let r = Date.now();
|
|
7215
7215
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
7216
|
-
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t,
|
|
7216
|
+
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, br(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
7217
7217
|
}, 200);
|
|
7218
7218
|
} else t.someProp("handleKeyDown", (r) => r(t, n)) || fw(t, n) ? n.preventDefault() : Qn(t, "key");
|
|
7219
7219
|
};
|
|
@@ -7250,7 +7250,7 @@ function Ku(t, e, n, r, i) {
|
|
|
7250
7250
|
return !0;
|
|
7251
7251
|
return !1;
|
|
7252
7252
|
}
|
|
7253
|
-
function
|
|
7253
|
+
function li(t, e, n) {
|
|
7254
7254
|
if (t.focused || t.focus(), t.state.selection.eq(e))
|
|
7255
7255
|
return;
|
|
7256
7256
|
let r = t.state.tr.setSelection(e);
|
|
@@ -7260,7 +7260,7 @@ function Tw(t, e) {
|
|
|
7260
7260
|
if (e == -1)
|
|
7261
7261
|
return !1;
|
|
7262
7262
|
let n = t.state.doc.resolve(e), r = n.nodeAfter;
|
|
7263
|
-
return r && r.isAtom && Z.isSelectable(r) ? (
|
|
7263
|
+
return r && r.isAtom && Z.isSelectable(r) ? (li(t, new Z(n)), !0) : !1;
|
|
7264
7264
|
}
|
|
7265
7265
|
function Aw(t, e) {
|
|
7266
7266
|
if (e == -1)
|
|
@@ -7275,7 +7275,7 @@ function Aw(t, e) {
|
|
|
7275
7275
|
break;
|
|
7276
7276
|
}
|
|
7277
7277
|
}
|
|
7278
|
-
return i != null ? (
|
|
7278
|
+
return i != null ? (li(t, Z.create(t.state.doc, i)), !0) : !1;
|
|
7279
7279
|
}
|
|
7280
7280
|
function Ow(t, e, n, r, i) {
|
|
7281
7281
|
return Ku(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (s) => s(t, e, r)) || (i ? Aw(t, n) : Tw(t, n));
|
|
@@ -7291,14 +7291,14 @@ function xw(t, e, n) {
|
|
|
7291
7291
|
return !1;
|
|
7292
7292
|
let r = t.state.doc;
|
|
7293
7293
|
if (e == -1)
|
|
7294
|
-
return r.inlineContent ? (
|
|
7294
|
+
return r.inlineContent ? (li(t, ne.create(r, 0, r.content.size)), !0) : !1;
|
|
7295
7295
|
let i = r.resolve(e);
|
|
7296
7296
|
for (let s = i.depth + 1; s > 0; s--) {
|
|
7297
7297
|
let o = s > i.depth ? i.nodeAfter : i.node(s), a = i.before(s);
|
|
7298
7298
|
if (o.inlineContent)
|
|
7299
|
-
|
|
7299
|
+
li(t, ne.create(r, a + 1, a + 1 + o.content.size));
|
|
7300
7300
|
else if (Z.isSelectable(o))
|
|
7301
|
-
|
|
7301
|
+
li(t, Z.create(r, a));
|
|
7302
7302
|
else
|
|
7303
7303
|
continue;
|
|
7304
7304
|
return !0;
|
|
@@ -7353,7 +7353,7 @@ class Lw {
|
|
|
7353
7353
|
// (hidden) cursor is doesn't change the selection, and
|
|
7354
7354
|
// thus doesn't get a reaction from ProseMirror. This
|
|
7355
7355
|
// works around that.
|
|
7356
|
-
it && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (
|
|
7356
|
+
it && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (li(this.view, te.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Qn(this.view, "pointer");
|
|
7357
7357
|
}
|
|
7358
7358
|
move(e) {
|
|
7359
7359
|
this.updateAllowDefault(e), Qn(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -7578,7 +7578,7 @@ mt.beforeinput = (t, e) => {
|
|
|
7578
7578
|
t.domObserver.flushSoon();
|
|
7579
7579
|
let { domChangeCount: r } = t.input;
|
|
7580
7580
|
setTimeout(() => {
|
|
7581
|
-
if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (s) => s(t,
|
|
7581
|
+
if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (s) => s(t, br(8, "Backspace")))))
|
|
7582
7582
|
return;
|
|
7583
7583
|
let { $cursor: i } = t.state.selection;
|
|
7584
7584
|
i && i.pos > 0 && t.dispatch(t.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
|
|
@@ -7600,7 +7600,7 @@ function ss(t, e) {
|
|
|
7600
7600
|
}
|
|
7601
7601
|
class So {
|
|
7602
7602
|
constructor(e, n) {
|
|
7603
|
-
this.toDOM = e, this.spec = n ||
|
|
7603
|
+
this.toDOM = e, this.spec = n || Tr, this.side = this.spec.side || 0;
|
|
7604
7604
|
}
|
|
7605
7605
|
map(e, n, r, i) {
|
|
7606
7606
|
let { pos: s, deleted: o } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1);
|
|
@@ -7618,7 +7618,7 @@ class So {
|
|
|
7618
7618
|
}
|
|
7619
7619
|
class nr {
|
|
7620
7620
|
constructor(e, n) {
|
|
7621
|
-
this.attrs = e, this.spec = n ||
|
|
7621
|
+
this.attrs = e, this.spec = n || Tr;
|
|
7622
7622
|
}
|
|
7623
7623
|
map(e, n, r, i) {
|
|
7624
7624
|
let s = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - r, o = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
@@ -7638,7 +7638,7 @@ class nr {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
class Gu {
|
|
7640
7640
|
constructor(e, n) {
|
|
7641
|
-
this.attrs = e, this.spec = n ||
|
|
7641
|
+
this.attrs = e, this.spec = n || Tr;
|
|
7642
7642
|
}
|
|
7643
7643
|
map(e, n, r, i) {
|
|
7644
7644
|
let s = e.mapResult(n.from + i, 1);
|
|
@@ -7728,13 +7728,13 @@ class ft {
|
|
|
7728
7728
|
return this.type instanceof So;
|
|
7729
7729
|
}
|
|
7730
7730
|
}
|
|
7731
|
-
const
|
|
7731
|
+
const ei = [], Tr = {};
|
|
7732
7732
|
class Ie {
|
|
7733
7733
|
/**
|
|
7734
7734
|
@internal
|
|
7735
7735
|
*/
|
|
7736
7736
|
constructor(e, n) {
|
|
7737
|
-
this.local = e.length ? e :
|
|
7737
|
+
this.local = e.length ? e : ei, this.children = n.length ? n : ei;
|
|
7738
7738
|
}
|
|
7739
7739
|
/**
|
|
7740
7740
|
Create a set of decorations, using the structure of the given
|
|
@@ -7742,7 +7742,7 @@ class Ie {
|
|
|
7742
7742
|
you must make a copy if you want need to preserve that.
|
|
7743
7743
|
*/
|
|
7744
7744
|
static create(e, n) {
|
|
7745
|
-
return n.length ? Co(n, e, 0,
|
|
7745
|
+
return n.length ? Co(n, e, 0, Tr) : tt;
|
|
7746
7746
|
}
|
|
7747
7747
|
/**
|
|
7748
7748
|
Find all decorations in this set which touch the given range
|
|
@@ -7772,7 +7772,7 @@ class Ie {
|
|
|
7772
7772
|
document.
|
|
7773
7773
|
*/
|
|
7774
7774
|
map(e, n, r) {
|
|
7775
|
-
return this == tt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r ||
|
|
7775
|
+
return this == tt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Tr);
|
|
7776
7776
|
}
|
|
7777
7777
|
/**
|
|
7778
7778
|
@internal
|
|
@@ -7783,7 +7783,7 @@ class Ie {
|
|
|
7783
7783
|
let l = this.local[a].map(e, r, i);
|
|
7784
7784
|
l && l.type.valid(n, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
|
|
7785
7785
|
}
|
|
7786
|
-
return this.children.length ? Hw(this.children, o || [], e, n, r, i, s) : o ? new Ie(o.sort(
|
|
7786
|
+
return this.children.length ? Hw(this.children, o || [], e, n, r, i, s) : o ? new Ie(o.sort(Ar), ei) : tt;
|
|
7787
7787
|
}
|
|
7788
7788
|
/**
|
|
7789
7789
|
Add the given array of decorations to the ones in the set,
|
|
@@ -7801,13 +7801,13 @@ class Ie {
|
|
|
7801
7801
|
if (c = am(n, a, u)) {
|
|
7802
7802
|
for (i || (i = this.children.slice()); s < i.length && i[s] < l; )
|
|
7803
7803
|
s += 3;
|
|
7804
|
-
i[s] == l ? i[s + 2] = i[s + 2].addInner(a, c, u + 1) : i.splice(s, 0, l, l + a.nodeSize, Co(c, a, u + 1,
|
|
7804
|
+
i[s] == l ? i[s + 2] = i[s + 2].addInner(a, c, u + 1) : i.splice(s, 0, l, l + a.nodeSize, Co(c, a, u + 1, Tr)), s += 3;
|
|
7805
7805
|
}
|
|
7806
7806
|
});
|
|
7807
7807
|
let o = om(s ? lm(n) : n, -r);
|
|
7808
7808
|
for (let a = 0; a < o.length; a++)
|
|
7809
7809
|
o[a].type.valid(e, o[a]) || o.splice(a--, 1);
|
|
7810
|
-
return new Ie(o.length ? this.local.concat(o).sort(
|
|
7810
|
+
return new Ie(o.length ? this.local.concat(o).sort(Ar) : this.local, i || this.children);
|
|
7811
7811
|
}
|
|
7812
7812
|
/**
|
|
7813
7813
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -7856,7 +7856,7 @@ class Ie {
|
|
|
7856
7856
|
}
|
|
7857
7857
|
}
|
|
7858
7858
|
if (i) {
|
|
7859
|
-
let a = new Ie(i.sort(
|
|
7859
|
+
let a = new Ie(i.sort(Ar), ei);
|
|
7860
7860
|
return r ? new qn([a, r]) : a;
|
|
7861
7861
|
}
|
|
7862
7862
|
return r || tt;
|
|
@@ -7888,7 +7888,7 @@ class Ie {
|
|
|
7888
7888
|
*/
|
|
7889
7889
|
localsInner(e) {
|
|
7890
7890
|
if (this == tt)
|
|
7891
|
-
return
|
|
7891
|
+
return ei;
|
|
7892
7892
|
if (e.inlineContent || !this.local.some(nr.is))
|
|
7893
7893
|
return this.local;
|
|
7894
7894
|
let n = [];
|
|
@@ -7908,7 +7908,7 @@ class qn {
|
|
|
7908
7908
|
this.members = e;
|
|
7909
7909
|
}
|
|
7910
7910
|
map(e, n) {
|
|
7911
|
-
const r = this.members.map((i) => i.map(e, n,
|
|
7911
|
+
const r = this.members.map((i) => i.map(e, n, Tr));
|
|
7912
7912
|
return qn.from(r);
|
|
7913
7913
|
}
|
|
7914
7914
|
forChild(e, n) {
|
|
@@ -7942,7 +7942,7 @@ class qn {
|
|
|
7942
7942
|
n.push(s[o]);
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
|
-
return n ? Ju(r ? n : n.sort(
|
|
7945
|
+
return n ? Ju(r ? n : n.sort(Ar)) : ei;
|
|
7946
7946
|
}
|
|
7947
7947
|
// Create a group for the given array of decoration sets, or return
|
|
7948
7948
|
// a single set when possible.
|
|
@@ -8008,7 +8008,7 @@ function Hw(t, e, n, r, i, s, o) {
|
|
|
8008
8008
|
a.splice(h, 0, c.children[f], c.children[f + 1], c.children[f + 2]);
|
|
8009
8009
|
}
|
|
8010
8010
|
}
|
|
8011
|
-
return new Ie(e.sort(
|
|
8011
|
+
return new Ie(e.sort(Ar), a);
|
|
8012
8012
|
}
|
|
8013
8013
|
function om(t, e) {
|
|
8014
8014
|
if (!e || !t.length)
|
|
@@ -8057,12 +8057,12 @@ function Co(t, e, n, r) {
|
|
|
8057
8057
|
c != tt && i.push(l, l + a.nodeSize, c);
|
|
8058
8058
|
}
|
|
8059
8059
|
});
|
|
8060
|
-
let o = om(s ? lm(t) : t, -n).sort(
|
|
8060
|
+
let o = om(s ? lm(t) : t, -n).sort(Ar);
|
|
8061
8061
|
for (let a = 0; a < o.length; a++)
|
|
8062
8062
|
o[a].type.valid(e, o[a]) || (r.onRemove && r.onRemove(o[a].spec), o.splice(a--, 1));
|
|
8063
8063
|
return o.length || i.length ? new Ie(o, i) : tt;
|
|
8064
8064
|
}
|
|
8065
|
-
function
|
|
8065
|
+
function Ar(t, e) {
|
|
8066
8066
|
return t.from - e.from || t.to - e.to;
|
|
8067
8067
|
}
|
|
8068
8068
|
function Ju(t) {
|
|
@@ -8084,7 +8084,7 @@ function Ju(t) {
|
|
|
8084
8084
|
return e;
|
|
8085
8085
|
}
|
|
8086
8086
|
function Id(t, e, n) {
|
|
8087
|
-
for (; e < t.length &&
|
|
8087
|
+
for (; e < t.length && Ar(n, t[e]) > 0; )
|
|
8088
8088
|
e++;
|
|
8089
8089
|
t.splice(e, 0, n);
|
|
8090
8090
|
}
|
|
@@ -8165,7 +8165,7 @@ class Ww {
|
|
|
8165
8165
|
return Bn(this.view);
|
|
8166
8166
|
if (kt && er <= 11 && !this.view.state.selection.empty) {
|
|
8167
8167
|
let e = this.view.domSelectionRange();
|
|
8168
|
-
if (e.focusNode &&
|
|
8168
|
+
if (e.focusNode && Pr(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
8169
8169
|
return this.flushSoon();
|
|
8170
8170
|
}
|
|
8171
8171
|
this.flush();
|
|
@@ -8269,7 +8269,7 @@ function Kw(t) {
|
|
|
8269
8269
|
}
|
|
8270
8270
|
function $d(t, e) {
|
|
8271
8271
|
let n = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = t.domAtPos(t.state.selection.anchor);
|
|
8272
|
-
return
|
|
8272
|
+
return Pr(o.node, o.offset, i, s) && ([n, r, i, s] = [i, s, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: s };
|
|
8273
8273
|
}
|
|
8274
8274
|
function qw(t, e) {
|
|
8275
8275
|
if (e.getComposedRanges) {
|
|
@@ -8303,7 +8303,7 @@ function Jw(t, e, n) {
|
|
|
8303
8303
|
if (!T || T.size)
|
|
8304
8304
|
break;
|
|
8305
8305
|
}
|
|
8306
|
-
let f = t.state.doc, h = t.someProp("domParser") ||
|
|
8306
|
+
let f = t.state.doc, h = t.someProp("domParser") || oi.fromSchema(t.state.schema), m = f.resolve(o), b = null, w = h.parse(r, {
|
|
8307
8307
|
topNode: m.parent,
|
|
8308
8308
|
topMatch: m.parent.contentMatchAt(m.index()),
|
|
8309
8309
|
topOpen: !0,
|
|
@@ -8340,7 +8340,7 @@ function Qw(t, e, n, r, i) {
|
|
|
8340
8340
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
8341
8341
|
let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, S = Vu(t, k);
|
|
8342
8342
|
if (S && !t.state.selection.eq(S)) {
|
|
8343
|
-
if (it && Rn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (M) => M(t,
|
|
8343
|
+
if (it && Rn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (M) => M(t, br(13, "Enter"))))
|
|
8344
8344
|
return;
|
|
8345
8345
|
let E = t.state.tr.setSelection(S);
|
|
8346
8346
|
k == "pointer" ? E.setMeta("pointer", !0) : k == "key" && E.scrollIntoView(), s && E.setMeta("composition", s), t.dispatch(E);
|
|
@@ -8352,7 +8352,7 @@ function Qw(t, e, n, r, i) {
|
|
|
8352
8352
|
let l = t.state.selection, u = Jw(t, e, n), c = t.state.doc, f = c.slice(u.from, u.to), h, m;
|
|
8353
8353
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (h = t.state.selection.to, m = "end") : (h = t.state.selection.from, m = "start"), t.input.lastKeyCode = null;
|
|
8354
8354
|
let b = tv(f.content, u.doc.content, u.from, h, m);
|
|
8355
|
-
if (b && t.input.domChangeCount++, (hi && t.input.lastIOSEnter > Date.now() - 225 || Rn) && i.some((k) => k.nodeType == 1 && !Xw.test(k.nodeName)) && (!b || b.endA >= b.endB) && t.someProp("handleKeyDown", (k) => k(t,
|
|
8355
|
+
if (b && t.input.domChangeCount++, (hi && t.input.lastIOSEnter > Date.now() - 225 || Rn) && i.some((k) => k.nodeType == 1 && !Xw.test(k.nodeName)) && (!b || b.endA >= b.endB) && t.someProp("handleKeyDown", (k) => k(t, br(13, "Enter")))) {
|
|
8356
8356
|
t.input.lastIOSEnter = 0;
|
|
8357
8357
|
return;
|
|
8358
8358
|
}
|
|
@@ -8371,17 +8371,17 @@ function Qw(t, e, n, r, i) {
|
|
|
8371
8371
|
}
|
|
8372
8372
|
t.state.selection.from < t.state.selection.to && b.start == b.endB && t.state.selection instanceof ne && (b.start > t.state.selection.from && b.start <= t.state.selection.from + 2 && t.state.selection.from >= u.from ? b.start = t.state.selection.from : b.endA < t.state.selection.to && b.endA >= t.state.selection.to - 2 && t.state.selection.to <= u.to && (b.endB += t.state.selection.to - b.endA, b.endA = t.state.selection.to)), kt && er <= 11 && b.endB == b.start + 1 && b.endA == b.start && b.start > u.from && u.doc.textBetween(b.start - u.from - 1, b.start - u.from + 1) == " " && (b.start--, b.endA--, b.endB--);
|
|
8373
8373
|
let w = u.doc.resolveNoCache(b.start - u.from), v = u.doc.resolveNoCache(b.endB - u.from), _ = c.resolve(b.start), T = w.sameParent(v) && w.parent.inlineContent && _.end() >= b.endA, A;
|
|
8374
|
-
if ((hi && t.input.lastIOSEnter > Date.now() - 225 && (!T || i.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !T && w.pos < u.doc.content.size && (!w.sameParent(v) || !w.parent.inlineContent) && !/\S/.test(u.doc.textBetween(w.pos, v.pos, "", "")) && (A = te.findFrom(u.doc.resolve(w.pos + 1), 1, !0)) && A.head > w.pos) && t.someProp("handleKeyDown", (k) => k(t,
|
|
8374
|
+
if ((hi && t.input.lastIOSEnter > Date.now() - 225 && (!T || i.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !T && w.pos < u.doc.content.size && (!w.sameParent(v) || !w.parent.inlineContent) && !/\S/.test(u.doc.textBetween(w.pos, v.pos, "", "")) && (A = te.findFrom(u.doc.resolve(w.pos + 1), 1, !0)) && A.head > w.pos) && t.someProp("handleKeyDown", (k) => k(t, br(13, "Enter")))) {
|
|
8375
8375
|
t.input.lastIOSEnter = 0;
|
|
8376
8376
|
return;
|
|
8377
8377
|
}
|
|
8378
|
-
if (t.state.selection.anchor > b.start && ev(c, b.start, b.endA, w, v) && t.someProp("handleKeyDown", (k) => k(t,
|
|
8378
|
+
if (t.state.selection.anchor > b.start && ev(c, b.start, b.endA, w, v) && t.someProp("handleKeyDown", (k) => k(t, br(8, "Backspace")))) {
|
|
8379
8379
|
Rn && it && t.domObserver.suppressSelectionUpdates();
|
|
8380
8380
|
return;
|
|
8381
8381
|
}
|
|
8382
8382
|
it && b.endB == b.start && (t.input.lastChromeDelete = Date.now()), Rn && !T && w.start() != v.start() && v.parentOffset == 0 && w.depth == v.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == b.endA && (b.endB -= 2, v = u.doc.resolveNoCache(b.endB - u.from), setTimeout(() => {
|
|
8383
8383
|
t.someProp("handleKeyDown", function(k) {
|
|
8384
|
-
return k(t,
|
|
8384
|
+
return k(t, br(13, "Enter"));
|
|
8385
8385
|
});
|
|
8386
8386
|
}, 20));
|
|
8387
8387
|
let d = b.start, g = b.endA, p = (k) => {
|
|
@@ -8864,7 +8864,7 @@ function Kd(t) {
|
|
|
8864
8864
|
if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
|
|
8865
8865
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
8866
8866
|
}
|
|
8867
|
-
var
|
|
8867
|
+
var sr = {
|
|
8868
8868
|
8: "Backspace",
|
|
8869
8869
|
9: "Tab",
|
|
8870
8870
|
10: "Enter",
|
|
@@ -8943,13 +8943,13 @@ var ir = {
|
|
|
8943
8943
|
221: "}",
|
|
8944
8944
|
222: '"'
|
|
8945
8945
|
}, iv = typeof navigator < "u" && /Mac/.test(navigator.platform), sv = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
8946
|
-
for (var Qe = 0; Qe < 10; Qe++)
|
|
8947
|
-
for (var Qe = 1; Qe <= 24; Qe++)
|
|
8946
|
+
for (var Qe = 0; Qe < 10; Qe++) sr[48 + Qe] = sr[96 + Qe] = String(Qe);
|
|
8947
|
+
for (var Qe = 1; Qe <= 24; Qe++) sr[Qe + 111] = "F" + Qe;
|
|
8948
8948
|
for (var Qe = 65; Qe <= 90; Qe++)
|
|
8949
|
-
|
|
8950
|
-
for (var el in
|
|
8949
|
+
sr[Qe] = String.fromCharCode(Qe + 32), To[Qe] = String.fromCharCode(Qe);
|
|
8950
|
+
for (var el in sr) To.hasOwnProperty(el) || (To[el] = sr[el]);
|
|
8951
8951
|
function ov(t) {
|
|
8952
|
-
var e = iv && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || sv && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? To :
|
|
8952
|
+
var e = iv && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || sv && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? To : sr)[t.keyCode] || t.key || "Unidentified";
|
|
8953
8953
|
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;
|
|
8954
8954
|
}
|
|
8955
8955
|
const av = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), lv = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -8999,7 +8999,7 @@ function Yu(t) {
|
|
|
8999
8999
|
return !0;
|
|
9000
9000
|
}
|
|
9001
9001
|
if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
9002
|
-
!(lv && r.ctrlKey && r.altKey) && (s =
|
|
9002
|
+
!(lv && r.ctrlKey && r.altKey) && (s = sr[r.keyCode]) && s != i) {
|
|
9003
9003
|
let a = e[tl(s, r)];
|
|
9004
9004
|
if (a && a(n.state, n.dispatch, n))
|
|
9005
9005
|
return !0;
|
|
@@ -9162,7 +9162,7 @@ function Zu(t) {
|
|
|
9162
9162
|
const pv = (t, e) => {
|
|
9163
9163
|
let n = t.selection, r = n instanceof Z, i;
|
|
9164
9164
|
if (r) {
|
|
9165
|
-
if (n.node.isTextblock || !
|
|
9165
|
+
if (n.node.isTextblock || !ar(t.doc, n.from))
|
|
9166
9166
|
return !1;
|
|
9167
9167
|
i = n.from;
|
|
9168
9168
|
} else if (i = da(t.doc, n.from, -1), i == null)
|
|
@@ -9175,7 +9175,7 @@ const pv = (t, e) => {
|
|
|
9175
9175
|
}, mv = (t, e) => {
|
|
9176
9176
|
let n = t.selection, r;
|
|
9177
9177
|
if (n instanceof Z) {
|
|
9178
|
-
if (n.node.isTextblock || !
|
|
9178
|
+
if (n.node.isTextblock || !ar(t.doc, n.to))
|
|
9179
9179
|
return !1;
|
|
9180
9180
|
r = n.to;
|
|
9181
9181
|
} else if (r = da(t.doc, n.to, 1), r == null)
|
|
@@ -9268,7 +9268,7 @@ const wv = yv(), vv = (t, e) => {
|
|
|
9268
9268
|
};
|
|
9269
9269
|
function _v(t, e, n) {
|
|
9270
9270
|
let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
|
|
9271
|
-
return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock ||
|
|
9271
|
+
return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || ar(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
9272
9272
|
}
|
|
9273
9273
|
function vm(t, e, n, r) {
|
|
9274
9274
|
let i = e.nodeBefore, s = e.nodeAfter, o, a, l = i.type.spec.isolating || s.type.spec.isolating;
|
|
@@ -9282,7 +9282,7 @@ function vm(t, e, n, r) {
|
|
|
9282
9282
|
b = $.from(o[_].create(null, b));
|
|
9283
9283
|
b = $.from(i.copy(b));
|
|
9284
9284
|
let w = t.tr.step(new We(e.pos - 1, m, e.pos, m, new W(b, 1, 0), o.length, !0)), v = w.doc.resolve(m + 2 * o.length);
|
|
9285
|
-
v.nodeAfter && v.nodeAfter.type == i.type &&
|
|
9285
|
+
v.nodeAfter && v.nodeAfter.type == i.type && ar(w.doc, v.pos) && w.join(v.pos), n(w.scrollIntoView());
|
|
9286
9286
|
}
|
|
9287
9287
|
return !0;
|
|
9288
9288
|
}
|
|
@@ -9416,7 +9416,7 @@ function Mv(t, e, n, r) {
|
|
|
9416
9416
|
return !1;
|
|
9417
9417
|
i.lift(r, a);
|
|
9418
9418
|
let l = i.doc.resolve(i.mapping.map(s, -1) - 1);
|
|
9419
|
-
return
|
|
9419
|
+
return ar(i.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && i.join(l.pos), e(i.scrollIntoView()), !0;
|
|
9420
9420
|
}
|
|
9421
9421
|
function Nv(t, e, n) {
|
|
9422
9422
|
let r = t.tr, i = n.parent;
|
|
@@ -9786,7 +9786,7 @@ function Yd(t, e) {
|
|
|
9786
9786
|
return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
|
|
9787
9787
|
}
|
|
9788
9788
|
function nc(t, e) {
|
|
9789
|
-
const n =
|
|
9789
|
+
const n = Wr.fromSchema(e).serializeFragment(t), i = document.implementation.createHTMLDocument().createElement("div");
|
|
9790
9790
|
return i.appendChild(n), i.innerHTML;
|
|
9791
9791
|
}
|
|
9792
9792
|
const Iv = (t, e = 500) => {
|
|
@@ -10132,9 +10132,9 @@ function Kv(t) {
|
|
|
10132
10132
|
const e = t.filter((n, r) => t.indexOf(n) !== r);
|
|
10133
10133
|
return Array.from(new Set(e));
|
|
10134
10134
|
}
|
|
10135
|
-
class
|
|
10135
|
+
class si {
|
|
10136
10136
|
constructor(e, n) {
|
|
10137
|
-
this.splittableMarks = [], this.editor = n, this.extensions =
|
|
10137
|
+
this.splittableMarks = [], this.editor = n, this.extensions = si.resolve(e), this.schema = Dv(this.extensions, n), this.setupExtensions();
|
|
10138
10138
|
}
|
|
10139
10139
|
/**
|
|
10140
10140
|
* Returns a flattened and sorted extension list while
|
|
@@ -10143,7 +10143,7 @@ class ii {
|
|
|
10143
10143
|
* @returns An flattened and sorted array of Tiptap extensions
|
|
10144
10144
|
*/
|
|
10145
10145
|
static resolve(e) {
|
|
10146
|
-
const n =
|
|
10146
|
+
const n = si.sort(si.flatten(e)), r = Kv(n.map((i) => i.name));
|
|
10147
10147
|
return r.length && console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map((i) => `'${i}'`).join(", ")}]. This can lead to issues.`), n;
|
|
10148
10148
|
}
|
|
10149
10149
|
/**
|
|
@@ -10196,7 +10196,7 @@ class ii {
|
|
|
10196
10196
|
* @returns An array of Prosemirror plugins
|
|
10197
10197
|
*/
|
|
10198
10198
|
get plugins() {
|
|
10199
|
-
const { editor: e } = this, n =
|
|
10199
|
+
const { editor: e } = this, n = si.sort([...this.extensions].reverse()), r = [], i = [], s = n.map((o) => {
|
|
10200
10200
|
const a = {
|
|
10201
10201
|
name: o.name,
|
|
10202
10202
|
options: o.options,
|
|
@@ -10462,7 +10462,7 @@ function sc(t, e, n) {
|
|
|
10462
10462
|
to: u
|
|
10463
10463
|
};
|
|
10464
10464
|
}
|
|
10465
|
-
function
|
|
10465
|
+
function ur(t, e) {
|
|
10466
10466
|
if (typeof t == "string") {
|
|
10467
10467
|
if (!e.marks[t])
|
|
10468
10468
|
throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);
|
|
@@ -10471,7 +10471,7 @@ function lr(t, e) {
|
|
|
10471
10471
|
return t;
|
|
10472
10472
|
}
|
|
10473
10473
|
const o1 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
10474
|
-
const s =
|
|
10474
|
+
const s = ur(t, r.schema), { doc: o, selection: a } = n, { $from: l, from: u, to: c } = a;
|
|
10475
10475
|
if (i) {
|
|
10476
10476
|
const f = sc(l, s, e);
|
|
10477
10477
|
if (f && f.from <= u && f.to >= c) {
|
|
@@ -10583,10 +10583,10 @@ function Oo(t, e, n) {
|
|
|
10583
10583
|
}
|
|
10584
10584
|
})
|
|
10585
10585
|
});
|
|
10586
|
-
if (n.slice ?
|
|
10586
|
+
if (n.slice ? oi.fromSchema(l).parseSlice(Hs(t), n.parseOptions) : oi.fromSchema(l).parse(Hs(t), n.parseOptions), n.errorOnInvalidContent && o)
|
|
10587
10587
|
throw new Error("[tiptap error]: Invalid HTML content", { cause: new Error(`Invalid element found: ${a}`) });
|
|
10588
10588
|
}
|
|
10589
|
-
const s =
|
|
10589
|
+
const s = oi.fromSchema(e);
|
|
10590
10590
|
return n.slice ? s.parseSlice(Hs(t), n.parseOptions).content : s.parse(Hs(t), n.parseOptions);
|
|
10591
10591
|
}
|
|
10592
10592
|
return Oo("", e, n);
|
|
@@ -10744,7 +10744,7 @@ function Qd(t, e) {
|
|
|
10744
10744
|
const O1 = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
10745
10745
|
let s = null, o = null;
|
|
10746
10746
|
const a = ka(typeof t == "string" ? t : t.name, r.schema);
|
|
10747
|
-
return a ? (a === "node" && (s = qe(t, r.schema)), a === "mark" && (o =
|
|
10747
|
+
return a ? (a === "node" && (s = qe(t, r.schema)), a === "mark" && (o = ur(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
10748
10748
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (u, c) => {
|
|
10749
10749
|
s && s === u.type && n.setNodeMarkup(c, void 0, Qd(u.attrs, e)), o && u.marks.length && u.marks.forEach((f) => {
|
|
10750
10750
|
o === f.type && n.addMark(c, c + u.nodeSize, o.create(Qd(f.attrs, e)));
|
|
@@ -10777,7 +10777,7 @@ const I1 = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: s, dispatch: o, comm
|
|
|
10777
10777
|
});
|
|
10778
10778
|
};
|
|
10779
10779
|
function lc(t, e) {
|
|
10780
|
-
const n =
|
|
10780
|
+
const n = ur(e, t.schema), { from: r, to: i, empty: s } = t.selection, o = [];
|
|
10781
10781
|
s ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (l) => {
|
|
10782
10782
|
o.push(...l.marks);
|
|
10783
10783
|
});
|
|
@@ -10906,7 +10906,7 @@ function ro(t, e, n) {
|
|
|
10906
10906
|
}));
|
|
10907
10907
|
}
|
|
10908
10908
|
function Gl(t, e, n = {}) {
|
|
10909
|
-
const { empty: r, ranges: i } = t.selection, s = e ?
|
|
10909
|
+
const { empty: r, ranges: i } = t.selection, s = e ? ur(e, t.schema) : null;
|
|
10910
10910
|
if (r)
|
|
10911
10911
|
return !!(t.storedMarks || t.selection.$from.marks()).filter((f) => s ? s.name === f.type.name : !0).find((f) => Ao(f.attrs, n, { strict: !1 }));
|
|
10912
10912
|
let o = 0;
|
|
@@ -11009,7 +11009,7 @@ function K1(t, e, n) {
|
|
|
11009
11009
|
});
|
|
11010
11010
|
}
|
|
11011
11011
|
const q1 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11012
|
-
const { selection: s } = n, { empty: o, ranges: a } = s, l =
|
|
11012
|
+
const { selection: s } = n, { empty: o, ranges: a } = s, l = ur(t, r.schema);
|
|
11013
11013
|
if (i)
|
|
11014
11014
|
if (o) {
|
|
11015
11015
|
const u = lc(r, l);
|
|
@@ -11147,7 +11147,7 @@ const Z1 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
11147
11147
|
if (r === void 0)
|
|
11148
11148
|
return !0;
|
|
11149
11149
|
const i = t.doc.nodeAt(r);
|
|
11150
|
-
return n.node.type === i?.type &&
|
|
11150
|
+
return n.node.type === i?.type && ar(t.doc, n.pos) && t.join(n.pos), !0;
|
|
11151
11151
|
}, il = (t, e) => {
|
|
11152
11152
|
const n = uc((o) => o.type === e)(t.selection);
|
|
11153
11153
|
if (!n)
|
|
@@ -11156,7 +11156,7 @@ const Z1 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
11156
11156
|
if (r === void 0)
|
|
11157
11157
|
return !0;
|
|
11158
11158
|
const i = t.doc.nodeAt(r);
|
|
11159
|
-
return n.node.type === i?.type &&
|
|
11159
|
+
return n.node.type === i?.type && ar(t.doc, r) && t.join(r), !0;
|
|
11160
11160
|
}, t_ = (t, e, n, r = {}) => ({ editor: i, tr: s, state: o, dispatch: a, chain: l, commands: u, can: c }) => {
|
|
11161
11161
|
const { extensions: f, splittableMarks: h } = i.extensionManager, m = qe(t, o.schema), b = qe(e, o.schema), { selection: w, storedMarks: v } = o, { $from: _, $to: T } = w, A = _.blockRange(T), d = v || w.$to.parentOffset && w.$from.marks();
|
|
11162
11162
|
if (!A)
|
|
@@ -11173,7 +11173,7 @@ const Z1 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
11173
11173
|
return s.ensureMarks(y), p ? !0 : u.clearNodes();
|
|
11174
11174
|
}).wrapInList(m, r).command(() => rl(s, m)).command(() => il(s, m)).run();
|
|
11175
11175
|
}, n_ = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
11176
|
-
const { extendEmptyMarkRange: s = !1 } = n, o =
|
|
11176
|
+
const { extendEmptyMarkRange: s = !1 } = n, o = ur(t, r.schema);
|
|
11177
11177
|
return Gl(r, o, e) ? i.unsetMark(o, { extendEmptyMarkRange: s }) : i.setMark(o, e);
|
|
11178
11178
|
}, r_ = (t, e, n = {}) => ({ state: r, commands: i }) => {
|
|
11179
11179
|
const s = qe(t, r.schema), o = qe(e, r.schema), a = as(r, s, n);
|
|
@@ -11209,7 +11209,7 @@ const Z1 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
11209
11209
|
}), !0;
|
|
11210
11210
|
}, a_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11211
11211
|
var s;
|
|
11212
|
-
const { extendEmptyMarkRange: o = !1 } = e, { selection: a } = n, l =
|
|
11212
|
+
const { extendEmptyMarkRange: o = !1 } = e, { selection: a } = n, l = ur(t, r.schema), { $from: u, empty: c, ranges: f } = a;
|
|
11213
11213
|
if (!i)
|
|
11214
11214
|
return !0;
|
|
11215
11215
|
if (c && o) {
|
|
@@ -11224,7 +11224,7 @@ const Z1 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
11224
11224
|
}, l_ = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
11225
11225
|
let s = null, o = null;
|
|
11226
11226
|
const a = ka(typeof t == "string" ? t : t.name, r.schema);
|
|
11227
|
-
return a ? (a === "node" && (s = qe(t, r.schema)), a === "mark" && (o =
|
|
11227
|
+
return a ? (a === "node" && (s = qe(t, r.schema)), a === "mark" && (o = ur(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
11228
11228
|
const u = l.$from.pos, c = l.$to.pos;
|
|
11229
11229
|
let f, h, m, b;
|
|
11230
11230
|
n.selection.empty ? r.doc.nodesBetween(u, c, (w, v) => {
|
|
@@ -11489,7 +11489,7 @@ const f_ = Ge.create({
|
|
|
11489
11489
|
];
|
|
11490
11490
|
}
|
|
11491
11491
|
});
|
|
11492
|
-
class
|
|
11492
|
+
class yr {
|
|
11493
11493
|
get name() {
|
|
11494
11494
|
return this.node.type.name;
|
|
11495
11495
|
}
|
|
@@ -11548,15 +11548,15 @@ class br {
|
|
|
11548
11548
|
if (this.depth === 0)
|
|
11549
11549
|
return null;
|
|
11550
11550
|
const e = this.resolvedPos.start(this.resolvedPos.depth - 1), n = this.resolvedPos.doc.resolve(e);
|
|
11551
|
-
return new
|
|
11551
|
+
return new yr(n, this.editor);
|
|
11552
11552
|
}
|
|
11553
11553
|
get before() {
|
|
11554
11554
|
let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
|
|
11555
|
-
return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new
|
|
11555
|
+
return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new yr(e, this.editor);
|
|
11556
11556
|
}
|
|
11557
11557
|
get after() {
|
|
11558
11558
|
let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
|
|
11559
|
-
return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new
|
|
11559
|
+
return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new yr(e, this.editor);
|
|
11560
11560
|
}
|
|
11561
11561
|
get children() {
|
|
11562
11562
|
const e = [];
|
|
@@ -11564,8 +11564,8 @@ class br {
|
|
|
11564
11564
|
const i = n.isBlock && !n.isTextblock, s = n.isAtom && !n.isText, o = this.pos + r + (s ? 0 : 1), a = this.resolvedPos.doc.resolve(o);
|
|
11565
11565
|
if (!i && a.depth <= this.depth)
|
|
11566
11566
|
return;
|
|
11567
|
-
const l = new
|
|
11568
|
-
i && (l.actualDepth = this.depth + 1), e.push(new
|
|
11567
|
+
const l = new yr(a, this.editor, i, i ? n : null);
|
|
11568
|
+
i && (l.actualDepth = this.depth + 1), e.push(new yr(a, this.editor, i, i ? n : null));
|
|
11569
11569
|
}), e;
|
|
11570
11570
|
}
|
|
11571
11571
|
get firstChild() {
|
|
@@ -11836,7 +11836,7 @@ let __ = class extends Lv {
|
|
|
11836
11836
|
h_,
|
|
11837
11837
|
b_
|
|
11838
11838
|
].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));
|
|
11839
|
-
this.extensionManager = new
|
|
11839
|
+
this.extensionManager = new si(i, this);
|
|
11840
11840
|
}
|
|
11841
11841
|
/**
|
|
11842
11842
|
* Creates an command manager.
|
|
@@ -11880,7 +11880,7 @@ let __ = class extends Lv {
|
|
|
11880
11880
|
...(e = this.options.editorProps) === null || e === void 0 ? void 0 : e.attributes
|
|
11881
11881
|
},
|
|
11882
11882
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
11883
|
-
state:
|
|
11883
|
+
state: ii.create({
|
|
11884
11884
|
doc: n,
|
|
11885
11885
|
selection: r || void 0
|
|
11886
11886
|
})
|
|
@@ -12034,13 +12034,13 @@ let __ = class extends Lv {
|
|
|
12034
12034
|
}
|
|
12035
12035
|
$pos(e) {
|
|
12036
12036
|
const n = this.state.doc.resolve(e);
|
|
12037
|
-
return new
|
|
12037
|
+
return new yr(n, this);
|
|
12038
12038
|
}
|
|
12039
12039
|
get $doc() {
|
|
12040
12040
|
return this.$pos(0);
|
|
12041
12041
|
}
|
|
12042
12042
|
};
|
|
12043
|
-
function
|
|
12043
|
+
function Ir(t) {
|
|
12044
12044
|
return new va({
|
|
12045
12045
|
find: t.find,
|
|
12046
12046
|
handler: ({ state: e, range: n, match: r }) => {
|
|
@@ -12110,7 +12110,7 @@ function ls(t) {
|
|
|
12110
12110
|
i().updateAttributes(f, s).run();
|
|
12111
12111
|
}
|
|
12112
12112
|
const c = o.doc.resolve(n.from - 1).nodeBefore;
|
|
12113
|
-
c && c.type === t.type &&
|
|
12113
|
+
c && c.type === t.type && ar(o.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, c)) && o.join(n.from - 1);
|
|
12114
12114
|
}
|
|
12115
12115
|
});
|
|
12116
12116
|
}
|
|
@@ -12149,7 +12149,7 @@ let bt = class Yl {
|
|
|
12149
12149
|
})), n;
|
|
12150
12150
|
}
|
|
12151
12151
|
};
|
|
12152
|
-
function
|
|
12152
|
+
function or(t) {
|
|
12153
12153
|
return new zv({
|
|
12154
12154
|
find: t.find,
|
|
12155
12155
|
handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
|
|
@@ -12184,7 +12184,7 @@ function Dt(t) {
|
|
|
12184
12184
|
}
|
|
12185
12185
|
return t;
|
|
12186
12186
|
}
|
|
12187
|
-
function
|
|
12187
|
+
function Br(t) {
|
|
12188
12188
|
var e = Dt(t).Element;
|
|
12189
12189
|
return t instanceof e || t instanceof Element;
|
|
12190
12190
|
}
|
|
@@ -12243,7 +12243,7 @@ const Dm = {
|
|
|
12243
12243
|
function mn(t) {
|
|
12244
12244
|
return t.split("-")[0];
|
|
12245
12245
|
}
|
|
12246
|
-
var
|
|
12246
|
+
var Or = Math.max, Mo = Math.min, gi = Math.round;
|
|
12247
12247
|
function Xl() {
|
|
12248
12248
|
var t = navigator.userAgentData;
|
|
12249
12249
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -12257,7 +12257,7 @@ function bi(t, e, n) {
|
|
|
12257
12257
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
12258
12258
|
var r = t.getBoundingClientRect(), i = 1, s = 1;
|
|
12259
12259
|
e && qt(t) && (i = t.offsetWidth > 0 && gi(r.width) / t.offsetWidth || 1, s = t.offsetHeight > 0 && gi(r.height) / t.offsetHeight || 1);
|
|
12260
|
-
var o =
|
|
12260
|
+
var o = Br(t) ? Dt(t) : window, a = o.visualViewport, l = !Im() && n, u = (r.left + (l && a ? a.offsetLeft : 0)) / i, c = (r.top + (l && a ? a.offsetTop : 0)) / s, f = r.width / i, h = r.height / s;
|
|
12261
12261
|
return {
|
|
12262
12262
|
width: f,
|
|
12263
12263
|
height: h,
|
|
@@ -12298,8 +12298,8 @@ function Fn(t) {
|
|
|
12298
12298
|
function B_(t) {
|
|
12299
12299
|
return ["table", "td", "th"].indexOf(yn(t)) >= 0;
|
|
12300
12300
|
}
|
|
12301
|
-
function
|
|
12302
|
-
return ((
|
|
12301
|
+
function cr(t) {
|
|
12302
|
+
return ((Br(t) ? t.ownerDocument : (
|
|
12303
12303
|
// $FlowFixMe[prop-missing]
|
|
12304
12304
|
t.document
|
|
12305
12305
|
)) || window.document).documentElement;
|
|
@@ -12313,7 +12313,7 @@ function Ea(t) {
|
|
|
12313
12313
|
t.parentNode || // DOM Element detected
|
|
12314
12314
|
(hc(t) ? t.host : null) || // ShadowRoot detected
|
|
12315
12315
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
12316
|
-
|
|
12316
|
+
cr(t)
|
|
12317
12317
|
);
|
|
12318
12318
|
}
|
|
12319
12319
|
function nf(t) {
|
|
@@ -12345,7 +12345,7 @@ function mc(t) {
|
|
|
12345
12345
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
12346
12346
|
}
|
|
12347
12347
|
function Ui(t, e, n) {
|
|
12348
|
-
return
|
|
12348
|
+
return Or(t, Mo(e, n));
|
|
12349
12349
|
}
|
|
12350
12350
|
function $_(t, e, n) {
|
|
12351
12351
|
var r = Ui(t, e, n);
|
|
@@ -12420,7 +12420,7 @@ function rf(t) {
|
|
|
12420
12420
|
var _ = o.hasOwnProperty("x"), T = o.hasOwnProperty("y"), A = St, d = Et, g = window;
|
|
12421
12421
|
if (u) {
|
|
12422
12422
|
var p = Os(n), y = "clientHeight", k = "clientWidth";
|
|
12423
|
-
if (p === Dt(n) && (p =
|
|
12423
|
+
if (p === Dt(n) && (p = cr(n), Fn(p).position !== "static" && a === "absolute" && (y = "scrollHeight", k = "scrollWidth")), p = p, i === Et || (i === St || i === Yt) && s === us) {
|
|
12424
12424
|
d = Jt;
|
|
12425
12425
|
var S = f && p === g && g.visualViewport ? g.visualViewport.height : (
|
|
12426
12426
|
// $FlowFixMe[prop-missing]
|
|
@@ -12532,10 +12532,10 @@ function gc(t) {
|
|
|
12532
12532
|
};
|
|
12533
12533
|
}
|
|
12534
12534
|
function bc(t) {
|
|
12535
|
-
return bi(
|
|
12535
|
+
return bi(cr(t)).left + gc(t).scrollLeft;
|
|
12536
12536
|
}
|
|
12537
12537
|
function Q_(t, e) {
|
|
12538
|
-
var n = Dt(t), r =
|
|
12538
|
+
var n = Dt(t), r = cr(t), i = n.visualViewport, s = r.clientWidth, o = r.clientHeight, a = 0, l = 0;
|
|
12539
12539
|
if (i) {
|
|
12540
12540
|
s = i.width, o = i.height;
|
|
12541
12541
|
var u = Im();
|
|
@@ -12549,8 +12549,8 @@ function Q_(t, e) {
|
|
|
12549
12549
|
};
|
|
12550
12550
|
}
|
|
12551
12551
|
function Z_(t) {
|
|
12552
|
-
var e, n =
|
|
12553
|
-
return Fn(i || n).direction === "rtl" && (a +=
|
|
12552
|
+
var e, n = cr(t), r = gc(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, s = Or(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Or(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), a = -r.scrollLeft + bc(t), l = -r.scrollTop;
|
|
12553
|
+
return Fn(i || n).direction === "rtl" && (a += Or(n.clientWidth, i ? i.clientWidth : 0) - s), {
|
|
12554
12554
|
width: s,
|
|
12555
12555
|
height: o,
|
|
12556
12556
|
x: a,
|
|
@@ -12586,18 +12586,18 @@ function ek(t, e) {
|
|
|
12586
12586
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
12587
12587
|
}
|
|
12588
12588
|
function of(t, e, n) {
|
|
12589
|
-
return e === Rm ? Ql(Q_(t, n)) :
|
|
12589
|
+
return e === Rm ? Ql(Q_(t, n)) : Br(e) ? ek(e, n) : Ql(Z_(cr(t)));
|
|
12590
12590
|
}
|
|
12591
12591
|
function tk(t) {
|
|
12592
12592
|
var e = Wi(Ea(t)), n = ["absolute", "fixed"].indexOf(Fn(t).position) >= 0, r = n && qt(t) ? Os(t) : t;
|
|
12593
|
-
return
|
|
12594
|
-
return
|
|
12593
|
+
return Br(r) ? e.filter(function(i) {
|
|
12594
|
+
return Br(i) && Bm(i, r) && yn(i) !== "body";
|
|
12595
12595
|
}) : [];
|
|
12596
12596
|
}
|
|
12597
12597
|
function nk(t, e, n, r) {
|
|
12598
12598
|
var i = e === "clippingParents" ? tk(t) : [].concat(e), s = [].concat(i, [n]), o = s[0], a = s.reduce(function(l, u) {
|
|
12599
12599
|
var c = of(t, u, r);
|
|
12600
|
-
return l.top =
|
|
12600
|
+
return l.top = Or(c.top, l.top), l.right = Mo(c.right, l.right), l.bottom = Mo(c.bottom, l.bottom), l.left = Or(c.left, l.left), l;
|
|
12601
12601
|
}, of(t, o, r));
|
|
12602
12602
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
12603
12603
|
}
|
|
@@ -12650,7 +12650,7 @@ function Vm(t) {
|
|
|
12650
12650
|
}
|
|
12651
12651
|
function cs(t, e) {
|
|
12652
12652
|
e === void 0 && (e = {});
|
|
12653
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? E_ : a, u = n.rootBoundary, c = u === void 0 ? Rm : u, f = n.elementContext, h = f === void 0 ? Ni : f, m = n.altBoundary, b = m === void 0 ? !1 : m, w = n.padding, v = w === void 0 ? 0 : w, _ = $m(typeof v != "number" ? v : Hm(v, As)), T = h === Ni ? S_ : Ni, A = t.rects.popper, d = t.elements[b ? T : h], g = nk(
|
|
12653
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? E_ : a, u = n.rootBoundary, c = u === void 0 ? Rm : u, f = n.elementContext, h = f === void 0 ? Ni : f, m = n.altBoundary, b = m === void 0 ? !1 : m, w = n.padding, v = w === void 0 ? 0 : w, _ = $m(typeof v != "number" ? v : Hm(v, As)), T = h === Ni ? S_ : Ni, A = t.rects.popper, d = t.elements[b ? T : h], g = nk(Br(d) ? d : d.contextElement || cr(t.elements.popper), l, c, o), p = bi(t.elements.reference), y = Vm({
|
|
12654
12654
|
reference: p,
|
|
12655
12655
|
element: A,
|
|
12656
12656
|
placement: i
|
|
@@ -12858,7 +12858,7 @@ function mk(t) {
|
|
|
12858
12858
|
var D, B = d === "y" ? Et : St, F = d === "y" ? Jt : Yt, C = d === "y" ? "height" : "width", P = p[d], U = P + v[B], q = P - v[F], Q = m ? -k[C] / 2 : 0, G = T === mi ? y[C] : k[C], ge = T === mi ? -k[C] : -y[C], Te = e.elements.arrow, xe = m && Te ? pc(Te) : {
|
|
12859
12859
|
width: 0,
|
|
12860
12860
|
height: 0
|
|
12861
|
-
}, he = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fm(), we = he[B], Le = he[F], ve = Ui(0, y[C], xe[C]), yt = A ? y[C] / 2 - Q - ve - we - E.mainAxis : G - ve - we - E.mainAxis, et = A ? -y[C] / 2 + Q + ve + Le + E.mainAxis : ge + ve + Le + E.mainAxis, Mt = e.elements.arrow && Os(e.elements.arrow), It = Mt ? d === "y" ? Mt.clientTop || 0 : Mt.clientLeft || 0 : 0, wt = (D = M?.[d]) != null ? D : 0, sn = P + yt - wt - It, Bt = P + et - wt, Xt = Ui(m ? Mo(U, sn) : U, P, m ?
|
|
12861
|
+
}, he = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Fm(), we = he[B], Le = he[F], ve = Ui(0, y[C], xe[C]), yt = A ? y[C] / 2 - Q - ve - we - E.mainAxis : G - ve - we - E.mainAxis, et = A ? -y[C] / 2 + Q + ve + Le + E.mainAxis : ge + ve + Le + E.mainAxis, Mt = e.elements.arrow && Os(e.elements.arrow), It = Mt ? d === "y" ? Mt.clientTop || 0 : Mt.clientLeft || 0 : 0, wt = (D = M?.[d]) != null ? D : 0, sn = P + yt - wt - It, Bt = P + et - wt, Xt = Ui(m ? Mo(U, sn) : U, P, m ? Or(q, Bt) : q);
|
|
12862
12862
|
p[d] = Xt, R[d] = Xt - P;
|
|
12863
12863
|
}
|
|
12864
12864
|
if (a) {
|
|
@@ -12890,7 +12890,7 @@ function wk(t) {
|
|
|
12890
12890
|
}
|
|
12891
12891
|
function vk(t, e, n) {
|
|
12892
12892
|
n === void 0 && (n = !1);
|
|
12893
|
-
var r = qt(e), i = qt(e) && wk(e), s =
|
|
12893
|
+
var r = qt(e), i = qt(e) && wk(e), s = cr(e), o = bi(t, i, n), a = {
|
|
12894
12894
|
scrollLeft: 0,
|
|
12895
12895
|
scrollTop: 0
|
|
12896
12896
|
}, l = {
|
|
@@ -12987,7 +12987,7 @@ function Ck(t) {
|
|
|
12987
12987
|
setOptions: function(_) {
|
|
12988
12988
|
var T = typeof _ == "function" ? _(c.options) : _;
|
|
12989
12989
|
w(), c.options = Object.assign({}, s, c.options, T), c.scrollParents = {
|
|
12990
|
-
reference:
|
|
12990
|
+
reference: Br(a) ? Wi(a) : a.contextElement ? Wi(a.contextElement) : [],
|
|
12991
12991
|
popper: Wi(l)
|
|
12992
12992
|
};
|
|
12993
12993
|
var A = kk(Sk([].concat(r, c.options.modifiers)));
|
|
@@ -13067,7 +13067,7 @@ function Ck(t) {
|
|
|
13067
13067
|
}
|
|
13068
13068
|
var Tk = [J_, hk, q_, Dm, dk, ok, gk, j_, lk], Ak = /* @__PURE__ */ Ck({
|
|
13069
13069
|
defaultModifiers: Tk
|
|
13070
|
-
}), Ok = "tippy-box", jm = "tippy-content", Mk = "tippy-backdrop", Um = "tippy-arrow", Wm = "tippy-svg-arrow",
|
|
13070
|
+
}), Ok = "tippy-box", jm = "tippy-content", Mk = "tippy-backdrop", Um = "tippy-arrow", Wm = "tippy-svg-arrow", gr = {
|
|
13071
13071
|
passive: !0,
|
|
13072
13072
|
capture: !0
|
|
13073
13073
|
}, Km = function() {
|
|
@@ -13109,7 +13109,7 @@ function xk(t, e) {
|
|
|
13109
13109
|
function Lk(t) {
|
|
13110
13110
|
return t.split(/\s+/).filter(Boolean);
|
|
13111
13111
|
}
|
|
13112
|
-
function
|
|
13112
|
+
function ti(t) {
|
|
13113
13113
|
return [].concat(t);
|
|
13114
13114
|
}
|
|
13115
13115
|
function ff(t, e) {
|
|
@@ -13162,7 +13162,7 @@ function pf(t, e) {
|
|
|
13162
13162
|
});
|
|
13163
13163
|
}
|
|
13164
13164
|
function $k(t) {
|
|
13165
|
-
var e, n =
|
|
13165
|
+
var e, n = ti(t), r = n[0];
|
|
13166
13166
|
return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
|
|
13167
13167
|
}
|
|
13168
13168
|
function Hk(t, e) {
|
|
@@ -13208,13 +13208,13 @@ function Vk() {
|
|
|
13208
13208
|
}
|
|
13209
13209
|
}
|
|
13210
13210
|
function jk() {
|
|
13211
|
-
document.addEventListener("touchstart", zk,
|
|
13211
|
+
document.addEventListener("touchstart", zk, gr), window.addEventListener("blur", Vk);
|
|
13212
13212
|
}
|
|
13213
13213
|
var Uk = typeof window < "u" && typeof document < "u", Wk = Uk ? (
|
|
13214
13214
|
// @ts-ignore
|
|
13215
13215
|
!!window.msCrypto
|
|
13216
13216
|
) : !1;
|
|
13217
|
-
function
|
|
13217
|
+
function Xr(t) {
|
|
13218
13218
|
var e = t === "destroy" ? "n already-" : " ";
|
|
13219
13219
|
return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
13220
13220
|
}
|
|
@@ -13455,7 +13455,7 @@ function tE(t, e) {
|
|
|
13455
13455
|
setProps: de,
|
|
13456
13456
|
setContent: Ae,
|
|
13457
13457
|
show: En,
|
|
13458
|
-
hide:
|
|
13458
|
+
hide: Kr,
|
|
13459
13459
|
hideWithInteractivity: Hn,
|
|
13460
13460
|
enable: ue,
|
|
13461
13461
|
disable: L,
|
|
@@ -13512,7 +13512,7 @@ function tE(t, e) {
|
|
|
13512
13512
|
function q() {
|
|
13513
13513
|
var I = d.props.aria;
|
|
13514
13514
|
if (I.content) {
|
|
13515
|
-
var X = "aria-" + I.content, re = p.id, ye =
|
|
13515
|
+
var X = "aria-" + I.content, re = p.id, ye = ti(d.props.triggerTarget || t);
|
|
13516
13516
|
ye.forEach(function(pe) {
|
|
13517
13517
|
var ut = pe.getAttribute(X);
|
|
13518
13518
|
if (d.state.isVisible)
|
|
@@ -13526,7 +13526,7 @@ function tE(t, e) {
|
|
|
13526
13526
|
}
|
|
13527
13527
|
function Q() {
|
|
13528
13528
|
if (!(S || !d.props.aria.expanded)) {
|
|
13529
|
-
var I =
|
|
13529
|
+
var I = ti(d.props.triggerTarget || t);
|
|
13530
13530
|
I.forEach(function(X) {
|
|
13531
13531
|
d.props.interactive ? X.setAttribute("aria-expanded", d.state.isVisible && X === D() ? "true" : "false") : X.removeAttribute("aria-expanded");
|
|
13532
13532
|
});
|
|
@@ -13541,7 +13541,7 @@ function tE(t, e) {
|
|
|
13541
13541
|
if (!(dn.isTouch && (l || I.type === "mousedown"))) {
|
|
13542
13542
|
var X = I.composedPath && I.composedPath()[0] || I.target;
|
|
13543
13543
|
if (!(d.props.interactive && mf(p, X))) {
|
|
13544
|
-
if (
|
|
13544
|
+
if (ti(d.props.triggerTarget || t).some(function(re) {
|
|
13545
13545
|
return mf(re, X);
|
|
13546
13546
|
})) {
|
|
13547
13547
|
if (dn.isTouch || d.state.isVisible && d.props.trigger.indexOf("click") >= 0)
|
|
@@ -13562,11 +13562,11 @@ function tE(t, e) {
|
|
|
13562
13562
|
}
|
|
13563
13563
|
function he() {
|
|
13564
13564
|
var I = B();
|
|
13565
|
-
I.addEventListener("mousedown", ge, !0), I.addEventListener("touchend", ge,
|
|
13565
|
+
I.addEventListener("mousedown", ge, !0), I.addEventListener("touchend", ge, gr), I.addEventListener("touchstart", xe, gr), I.addEventListener("touchmove", Te, gr);
|
|
13566
13566
|
}
|
|
13567
13567
|
function we() {
|
|
13568
13568
|
var I = B();
|
|
13569
|
-
I.removeEventListener("mousedown", ge, !0), I.removeEventListener("touchend", ge,
|
|
13569
|
+
I.removeEventListener("mousedown", ge, !0), I.removeEventListener("touchend", ge, gr), I.removeEventListener("touchstart", xe, gr), I.removeEventListener("touchmove", Te, gr);
|
|
13570
13570
|
}
|
|
13571
13571
|
function Le(I, X) {
|
|
13572
13572
|
yt(I, function() {
|
|
@@ -13587,7 +13587,7 @@ function tE(t, e) {
|
|
|
13587
13587
|
}
|
|
13588
13588
|
function et(I, X, re) {
|
|
13589
13589
|
re === void 0 && (re = !1);
|
|
13590
|
-
var ye =
|
|
13590
|
+
var ye = ti(d.props.triggerTarget || t);
|
|
13591
13591
|
ye.forEach(function(pe) {
|
|
13592
13592
|
pe.addEventListener(I, X, re), m.push({
|
|
13593
13593
|
node: pe,
|
|
@@ -13636,10 +13636,10 @@ function tE(t, e) {
|
|
|
13636
13636
|
var X = I.target, re = D().contains(X) || p.contains(X);
|
|
13637
13637
|
if (!(I.type === "mousemove" && re)) {
|
|
13638
13638
|
var ye = Y().concat(p).map(function(pe) {
|
|
13639
|
-
var ut, Ft = pe._tippy,
|
|
13640
|
-
return
|
|
13639
|
+
var ut, Ft = pe._tippy, qr = (ut = Ft.popperInstance) == null ? void 0 : ut.state;
|
|
13640
|
+
return qr ? {
|
|
13641
13641
|
popperRect: pe.getBoundingClientRect(),
|
|
13642
|
-
popperState:
|
|
13642
|
+
popperState: qr,
|
|
13643
13643
|
props: n
|
|
13644
13644
|
} : null;
|
|
13645
13645
|
}).filter(Boolean);
|
|
@@ -13664,7 +13664,7 @@ function tE(t, e) {
|
|
|
13664
13664
|
}
|
|
13665
13665
|
function O() {
|
|
13666
13666
|
N();
|
|
13667
|
-
var I = d.props, X = I.popperOptions, re = I.placement, ye = I.offset, pe = I.getReferenceClientRect, ut = I.moveTransition, Ft = R() ? tu(p).arrow : null,
|
|
13667
|
+
var I = d.props, X = I.popperOptions, re = I.placement, ye = I.offset, pe = I.getReferenceClientRect, ut = I.moveTransition, Ft = R() ? tu(p).arrow : null, qr = pe ? {
|
|
13668
13668
|
getBoundingClientRect: pe,
|
|
13669
13669
|
contextElement: pe.contextElement || D()
|
|
13670
13670
|
} : t, Gc = {
|
|
@@ -13673,15 +13673,15 @@ function tE(t, e) {
|
|
|
13673
13673
|
phase: "beforeWrite",
|
|
13674
13674
|
requires: ["computeStyles"],
|
|
13675
13675
|
fn: function(Rs) {
|
|
13676
|
-
var
|
|
13676
|
+
var Gr = Rs.state;
|
|
13677
13677
|
if (R()) {
|
|
13678
13678
|
var gb = F(), Ha = gb.box;
|
|
13679
13679
|
["placement", "reference-hidden", "escaped"].forEach(function(Ps) {
|
|
13680
|
-
Ps === "placement" ? Ha.setAttribute("data-placement",
|
|
13681
|
-
}),
|
|
13680
|
+
Ps === "placement" ? Ha.setAttribute("data-placement", Gr.placement) : Gr.attributes.popper["data-popper-" + Ps] ? Ha.setAttribute("data-" + Ps, "") : Ha.removeAttribute("data-" + Ps);
|
|
13681
|
+
}), Gr.attributes.popper = {};
|
|
13682
13682
|
}
|
|
13683
13683
|
}
|
|
13684
|
-
},
|
|
13684
|
+
}, pr = [{
|
|
13685
13685
|
name: "offset",
|
|
13686
13686
|
options: {
|
|
13687
13687
|
offset: ye
|
|
@@ -13707,16 +13707,16 @@ function tE(t, e) {
|
|
|
13707
13707
|
adaptive: !ut
|
|
13708
13708
|
}
|
|
13709
13709
|
}, Gc];
|
|
13710
|
-
R() && Ft &&
|
|
13710
|
+
R() && Ft && pr.push({
|
|
13711
13711
|
name: "arrow",
|
|
13712
13712
|
options: {
|
|
13713
13713
|
element: Ft,
|
|
13714
13714
|
padding: 3
|
|
13715
13715
|
}
|
|
13716
|
-
}),
|
|
13716
|
+
}), pr.push.apply(pr, X?.modifiers || []), d.popperInstance = Ak(qr, p, Object.assign({}, X, {
|
|
13717
13717
|
placement: re,
|
|
13718
13718
|
onFirstUpdate: h,
|
|
13719
|
-
modifiers:
|
|
13719
|
+
modifiers: pr
|
|
13720
13720
|
}));
|
|
13721
13721
|
}
|
|
13722
13722
|
function N() {
|
|
@@ -13766,12 +13766,12 @@ function tE(t, e) {
|
|
|
13766
13766
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
|
|
13767
13767
|
}
|
|
13768
13768
|
function de(I) {
|
|
13769
|
-
if (process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13769
|
+
if (process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("setProps")), !d.state.isDestroyed) {
|
|
13770
13770
|
U("onBeforeUpdate", [d, I]), It();
|
|
13771
13771
|
var X = d.props, re = yf(t, Object.assign({}, X, hf(I), {
|
|
13772
13772
|
ignoreAttributes: !0
|
|
13773
13773
|
}));
|
|
13774
|
-
d.props = re, Mt(), X.interactiveDebounce !== re.interactiveDebounce && (G(), b = df(sn, re.interactiveDebounce)), X.triggerTarget && !re.triggerTarget ?
|
|
13774
|
+
d.props = re, Mt(), X.interactiveDebounce !== re.interactiveDebounce && (G(), b = df(sn, re.interactiveDebounce)), X.triggerTarget && !re.triggerTarget ? ti(X.triggerTarget).forEach(function(ye) {
|
|
13775
13775
|
ye.removeAttribute("aria-expanded");
|
|
13776
13776
|
}) : re.triggerTarget && t.removeAttribute("aria-expanded"), Q(), P(), y && y(X, re), d.popperInstance && (O(), Y().forEach(function(ye) {
|
|
13777
13777
|
requestAnimationFrame(ye._tippy.popperInstance.forceUpdate);
|
|
@@ -13784,29 +13784,29 @@ function tE(t, e) {
|
|
|
13784
13784
|
});
|
|
13785
13785
|
}
|
|
13786
13786
|
function En() {
|
|
13787
|
-
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13787
|
+
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("show"));
|
|
13788
13788
|
var I = d.state.isVisible, X = d.state.isDestroyed, re = !d.state.isEnabled, ye = dn.isTouch && !d.props.touch, pe = sl(d.props.duration, 0, xt.duration);
|
|
13789
13789
|
if (!(I || X || re || ye) && !D().hasAttribute("disabled") && (U("onShow", [d], !1), d.props.onShow(d) !== !1)) {
|
|
13790
13790
|
if (d.state.isVisible = !0, R() && (p.style.visibility = "visible"), P(), he(), d.state.isMounted || (p.style.transition = "none"), R()) {
|
|
13791
|
-
var ut = F(), Ft = ut.box,
|
|
13792
|
-
ol([Ft,
|
|
13791
|
+
var ut = F(), Ft = ut.box, qr = ut.content;
|
|
13792
|
+
ol([Ft, qr], 0);
|
|
13793
13793
|
}
|
|
13794
13794
|
h = function() {
|
|
13795
|
-
var
|
|
13795
|
+
var pr;
|
|
13796
13796
|
if (!(!d.state.isVisible || u)) {
|
|
13797
13797
|
if (u = !0, p.offsetHeight, p.style.transition = d.props.moveTransition, R() && d.props.animation) {
|
|
13798
|
-
var $a = F(), Rs = $a.box,
|
|
13799
|
-
ol([Rs,
|
|
13798
|
+
var $a = F(), Rs = $a.box, Gr = $a.content;
|
|
13799
|
+
ol([Rs, Gr], pe), pf([Rs, Gr], "visible");
|
|
13800
13800
|
}
|
|
13801
|
-
q(), Q(), ff(ll, d), (
|
|
13801
|
+
q(), Q(), ff(ll, d), (pr = d.popperInstance) == null || pr.forceUpdate(), U("onMount", [d]), d.props.animation && R() && ve(pe, function() {
|
|
13802
13802
|
d.state.isShown = !0, U("onShown", [d]);
|
|
13803
13803
|
});
|
|
13804
13804
|
}
|
|
13805
13805
|
}, H();
|
|
13806
13806
|
}
|
|
13807
13807
|
}
|
|
13808
|
-
function
|
|
13809
|
-
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13808
|
+
function Kr() {
|
|
13809
|
+
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("hide"));
|
|
13810
13810
|
var I = !d.state.isVisible, X = d.state.isDestroyed, re = !d.state.isEnabled, ye = sl(d.props.duration, 1, xt.duration);
|
|
13811
13811
|
if (!(I || X || re) && (U("onHide", [d], !1), d.props.onHide(d) !== !1)) {
|
|
13812
13812
|
if (d.state.isVisible = !1, d.state.isShown = !1, u = !1, o = !1, R() && (p.style.visibility = "hidden"), G(), we(), P(!0), R()) {
|
|
@@ -13817,17 +13817,17 @@ function tE(t, e) {
|
|
|
13817
13817
|
}
|
|
13818
13818
|
}
|
|
13819
13819
|
function Hn(I) {
|
|
13820
|
-
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13820
|
+
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("hideWithInteractivity")), B().addEventListener("mousemove", b), ff(Vs, b), b(I);
|
|
13821
13821
|
}
|
|
13822
13822
|
function Sn() {
|
|
13823
|
-
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13823
|
+
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("unmount")), d.state.isVisible && d.hide(), d.state.isMounted && (N(), Y().forEach(function(I) {
|
|
13824
13824
|
I._tippy.unmount();
|
|
13825
13825
|
}), p.parentNode && p.parentNode.removeChild(p), ll = ll.filter(function(I) {
|
|
13826
13826
|
return I !== d;
|
|
13827
13827
|
}), d.state.isMounted = !1, U("onHidden", [d]));
|
|
13828
13828
|
}
|
|
13829
13829
|
function Fa() {
|
|
13830
|
-
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed,
|
|
13830
|
+
process.env.NODE_ENV !== "production" && Ln(d.state.isDestroyed, Xr("destroy")), !d.state.isDestroyed && (d.clearDelayTimeouts(), d.unmount(), It(), delete t._tippy, d.state.isDestroyed = !0, U("onDestroy", [d]));
|
|
13831
13831
|
}
|
|
13832
13832
|
}
|
|
13833
13833
|
function Si(t, e) {
|
|
@@ -14131,7 +14131,7 @@ $n({
|
|
|
14131
14131
|
i.unregisterPlugin(r);
|
|
14132
14132
|
}), () => {
|
|
14133
14133
|
var r;
|
|
14134
|
-
return
|
|
14134
|
+
return jr("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
|
|
14135
14135
|
};
|
|
14136
14136
|
}
|
|
14137
14137
|
});
|
|
@@ -14208,7 +14208,7 @@ const ng = $n({
|
|
|
14208
14208
|
}), { rootEl: e };
|
|
14209
14209
|
},
|
|
14210
14210
|
render() {
|
|
14211
|
-
return
|
|
14211
|
+
return jr("div", {
|
|
14212
14212
|
ref: (t) => {
|
|
14213
14213
|
this.rootEl = t;
|
|
14214
14214
|
}
|
|
@@ -14253,7 +14253,7 @@ $n({
|
|
|
14253
14253
|
i.unregisterPlugin(r);
|
|
14254
14254
|
}), () => {
|
|
14255
14255
|
var r;
|
|
14256
|
-
return
|
|
14256
|
+
return jr("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
|
|
14257
14257
|
};
|
|
14258
14258
|
}
|
|
14259
14259
|
});
|
|
@@ -14266,7 +14266,7 @@ $n({
|
|
|
14266
14266
|
}
|
|
14267
14267
|
},
|
|
14268
14268
|
render() {
|
|
14269
|
-
return
|
|
14269
|
+
return jr(this.as, {
|
|
14270
14270
|
style: {
|
|
14271
14271
|
whiteSpace: "pre-wrap"
|
|
14272
14272
|
},
|
|
@@ -14285,7 +14285,7 @@ $n({
|
|
|
14285
14285
|
inject: ["onDragStart", "decorationClasses"],
|
|
14286
14286
|
render() {
|
|
14287
14287
|
var t, e;
|
|
14288
|
-
return
|
|
14288
|
+
return jr(this.as, {
|
|
14289
14289
|
// @ts-ignore
|
|
14290
14290
|
class: this.decorationClasses,
|
|
14291
14291
|
style: {
|
|
@@ -14350,11 +14350,11 @@ const rg = (t = {}) => {
|
|
|
14350
14350
|
},
|
|
14351
14351
|
addInputRules() {
|
|
14352
14352
|
return [
|
|
14353
|
-
|
|
14353
|
+
Ir({
|
|
14354
14354
|
find: sE,
|
|
14355
14355
|
type: this.type
|
|
14356
14356
|
}),
|
|
14357
|
-
|
|
14357
|
+
Ir({
|
|
14358
14358
|
find: aE,
|
|
14359
14359
|
type: this.type
|
|
14360
14360
|
})
|
|
@@ -14362,11 +14362,11 @@ const rg = (t = {}) => {
|
|
|
14362
14362
|
},
|
|
14363
14363
|
addPasteRules() {
|
|
14364
14364
|
return [
|
|
14365
|
-
|
|
14365
|
+
or({
|
|
14366
14366
|
find: oE,
|
|
14367
14367
|
type: this.type
|
|
14368
14368
|
}),
|
|
14369
|
-
|
|
14369
|
+
or({
|
|
14370
14370
|
find: lE,
|
|
14371
14371
|
type: this.type
|
|
14372
14372
|
})
|
|
@@ -14415,11 +14415,11 @@ const rg = (t = {}) => {
|
|
|
14415
14415
|
},
|
|
14416
14416
|
addInputRules() {
|
|
14417
14417
|
return [
|
|
14418
|
-
|
|
14418
|
+
Ir({
|
|
14419
14419
|
find: uE,
|
|
14420
14420
|
type: this.type
|
|
14421
14421
|
}),
|
|
14422
|
-
|
|
14422
|
+
Ir({
|
|
14423
14423
|
find: dE,
|
|
14424
14424
|
type: this.type
|
|
14425
14425
|
})
|
|
@@ -14427,11 +14427,11 @@ const rg = (t = {}) => {
|
|
|
14427
14427
|
},
|
|
14428
14428
|
addPasteRules() {
|
|
14429
14429
|
return [
|
|
14430
|
-
|
|
14430
|
+
or({
|
|
14431
14431
|
find: cE,
|
|
14432
14432
|
type: this.type
|
|
14433
14433
|
}),
|
|
14434
|
-
|
|
14434
|
+
or({
|
|
14435
14435
|
find: fE,
|
|
14436
14436
|
type: this.type
|
|
14437
14437
|
})
|
|
@@ -14479,7 +14479,7 @@ const rg = (t = {}) => {
|
|
|
14479
14479
|
},
|
|
14480
14480
|
addInputRules() {
|
|
14481
14481
|
return [
|
|
14482
|
-
|
|
14482
|
+
Ir({
|
|
14483
14483
|
find: hE,
|
|
14484
14484
|
type: this.type
|
|
14485
14485
|
})
|
|
@@ -14487,7 +14487,7 @@ const rg = (t = {}) => {
|
|
|
14487
14487
|
},
|
|
14488
14488
|
addPasteRules() {
|
|
14489
14489
|
return [
|
|
14490
|
-
|
|
14490
|
+
or({
|
|
14491
14491
|
find: pE,
|
|
14492
14492
|
type: this.type
|
|
14493
14493
|
})
|
|
@@ -14525,7 +14525,7 @@ const rg = (t = {}) => {
|
|
|
14525
14525
|
},
|
|
14526
14526
|
addInputRules() {
|
|
14527
14527
|
return [
|
|
14528
|
-
|
|
14528
|
+
Ir({
|
|
14529
14529
|
find: mE,
|
|
14530
14530
|
type: this.type
|
|
14531
14531
|
})
|
|
@@ -14533,7 +14533,7 @@ const rg = (t = {}) => {
|
|
|
14533
14533
|
},
|
|
14534
14534
|
addPasteRules() {
|
|
14535
14535
|
return [
|
|
14536
|
-
|
|
14536
|
+
or({
|
|
14537
14537
|
find: gE,
|
|
14538
14538
|
type: this.type
|
|
14539
14539
|
})
|
|
@@ -15134,15 +15134,15 @@ class Wn {
|
|
|
15134
15134
|
}
|
|
15135
15135
|
const CE = 20;
|
|
15136
15136
|
function TE(t, e, n, r) {
|
|
15137
|
-
let i = n.getMeta(
|
|
15137
|
+
let i = n.getMeta(Mr), s;
|
|
15138
15138
|
if (i)
|
|
15139
15139
|
return i.historyState;
|
|
15140
15140
|
n.getMeta(ME) && (t = new Wn(t.done, t.undone, null, 0, -1));
|
|
15141
15141
|
let o = n.getMeta("appendedTransaction");
|
|
15142
15142
|
if (n.steps.length == 0)
|
|
15143
15143
|
return t;
|
|
15144
|
-
if (o && o.getMeta(
|
|
15145
|
-
return o.getMeta(
|
|
15144
|
+
if (o && o.getMeta(Mr))
|
|
15145
|
+
return o.getMeta(Mr).redo ? new Wn(t.done.addTransform(n, void 0, r, so(e)), t.undone, Tf(n.mapping.maps), t.prevTime, t.prevComposition) : new Wn(t.done, t.undone.addTransform(n, void 0, r, so(e)), null, t.prevTime, t.prevComposition);
|
|
15146
15146
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
15147
15147
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !o && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !AE(n, t.prevRanges)), u = o ? ul(t.prevRanges, n.mapping) : Tf(n.mapping.maps);
|
|
15148
15148
|
return new Wn(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, so(e)), Qt.empty, u, n.time, a ?? t.prevComposition);
|
|
@@ -15176,11 +15176,11 @@ function ul(t, e) {
|
|
|
15176
15176
|
return n;
|
|
15177
15177
|
}
|
|
15178
15178
|
function OE(t, e, n) {
|
|
15179
|
-
let r = so(e), i =
|
|
15179
|
+
let r = so(e), i = Mr.get(e).spec.config, s = (n ? t.undone : t.done).popEvent(e, r);
|
|
15180
15180
|
if (!s)
|
|
15181
15181
|
return null;
|
|
15182
15182
|
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), i, r), l = new Wn(n ? a : s.remaining, n ? s.remaining : a, null, 0, -1);
|
|
15183
|
-
return s.transform.setSelection(o).setMeta(
|
|
15183
|
+
return s.transform.setSelection(o).setMeta(Mr, { redo: n, historyState: l });
|
|
15184
15184
|
}
|
|
15185
15185
|
let cl = !1, Af = null;
|
|
15186
15186
|
function so(t) {
|
|
@@ -15195,13 +15195,13 @@ function so(t) {
|
|
|
15195
15195
|
}
|
|
15196
15196
|
return cl;
|
|
15197
15197
|
}
|
|
15198
|
-
const
|
|
15198
|
+
const Mr = new Je("history"), ME = new Je("closeHistory");
|
|
15199
15199
|
function NE(t = {}) {
|
|
15200
15200
|
return t = {
|
|
15201
15201
|
depth: t.depth || 100,
|
|
15202
15202
|
newGroupDelay: t.newGroupDelay || 500
|
|
15203
15203
|
}, new Ve({
|
|
15204
|
-
key:
|
|
15204
|
+
key: Mr,
|
|
15205
15205
|
state: {
|
|
15206
15206
|
init() {
|
|
15207
15207
|
return new Wn(Qt.empty, Qt.empty, null, 0, -1);
|
|
@@ -15223,7 +15223,7 @@ function NE(t = {}) {
|
|
|
15223
15223
|
}
|
|
15224
15224
|
function mg(t, e) {
|
|
15225
15225
|
return (n, r) => {
|
|
15226
|
-
let i =
|
|
15226
|
+
let i = Mr.getState(n);
|
|
15227
15227
|
if (!i || (t ? i.undone : i.done).eventCount == 0)
|
|
15228
15228
|
return !1;
|
|
15229
15229
|
if (r) {
|
|
@@ -15306,7 +15306,7 @@ const gg = mg(!1, !0), bg = mg(!0, !0), yg = Ge.create({
|
|
|
15306
15306
|
},
|
|
15307
15307
|
addInputRules() {
|
|
15308
15308
|
return [
|
|
15309
|
-
|
|
15309
|
+
Ir({
|
|
15310
15310
|
find: xE,
|
|
15311
15311
|
type: this.type
|
|
15312
15312
|
})
|
|
@@ -15314,7 +15314,7 @@ const gg = mg(!1, !0), bg = mg(!0, !0), yg = Ge.create({
|
|
|
15314
15314
|
},
|
|
15315
15315
|
addPasteRules() {
|
|
15316
15316
|
return [
|
|
15317
|
-
|
|
15317
|
+
or({
|
|
15318
15318
|
find: LE,
|
|
15319
15319
|
type: this.type
|
|
15320
15320
|
})
|
|
@@ -15433,7 +15433,7 @@ const gg = mg(!1, !0), bg = mg(!0, !0), yg = Ge.create({
|
|
|
15433
15433
|
function BE(t, e) {
|
|
15434
15434
|
return t in e || (e[t] = []), e[t];
|
|
15435
15435
|
}
|
|
15436
|
-
function
|
|
15436
|
+
function _r(t, e, n) {
|
|
15437
15437
|
e[nu] && (e[qi] = !0, e[Fi] = !0), e[ru] && (e[qi] = !0, e[iu] = !0), e[qi] && (e[Fi] = !0), e[iu] && (e[Fi] = !0), e[Fi] && (e[su] = !0), e[Eg] && (e[su] = !0);
|
|
15438
15438
|
for (const r in e) {
|
|
15439
15439
|
const i = BE(r, n);
|
|
@@ -15505,7 +15505,7 @@ _t.prototype = {
|
|
|
15505
15505
|
tr(t, e, n, r) {
|
|
15506
15506
|
r = r || _t.groups;
|
|
15507
15507
|
let i;
|
|
15508
|
-
return e && e.j ? i = e : (i = new _t(e), n && r &&
|
|
15508
|
+
return e && e.j ? i = e : (i = new _t(e), n && r && _r(e, n, r)), this.jr.push([t, i]), i;
|
|
15509
15509
|
},
|
|
15510
15510
|
/**
|
|
15511
15511
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -15563,14 +15563,14 @@ _t.prototype = {
|
|
|
15563
15563
|
if (r)
|
|
15564
15564
|
if (o.t && typeof o.t == "string") {
|
|
15565
15565
|
const l = wi(FE(o.t, r), n);
|
|
15566
|
-
|
|
15567
|
-
} else n &&
|
|
15566
|
+
_r(s, l, r);
|
|
15567
|
+
} else n && _r(s, n, r);
|
|
15568
15568
|
o.t = s;
|
|
15569
15569
|
}
|
|
15570
15570
|
return i.j[t] = o, o;
|
|
15571
15571
|
}
|
|
15572
15572
|
};
|
|
15573
|
-
const oe = (t, e, n, r, i) => t.ta(e, n, r, i), De = (t, e, n, r, i) => t.tr(e, n, r, i), Of = (t, e, n, r, i) => t.ts(e, n, r, i), j = (t, e, n, r, i) => t.tt(e, n, r, i), Mn = "WORD", ou = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", hs = "LOCALHOST", au = "TLD", lu = "UTLD", oo = "SCHEME",
|
|
15573
|
+
const oe = (t, e, n, r, i) => t.ta(e, n, r, i), De = (t, e, n, r, i) => t.tr(e, n, r, i), Of = (t, e, n, r, i) => t.ts(e, n, r, i), j = (t, e, n, r, i) => t.tt(e, n, r, i), Mn = "WORD", ou = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", hs = "LOCALHOST", au = "TLD", lu = "UTLD", oo = "SCHEME", ni = "SLASH_SCHEME", vc = "NUM", uu = "WS", _c = "NL", Gi = "OPENBRACE", Ji = "CLOSEBRACE", Lo = "OPENBRACKET", Ro = "CLOSEBRACKET", Po = "OPENPAREN", Do = "CLOSEPAREN", Io = "OPENANGLEBRACKET", Bo = "CLOSEANGLEBRACKET", Fo = "FULLWIDTHLEFTPAREN", $o = "FULLWIDTHRIGHTPAREN", Ho = "LEFTCORNERBRACKET", zo = "RIGHTCORNERBRACKET", Vo = "LEFTWHITECORNERBRACKET", jo = "RIGHTWHITECORNERBRACKET", Uo = "FULLWIDTHLESSTHAN", Wo = "FULLWIDTHGREATERTHAN", Ko = "AMPERSAND", qo = "APOSTROPHE", Go = "ASTERISK", Kn = "AT", Jo = "BACKSLASH", Yo = "BACKTICK", Xo = "CARET", Gn = "COLON", kc = "COMMA", Qo = "DOLLAR", un = "DOT", Zo = "EQUALS", Ec = "EXCLAMATION", Ht = "HYPHEN", Yi = "PERCENT", ea = "PIPE", ta = "PLUS", na = "POUND", Xi = "QUERY", Sc = "QUOTE", Tg = "FULLWIDTHMIDDLEDOT", Cc = "SEMI", cn = "SLASH", Qi = "TILDE", ra = "UNDERSCORE", Ag = "EMOJI", ia = "SYM";
|
|
15574
15574
|
var Og = /* @__PURE__ */ Object.freeze({
|
|
15575
15575
|
__proto__: null,
|
|
15576
15576
|
ALPHANUMERICAL: Cg,
|
|
@@ -15619,7 +15619,7 @@ var Og = /* @__PURE__ */ Object.freeze({
|
|
|
15619
15619
|
SCHEME: oo,
|
|
15620
15620
|
SEMI: Cc,
|
|
15621
15621
|
SLASH: cn,
|
|
15622
|
-
SLASH_SCHEME:
|
|
15622
|
+
SLASH_SCHEME: ni,
|
|
15623
15623
|
SYM: ia,
|
|
15624
15624
|
TILDE: Qi,
|
|
15625
15625
|
TLD: au,
|
|
@@ -15672,16 +15672,16 @@ function zE(t = []) {
|
|
|
15672
15672
|
zn(n, js[w], au, Mn, m);
|
|
15673
15673
|
for (let w = 0; w < Us.length; w++)
|
|
15674
15674
|
zn(n, Us[w], lu, ou, b);
|
|
15675
|
-
|
|
15675
|
+
_r(au, {
|
|
15676
15676
|
tld: !0,
|
|
15677
15677
|
ascii: !0
|
|
15678
|
-
}, e),
|
|
15678
|
+
}, e), _r(lu, {
|
|
15679
15679
|
utld: !0,
|
|
15680
15680
|
alpha: !0
|
|
15681
|
-
}, e), zn(n, "file", oo, Mn, m), zn(n, "mailto", oo, Mn, m), zn(n, "http",
|
|
15681
|
+
}, e), zn(n, "file", oo, Mn, m), zn(n, "mailto", oo, Mn, m), zn(n, "http", ni, Mn, m), zn(n, "https", ni, Mn, m), zn(n, "ftp", ni, Mn, m), zn(n, "ftps", ni, Mn, m), _r(oo, {
|
|
15682
15682
|
scheme: !0,
|
|
15683
15683
|
ascii: !0
|
|
15684
|
-
}, e),
|
|
15684
|
+
}, e), _r(ni, {
|
|
15685
15685
|
slashscheme: !0,
|
|
15686
15686
|
ascii: !0
|
|
15687
15687
|
}, e), t = t.sort((w, v) => w[0] > v[0] ? 1 : -1);
|
|
@@ -16204,7 +16204,7 @@ function ZE(t) {
|
|
|
16204
16204
|
});
|
|
16205
16205
|
}
|
|
16206
16206
|
const eS = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
16207
|
-
function
|
|
16207
|
+
function mr(t, e) {
|
|
16208
16208
|
const n = [
|
|
16209
16209
|
"http",
|
|
16210
16210
|
"https",
|
|
@@ -16258,7 +16258,7 @@ const Lg = Ot.create({
|
|
|
16258
16258
|
rel: "noopener noreferrer nofollow",
|
|
16259
16259
|
class: null
|
|
16260
16260
|
},
|
|
16261
|
-
isAllowedUri: (t, e) => !!
|
|
16261
|
+
isAllowedUri: (t, e) => !!mr(t, e.protocols),
|
|
16262
16262
|
validate: (t) => !!t,
|
|
16263
16263
|
shouldAutoLink: (t) => !!t
|
|
16264
16264
|
};
|
|
@@ -16289,7 +16289,7 @@ const Lg = Ot.create({
|
|
|
16289
16289
|
getAttrs: (t) => {
|
|
16290
16290
|
const e = t.getAttribute("href");
|
|
16291
16291
|
return !e || !this.options.isAllowedUri(e, {
|
|
16292
|
-
defaultValidate: (n) => !!
|
|
16292
|
+
defaultValidate: (n) => !!mr(n, this.options.protocols),
|
|
16293
16293
|
protocols: this.options.protocols,
|
|
16294
16294
|
defaultProtocol: this.options.defaultProtocol
|
|
16295
16295
|
}) ? !1 : null;
|
|
@@ -16299,7 +16299,7 @@ const Lg = Ot.create({
|
|
|
16299
16299
|
},
|
|
16300
16300
|
renderHTML({ HTMLAttributes: t }) {
|
|
16301
16301
|
return this.options.isAllowedUri(t.href, {
|
|
16302
|
-
defaultValidate: (e) => !!
|
|
16302
|
+
defaultValidate: (e) => !!mr(e, this.options.protocols),
|
|
16303
16303
|
protocols: this.options.protocols,
|
|
16304
16304
|
defaultProtocol: this.options.defaultProtocol
|
|
16305
16305
|
}) ? ["a", Ne(this.options.HTMLAttributes, t), 0] : [
|
|
@@ -16313,7 +16313,7 @@ const Lg = Ot.create({
|
|
|
16313
16313
|
setLink: (t) => ({ chain: e }) => {
|
|
16314
16314
|
const { href: n } = t;
|
|
16315
16315
|
return this.options.isAllowedUri(n, {
|
|
16316
|
-
defaultValidate: (r) => !!
|
|
16316
|
+
defaultValidate: (r) => !!mr(r, this.options.protocols),
|
|
16317
16317
|
protocols: this.options.protocols,
|
|
16318
16318
|
defaultProtocol: this.options.defaultProtocol
|
|
16319
16319
|
}) ? e().setMark(this.name, t).setMeta("preventAutolink", !0).run() : !1;
|
|
@@ -16321,7 +16321,7 @@ const Lg = Ot.create({
|
|
|
16321
16321
|
toggleLink: (t) => ({ chain: e }) => {
|
|
16322
16322
|
const { href: n } = t;
|
|
16323
16323
|
return this.options.isAllowedUri(n, {
|
|
16324
|
-
defaultValidate: (r) => !!
|
|
16324
|
+
defaultValidate: (r) => !!mr(r, this.options.protocols),
|
|
16325
16325
|
protocols: this.options.protocols,
|
|
16326
16326
|
defaultProtocol: this.options.defaultProtocol
|
|
16327
16327
|
}) ? e().toggleMark(this.name, t, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
|
|
@@ -16331,12 +16331,12 @@ const Lg = Ot.create({
|
|
|
16331
16331
|
},
|
|
16332
16332
|
addPasteRules() {
|
|
16333
16333
|
return [
|
|
16334
|
-
|
|
16334
|
+
or({
|
|
16335
16335
|
find: (t) => {
|
|
16336
16336
|
const e = [];
|
|
16337
16337
|
if (t) {
|
|
16338
16338
|
const { protocols: n, defaultProtocol: r } = this.options, i = xg(t).filter((s) => s.isLink && this.options.isAllowedUri(s.value, {
|
|
16339
|
-
defaultValidate: (o) => !!
|
|
16339
|
+
defaultValidate: (o) => !!mr(o, n),
|
|
16340
16340
|
protocols: n,
|
|
16341
16341
|
defaultProtocol: r
|
|
16342
16342
|
}));
|
|
@@ -16366,7 +16366,7 @@ const Lg = Ot.create({
|
|
|
16366
16366
|
type: this.type,
|
|
16367
16367
|
defaultProtocol: this.options.defaultProtocol,
|
|
16368
16368
|
validate: (r) => this.options.isAllowedUri(r, {
|
|
16369
|
-
defaultValidate: (i) => !!
|
|
16369
|
+
defaultValidate: (i) => !!mr(i, e),
|
|
16370
16370
|
protocols: e,
|
|
16371
16371
|
defaultProtocol: n
|
|
16372
16372
|
}),
|
|
@@ -16757,7 +16757,7 @@ function Ig(t, e, n) {
|
|
|
16757
16757
|
const r = t.node(-1), i = Fe.get(r), s = t.start(-1), o = i.nextCell(t.pos - s, e, n);
|
|
16758
16758
|
return o == null ? null : t.node(0).resolve(s + o);
|
|
16759
16759
|
}
|
|
16760
|
-
function
|
|
16760
|
+
function Fr(t, e, n = 1) {
|
|
16761
16761
|
const r = { ...t, colspan: t.colspan - n };
|
|
16762
16762
|
return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((i) => i > 0) || (r.colwidth = null)), r;
|
|
16763
16763
|
}
|
|
@@ -16827,7 +16827,7 @@ var Me = class Nn extends te {
|
|
|
16827
16827
|
const w = i.left - m.left, v = m.right - i.right;
|
|
16828
16828
|
if (w > 0 || v > 0) {
|
|
16829
16829
|
let _ = b.attrs;
|
|
16830
|
-
if (w > 0 && (_ =
|
|
16830
|
+
if (w > 0 && (_ = Fr(_, 0, w)), v > 0 && (_ = Fr(
|
|
16831
16831
|
_,
|
|
16832
16832
|
_.colspan - v,
|
|
16833
16833
|
v
|
|
@@ -17042,7 +17042,7 @@ function gS(t, e, n, r) {
|
|
|
17042
17042
|
r.setNodeMarkup(
|
|
17043
17043
|
r.mapping.map(n + 1 + u.pos),
|
|
17044
17044
|
null,
|
|
17045
|
-
|
|
17045
|
+
Fr(f, f.colspan - u.n, u.n)
|
|
17046
17046
|
);
|
|
17047
17047
|
} else if (u.type == "missing")
|
|
17048
17048
|
s[u.row] += u.n;
|
|
@@ -17135,7 +17135,7 @@ function wS(t, { map: e, table: n, tableStart: r }, i) {
|
|
|
17135
17135
|
t.setNodeMarkup(
|
|
17136
17136
|
t.mapping.slice(s).map(r + l),
|
|
17137
17137
|
null,
|
|
17138
|
-
|
|
17138
|
+
Fr(c, i - e.colCount(l))
|
|
17139
17139
|
);
|
|
17140
17140
|
else {
|
|
17141
17141
|
const f = t.mapping.slice(s).map(r + l);
|
|
@@ -17579,7 +17579,7 @@ function DS({ width: t, height: e, rows: n }, r, i) {
|
|
|
17579
17579
|
for (let c = s[a] || 0, f = 0; c < r; f++) {
|
|
17580
17580
|
let h = l.child(f % l.childCount);
|
|
17581
17581
|
c + h.attrs.colspan > r && (h = h.type.createChecked(
|
|
17582
|
-
|
|
17582
|
+
Fr(
|
|
17583
17583
|
h.attrs,
|
|
17584
17584
|
h.attrs.colspan,
|
|
17585
17585
|
c + h.attrs.colspan - r
|
|
@@ -17673,7 +17673,7 @@ function zf(t, e, n, r, i, s, o, a) {
|
|
|
17673
17673
|
t.setNodeMarkup(
|
|
17674
17674
|
b,
|
|
17675
17675
|
null,
|
|
17676
|
-
|
|
17676
|
+
Fr(
|
|
17677
17677
|
h.attrs,
|
|
17678
17678
|
o - m,
|
|
17679
17679
|
h.attrs.colspan - (o - m)
|
|
@@ -17681,7 +17681,7 @@ function zf(t, e, n, r, i, s, o, a) {
|
|
|
17681
17681
|
), t.insert(
|
|
17682
17682
|
b + h.nodeSize,
|
|
17683
17683
|
h.type.createAndFill(
|
|
17684
|
-
|
|
17684
|
+
Fr(h.attrs, 0, o - m)
|
|
17685
17685
|
)
|
|
17686
17686
|
), u += h.attrs.rowspan - 1;
|
|
17687
17687
|
}
|
|
@@ -19010,7 +19010,7 @@ const OC = /* @__PURE__ */ at(TC, [["render", AC]]), Li = async (t, e, n, r = 10
|
|
|
19010
19010
|
emits: ["isvisible"],
|
|
19011
19011
|
setup(t, { expose: e, emit: n }) {
|
|
19012
19012
|
const r = t, i = n, s = Oe(!1), o = Oe([]), a = Oe(null), l = Oe(null), u = Oe(null);
|
|
19013
|
-
|
|
19013
|
+
ir(s, (A) => {
|
|
19014
19014
|
A ? (c(), window.addEventListener(
|
|
19015
19015
|
"resize",
|
|
19016
19016
|
() => Li(r.placement, l.value, u.value)
|
|
@@ -19069,7 +19069,7 @@ const OC = /* @__PURE__ */ at(TC, [["render", AC]]), Li = async (t, e, n, r = 10
|
|
|
19069
19069
|
$i(A.$slots, "reference", {}, () => [
|
|
19070
19070
|
d[0] || (d[0] = z("button", null, "Click me!", -1))
|
|
19071
19071
|
])
|
|
19072
|
-
], 2)) :
|
|
19072
|
+
], 2)) : xr("", !0),
|
|
19073
19073
|
t.trigger === "hover" ? (ee(), le("div", {
|
|
19074
19074
|
key: 1,
|
|
19075
19075
|
ref_key: "popoverRef",
|
|
@@ -19081,7 +19081,7 @@ const OC = /* @__PURE__ */ at(TC, [["render", AC]]), Li = async (t, e, n, r = 10
|
|
|
19081
19081
|
$i(A.$slots, "reference", {}, () => [
|
|
19082
19082
|
d[1] || (d[1] = z("button", null, "Click me!", -1))
|
|
19083
19083
|
])
|
|
19084
|
-
], 34)) :
|
|
19084
|
+
], 34)) : xr("", !0),
|
|
19085
19085
|
(ee(), Ut(Jh, { to: t.teleport }, [
|
|
19086
19086
|
Rt(Yh, { name: "fade" }, {
|
|
19087
19087
|
default: At(() => [
|
|
@@ -19163,7 +19163,7 @@ const OC = /* @__PURE__ */ at(TC, [["render", AC]]), Li = async (t, e, n, r = 10
|
|
|
19163
19163
|
default: At(() => [
|
|
19164
19164
|
z("div", null, [
|
|
19165
19165
|
z("ul", LC, [
|
|
19166
|
-
(ee(!0), le(wn, null,
|
|
19166
|
+
(ee(!0), le(wn, null, Ur(i.value, (l) => (ee(), le("li", {
|
|
19167
19167
|
class: "h-[37px] w-[37px] rounded",
|
|
19168
19168
|
style: ui({ backgroundColor: l }),
|
|
19169
19169
|
onClick: (u) => s(l),
|
|
@@ -19330,13 +19330,13 @@ function jC(t, e, n, r, i, s) {
|
|
|
19330
19330
|
]),
|
|
19331
19331
|
s.hasSlot ? (ee(), le("div", VC, [
|
|
19332
19332
|
$i(t.$slots, "footer", { handleClose: s.handleClose }, void 0, !0)
|
|
19333
|
-
])) :
|
|
19333
|
+
])) : xr("", !0)
|
|
19334
19334
|
], 2)
|
|
19335
19335
|
]),
|
|
19336
19336
|
_: 3
|
|
19337
19337
|
})
|
|
19338
19338
|
], 32)
|
|
19339
|
-
])) :
|
|
19339
|
+
])) : xr("", !0)
|
|
19340
19340
|
]);
|
|
19341
19341
|
}
|
|
19342
19342
|
const UC = /* @__PURE__ */ at(BC, [["render", jC], ["__scopeId", "data-v-6d4e684d"]]), WC = {}, KC = {
|
|
@@ -19508,7 +19508,7 @@ function aT(t, e, n, r, i, s) {
|
|
|
19508
19508
|
height: "15px",
|
|
19509
19509
|
class: "stroke-gray-500 hover:stroke-red-500 transition-all"
|
|
19510
19510
|
})
|
|
19511
|
-
])) :
|
|
19511
|
+
])) : xr("", !0),
|
|
19512
19512
|
t.icon && t.icon === "search" ? (ee(), le("div", {
|
|
19513
19513
|
key: 1,
|
|
19514
19514
|
class: Ze(["absolute bottom-2/4 translate-y-2/4 cursor-pointer", t.iconStylePosition])
|
|
@@ -19538,7 +19538,7 @@ function aT(t, e, n, r, i, s) {
|
|
|
19538
19538
|
height: "15px",
|
|
19539
19539
|
class: "stroke-gray-500 hover:stroke-red-500 transition-all"
|
|
19540
19540
|
})
|
|
19541
|
-
])) :
|
|
19541
|
+
])) : xr("", !0),
|
|
19542
19542
|
Du(z("input", _b({
|
|
19543
19543
|
ref: "vsText",
|
|
19544
19544
|
disabled: t.disabled,
|
|
@@ -19562,13 +19562,13 @@ const e0 = /* @__PURE__ */ at(rT, [["render", aT], ["__scopeId", "data-v-00f5150
|
|
|
19562
19562
|
* Released under the MIT License.
|
|
19563
19563
|
*/
|
|
19564
19564
|
const tn = typeof window < "u";
|
|
19565
|
-
let Pt,
|
|
19565
|
+
let Pt, $r;
|
|
19566
19566
|
if (process.env.NODE_ENV !== "production") {
|
|
19567
19567
|
const t = tn && window.performance;
|
|
19568
19568
|
t && t.mark && t.measure && t.clearMarks && // @ts-ignore browser compat
|
|
19569
19569
|
t.clearMeasures && (Pt = (e) => {
|
|
19570
19570
|
t.mark(e);
|
|
19571
|
-
},
|
|
19571
|
+
}, $r = (e, n, r) => {
|
|
19572
19572
|
t.measure(e, n, r), t.clearMarks(n), t.clearMarks(r);
|
|
19573
19573
|
});
|
|
19574
19574
|
}
|
|
@@ -19578,7 +19578,7 @@ function Ta(t, ...e) {
|
|
|
19578
19578
|
}
|
|
19579
19579
|
const _n = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), uT = (t, e, n) => cT({ l: t, k: e, s: n }), cT = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), He = (t) => typeof t == "number" && isFinite(t), dT = (t) => Nc(t) === "[object Date]", vi = (t) => Nc(t) === "[object RegExp]", Aa = (t) => ce(t) && Object.keys(t).length === 0, je = Object.assign, fT = Object.create, ke = (t = null) => fT(t);
|
|
19580
19580
|
let Jf;
|
|
19581
|
-
const
|
|
19581
|
+
const kr = () => Jf || (Jf = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : ke());
|
|
19582
19582
|
function Yf(t) {
|
|
19583
19583
|
return t.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
19584
19584
|
}
|
|
@@ -19619,12 +19619,12 @@ function gT(t, e = 0, n = t.length) {
|
|
|
19619
19619
|
return s.join(`
|
|
19620
19620
|
`);
|
|
19621
19621
|
}
|
|
19622
|
-
function
|
|
19622
|
+
function dr(t, e) {
|
|
19623
19623
|
typeof console < "u" && (console.warn("[intlify] " + t), e && console.warn(e.stack));
|
|
19624
19624
|
}
|
|
19625
19625
|
const Qf = {};
|
|
19626
19626
|
function Lc(t) {
|
|
19627
|
-
Qf[t] || (Qf[t] = !0,
|
|
19627
|
+
Qf[t] || (Qf[t] = !0, dr(t));
|
|
19628
19628
|
}
|
|
19629
19629
|
function Rc() {
|
|
19630
19630
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -20389,24 +20389,24 @@ function th(t) {
|
|
|
20389
20389
|
}
|
|
20390
20390
|
}
|
|
20391
20391
|
const BT = "minifier";
|
|
20392
|
-
function
|
|
20392
|
+
function ri(t) {
|
|
20393
20393
|
switch (t.t = t.type, t.type) {
|
|
20394
20394
|
case 0: {
|
|
20395
20395
|
const e = t;
|
|
20396
|
-
|
|
20396
|
+
ri(e.body), e.b = e.body, delete e.body;
|
|
20397
20397
|
break;
|
|
20398
20398
|
}
|
|
20399
20399
|
case 1: {
|
|
20400
20400
|
const e = t, n = e.cases;
|
|
20401
20401
|
for (let r = 0; r < n.length; r++)
|
|
20402
|
-
|
|
20402
|
+
ri(n[r]);
|
|
20403
20403
|
e.c = n, delete e.cases;
|
|
20404
20404
|
break;
|
|
20405
20405
|
}
|
|
20406
20406
|
case 2: {
|
|
20407
20407
|
const e = t, n = e.items;
|
|
20408
20408
|
for (let r = 0; r < n.length; r++)
|
|
20409
|
-
|
|
20409
|
+
ri(n[r]);
|
|
20410
20410
|
e.i = n, delete e.items, e.static && (e.s = e.static, delete e.static);
|
|
20411
20411
|
break;
|
|
20412
20412
|
}
|
|
@@ -20420,7 +20420,7 @@ function ni(t) {
|
|
|
20420
20420
|
}
|
|
20421
20421
|
case 6: {
|
|
20422
20422
|
const e = t;
|
|
20423
|
-
|
|
20423
|
+
ri(e.key), e.k = e.key, delete e.key, e.modifier && (ri(e.modifier), e.m = e.modifier, delete e.modifier);
|
|
20424
20424
|
break;
|
|
20425
20425
|
}
|
|
20426
20426
|
case 5: {
|
|
@@ -20592,7 +20592,7 @@ const UT = (t, e = {}) => {
|
|
|
20592
20592
|
};
|
|
20593
20593
|
function WT(t, e = {}) {
|
|
20594
20594
|
const n = je({}, e), r = !!n.jit, i = !!n.minify, s = n.optimize == null ? !0 : n.optimize, a = RT(n).parse(t);
|
|
20595
|
-
return r ? (s && IT(a), i &&
|
|
20595
|
+
return r ? (s && IT(a), i && ri(a), { ast: a, code: "" }) : (DT(a, n), UT(a, n));
|
|
20596
20596
|
}
|
|
20597
20597
|
/*!
|
|
20598
20598
|
* core-base v11.1.7
|
|
@@ -20600,45 +20600,45 @@ function WT(t, e = {}) {
|
|
|
20600
20600
|
* Released under the MIT License.
|
|
20601
20601
|
*/
|
|
20602
20602
|
function KT() {
|
|
20603
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
20603
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (kr().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (kr().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
20604
20604
|
}
|
|
20605
20605
|
function Gt(t) {
|
|
20606
20606
|
return fe(t) && Dc(t) === 0 && (Zt(t, "b") || Zt(t, "body"));
|
|
20607
20607
|
}
|
|
20608
20608
|
const n0 = ["b", "body"];
|
|
20609
20609
|
function qT(t) {
|
|
20610
|
-
return
|
|
20610
|
+
return fr(t, n0);
|
|
20611
20611
|
}
|
|
20612
20612
|
const r0 = ["c", "cases"];
|
|
20613
20613
|
function GT(t) {
|
|
20614
|
-
return
|
|
20614
|
+
return fr(t, r0, []);
|
|
20615
20615
|
}
|
|
20616
20616
|
const i0 = ["s", "static"];
|
|
20617
20617
|
function JT(t) {
|
|
20618
|
-
return
|
|
20618
|
+
return fr(t, i0);
|
|
20619
20619
|
}
|
|
20620
20620
|
const s0 = ["i", "items"];
|
|
20621
20621
|
function YT(t) {
|
|
20622
|
-
return
|
|
20622
|
+
return fr(t, s0, []);
|
|
20623
20623
|
}
|
|
20624
20624
|
const o0 = ["t", "type"];
|
|
20625
20625
|
function Dc(t) {
|
|
20626
|
-
return
|
|
20626
|
+
return fr(t, o0);
|
|
20627
20627
|
}
|
|
20628
20628
|
const a0 = ["v", "value"];
|
|
20629
20629
|
function Qs(t, e) {
|
|
20630
|
-
const n =
|
|
20630
|
+
const n = fr(t, a0);
|
|
20631
20631
|
if (n != null)
|
|
20632
20632
|
return n;
|
|
20633
20633
|
throw gs(e);
|
|
20634
20634
|
}
|
|
20635
20635
|
const l0 = ["m", "modifier"];
|
|
20636
20636
|
function XT(t) {
|
|
20637
|
-
return
|
|
20637
|
+
return fr(t, l0);
|
|
20638
20638
|
}
|
|
20639
20639
|
const u0 = ["k", "key"];
|
|
20640
20640
|
function QT(t) {
|
|
20641
|
-
const e =
|
|
20641
|
+
const e = fr(t, u0);
|
|
20642
20642
|
if (e)
|
|
20643
20643
|
return e;
|
|
20644
20644
|
throw gs(
|
|
@@ -20646,7 +20646,7 @@ function QT(t) {
|
|
|
20646
20646
|
/* NodeTypes.Linked */
|
|
20647
20647
|
);
|
|
20648
20648
|
}
|
|
20649
|
-
function
|
|
20649
|
+
function fr(t, e, n) {
|
|
20650
20650
|
for (let r = 0; r < e.length; r++) {
|
|
20651
20651
|
const i = e[r];
|
|
20652
20652
|
if (Zt(t, i) && t[i] != null)
|
|
@@ -20732,7 +20732,7 @@ function bu(t, e) {
|
|
|
20732
20732
|
}
|
|
20733
20733
|
const e3 = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
20734
20734
|
function t3(t, e) {
|
|
20735
|
-
e && kT(t) &&
|
|
20735
|
+
e && kT(t) && dr(Ta(e3, { source: t }));
|
|
20736
20736
|
}
|
|
20737
20737
|
const n3 = (t) => t;
|
|
20738
20738
|
let Zs = ke();
|
|
@@ -20759,7 +20759,7 @@ function i3(t, e) {
|
|
|
20759
20759
|
return a ? l : Zs[i] = l;
|
|
20760
20760
|
} else {
|
|
20761
20761
|
if (process.env.NODE_ENV !== "production" && !Gt(t))
|
|
20762
|
-
return
|
|
20762
|
+
return dr(`the message that is resolve with key '${e.key}' is not supported for jit compilation`), () => t;
|
|
20763
20763
|
const n = t.cacheKey;
|
|
20764
20764
|
if (n) {
|
|
20765
20765
|
const r = Zs[n];
|
|
@@ -20872,8 +20872,8 @@ function h3(t, e, n) {
|
|
|
20872
20872
|
}
|
|
20873
20873
|
return r;
|
|
20874
20874
|
}
|
|
20875
|
-
const
|
|
20876
|
-
|
|
20875
|
+
const hr = [];
|
|
20876
|
+
hr[
|
|
20877
20877
|
0
|
|
20878
20878
|
/* States.BEFORE_PATH */
|
|
20879
20879
|
] = {
|
|
@@ -20895,7 +20895,7 @@ fr[
|
|
|
20895
20895
|
/* States.AFTER_PATH */
|
|
20896
20896
|
]
|
|
20897
20897
|
};
|
|
20898
|
-
|
|
20898
|
+
hr[
|
|
20899
20899
|
1
|
|
20900
20900
|
/* States.IN_PATH */
|
|
20901
20901
|
] = {
|
|
@@ -20916,7 +20916,7 @@ fr[
|
|
|
20916
20916
|
/* States.AFTER_PATH */
|
|
20917
20917
|
]
|
|
20918
20918
|
};
|
|
20919
|
-
|
|
20919
|
+
hr[
|
|
20920
20920
|
2
|
|
20921
20921
|
/* States.BEFORE_IDENT */
|
|
20922
20922
|
] = {
|
|
@@ -20935,7 +20935,7 @@ fr[
|
|
|
20935
20935
|
/* Actions.APPEND */
|
|
20936
20936
|
]
|
|
20937
20937
|
};
|
|
20938
|
-
|
|
20938
|
+
hr[
|
|
20939
20939
|
3
|
|
20940
20940
|
/* States.IN_IDENT */
|
|
20941
20941
|
] = {
|
|
@@ -20970,7 +20970,7 @@ fr[
|
|
|
20970
20970
|
/* Actions.PUSH */
|
|
20971
20971
|
]
|
|
20972
20972
|
};
|
|
20973
|
-
|
|
20973
|
+
hr[
|
|
20974
20974
|
4
|
|
20975
20975
|
/* States.IN_SUB_PATH */
|
|
20976
20976
|
] = {
|
|
@@ -21001,7 +21001,7 @@ fr[
|
|
|
21001
21001
|
/* Actions.APPEND */
|
|
21002
21002
|
]
|
|
21003
21003
|
};
|
|
21004
|
-
|
|
21004
|
+
hr[
|
|
21005
21005
|
5
|
|
21006
21006
|
/* States.IN_SINGLE_QUOTE */
|
|
21007
21007
|
] = {
|
|
@@ -21017,7 +21017,7 @@ fr[
|
|
|
21017
21017
|
/* Actions.APPEND */
|
|
21018
21018
|
]
|
|
21019
21019
|
};
|
|
21020
|
-
|
|
21020
|
+
hr[
|
|
21021
21021
|
6
|
|
21022
21022
|
/* States.IN_DOUBLE_QUOTE */
|
|
21023
21023
|
] = {
|
|
@@ -21132,7 +21132,7 @@ function w3(t) {
|
|
|
21132
21132
|
}
|
|
21133
21133
|
for (; r !== null; )
|
|
21134
21134
|
if (n++, s = t[n], !(s === "\\" && m())) {
|
|
21135
|
-
if (l = b3(s), f =
|
|
21135
|
+
if (l = b3(s), f = hr[r], u = f[l] || f.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (c = h[u[1]], c && (a = s, c() === !1))))
|
|
21136
21136
|
return;
|
|
21137
21137
|
if (r === 7)
|
|
21138
21138
|
return e;
|
|
@@ -21178,7 +21178,7 @@ const vt = {
|
|
|
21178
21178
|
[vt.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
21179
21179
|
[vt.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."
|
|
21180
21180
|
};
|
|
21181
|
-
function
|
|
21181
|
+
function Hr(t, ...e) {
|
|
21182
21182
|
return Ta(E3[t], ...e);
|
|
21183
21183
|
}
|
|
21184
21184
|
const S3 = "11.1.7", Oa = -1, ys = "en-US", sa = "", oh = (t) => `${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
|
|
@@ -21211,8 +21211,8 @@ const ah = (t) => {
|
|
|
21211
21211
|
}, x3 = () => g0;
|
|
21212
21212
|
let lh = 0;
|
|
21213
21213
|
function L3(t = {}) {
|
|
21214
|
-
const e = Se(t.onWarn) ? t.onWarn :
|
|
21215
|
-
process.env.NODE_ENV !== "production" && Se(t.messageCompiler) && Lc(
|
|
21214
|
+
const e = Se(t.onWarn) ? t.onWarn : dr, n = K(t.version) ? t.version : S3, r = K(t.locale) || Se(t.locale) ? t.locale : ys, i = Se(r) ? ys : r, s = Pe(t.fallbackLocale) || ce(t.fallbackLocale) || K(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, o = ce(t.messages) ? t.messages : vl(i), a = ce(t.datetimeFormats) ? t.datetimeFormats : vl(i), l = ce(t.numberFormats) ? t.numberFormats : vl(i), u = je(ke(), t.modifiers, C3()), c = t.pluralRules || ke(), f = Se(t.missing) ? t.missing : null, h = me(t.missingWarn) || vi(t.missingWarn) ? t.missingWarn : !0, m = me(t.fallbackWarn) || vi(t.fallbackWarn) ? t.fallbackWarn : !0, b = !!t.fallbackFormat, w = !!t.unresolving, v = Se(t.postTranslation) ? t.postTranslation : null, _ = ce(t.processor) ? t.processor : null, T = me(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, A = !!t.escapeParameter, d = Se(t.messageCompiler) ? t.messageCompiler : f0;
|
|
21215
|
+
process.env.NODE_ENV !== "production" && Se(t.messageCompiler) && Lc(Hr(vt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
21216
21216
|
const g = Se(t.messageResolver) ? t.messageResolver : h0 || v3, p = Se(t.localeFallbacker) ? t.localeFallbacker : p0 || d3, y = fe(t.fallbackContext) ? t.fallbackContext : void 0, k = t, S = fe(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), E = fe(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), M = fe(k.__meta) ? k.__meta : {};
|
|
21217
21217
|
lh++;
|
|
21218
21218
|
const R = {
|
|
@@ -21263,7 +21263,7 @@ function Bc(t, e, n, r, i) {
|
|
|
21263
21263
|
const a = s(t, n, e, i);
|
|
21264
21264
|
return K(a) ? a : e;
|
|
21265
21265
|
} else
|
|
21266
|
-
return process.env.NODE_ENV !== "production" && b0(r, e) && o(
|
|
21266
|
+
return process.env.NODE_ENV !== "production" && b0(r, e) && o(Hr(vt.NOT_FOUND_KEY, { key: e, locale: n })), e;
|
|
21267
21267
|
}
|
|
21268
21268
|
function Ri(t, e, n) {
|
|
21269
21269
|
const r = t;
|
|
@@ -21288,7 +21288,7 @@ const uh = typeof Intl < "u", w0 = {
|
|
|
21288
21288
|
function ch(t, ...e) {
|
|
21289
21289
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: s, localeFallbacker: o } = t, { __datetimeFormatters: a } = t;
|
|
21290
21290
|
if (process.env.NODE_ENV !== "production" && !w0.dateTimeFormat)
|
|
21291
|
-
return s(
|
|
21291
|
+
return s(Hr(vt.CANNOT_FORMAT_DATE)), sa;
|
|
21292
21292
|
const [l, u, c, f] = yu(...e), h = me(c.missingWarn) ? c.missingWarn : t.missingWarn, m = me(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, b = !!c.part, w = Ic(t, c), v = o(
|
|
21293
21293
|
t,
|
|
21294
21294
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -21300,7 +21300,7 @@ function ch(t, ...e) {
|
|
|
21300
21300
|
let _ = {}, T, A = null, d = w, g = null;
|
|
21301
21301
|
const p = "datetime format";
|
|
21302
21302
|
for (let S = 0; S < v.length; S++) {
|
|
21303
|
-
if (T = g = v[S], process.env.NODE_ENV !== "production" && w !== T && Ma(m, l) && s(
|
|
21303
|
+
if (T = g = v[S], process.env.NODE_ENV !== "production" && w !== T && Ma(m, l) && s(Hr(vt.FALLBACK_TO_DATE_FORMAT, {
|
|
21304
21304
|
key: l,
|
|
21305
21305
|
target: T
|
|
21306
21306
|
})), process.env.NODE_ENV !== "production" && w !== T) {
|
|
@@ -21382,7 +21382,7 @@ function dh(t, e, n) {
|
|
|
21382
21382
|
function fh(t, ...e) {
|
|
21383
21383
|
const { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: s, localeFallbacker: o } = t, { __numberFormatters: a } = t;
|
|
21384
21384
|
if (process.env.NODE_ENV !== "production" && !w0.numberFormat)
|
|
21385
|
-
return s(
|
|
21385
|
+
return s(Hr(vt.CANNOT_FORMAT_NUMBER)), sa;
|
|
21386
21386
|
const [l, u, c, f] = wu(...e), h = me(c.missingWarn) ? c.missingWarn : t.missingWarn, m = me(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, b = !!c.part, w = Ic(t, c), v = o(
|
|
21387
21387
|
t,
|
|
21388
21388
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -21394,7 +21394,7 @@ function fh(t, ...e) {
|
|
|
21394
21394
|
let _ = {}, T, A = null, d = w, g = null;
|
|
21395
21395
|
const p = "number format";
|
|
21396
21396
|
for (let S = 0; S < v.length; S++) {
|
|
21397
|
-
if (T = g = v[S], process.env.NODE_ENV !== "production" && w !== T && Ma(m, l) && s(
|
|
21397
|
+
if (T = g = v[S], process.env.NODE_ENV !== "production" && w !== T && Ma(m, l) && s(Hr(vt.FALLBACK_TO_NUMBER_FORMAT, {
|
|
21398
21398
|
key: l,
|
|
21399
21399
|
target: T
|
|
21400
21400
|
})), process.env.NODE_ENV !== "production" && w !== T) {
|
|
@@ -21510,7 +21510,7 @@ function gh(t, ...e) {
|
|
|
21510
21510
|
if (!m && !(K(d) || Gt(d) || Vt(d)) && w && (d = b, g = d), !m && (!(K(d) || Gt(d) || Vt(d)) || !K(T)))
|
|
21511
21511
|
return i ? Oa : l;
|
|
21512
21512
|
if (process.env.NODE_ENV !== "production" && K(d) && t.messageCompiler == null)
|
|
21513
|
-
return
|
|
21513
|
+
return dr(`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 '${l}'.`), l;
|
|
21514
21514
|
let p = !1;
|
|
21515
21515
|
const y = () => {
|
|
21516
21516
|
p = !0;
|
|
@@ -21540,7 +21540,7 @@ function k0(t, e, n, r, i, s) {
|
|
|
21540
21540
|
let f = ke(), h, m = null, b = n, w = null;
|
|
21541
21541
|
const v = "translate";
|
|
21542
21542
|
for (let _ = 0; _ < c.length; _++) {
|
|
21543
|
-
if (h = w = c[_], process.env.NODE_ENV !== "production" && n !== h && !y0(n, h) && Ma(i, e) && a(
|
|
21543
|
+
if (h = w = c[_], process.env.NODE_ENV !== "production" && n !== h && !y0(n, h) && Ma(i, e) && a(Hr(vt.FALLBACK_TO_TRANSLATE, {
|
|
21544
21544
|
key: e,
|
|
21545
21545
|
target: h
|
|
21546
21546
|
})), process.env.NODE_ENV !== "production" && n !== h) {
|
|
@@ -21563,7 +21563,7 @@ function k0(t, e, n, r, i, s) {
|
|
|
21563
21563
|
message: m,
|
|
21564
21564
|
time: g - T,
|
|
21565
21565
|
groupId: `${v}:${e}`
|
|
21566
|
-
}), A && d && Pt &&
|
|
21566
|
+
}), A && d && Pt && $r && (Pt(d), $r("intlify message resolve", A, d));
|
|
21567
21567
|
}
|
|
21568
21568
|
if (K(m) || Gt(m) || Vt(m))
|
|
21569
21569
|
break;
|
|
@@ -21602,7 +21602,7 @@ function E0(t, e, n, r, i, s) {
|
|
|
21602
21602
|
message: r,
|
|
21603
21603
|
time: h - l,
|
|
21604
21604
|
groupId: `translate:${e}`
|
|
21605
|
-
}), u && c && Pt &&
|
|
21605
|
+
}), u && c && Pt && $r && (Pt(c), $r("intlify message compilation", u, c));
|
|
21606
21606
|
}
|
|
21607
21607
|
return f.locale = n, f.key = e, f.source = r, f;
|
|
21608
21608
|
}
|
|
@@ -21617,7 +21617,7 @@ function j3(t, e, n) {
|
|
|
21617
21617
|
value: o,
|
|
21618
21618
|
time: a - r,
|
|
21619
21619
|
groupId: `translate:${e.key}`
|
|
21620
|
-
}), i && s && Pt &&
|
|
21620
|
+
}), i && s && Pt && $r && (Pt(s), $r("intlify message evaluation", i, s));
|
|
21621
21621
|
}
|
|
21622
21622
|
return o;
|
|
21623
21623
|
}
|
|
@@ -21694,10 +21694,10 @@ function S0() {
|
|
|
21694
21694
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
21695
21695
|
}
|
|
21696
21696
|
const G3 = typeof Proxy == "function", J3 = "devtools-plugin:setup", Y3 = "plugin:settings:set";
|
|
21697
|
-
let
|
|
21697
|
+
let Qr, _u;
|
|
21698
21698
|
function X3() {
|
|
21699
21699
|
var t;
|
|
21700
|
-
return
|
|
21700
|
+
return Qr !== void 0 || (typeof window < "u" && window.performance ? (Qr = !0, _u = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (Qr = !0, _u = globalThis.perf_hooks.performance) : Qr = !1), Qr;
|
|
21701
21701
|
}
|
|
21702
21702
|
function Q3() {
|
|
21703
21703
|
return X3() ? _u.now() : Date.now();
|
|
@@ -21784,7 +21784,7 @@ function eA(t, e) {
|
|
|
21784
21784
|
*/
|
|
21785
21785
|
const tA = "11.1.7";
|
|
21786
21786
|
function nA() {
|
|
21787
|
-
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (
|
|
21787
|
+
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (kr().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (kr().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (kr().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (kr().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
21788
21788
|
}
|
|
21789
21789
|
const _e = {
|
|
21790
21790
|
// composer module errors
|
|
@@ -21826,7 +21826,7 @@ const rA = {
|
|
|
21826
21826
|
[_e.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
21827
21827
|
[_e.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly",
|
|
21828
21828
|
[_e.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope"
|
|
21829
|
-
}, ku = /* @__PURE__ */ _n("__translateVNode"), Eu = /* @__PURE__ */ _n("__datetimeParts"), Su = /* @__PURE__ */ _n("__numberParts"),
|
|
21829
|
+
}, ku = /* @__PURE__ */ _n("__translateVNode"), Eu = /* @__PURE__ */ _n("__datetimeParts"), Su = /* @__PURE__ */ _n("__numberParts"), zr = /* @__PURE__ */ _n("__enableEmitter"), ws = /* @__PURE__ */ _n("__disableEmitter"), C0 = _n("__setPluralRules"), T0 = /* @__PURE__ */ _n("__injectWithOption"), Cu = /* @__PURE__ */ _n("__dispose"), hn = {
|
|
21830
21830
|
FALLBACK_TO_ROOT: k3,
|
|
21831
21831
|
// 8
|
|
21832
21832
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
@@ -21870,7 +21870,7 @@ function vs(t) {
|
|
|
21870
21870
|
if (n[o] === "__proto__")
|
|
21871
21871
|
throw new Error(`unsafe key: ${n[o]}`);
|
|
21872
21872
|
if (n[o] in i || (i[n[o]] = ke()), !fe(i[n[o]])) {
|
|
21873
|
-
process.env.NODE_ENV !== "production" &&
|
|
21873
|
+
process.env.NODE_ENV !== "production" && dr(Ns(hn.IGNORE_OBJ_FLATTEN, {
|
|
21874
21874
|
key: n[o]
|
|
21875
21875
|
})), s = !0;
|
|
21876
21876
|
break;
|
|
@@ -22011,7 +22011,7 @@ function $c(t = {}) {
|
|
|
22011
22011
|
function q(L, V) {
|
|
22012
22012
|
return L !== "translate" || !V.resolvedMessage;
|
|
22013
22013
|
}
|
|
22014
|
-
const Q = (L, V, de, Ae, En,
|
|
22014
|
+
const Q = (L, V, de, Ae, En, Kr) => {
|
|
22015
22015
|
S();
|
|
22016
22016
|
let Hn;
|
|
22017
22017
|
try {
|
|
@@ -22022,7 +22022,7 @@ function $c(t = {}) {
|
|
|
22022
22022
|
if (de !== "translate exists" && // for not `te` (e.g `t`)
|
|
22023
22023
|
He(Hn) && Hn === Oa || de === "translate exists" && !Hn) {
|
|
22024
22024
|
const [Sn, Fa] = V();
|
|
22025
|
-
if (process.env.NODE_ENV !== "production" && e && K(Sn) && q(de, Fa) && (b && (Ma(m, Sn) || b0(h, Sn)) &&
|
|
22025
|
+
if (process.env.NODE_ENV !== "production" && e && K(Sn) && q(de, Fa) && (b && (Ma(m, Sn) || b0(h, Sn)) && dr(Ns(hn.FALLBACK_TO_ROOT, {
|
|
22026
22026
|
key: Sn,
|
|
22027
22027
|
type: de
|
|
22028
22028
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -22036,7 +22036,7 @@ function $c(t = {}) {
|
|
|
22036
22036
|
}
|
|
22037
22037
|
return e && b ? Ae(e) : En(Sn);
|
|
22038
22038
|
} else {
|
|
22039
|
-
if (
|
|
22039
|
+
if (Kr(Hn))
|
|
22040
22040
|
return Hn;
|
|
22041
22041
|
throw ht(_e.UNEXPECTED_RETURN_TYPE);
|
|
22042
22042
|
}
|
|
@@ -22097,9 +22097,9 @@ function $c(t = {}) {
|
|
|
22097
22097
|
let V = null;
|
|
22098
22098
|
const de = d0(y, l.value, a.value);
|
|
22099
22099
|
for (let Ae = 0; Ae < de.length; Ae++) {
|
|
22100
|
-
const En = u.value[de[Ae]] || {},
|
|
22101
|
-
if (
|
|
22102
|
-
V =
|
|
22100
|
+
const En = u.value[de[Ae]] || {}, Kr = y.messageResolver(En, L);
|
|
22101
|
+
if (Kr != null) {
|
|
22102
|
+
V = Kr;
|
|
22103
22103
|
break;
|
|
22104
22104
|
}
|
|
22105
22105
|
}
|
|
@@ -22147,9 +22147,9 @@ function $c(t = {}) {
|
|
|
22147
22147
|
function be(L, V) {
|
|
22148
22148
|
f.value[L] = je(f.value[L] || {}, V), y.numberFormats = f.value, hh(y, L, V);
|
|
22149
22149
|
}
|
|
22150
|
-
vh++, e && tn && (
|
|
22150
|
+
vh++, e && tn && (ir(e.locale, (L) => {
|
|
22151
22151
|
o && (a.value = L, y.locale = L, Ri(y, a.value, l.value));
|
|
22152
|
-
}),
|
|
22152
|
+
}), ir(e.fallbackLocale, (L) => {
|
|
22153
22153
|
o && (l.value = L, y.fallbackLocale = L, Ri(y, a.value, l.value));
|
|
22154
22154
|
}));
|
|
22155
22155
|
const ue = {
|
|
@@ -22221,7 +22221,7 @@ function $c(t = {}) {
|
|
|
22221
22221
|
setMissingHandler: U,
|
|
22222
22222
|
[C0]: Mt
|
|
22223
22223
|
};
|
|
22224
|
-
return ue.datetimeFormats = D, ue.numberFormats = B, ue.rt = ge, ue.te = It, ue.tm = sn, ue.d = Te, ue.n = xe, ue.getDateTimeFormat = O, ue.setDateTimeFormat = N, ue.mergeDateTimeFormat = H, ue.getNumberFormat = Y, ue.setNumberFormat = Ee, ue.mergeNumberFormat = be, ue[T0] = n, ue[ku] = ve, ue[Eu] = et, ue[Su] = yt, process.env.NODE_ENV !== "production" && (ue[
|
|
22224
|
+
return ue.datetimeFormats = D, ue.numberFormats = B, ue.rt = ge, ue.te = It, ue.tm = sn, ue.d = Te, ue.n = xe, ue.getDateTimeFormat = O, ue.setDateTimeFormat = N, ue.mergeDateTimeFormat = H, ue.getNumberFormat = Y, ue.setNumberFormat = Ee, ue.mergeNumberFormat = be, ue[T0] = n, ue[ku] = ve, ue[Eu] = et, ue[Su] = yt, process.env.NODE_ENV !== "production" && (ue[zr] = (L) => {
|
|
22225
22225
|
y.__v_emitter = L;
|
|
22226
22226
|
}, ue[ws] = () => {
|
|
22227
22227
|
y.__v_emitter = void 0;
|
|
@@ -22685,7 +22685,7 @@ function Au(t = {}) {
|
|
|
22685
22685
|
};
|
|
22686
22686
|
return r.__extender = n, process.env.NODE_ENV !== "production" && (r.__enableEmitter = (i) => {
|
|
22687
22687
|
const s = e;
|
|
22688
|
-
s[
|
|
22688
|
+
s[zr] && s[zr](i);
|
|
22689
22689
|
}, r.__disableEmitter = () => {
|
|
22690
22690
|
const i = e;
|
|
22691
22691
|
i[ws] && i[ws]();
|
|
@@ -22804,7 +22804,7 @@ const EA = /* @__PURE__ */ $n({
|
|
|
22804
22804
|
const s = Object.keys(n).filter((f) => f[0] !== "_"), o = ke();
|
|
22805
22805
|
t.locale && (o.locale = t.locale), t.plural !== void 0 && (o.plural = K(t.plural) ? +t.plural : t.plural);
|
|
22806
22806
|
const a = kA(e, s), l = i[ku](t.keypath, a, o), u = je(ke(), r), c = K(t.tag) || fe(t.tag) ? t.tag : L0();
|
|
22807
|
-
return
|
|
22807
|
+
return jr(c, u, l);
|
|
22808
22808
|
};
|
|
22809
22809
|
}
|
|
22810
22810
|
}), Sh = EA;
|
|
@@ -22824,7 +22824,7 @@ function R0(t, e, n, r) {
|
|
|
22824
22824
|
return SA(w) && (w[0].key = `${h.type}-${m}`), w;
|
|
22825
22825
|
}) : K(l) && (u = [l]);
|
|
22826
22826
|
const c = je(ke(), s), f = K(t.tag) || fe(t.tag) ? t.tag : L0();
|
|
22827
|
-
return
|
|
22827
|
+
return jr(f, c, u);
|
|
22828
22828
|
};
|
|
22829
22829
|
}
|
|
22830
22830
|
const CA = /* @__PURE__ */ $n({
|
|
@@ -22876,7 +22876,7 @@ function AA(t) {
|
|
|
22876
22876
|
return {
|
|
22877
22877
|
created: (o, a) => {
|
|
22878
22878
|
const [l, u] = e(a);
|
|
22879
|
-
tn && t.global === u && (o.__i18nWatcher =
|
|
22879
|
+
tn && t.global === u && (o.__i18nWatcher = ir(u.locale, () => {
|
|
22880
22880
|
a.instance && a.instance.$forceUpdate();
|
|
22881
22881
|
})), o.__composer = u, o.textContent = l;
|
|
22882
22882
|
},
|
|
@@ -22954,7 +22954,7 @@ function NA(t = {}) {
|
|
|
22954
22954
|
_.__enableEmitter && _.__enableEmitter(v);
|
|
22955
22955
|
} else {
|
|
22956
22956
|
const _ = s;
|
|
22957
|
-
_[
|
|
22957
|
+
_[zr] && _[zr](v);
|
|
22958
22958
|
}
|
|
22959
22959
|
v.on("*", _s);
|
|
22960
22960
|
}
|
|
@@ -22988,7 +22988,7 @@ function Na(t = {}) {
|
|
|
22988
22988
|
return O0(r, t, i), r;
|
|
22989
22989
|
if (s === "parent") {
|
|
22990
22990
|
let l = DA(n, e, t.__useComponent);
|
|
22991
|
-
return l == null && (process.env.NODE_ENV !== "production" &&
|
|
22991
|
+
return l == null && (process.env.NODE_ENV !== "production" && dr(Ns(hn.NOT_FOUND_PARENT_SCOPE)), l = r), l;
|
|
22992
22992
|
}
|
|
22993
22993
|
const o = n;
|
|
22994
22994
|
let a = o.__getInstance(e);
|
|
@@ -23044,7 +23044,7 @@ function BA(t, e, n) {
|
|
|
23044
23044
|
if (process.env.NODE_ENV !== "production" && e.vnode.el) {
|
|
23045
23045
|
e.vnode.el.__VUE_I18N__ = n, r = Rc();
|
|
23046
23046
|
const i = n;
|
|
23047
|
-
i[
|
|
23047
|
+
i[zr] && i[zr](r), r.on("*", _s);
|
|
23048
23048
|
}
|
|
23049
23049
|
}, e), Tb(() => {
|
|
23050
23050
|
const i = n;
|
|
@@ -23119,7 +23119,7 @@ T3(i3);
|
|
|
23119
23119
|
A3(_3);
|
|
23120
23120
|
O3(d0);
|
|
23121
23121
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
23122
|
-
const t =
|
|
23122
|
+
const t = kr();
|
|
23123
23123
|
t.__INTLIFY__ = !0, s3(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
23124
23124
|
}
|
|
23125
23125
|
process.env.NODE_ENV;
|
|
@@ -23243,7 +23243,7 @@ const zA = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, VA
|
|
|
23243
23243
|
]),
|
|
23244
23244
|
default: At(() => [
|
|
23245
23245
|
z("div", jA, [
|
|
23246
|
-
(ee(), le(wn, null,
|
|
23246
|
+
(ee(), le(wn, null, Ur(f, (b, w) => z("button", {
|
|
23247
23247
|
key: w,
|
|
23248
23248
|
onClick: b?.function,
|
|
23249
23249
|
class: "px-2 py-1 text-gray-500 text-start hover:text-gray-900 hover:bg-gray-100 rounded"
|
|
@@ -23352,7 +23352,7 @@ const rO = /* @__PURE__ */ at(eO, [["render", nO]]), Nh = {
|
|
|
23352
23352
|
]),
|
|
23353
23353
|
default: At(() => [
|
|
23354
23354
|
z("div", iO, [
|
|
23355
|
-
(ee(!0), le(wn, null,
|
|
23355
|
+
(ee(!0), le(wn, null, Ur(u.value, (h) => (ee(), le("button", {
|
|
23356
23356
|
class: Ze(["w-[30px] h-[30px] flex items-center justify-center text-gray-500 rounded hover:text-gray-900 hover:bg-gray-100", { "bg-gray-100 text-gray-900": h?.isActive }]),
|
|
23357
23357
|
key: h?.id,
|
|
23358
23358
|
onClick: (m) => l(h?.id)
|
|
@@ -23425,7 +23425,7 @@ const rO = /* @__PURE__ */ at(eO, [["render", nO]]), Nh = {
|
|
|
23425
23425
|
onClick: s,
|
|
23426
23426
|
class: Ze(["px-2 py-1 text-gray-500 text-start hover:text-gray-900 hover:bg-gray-100 rounded", [t.editor?.isActive("paragraph") ? "bg-gray-100" : ""]])
|
|
23427
23427
|
}, ci(dt(e)("tiptap.paragraph")), 3),
|
|
23428
|
-
(ee(), le(wn, null,
|
|
23428
|
+
(ee(), le(wn, null, Ur(a, (c, f) => z("button", {
|
|
23429
23429
|
key: f,
|
|
23430
23430
|
onClick: (h) => o(c?.id),
|
|
23431
23431
|
class: Ze(["px-2 py-1 text-gray-500 text-start hover:text-gray-900 hover:bg-gray-100 rounded leading-[100%]", [
|
|
@@ -23496,7 +23496,7 @@ function bO(t, e, n, r, i, s) {
|
|
|
23496
23496
|
class: "ml-2 w-full",
|
|
23497
23497
|
disabled: n.disabled,
|
|
23498
23498
|
clearable: n.clearable
|
|
23499
|
-
}, null, 8, ["modelValue", "disabled", "clearable"])) :
|
|
23499
|
+
}, null, 8, ["modelValue", "disabled", "clearable"])) : xr("", !0)
|
|
23500
23500
|
]);
|
|
23501
23501
|
}
|
|
23502
23502
|
const yO = /* @__PURE__ */ at(pO, [["render", bO]]), wO = { class: "w-[30px] h-[30px] rounded-full hover:bg-gray-100 justify-center items-center relative flex" }, vO = { class: "w-[160px]" }, _O = { class: "flex gap-[4px] mb-[8px]" }, kO = { class: "flex w-[160px] flex-wrap gap-[4px]" }, EO = ["onClick"], SO = {
|
|
@@ -23567,7 +23567,7 @@ const yO = /* @__PURE__ */ at(pO, [["render", bO]]), wO = { class: "w-[30px] h-[
|
|
|
23567
23567
|
])
|
|
23568
23568
|
]),
|
|
23569
23569
|
z("ul", kO, [
|
|
23570
|
-
(ee(!0), le(wn, null,
|
|
23570
|
+
(ee(!0), le(wn, null, Ur(s.value, (c) => (ee(), le("li", {
|
|
23571
23571
|
class: "h-[37px] w-[37px] rounded",
|
|
23572
23572
|
style: ui({ backgroundColor: c }),
|
|
23573
23573
|
onClick: (f) => o(c),
|
|
@@ -23645,7 +23645,7 @@ function $0(t, e) {
|
|
|
23645
23645
|
return i;
|
|
23646
23646
|
return null;
|
|
23647
23647
|
}
|
|
23648
|
-
const
|
|
23648
|
+
const Er = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, H0 = (t) => !ks(t) && t !== Er;
|
|
23649
23649
|
function Ou() {
|
|
23650
23650
|
const { caseless: t } = H0(this) && this || {}, e = {}, n = (r, i) => {
|
|
23651
23651
|
const s = t && $0(e, i) || i;
|
|
@@ -23752,14 +23752,14 @@ const sM = (t) => {
|
|
|
23752
23752
|
return r;
|
|
23753
23753
|
};
|
|
23754
23754
|
return n(t, 0);
|
|
23755
|
-
}, oM = rn("AsyncFunction"), aM = (t) => t && (Pa(t) || Ct(t)) && Ct(t.then) && Ct(t.catch), V0 = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
23756
|
-
i ===
|
|
23755
|
+
}, oM = rn("AsyncFunction"), aM = (t) => t && (Pa(t) || Ct(t)) && Ct(t.then) && Ct(t.catch), V0 = ((t, e) => t ? setImmediate : e ? ((n, r) => (Er.addEventListener("message", ({ source: i, data: s }) => {
|
|
23756
|
+
i === Er && s === n && r.length && r.shift()();
|
|
23757
23757
|
}, !1), (i) => {
|
|
23758
|
-
r.push(i),
|
|
23758
|
+
r.push(i), Er.postMessage(n, "*");
|
|
23759
23759
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
23760
23760
|
typeof setImmediate == "function",
|
|
23761
|
-
Ct(
|
|
23762
|
-
), lM = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
23761
|
+
Ct(Er.postMessage)
|
|
23762
|
+
), lM = typeof queueMicrotask < "u" ? queueMicrotask.bind(Er) : typeof process < "u" && process.nextTick || V0, uM = (t) => t != null && Ct(t[xa]), x = {
|
|
23763
23763
|
isArray: Ai,
|
|
23764
23764
|
isArrayBuffer: B0,
|
|
23765
23765
|
isBuffer: TO,
|
|
@@ -23808,7 +23808,7 @@ const sM = (t) => {
|
|
|
23808
23808
|
noop: nM,
|
|
23809
23809
|
toFiniteNumber: rM,
|
|
23810
23810
|
findKey: $0,
|
|
23811
|
-
global:
|
|
23811
|
+
global: Er,
|
|
23812
23812
|
isContextDefined: H0,
|
|
23813
23813
|
isSpecCompliantForm: iM,
|
|
23814
23814
|
toJSONObject: sM,
|
|
@@ -24513,7 +24513,7 @@ function Q0(t, e, n) {
|
|
|
24513
24513
|
return t && (r || n == !1) ? FM(t, e) : e;
|
|
24514
24514
|
}
|
|
24515
24515
|
const Fh = (t) => t instanceof Tt ? { ...t } : t;
|
|
24516
|
-
function
|
|
24516
|
+
function Vr(t, e) {
|
|
24517
24517
|
e = e || {};
|
|
24518
24518
|
const n = {};
|
|
24519
24519
|
function r(u, c, f, h) {
|
|
@@ -24578,7 +24578,7 @@ function zr(t, e) {
|
|
|
24578
24578
|
}), n;
|
|
24579
24579
|
}
|
|
24580
24580
|
const Z0 = (t) => {
|
|
24581
|
-
const e =
|
|
24581
|
+
const e = Vr({}, t);
|
|
24582
24582
|
let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: s, headers: o, auth: a } = e;
|
|
24583
24583
|
e.headers = o = Tt.from(o), e.url = q0(Q0(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && o.set(
|
|
24584
24584
|
"Authorization",
|
|
@@ -24979,7 +24979,7 @@ const ho = {
|
|
|
24979
24979
|
assertOptions: XM,
|
|
24980
24980
|
validators: Ba
|
|
24981
24981
|
}, an = ho.validators;
|
|
24982
|
-
let
|
|
24982
|
+
let Nr = class {
|
|
24983
24983
|
constructor(e) {
|
|
24984
24984
|
this.defaults = e || {}, this.interceptors = {
|
|
24985
24985
|
request: new Ph(),
|
|
@@ -25012,7 +25012,7 @@ let Mr = class {
|
|
|
25012
25012
|
}
|
|
25013
25013
|
}
|
|
25014
25014
|
_request(e, n) {
|
|
25015
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
25015
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Vr(this.defaults, n);
|
|
25016
25016
|
const { transitional: r, paramsSerializer: i, headers: s } = n;
|
|
25017
25017
|
r !== void 0 && ho.assertOptions(r, {
|
|
25018
25018
|
silentJSONParsing: an.transitional(an.boolean),
|
|
@@ -25074,14 +25074,14 @@ let Mr = class {
|
|
|
25074
25074
|
return c;
|
|
25075
25075
|
}
|
|
25076
25076
|
getUri(e) {
|
|
25077
|
-
e =
|
|
25077
|
+
e = Vr(this.defaults, e);
|
|
25078
25078
|
const n = Q0(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
25079
25079
|
return q0(n, e.params, e.paramsSerializer);
|
|
25080
25080
|
}
|
|
25081
25081
|
};
|
|
25082
25082
|
x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
25083
|
-
|
|
25084
|
-
return this.request(
|
|
25083
|
+
Nr.prototype[e] = function(n, r) {
|
|
25084
|
+
return this.request(Vr(r || {}, {
|
|
25085
25085
|
method: e,
|
|
25086
25086
|
url: n,
|
|
25087
25087
|
data: (r || {}).data
|
|
@@ -25091,7 +25091,7 @@ x.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
25091
25091
|
x.forEach(["post", "put", "patch"], function(e) {
|
|
25092
25092
|
function n(r) {
|
|
25093
25093
|
return function(s, o, a) {
|
|
25094
|
-
return this.request(
|
|
25094
|
+
return this.request(Vr(a || {}, {
|
|
25095
25095
|
method: e,
|
|
25096
25096
|
headers: r ? {
|
|
25097
25097
|
"Content-Type": "multipart/form-data"
|
|
@@ -25101,7 +25101,7 @@ x.forEach(["post", "put", "patch"], function(e) {
|
|
|
25101
25101
|
}));
|
|
25102
25102
|
};
|
|
25103
25103
|
}
|
|
25104
|
-
|
|
25104
|
+
Nr.prototype[e] = n(), Nr.prototype[e + "Form"] = n(!0);
|
|
25105
25105
|
});
|
|
25106
25106
|
let QM = class ib {
|
|
25107
25107
|
constructor(e) {
|
|
@@ -25253,13 +25253,13 @@ Object.entries(Ru).forEach(([t, e]) => {
|
|
|
25253
25253
|
Ru[e] = t;
|
|
25254
25254
|
});
|
|
25255
25255
|
function sb(t) {
|
|
25256
|
-
const e = new
|
|
25257
|
-
return x.extend(n,
|
|
25258
|
-
return sb(
|
|
25256
|
+
const e = new Nr(t), n = D0(Nr.prototype.request, e);
|
|
25257
|
+
return x.extend(n, Nr.prototype, e, { allOwnKeys: !0 }), x.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
25258
|
+
return sb(Vr(t, i));
|
|
25259
25259
|
}, n;
|
|
25260
25260
|
}
|
|
25261
25261
|
const $e = sb(Ls);
|
|
25262
|
-
$e.Axios =
|
|
25262
|
+
$e.Axios = Nr;
|
|
25263
25263
|
$e.CanceledError = Oi;
|
|
25264
25264
|
$e.CancelToken = QM;
|
|
25265
25265
|
$e.isCancel = Y0;
|
|
@@ -25272,7 +25272,7 @@ $e.all = function(e) {
|
|
|
25272
25272
|
};
|
|
25273
25273
|
$e.spread = ZM;
|
|
25274
25274
|
$e.isAxiosError = eN;
|
|
25275
|
-
$e.mergeConfig =
|
|
25275
|
+
$e.mergeConfig = Vr;
|
|
25276
25276
|
$e.AxiosHeaders = Tt;
|
|
25277
25277
|
$e.formToJSON = (t) => J0(x.isHTMLForm(t) ? new FormData(t) : t);
|
|
25278
25278
|
$e.getAdapter = nb.getAdapter;
|
|
@@ -25312,7 +25312,7 @@ const {
|
|
|
25312
25312
|
if (n) {
|
|
25313
25313
|
const r = e.clipboardData?.getData("text/html"), i = e.clipboardData?.getData("text/plain");
|
|
25314
25314
|
if (r) {
|
|
25315
|
-
const { state: s, dispatch: o } = t, { tr: a } = s, l =
|
|
25315
|
+
const { state: s, dispatch: o } = t, { tr: a } = s, l = oi.fromSchema(t.state.schema), u = new DOMParser().parseFromString(r, "text/html").body, c = l.parse(u), f = a.replaceSelectionWith(c);
|
|
25316
25316
|
return o(f), e.preventDefault(), !0;
|
|
25317
25317
|
}
|
|
25318
25318
|
if (i) {
|
|
@@ -25522,7 +25522,12 @@ const {
|
|
|
25522
25522
|
handlePaste: ob
|
|
25523
25523
|
}
|
|
25524
25524
|
}), s = fn(() => n.toolbar.map((a) => P0[a]));
|
|
25525
|
-
|
|
25525
|
+
ir(() => n.modelValue, (a) => {
|
|
25526
|
+
if (i.value) {
|
|
25527
|
+
const l = a || "", u = i.value.getHTML();
|
|
25528
|
+
l !== u && i.value.commands.setContent(l);
|
|
25529
|
+
}
|
|
25530
|
+
}, { immediate: !0 }), ir(i, (a) => {
|
|
25526
25531
|
a && i.value.on("update", (l) => {
|
|
25527
25532
|
const u = l.editor.getHTML();
|
|
25528
25533
|
u !== n.modelValue && r(
|
|
@@ -25536,7 +25541,7 @@ const {
|
|
|
25536
25541
|
};
|
|
25537
25542
|
return (a, l) => (ee(), le("div", sN, [
|
|
25538
25543
|
z("div", oN, [
|
|
25539
|
-
(ee(!0), le(wn, null,
|
|
25544
|
+
(ee(!0), le(wn, null, Ur(s.value, (u) => (ee(), Ut(mo(u), { editor: dt(i) }, null, 8, ["editor"]))), 256))
|
|
25540
25545
|
]),
|
|
25541
25546
|
z("div", {
|
|
25542
25547
|
onClick: o,
|
|
@@ -28958,7 +28963,12 @@ const FN = { class: "bg-white border border border-solid border-gray-200 rounded
|
|
|
28958
28963
|
const l = i.makeHtml(n.modelValue);
|
|
28959
28964
|
s.value.commands.setContent(l);
|
|
28960
28965
|
}
|
|
28961
|
-
}),
|
|
28966
|
+
}), ir(() => n.modelValue, (l) => {
|
|
28967
|
+
if (s.value) {
|
|
28968
|
+
const u = l || "", c = i.makeHtml(u), f = s.value.getHTML();
|
|
28969
|
+
c !== f && s.value.commands.setContent(c);
|
|
28970
|
+
}
|
|
28971
|
+
}, { immediate: !0 }), ir(s, (l) => {
|
|
28962
28972
|
l && l.on("update", () => {
|
|
28963
28973
|
const u = l.getHTML(), f = new ua().turndown(u);
|
|
28964
28974
|
r("update:modelValue", f);
|
|
@@ -28969,7 +28979,7 @@ const FN = { class: "bg-white border border border-solid border-gray-200 rounded
|
|
|
28969
28979
|
};
|
|
28970
28980
|
return (l, u) => (ee(), le("div", FN, [
|
|
28971
28981
|
z("div", $N, [
|
|
28972
|
-
(ee(!0), le(wn, null,
|
|
28982
|
+
(ee(!0), le(wn, null, Ur(o.value, (c) => (ee(), Ut(mo(c), { editor: dt(s) }, null, 8, ["editor"]))), 256))
|
|
28973
28983
|
]),
|
|
28974
28984
|
z("div", {
|
|
28975
28985
|
onClick: a,
|