@harbour-enterprises/superdoc 0.10.13 → 0.10.14
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/chunks/{super-editor.es-CtJbBdCY.cjs → super-editor.es-DKeEy3SL.cjs} +40 -40
- package/dist/chunks/{super-editor.es-35uGypnF.es.js → super-editor.es-DmSsQN1-.es.js} +1518 -1488
- package/dist/super-editor/chunks/{converter-CKYZCmLh.js → converter-D2y9EpE_.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CksbnyTX.js → docx-zipper-BbBE5I9n.js} +1 -1
- package/dist/super-editor/chunks/{editor-DEWQqVFW.js → editor-CP6udmf8.js} +763 -733
- package/dist/super-editor/chunks/{toolbar-BxidMIRu.js → toolbar-BMVgZtgU.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/InputRule.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +4 -4
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +788 -758
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -8877,9 +8877,9 @@
|
|
|
8877
8877
|
function vl$2() {
|
|
8878
8878
|
return is$2 || (is$2 = 1, en$2 = Object.getOwnPropertyDescriptor), en$2;
|
|
8879
8879
|
}
|
|
8880
|
-
var tn$
|
|
8880
|
+
var tn$1, ss$2;
|
|
8881
8881
|
function It$2() {
|
|
8882
|
-
if (ss$2) return tn$
|
|
8882
|
+
if (ss$2) return tn$1;
|
|
8883
8883
|
ss$2 = 1;
|
|
8884
8884
|
var r22 = vl$2();
|
|
8885
8885
|
if (r22)
|
|
@@ -8888,7 +8888,7 @@
|
|
|
8888
8888
|
} catch {
|
|
8889
8889
|
r22 = null;
|
|
8890
8890
|
}
|
|
8891
|
-
return tn$
|
|
8891
|
+
return tn$1 = r22, tn$1;
|
|
8892
8892
|
}
|
|
8893
8893
|
var rn$3, os$2;
|
|
8894
8894
|
function vr$2() {
|
|
@@ -8912,9 +8912,9 @@
|
|
|
8912
8912
|
return typeof r22 != "function" || typeof Symbol != "function" || typeof r22("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? false : e();
|
|
8913
8913
|
}, nn$3;
|
|
8914
8914
|
}
|
|
8915
|
-
var sn$
|
|
8915
|
+
var sn$3, us$2;
|
|
8916
8916
|
function $o$1() {
|
|
8917
|
-
return us$2 || (us$2 = 1, sn$
|
|
8917
|
+
return us$2 || (us$2 = 1, sn$3 = typeof Reflect < "u" && Reflect.getPrototypeOf || null), sn$3;
|
|
8918
8918
|
}
|
|
8919
8919
|
var on$4, ls$2;
|
|
8920
8920
|
function Xo$1() {
|
|
@@ -8923,9 +8923,9 @@
|
|
|
8923
8923
|
var r22 = Jo$2();
|
|
8924
8924
|
return on$4 = r22.getPrototypeOf || null, on$4;
|
|
8925
8925
|
}
|
|
8926
|
-
var an$
|
|
8926
|
+
var an$2, cs$2;
|
|
8927
8927
|
function Sl$2() {
|
|
8928
|
-
if (cs$2) return an$
|
|
8928
|
+
if (cs$2) return an$2;
|
|
8929
8929
|
cs$2 = 1;
|
|
8930
8930
|
var r22 = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", i3 = function(u, f3) {
|
|
8931
8931
|
for (var c3 = [], g = 0; g < u.length; g += 1)
|
|
@@ -8942,7 +8942,7 @@
|
|
|
8942
8942
|
f3 += a[c3], c3 + 1 < a.length && (f3 += u);
|
|
8943
8943
|
return f3;
|
|
8944
8944
|
};
|
|
8945
|
-
return an$
|
|
8945
|
+
return an$2 = function(u) {
|
|
8946
8946
|
var f3 = this;
|
|
8947
8947
|
if (typeof f3 != "function" || e.apply(f3) !== n)
|
|
8948
8948
|
throw new TypeError(r22 + f3);
|
|
@@ -8966,14 +8966,14 @@
|
|
|
8966
8966
|
F3.prototype = f3.prototype, g.prototype = new F3(), F3.prototype = null;
|
|
8967
8967
|
}
|
|
8968
8968
|
return g;
|
|
8969
|
-
}, an$
|
|
8969
|
+
}, an$2;
|
|
8970
8970
|
}
|
|
8971
|
-
var un$
|
|
8971
|
+
var un$3, fs$2;
|
|
8972
8972
|
function Kt$2() {
|
|
8973
|
-
if (fs$2) return un$
|
|
8973
|
+
if (fs$2) return un$3;
|
|
8974
8974
|
fs$2 = 1;
|
|
8975
8975
|
var r22 = Sl$2();
|
|
8976
|
-
return un$
|
|
8976
|
+
return un$3 = Function.prototype.bind || r22, un$3;
|
|
8977
8977
|
}
|
|
8978
8978
|
var ln$3, ds$2;
|
|
8979
8979
|
function xi$2() {
|
|
@@ -8994,16 +8994,16 @@
|
|
|
8994
8994
|
var r22 = Kt$2(), e = Ai$2(), t = xi$2(), n = Tl$2();
|
|
8995
8995
|
return dn$3 = n || r22.call(t, e), dn$3;
|
|
8996
8996
|
}
|
|
8997
|
-
var mn$
|
|
8997
|
+
var mn$2, gs$1;
|
|
8998
8998
|
function Di$2() {
|
|
8999
|
-
if (gs$1) return mn$
|
|
8999
|
+
if (gs$1) return mn$2;
|
|
9000
9000
|
gs$1 = 1;
|
|
9001
9001
|
var r22 = Kt$2(), e = Jt$2(), t = xi$2(), n = Yo$2();
|
|
9002
|
-
return mn$
|
|
9002
|
+
return mn$2 = function(s) {
|
|
9003
9003
|
if (s.length < 1 || typeof s[0] != "function")
|
|
9004
9004
|
throw new e("a function is required");
|
|
9005
9005
|
return n(r22, t, s);
|
|
9006
|
-
}, mn$
|
|
9006
|
+
}, mn$2;
|
|
9007
9007
|
}
|
|
9008
9008
|
var pn$1, ws$1;
|
|
9009
9009
|
function Fl$2() {
|
|
@@ -9361,18 +9361,18 @@
|
|
|
9361
9361
|
}
|
|
9362
9362
|
return xn$3 = i3, xn$3;
|
|
9363
9363
|
}
|
|
9364
|
-
var An$
|
|
9364
|
+
var An$2, vs$1;
|
|
9365
9365
|
function Nl$2() {
|
|
9366
|
-
if (vs$1) return An$
|
|
9366
|
+
if (vs$1) return An$2;
|
|
9367
9367
|
vs$1 = 1;
|
|
9368
9368
|
var r22 = $t$2(), e = kl$2(), t = r22("RegExp.prototype.exec"), n = Jt$2();
|
|
9369
|
-
return An$
|
|
9369
|
+
return An$2 = function(s) {
|
|
9370
9370
|
if (!e(s))
|
|
9371
9371
|
throw new n("`regex` must be a RegExp");
|
|
9372
9372
|
return function(a) {
|
|
9373
9373
|
return t(s, a) !== null;
|
|
9374
9374
|
};
|
|
9375
|
-
}, An$
|
|
9375
|
+
}, An$2;
|
|
9376
9376
|
}
|
|
9377
9377
|
var Dn$3, Cs$1;
|
|
9378
9378
|
function Il$2() {
|
|
@@ -9520,16 +9520,16 @@
|
|
|
9520
9520
|
"BigUint64Array"
|
|
9521
9521
|
]), Cn$2;
|
|
9522
9522
|
}
|
|
9523
|
-
var Sn$
|
|
9523
|
+
var Sn$2, Bs$1;
|
|
9524
9524
|
function Ll$2() {
|
|
9525
|
-
if (Bs$1) return Sn$
|
|
9525
|
+
if (Bs$1) return Sn$2;
|
|
9526
9526
|
Bs$1 = 1;
|
|
9527
9527
|
var r22 = Ol$2(), e = typeof globalThis > "u" ? We$3 : globalThis;
|
|
9528
|
-
return Sn$
|
|
9528
|
+
return Sn$2 = function() {
|
|
9529
9529
|
for (var n = [], i3 = 0; i3 < r22.length; i3++)
|
|
9530
9530
|
typeof e[r22[i3]] == "function" && (n[n.length] = r22[i3]);
|
|
9531
9531
|
return n;
|
|
9532
|
-
}, Sn$
|
|
9532
|
+
}, Sn$2;
|
|
9533
9533
|
}
|
|
9534
9534
|
var Tn$2 = { exports: {} }, Fn$2, ks$1;
|
|
9535
9535
|
function _l$2() {
|
|
@@ -9580,12 +9580,12 @@
|
|
|
9580
9580
|
}
|
|
9581
9581
|
}, Bn$2 = e, Bn$2;
|
|
9582
9582
|
}
|
|
9583
|
-
var kn$
|
|
9583
|
+
var kn$3, Is$1;
|
|
9584
9584
|
function Ml$2() {
|
|
9585
|
-
if (Is$1) return kn$
|
|
9585
|
+
if (Is$1) return kn$3;
|
|
9586
9586
|
Is$1 = 1;
|
|
9587
9587
|
var r22 = Qo$2(), e = _l$2(), t = ql$2()(), n = It$2(), i3 = Jt$2(), s = r22("%Math.floor%");
|
|
9588
|
-
return kn$
|
|
9588
|
+
return kn$3 = function(a, u) {
|
|
9589
9589
|
if (typeof a != "function")
|
|
9590
9590
|
throw new i3("`fn` is not a function");
|
|
9591
9591
|
if (typeof u != "number" || u < 0 || u > 4294967295 || s(u) !== u)
|
|
@@ -9608,7 +9608,7 @@
|
|
|
9608
9608
|
"length",
|
|
9609
9609
|
u
|
|
9610
9610
|
)), a;
|
|
9611
|
-
}, kn$
|
|
9611
|
+
}, kn$3;
|
|
9612
9612
|
}
|
|
9613
9613
|
var Nn$3, Rs$1;
|
|
9614
9614
|
function Ul$2() {
|
|
@@ -23614,7 +23614,7 @@ Actual: ` + p3.attribValue
|
|
|
23614
23614
|
return;
|
|
23615
23615
|
}
|
|
23616
23616
|
}
|
|
23617
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23617
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.14") {
|
|
23618
23618
|
const n = "docProps/custom.xml";
|
|
23619
23619
|
e[n] || (e[n] = Fu$2());
|
|
23620
23620
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23839,7 +23839,7 @@ Actual: ` + p3.attribValue
|
|
|
23839
23839
|
function Fu$2() {
|
|
23840
23840
|
return zf$2;
|
|
23841
23841
|
}
|
|
23842
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
23842
|
+
function Bu$2(r22 = 2, e = "0.10.14") {
|
|
23843
23843
|
return {
|
|
23844
23844
|
type: "element",
|
|
23845
23845
|
name: "property",
|
|
@@ -26708,11 +26708,11 @@ Actual: ` + p3.attribValue
|
|
|
26708
26708
|
};
|
|
26709
26709
|
}
|
|
26710
26710
|
const sc$1 = ic$1(false), ac$1 = ic$1(true);
|
|
26711
|
-
function
|
|
26711
|
+
function jk(t) {
|
|
26712
26712
|
let e = vt.getState(t);
|
|
26713
26713
|
return e ? e.done.eventCount : 0;
|
|
26714
26714
|
}
|
|
26715
|
-
function
|
|
26715
|
+
function Wk(t) {
|
|
26716
26716
|
let e = vt.getState(t);
|
|
26717
26717
|
return e ? e.undone.eventCount : 0;
|
|
26718
26718
|
}
|
|
@@ -26789,7 +26789,7 @@ Actual: ` + p3.attribValue
|
|
|
26789
26789
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
26790
26790
|
}, Yf$1 = function() {
|
|
26791
26791
|
wi$1 = null;
|
|
26792
|
-
},
|
|
26792
|
+
}, ln$2 = function(t, e, n, r) {
|
|
26793
26793
|
return n && (ca$1(t, e, n, r, -1) || ca$1(t, e, n, r, 1));
|
|
26794
26794
|
}, Gf$1 = /^(img|br|input|textarea|hr)$/i;
|
|
26795
26795
|
function ca$1(t, e, n, r, o) {
|
|
@@ -26857,7 +26857,7 @@ Actual: ` + p3.attribValue
|
|
|
26857
26857
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
26858
26858
|
}
|
|
26859
26859
|
const Io$1 = function(t) {
|
|
26860
|
-
return t.focusNode &&
|
|
26860
|
+
return t.focusNode && ln$2(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
26861
26861
|
};
|
|
26862
26862
|
function Gt$2(t, e) {
|
|
26863
26863
|
let n = document.createEvent("Event");
|
|
@@ -26965,18 +26965,18 @@ Actual: ` + p3.attribValue
|
|
|
26965
26965
|
r.scrollTop != o + e && (r.scrollTop = o + e), r.scrollLeft != i3 && (r.scrollLeft = i3);
|
|
26966
26966
|
}
|
|
26967
26967
|
}
|
|
26968
|
-
let
|
|
26968
|
+
let gn$2 = null;
|
|
26969
26969
|
function cp$1(t) {
|
|
26970
26970
|
if (t.setActive)
|
|
26971
26971
|
return t.setActive();
|
|
26972
|
-
if (
|
|
26973
|
-
return t.focus(
|
|
26972
|
+
if (gn$2)
|
|
26973
|
+
return t.focus(gn$2);
|
|
26974
26974
|
let e = dc$1(t);
|
|
26975
|
-
t.focus(
|
|
26975
|
+
t.focus(gn$2 == null ? {
|
|
26976
26976
|
get preventScroll() {
|
|
26977
|
-
return
|
|
26977
|
+
return gn$2 = { preventScroll: true }, true;
|
|
26978
26978
|
}
|
|
26979
|
-
} : void 0),
|
|
26979
|
+
} : void 0), gn$2 || (gn$2 = false, uc$1(e, 0));
|
|
26980
26980
|
}
|
|
26981
26981
|
function fc$1(t, e) {
|
|
26982
26982
|
let n, r = 2e8, o, i3 = 0, s = e.top, a = e.top, l, c3;
|
|
@@ -27502,7 +27502,7 @@ Actual: ` + p3.attribValue
|
|
|
27502
27502
|
let p3 = d.focusNode.childNodes[d.focusOffset];
|
|
27503
27503
|
p3 && p3.contentEditable == "false" && (o = true);
|
|
27504
27504
|
}
|
|
27505
|
-
if (!(o || u && xe) &&
|
|
27505
|
+
if (!(o || u && xe) && ln$2(a.node, a.offset, d.anchorNode, d.anchorOffset) && ln$2(l.node, l.offset, d.focusNode, d.focusOffset))
|
|
27506
27506
|
return;
|
|
27507
27507
|
let f3 = false;
|
|
27508
27508
|
if ((c3.extend || e == n) && !u) {
|
|
@@ -27618,13 +27618,13 @@ Actual: ` + p3.attribValue
|
|
|
27618
27618
|
return e.type === "characterData" && e.target.nodeValue == e.oldValue;
|
|
27619
27619
|
}
|
|
27620
27620
|
};
|
|
27621
|
-
let
|
|
27621
|
+
let cn$2 = class cn2 extends Nr {
|
|
27622
27622
|
constructor(e, n, r, o, i3) {
|
|
27623
27623
|
super(e, [], r, o), this.mark = n, this.spec = i3;
|
|
27624
27624
|
}
|
|
27625
27625
|
static create(e, n, r, o) {
|
|
27626
27626
|
let i3 = o.nodeViews[n.type.name], s = i3 && i3(n, o, r);
|
|
27627
|
-
return (!s || !s.dom) && (s = _a$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new
|
|
27627
|
+
return (!s || !s.dom) && (s = _a$2.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new cn2(e, n, s.dom, s.contentDOM || s.dom, s);
|
|
27628
27628
|
}
|
|
27629
27629
|
parseRule() {
|
|
27630
27630
|
return this.dirty & it || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
@@ -27641,7 +27641,7 @@ Actual: ` + p3.attribValue
|
|
|
27641
27641
|
}
|
|
27642
27642
|
}
|
|
27643
27643
|
slice(e, n, r) {
|
|
27644
|
-
let o =
|
|
27644
|
+
let o = cn2.create(this.parent, this.mark, true, r), i3 = this.children, s = this.size;
|
|
27645
27645
|
n < s && (i3 = xi$1(i3, n, s, r)), e > 0 && (i3 = xi$1(i3, 0, e, r));
|
|
27646
27646
|
for (let a = 0; a < i3.length; a++)
|
|
27647
27647
|
i3[a].parent = o;
|
|
@@ -27886,7 +27886,7 @@ Actual: ` + p3.attribValue
|
|
|
27886
27886
|
r = r.nextSibling;
|
|
27887
27887
|
} else
|
|
27888
27888
|
o = true, t.insertBefore(a, r);
|
|
27889
|
-
if (s instanceof
|
|
27889
|
+
if (s instanceof cn$2) {
|
|
27890
27890
|
let l = r ? r.previousSibling : t.lastChild;
|
|
27891
27891
|
bc$1(s.contentDOM, s.children, n), r = l ? l.nextSibling : t.firstChild;
|
|
27892
27892
|
}
|
|
@@ -28005,7 +28005,7 @@ Actual: ` + p3.attribValue
|
|
|
28005
28005
|
if (a > -1)
|
|
28006
28006
|
a > this.index && (this.changed = true, this.destroyBetween(this.index, a)), this.top = this.top.children[this.index];
|
|
28007
28007
|
else {
|
|
28008
|
-
let l =
|
|
28008
|
+
let l = cn$2.create(this.top, e[i3], n, r);
|
|
28009
28009
|
this.top.children.splice(this.index, 0, l), this.top = l, this.changed = true;
|
|
28010
28010
|
}
|
|
28011
28011
|
this.index = 0, i3++;
|
|
@@ -28098,7 +28098,7 @@ Actual: ` + p3.attribValue
|
|
|
28098
28098
|
// contentEditable.
|
|
28099
28099
|
addTextblockHacks() {
|
|
28100
28100
|
let e = this.top.children[this.index - 1], n = this.top;
|
|
28101
|
-
for (; e instanceof
|
|
28101
|
+
for (; e instanceof cn$2; )
|
|
28102
28102
|
n = e, e = n.children[n.children.length - 1];
|
|
28103
28103
|
(!e || // Empty textblock
|
|
28104
28104
|
!(e instanceof Po$1) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((xe || be$1) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
@@ -28124,7 +28124,7 @@ Actual: ` + p3.attribValue
|
|
|
28124
28124
|
for (; ; )
|
|
28125
28125
|
if (r) {
|
|
28126
28126
|
let c3 = n.children[r - 1];
|
|
28127
|
-
if (c3 instanceof
|
|
28127
|
+
if (c3 instanceof cn$2)
|
|
28128
28128
|
n = c3, r = c3.children.length;
|
|
28129
28129
|
else {
|
|
28130
28130
|
a = c3, r--;
|
|
@@ -28279,7 +28279,7 @@ Actual: ` + p3.attribValue
|
|
|
28279
28279
|
if (Cc$1(t, n), !!kc$1(t)) {
|
|
28280
28280
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && be$1) {
|
|
28281
28281
|
let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
28282
|
-
if (r.anchorNode && o.anchorNode &&
|
|
28282
|
+
if (r.anchorNode && o.anchorNode && ln$2(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
28283
28283
|
t.input.mouseDown.delayedSelectionSync = true, t.domObserver.setCurSelection();
|
|
28284
28284
|
return;
|
|
28285
28285
|
}
|
|
@@ -28356,7 +28356,7 @@ Actual: ` + p3.attribValue
|
|
|
28356
28356
|
}
|
|
28357
28357
|
function Ep(t) {
|
|
28358
28358
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
28359
|
-
return
|
|
28359
|
+
return ln$2(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
28360
28360
|
}
|
|
28361
28361
|
function Mi$1(t, e) {
|
|
28362
28362
|
let { $anchor: n, $head: r } = t.selection, o = e > 0 ? n.max(r) : n.min(r), i3 = o.parent.inlineContent ? o.depth ? t.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
|
|
@@ -28402,7 +28402,7 @@ Actual: ` + p3.attribValue
|
|
|
28402
28402
|
let n = t.pmViewDesc;
|
|
28403
28403
|
return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
|
|
28404
28404
|
}
|
|
28405
|
-
function
|
|
28405
|
+
function yn$2(t, e) {
|
|
28406
28406
|
return e < 0 ? Ip$1(t) : Pp(t);
|
|
28407
28407
|
}
|
|
28408
28408
|
function Ip$1(t) {
|
|
@@ -28589,22 +28589,22 @@ Actual: ` + p3.attribValue
|
|
|
28589
28589
|
function zp$1(t, e) {
|
|
28590
28590
|
let n = e.keyCode, r = Bp$1(e);
|
|
28591
28591
|
if (n == 8 || ze$2 && n == 72 && r == "c")
|
|
28592
|
-
return Oa$1(t, -1) ||
|
|
28592
|
+
return Oa$1(t, -1) || yn$2(t, -1);
|
|
28593
28593
|
if (n == 46 && !e.shiftKey || ze$2 && n == 68 && r == "c")
|
|
28594
|
-
return Oa$1(t, 1) ||
|
|
28594
|
+
return Oa$1(t, 1) || yn$2(t, 1);
|
|
28595
28595
|
if (n == 13 || n == 27)
|
|
28596
28596
|
return true;
|
|
28597
28597
|
if (n == 37 || ze$2 && n == 66 && r == "c") {
|
|
28598
28598
|
let o = n == 37 ? Ma$1(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
|
|
28599
|
-
return xa$1(t, o, r) ||
|
|
28599
|
+
return xa$1(t, o, r) || yn$2(t, o);
|
|
28600
28600
|
} else if (n == 39 || ze$2 && n == 70 && r == "c") {
|
|
28601
28601
|
let o = n == 39 ? Ma$1(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
|
|
28602
|
-
return xa$1(t, o, r) ||
|
|
28602
|
+
return xa$1(t, o, r) || yn$2(t, o);
|
|
28603
28603
|
} else {
|
|
28604
28604
|
if (n == 38 || ze$2 && n == 80 && r == "c")
|
|
28605
|
-
return Aa$1(t, -1, r) ||
|
|
28605
|
+
return Aa$1(t, -1, r) || yn$2(t, -1);
|
|
28606
28606
|
if (n == 40 || ze$2 && n == 78 && r == "c")
|
|
28607
|
-
return Fp(t) || Aa$1(t, 1, r) ||
|
|
28607
|
+
return Fp(t) || Aa$1(t, 1, r) || yn$2(t, 1);
|
|
28608
28608
|
if (r == (ze$2 ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
|
|
28609
28609
|
return true;
|
|
28610
28610
|
}
|
|
@@ -29240,7 +29240,7 @@ Actual: ` + p3.attribValue
|
|
|
29240
29240
|
}
|
|
29241
29241
|
let yo$1 = class yo2 {
|
|
29242
29242
|
constructor(e, n) {
|
|
29243
|
-
this.toDOM = e, this.spec = n ||
|
|
29243
|
+
this.toDOM = e, this.spec = n || nn$2, this.side = this.spec.side || 0;
|
|
29244
29244
|
}
|
|
29245
29245
|
map(e, n, r, o) {
|
|
29246
29246
|
let { pos: i3, deleted: s } = e.mapResult(n.from + o, this.side < 0 ? -1 : 1);
|
|
@@ -29258,7 +29258,7 @@ Actual: ` + p3.attribValue
|
|
|
29258
29258
|
};
|
|
29259
29259
|
let Bt$1 = class Bt2 {
|
|
29260
29260
|
constructor(e, n) {
|
|
29261
|
-
this.attrs = e, this.spec = n ||
|
|
29261
|
+
this.attrs = e, this.spec = n || nn$2;
|
|
29262
29262
|
}
|
|
29263
29263
|
map(e, n, r, o) {
|
|
29264
29264
|
let i3 = e.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
@@ -29278,7 +29278,7 @@ Actual: ` + p3.attribValue
|
|
|
29278
29278
|
};
|
|
29279
29279
|
class Ms {
|
|
29280
29280
|
constructor(e, n) {
|
|
29281
|
-
this.attrs = e, this.spec = n ||
|
|
29281
|
+
this.attrs = e, this.spec = n || nn$2;
|
|
29282
29282
|
}
|
|
29283
29283
|
map(e, n, r, o) {
|
|
29284
29284
|
let i3 = e.mapResult(n.from + o, 1);
|
|
@@ -29368,13 +29368,13 @@ Actual: ` + p3.attribValue
|
|
|
29368
29368
|
return this.type instanceof yo$1;
|
|
29369
29369
|
}
|
|
29370
29370
|
}
|
|
29371
|
-
const
|
|
29371
|
+
const xn$2 = [], nn$2 = {};
|
|
29372
29372
|
class F {
|
|
29373
29373
|
/**
|
|
29374
29374
|
@internal
|
|
29375
29375
|
*/
|
|
29376
29376
|
constructor(e, n) {
|
|
29377
|
-
this.local = e.length ? e :
|
|
29377
|
+
this.local = e.length ? e : xn$2, this.children = n.length ? n : xn$2;
|
|
29378
29378
|
}
|
|
29379
29379
|
/**
|
|
29380
29380
|
Create a set of decorations, using the structure of the given
|
|
@@ -29382,7 +29382,7 @@ Actual: ` + p3.attribValue
|
|
|
29382
29382
|
you must make a copy if you want need to preserve that.
|
|
29383
29383
|
*/
|
|
29384
29384
|
static create(e, n) {
|
|
29385
|
-
return n.length ? bo$2(n, e, 0,
|
|
29385
|
+
return n.length ? bo$2(n, e, 0, nn$2) : ye$1;
|
|
29386
29386
|
}
|
|
29387
29387
|
/**
|
|
29388
29388
|
Find all decorations in this set which touch the given range
|
|
@@ -29412,7 +29412,7 @@ Actual: ` + p3.attribValue
|
|
|
29412
29412
|
document.
|
|
29413
29413
|
*/
|
|
29414
29414
|
map(e, n, r) {
|
|
29415
|
-
return this == ye$1 || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r ||
|
|
29415
|
+
return this == ye$1 || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || nn$2);
|
|
29416
29416
|
}
|
|
29417
29417
|
/**
|
|
29418
29418
|
@internal
|
|
@@ -29423,7 +29423,7 @@ Actual: ` + p3.attribValue
|
|
|
29423
29423
|
let l = this.local[a].map(e, r, o);
|
|
29424
29424
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i3.onRemove && i3.onRemove(this.local[a].spec);
|
|
29425
29425
|
}
|
|
29426
|
-
return this.children.length ? fh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(
|
|
29426
|
+
return this.children.length ? fh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), xn$2) : ye$1;
|
|
29427
29427
|
}
|
|
29428
29428
|
/**
|
|
29429
29429
|
Add the given array of decorations to the ones in the set,
|
|
@@ -29441,13 +29441,13 @@ Actual: ` + p3.attribValue
|
|
|
29441
29441
|
if (d = _c$1(n, a, c3)) {
|
|
29442
29442
|
for (o || (o = this.children.slice()); i3 < o.length && o[i3] < l; )
|
|
29443
29443
|
i3 += 3;
|
|
29444
|
-
o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$2(d, a, c3 + 1,
|
|
29444
|
+
o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, bo$2(d, a, c3 + 1, nn$2)), i3 += 3;
|
|
29445
29445
|
}
|
|
29446
29446
|
});
|
|
29447
29447
|
let s = zc$1(i3 ? Vc$1(n) : n, -r);
|
|
29448
29448
|
for (let a = 0; a < s.length; a++)
|
|
29449
29449
|
s[a].type.valid(e, s[a]) || s.splice(a--, 1);
|
|
29450
|
-
return new F(s.length ? this.local.concat(s).sort(
|
|
29450
|
+
return new F(s.length ? this.local.concat(s).sort(rn$2) : this.local, o || this.children);
|
|
29451
29451
|
}
|
|
29452
29452
|
/**
|
|
29453
29453
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -29496,7 +29496,7 @@ Actual: ` + p3.attribValue
|
|
|
29496
29496
|
}
|
|
29497
29497
|
}
|
|
29498
29498
|
if (o) {
|
|
29499
|
-
let a = new F(o.sort(
|
|
29499
|
+
let a = new F(o.sort(rn$2), xn$2);
|
|
29500
29500
|
return r ? new Nt$2([a, r]) : a;
|
|
29501
29501
|
}
|
|
29502
29502
|
return r || ye$1;
|
|
@@ -29528,7 +29528,7 @@ Actual: ` + p3.attribValue
|
|
|
29528
29528
|
*/
|
|
29529
29529
|
localsInner(e) {
|
|
29530
29530
|
if (this == ye$1)
|
|
29531
|
-
return
|
|
29531
|
+
return xn$2;
|
|
29532
29532
|
if (e.inlineContent || !this.local.some(Bt$1.is))
|
|
29533
29533
|
return this.local;
|
|
29534
29534
|
let n = [];
|
|
@@ -29548,7 +29548,7 @@ Actual: ` + p3.attribValue
|
|
|
29548
29548
|
this.members = e;
|
|
29549
29549
|
}
|
|
29550
29550
|
map(e, n) {
|
|
29551
|
-
const r = this.members.map((o) => o.map(e, n,
|
|
29551
|
+
const r = this.members.map((o) => o.map(e, n, nn$2));
|
|
29552
29552
|
return Nt2.from(r);
|
|
29553
29553
|
}
|
|
29554
29554
|
forChild(e, n) {
|
|
@@ -29582,7 +29582,7 @@ Actual: ` + p3.attribValue
|
|
|
29582
29582
|
n.push(i3[s]);
|
|
29583
29583
|
}
|
|
29584
29584
|
}
|
|
29585
|
-
return n ? As(r ? n : n.sort(
|
|
29585
|
+
return n ? As(r ? n : n.sort(rn$2)) : xn$2;
|
|
29586
29586
|
}
|
|
29587
29587
|
// Create a group for the given array of decoration sets, or return
|
|
29588
29588
|
// a single set when possible.
|
|
@@ -29648,7 +29648,7 @@ Actual: ` + p3.attribValue
|
|
|
29648
29648
|
a.splice(f3, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
|
|
29649
29649
|
}
|
|
29650
29650
|
}
|
|
29651
|
-
return new F(e.sort(
|
|
29651
|
+
return new F(e.sort(rn$2), a);
|
|
29652
29652
|
}
|
|
29653
29653
|
function zc$1(t, e) {
|
|
29654
29654
|
if (!e || !t.length)
|
|
@@ -29697,12 +29697,12 @@ Actual: ` + p3.attribValue
|
|
|
29697
29697
|
d != ye$1 && o.push(l, l + a.nodeSize, d);
|
|
29698
29698
|
}
|
|
29699
29699
|
});
|
|
29700
|
-
let s = zc$1(i3 ? Vc$1(t) : t, -n).sort(
|
|
29700
|
+
let s = zc$1(i3 ? Vc$1(t) : t, -n).sort(rn$2);
|
|
29701
29701
|
for (let a = 0; a < s.length; a++)
|
|
29702
29702
|
s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
|
|
29703
29703
|
return s.length || o.length ? new F(s, o) : ye$1;
|
|
29704
29704
|
}
|
|
29705
|
-
function
|
|
29705
|
+
function rn$2(t, e) {
|
|
29706
29706
|
return t.from - e.from || t.to - e.to;
|
|
29707
29707
|
}
|
|
29708
29708
|
function As(t) {
|
|
@@ -29724,7 +29724,7 @@ Actual: ` + p3.attribValue
|
|
|
29724
29724
|
return e;
|
|
29725
29725
|
}
|
|
29726
29726
|
function Ea$1(t, e, n) {
|
|
29727
|
-
for (; e < t.length &&
|
|
29727
|
+
for (; e < t.length && rn$2(n, t[e]) > 0; )
|
|
29728
29728
|
e++;
|
|
29729
29729
|
t.splice(e, 0, n);
|
|
29730
29730
|
}
|
|
@@ -29805,7 +29805,7 @@ Actual: ` + p3.attribValue
|
|
|
29805
29805
|
return kt$1(this.view);
|
|
29806
29806
|
if (Oe$2 && Lt$1 <= 11 && !this.view.state.selection.empty) {
|
|
29807
29807
|
let e = this.view.domSelectionRange();
|
|
29808
|
-
if (e.focusNode &&
|
|
29808
|
+
if (e.focusNode && ln$2(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
29809
29809
|
return this.flushSoon();
|
|
29810
29810
|
}
|
|
29811
29811
|
this.flush();
|
|
@@ -29909,7 +29909,7 @@ Actual: ` + p3.attribValue
|
|
|
29909
29909
|
}
|
|
29910
29910
|
function Ra$1(t, e) {
|
|
29911
29911
|
let n = e.startContainer, r = e.startOffset, o = e.endContainer, i3 = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
29912
|
-
return
|
|
29912
|
+
return ln$2(s.node, s.offset, o, i3) && ([n, r, o, i3] = [o, i3, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i3 };
|
|
29913
29913
|
}
|
|
29914
29914
|
function wh$1(t, e) {
|
|
29915
29915
|
if (e.getComposedRanges) {
|
|
@@ -32523,14 +32523,44 @@ Actual: ` + p3.attribValue
|
|
|
32523
32523
|
rules: e,
|
|
32524
32524
|
plugin: n
|
|
32525
32525
|
}) : false;
|
|
32526
|
+
},
|
|
32527
|
+
// Paste handler
|
|
32528
|
+
handlePaste(r, o, i3) {
|
|
32529
|
+
const s = o.clipboardData;
|
|
32530
|
+
Array.from(s.types);
|
|
32531
|
+
const a = s.getData("text/html");
|
|
32532
|
+
s.getData("text/plain");
|
|
32533
|
+
let l;
|
|
32534
|
+
switch (a ? /class="?Mso|xmlns:o="urn:schemas-microsoft-com|name="?Generator" content="?Microsoft Word|<!--\[if gte mso/i.test(a) ? l = "word-html" : l = "browser-html" : l = "plain-text", l) {
|
|
32535
|
+
case "plain-text":
|
|
32536
|
+
break;
|
|
32537
|
+
case "word-html":
|
|
32538
|
+
break;
|
|
32539
|
+
case "browser-html":
|
|
32540
|
+
return Tg(a, t);
|
|
32541
|
+
}
|
|
32542
|
+
return false;
|
|
32526
32543
|
}
|
|
32527
32544
|
},
|
|
32528
32545
|
isInputRules: true
|
|
32529
32546
|
});
|
|
32530
32547
|
return n;
|
|
32531
|
-
}
|
|
32548
|
+
}, Tg = (t, e, n) => {
|
|
32549
|
+
const r = Dg(t), o = document.createElement("div");
|
|
32550
|
+
o.innerHTML = r;
|
|
32551
|
+
const i3 = gr$2.fromSchema(e.schema).parse(o);
|
|
32552
|
+
o.remove();
|
|
32553
|
+
const { dispatch: s } = e.view;
|
|
32554
|
+
return s ? (s(e.view.state.tr.replaceSelectionWith(i3, true)), true) : false;
|
|
32555
|
+
}, Dg = (t) => t.replace(
|
|
32556
|
+
/font-size\s*:\s*([\d.]+)em/gi,
|
|
32557
|
+
(e, n) => {
|
|
32558
|
+
const r = parseFloat(n);
|
|
32559
|
+
return `font-size: ${Math.round(r * 12 * 100) / 100}pt`;
|
|
32560
|
+
}
|
|
32561
|
+
);
|
|
32532
32562
|
var _n$2, rd$1, od$1;
|
|
32533
|
-
const
|
|
32563
|
+
const An$1 = class An2 {
|
|
32534
32564
|
constructor(e, n, r) {
|
|
32535
32565
|
ft(this, _n$2);
|
|
32536
32566
|
P(this, "editor");
|
|
@@ -32538,14 +32568,14 @@ Actual: ` + p3.attribValue
|
|
|
32538
32568
|
P(this, "extensions");
|
|
32539
32569
|
P(this, "externalExtensions", []);
|
|
32540
32570
|
P(this, "splittableMarks", []);
|
|
32541
|
-
this.editor = r, this.externalExtensions = n || [], this.extensions =
|
|
32571
|
+
this.editor = r, this.externalExtensions = n || [], this.extensions = An2.getResolvedExtensions([...e, ...this.externalExtensions]), this.schema = zi$1.createSchemaByExtensions(this.extensions, r), D(this, _n$2, rd$1).call(this);
|
|
32542
32572
|
}
|
|
32543
32573
|
/**
|
|
32544
32574
|
* Static method for creating ExtensionService.
|
|
32545
32575
|
* @param args Arguments for the constructor.
|
|
32546
32576
|
*/
|
|
32547
32577
|
static create(...e) {
|
|
32548
|
-
return new
|
|
32578
|
+
return new An2(...e);
|
|
32549
32579
|
}
|
|
32550
32580
|
/**
|
|
32551
32581
|
* Get an array of resolved extensions (e.g. sorted by priority).
|
|
@@ -32553,7 +32583,7 @@ Actual: ` + p3.attribValue
|
|
|
32553
32583
|
* @returns Array of resolved extensions.
|
|
32554
32584
|
*/
|
|
32555
32585
|
static getResolvedExtensions(e) {
|
|
32556
|
-
return
|
|
32586
|
+
return An2.sortByPriority(e);
|
|
32557
32587
|
}
|
|
32558
32588
|
/**
|
|
32559
32589
|
* Sort extensions by priority.
|
|
@@ -32600,7 +32630,7 @@ Actual: ` + p3.attribValue
|
|
|
32600
32630
|
* @returns Array of PM plugins.
|
|
32601
32631
|
*/
|
|
32602
32632
|
get plugins() {
|
|
32603
|
-
const e = this.editor, n =
|
|
32633
|
+
const e = this.editor, n = An2.sortByPriority([...this.extensions].reverse()), r = [], o = n.map((i3) => {
|
|
32604
32634
|
const s = {
|
|
32605
32635
|
name: i3.name,
|
|
32606
32636
|
options: i3.options,
|
|
@@ -32692,23 +32722,23 @@ Actual: ` + p3.attribValue
|
|
|
32692
32722
|
}, r = E(e, "onBeforeCreate", n), o = E(e, "onCreate", n), i3 = E(e, "onUpdate", n), s = E(e, "onSelectionUpdate", n), a = E(e, "onTransaction", n), l = E(e, "onFocus", n), c3 = E(e, "onBlur", n), d = E(e, "onDestroy", n);
|
|
32693
32723
|
r && this.editor.on("beforeCreate", r), o && this.editor.on("create", o), i3 && this.editor.on("update", i3), s && this.editor.on("selectionUpdate", s), a && this.editor.on("transaction", a), l && this.editor.on("focus", l), c3 && this.editor.on("blur", c3), d && this.editor.on("destroy", d);
|
|
32694
32724
|
};
|
|
32695
|
-
let _i$1 =
|
|
32696
|
-
const
|
|
32725
|
+
let _i$1 = An$1;
|
|
32726
|
+
const Ng = (t) => (e) => {
|
|
32697
32727
|
const n = typeof t == "function" ? t(e) : t;
|
|
32698
32728
|
for (let r = 0; r < n.length; r += 1)
|
|
32699
32729
|
if (n[r](e)) return true;
|
|
32700
32730
|
return false;
|
|
32701
|
-
},
|
|
32731
|
+
}, Eg = (t) => (e) => t(e), Ig = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Pg = () => ({ tr: t, state: e }) => {
|
|
32702
32732
|
let n = t.selection.from;
|
|
32703
32733
|
const r = e.schema.nodes.tab.create();
|
|
32704
32734
|
return t.insert(n, r), true;
|
|
32705
|
-
},
|
|
32706
|
-
function
|
|
32735
|
+
}, Rg = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Is = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
|
|
32736
|
+
function Lg(t, e) {
|
|
32707
32737
|
let { $cursor: n } = t.selection;
|
|
32708
32738
|
return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
|
|
32709
32739
|
}
|
|
32710
32740
|
const id$1 = (t, e, n) => {
|
|
32711
|
-
let r =
|
|
32741
|
+
let r = Lg(t, n);
|
|
32712
32742
|
if (!r)
|
|
32713
32743
|
return false;
|
|
32714
32744
|
let o = ad$1(r);
|
|
@@ -32765,12 +32795,12 @@ Actual: ` + p3.attribValue
|
|
|
32765
32795
|
}
|
|
32766
32796
|
return null;
|
|
32767
32797
|
}
|
|
32768
|
-
function
|
|
32798
|
+
function Fg(t, e) {
|
|
32769
32799
|
let { $cursor: n } = t.selection;
|
|
32770
32800
|
return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
|
|
32771
32801
|
}
|
|
32772
32802
|
const ld$1 = (t, e, n) => {
|
|
32773
|
-
let r =
|
|
32803
|
+
let r = Fg(t, n);
|
|
32774
32804
|
if (!r)
|
|
32775
32805
|
return false;
|
|
32776
32806
|
let o = dd$1(r);
|
|
@@ -32813,7 +32843,7 @@ Actual: ` + p3.attribValue
|
|
|
32813
32843
|
}
|
|
32814
32844
|
return null;
|
|
32815
32845
|
}
|
|
32816
|
-
const
|
|
32846
|
+
const Bg = (t, e) => {
|
|
32817
32847
|
let n = t.selection, r = n instanceof Ge$1, o;
|
|
32818
32848
|
if (r) {
|
|
32819
32849
|
if (n.node.isTextblock || !Ap$1(t.doc, n.from))
|
|
@@ -32826,7 +32856,7 @@ Actual: ` + p3.attribValue
|
|
|
32826
32856
|
r && i3.setSelection(Ge$1.create(i3.doc, o - t.doc.resolve(o).nodeBefore.nodeSize)), e(i3.scrollIntoView());
|
|
32827
32857
|
}
|
|
32828
32858
|
return true;
|
|
32829
|
-
},
|
|
32859
|
+
}, zg = (t, e) => {
|
|
32830
32860
|
let n = t.selection, r;
|
|
32831
32861
|
if (n instanceof Ge$1) {
|
|
32832
32862
|
if (n.node.isTextblock || !Ap$1(t.doc, n.to))
|
|
@@ -32848,7 +32878,7 @@ Actual: ` + p3.attribValue
|
|
|
32848
32878
|
}
|
|
32849
32879
|
return null;
|
|
32850
32880
|
}
|
|
32851
|
-
const
|
|
32881
|
+
const _g = (t, e) => {
|
|
32852
32882
|
let { $head: n, $anchor: r } = t.selection;
|
|
32853
32883
|
if (!n.parent.type.spec.code || !n.sameParent(r))
|
|
32854
32884
|
return false;
|
|
@@ -32884,7 +32914,7 @@ Actual: ` + p3.attribValue
|
|
|
32884
32914
|
let r = n.blockRange(), o = r && yp$2(r);
|
|
32885
32915
|
return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
|
|
32886
32916
|
};
|
|
32887
|
-
function
|
|
32917
|
+
function Vg(t) {
|
|
32888
32918
|
return (e, n) => {
|
|
32889
32919
|
let { $from: r, $to: o } = e.selection;
|
|
32890
32920
|
if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
|
|
@@ -32911,14 +32941,14 @@ Actual: ` + p3.attribValue
|
|
|
32911
32941
|
return n && n(d.scrollIntoView()), true;
|
|
32912
32942
|
};
|
|
32913
32943
|
}
|
|
32914
|
-
const
|
|
32915
|
-
function
|
|
32944
|
+
const $g = Vg(), Hg = (t, e) => (e && e(t.tr.setSelection(new at$2(t.doc))), true);
|
|
32945
|
+
function jg(t, e, n) {
|
|
32916
32946
|
let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
|
|
32917
32947
|
return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || Ap$1(t.doc, e.pos)) ? false : (n && n(t.tr.join(e.pos).scrollIntoView()), true);
|
|
32918
32948
|
}
|
|
32919
32949
|
function hd$1(t, e, n, r) {
|
|
32920
32950
|
let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
|
|
32921
|
-
if (!l &&
|
|
32951
|
+
if (!l && jg(t, e, n))
|
|
32922
32952
|
return true;
|
|
32923
32953
|
let c3 = !l && e.parent.canReplace(e.index(), e.index() + 1);
|
|
32924
32954
|
if (c3 && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i3.type)) && a.matchType(s[0] || i3.type).validEnd) {
|
|
@@ -32966,7 +32996,7 @@ Actual: ` + p3.attribValue
|
|
|
32966
32996
|
return o.node(i3).isTextblock ? (n && n(e.tr.setSelection(tt$3.create(e.doc, t < 0 ? o.start(i3) : o.end(i3)))), true) : false;
|
|
32967
32997
|
};
|
|
32968
32998
|
}
|
|
32969
|
-
const
|
|
32999
|
+
const Wg = md$1(-1), Ug = md$1(1);
|
|
32970
33000
|
function Ya$1(t, e = null) {
|
|
32971
33001
|
return function(n, r) {
|
|
32972
33002
|
let o = false;
|
|
@@ -33007,7 +33037,7 @@ Actual: ` + p3.attribValue
|
|
|
33007
33037
|
}
|
|
33008
33038
|
Rs(Is, id$1, sd$1);
|
|
33009
33039
|
Rs(Is, ld$1, cd$1);
|
|
33010
|
-
Rs(ud$1, fd$1, pd$1,
|
|
33040
|
+
Rs(ud$1, fd$1, pd$1, $g);
|
|
33011
33041
|
typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
|
|
33012
33042
|
function gd$1(t) {
|
|
33013
33043
|
for (let e = 0; e < t.edgeCount; e++) {
|
|
@@ -33022,7 +33052,7 @@ Actual: ` + p3.attribValue
|
|
|
33022
33052
|
const r = n.filter((o) => e?.includes(o.type.name));
|
|
33023
33053
|
t.tr.ensureMarks(r);
|
|
33024
33054
|
}
|
|
33025
|
-
},
|
|
33055
|
+
}, qg = ({ keepMarks: t = true } = {}) => (e) => {
|
|
33026
33056
|
const { tr: n, state: r, dispatch: o, editor: i3 } = e, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = N.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
|
|
33027
33057
|
if (s instanceof Ge$1 && s.node.isBlock)
|
|
33028
33058
|
return !l.parentOffset || !xp$2(a, l.pos) ? false : (o && (t && Ga$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
|
|
@@ -33039,9 +33069,9 @@ Actual: ` + p3.attribValue
|
|
|
33039
33069
|
t && Ga$1(r, i3.extensionService.splittableMarks), n.scrollIntoView();
|
|
33040
33070
|
}
|
|
33041
33071
|
return true;
|
|
33042
|
-
},
|
|
33072
|
+
}, Kg = () => ({ state: t, dispatch: e }) => pd$1(t, e), Xg = () => ({ state: t, dispatch: e }) => fd$1(t, e), Jg = () => ({ state: t, dispatch: e }) => ud$1(t, e), Yg = () => ({ state: t, dispatch: e }) => _g(t, e), yd$1 = (t) => {
|
|
33043
33073
|
};
|
|
33044
|
-
function
|
|
33074
|
+
function Gg(t, e, n) {
|
|
33045
33075
|
const { selection: r } = e;
|
|
33046
33076
|
let o = null;
|
|
33047
33077
|
if (yd$1() && (o = r.$cursor), o) {
|
|
@@ -33060,7 +33090,7 @@ Actual: ` + p3.attribValue
|
|
|
33060
33090
|
}), a;
|
|
33061
33091
|
});
|
|
33062
33092
|
}
|
|
33063
|
-
const
|
|
33093
|
+
const Zg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33064
33094
|
const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = St$1(t, r.schema);
|
|
33065
33095
|
if (o)
|
|
33066
33096
|
if (s) {
|
|
@@ -33088,12 +33118,12 @@ Actual: ` + p3.attribValue
|
|
|
33088
33118
|
}) : n.addMark(h3, m, l.create(e));
|
|
33089
33119
|
});
|
|
33090
33120
|
});
|
|
33091
|
-
return
|
|
33121
|
+
return Gg(r, n, l);
|
|
33092
33122
|
};
|
|
33093
33123
|
function Vi$1(t, e, n = {}) {
|
|
33094
33124
|
return t.find((r) => r.type === e && If$1(r.attrs, n));
|
|
33095
33125
|
}
|
|
33096
|
-
function
|
|
33126
|
+
function Qg(t, e, n = {}) {
|
|
33097
33127
|
return !!Vi$1(t, e, n);
|
|
33098
33128
|
}
|
|
33099
33129
|
function Ls(t, e, n = {}) {
|
|
@@ -33105,11 +33135,11 @@ Actual: ` + p3.attribValue
|
|
|
33105
33135
|
let i3 = r.index, s = t.start() + r.offset, a = i3 + 1, l = s + r.node.nodeSize;
|
|
33106
33136
|
for (Vi$1([...r.node.marks], e, n); i3 > 0 && o.isInSet(t.parent.child(i3 - 1).marks); )
|
|
33107
33137
|
i3 -= 1, s -= t.parent.child(i3).nodeSize;
|
|
33108
|
-
for (; a < t.parent.childCount &&
|
|
33138
|
+
for (; a < t.parent.childCount && Qg([...t.parent.child(a).marks], e, n); )
|
|
33109
33139
|
l += t.parent.child(a).nodeSize, a += 1;
|
|
33110
33140
|
return { from: s, to: l };
|
|
33111
33141
|
}
|
|
33112
|
-
const
|
|
33142
|
+
const ey = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33113
33143
|
const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = St$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
|
|
33114
33144
|
if (!o) return true;
|
|
33115
33145
|
if (c3 && i3) {
|
|
@@ -33121,7 +33151,7 @@ Actual: ` + p3.attribValue
|
|
|
33121
33151
|
n.removeMark(u.$from.pos, u.$to.pos, a);
|
|
33122
33152
|
});
|
|
33123
33153
|
return n.removeStoredMark(a), true;
|
|
33124
|
-
},
|
|
33154
|
+
}, ty = () => ({ tr: t, dispatch: e }) => {
|
|
33125
33155
|
const { selection: n } = t, { empty: r, ranges: o } = n;
|
|
33126
33156
|
return r || e && o.forEach((i3) => {
|
|
33127
33157
|
t.removeMark(i3.$from.pos, i3.$to.pos);
|
|
@@ -33150,10 +33180,10 @@ Actual: ` + p3.attribValue
|
|
|
33150
33180
|
const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => If$1(u.mark.attrs, n, { strict: false })).reduce((u, f3) => u + f3.to - f3.from, 0), c3 = a.filter((u) => i3 ? u.mark.type !== i3 && u.mark.type.excludes(i3) : true).reduce((u, f3) => u + f3.to - f3.from, 0);
|
|
33151
33181
|
return (l > 0 ? l + c3 : l) >= s;
|
|
33152
33182
|
}
|
|
33153
|
-
const
|
|
33183
|
+
const ny = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
33154
33184
|
const { extendEmptyMarkRange: i3 = false } = n, s = St$1(t, r.schema);
|
|
33155
33185
|
return So$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
|
|
33156
|
-
},
|
|
33186
|
+
}, ry = () => ({ state: t, tr: e, dispatch: n }) => {
|
|
33157
33187
|
const { selection: r } = e, { ranges: o } = r;
|
|
33158
33188
|
return n && o.forEach(({ $from: i3, $to: s }) => {
|
|
33159
33189
|
t.doc.nodesBetween(i3.pos, s.pos, (a, l) => {
|
|
@@ -33168,7 +33198,7 @@ Actual: ` + p3.attribValue
|
|
|
33168
33198
|
(h3 || h3 === 0) && e.lift(p3, h3);
|
|
33169
33199
|
});
|
|
33170
33200
|
}), true;
|
|
33171
|
-
},
|
|
33201
|
+
}, oy = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
|
|
33172
33202
|
const i3 = le$1(t, n.schema);
|
|
33173
33203
|
return i3.isTextblock ? o().command(({ commands: s }) => Ya$1(i3, e)(n) ? true : s.clearNodes()).command(({ state: s }) => Ya$1(i3, e)(s, r)).run() : false;
|
|
33174
33204
|
};
|
|
@@ -33186,10 +33216,10 @@ Actual: ` + p3.attribValue
|
|
|
33186
33216
|
const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => If$1(u.node.attrs, n, { strict: false }));
|
|
33187
33217
|
return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
|
|
33188
33218
|
}
|
|
33189
|
-
const
|
|
33219
|
+
const iy = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
33190
33220
|
const i3 = le$1(t, r.schema), s = le$1(e, r.schema);
|
|
33191
33221
|
return xo$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
|
|
33192
|
-
},
|
|
33222
|
+
}, sy = () => ({ state: t, dispatch: e }) => Hg(t, e), ay = () => ({ state: t, dispatch: e }) => Is(t, e), ly = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33193
33223
|
let i3 = null, s = null;
|
|
33194
33224
|
const a = Er$1(
|
|
33195
33225
|
typeof t == "string" ? t : t.name,
|
|
@@ -33206,7 +33236,7 @@ Actual: ` + p3.attribValue
|
|
|
33206
33236
|
});
|
|
33207
33237
|
});
|
|
33208
33238
|
}), true) : false;
|
|
33209
|
-
},
|
|
33239
|
+
}, cy = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
|
|
33210
33240
|
let i3 = null, s = null;
|
|
33211
33241
|
const a = Er$1(
|
|
33212
33242
|
typeof t == "string" ? t : t.name,
|
|
@@ -33219,7 +33249,7 @@ Actual: ` + p3.attribValue
|
|
|
33219
33249
|
});
|
|
33220
33250
|
});
|
|
33221
33251
|
}), true) : false;
|
|
33222
|
-
},
|
|
33252
|
+
}, dy = () => ({ state: t, dispatch: e }) => Bg(t, e), uy = () => ({ state: t, dispatch: e }) => zg(t, e), fy = () => ({ state: t, dispatch: e }) => id$1(t, e), py = () => ({ state: t, dispatch: e }) => ld$1(t, e), hy = () => ({ state: t, dispatch: e }) => sd$1(t, e), my = () => ({ state: t, dispatch: e }) => cd$1(t, e), gy = () => ({ state: t, dispatch: e }) => Wg(t, e), yy = () => ({ state: t, dispatch: e }) => Ug(t, e), by = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bd$1 = (t) => {
|
|
33223
33253
|
const e = t.childNodes;
|
|
33224
33254
|
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
33225
33255
|
const r = e[n];
|
|
@@ -33280,7 +33310,7 @@ Actual: ` + p3.attribValue
|
|
|
33280
33310
|
}
|
|
33281
33311
|
return $i$1("", e, n);
|
|
33282
33312
|
}
|
|
33283
|
-
function
|
|
33313
|
+
function wy(t, e, n) {
|
|
33284
33314
|
const r = t.steps.length - 1;
|
|
33285
33315
|
if (r < e)
|
|
33286
33316
|
return;
|
|
@@ -33293,7 +33323,7 @@ Actual: ` + p3.attribValue
|
|
|
33293
33323
|
s === 0 && (s = d);
|
|
33294
33324
|
}), t.setSelection(ve$1.near(t.doc.resolve(s), n));
|
|
33295
33325
|
}
|
|
33296
|
-
const
|
|
33326
|
+
const vy = (t) => !("type" in t), ky = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
|
|
33297
33327
|
if (o) {
|
|
33298
33328
|
n = {
|
|
33299
33329
|
parseOptions: {},
|
|
@@ -33321,17 +33351,17 @@ Actual: ` + p3.attribValue
|
|
|
33321
33351
|
}), false;
|
|
33322
33352
|
}
|
|
33323
33353
|
let { from: a, to: l } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, c3 = true, d = true;
|
|
33324
|
-
if ((
|
|
33354
|
+
if ((vy(s) ? s : [s]).forEach((p3) => {
|
|
33325
33355
|
p3.check(), c3 = c3 ? p3.isText && p3.marks.length === 0 : false, d = d ? p3.isBlock : false;
|
|
33326
33356
|
}), a === l && d) {
|
|
33327
33357
|
const { parent: p3 } = r.doc.resolve(a);
|
|
33328
33358
|
p3.isTextblock && !p3.type.spec.code && !p3.childCount && (a -= 1, l += 1);
|
|
33329
33359
|
}
|
|
33330
33360
|
let f3;
|
|
33331
|
-
c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection &&
|
|
33361
|
+
c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && wy(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
|
|
33332
33362
|
}
|
|
33333
33363
|
return true;
|
|
33334
|
-
},
|
|
33364
|
+
}, Cy = () => ({ state: t, dispatch: e }) => {
|
|
33335
33365
|
const n = t.plugins;
|
|
33336
33366
|
for (let r = 0; r < n.length; r += 1) {
|
|
33337
33367
|
const o = n[r];
|
|
@@ -33352,16 +33382,16 @@ Actual: ` + p3.attribValue
|
|
|
33352
33382
|
}
|
|
33353
33383
|
return false;
|
|
33354
33384
|
};
|
|
33355
|
-
function
|
|
33385
|
+
function Sy(t, e = null) {
|
|
33356
33386
|
return function(n, r) {
|
|
33357
33387
|
let { $from: o, $to: i3 } = n.selection, s = o.blockRange(i3);
|
|
33358
33388
|
if (!s)
|
|
33359
33389
|
return false;
|
|
33360
33390
|
let a = r ? n.tr : null;
|
|
33361
|
-
return
|
|
33391
|
+
return xy(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
|
|
33362
33392
|
};
|
|
33363
33393
|
}
|
|
33364
|
-
function
|
|
33394
|
+
function xy(t, e, n, r = null) {
|
|
33365
33395
|
let o = false, i3 = e, s = e.$from.doc;
|
|
33366
33396
|
if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
|
|
33367
33397
|
if (e.$from.index(e.depth - 1) == 0)
|
|
@@ -33370,9 +33400,9 @@ Actual: ` + p3.attribValue
|
|
|
33370
33400
|
i3 = new Lc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Lc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
|
|
33371
33401
|
}
|
|
33372
33402
|
let a = bp$2(i3, n, r, e);
|
|
33373
|
-
return a ? (t &&
|
|
33403
|
+
return a ? (t && My(t, e, a, o, n), true) : false;
|
|
33374
33404
|
}
|
|
33375
|
-
function
|
|
33405
|
+
function My(t, e, n, r, o) {
|
|
33376
33406
|
let i3 = Q$2.empty;
|
|
33377
33407
|
for (let d = n.length - 1; d >= 0; d--)
|
|
33378
33408
|
i3 = Q$2.from(n[d].type.create(n[d].attrs, i3));
|
|
@@ -33385,13 +33415,13 @@ Actual: ` + p3.attribValue
|
|
|
33385
33415
|
!f3 && xp$2(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
|
|
33386
33416
|
return t;
|
|
33387
33417
|
}
|
|
33388
|
-
function
|
|
33418
|
+
function Ay(t) {
|
|
33389
33419
|
return function(e, n) {
|
|
33390
33420
|
let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (s) => s.childCount > 0 && s.firstChild.type == t);
|
|
33391
|
-
return i3 ? n ? r.node(i3.depth - 1).type == t ?
|
|
33421
|
+
return i3 ? n ? r.node(i3.depth - 1).type == t ? Oy(e, n, t, i3) : Ty(e, n, i3) : true : false;
|
|
33392
33422
|
};
|
|
33393
33423
|
}
|
|
33394
|
-
function
|
|
33424
|
+
function Oy(t, e, n, r) {
|
|
33395
33425
|
let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
|
|
33396
33426
|
i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new ue(Q$2.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Lc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
|
|
33397
33427
|
const a = yp$2(r);
|
|
@@ -33401,7 +33431,7 @@ Actual: ` + p3.attribValue
|
|
|
33401
33431
|
let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
|
|
33402
33432
|
return Ap$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
|
|
33403
33433
|
}
|
|
33404
|
-
function
|
|
33434
|
+
function Ty(t, e, n) {
|
|
33405
33435
|
let r = t.tr, o = n.parent;
|
|
33406
33436
|
for (let p3 = n.end, h3 = n.endIndex - 1, m = n.startIndex; h3 > m; h3--)
|
|
33407
33437
|
p3 -= o.child(h3).nodeSize, r.delete(p3 - 1, p3 + 1);
|
|
@@ -33414,7 +33444,7 @@ Actual: ` + p3.attribValue
|
|
|
33414
33444
|
let u = i3.pos, f3 = u + s.nodeSize;
|
|
33415
33445
|
return r.step(new Je$3(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new ue((a ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))).append(l ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
|
|
33416
33446
|
}
|
|
33417
|
-
function
|
|
33447
|
+
function Dy(t) {
|
|
33418
33448
|
return function(e, n) {
|
|
33419
33449
|
let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (c3) => c3.childCount > 0 && c3.firstChild.type == t);
|
|
33420
33450
|
if (!i3)
|
|
@@ -33432,9 +33462,9 @@ Actual: ` + p3.attribValue
|
|
|
33432
33462
|
return true;
|
|
33433
33463
|
};
|
|
33434
33464
|
}
|
|
33435
|
-
const
|
|
33465
|
+
const Ny = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
33436
33466
|
const o = le$1(t, n.schema);
|
|
33437
|
-
return
|
|
33467
|
+
return Sy(o, e)(n, r);
|
|
33438
33468
|
}, Bo$1 = (t, e) => {
|
|
33439
33469
|
for (let n = t.depth; n > 0; n--) {
|
|
33440
33470
|
const r = t.node(n);
|
|
@@ -33455,7 +33485,7 @@ Actual: ` + p3.attribValue
|
|
|
33455
33485
|
storage: r.storage
|
|
33456
33486
|
}, i3 = Bp$2(E(r, "group", o));
|
|
33457
33487
|
return typeof i3 != "string" ? false : i3.split(" ").includes("list");
|
|
33458
|
-
},
|
|
33488
|
+
}, Ey = {
|
|
33459
33489
|
type: "element",
|
|
33460
33490
|
name: "w:abstractNum",
|
|
33461
33491
|
attributes: {
|
|
@@ -33954,7 +33984,7 @@ Actual: ` + p3.attribValue
|
|
|
33954
33984
|
]
|
|
33955
33985
|
}
|
|
33956
33986
|
]
|
|
33957
|
-
},
|
|
33987
|
+
}, Iy = {
|
|
33958
33988
|
type: "element",
|
|
33959
33989
|
name: "w:abstractNum",
|
|
33960
33990
|
attributes: {
|
|
@@ -34612,14 +34642,14 @@ Actual: ` + p3.attribValue
|
|
|
34612
34642
|
if (r === void 0) return true;
|
|
34613
34643
|
const o = t.doc.nodeAt(r);
|
|
34614
34644
|
return n.node.type === o?.type && Ap$1(t.doc, r) && t.join(r), true;
|
|
34615
|
-
},
|
|
34645
|
+
}, Py = (t, e, n, r = {}) => (o) => {
|
|
34616
34646
|
const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$1(t, a.schema), m = le$1(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
|
|
34617
34647
|
if (!y) return false;
|
|
34618
34648
|
const k = He$2((z) => Hi$1(z.type.name, f3))(g), { numbering: A } = i3.converter;
|
|
34619
34649
|
if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
|
|
34620
34650
|
if (k.node.type === h3) {
|
|
34621
34651
|
const { listId: z } = k.node.attrs;
|
|
34622
|
-
return i3.converter.numbering =
|
|
34652
|
+
return i3.converter.numbering = Ly(z, A), u.liftListItem(m);
|
|
34623
34653
|
}
|
|
34624
34654
|
if (Hi$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
|
|
34625
34655
|
return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
|
|
@@ -34632,9 +34662,9 @@ Actual: ` + p3.attribValue
|
|
|
34632
34662
|
}
|
|
34633
34663
|
return $ ? true : u.clearNodes();
|
|
34634
34664
|
}, x3 = wd$1(A.definitions);
|
|
34635
|
-
return i3.converter.numbering =
|
|
34636
|
-
}, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1,
|
|
34637
|
-
const r = n.name === "orderedList" ?
|
|
34665
|
+
return i3.converter.numbering = Ry(x3, A, h3), r.listId = x3, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
|
|
34666
|
+
}, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Ry = (t, e, n) => {
|
|
34667
|
+
const r = n.name === "orderedList" ? Ey : Iy, o = { ...e }, i3 = wd$1(o.abstracts), s = {
|
|
34638
34668
|
...r,
|
|
34639
34669
|
attributes: {
|
|
34640
34670
|
...r.attributes,
|
|
@@ -34654,10 +34684,10 @@ Actual: ` + p3.attribValue
|
|
|
34654
34684
|
]
|
|
34655
34685
|
};
|
|
34656
34686
|
return o.definitions[t] = a, o;
|
|
34657
|
-
},
|
|
34687
|
+
}, Ly = (t, e) => {
|
|
34658
34688
|
const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
|
|
34659
34689
|
return delete n[t], delete r[o], e;
|
|
34660
|
-
},
|
|
34690
|
+
}, Fy = (t) => (e) => {
|
|
34661
34691
|
const { tr: n, state: r, dispatch: o, editor: i3 } = e, s = le$1(t, r.schema), { $from: a, $to: l, node: c3 } = r.selection;
|
|
34662
34692
|
if (c3 && c3.isBlock || a.depth < 2 || !a.sameParent(l))
|
|
34663
34693
|
return false;
|
|
@@ -34709,57 +34739,57 @@ Actual: ` + p3.attribValue
|
|
|
34709
34739
|
n.ensureMarks(y), n.setMeta("splitListItem", y);
|
|
34710
34740
|
}
|
|
34711
34741
|
return true;
|
|
34712
|
-
},
|
|
34742
|
+
}, By = (t) => ({ state: e, dispatch: n }) => {
|
|
34713
34743
|
const r = le$1(t, e.schema);
|
|
34714
|
-
return
|
|
34715
|
-
},
|
|
34744
|
+
return Dy(r)(e, n);
|
|
34745
|
+
}, zy = (t) => ({ state: e, dispatch: n }) => {
|
|
34716
34746
|
const r = le$1(t, e.schema);
|
|
34717
|
-
return
|
|
34718
|
-
},
|
|
34747
|
+
return Ay(r)(e, n);
|
|
34748
|
+
}, _y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
34719
34749
|
__proto__: null,
|
|
34720
|
-
clearNodes:
|
|
34721
|
-
command:
|
|
34722
|
-
createParagraphNear:
|
|
34723
|
-
deleteSelection:
|
|
34724
|
-
exitCode:
|
|
34725
|
-
first:
|
|
34726
|
-
insertContent:
|
|
34727
|
-
insertContentAt:
|
|
34728
|
-
insertTabChar:
|
|
34729
|
-
insertTabNode:
|
|
34730
|
-
joinBackward:
|
|
34731
|
-
joinDown:
|
|
34732
|
-
joinForward:
|
|
34733
|
-
joinUp:
|
|
34734
|
-
liftEmptyBlock:
|
|
34735
|
-
liftListItem:
|
|
34736
|
-
newlineInCode:
|
|
34737
|
-
resetAttributes:
|
|
34738
|
-
selectAll:
|
|
34739
|
-
selectNodeBackward:
|
|
34740
|
-
selectNodeForward:
|
|
34741
|
-
selectTextblockEnd:
|
|
34742
|
-
selectTextblockStart:
|
|
34743
|
-
setMark:
|
|
34744
|
-
setMeta:
|
|
34745
|
-
setNode:
|
|
34746
|
-
sinkListItem:
|
|
34747
|
-
splitBlock:
|
|
34748
|
-
splitListItem:
|
|
34749
|
-
toggleList:
|
|
34750
|
-
toggleMark:
|
|
34751
|
-
toggleNode:
|
|
34752
|
-
undoInputRule:
|
|
34753
|
-
unsetAllMarks:
|
|
34754
|
-
unsetMark:
|
|
34755
|
-
updateAttributes:
|
|
34756
|
-
wrapInList:
|
|
34757
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
34750
|
+
clearNodes: ry,
|
|
34751
|
+
command: Eg,
|
|
34752
|
+
createParagraphNear: Xg,
|
|
34753
|
+
deleteSelection: ay,
|
|
34754
|
+
exitCode: Yg,
|
|
34755
|
+
first: Ng,
|
|
34756
|
+
insertContent: by,
|
|
34757
|
+
insertContentAt: ky,
|
|
34758
|
+
insertTabChar: Ig,
|
|
34759
|
+
insertTabNode: Pg,
|
|
34760
|
+
joinBackward: fy,
|
|
34761
|
+
joinDown: uy,
|
|
34762
|
+
joinForward: py,
|
|
34763
|
+
joinUp: dy,
|
|
34764
|
+
liftEmptyBlock: Kg,
|
|
34765
|
+
liftListItem: zy,
|
|
34766
|
+
newlineInCode: Jg,
|
|
34767
|
+
resetAttributes: cy,
|
|
34768
|
+
selectAll: sy,
|
|
34769
|
+
selectNodeBackward: hy,
|
|
34770
|
+
selectNodeForward: my,
|
|
34771
|
+
selectTextblockEnd: yy,
|
|
34772
|
+
selectTextblockStart: gy,
|
|
34773
|
+
setMark: Zg,
|
|
34774
|
+
setMeta: Rg,
|
|
34775
|
+
setNode: oy,
|
|
34776
|
+
sinkListItem: By,
|
|
34777
|
+
splitBlock: qg,
|
|
34778
|
+
splitListItem: Fy,
|
|
34779
|
+
toggleList: Py,
|
|
34780
|
+
toggleMark: ny,
|
|
34781
|
+
toggleNode: iy,
|
|
34782
|
+
undoInputRule: Cy,
|
|
34783
|
+
unsetAllMarks: ty,
|
|
34784
|
+
unsetMark: ey,
|
|
34785
|
+
updateAttributes: ly,
|
|
34786
|
+
wrapInList: Ny
|
|
34787
|
+
}, Symbol.toStringTag, { value: "Module" })), Vy = Q$1.create({
|
|
34758
34788
|
name: "commands",
|
|
34759
34789
|
addCommands() {
|
|
34760
|
-
return { ...
|
|
34790
|
+
return { ..._y };
|
|
34761
34791
|
}
|
|
34762
|
-
}),
|
|
34792
|
+
}), $y = (t) => {
|
|
34763
34793
|
t.commands.first(({ commands: e }) => [
|
|
34764
34794
|
() => e.newlineInCode(),
|
|
34765
34795
|
() => e.createParagraphNear(),
|
|
@@ -34774,23 +34804,23 @@ Actual: ` + p3.attribValue
|
|
|
34774
34804
|
() => e.joinBackward(),
|
|
34775
34805
|
() => e.selectNodeBackward()
|
|
34776
34806
|
]);
|
|
34777
|
-
},
|
|
34807
|
+
}, bn$2 = (t) => {
|
|
34778
34808
|
t.commands.first(({ commands: e }) => [
|
|
34779
34809
|
() => e.deleteSelection(),
|
|
34780
34810
|
() => e.joinForward(),
|
|
34781
34811
|
() => e.selectNodeForward()
|
|
34782
34812
|
]);
|
|
34783
|
-
},
|
|
34813
|
+
}, Hy = Q$1.create({
|
|
34784
34814
|
name: "keymap",
|
|
34785
34815
|
addShortcuts() {
|
|
34786
34816
|
const t = {
|
|
34787
|
-
Enter: () =>
|
|
34817
|
+
Enter: () => $y(this.editor),
|
|
34788
34818
|
"Mod-Enter": () => this.editor.commands.exitCode(),
|
|
34789
34819
|
Backspace: () => Xn$2(this.editor),
|
|
34790
34820
|
"Mod-Backspace": () => Xn$2(this.editor),
|
|
34791
34821
|
"Shift-Backspace": () => Xn$2(this.editor),
|
|
34792
|
-
Delete: () =>
|
|
34793
|
-
"Mod-Delete": () =>
|
|
34822
|
+
Delete: () => bn$2(this.editor),
|
|
34823
|
+
"Mod-Delete": () => bn$2(this.editor),
|
|
34794
34824
|
"Mod-a": () => this.editor.commands.selectAll(),
|
|
34795
34825
|
Tab: () => this.editor.commands.insertTabNode()
|
|
34796
34826
|
}, e = {
|
|
@@ -34799,17 +34829,17 @@ Actual: ` + p3.attribValue
|
|
|
34799
34829
|
...t,
|
|
34800
34830
|
"Ctrl-h": () => Xn$2(this.editor),
|
|
34801
34831
|
"Alt-Backspace": () => Xn$2(this.editor),
|
|
34802
|
-
"Ctrl-d": () =>
|
|
34803
|
-
"Ctrl-Alt-Backspace": () =>
|
|
34804
|
-
"Alt-Delete": () =>
|
|
34805
|
-
"Alt-d": () =>
|
|
34832
|
+
"Ctrl-d": () => bn$2(this.editor),
|
|
34833
|
+
"Ctrl-Alt-Backspace": () => bn$2(this.editor),
|
|
34834
|
+
"Alt-Delete": () => bn$2(this.editor),
|
|
34835
|
+
"Alt-d": () => bn$2(this.editor),
|
|
34806
34836
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
34807
34837
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd(),
|
|
34808
34838
|
"Ctrl-t": () => this.editor.commands.insertTabChar()
|
|
34809
34839
|
};
|
|
34810
34840
|
return Np$1() || Ip$2() ? n : e;
|
|
34811
34841
|
}
|
|
34812
|
-
}),
|
|
34842
|
+
}), jy = Q$1.create({
|
|
34813
34843
|
name: "editable",
|
|
34814
34844
|
addPmPlugins() {
|
|
34815
34845
|
return [new vp$2({
|
|
@@ -34819,7 +34849,7 @@ Actual: ` + p3.attribValue
|
|
|
34819
34849
|
}
|
|
34820
34850
|
})];
|
|
34821
34851
|
}
|
|
34822
|
-
}),
|
|
34852
|
+
}), Wy = Q$1.create({
|
|
34823
34853
|
name: "editorFocus",
|
|
34824
34854
|
addPmPlugins() {
|
|
34825
34855
|
const t = this.editor;
|
|
@@ -34933,7 +34963,7 @@ Actual: ` + p3.attribValue
|
|
|
34933
34963
|
)) : d.attrs.track && !d.attrs.track.find((f3) => f3.type === Ri$2) && ["bulletList", "orderedList"].includes(d.type.name);
|
|
34934
34964
|
}), { deletionMark: a, deletionMap: l, nodes: c3 };
|
|
34935
34965
|
};
|
|
34936
|
-
function
|
|
34966
|
+
function Uy(t) {
|
|
34937
34967
|
const e = {
|
|
34938
34968
|
bulletList: 1,
|
|
34939
34969
|
orderedList: 2
|
|
@@ -34983,7 +35013,7 @@ Actual: ` + p3.attribValue
|
|
|
34983
35013
|
}
|
|
34984
35014
|
};
|
|
34985
35015
|
}
|
|
34986
|
-
function
|
|
35016
|
+
function qy(t, e, n) {
|
|
34987
35017
|
const r = [];
|
|
34988
35018
|
return t === e ? n.resolve(t).marks().forEach((o) => {
|
|
34989
35019
|
const i3 = n.resolve(t - 1), s = Ls(i3, o.type);
|
|
@@ -35042,14 +35072,14 @@ Actual: ` + p3.attribValue
|
|
|
35042
35072
|
findMark: Eo$1,
|
|
35043
35073
|
findParentNode: He$2,
|
|
35044
35074
|
findParentNodeClosestToPos: Bo$1,
|
|
35045
|
-
generateDocxListAttributes:
|
|
35075
|
+
generateDocxListAttributes: Uy,
|
|
35046
35076
|
generateDocxRandomId: Ii$2,
|
|
35047
35077
|
generateRandom32BitHex: ru$2,
|
|
35048
35078
|
getActiveFormatting: zf$1,
|
|
35049
35079
|
getExtensionConfigField: E,
|
|
35050
35080
|
getMarkRange: Ls,
|
|
35051
35081
|
getMarkType: St$1,
|
|
35052
|
-
getMarksBetween:
|
|
35082
|
+
getMarksBetween: qy,
|
|
35053
35083
|
getMarksFromSelection: No$1,
|
|
35054
35084
|
getNodeType: le$1,
|
|
35055
35085
|
getSchemaTypeByName: Yn$2,
|
|
@@ -35061,7 +35091,7 @@ Actual: ` + p3.attribValue
|
|
|
35061
35091
|
isNodeActive: xo$1,
|
|
35062
35092
|
isTextSelection: yd$1,
|
|
35063
35093
|
posToDOMRect: xd$1
|
|
35064
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
35094
|
+
}, Symbol.toStringTag, { value: "Module" })), Ky = (t, e, n) => {
|
|
35065
35095
|
const r = t.resolve(e), o = r.parent, i3 = o.childAfter(r.parentOffset);
|
|
35066
35096
|
if (!i3.node)
|
|
35067
35097
|
return null;
|
|
@@ -35091,11 +35121,11 @@ Actual: ` + p3.attribValue
|
|
|
35091
35121
|
throw new Error('Invalid "predicate" parameter');
|
|
35092
35122
|
} else throw new Error('Invalid "node" parameter');
|
|
35093
35123
|
return Od$1(t, n).filter((r) => e(r.node));
|
|
35094
|
-
}, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e),
|
|
35124
|
+
}, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e), Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35095
35125
|
__proto__: null,
|
|
35096
35126
|
findChildren: Td$1,
|
|
35097
35127
|
findInlineNodes: Dd$1,
|
|
35098
|
-
findMarkPosition:
|
|
35128
|
+
findMarkPosition: Ky,
|
|
35099
35129
|
flatten: Od$1
|
|
35100
35130
|
}, Symbol.toStringTag, { value: "Module" })), zs = (t, e = null) => {
|
|
35101
35131
|
const n = [], r = Dd$1(t.doc);
|
|
@@ -35109,7 +35139,7 @@ Actual: ` + p3.attribValue
|
|
|
35109
35139
|
});
|
|
35110
35140
|
});
|
|
35111
35141
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
35112
|
-
}, de = new Cp$2("TrackChangesBase"),
|
|
35142
|
+
}, de = new Cp$2("TrackChangesBase"), Jy = (t = {}) => new vp$2({
|
|
35113
35143
|
key: de,
|
|
35114
35144
|
state: {
|
|
35115
35145
|
init(e, n) {
|
|
@@ -35117,7 +35147,7 @@ Actual: ` + p3.attribValue
|
|
|
35117
35147
|
isTrackChangesActive: false,
|
|
35118
35148
|
onlyOriginalShown: false,
|
|
35119
35149
|
onlyModifiedShown: false,
|
|
35120
|
-
decorations:
|
|
35150
|
+
decorations: wn$2(n, false, false)
|
|
35121
35151
|
};
|
|
35122
35152
|
},
|
|
35123
35153
|
apply(e, n, r, o) {
|
|
@@ -35125,7 +35155,7 @@ Actual: ` + p3.attribValue
|
|
|
35125
35155
|
return i3 ? i3.type === "TRACK_CHANGES_ENABLE" ? {
|
|
35126
35156
|
...n,
|
|
35127
35157
|
isTrackChangesActive: i3.value === true,
|
|
35128
|
-
decorations:
|
|
35158
|
+
decorations: wn$2(
|
|
35129
35159
|
o,
|
|
35130
35160
|
n.onlyOriginalShown,
|
|
35131
35161
|
n.onlyModifiedShown
|
|
@@ -35134,22 +35164,22 @@ Actual: ` + p3.attribValue
|
|
|
35134
35164
|
...n,
|
|
35135
35165
|
onlyOriginalShown: i3.value === true,
|
|
35136
35166
|
onlyModifiedShown: false,
|
|
35137
|
-
decorations:
|
|
35167
|
+
decorations: wn$2(o, i3.value === true, false)
|
|
35138
35168
|
} : i3.type === "SHOW_ONLY_MODIFIED" ? {
|
|
35139
35169
|
...n,
|
|
35140
35170
|
onlyOriginalShown: false,
|
|
35141
35171
|
onlyModifiedShown: i3.value === true,
|
|
35142
|
-
decorations:
|
|
35172
|
+
decorations: wn$2(o, false, i3.value === true)
|
|
35143
35173
|
} : {
|
|
35144
35174
|
...n,
|
|
35145
|
-
decorations:
|
|
35175
|
+
decorations: wn$2(
|
|
35146
35176
|
o,
|
|
35147
35177
|
n.onlyOriginalShown,
|
|
35148
35178
|
n.onlyModifiedShown
|
|
35149
35179
|
)
|
|
35150
35180
|
} : {
|
|
35151
35181
|
...n,
|
|
35152
|
-
decorations:
|
|
35182
|
+
decorations: wn$2(
|
|
35153
35183
|
o,
|
|
35154
35184
|
n.onlyOriginalShown,
|
|
35155
35185
|
n.onlyModifiedShown
|
|
@@ -35162,7 +35192,7 @@ Actual: ` + p3.attribValue
|
|
|
35162
35192
|
return this.getState(e)?.decorations;
|
|
35163
35193
|
}
|
|
35164
35194
|
}
|
|
35165
|
-
}),
|
|
35195
|
+
}), wn$2 = (t, e, n) => {
|
|
35166
35196
|
if (!t.doc || !t.doc.nodeSize || n && e)
|
|
35167
35197
|
return F.empty;
|
|
35168
35198
|
const r = [], o = zs(t);
|
|
@@ -35230,10 +35260,10 @@ Actual: ` + p3.attribValue
|
|
|
35230
35260
|
}
|
|
35231
35261
|
}), F.create(t.doc, r)) : F.empty;
|
|
35232
35262
|
}, Pe = "commentMark", Za$1 = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
|
|
35233
|
-
|
|
35263
|
+
Yy(t, e.doc).forEach(({ from: i3, to: s }) => {
|
|
35234
35264
|
n.removeMark(i3, s, e.schema.marks[Pe]);
|
|
35235
35265
|
}), r(n);
|
|
35236
|
-
},
|
|
35266
|
+
}, Yy = (t, e) => {
|
|
35237
35267
|
const n = [];
|
|
35238
35268
|
return e.descendants((r, o) => {
|
|
35239
35269
|
const { marks: i3 } = r, s = i3.find((a) => a.type.name === Pe);
|
|
@@ -35242,7 +35272,7 @@ Actual: ` + p3.attribValue
|
|
|
35242
35272
|
t === l && n.push({ from: o, to: o + r.nodeSize });
|
|
35243
35273
|
}
|
|
35244
35274
|
}), n;
|
|
35245
|
-
},
|
|
35275
|
+
}, Gy = (t, e, n, r = []) => {
|
|
35246
35276
|
const o = [], i3 = [], s = /* @__PURE__ */ new Set();
|
|
35247
35277
|
return t.descendants((a, l) => {
|
|
35248
35278
|
(a.marks?.filter((d) => d.type.name === Pe)).forEach((d) => {
|
|
@@ -35288,7 +35318,7 @@ Actual: ` + p3.attribValue
|
|
|
35288
35318
|
"w:id": e,
|
|
35289
35319
|
internal: n
|
|
35290
35320
|
};
|
|
35291
|
-
},
|
|
35321
|
+
}, Zy = (t, e, n, r) => {
|
|
35292
35322
|
const o = [], i3 = [];
|
|
35293
35323
|
t.descendants((s, a) => {
|
|
35294
35324
|
const { type: l } = s;
|
|
@@ -35315,7 +35345,7 @@ Actual: ` + p3.attribValue
|
|
|
35315
35345
|
}), i3.sort((s, a) => a.start - s.start).forEach(({ start: s, end: a }) => {
|
|
35316
35346
|
e.delete(s, a);
|
|
35317
35347
|
});
|
|
35318
|
-
},
|
|
35348
|
+
}, Qy = (t = {}) => {
|
|
35319
35349
|
const { before: e = [], after: n = [] } = t, r = new Set(e.map((h3) => h3.type)), o = new Set(n.map((h3) => h3.type)), i3 = [...o].filter((h3) => !r.has(h3)), s = [...r].filter((h3) => !o.has(h3)), a = [], l = i3.filter((h3) => !["textStyle", "commentMark"].includes(h3));
|
|
35320
35350
|
l.length && a.push(`Added formatting: ${l.join(", ")}`);
|
|
35321
35351
|
const c3 = s.filter((h3) => !["textStyle", "commentMark"].includes(h3));
|
|
@@ -35334,11 +35364,11 @@ Actual: ` + p3.attribValue
|
|
|
35334
35364
|
}
|
|
35335
35365
|
}
|
|
35336
35366
|
}), f3.length && a.push(`Modified text style: ${f3.join(", ")}`), a.length ? a.join(". ") : "No formatting changes.";
|
|
35337
|
-
},
|
|
35367
|
+
}, eb = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
|
|
35338
35368
|
if (!r.options.isInternal && n) return "transparent";
|
|
35339
35369
|
const o = he$2.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
35340
35370
|
return `${i3}${s}`;
|
|
35341
|
-
},
|
|
35371
|
+
}, on$3 = new Cp$2("paginationPlugin"), tb = async (t) => {
|
|
35342
35372
|
if (!t.converter) return;
|
|
35343
35373
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
|
|
35344
35374
|
for (let o in n) {
|
|
@@ -35382,7 +35412,7 @@ Actual: ` + p3.attribValue
|
|
|
35382
35412
|
editable: false,
|
|
35383
35413
|
element: r,
|
|
35384
35414
|
content: e,
|
|
35385
|
-
extensions:
|
|
35415
|
+
extensions: Bk(),
|
|
35386
35416
|
documentId: "sectionId"
|
|
35387
35417
|
});
|
|
35388
35418
|
c3.on("create", () => {
|
|
@@ -35404,7 +35434,7 @@ Actual: ` + p3.attribValue
|
|
|
35404
35434
|
}), n({ height: d, sectionEditor: c3, sectionContainer: r });
|
|
35405
35435
|
});
|
|
35406
35436
|
});
|
|
35407
|
-
}), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"),
|
|
35437
|
+
}), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), nb = Q$1.create({
|
|
35408
35438
|
name: "comments",
|
|
35409
35439
|
addCommands() {
|
|
35410
35440
|
return {
|
|
@@ -35469,7 +35499,7 @@ Actual: ` + p3.attribValue
|
|
|
35469
35499
|
};
|
|
35470
35500
|
},
|
|
35471
35501
|
apply(o, i3, s, a) {
|
|
35472
|
-
const c3 = o.getMeta(
|
|
35502
|
+
const c3 = o.getMeta(on$3)?.isReadyToInit;
|
|
35473
35503
|
c3 && (e = true);
|
|
35474
35504
|
const d = o.getMeta(he$2), { type: u } = d || {};
|
|
35475
35505
|
if (u === "force" && (e = true), !c3 && !e && d && d.decorations)
|
|
@@ -35479,7 +35509,7 @@ Actual: ` + p3.attribValue
|
|
|
35479
35509
|
allCommentPositions: d.allCommentPositions
|
|
35480
35510
|
};
|
|
35481
35511
|
const f3 = o.getMeta(de), p3 = i3.trackedChanges;
|
|
35482
|
-
f3 && (i3.trackedChanges =
|
|
35512
|
+
f3 && (i3.trackedChanges = ob(
|
|
35483
35513
|
f3,
|
|
35484
35514
|
p3,
|
|
35485
35515
|
a,
|
|
@@ -35488,7 +35518,7 @@ Actual: ` + p3.attribValue
|
|
|
35488
35518
|
const h3 = d?.type === "setActiveComment";
|
|
35489
35519
|
if (!o.docChanged && o.selectionSet || h3) {
|
|
35490
35520
|
const { selection: m } = o;
|
|
35491
|
-
let g =
|
|
35521
|
+
let g = rb(a.doc, m);
|
|
35492
35522
|
if (h3 && (g = d.activeThreadId), n !== g) {
|
|
35493
35523
|
n = g;
|
|
35494
35524
|
const w = {
|
|
@@ -35532,7 +35562,7 @@ Actual: ` + p3.attribValue
|
|
|
35532
35562
|
});
|
|
35533
35563
|
const z = L3.internal;
|
|
35534
35564
|
S || (S = n === x3);
|
|
35535
|
-
let $ =
|
|
35565
|
+
let $ = eb({ activeThreadId: n, threadId: x3, isInternal: z, editor: t });
|
|
35536
35566
|
const j = V.inline(w, w + b.nodeSize, {
|
|
35537
35567
|
style: `background-color: ${$};`,
|
|
35538
35568
|
"data-thread-id": x3,
|
|
@@ -35594,7 +35624,7 @@ Actual: ` + p3.attribValue
|
|
|
35594
35624
|
const s = t[e];
|
|
35595
35625
|
s.start = Math.min(s.start, n), s.end = Math.max(s.end, n + o.nodeSize), s.bounds.top = Math.min(s.bounds.top, r.top), s.bounds.bottom = Math.max(s.bounds.bottom, r.bottom);
|
|
35596
35626
|
}
|
|
35597
|
-
},
|
|
35627
|
+
}, rb = (t, e) => {
|
|
35598
35628
|
if (!e) return;
|
|
35599
35629
|
const { $from: n, $to: r } = e;
|
|
35600
35630
|
if (n.pos !== r.pos || !t.nodeAt(n.pos)) return;
|
|
@@ -35646,7 +35676,7 @@ Actual: ` + p3.attribValue
|
|
|
35646
35676
|
mark: c3
|
|
35647
35677
|
});
|
|
35648
35678
|
}), s;
|
|
35649
|
-
},
|
|
35679
|
+
}, ob = (t, e, n, r) => {
|
|
35650
35680
|
const {
|
|
35651
35681
|
insertedMark: o,
|
|
35652
35682
|
deletionMark: i3,
|
|
@@ -35667,7 +35697,7 @@ Actual: ` + p3.attribValue
|
|
|
35667
35697
|
if (h3.marks.find((b) => b.type.name === Pi$2))
|
|
35668
35698
|
return f3 = [h3], false;
|
|
35669
35699
|
});
|
|
35670
|
-
const p3 =
|
|
35700
|
+
const p3 = sb({
|
|
35671
35701
|
documentId: r.options.documentId,
|
|
35672
35702
|
event: d ? "add" : "update",
|
|
35673
35703
|
marks: {
|
|
@@ -35680,7 +35710,7 @@ Actual: ` + p3.attribValue
|
|
|
35680
35710
|
newEditorState: n
|
|
35681
35711
|
});
|
|
35682
35712
|
return p3 && r.emit("commentsUpdate", p3), l;
|
|
35683
|
-
},
|
|
35713
|
+
}, ib = ({
|
|
35684
35714
|
state: t,
|
|
35685
35715
|
node: e,
|
|
35686
35716
|
mark: n,
|
|
@@ -35690,9 +35720,9 @@ Actual: ` + p3.attribValue
|
|
|
35690
35720
|
deletionNodes: s = []
|
|
35691
35721
|
}) => {
|
|
35692
35722
|
let a = "", l = "";
|
|
35693
|
-
if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a =
|
|
35723
|
+
if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a = Qy(n.attrs)), (o === Ri$2 || i3) && (l = e?.text ?? "", i3)) {
|
|
35694
35724
|
let { id: c3 } = r.deletionMark.attrs;
|
|
35695
|
-
l =
|
|
35725
|
+
l = ab(t.doc, (u) => {
|
|
35696
35726
|
const { marks: f3 = [] } = u, p3 = f3.filter((m) => _s.includes(m.type.name));
|
|
35697
35727
|
if (!p3.length) return false;
|
|
35698
35728
|
if (p3.find((m) => m.attrs.id === c3)) return true;
|
|
@@ -35702,7 +35732,7 @@ Actual: ` + p3.attribValue
|
|
|
35702
35732
|
deletionText: l,
|
|
35703
35733
|
trackedChangeText: a
|
|
35704
35734
|
};
|
|
35705
|
-
},
|
|
35735
|
+
}, sb = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
|
|
35706
35736
|
const s = e.insertedMark || e.deletionMark || e.formatMark, { type: a, attrs: l } = s, { name: c3 } = a, { author: d, authorEmail: u, date: f3 } = l, p3 = l.id, h3 = r[0], m = !!(e.insertedMark && e.deletionMark);
|
|
35707
35737
|
let g;
|
|
35708
35738
|
o.doc.descendants((y, S) => {
|
|
@@ -35710,7 +35740,7 @@ Actual: ` + p3.attribValue
|
|
|
35710
35740
|
if (!A.length) return;
|
|
35711
35741
|
if (A.find((x3) => x3.attrs.id === p3) && (g = y), g) return false;
|
|
35712
35742
|
});
|
|
35713
|
-
const { deletionText: b, trackedChangeText: w } =
|
|
35743
|
+
const { deletionText: b, trackedChangeText: w } = ib({
|
|
35714
35744
|
state: o,
|
|
35715
35745
|
node: g || h3,
|
|
35716
35746
|
mark: s,
|
|
@@ -35735,7 +35765,7 @@ Actual: ` + p3.attribValue
|
|
|
35735
35765
|
};
|
|
35736
35766
|
return t === "add" ? C.event = Tp$2.ADD : t === "update" && (C.event = Tp$2.UPDATE), C;
|
|
35737
35767
|
};
|
|
35738
|
-
function
|
|
35768
|
+
function ab(t, e) {
|
|
35739
35769
|
let n = null;
|
|
35740
35770
|
return t.descendants((r, o) => {
|
|
35741
35771
|
if (e(r) && (n = { node: r, pos: o }), n) return false;
|
|
@@ -35777,8 +35807,8 @@ Actual: ` + p3.attribValue
|
|
|
35777
35807
|
m.deletionNodes = w, m.deletionMark = g, o.appendMapping(b);
|
|
35778
35808
|
}
|
|
35779
35809
|
r.setMeta(de, m), r.setMeta(he$2, { type: "force" });
|
|
35780
|
-
},
|
|
35781
|
-
},
|
|
35810
|
+
}, lb = () => {
|
|
35811
|
+
}, cb = () => {
|
|
35782
35812
|
}, Id$1 = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i3, user: s, date: a }) => {
|
|
35783
35813
|
const l = {};
|
|
35784
35814
|
i3.nodesBetween(n.from, n.to, (c3, d) => {
|
|
@@ -35913,7 +35943,7 @@ Actual: ` + p3.attribValue
|
|
|
35913
35943
|
i3.setSelection(new tt$3(i3.doc.resolve(c3)));
|
|
35914
35944
|
}
|
|
35915
35945
|
return t.storedMarksSet && i3.setStoredMarks(t.storedMarks), t.scrolledIntoView && i3.scrollIntoView(), i3;
|
|
35916
|
-
},
|
|
35946
|
+
}, db = (t) => {
|
|
35917
35947
|
const { state: e } = t, { dispatch: n } = t.view, { tr: r } = e;
|
|
35918
35948
|
if (n)
|
|
35919
35949
|
return e.doc.descendants((o, i3) => {
|
|
@@ -35934,10 +35964,10 @@ Actual: ` + p3.attribValue
|
|
|
35934
35964
|
});
|
|
35935
35965
|
}
|
|
35936
35966
|
}), n(r), true;
|
|
35937
|
-
},
|
|
35938
|
-
initial:
|
|
35967
|
+
}, ub = {
|
|
35968
|
+
initial: db
|
|
35939
35969
|
}, nl$1 = (t) => {
|
|
35940
|
-
if (t === "initial" || t === "0.4.14") return Object.values(
|
|
35970
|
+
if (t === "initial" || t === "0.4.14") return Object.values(ub);
|
|
35941
35971
|
};
|
|
35942
35972
|
var en$1, gs, M, Ld$1, Fd$1, Wi$1, Ui$1, Bd$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, ts$1, zd$1, Gn$2, Zn$2, _d$1, Vd$1, $d$1, Hd$1;
|
|
35943
35973
|
const Gs = class Gs2 extends hg {
|
|
@@ -36305,7 +36335,7 @@ Actual: ` + p3.attribValue
|
|
|
36305
36335
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36306
36336
|
*/
|
|
36307
36337
|
processCollaborationMigrations() {
|
|
36308
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36338
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.14"), !this.options.ydoc) return;
|
|
36309
36339
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36310
36340
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36311
36341
|
const o = nl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36341,7 +36371,7 @@ Actual: ` + p3.attribValue
|
|
|
36341
36371
|
this.isDestroyed || this.emit("create", { editor: this });
|
|
36342
36372
|
}, 0));
|
|
36343
36373
|
}, Wi$1 = function(n) {
|
|
36344
|
-
(!n.extensions || !n.extensions.length) && (this.options.extensions =
|
|
36374
|
+
(!n.extensions || !n.extensions.length) && (this.options.extensions = Fk()), D(this, M, Xi$1).call(this), D(this, M, Ji$1).call(this), D(this, M, Zi$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), D(this, M, ts$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", D(this, M, Ui$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
|
|
36345
36375
|
this.isDestroyed || this.emit("create", { editor: this });
|
|
36346
36376
|
}, 0);
|
|
36347
36377
|
}, Ui$1 = function({ editor: n, event: r }) {
|
|
@@ -36366,7 +36396,7 @@ Actual: ` + p3.attribValue
|
|
|
36366
36396
|
* Creates extension service.
|
|
36367
36397
|
*/
|
|
36368
36398
|
Xi$1 = function() {
|
|
36369
|
-
const n = ["extension", "node", "mark"], r = [
|
|
36399
|
+
const n = ["extension", "node", "mark"], r = [jy, Vy, Wy, Hy], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
|
|
36370
36400
|
(s) => n.includes(s?.type)
|
|
36371
36401
|
);
|
|
36372
36402
|
this.extensionService = _i$1.create(i3, o, this);
|
|
@@ -36461,9 +36491,9 @@ Actual: ` + p3.attribValue
|
|
|
36461
36491
|
if (this.options.isHeadless || !this.extensionService) return;
|
|
36462
36492
|
if (this.options.extensions.find((r) => r.name === "pagination") && this.options.pagination) {
|
|
36463
36493
|
console.debug("🔗 [super-editor] Initializing pagination");
|
|
36464
|
-
const r = await
|
|
36494
|
+
const r = await tb(this);
|
|
36465
36495
|
this.storage.pagination.sectionData = r;
|
|
36466
|
-
const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(
|
|
36496
|
+
const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(on$3, { isReadyToInit: true });
|
|
36467
36497
|
i3(s);
|
|
36468
36498
|
}
|
|
36469
36499
|
}, /**
|
|
@@ -36518,7 +36548,7 @@ Actual: ` + p3.attribValue
|
|
|
36518
36548
|
schema: this.schema,
|
|
36519
36549
|
doc: n
|
|
36520
36550
|
}), { tr: o, doc: i3 } = r;
|
|
36521
|
-
return
|
|
36551
|
+
return Zy(i3, o, this.schema, this.converter), r.apply(o).doc;
|
|
36522
36552
|
}, /**
|
|
36523
36553
|
* Prepare the document for export. Any necessary pre-export processing to the state
|
|
36524
36554
|
* can happen here.
|
|
@@ -36531,7 +36561,7 @@ Actual: ` + p3.attribValue
|
|
|
36531
36561
|
doc: this.state.doc,
|
|
36532
36562
|
plugins: this.state.plugins
|
|
36533
36563
|
}), { tr: o, doc: i3 } = r;
|
|
36534
|
-
return
|
|
36564
|
+
return Gy(i3, o, this.schema, n), r.apply(o).doc.toJSON();
|
|
36535
36565
|
}, /**
|
|
36536
36566
|
* Destroy collaboration provider and ydoc
|
|
36537
36567
|
*/
|
|
@@ -36885,14 +36915,14 @@ Actual: ` + p3.attribValue
|
|
|
36885
36915
|
};
|
|
36886
36916
|
}
|
|
36887
36917
|
});
|
|
36888
|
-
function
|
|
36918
|
+
function fb(t = {}) {
|
|
36889
36919
|
return new vp$2({
|
|
36890
36920
|
view(e) {
|
|
36891
|
-
return new
|
|
36921
|
+
return new pb(e, t);
|
|
36892
36922
|
}
|
|
36893
36923
|
});
|
|
36894
36924
|
}
|
|
36895
|
-
class
|
|
36925
|
+
class pb {
|
|
36896
36926
|
constructor(e, n) {
|
|
36897
36927
|
var r;
|
|
36898
36928
|
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === false ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((o) => {
|
|
@@ -36974,7 +37004,7 @@ Actual: ` + p3.attribValue
|
|
|
36974
37004
|
};
|
|
36975
37005
|
},
|
|
36976
37006
|
addPmPlugins() {
|
|
36977
|
-
return [
|
|
37007
|
+
return [fb(this.options)];
|
|
36978
37008
|
}
|
|
36979
37009
|
});
|
|
36980
37010
|
let re$2 = class re2 extends ve$1 {
|
|
@@ -37016,7 +37046,7 @@ Actual: ` + p3.attribValue
|
|
|
37016
37046
|
*/
|
|
37017
37047
|
static valid(e) {
|
|
37018
37048
|
let n = e.parent;
|
|
37019
|
-
if (n.isTextblock || !
|
|
37049
|
+
if (n.isTextblock || !hb(e) || !mb(e))
|
|
37020
37050
|
return false;
|
|
37021
37051
|
let r = n.type.spec.allowGapCursor;
|
|
37022
37052
|
if (r != null)
|
|
@@ -37077,7 +37107,7 @@ Actual: ` + p3.attribValue
|
|
|
37077
37107
|
return re$2.valid(n) ? new re$2(n) : ve$1.near(n);
|
|
37078
37108
|
}
|
|
37079
37109
|
}
|
|
37080
|
-
function
|
|
37110
|
+
function hb(t) {
|
|
37081
37111
|
for (let e = t.depth; e >= 0; e--) {
|
|
37082
37112
|
let n = t.index(e), r = t.node(e);
|
|
37083
37113
|
if (n == 0) {
|
|
@@ -37094,7 +37124,7 @@ Actual: ` + p3.attribValue
|
|
|
37094
37124
|
}
|
|
37095
37125
|
return true;
|
|
37096
37126
|
}
|
|
37097
|
-
function
|
|
37127
|
+
function mb(t) {
|
|
37098
37128
|
for (let e = t.depth; e >= 0; e--) {
|
|
37099
37129
|
let n = t.indexAfter(e), r = t.node(e);
|
|
37100
37130
|
if (n == r.childCount) {
|
|
@@ -37111,20 +37141,20 @@ Actual: ` + p3.attribValue
|
|
|
37111
37141
|
}
|
|
37112
37142
|
return true;
|
|
37113
37143
|
}
|
|
37114
|
-
function
|
|
37144
|
+
function gb() {
|
|
37115
37145
|
return new vp$2({
|
|
37116
37146
|
props: {
|
|
37117
|
-
decorations:
|
|
37147
|
+
decorations: vb,
|
|
37118
37148
|
createSelectionBetween(t, e, n) {
|
|
37119
37149
|
return e.pos == n.pos && re$2.valid(n) ? new re$2(n) : null;
|
|
37120
37150
|
},
|
|
37121
|
-
handleClick:
|
|
37122
|
-
handleKeyDown:
|
|
37123
|
-
handleDOMEvents: { beforeinput:
|
|
37151
|
+
handleClick: bb,
|
|
37152
|
+
handleKeyDown: yb,
|
|
37153
|
+
handleDOMEvents: { beforeinput: wb }
|
|
37124
37154
|
}
|
|
37125
37155
|
});
|
|
37126
37156
|
}
|
|
37127
|
-
const
|
|
37157
|
+
const yb = Ns({
|
|
37128
37158
|
ArrowLeft: Xr$1("horiz", -1),
|
|
37129
37159
|
ArrowRight: Xr$1("horiz", 1),
|
|
37130
37160
|
ArrowUp: Xr$1("vert", -1),
|
|
@@ -37143,7 +37173,7 @@ Actual: ` + p3.attribValue
|
|
|
37143
37173
|
return c3 ? (o && o(r.tr.setSelection(new re$2(c3))), true) : false;
|
|
37144
37174
|
};
|
|
37145
37175
|
}
|
|
37146
|
-
function
|
|
37176
|
+
function bb(t, e, n) {
|
|
37147
37177
|
if (!t || !t.editable)
|
|
37148
37178
|
return false;
|
|
37149
37179
|
let r = t.state.doc.resolve(e);
|
|
@@ -37152,7 +37182,7 @@ Actual: ` + p3.attribValue
|
|
|
37152
37182
|
let o = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
37153
37183
|
return o && o.inside > -1 && Ge$1.isSelectable(t.state.doc.nodeAt(o.inside)) ? false : (t.dispatch(t.state.tr.setSelection(new re$2(r))), true);
|
|
37154
37184
|
}
|
|
37155
|
-
function
|
|
37185
|
+
function wb(t, e) {
|
|
37156
37186
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof re$2))
|
|
37157
37187
|
return false;
|
|
37158
37188
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
@@ -37164,17 +37194,17 @@ Actual: ` + p3.attribValue
|
|
|
37164
37194
|
let i3 = t.state.tr.replace(n.pos, n.pos, new ue(o, 0, 0));
|
|
37165
37195
|
return i3.setSelection(tt$3.near(i3.doc.resolve(n.pos + 1))), t.dispatch(i3), false;
|
|
37166
37196
|
}
|
|
37167
|
-
function
|
|
37197
|
+
function vb(t) {
|
|
37168
37198
|
if (!(t.selection instanceof re$2))
|
|
37169
37199
|
return null;
|
|
37170
37200
|
let e = document.createElement("div");
|
|
37171
37201
|
return e.className = "ProseMirror-gapcursor", F.create(t.doc, [V.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
37172
37202
|
}
|
|
37173
|
-
const
|
|
37203
|
+
const kb = Q$1.create({
|
|
37174
37204
|
name: "gapCursor",
|
|
37175
37205
|
addPmPlugins() {
|
|
37176
37206
|
return [
|
|
37177
|
-
|
|
37207
|
+
gb()
|
|
37178
37208
|
];
|
|
37179
37209
|
},
|
|
37180
37210
|
extendNodeSchema(t) {
|
|
@@ -37186,7 +37216,7 @@ Actual: ` + p3.attribValue
|
|
|
37186
37216
|
})) ?? null
|
|
37187
37217
|
};
|
|
37188
37218
|
}
|
|
37189
|
-
}),
|
|
37219
|
+
}), Cb = new Cp$2("collaboration"), Sb = Q$1.create({
|
|
37190
37220
|
name: "collaboration",
|
|
37191
37221
|
priority: 1e3,
|
|
37192
37222
|
addOptions() {
|
|
@@ -37200,9 +37230,9 @@ Actual: ` + p3.attribValue
|
|
|
37200
37230
|
addPmPlugins() {
|
|
37201
37231
|
if (!this.editor.options.ydoc) return [];
|
|
37202
37232
|
this.options.ydoc = this.editor.options.ydoc;
|
|
37203
|
-
const t =
|
|
37204
|
-
|
|
37205
|
-
const [e, n] =
|
|
37233
|
+
const t = Mb();
|
|
37234
|
+
Ab(this.options.ydoc, this.editor), Ob(this.options.ydoc, this.editor, this);
|
|
37235
|
+
const [e, n] = xb(this.options.ydoc, this.editor);
|
|
37206
37236
|
this.options.fragment = n;
|
|
37207
37237
|
const r = this.options.ydoc.getMap("media");
|
|
37208
37238
|
return r.observe((o) => {
|
|
@@ -37231,14 +37261,14 @@ Actual: ` + p3.attribValue
|
|
|
37231
37261
|
"Mod-y": () => this.editor.commands.redo()
|
|
37232
37262
|
};
|
|
37233
37263
|
}
|
|
37234
|
-
}),
|
|
37264
|
+
}), xb = (t, e) => {
|
|
37235
37265
|
const n = t.getXmlFragment("supereditor");
|
|
37236
37266
|
return [jm(n, { onFirstRender: () => {
|
|
37237
37267
|
if (!e.options.isNewFile) return;
|
|
37238
37268
|
const o = t.getMap("meta");
|
|
37239
37269
|
o.set("docx", e.options.content), o.set("fonts", e.options.fonts);
|
|
37240
37270
|
} }), n];
|
|
37241
|
-
},
|
|
37271
|
+
}, Mb = () => pg(), Ab = (t, e) => {
|
|
37242
37272
|
const n = t.getMap("meta");
|
|
37243
37273
|
n.observe((r) => {
|
|
37244
37274
|
const o = n.get("lockedBy"), i3 = n.get("locked");
|
|
@@ -37246,7 +37276,7 @@ Actual: ` + p3.attribValue
|
|
|
37246
37276
|
const s = o?.email !== e.options.user?.email, a = e.options.editable !== !i3;
|
|
37247
37277
|
!s || !a || (i3 ? console.debug("--- Locking editor ---", o, e.options.user) : console.debug("--- Unlocking editor ---", o), e.setEditable(!i3), e.emit("locked", { editor: e, isLocked: i3, lockedBy: o }));
|
|
37248
37278
|
});
|
|
37249
|
-
},
|
|
37279
|
+
}, Ob = (t, e, n) => {
|
|
37250
37280
|
const r = e.options.collaborationProvider;
|
|
37251
37281
|
if (!r) return;
|
|
37252
37282
|
const o = () => {
|
|
@@ -37259,7 +37289,7 @@ Actual: ` + p3.attribValue
|
|
|
37259
37289
|
return;
|
|
37260
37290
|
}
|
|
37261
37291
|
r.on("synced", o);
|
|
37262
|
-
},
|
|
37292
|
+
}, Tb = Q$1.create({
|
|
37263
37293
|
name: "collaborationCursor",
|
|
37264
37294
|
priority: 999,
|
|
37265
37295
|
addOptions() {
|
|
@@ -37278,9 +37308,9 @@ Actual: ` + p3.attribValue
|
|
|
37278
37308
|
},
|
|
37279
37309
|
addPmPlugins() {
|
|
37280
37310
|
const { collaborationProvider: t = null } = this.editor.options;
|
|
37281
|
-
return t ? [lg(t.awareness, { cursorBuilder:
|
|
37311
|
+
return t ? [lg(t.awareness, { cursorBuilder: Db })] : [];
|
|
37282
37312
|
}
|
|
37283
|
-
}),
|
|
37313
|
+
}), Db = (t) => {
|
|
37284
37314
|
const e = document.createElement("span");
|
|
37285
37315
|
e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
|
|
37286
37316
|
const n = document.createElement("div");
|
|
@@ -37306,7 +37336,7 @@ Actual: ` + p3.attribValue
|
|
|
37306
37336
|
name: "text",
|
|
37307
37337
|
group: "inline",
|
|
37308
37338
|
inline: true
|
|
37309
|
-
}),
|
|
37339
|
+
}), Nb = J$1.create({
|
|
37310
37340
|
name: "run",
|
|
37311
37341
|
group: "inline",
|
|
37312
37342
|
content: "text*",
|
|
@@ -37419,7 +37449,7 @@ Actual: ` + p3.attribValue
|
|
|
37419
37449
|
];
|
|
37420
37450
|
}
|
|
37421
37451
|
});
|
|
37422
|
-
function
|
|
37452
|
+
function Eb(t = {}) {
|
|
37423
37453
|
return new vp$2({
|
|
37424
37454
|
key: new Cp$2("orderedListSync"),
|
|
37425
37455
|
appendTransaction: (e, n, r) => {
|
|
@@ -37456,16 +37486,16 @@ Actual: ` + p3.attribValue
|
|
|
37456
37486
|
}
|
|
37457
37487
|
});
|
|
37458
37488
|
}
|
|
37459
|
-
function
|
|
37489
|
+
function Ib() {
|
|
37460
37490
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
37461
37491
|
}
|
|
37462
|
-
function
|
|
37492
|
+
function Pb(t) {
|
|
37463
37493
|
return new vp$2({
|
|
37464
37494
|
key: new Cp$2("orderedListMarker"),
|
|
37465
37495
|
appendTransaction: (e, n, r) => {
|
|
37466
37496
|
if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
|
|
37467
37497
|
return;
|
|
37468
|
-
let { doc: i3, tr: s } = r, a =
|
|
37498
|
+
let { doc: i3, tr: s } = r, a = Rb(r);
|
|
37469
37499
|
if (!a.size)
|
|
37470
37500
|
return;
|
|
37471
37501
|
let l = false;
|
|
@@ -37475,14 +37505,14 @@ Actual: ` + p3.attribValue
|
|
|
37475
37505
|
u.node.attrs.syncId;
|
|
37476
37506
|
let h3 = u.node.childCount !== f3.length;
|
|
37477
37507
|
if (p3) {
|
|
37478
|
-
f3.forEach((y) =>
|
|
37508
|
+
f3.forEach((y) => Fb(s, y)), l = true;
|
|
37479
37509
|
return;
|
|
37480
37510
|
}
|
|
37481
37511
|
if (h3) {
|
|
37482
|
-
let y =
|
|
37512
|
+
let y = Lb({ state: r, list: u });
|
|
37483
37513
|
y.length && (f3 = y);
|
|
37484
37514
|
}
|
|
37485
|
-
let m = f3[0], g =
|
|
37515
|
+
let m = f3[0], g = Bb({ state: r, listItems: f3 }), b = eu$1(), w = {
|
|
37486
37516
|
lvlText: m.node.attrs.lvlText ?? b.lvlText,
|
|
37487
37517
|
listLevel: m.node.attrs.listLevel ?? b.listLevel,
|
|
37488
37518
|
listNumberingType: m.node.attrs.listNumberingType ?? b.listNumberingType
|
|
@@ -37514,7 +37544,7 @@ Actual: ` + p3.attribValue
|
|
|
37514
37544
|
}
|
|
37515
37545
|
});
|
|
37516
37546
|
}
|
|
37517
|
-
function
|
|
37547
|
+
function Rb(t) {
|
|
37518
37548
|
let { doc: e } = t, n = /* @__PURE__ */ new Map();
|
|
37519
37549
|
return e.descendants((r, o) => {
|
|
37520
37550
|
let { attrs: i3 } = r, s = r.type.name === "listItem", a = !!i3.listLevel?.length, l = !!i3.lvlText, c3 = i3.listNumberingType && i3.listNumberingType !== "bullet";
|
|
@@ -37524,7 +37554,7 @@ Actual: ` + p3.attribValue
|
|
|
37524
37554
|
}
|
|
37525
37555
|
}), n;
|
|
37526
37556
|
}
|
|
37527
|
-
function
|
|
37557
|
+
function Lb({ state: t, list: e }) {
|
|
37528
37558
|
let { doc: n } = t, r = [];
|
|
37529
37559
|
return n.descendants((o, i3) => {
|
|
37530
37560
|
let s = o.type.name === "listItem", a = n.resolve(i3);
|
|
@@ -37538,7 +37568,7 @@ Actual: ` + p3.attribValue
|
|
|
37538
37568
|
listNumberingType: n
|
|
37539
37569
|
};
|
|
37540
37570
|
}
|
|
37541
|
-
function
|
|
37571
|
+
function Fb(t, e) {
|
|
37542
37572
|
let { pos: n, node: r } = e;
|
|
37543
37573
|
t.setNodeMarkup(n, void 0, {
|
|
37544
37574
|
...r.attrs,
|
|
@@ -37550,7 +37580,7 @@ Actual: ` + p3.attribValue
|
|
|
37550
37580
|
function ol$1(t, e) {
|
|
37551
37581
|
return t.length === e.length && t.every((n, r) => n === e[r]);
|
|
37552
37582
|
}
|
|
37553
|
-
function
|
|
37583
|
+
function Bb({ state: t, listItems: e }) {
|
|
37554
37584
|
let { doc: n } = t, r = e[0], { lvlText: o, listLevel: i3, listNumberingType: s } = r.node.attrs, a = eu$1({
|
|
37555
37585
|
lvlText: "%1.",
|
|
37556
37586
|
listLevel: [1],
|
|
@@ -37685,7 +37715,7 @@ Actual: ` + p3.attribValue
|
|
|
37685
37715
|
return false;
|
|
37686
37716
|
let { $from: p3 } = r.selection, h3 = r.doc.nodeAt(f3), m = p3.after(), g = r.doc.nodeAt(m), b = h3?.type.name === this.name, w = g?.type.name === this.name;
|
|
37687
37717
|
if (b && w) {
|
|
37688
|
-
let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S ||
|
|
37718
|
+
let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S || Ib();
|
|
37689
37719
|
r.setNodeMarkup(m, void 0, {
|
|
37690
37720
|
...g.attrs,
|
|
37691
37721
|
order: k,
|
|
@@ -37707,7 +37737,7 @@ Actual: ` + p3.attribValue
|
|
|
37707
37737
|
};
|
|
37708
37738
|
},
|
|
37709
37739
|
addPmPlugins() {
|
|
37710
|
-
return [
|
|
37740
|
+
return [Pb(this.editor), Eb()];
|
|
37711
37741
|
},
|
|
37712
37742
|
addInputRules() {
|
|
37713
37743
|
let t = Mo$1({
|
|
@@ -37728,19 +37758,19 @@ Actual: ` + p3.attribValue
|
|
|
37728
37758
|
t
|
|
37729
37759
|
];
|
|
37730
37760
|
}
|
|
37731
|
-
}),
|
|
37732
|
-
const r =
|
|
37761
|
+
}), zb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
|
|
37762
|
+
const r = Hb[n];
|
|
37733
37763
|
return r ? r(t, e) : null;
|
|
37734
|
-
},
|
|
37735
|
-
decimal:
|
|
37736
|
-
lowerRoman:
|
|
37764
|
+
}, _b = (t, e) => $s(t, e, String), nu$1 = (t, e) => $s(t, e, Wb), Vb = (t, e) => nu$1(t, e).toLowerCase(), $b = (t, e) => ru$1(t, e).toLowerCase(), ru$1 = (t, e) => $s(t, e, (n) => Ub(n)), Hb = {
|
|
37765
|
+
decimal: _b,
|
|
37766
|
+
lowerRoman: Vb,
|
|
37737
37767
|
upperRoman: nu$1,
|
|
37738
|
-
lowerLetter:
|
|
37768
|
+
lowerLetter: $b,
|
|
37739
37769
|
upperLetter: ru$1
|
|
37740
|
-
},
|
|
37770
|
+
}, jb = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), $s = (t, e, n) => {
|
|
37741
37771
|
const r = t.map(n);
|
|
37742
|
-
return
|
|
37743
|
-
},
|
|
37772
|
+
return jb(r, e);
|
|
37773
|
+
}, Wb = (t) => {
|
|
37744
37774
|
const e = [
|
|
37745
37775
|
{ value: 1e3, numeral: "M" },
|
|
37746
37776
|
{ value: 900, numeral: "CM" },
|
|
@@ -37761,7 +37791,7 @@ Actual: ` + p3.attribValue
|
|
|
37761
37791
|
for (; t >= r; )
|
|
37762
37792
|
n += o, t -= r;
|
|
37763
37793
|
return n;
|
|
37764
|
-
},
|
|
37794
|
+
}, Ub = (t) => {
|
|
37765
37795
|
let e = "";
|
|
37766
37796
|
const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
37767
37797
|
for (; t > 0; ) {
|
|
@@ -37770,7 +37800,7 @@ Actual: ` + p3.attribValue
|
|
|
37770
37800
|
}
|
|
37771
37801
|
return e;
|
|
37772
37802
|
};
|
|
37773
|
-
function
|
|
37803
|
+
function qb(t = {}) {
|
|
37774
37804
|
return new vp$2({
|
|
37775
37805
|
key: new Cp$2("styledListMarker"),
|
|
37776
37806
|
state: {
|
|
@@ -37803,11 +37833,11 @@ Actual: ` + p3.attribValue
|
|
|
37803
37833
|
let i3 = Bs(n, (s) => s.type.name === "listItem");
|
|
37804
37834
|
return i3.length && i3.forEach(({ node: s, pos: a }) => {
|
|
37805
37835
|
let l = St$1("textStyle", n.type.schema), c3 = [...e.filter((b) => b.type === l)];
|
|
37806
|
-
if (
|
|
37836
|
+
if (Xb(s) && e.length) {
|
|
37807
37837
|
const b = e.filter((w) => w.type === l);
|
|
37808
37838
|
c3.push(...b);
|
|
37809
37839
|
} else {
|
|
37810
|
-
const b =
|
|
37840
|
+
const b = Kb(s, n, l);
|
|
37811
37841
|
c3.push(...b);
|
|
37812
37842
|
}
|
|
37813
37843
|
let u = null, f3 = null;
|
|
@@ -37845,7 +37875,7 @@ Actual: ` + p3.attribValue
|
|
|
37845
37875
|
n.push(a);
|
|
37846
37876
|
}), n;
|
|
37847
37877
|
}
|
|
37848
|
-
function
|
|
37878
|
+
function Kb(t, e, n) {
|
|
37849
37879
|
let r = [];
|
|
37850
37880
|
return t.forEach((o) => {
|
|
37851
37881
|
o.type.name === "paragraph" && o.forEach((i3) => {
|
|
@@ -37857,7 +37887,7 @@ Actual: ` + p3.attribValue
|
|
|
37857
37887
|
});
|
|
37858
37888
|
}), r;
|
|
37859
37889
|
}
|
|
37860
|
-
function
|
|
37890
|
+
function Xb(t) {
|
|
37861
37891
|
return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
|
|
37862
37892
|
}
|
|
37863
37893
|
const ou$1 = J$1.create({
|
|
@@ -37888,7 +37918,7 @@ Actual: ` + p3.attribValue
|
|
|
37888
37918
|
let { listLevel: e, listNumberingType: n, lvlText: r } = t;
|
|
37889
37919
|
if (!!!e?.length || !r)
|
|
37890
37920
|
return {};
|
|
37891
|
-
let i3 =
|
|
37921
|
+
let i3 = zb({
|
|
37892
37922
|
listLevel: e,
|
|
37893
37923
|
lvlText: r,
|
|
37894
37924
|
listNumberingType: n
|
|
@@ -37980,12 +38010,12 @@ Actual: ` + p3.attribValue
|
|
|
37980
38010
|
};
|
|
37981
38011
|
},
|
|
37982
38012
|
addPmPlugins() {
|
|
37983
|
-
return [
|
|
38013
|
+
return [qb()];
|
|
37984
38014
|
}
|
|
37985
|
-
}), io$2 = new Cp$2("linkedStyles"),
|
|
38015
|
+
}), io$2 = new Cp$2("linkedStyles"), Jb = Q$1.create({
|
|
37986
38016
|
name: "linkedStyles",
|
|
37987
38017
|
addPmPlugins() {
|
|
37988
|
-
return [
|
|
38018
|
+
return [Yb(this.editor)];
|
|
37989
38019
|
},
|
|
37990
38020
|
addCommands() {
|
|
37991
38021
|
return {
|
|
@@ -38005,7 +38035,7 @@ Actual: ` + p3.attribValue
|
|
|
38005
38035
|
}
|
|
38006
38036
|
};
|
|
38007
38037
|
}
|
|
38008
|
-
}),
|
|
38038
|
+
}), Yb = (t) => new vp$2({
|
|
38009
38039
|
key: io$2,
|
|
38010
38040
|
state: {
|
|
38011
38041
|
init(e, { doc: n, selection: r }) {
|
|
@@ -38037,14 +38067,14 @@ Actual: ` + p3.attribValue
|
|
|
38037
38067
|
return t.descendants((o, i3) => {
|
|
38038
38068
|
const { name: s } = o.type;
|
|
38039
38069
|
if (o?.attrs?.styleId && (r = o.attrs.styleId), s === "paragraph" && !o.attrs?.styleId && (r = null), s !== "text") return;
|
|
38040
|
-
const a =
|
|
38070
|
+
const a = Zb(r, e);
|
|
38041
38071
|
if (!a) return;
|
|
38042
|
-
const l =
|
|
38072
|
+
const l = Gb(a, o);
|
|
38043
38073
|
if (!l) return;
|
|
38044
38074
|
const c3 = V.inline(i3, i3 + o.nodeSize, { style: l });
|
|
38045
38075
|
n.push(c3);
|
|
38046
38076
|
}), F.create(t, n);
|
|
38047
|
-
},
|
|
38077
|
+
}, Gb = (t, e, n = true) => {
|
|
38048
38078
|
if (!t?.definition?.styles) return "";
|
|
38049
38079
|
const r = {};
|
|
38050
38080
|
return Object.entries(t.definition.styles).forEach(([o, i3]) => {
|
|
@@ -38060,7 +38090,7 @@ Actual: ` + p3.attribValue
|
|
|
38060
38090
|
a.push({ key: c3.type.name, value: c3.attrs[s] });
|
|
38061
38091
|
}), !a.find((c3) => c3.key === s))
|
|
38062
38092
|
if (s === "spacing" && n) {
|
|
38063
|
-
const c3 =
|
|
38093
|
+
const c3 = Qb(i3);
|
|
38064
38094
|
Object.entries(c3).forEach(([d, u]) => {
|
|
38065
38095
|
r[d] = u;
|
|
38066
38096
|
});
|
|
@@ -38069,20 +38099,20 @@ Actual: ` + p3.attribValue
|
|
|
38069
38099
|
c3 && (r["margin-left"] = c3 + "px"), d && (r["margin-right"] = d + "px"), u && (r["text-indent"] = u + "px");
|
|
38070
38100
|
} else s === "bold" ? r["font-weight"] = "bold" : r[s] = i3;
|
|
38071
38101
|
}), Object.entries(r).map(([o, i3]) => `${o}: ${i3}`).join(";");
|
|
38072
|
-
},
|
|
38102
|
+
}, Zb = (t, e = []) => e.find((n) => n.id === t), Qb = (t) => {
|
|
38073
38103
|
const { lineSpaceBefore: e, lineSpaceAfter: n, line: r } = t;
|
|
38074
38104
|
return {
|
|
38075
38105
|
"margin-top": e + "px",
|
|
38076
38106
|
"margin-bottom": n + "px",
|
|
38077
38107
|
...Lp$1(r, "")
|
|
38078
38108
|
};
|
|
38079
|
-
},
|
|
38109
|
+
}, e0 = (t) => {
|
|
38080
38110
|
const { lineSpaceBefore: e, lineSpaceAfter: n } = t;
|
|
38081
38111
|
return `
|
|
38082
38112
|
${e ? `margin-top: ${e}px;` : ""}
|
|
38083
38113
|
${n ? `margin-bottom: ${n}px;` : ""}
|
|
38084
38114
|
`.trim();
|
|
38085
|
-
},
|
|
38115
|
+
}, t0 = (t) => {
|
|
38086
38116
|
let e = "";
|
|
38087
38117
|
for (const n of t)
|
|
38088
38118
|
switch (n.type) {
|
|
@@ -38103,7 +38133,7 @@ Actual: ` + p3.attribValue
|
|
|
38103
38133
|
e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
|
|
38104
38134
|
}
|
|
38105
38135
|
return e.trim();
|
|
38106
|
-
},
|
|
38136
|
+
}, qk = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], iu$1 = J$1.create({
|
|
38107
38137
|
name: "paragraph",
|
|
38108
38138
|
priority: 1e3,
|
|
38109
38139
|
group: "block",
|
|
@@ -38120,7 +38150,7 @@ Actual: ` + p3.attribValue
|
|
|
38120
38150
|
renderDOM: (t) => {
|
|
38121
38151
|
const { spacing: e } = t;
|
|
38122
38152
|
if (!e) return {};
|
|
38123
|
-
const n =
|
|
38153
|
+
const n = e0(e);
|
|
38124
38154
|
return n ? { style: n } : {};
|
|
38125
38155
|
}
|
|
38126
38156
|
},
|
|
@@ -38138,7 +38168,7 @@ Actual: ` + p3.attribValue
|
|
|
38138
38168
|
renderDOM: (t) => {
|
|
38139
38169
|
const { marksAttrs: e } = t;
|
|
38140
38170
|
if (!e?.length) return {};
|
|
38141
|
-
const n =
|
|
38171
|
+
const n = t0(e);
|
|
38142
38172
|
return n ? { style: n } : {};
|
|
38143
38173
|
}
|
|
38144
38174
|
},
|
|
@@ -38218,7 +38248,7 @@ Actual: ` + p3.attribValue
|
|
|
38218
38248
|
{}
|
|
38219
38249
|
);
|
|
38220
38250
|
}
|
|
38221
|
-
}),
|
|
38251
|
+
}), n0 = J$1.create({
|
|
38222
38252
|
name: "commentRangeStart",
|
|
38223
38253
|
group: "inline",
|
|
38224
38254
|
inline: true,
|
|
@@ -38249,7 +38279,7 @@ Actual: ` + p3.attribValue
|
|
|
38249
38279
|
}
|
|
38250
38280
|
};
|
|
38251
38281
|
}
|
|
38252
|
-
}),
|
|
38282
|
+
}), r0 = J$1.create({
|
|
38253
38283
|
name: "commentRangeEnd",
|
|
38254
38284
|
group: "inline",
|
|
38255
38285
|
inline: true,
|
|
@@ -38276,7 +38306,7 @@ Actual: ` + p3.attribValue
|
|
|
38276
38306
|
}
|
|
38277
38307
|
};
|
|
38278
38308
|
}
|
|
38279
|
-
}),
|
|
38309
|
+
}), o0 = J$1.create({
|
|
38280
38310
|
name: "commentReference",
|
|
38281
38311
|
group: "inline",
|
|
38282
38312
|
inline: true,
|
|
@@ -38303,7 +38333,7 @@ Actual: ` + p3.attribValue
|
|
|
38303
38333
|
}
|
|
38304
38334
|
};
|
|
38305
38335
|
}
|
|
38306
|
-
}),
|
|
38336
|
+
}), i0 = Le$1.create({
|
|
38307
38337
|
name: Pe,
|
|
38308
38338
|
group: "comments",
|
|
38309
38339
|
excludes: "",
|
|
@@ -38328,7 +38358,7 @@ Actual: ` + p3.attribValue
|
|
|
38328
38358
|
renderDOM({ htmlAttributes: t }) {
|
|
38329
38359
|
return [Pe, N.mergeAttributes(this.options.htmlAttributes, t)];
|
|
38330
38360
|
}
|
|
38331
|
-
}),
|
|
38361
|
+
}), s0 = J$1.create({
|
|
38332
38362
|
name: "tab",
|
|
38333
38363
|
group: "inline",
|
|
38334
38364
|
inline: true,
|
|
@@ -38392,21 +38422,21 @@ Actual: ` + p3.attribValue
|
|
|
38392
38422
|
try {
|
|
38393
38423
|
t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
|
|
38394
38424
|
if (d.isText && d.textContent !== " ") {
|
|
38395
|
-
const f3 =
|
|
38425
|
+
const f3 = a0(e, u);
|
|
38396
38426
|
a += f3;
|
|
38397
38427
|
}
|
|
38398
38428
|
});
|
|
38399
38429
|
} catch {
|
|
38400
38430
|
return;
|
|
38401
38431
|
}
|
|
38402
|
-
const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 =
|
|
38432
|
+
const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = l0(i3);
|
|
38403
38433
|
n.push(
|
|
38404
38434
|
V.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
|
|
38405
38435
|
);
|
|
38406
38436
|
}
|
|
38407
38437
|
}), n;
|
|
38408
38438
|
};
|
|
38409
|
-
function
|
|
38439
|
+
function a0(t, e) {
|
|
38410
38440
|
const n = t.nodeDOM(e);
|
|
38411
38441
|
if (n) {
|
|
38412
38442
|
const r = document.createRange();
|
|
@@ -38414,7 +38444,7 @@ Actual: ` + p3.attribValue
|
|
|
38414
38444
|
}
|
|
38415
38445
|
return 0;
|
|
38416
38446
|
}
|
|
38417
|
-
function
|
|
38447
|
+
function l0(t) {
|
|
38418
38448
|
const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
|
|
38419
38449
|
return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
|
|
38420
38450
|
}
|
|
@@ -38448,7 +38478,7 @@ Actual: ` + p3.attribValue
|
|
|
38448
38478
|
renderDOM({ htmlAttributes: t }) {
|
|
38449
38479
|
return ["span", N.mergeAttributes(this.options.htmlAttributes, t)];
|
|
38450
38480
|
}
|
|
38451
|
-
}),
|
|
38481
|
+
}), c0 = ({ editor: t }) => class {
|
|
38452
38482
|
constructor(n, r) {
|
|
38453
38483
|
P(this, "editor");
|
|
38454
38484
|
P(this, "node");
|
|
@@ -38526,7 +38556,7 @@ Actual: ` + p3.attribValue
|
|
|
38526
38556
|
right: { size: t, color: e },
|
|
38527
38557
|
insideH: { size: t, color: e },
|
|
38528
38558
|
insideV: { size: t, color: e }
|
|
38529
|
-
}),
|
|
38559
|
+
}), d0 = (t, e, n, r, o = null) => {
|
|
38530
38560
|
const i3 = {
|
|
38531
38561
|
table: le$1("table", t),
|
|
38532
38562
|
tableRow: le$1("tableRow", t),
|
|
@@ -38639,13 +38669,13 @@ Actual: ` + p3.attribValue
|
|
|
38639
38669
|
}
|
|
38640
38670
|
// Find the table map for the given table node.
|
|
38641
38671
|
static get(t) {
|
|
38642
|
-
return ns$1(t) || rs$1(t,
|
|
38672
|
+
return ns$1(t) || rs$1(t, u0(t));
|
|
38643
38673
|
}
|
|
38644
38674
|
};
|
|
38645
|
-
function
|
|
38675
|
+
function u0(t) {
|
|
38646
38676
|
if (t.type.spec.tableRole != "table")
|
|
38647
38677
|
throw new RangeError("Not a table node: " + t.type.name);
|
|
38648
|
-
const e =
|
|
38678
|
+
const e = f0(t), n = t.childCount, r = [];
|
|
38649
38679
|
let o = 0, i3 = null;
|
|
38650
38680
|
const s = [];
|
|
38651
38681
|
for (let c3 = 0, d = e * n; c3 < d; c3++) r[c3] = 0;
|
|
@@ -38692,9 +38722,9 @@ Actual: ` + p3.attribValue
|
|
|
38692
38722
|
let l = false;
|
|
38693
38723
|
for (let c3 = 0; !l && c3 < s.length; c3 += 2)
|
|
38694
38724
|
s[c3] != null && s[c3 + 1] < n && (l = true);
|
|
38695
|
-
return l &&
|
|
38725
|
+
return l && p0(a, s, t), a;
|
|
38696
38726
|
}
|
|
38697
|
-
function
|
|
38727
|
+
function f0(t) {
|
|
38698
38728
|
let e = -1, n = false;
|
|
38699
38729
|
for (let r = 0; r < t.childCount; r++) {
|
|
38700
38730
|
const o = t.child(r);
|
|
@@ -38715,7 +38745,7 @@ Actual: ` + p3.attribValue
|
|
|
38715
38745
|
}
|
|
38716
38746
|
return e;
|
|
38717
38747
|
}
|
|
38718
|
-
function
|
|
38748
|
+
function p0(t, e, n) {
|
|
38719
38749
|
t.problems || (t.problems = []);
|
|
38720
38750
|
const r = {};
|
|
38721
38751
|
for (let o = 0; o < t.map.length; o++) {
|
|
@@ -38729,7 +38759,7 @@ Actual: ` + p3.attribValue
|
|
|
38729
38759
|
const l = s.attrs;
|
|
38730
38760
|
for (let c3 = 0; c3 < l.colspan; c3++) {
|
|
38731
38761
|
const d = (o + c3) % t.width, u = e[d * 2];
|
|
38732
|
-
u != null && (!l.colwidth || l.colwidth[c3] != u) && ((a || (a =
|
|
38762
|
+
u != null && (!l.colwidth || l.colwidth[c3] != u) && ((a || (a = h0(l)))[c3] = u);
|
|
38733
38763
|
}
|
|
38734
38764
|
a && t.problems.unshift({
|
|
38735
38765
|
type: "colwidth mismatch",
|
|
@@ -38738,7 +38768,7 @@ Actual: ` + p3.attribValue
|
|
|
38738
38768
|
});
|
|
38739
38769
|
}
|
|
38740
38770
|
}
|
|
38741
|
-
function
|
|
38771
|
+
function h0(t) {
|
|
38742
38772
|
if (t.colwidth) return t.colwidth.slice();
|
|
38743
38773
|
const e = [];
|
|
38744
38774
|
for (let n = 0; n < t.colspan; n++) e.push(0);
|
|
@@ -38762,7 +38792,7 @@ Actual: ` + p3.attribValue
|
|
|
38762
38792
|
return t.node(0).resolve(t.before(e + 1));
|
|
38763
38793
|
return null;
|
|
38764
38794
|
}
|
|
38765
|
-
function
|
|
38795
|
+
function m0(t) {
|
|
38766
38796
|
for (let e = t.depth; e > 0; e--) {
|
|
38767
38797
|
const n = t.node(e).type.spec.tableRole;
|
|
38768
38798
|
if (n === "cell" || n === "header_cell") return t.node(e);
|
|
@@ -38781,12 +38811,12 @@ Actual: ` + p3.attribValue
|
|
|
38781
38811
|
return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
|
|
38782
38812
|
if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
|
|
38783
38813
|
return e.$anchor;
|
|
38784
|
-
const n = $n$2(e.$head) ||
|
|
38814
|
+
const n = $n$2(e.$head) || g0(e.$head);
|
|
38785
38815
|
if (n)
|
|
38786
38816
|
return n;
|
|
38787
38817
|
throw new RangeError(`No cell found around position ${e.head}`);
|
|
38788
38818
|
}
|
|
38789
|
-
function
|
|
38819
|
+
function g0(t) {
|
|
38790
38820
|
for (let e = t.nodeAfter, n = t.pos; e; e = e.firstChild, n++) {
|
|
38791
38821
|
const r = e.type.spec.tableRole;
|
|
38792
38822
|
if (r == "cell" || r == "header_cell") return t.doc.resolve(n);
|
|
@@ -38800,7 +38830,7 @@ Actual: ` + p3.attribValue
|
|
|
38800
38830
|
function is$1(t) {
|
|
38801
38831
|
return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
|
|
38802
38832
|
}
|
|
38803
|
-
function
|
|
38833
|
+
function y0(t) {
|
|
38804
38834
|
return t.node(0).resolve(t.pos + t.nodeAfter.nodeSize);
|
|
38805
38835
|
}
|
|
38806
38836
|
function Hs(t, e) {
|
|
@@ -38810,7 +38840,7 @@ Actual: ` + p3.attribValue
|
|
|
38810
38840
|
const r = t.node(-1), o = oe$1.get(r), i3 = t.start(-1), s = o.nextCell(t.pos - i3, e, n);
|
|
38811
38841
|
return s == null ? null : t.node(0).resolve(i3 + s);
|
|
38812
38842
|
}
|
|
38813
|
-
function
|
|
38843
|
+
function dn$2(t, e, n = 1) {
|
|
38814
38844
|
const r = { ...t, colspan: t.colspan - n };
|
|
38815
38845
|
return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
|
|
38816
38846
|
}
|
|
@@ -38822,7 +38852,7 @@ Actual: ` + p3.attribValue
|
|
|
38822
38852
|
}
|
|
38823
38853
|
return r;
|
|
38824
38854
|
}
|
|
38825
|
-
function
|
|
38855
|
+
function b0(t, e, n) {
|
|
38826
38856
|
const r = we(e.type.schema).header_cell;
|
|
38827
38857
|
for (let o = 0; o < t.height; o++)
|
|
38828
38858
|
if (e.nodeAt(t.map[n + o * t.width]).type != r)
|
|
@@ -38880,7 +38910,7 @@ Actual: ` + p3.attribValue
|
|
|
38880
38910
|
const m = o.left - p3.left, g = p3.right - o.right;
|
|
38881
38911
|
if (m > 0 || g > 0) {
|
|
38882
38912
|
let b = h3.attrs;
|
|
38883
|
-
if (m > 0 && (b =
|
|
38913
|
+
if (m > 0 && (b = dn$2(b, 0, m)), g > 0 && (b = dn$2(
|
|
38884
38914
|
b,
|
|
38885
38915
|
b.colspan - g,
|
|
38886
38916
|
g
|
|
@@ -38990,12 +39020,12 @@ Actual: ` + p3.attribValue
|
|
|
38990
39020
|
return new ht2(e.resolve(n), e.resolve(r));
|
|
38991
39021
|
}
|
|
38992
39022
|
getBookmark() {
|
|
38993
|
-
return new
|
|
39023
|
+
return new w0(this.$anchorCell.pos, this.$headCell.pos);
|
|
38994
39024
|
}
|
|
38995
39025
|
};
|
|
38996
39026
|
X$1.prototype.visible = false;
|
|
38997
39027
|
ve$1.jsonID("cell", X$1);
|
|
38998
|
-
var
|
|
39028
|
+
var w0 = class fu2 {
|
|
38999
39029
|
constructor(e, n) {
|
|
39000
39030
|
this.anchor = e, this.head = n;
|
|
39001
39031
|
}
|
|
@@ -39007,7 +39037,7 @@ Actual: ` + p3.attribValue
|
|
|
39007
39037
|
return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && Hs(n, r) ? new X$1(n, r) : ve$1.near(r, 1);
|
|
39008
39038
|
}
|
|
39009
39039
|
};
|
|
39010
|
-
function
|
|
39040
|
+
function v0(t) {
|
|
39011
39041
|
if (!(t.selection instanceof X$1)) return null;
|
|
39012
39042
|
const e = [];
|
|
39013
39043
|
return t.selection.forEachCell((n, r) => {
|
|
@@ -39016,7 +39046,7 @@ Actual: ` + p3.attribValue
|
|
|
39016
39046
|
);
|
|
39017
39047
|
}), F.create(t.doc, e);
|
|
39018
39048
|
}
|
|
39019
|
-
function
|
|
39049
|
+
function k0({ $from: t, $to: e }) {
|
|
39020
39050
|
if (t.pos == e.pos || t.pos < e.pos - 6) return false;
|
|
39021
39051
|
let n = t.pos, r = e.pos, o = t.depth;
|
|
39022
39052
|
for (; o >= 0 && !(t.after(o + 1) < t.end(o)); o--, n++)
|
|
@@ -39025,7 +39055,7 @@ Actual: ` + p3.attribValue
|
|
|
39025
39055
|
;
|
|
39026
39056
|
return n == r && /row|table/.test(t.node(o).type.spec.tableRole);
|
|
39027
39057
|
}
|
|
39028
|
-
function
|
|
39058
|
+
function C0({ $from: t, $to: e }) {
|
|
39029
39059
|
let n, r;
|
|
39030
39060
|
for (let o = t.depth; o > 0; o--) {
|
|
39031
39061
|
const i3 = t.node(o);
|
|
@@ -39043,7 +39073,7 @@ Actual: ` + p3.attribValue
|
|
|
39043
39073
|
}
|
|
39044
39074
|
return n !== r && e.parentOffset === 0;
|
|
39045
39075
|
}
|
|
39046
|
-
function
|
|
39076
|
+
function S0(t, e, n) {
|
|
39047
39077
|
const r = (e || t).selection, o = (e || t).doc;
|
|
39048
39078
|
let i3, s;
|
|
39049
39079
|
if (r instanceof Ge$1 && (s = r.node.type.spec.tableRole)) {
|
|
@@ -39056,10 +39086,10 @@ Actual: ` + p3.attribValue
|
|
|
39056
39086
|
const a = oe$1.get(r.node), l = r.from + 1, c3 = l + a.map[a.width * a.height - 1];
|
|
39057
39087
|
i3 = X$1.create(o, l + 1, c3);
|
|
39058
39088
|
}
|
|
39059
|
-
} else r instanceof tt$3 &&
|
|
39089
|
+
} else r instanceof tt$3 && k0(r) ? i3 = tt$3.create(o, r.from) : r instanceof tt$3 && C0(r) && (i3 = tt$3.create(o, r.$from.start(), r.$from.end()));
|
|
39060
39090
|
return i3 && (e || (e = t.tr)).setSelection(i3), e;
|
|
39061
39091
|
}
|
|
39062
|
-
var
|
|
39092
|
+
var x0 = new Cp$2("fix-tables");
|
|
39063
39093
|
function pu$1(t, e, n, r) {
|
|
39064
39094
|
const o = t.childCount, i3 = e.childCount;
|
|
39065
39095
|
e: for (let s = 0, a = 0; s < i3; s++) {
|
|
@@ -39075,11 +39105,11 @@ Actual: ` + p3.attribValue
|
|
|
39075
39105
|
function hu$1(t, e) {
|
|
39076
39106
|
let n;
|
|
39077
39107
|
const r = (o, i3) => {
|
|
39078
|
-
o.type.spec.tableRole == "table" && (n =
|
|
39108
|
+
o.type.spec.tableRole == "table" && (n = M0(t, o, i3, n));
|
|
39079
39109
|
};
|
|
39080
39110
|
return e ? e.doc != t.doc && pu$1(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
|
|
39081
39111
|
}
|
|
39082
|
-
function
|
|
39112
|
+
function M0(t, e, n, r) {
|
|
39083
39113
|
const o = oe$1.get(e);
|
|
39084
39114
|
if (!o.problems) return r;
|
|
39085
39115
|
r || (r = t.tr);
|
|
@@ -39095,7 +39125,7 @@ Actual: ` + p3.attribValue
|
|
|
39095
39125
|
r.setNodeMarkup(
|
|
39096
39126
|
r.mapping.map(n + 1 + c3.pos),
|
|
39097
39127
|
null,
|
|
39098
|
-
|
|
39128
|
+
dn$2(u, u.colspan - c3.n, c3.n)
|
|
39099
39129
|
);
|
|
39100
39130
|
} else if (c3.type == "missing")
|
|
39101
39131
|
i3[c3.row] += c3.n;
|
|
@@ -39136,7 +39166,7 @@ Actual: ` + p3.attribValue
|
|
|
39136
39166
|
}
|
|
39137
39167
|
c3 = u;
|
|
39138
39168
|
}
|
|
39139
|
-
return r.setMeta(
|
|
39169
|
+
return r.setMeta(x0, { fixTables: true });
|
|
39140
39170
|
}
|
|
39141
39171
|
function at$1(t) {
|
|
39142
39172
|
const e = t.selection, n = zo$1(t), r = n.node(-1), o = n.start(-1), i3 = oe$1.get(r);
|
|
@@ -39147,7 +39177,7 @@ Actual: ` + p3.attribValue
|
|
|
39147
39177
|
}
|
|
39148
39178
|
function mu$1(t, { map: e, tableStart: n, table: r }, o) {
|
|
39149
39179
|
let i3 = o > 0 ? -1 : 0;
|
|
39150
|
-
|
|
39180
|
+
b0(e, r, o + i3) && (i3 = o == 0 || o == e.width ? null : 0);
|
|
39151
39181
|
for (let s = 0; s < e.height; s++) {
|
|
39152
39182
|
const a = s * e.width + o;
|
|
39153
39183
|
if (o > 0 && o < e.width && e.map[a - 1] == e.map[a]) {
|
|
@@ -39164,7 +39194,7 @@ Actual: ` + p3.attribValue
|
|
|
39164
39194
|
}
|
|
39165
39195
|
return t;
|
|
39166
39196
|
}
|
|
39167
|
-
function
|
|
39197
|
+
function A0(t, e) {
|
|
39168
39198
|
if (!Ye$2(t)) return false;
|
|
39169
39199
|
if (e) {
|
|
39170
39200
|
const n = at$1(t);
|
|
@@ -39172,7 +39202,7 @@ Actual: ` + p3.attribValue
|
|
|
39172
39202
|
}
|
|
39173
39203
|
return true;
|
|
39174
39204
|
}
|
|
39175
|
-
function
|
|
39205
|
+
function O0(t, e) {
|
|
39176
39206
|
if (!Ye$2(t)) return false;
|
|
39177
39207
|
if (e) {
|
|
39178
39208
|
const n = at$1(t);
|
|
@@ -39180,7 +39210,7 @@ Actual: ` + p3.attribValue
|
|
|
39180
39210
|
}
|
|
39181
39211
|
return true;
|
|
39182
39212
|
}
|
|
39183
|
-
function
|
|
39213
|
+
function T0(t, { map: e, table: n, tableStart: r }, o) {
|
|
39184
39214
|
const i3 = t.mapping.maps.length;
|
|
39185
39215
|
for (let s = 0; s < e.height; ) {
|
|
39186
39216
|
const a = s * e.width + o, l = e.map[a], c3 = n.nodeAt(l), d = c3.attrs;
|
|
@@ -39188,7 +39218,7 @@ Actual: ` + p3.attribValue
|
|
|
39188
39218
|
t.setNodeMarkup(
|
|
39189
39219
|
t.mapping.slice(i3).map(r + l),
|
|
39190
39220
|
null,
|
|
39191
|
-
|
|
39221
|
+
dn$2(d, o - e.colCount(l))
|
|
39192
39222
|
);
|
|
39193
39223
|
else {
|
|
39194
39224
|
const u = t.mapping.slice(i3).map(r + l);
|
|
@@ -39197,12 +39227,12 @@ Actual: ` + p3.attribValue
|
|
|
39197
39227
|
s += d.rowspan;
|
|
39198
39228
|
}
|
|
39199
39229
|
}
|
|
39200
|
-
function
|
|
39230
|
+
function D0(t, e) {
|
|
39201
39231
|
if (!Ye$2(t)) return false;
|
|
39202
39232
|
if (e) {
|
|
39203
39233
|
const n = at$1(t), r = t.tr;
|
|
39204
39234
|
if (n.left == 0 && n.right == n.map.width) return false;
|
|
39205
|
-
for (let o = n.right - 1;
|
|
39235
|
+
for (let o = n.right - 1; T0(r, n, o), o != n.left; o--) {
|
|
39206
39236
|
const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
|
|
39207
39237
|
if (!i3)
|
|
39208
39238
|
throw RangeError("No table found");
|
|
@@ -39212,7 +39242,7 @@ Actual: ` + p3.attribValue
|
|
|
39212
39242
|
}
|
|
39213
39243
|
return true;
|
|
39214
39244
|
}
|
|
39215
|
-
function
|
|
39245
|
+
function N0(t, e, n) {
|
|
39216
39246
|
var r;
|
|
39217
39247
|
const o = we(e.type.schema).header_cell;
|
|
39218
39248
|
for (let i3 = 0; i3 < t.width; i3++)
|
|
@@ -39226,7 +39256,7 @@ Actual: ` + p3.attribValue
|
|
|
39226
39256
|
for (let c3 = 0; c3 < o; c3++) s += r.child(c3).nodeSize;
|
|
39227
39257
|
const a = [];
|
|
39228
39258
|
let l = o > 0 ? -1 : 0;
|
|
39229
|
-
|
|
39259
|
+
N0(e, r, o + l) && (l = o == 0 || o == e.height ? null : 0);
|
|
39230
39260
|
for (let c3 = 0, d = e.width * o; c3 < e.width; c3++, d++)
|
|
39231
39261
|
if (o > 0 && o < e.height && e.map[d] == e.map[d - e.width]) {
|
|
39232
39262
|
const u = e.map[d], f3 = r.nodeAt(u).attrs;
|
|
@@ -39240,7 +39270,7 @@ Actual: ` + p3.attribValue
|
|
|
39240
39270
|
}
|
|
39241
39271
|
return t.insert(s, we(r.type.schema).row.create(null, a)), t;
|
|
39242
39272
|
}
|
|
39243
|
-
function
|
|
39273
|
+
function E0(t, e) {
|
|
39244
39274
|
if (!Ye$2(t)) return false;
|
|
39245
39275
|
if (e) {
|
|
39246
39276
|
const n = at$1(t);
|
|
@@ -39248,7 +39278,7 @@ Actual: ` + p3.attribValue
|
|
|
39248
39278
|
}
|
|
39249
39279
|
return true;
|
|
39250
39280
|
}
|
|
39251
|
-
function
|
|
39281
|
+
function I0(t, e) {
|
|
39252
39282
|
if (!Ye$2(t)) return false;
|
|
39253
39283
|
if (e) {
|
|
39254
39284
|
const n = at$1(t);
|
|
@@ -39256,7 +39286,7 @@ Actual: ` + p3.attribValue
|
|
|
39256
39286
|
}
|
|
39257
39287
|
return true;
|
|
39258
39288
|
}
|
|
39259
|
-
function
|
|
39289
|
+
function P0(t, { map: e, table: n, tableStart: r }, o) {
|
|
39260
39290
|
let i3 = 0;
|
|
39261
39291
|
for (let c3 = 0; c3 < o; c3++) i3 += n.child(c3).nodeSize;
|
|
39262
39292
|
const s = i3 + n.child(o).nodeSize, a = t.mapping.maps.length;
|
|
@@ -39281,12 +39311,12 @@ Actual: ` + p3.attribValue
|
|
|
39281
39311
|
}
|
|
39282
39312
|
}
|
|
39283
39313
|
}
|
|
39284
|
-
function
|
|
39314
|
+
function R0(t, e) {
|
|
39285
39315
|
if (!Ye$2(t)) return false;
|
|
39286
39316
|
if (e) {
|
|
39287
39317
|
const n = at$1(t), r = t.tr;
|
|
39288
39318
|
if (n.top == 0 && n.bottom == n.map.height) return false;
|
|
39289
|
-
for (let o = n.bottom - 1;
|
|
39319
|
+
for (let o = n.bottom - 1; P0(r, n, o), o != n.top; o--) {
|
|
39290
39320
|
const i3 = n.tableStart ? r.doc.nodeAt(n.tableStart - 1) : r.doc;
|
|
39291
39321
|
if (!i3)
|
|
39292
39322
|
throw RangeError("No table found");
|
|
@@ -39300,7 +39330,7 @@ Actual: ` + p3.attribValue
|
|
|
39300
39330
|
const e = t.content;
|
|
39301
39331
|
return e.childCount == 1 && e.child(0).isTextblock && e.child(0).childCount == 0;
|
|
39302
39332
|
}
|
|
39303
|
-
function
|
|
39333
|
+
function L0({ width: t, height: e, map: n }, r) {
|
|
39304
39334
|
let o = r.top * t + r.left, i3 = o, s = (r.bottom - 1) * t + r.left, a = o + (r.right - r.left - 1);
|
|
39305
39335
|
for (let l = r.top; l < r.bottom; l++) {
|
|
39306
39336
|
if (r.left > 0 && n[i3] == n[i3 - 1] || r.right < t && n[a] == n[a + 1])
|
|
@@ -39319,7 +39349,7 @@ Actual: ` + p3.attribValue
|
|
|
39319
39349
|
if (!(n instanceof X$1) || n.$anchorCell.pos == n.$headCell.pos)
|
|
39320
39350
|
return false;
|
|
39321
39351
|
const r = at$1(t), { map: o } = r;
|
|
39322
|
-
if (
|
|
39352
|
+
if (L0(o, r)) return false;
|
|
39323
39353
|
if (e) {
|
|
39324
39354
|
const i3 = t.tr, s = {};
|
|
39325
39355
|
let a = Q$2.empty, l, c3;
|
|
@@ -39356,9 +39386,9 @@ Actual: ` + p3.attribValue
|
|
|
39356
39386
|
}
|
|
39357
39387
|
function gl$1(t, e) {
|
|
39358
39388
|
const n = we(t.schema);
|
|
39359
|
-
return
|
|
39389
|
+
return F0(({ node: r }) => n[r.type.spec.tableRole])(t, e);
|
|
39360
39390
|
}
|
|
39361
|
-
function
|
|
39391
|
+
function F0(t) {
|
|
39362
39392
|
return (e, n) => {
|
|
39363
39393
|
var r;
|
|
39364
39394
|
const o = e.selection;
|
|
@@ -39367,7 +39397,7 @@ Actual: ` + p3.attribValue
|
|
|
39367
39397
|
if (o.$anchorCell.pos != o.$headCell.pos) return false;
|
|
39368
39398
|
i3 = o.$anchorCell.nodeAfter, s = o.$anchorCell.pos;
|
|
39369
39399
|
} else {
|
|
39370
|
-
if (i3 =
|
|
39400
|
+
if (i3 = m0(o.$from), !i3) return false;
|
|
39371
39401
|
s = (r = $n$2(o.$from)) == null ? void 0 : r.pos;
|
|
39372
39402
|
}
|
|
39373
39403
|
if (i3 == null || s == null || i3.attrs.colspan == 1 && i3.attrs.rowspan == 1)
|
|
@@ -39408,7 +39438,7 @@ Actual: ` + p3.attribValue
|
|
|
39408
39438
|
return true;
|
|
39409
39439
|
};
|
|
39410
39440
|
}
|
|
39411
|
-
function
|
|
39441
|
+
function B0(t, e) {
|
|
39412
39442
|
return function(n, r) {
|
|
39413
39443
|
if (!Ye$2(n)) return false;
|
|
39414
39444
|
const o = zo$1(n);
|
|
@@ -39428,7 +39458,7 @@ Actual: ` + p3.attribValue
|
|
|
39428
39458
|
return true;
|
|
39429
39459
|
};
|
|
39430
39460
|
}
|
|
39431
|
-
function
|
|
39461
|
+
function z0(t) {
|
|
39432
39462
|
return function(e, n) {
|
|
39433
39463
|
if (!Ye$2(e)) return false;
|
|
39434
39464
|
if (n) {
|
|
@@ -39478,7 +39508,7 @@ Actual: ` + p3.attribValue
|
|
|
39478
39508
|
return true;
|
|
39479
39509
|
}
|
|
39480
39510
|
function vr$1(t, e) {
|
|
39481
|
-
return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ?
|
|
39511
|
+
return e = e || { useDeprecatedLogic: false }, e.useDeprecatedLogic ? z0(t) : function(n, r) {
|
|
39482
39512
|
if (!Ye$2(n)) return false;
|
|
39483
39513
|
if (r) {
|
|
39484
39514
|
const o = we(n.schema), i3 = at$1(n), s = n.tr, a = yl$1("row", i3, o), l = yl$1(
|
|
@@ -39510,10 +39540,10 @@ Actual: ` + p3.attribValue
|
|
|
39510
39540
|
vr$1("column", {
|
|
39511
39541
|
useDeprecatedLogic: true
|
|
39512
39542
|
});
|
|
39513
|
-
var
|
|
39543
|
+
var _0 = vr$1("cell", {
|
|
39514
39544
|
useDeprecatedLogic: true
|
|
39515
39545
|
});
|
|
39516
|
-
function
|
|
39546
|
+
function V0(t, e) {
|
|
39517
39547
|
if (e < 0) {
|
|
39518
39548
|
const n = t.nodeBefore;
|
|
39519
39549
|
if (n) return t.pos - n.nodeSize;
|
|
@@ -39538,18 +39568,18 @@ Actual: ` + p3.attribValue
|
|
|
39538
39568
|
function bl$1(t) {
|
|
39539
39569
|
return function(e, n) {
|
|
39540
39570
|
if (!Ye$2(e)) return false;
|
|
39541
|
-
const r =
|
|
39571
|
+
const r = V0(zo$1(e), t);
|
|
39542
39572
|
if (r == null) return false;
|
|
39543
39573
|
if (n) {
|
|
39544
39574
|
const o = e.doc.resolve(r);
|
|
39545
39575
|
n(
|
|
39546
|
-
e.tr.setSelection(tt$3.between(o,
|
|
39576
|
+
e.tr.setSelection(tt$3.between(o, y0(o))).scrollIntoView()
|
|
39547
39577
|
);
|
|
39548
39578
|
}
|
|
39549
39579
|
return true;
|
|
39550
39580
|
};
|
|
39551
39581
|
}
|
|
39552
|
-
function
|
|
39582
|
+
function $0(t, e) {
|
|
39553
39583
|
const n = t.selection.$anchor;
|
|
39554
39584
|
for (let r = n.depth; r > 0; r--)
|
|
39555
39585
|
if (n.node(r).type.spec.tableRole == "table")
|
|
@@ -39573,7 +39603,7 @@ Actual: ` + p3.attribValue
|
|
|
39573
39603
|
}
|
|
39574
39604
|
return true;
|
|
39575
39605
|
}
|
|
39576
|
-
function
|
|
39606
|
+
function H0(t) {
|
|
39577
39607
|
if (!t.size) return null;
|
|
39578
39608
|
let { content: e, openStart: n, openEnd: r } = t;
|
|
39579
39609
|
for (; e.childCount == 1 && (n > 0 && r > 0 || e.child(0).type.spec.tableRole == "table"); )
|
|
@@ -39597,9 +39627,9 @@ Actual: ` + p3.attribValue
|
|
|
39597
39627
|
);
|
|
39598
39628
|
else
|
|
39599
39629
|
return null;
|
|
39600
|
-
return
|
|
39630
|
+
return j0(s, a);
|
|
39601
39631
|
}
|
|
39602
|
-
function
|
|
39632
|
+
function j0(t, e) {
|
|
39603
39633
|
const n = [];
|
|
39604
39634
|
for (let o = 0; o < e.length; o++) {
|
|
39605
39635
|
const i3 = e[o];
|
|
@@ -39624,7 +39654,7 @@ Actual: ` + p3.attribValue
|
|
|
39624
39654
|
const n = t.createAndFill();
|
|
39625
39655
|
return new Sf$1(n).replace(0, n.content.size, e).doc;
|
|
39626
39656
|
}
|
|
39627
|
-
function
|
|
39657
|
+
function W0({ width: t, height: e, rows: n }, r, o) {
|
|
39628
39658
|
if (t != r) {
|
|
39629
39659
|
const i3 = [], s = [];
|
|
39630
39660
|
for (let a = 0; a < n.length; a++) {
|
|
@@ -39632,7 +39662,7 @@ Actual: ` + p3.attribValue
|
|
|
39632
39662
|
for (let d = i3[a] || 0, u = 0; d < r; u++) {
|
|
39633
39663
|
let f3 = l.child(u % l.childCount);
|
|
39634
39664
|
d + f3.attrs.colspan > r && (f3 = f3.type.createChecked(
|
|
39635
|
-
|
|
39665
|
+
dn$2(
|
|
39636
39666
|
f3.attrs,
|
|
39637
39667
|
f3.attrs.colspan,
|
|
39638
39668
|
d + f3.attrs.colspan - r
|
|
@@ -39666,7 +39696,7 @@ Actual: ` + p3.attribValue
|
|
|
39666
39696
|
}
|
|
39667
39697
|
return { width: t, height: e, rows: n };
|
|
39668
39698
|
}
|
|
39669
|
-
function
|
|
39699
|
+
function U0(t, e, n, r, o, i3, s) {
|
|
39670
39700
|
const a = t.doc.type.schema, l = we(a);
|
|
39671
39701
|
let c3, d;
|
|
39672
39702
|
if (o > e.width)
|
|
@@ -39726,7 +39756,7 @@ Actual: ` + p3.attribValue
|
|
|
39726
39756
|
t.setNodeMarkup(
|
|
39727
39757
|
h3,
|
|
39728
39758
|
null,
|
|
39729
|
-
|
|
39759
|
+
dn$2(
|
|
39730
39760
|
f3.attrs,
|
|
39731
39761
|
s - p3,
|
|
39732
39762
|
f3.attrs.colspan - (s - p3)
|
|
@@ -39734,7 +39764,7 @@ Actual: ` + p3.attribValue
|
|
|
39734
39764
|
), t.insert(
|
|
39735
39765
|
h3 + f3.nodeSize,
|
|
39736
39766
|
f3.type.createAndFill(
|
|
39737
|
-
|
|
39767
|
+
dn$2(f3.attrs, 0, s - p3)
|
|
39738
39768
|
)
|
|
39739
39769
|
), c3 += f3.attrs.rowspan - 1;
|
|
39740
39770
|
}
|
|
@@ -39753,7 +39783,7 @@ Actual: ` + p3.attribValue
|
|
|
39753
39783
|
throw new Error("No table found");
|
|
39754
39784
|
s = oe$1.get(i3), f3 = u.mapping.maps.length;
|
|
39755
39785
|
}
|
|
39756
|
-
|
|
39786
|
+
U0(u, s, i3, n, c3, d, f3) && p3(), wl$1(u, s, i3, n, l, c3, a, f3) && p3(), wl$1(u, s, i3, n, l, c3, d, f3) && p3(), vl$1(u, s, i3, n, a, d, l, f3) && p3(), vl$1(u, s, i3, n, a, d, c3, f3) && p3();
|
|
39757
39787
|
for (let h3 = a; h3 < d; h3++) {
|
|
39758
39788
|
const m = s.positionAt(h3, l, i3), g = s.positionAt(h3, c3, i3);
|
|
39759
39789
|
u.replace(
|
|
@@ -39769,7 +39799,7 @@ Actual: ` + p3.attribValue
|
|
|
39769
39799
|
)
|
|
39770
39800
|
), e(u);
|
|
39771
39801
|
}
|
|
39772
|
-
var
|
|
39802
|
+
var q0 = Ns({
|
|
39773
39803
|
ArrowLeft: Yr$1("horiz", -1),
|
|
39774
39804
|
ArrowRight: Yr$1("horiz", 1),
|
|
39775
39805
|
ArrowUp: Yr$1("vert", -1),
|
|
@@ -39832,13 +39862,13 @@ Actual: ` + p3.attribValue
|
|
|
39832
39862
|
) : false;
|
|
39833
39863
|
};
|
|
39834
39864
|
}
|
|
39835
|
-
function
|
|
39865
|
+
function K0(t, e) {
|
|
39836
39866
|
const n = t.state.doc, r = $n$2(n.resolve(e));
|
|
39837
39867
|
return r ? (t.dispatch(t.state.tr.setSelection(new X$1(r))), true) : false;
|
|
39838
39868
|
}
|
|
39839
|
-
function
|
|
39869
|
+
function X0(t, e, n) {
|
|
39840
39870
|
if (!Ye$2(t.state)) return false;
|
|
39841
|
-
let r =
|
|
39871
|
+
let r = H0(n);
|
|
39842
39872
|
const o = t.state.selection;
|
|
39843
39873
|
if (o instanceof X$1) {
|
|
39844
39874
|
r || (r = {
|
|
@@ -39854,7 +39884,7 @@ Actual: ` + p3.attribValue
|
|
|
39854
39884
|
o.$anchorCell.pos - s,
|
|
39855
39885
|
o.$headCell.pos - s
|
|
39856
39886
|
);
|
|
39857
|
-
return r =
|
|
39887
|
+
return r = W0(r, a.right - a.left, a.bottom - a.top), kl$1(t.state, t.dispatch, s, a, r), true;
|
|
39858
39888
|
} else if (r) {
|
|
39859
39889
|
const i3 = zo$1(t.state), s = i3.start(-1);
|
|
39860
39890
|
return kl$1(
|
|
@@ -39867,7 +39897,7 @@ Actual: ` + p3.attribValue
|
|
|
39867
39897
|
} else
|
|
39868
39898
|
return false;
|
|
39869
39899
|
}
|
|
39870
|
-
function
|
|
39900
|
+
function J0(t, e) {
|
|
39871
39901
|
var n;
|
|
39872
39902
|
if (e.ctrlKey || e.metaKey) return;
|
|
39873
39903
|
const r = Cl$1(t, e.target);
|
|
@@ -39930,7 +39960,7 @@ Actual: ` + p3.attribValue
|
|
|
39930
39960
|
});
|
|
39931
39961
|
return n && n ? $n$2(t.state.doc.resolve(n.pos)) : null;
|
|
39932
39962
|
}
|
|
39933
|
-
var
|
|
39963
|
+
var Y0 = class {
|
|
39934
39964
|
constructor(t, e) {
|
|
39935
39965
|
this.node = t, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty(
|
|
39936
39966
|
"--default-cell-min-width",
|
|
@@ -39976,11 +40006,11 @@ Actual: ` + p3.attribValue
|
|
|
39976
40006
|
var Ee$2 = new Cp$2(
|
|
39977
40007
|
"tableColumnResizing"
|
|
39978
40008
|
);
|
|
39979
|
-
function
|
|
40009
|
+
function G0({
|
|
39980
40010
|
handleWidth: t = 5,
|
|
39981
40011
|
cellMinWidth: e = 25,
|
|
39982
40012
|
defaultCellMinWidth: n = 100,
|
|
39983
|
-
View: r =
|
|
40013
|
+
View: r = Y0,
|
|
39984
40014
|
lastColumnResizable: o = true
|
|
39985
40015
|
} = {}) {
|
|
39986
40016
|
const i3 = new vp$2({
|
|
@@ -39989,7 +40019,7 @@ Actual: ` + p3.attribValue
|
|
|
39989
40019
|
init(s, a) {
|
|
39990
40020
|
var l, c3;
|
|
39991
40021
|
const d = (c3 = (l = i3.spec) == null ? void 0 : l.props) == null ? void 0 : c3.nodeViews, u = we(a.schema).table.name;
|
|
39992
|
-
return r && d && (d[u] = (f3, p3) => new r(f3, n, p3)), new
|
|
40022
|
+
return r && d && (d[u] = (f3, p3) => new r(f3, n, p3)), new Z0(-1, false);
|
|
39993
40023
|
},
|
|
39994
40024
|
apply(s, a) {
|
|
39995
40025
|
return a.apply(s);
|
|
@@ -40002,26 +40032,26 @@ Actual: ` + p3.attribValue
|
|
|
40002
40032
|
},
|
|
40003
40033
|
handleDOMEvents: {
|
|
40004
40034
|
mousemove: (s, a) => {
|
|
40005
|
-
|
|
40035
|
+
Q0(s, a, t, o);
|
|
40006
40036
|
},
|
|
40007
40037
|
mouseleave: (s) => {
|
|
40008
|
-
|
|
40038
|
+
ew(s);
|
|
40009
40039
|
},
|
|
40010
40040
|
mousedown: (s, a) => {
|
|
40011
|
-
|
|
40041
|
+
tw(s, a, e, n);
|
|
40012
40042
|
}
|
|
40013
40043
|
},
|
|
40014
40044
|
decorations: (s) => {
|
|
40015
40045
|
const a = Ee$2.getState(s);
|
|
40016
40046
|
if (a && a.activeHandle > -1)
|
|
40017
|
-
return
|
|
40047
|
+
return sw(s, a.activeHandle);
|
|
40018
40048
|
},
|
|
40019
40049
|
nodeViews: {}
|
|
40020
40050
|
}
|
|
40021
40051
|
});
|
|
40022
40052
|
return i3;
|
|
40023
40053
|
}
|
|
40024
|
-
var
|
|
40054
|
+
var Z0 = class ao2 {
|
|
40025
40055
|
constructor(e, n) {
|
|
40026
40056
|
this.activeHandle = e, this.dragging = n;
|
|
40027
40057
|
}
|
|
@@ -40038,11 +40068,11 @@ Actual: ` + p3.attribValue
|
|
|
40038
40068
|
return n;
|
|
40039
40069
|
}
|
|
40040
40070
|
};
|
|
40041
|
-
function
|
|
40071
|
+
function Q0(t, e, n, r) {
|
|
40042
40072
|
if (!t.editable) return;
|
|
40043
40073
|
const o = Ee$2.getState(t.state);
|
|
40044
40074
|
if (o && !o.dragging) {
|
|
40045
|
-
const i3 =
|
|
40075
|
+
const i3 = rw(e.target);
|
|
40046
40076
|
let s = -1;
|
|
40047
40077
|
if (i3) {
|
|
40048
40078
|
const { left: a, right: l } = i3.getBoundingClientRect();
|
|
@@ -40058,18 +40088,18 @@ Actual: ` + p3.attribValue
|
|
|
40058
40088
|
}
|
|
40059
40089
|
}
|
|
40060
40090
|
}
|
|
40061
|
-
function
|
|
40091
|
+
function ew(t) {
|
|
40062
40092
|
if (!t.editable) return;
|
|
40063
40093
|
const e = Ee$2.getState(t.state);
|
|
40064
40094
|
e && e.activeHandle > -1 && !e.dragging && bu$1(t, -1);
|
|
40065
40095
|
}
|
|
40066
|
-
function
|
|
40096
|
+
function tw(t, e, n, r) {
|
|
40067
40097
|
var o;
|
|
40068
40098
|
if (!t.editable) return false;
|
|
40069
40099
|
const i3 = (o = t.dom.ownerDocument.defaultView) != null ? o : window, s = Ee$2.getState(t.state);
|
|
40070
40100
|
if (!s || s.activeHandle == -1 || s.dragging)
|
|
40071
40101
|
return false;
|
|
40072
|
-
const a = t.state.doc.nodeAt(s.activeHandle), l =
|
|
40102
|
+
const a = t.state.doc.nodeAt(s.activeHandle), l = nw(t, s.activeHandle, a.attrs);
|
|
40073
40103
|
t.dispatch(
|
|
40074
40104
|
t.state.tr.setMeta(Ee$2, {
|
|
40075
40105
|
setDragging: { startX: e.clientX, startWidth: l }
|
|
@@ -40078,7 +40108,7 @@ Actual: ` + p3.attribValue
|
|
|
40078
40108
|
function c3(u) {
|
|
40079
40109
|
i3.removeEventListener("mouseup", c3), i3.removeEventListener("mousemove", d);
|
|
40080
40110
|
const f3 = Ee$2.getState(t.state);
|
|
40081
|
-
f3?.dragging && (
|
|
40111
|
+
f3?.dragging && (ow(
|
|
40082
40112
|
t,
|
|
40083
40113
|
f3.activeHandle,
|
|
40084
40114
|
xl$1(f3.dragging, u, n)
|
|
@@ -40106,7 +40136,7 @@ Actual: ` + p3.attribValue
|
|
|
40106
40136
|
r
|
|
40107
40137
|
), i3.addEventListener("mouseup", c3), i3.addEventListener("mousemove", d), e.preventDefault(), true;
|
|
40108
40138
|
}
|
|
40109
|
-
function
|
|
40139
|
+
function nw(t, e, { colspan: n, colwidth: r }) {
|
|
40110
40140
|
const o = r && r[r.length - 1];
|
|
40111
40141
|
if (o) return o;
|
|
40112
40142
|
const i3 = t.domAtPos(e);
|
|
@@ -40116,7 +40146,7 @@ Actual: ` + p3.attribValue
|
|
|
40116
40146
|
r[c3] && (a -= r[c3], l--);
|
|
40117
40147
|
return a / l;
|
|
40118
40148
|
}
|
|
40119
|
-
function
|
|
40149
|
+
function rw(t) {
|
|
40120
40150
|
for (; t && t.nodeName != "TD" && t.nodeName != "TH"; )
|
|
40121
40151
|
t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode;
|
|
40122
40152
|
return t;
|
|
@@ -40142,14 +40172,14 @@ Actual: ` + p3.attribValue
|
|
|
40142
40172
|
t.state.tr.setMeta(Ee$2, { setHandle: e })
|
|
40143
40173
|
);
|
|
40144
40174
|
}
|
|
40145
|
-
function
|
|
40175
|
+
function ow(t, e, n) {
|
|
40146
40176
|
const r = t.state.doc.resolve(e), o = r.node(-1), i3 = oe$1.get(o), s = r.start(-1), a = i3.colCount(r.pos - s) + r.nodeAfter.attrs.colspan - 1, l = t.state.tr;
|
|
40147
40177
|
for (let c3 = 0; c3 < i3.height; c3++) {
|
|
40148
40178
|
const d = c3 * i3.width + a;
|
|
40149
40179
|
if (c3 && i3.map[d] == i3.map[d - i3.width]) continue;
|
|
40150
40180
|
const u = i3.map[d], f3 = o.nodeAt(u).attrs, p3 = f3.colspan == 1 ? 0 : a - i3.colCount(u);
|
|
40151
40181
|
if (f3.colwidth && f3.colwidth[p3] == n) continue;
|
|
40152
|
-
const h3 = f3.colwidth ? f3.colwidth.slice() :
|
|
40182
|
+
const h3 = f3.colwidth ? f3.colwidth.slice() : iw(f3.colspan);
|
|
40153
40183
|
h3[p3] = n, l.setNodeMarkup(s + u, null, { ...f3, colwidth: h3 });
|
|
40154
40184
|
}
|
|
40155
40185
|
l.docChanged && t.dispatch(l);
|
|
@@ -40168,10 +40198,10 @@ Actual: ` + p3.attribValue
|
|
|
40168
40198
|
n
|
|
40169
40199
|
);
|
|
40170
40200
|
}
|
|
40171
|
-
function
|
|
40201
|
+
function iw(t) {
|
|
40172
40202
|
return Array(t).fill(0);
|
|
40173
40203
|
}
|
|
40174
|
-
function
|
|
40204
|
+
function sw(t, e) {
|
|
40175
40205
|
var n;
|
|
40176
40206
|
const r = [], o = t.doc.resolve(e), i3 = o.node(-1);
|
|
40177
40207
|
if (!i3)
|
|
@@ -40194,7 +40224,7 @@ Actual: ` + p3.attribValue
|
|
|
40194
40224
|
}
|
|
40195
40225
|
return F.create(t.doc, r);
|
|
40196
40226
|
}
|
|
40197
|
-
function
|
|
40227
|
+
function aw({
|
|
40198
40228
|
allowTableNodeSelection: t = false
|
|
40199
40229
|
} = {}) {
|
|
40200
40230
|
return new vp$2({
|
|
@@ -40215,19 +40245,19 @@ Actual: ` + p3.attribValue
|
|
|
40215
40245
|
}
|
|
40216
40246
|
},
|
|
40217
40247
|
props: {
|
|
40218
|
-
decorations:
|
|
40248
|
+
decorations: v0,
|
|
40219
40249
|
handleDOMEvents: {
|
|
40220
|
-
mousedown:
|
|
40250
|
+
mousedown: J0
|
|
40221
40251
|
},
|
|
40222
40252
|
createSelectionBetween(e) {
|
|
40223
40253
|
return Et.getState(e.state) != null ? e.state.selection : null;
|
|
40224
40254
|
},
|
|
40225
|
-
handleTripleClick:
|
|
40226
|
-
handleKeyDown:
|
|
40227
|
-
handlePaste:
|
|
40255
|
+
handleTripleClick: K0,
|
|
40256
|
+
handleKeyDown: q0,
|
|
40257
|
+
handlePaste: X0
|
|
40228
40258
|
},
|
|
40229
40259
|
appendTransaction(e, n, r) {
|
|
40230
|
-
return
|
|
40260
|
+
return S0(
|
|
40231
40261
|
r,
|
|
40232
40262
|
hu$1(r, n),
|
|
40233
40263
|
t
|
|
@@ -40235,9 +40265,9 @@ Actual: ` + p3.attribValue
|
|
|
40235
40265
|
}
|
|
40236
40266
|
});
|
|
40237
40267
|
}
|
|
40238
|
-
const
|
|
40268
|
+
const lw = (t) => t instanceof X$1, Zr$1 = ({ editor: t }) => {
|
|
40239
40269
|
const { selection: e } = t.state;
|
|
40240
|
-
if (!
|
|
40270
|
+
if (!lw(e)) return false;
|
|
40241
40271
|
let n = 0;
|
|
40242
40272
|
return Bo$1(e.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
|
|
40243
40273
|
if (i3.type.name === "table") return false;
|
|
@@ -40339,27 +40369,27 @@ Actual: ` + p3.attribValue
|
|
|
40339
40369
|
addCommands() {
|
|
40340
40370
|
return {
|
|
40341
40371
|
insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: n = false } = {}) => ({ tr: r, dispatch: o, editor: i3 }) => {
|
|
40342
|
-
const s =
|
|
40372
|
+
const s = d0(i3.schema, t, e, n);
|
|
40343
40373
|
if (o) {
|
|
40344
40374
|
const a = r.selection.from + 1;
|
|
40345
40375
|
r.replaceSelectionWith(s).scrollIntoView().setSelection(tt$3.near(r.doc.resolve(a)));
|
|
40346
40376
|
}
|
|
40347
40377
|
return true;
|
|
40348
40378
|
},
|
|
40349
|
-
deleteTable: () => ({ state: t, dispatch: e }) =>
|
|
40350
|
-
addColumnBefore: () => ({ state: t, dispatch: e }) =>
|
|
40351
|
-
addColumnAfter: () => ({ state: t, dispatch: e }) =>
|
|
40352
|
-
deleteColumn: () => ({ state: t, dispatch: e }) =>
|
|
40353
|
-
addRowBefore: () => ({ state: t, dispatch: e }) =>
|
|
40354
|
-
addRowAfter: () => ({ state: t, dispatch: e }) =>
|
|
40355
|
-
deleteRow: () => ({ state: t, dispatch: e }) =>
|
|
40379
|
+
deleteTable: () => ({ state: t, dispatch: e }) => $0(t, e),
|
|
40380
|
+
addColumnBefore: () => ({ state: t, dispatch: e }) => A0(t, e),
|
|
40381
|
+
addColumnAfter: () => ({ state: t, dispatch: e }) => O0(t, e),
|
|
40382
|
+
deleteColumn: () => ({ state: t, dispatch: e }) => D0(t, e),
|
|
40383
|
+
addRowBefore: () => ({ state: t, dispatch: e }) => E0(t, e),
|
|
40384
|
+
addRowAfter: () => ({ state: t, dispatch: e }) => I0(t, e),
|
|
40385
|
+
deleteRow: () => ({ state: t, dispatch: e }) => R0(t, e),
|
|
40356
40386
|
mergeCells: () => ({ state: t, dispatch: e }) => ml$1(t, e),
|
|
40357
40387
|
splitCell: () => ({ state: t, dispatch: e }) => gl$1(t, e),
|
|
40358
40388
|
mergeOrSplit: () => ({ state: t, dispatch: e }) => ml$1(t, e) ? true : gl$1(t, e),
|
|
40359
40389
|
toggleHeaderColumn: () => ({ state: t, dispatch: e }) => vr$1("column")(t, e),
|
|
40360
40390
|
toggleHeaderRow: () => ({ state: t, dispatch: e }) => vr$1("row")(t, e),
|
|
40361
|
-
toggleHeaderCell: () => ({ state: t, dispatch: e }) =>
|
|
40362
|
-
setCellAttr: (t, e) => ({ state: n, dispatch: r }) =>
|
|
40391
|
+
toggleHeaderCell: () => ({ state: t, dispatch: e }) => _0(t, e),
|
|
40392
|
+
setCellAttr: (t, e) => ({ state: n, dispatch: r }) => B0(t, e)(n, r),
|
|
40363
40393
|
goToNextCell: () => ({ state: t, dispatch: e }) => bl$1(1)(t, e),
|
|
40364
40394
|
goToPreviousCell: () => ({ state: t, dispatch: e }) => bl$1(-1)(t, e),
|
|
40365
40395
|
fixTables: () => ({ state: t, dispatch: e }) => (e && hu$1(t), true),
|
|
@@ -40396,17 +40426,17 @@ Actual: ` + p3.attribValue
|
|
|
40396
40426
|
addPmPlugins() {
|
|
40397
40427
|
return [
|
|
40398
40428
|
...this.options.resizable && this.editor.isEditable ? [
|
|
40399
|
-
|
|
40429
|
+
G0({
|
|
40400
40430
|
handleWidth: this.options.handleWidth,
|
|
40401
40431
|
cellMinWidth: this.options.cellMinWidth,
|
|
40402
40432
|
defaultCellMinWidth: this.options.cellMinWidth,
|
|
40403
40433
|
lastColumnResizable: this.options.lastColumnResizable,
|
|
40404
|
-
View:
|
|
40434
|
+
View: c0({
|
|
40405
40435
|
editor: this.editor
|
|
40406
40436
|
})
|
|
40407
40437
|
})
|
|
40408
40438
|
] : [],
|
|
40409
|
-
|
|
40439
|
+
aw({
|
|
40410
40440
|
allowTableNodeSelection: this.options.allowTableNodeSelection
|
|
40411
40441
|
})
|
|
40412
40442
|
];
|
|
@@ -40564,7 +40594,7 @@ Actual: ` + p3.attribValue
|
|
|
40564
40594
|
}
|
|
40565
40595
|
});
|
|
40566
40596
|
var yt$1, Jt$1;
|
|
40567
|
-
class
|
|
40597
|
+
class cw {
|
|
40568
40598
|
constructor(e) {
|
|
40569
40599
|
ft(this, yt$1);
|
|
40570
40600
|
P(this, "editor");
|
|
@@ -40731,11 +40761,11 @@ Actual: ` + p3.attribValue
|
|
|
40731
40761
|
});
|
|
40732
40762
|
}, 0);
|
|
40733
40763
|
}
|
|
40734
|
-
const { findChildren:
|
|
40764
|
+
const { findChildren: dw } = Ad$1;
|
|
40735
40765
|
function Pt$1(t) {
|
|
40736
|
-
return
|
|
40766
|
+
return dw(t.doc, (n) => n.type.name === "fieldAnnotation");
|
|
40737
40767
|
}
|
|
40738
|
-
const
|
|
40768
|
+
const uw = (t = {}) => {
|
|
40739
40769
|
let { editor: e, annotationClass: n } = t;
|
|
40740
40770
|
return new vp$2({
|
|
40741
40771
|
key: new Cp$2("fieldAnnotation"),
|
|
@@ -40753,7 +40783,7 @@ Actual: ` + p3.attribValue
|
|
|
40753
40783
|
let a = o?.dataTransfer.getData("fieldAnnotation");
|
|
40754
40784
|
if (a) {
|
|
40755
40785
|
if (t.handleDropOutside)
|
|
40756
|
-
|
|
40786
|
+
fw({
|
|
40757
40787
|
fieldAnnotation: a,
|
|
40758
40788
|
editor: e,
|
|
40759
40789
|
view: r,
|
|
@@ -40810,7 +40840,7 @@ Actual: ` + p3.attribValue
|
|
|
40810
40840
|
///
|
|
40811
40841
|
});
|
|
40812
40842
|
};
|
|
40813
|
-
function
|
|
40843
|
+
function fw({ fieldAnnotation: t, editor: e, view: n, event: r }) {
|
|
40814
40844
|
let o;
|
|
40815
40845
|
try {
|
|
40816
40846
|
o = JSON.parse(t).sourceField;
|
|
@@ -40828,7 +40858,7 @@ Actual: ` + p3.attribValue
|
|
|
40828
40858
|
pos: i3.pos
|
|
40829
40859
|
});
|
|
40830
40860
|
}
|
|
40831
|
-
function
|
|
40861
|
+
function pw(t, e) {
|
|
40832
40862
|
return Pt$1(e).map(({ node: r, pos: o }) => {
|
|
40833
40863
|
let i3 = xd$1(t, o, o + r.nodeSize);
|
|
40834
40864
|
return {
|
|
@@ -40838,23 +40868,23 @@ Actual: ` + p3.attribValue
|
|
|
40838
40868
|
};
|
|
40839
40869
|
});
|
|
40840
40870
|
}
|
|
40841
|
-
function
|
|
40871
|
+
function hw(t, e) {
|
|
40842
40872
|
let n = Pt$1(e), r = [];
|
|
40843
40873
|
return n.forEach((o) => {
|
|
40844
40874
|
t(o.node) && r.push(o);
|
|
40845
40875
|
}), r;
|
|
40846
40876
|
}
|
|
40847
|
-
const { findChildren:
|
|
40877
|
+
const { findChildren: mw } = Ad$1;
|
|
40848
40878
|
function lo$2(t, e) {
|
|
40849
|
-
return
|
|
40879
|
+
return mw(e.doc, (r) => {
|
|
40850
40880
|
let o = r.type.name === "fieldAnnotation";
|
|
40851
40881
|
return Array.isArray(t) ? o && t.includes(r.attrs.fieldId) : o && r.attrs.fieldId === t;
|
|
40852
40882
|
});
|
|
40853
40883
|
}
|
|
40854
|
-
function
|
|
40855
|
-
return
|
|
40884
|
+
function gw(t, e) {
|
|
40885
|
+
return yw(e.doc, (r) => r.type.name === "fieldAnnotation" && r.attrs.fieldId === t);
|
|
40856
40886
|
}
|
|
40857
|
-
function
|
|
40887
|
+
function yw(t, e) {
|
|
40858
40888
|
let n = null;
|
|
40859
40889
|
return t.descendants((r, o) => {
|
|
40860
40890
|
if (e(r) && (n = { node: r, pos: o }), n) return false;
|
|
@@ -40869,74 +40899,74 @@ Actual: ` + p3.attribValue
|
|
|
40869
40899
|
});
|
|
40870
40900
|
}), r;
|
|
40871
40901
|
}
|
|
40872
|
-
const
|
|
40902
|
+
const Xk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40873
40903
|
__proto__: null,
|
|
40874
|
-
findFieldAnnotations:
|
|
40904
|
+
findFieldAnnotations: hw,
|
|
40875
40905
|
findFieldAnnotationsBetween: co$2,
|
|
40876
40906
|
findFieldAnnotationsByFieldId: lo$2,
|
|
40877
|
-
findFirstFieldAnnotationByFieldId:
|
|
40907
|
+
findFirstFieldAnnotationByFieldId: gw,
|
|
40878
40908
|
findRemovedFieldAnnotations: xu$1,
|
|
40879
40909
|
getAllFieldAnnotations: Pt$1,
|
|
40880
|
-
getAllFieldAnnotationsWithRect:
|
|
40910
|
+
getAllFieldAnnotationsWithRect: pw,
|
|
40881
40911
|
trackFieldAnnotationsDeletion: Mu$1
|
|
40882
40912
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
40883
40913
|
function ls$1(t, e, n) {
|
|
40884
40914
|
return Math.min(Math.max(t, n), e);
|
|
40885
40915
|
}
|
|
40886
|
-
class
|
|
40916
|
+
class bw extends Error {
|
|
40887
40917
|
constructor(e) {
|
|
40888
40918
|
super(`Failed to parse color: "${e}"`);
|
|
40889
40919
|
}
|
|
40890
40920
|
}
|
|
40891
|
-
var Qn$2 =
|
|
40892
|
-
function
|
|
40921
|
+
var Qn$2 = bw;
|
|
40922
|
+
function ww(t) {
|
|
40893
40923
|
if (typeof t != "string") throw new Qn$2(t);
|
|
40894
40924
|
if (t.trim().toLowerCase() === "transparent") return [0, 0, 0, 0];
|
|
40895
40925
|
let e = t.trim();
|
|
40896
|
-
e =
|
|
40897
|
-
const n =
|
|
40926
|
+
e = Ow.test(t) ? Cw(t) : t;
|
|
40927
|
+
const n = Sw.exec(e);
|
|
40898
40928
|
if (n) {
|
|
40899
40929
|
const s = Array.from(n).slice(1);
|
|
40900
40930
|
return [...s.slice(0, 3).map((a) => parseInt(kr(a, 2), 16)), parseInt(kr(s[3] || "f", 2), 16) / 255];
|
|
40901
40931
|
}
|
|
40902
|
-
const r =
|
|
40932
|
+
const r = xw.exec(e);
|
|
40903
40933
|
if (r) {
|
|
40904
40934
|
const s = Array.from(r).slice(1);
|
|
40905
40935
|
return [...s.slice(0, 3).map((a) => parseInt(a, 16)), parseInt(s[3] || "ff", 16) / 255];
|
|
40906
40936
|
}
|
|
40907
|
-
const o =
|
|
40937
|
+
const o = Mw.exec(e);
|
|
40908
40938
|
if (o) {
|
|
40909
40939
|
const s = Array.from(o).slice(1);
|
|
40910
40940
|
return [...s.slice(0, 3).map((a) => parseInt(a, 10)), parseFloat(s[3] || "1")];
|
|
40911
40941
|
}
|
|
40912
|
-
const i3 =
|
|
40942
|
+
const i3 = Aw.exec(e);
|
|
40913
40943
|
if (i3) {
|
|
40914
40944
|
const [s, a, l, c3] = Array.from(i3).slice(1).map(parseFloat);
|
|
40915
40945
|
if (ls$1(0, 100, a) !== a) throw new Qn$2(t);
|
|
40916
40946
|
if (ls$1(0, 100, l) !== l) throw new Qn$2(t);
|
|
40917
|
-
return [...
|
|
40947
|
+
return [...Tw(s, a, l), Number.isNaN(c3) ? 1 : c3];
|
|
40918
40948
|
}
|
|
40919
40949
|
throw new Qn$2(t);
|
|
40920
40950
|
}
|
|
40921
|
-
function
|
|
40951
|
+
function vw(t) {
|
|
40922
40952
|
let e = 5381, n = t.length;
|
|
40923
40953
|
for (; n; )
|
|
40924
40954
|
e = e * 33 ^ t.charCodeAt(--n);
|
|
40925
40955
|
return (e >>> 0) % 2341;
|
|
40926
40956
|
}
|
|
40927
|
-
const Al$1 = (t) => parseInt(t.replace(/_/g, ""), 36),
|
|
40957
|
+
const Al$1 = (t) => parseInt(t.replace(/_/g, ""), 36), kw = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t, e) => {
|
|
40928
40958
|
const n = Al$1(e.substring(0, 3)), r = Al$1(e.substring(3)).toString(16);
|
|
40929
40959
|
let o = "";
|
|
40930
40960
|
for (let i3 = 0; i3 < 6 - r.length; i3++)
|
|
40931
40961
|
o += "0";
|
|
40932
40962
|
return t[n] = `${o}${r}`, t;
|
|
40933
40963
|
}, {});
|
|
40934
|
-
function
|
|
40935
|
-
const e = t.toLowerCase().trim(), n =
|
|
40964
|
+
function Cw(t) {
|
|
40965
|
+
const e = t.toLowerCase().trim(), n = kw[vw(e)];
|
|
40936
40966
|
if (!n) throw new Qn$2(t);
|
|
40937
40967
|
return `#${n}`;
|
|
40938
40968
|
}
|
|
40939
|
-
const kr = (t, e) => Array.from(Array(e)).map(() => t).join(""),
|
|
40969
|
+
const kr = (t, e) => Array.from(Array(e)).map(() => t).join(""), Sw = new RegExp(`^#${kr("([a-f0-9])", 3)}([a-f0-9])?$`, "i"), xw = new RegExp(`^#${kr("([a-f0-9]{2})", 3)}([a-f0-9]{2})?$`, "i"), Mw = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${kr(",\\s*(\\d+)\\s*", 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, "i"), Aw = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i, Ow = /^[a-z]+$/i, Ol$1 = (t) => Math.round(t * 255), Tw = (t, e, n) => {
|
|
40940
40970
|
let r = n / 100;
|
|
40941
40971
|
if (e === 0)
|
|
40942
40972
|
return [r, r, r].map(Ol$1);
|
|
@@ -40946,8 +40976,8 @@ Actual: ` + p3.attribValue
|
|
|
40946
40976
|
const d = r - i3 / 2, u = a + d, f3 = l + d, p3 = c3 + d;
|
|
40947
40977
|
return [u, f3, p3].map(Ol$1);
|
|
40948
40978
|
};
|
|
40949
|
-
function
|
|
40950
|
-
const [e, n, r, o] =
|
|
40979
|
+
function Dw(t) {
|
|
40980
|
+
const [e, n, r, o] = ww(t);
|
|
40951
40981
|
let i3 = (s) => {
|
|
40952
40982
|
const a = ls$1(0, 255, s).toString(16);
|
|
40953
40983
|
return a.length === 1 ? `0${a}` : a;
|
|
@@ -41037,7 +41067,7 @@ Actual: ` + p3.attribValue
|
|
|
41037
41067
|
parseDOM: (t) => t.getAttribute("data-field-color") || t.style.backgroundColor || null,
|
|
41038
41068
|
renderDOM: (t) => {
|
|
41039
41069
|
if (!t.fieldColor) return {};
|
|
41040
|
-
let e =
|
|
41070
|
+
let e = Dw(t.fieldColor);
|
|
41041
41071
|
return e.slice(1).length === 6 && (e = `${e}33`), t.highlighted === false ? {
|
|
41042
41072
|
"data-field-color": e
|
|
41043
41073
|
} : {
|
|
@@ -41221,7 +41251,7 @@ Actual: ` + p3.attribValue
|
|
|
41221
41251
|
if (o) {
|
|
41222
41252
|
let { schema: a } = r, l = s.mapping.map(t), d = i3.doc.resolve(l).marks();
|
|
41223
41253
|
d = d.length ? [...d] : null;
|
|
41224
|
-
let u =
|
|
41254
|
+
let u = Nw(d), f3 = a.nodes[this.name].create({ ...e, ...u }, null, null);
|
|
41225
41255
|
i3.tr.insert(l, f3).setSelection(ve$1.near(s.doc.resolve(l + f3.nodeSize))), n && this.editor.view.focus();
|
|
41226
41256
|
}
|
|
41227
41257
|
return true;
|
|
@@ -41420,7 +41450,7 @@ Actual: ` + p3.attribValue
|
|
|
41420
41450
|
};
|
|
41421
41451
|
},
|
|
41422
41452
|
addNodeView() {
|
|
41423
|
-
return (t) => new
|
|
41453
|
+
return (t) => new cw({
|
|
41424
41454
|
...t,
|
|
41425
41455
|
annotationClass: this.options.annotationClass,
|
|
41426
41456
|
annotationContentClass: this.options.annotationContentClass,
|
|
@@ -41429,7 +41459,7 @@ Actual: ` + p3.attribValue
|
|
|
41429
41459
|
},
|
|
41430
41460
|
addPmPlugins() {
|
|
41431
41461
|
return [
|
|
41432
|
-
|
|
41462
|
+
uw({
|
|
41433
41463
|
editor: this.editor,
|
|
41434
41464
|
annotationClass: this.options.annotationClass,
|
|
41435
41465
|
handleDropOutside: this.options.handleDropOutside
|
|
@@ -41437,7 +41467,7 @@ Actual: ` + p3.attribValue
|
|
|
41437
41467
|
];
|
|
41438
41468
|
}
|
|
41439
41469
|
});
|
|
41440
|
-
function
|
|
41470
|
+
function Nw(t) {
|
|
41441
41471
|
if (!t)
|
|
41442
41472
|
return {};
|
|
41443
41473
|
let e = {
|
|
@@ -41454,7 +41484,7 @@ Actual: ` + p3.attribValue
|
|
|
41454
41484
|
}
|
|
41455
41485
|
return e;
|
|
41456
41486
|
}
|
|
41457
|
-
const Ao$1 = new Cp$2("ImagePlaceholder"),
|
|
41487
|
+
const Ao$1 = new Cp$2("ImagePlaceholder"), Ew = (t = {}) => new vp$2({
|
|
41458
41488
|
key: Ao$1,
|
|
41459
41489
|
state: {
|
|
41460
41490
|
init() {
|
|
@@ -41477,7 +41507,7 @@ Actual: ` + p3.attribValue
|
|
|
41477
41507
|
return this.getState(e);
|
|
41478
41508
|
}
|
|
41479
41509
|
}
|
|
41480
|
-
}),
|
|
41510
|
+
}), Jk = (t, e) => {
|
|
41481
41511
|
let r = Ao$1.getState(t)?.find(null, null, (o) => o.id === e);
|
|
41482
41512
|
return r?.length ? r[0].from : null;
|
|
41483
41513
|
}, Tu$1 = J$1.create({
|
|
@@ -41560,9 +41590,9 @@ Actual: ` + p3.attribValue
|
|
|
41560
41590
|
};
|
|
41561
41591
|
},
|
|
41562
41592
|
addPmPlugins() {
|
|
41563
|
-
return [
|
|
41593
|
+
return [Ew()];
|
|
41564
41594
|
}
|
|
41565
|
-
}),
|
|
41595
|
+
}), Iw = J$1.create({
|
|
41566
41596
|
name: "bookmarkStart",
|
|
41567
41597
|
group: "inline",
|
|
41568
41598
|
content: "inline*",
|
|
@@ -41625,7 +41655,7 @@ Actual: ` + p3.attribValue
|
|
|
41625
41655
|
email: { default: null }
|
|
41626
41656
|
};
|
|
41627
41657
|
}
|
|
41628
|
-
}),
|
|
41658
|
+
}), Pw = J$1.create({
|
|
41629
41659
|
name: "page-number",
|
|
41630
41660
|
group: "inline",
|
|
41631
41661
|
inline: true,
|
|
@@ -41643,7 +41673,7 @@ Actual: ` + p3.attribValue
|
|
|
41643
41673
|
renderDOM({ htmlAttributes: t }) {
|
|
41644
41674
|
return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41645
41675
|
}
|
|
41646
|
-
}),
|
|
41676
|
+
}), Rw = J$1.create({
|
|
41647
41677
|
name: "total-page-number",
|
|
41648
41678
|
group: "inline",
|
|
41649
41679
|
inline: true,
|
|
@@ -41910,22 +41940,22 @@ Actual: ` + p3.attribValue
|
|
|
41910
41940
|
toggleLink: ({ href: t }) => ({ commands: e }) => t ? e.setLink({ href: t }) : e.unsetLink()
|
|
41911
41941
|
};
|
|
41912
41942
|
}
|
|
41913
|
-
}),
|
|
41943
|
+
}), Lw = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
41914
41944
|
function Tl$1(t, e) {
|
|
41915
41945
|
const n = ["http", "https", "mailto"];
|
|
41916
41946
|
return e && e.forEach((r) => {
|
|
41917
41947
|
const o = typeof r == "string" ? r : r.scheme;
|
|
41918
41948
|
o && n.push(o);
|
|
41919
|
-
}), !t || t.replace(
|
|
41949
|
+
}), !t || t.replace(Lw, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
|
|
41920
41950
|
}
|
|
41921
|
-
const
|
|
41951
|
+
const Fw = "track-insert", Bu$1 = Le$1.create({
|
|
41922
41952
|
name: yr$2,
|
|
41923
41953
|
group: "track",
|
|
41924
41954
|
inclusive: false,
|
|
41925
41955
|
addOptions() {
|
|
41926
41956
|
return {
|
|
41927
41957
|
htmlAttributes: {
|
|
41928
|
-
class:
|
|
41958
|
+
class: Fw
|
|
41929
41959
|
}
|
|
41930
41960
|
};
|
|
41931
41961
|
},
|
|
@@ -41967,14 +41997,14 @@ Actual: ` + p3.attribValue
|
|
|
41967
41997
|
renderDOM({ htmlAttributes: t }) {
|
|
41968
41998
|
return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
41969
41999
|
}
|
|
41970
|
-
}),
|
|
42000
|
+
}), Bw = "track-delete", zu$1 = Le$1.create({
|
|
41971
42001
|
name: Ri$2,
|
|
41972
42002
|
group: "track",
|
|
41973
42003
|
inclusive: false,
|
|
41974
42004
|
addOptions() {
|
|
41975
42005
|
return {
|
|
41976
42006
|
htmlAttributes: {
|
|
41977
|
-
class:
|
|
42007
|
+
class: Bw
|
|
41978
42008
|
}
|
|
41979
42009
|
};
|
|
41980
42010
|
},
|
|
@@ -42025,28 +42055,28 @@ Actual: ` + p3.attribValue
|
|
|
42025
42055
|
return [];
|
|
42026
42056
|
}
|
|
42027
42057
|
return Array.isArray(e) ? e.filter((n) => Object.hasOwn(n, "type") && Object.hasOwn(n, "attrs")) : [];
|
|
42028
|
-
},
|
|
42058
|
+
}, Yk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42029
42059
|
__proto__: null,
|
|
42030
42060
|
addMarkStep: Id$1,
|
|
42031
|
-
documentHelpers:
|
|
42061
|
+
documentHelpers: Xy,
|
|
42032
42062
|
findTrackedMarkBetween: Fs,
|
|
42033
42063
|
getTrackChanges: zs,
|
|
42034
42064
|
markDeletion: Sd$1,
|
|
42035
42065
|
markInsertion: Cd$1,
|
|
42036
|
-
markWrapping:
|
|
42066
|
+
markWrapping: lb,
|
|
42037
42067
|
parseFormatList: ds$1,
|
|
42038
42068
|
removeMarkStep: Pd$1,
|
|
42039
|
-
replaceAroundStep:
|
|
42069
|
+
replaceAroundStep: cb,
|
|
42040
42070
|
replaceStep: Ed$1,
|
|
42041
42071
|
trackedTransaction: Rd$1
|
|
42042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
42072
|
+
}, Symbol.toStringTag, { value: "Module" })), zw = "track-format", _u$1 = Le$1.create({
|
|
42043
42073
|
name: Pi$2,
|
|
42044
42074
|
group: "track",
|
|
42045
42075
|
inclusive: false,
|
|
42046
42076
|
addOptions() {
|
|
42047
42077
|
return {
|
|
42048
42078
|
htmlAttributes: {
|
|
42049
|
-
class:
|
|
42079
|
+
class: zw
|
|
42050
42080
|
}
|
|
42051
42081
|
};
|
|
42052
42082
|
},
|
|
@@ -42110,7 +42140,7 @@ Actual: ` + p3.attribValue
|
|
|
42110
42140
|
renderDOM({ htmlAttributes: t }) {
|
|
42111
42141
|
return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
42112
42142
|
}
|
|
42113
|
-
}),
|
|
42143
|
+
}), _w = Q$1.create({
|
|
42114
42144
|
name: "trackChanges",
|
|
42115
42145
|
addCommands() {
|
|
42116
42146
|
return {
|
|
@@ -42272,7 +42302,7 @@ Actual: ` + p3.attribValue
|
|
|
42272
42302
|
};
|
|
42273
42303
|
},
|
|
42274
42304
|
addPmPlugins() {
|
|
42275
|
-
return [
|
|
42305
|
+
return [Jy()];
|
|
42276
42306
|
}
|
|
42277
42307
|
}), Dl$1 = (t, e) => {
|
|
42278
42308
|
const n = zs(t), r = n.findIndex(({ mark: l }) => l.attrs.id === e);
|
|
@@ -42280,7 +42310,7 @@ Actual: ` + p3.attribValue
|
|
|
42280
42310
|
const o = n[r], i3 = n[r - 1], s = n[r + 1];
|
|
42281
42311
|
let a;
|
|
42282
42312
|
return i3 && o.start === i3.end ? a = i3 : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
|
|
42283
|
-
},
|
|
42313
|
+
}, Vw = Q$1.create({
|
|
42284
42314
|
name: "placeholder",
|
|
42285
42315
|
addOptions() {
|
|
42286
42316
|
return {
|
|
@@ -42310,11 +42340,11 @@ Actual: ` + p3.attribValue
|
|
|
42310
42340
|
})];
|
|
42311
42341
|
}
|
|
42312
42342
|
});
|
|
42313
|
-
var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end",
|
|
42343
|
+
var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents", Vu$1 = "viewport", Jn$2 = "popper", Hw = "reference", Nl$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
|
|
42314
42344
|
return t.concat([e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42315
42345
|
}, []), $u$1 = /* @__PURE__ */ [].concat(Ir, [js]).reduce(function(t, e) {
|
|
42316
42346
|
return t.concat([e, e + "-" + Pn$2, e + "-" + Cr$1]);
|
|
42317
|
-
}, []),
|
|
42347
|
+
}, []), jw = "beforeRead", Ww = "read", Uw = "afterRead", qw = "beforeMain", Kw = "main", Xw = "afterMain", Jw = "beforeWrite", Yw = "write", Gw = "afterWrite", Zw = [jw, Ww, Uw, qw, Kw, Xw, Jw, Yw, Gw];
|
|
42318
42348
|
function st$1(t) {
|
|
42319
42349
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
42320
42350
|
}
|
|
@@ -42327,7 +42357,7 @@ Actual: ` + p3.attribValue
|
|
|
42327
42357
|
}
|
|
42328
42358
|
return t;
|
|
42329
42359
|
}
|
|
42330
|
-
function
|
|
42360
|
+
function un$2(t) {
|
|
42331
42361
|
var e = Re$1(t).Element;
|
|
42332
42362
|
return t instanceof e || t instanceof Element;
|
|
42333
42363
|
}
|
|
@@ -42341,7 +42371,7 @@ Actual: ` + p3.attribValue
|
|
|
42341
42371
|
var e = Re$1(t).ShadowRoot;
|
|
42342
42372
|
return t instanceof e || t instanceof ShadowRoot;
|
|
42343
42373
|
}
|
|
42344
|
-
function
|
|
42374
|
+
function Qw(t) {
|
|
42345
42375
|
var e = t.state;
|
|
42346
42376
|
Object.keys(e.elements).forEach(function(n) {
|
|
42347
42377
|
var r = e.styles[n] || {}, o = e.attributes[n] || {}, i3 = e.elements[n];
|
|
@@ -42351,7 +42381,7 @@ Actual: ` + p3.attribValue
|
|
|
42351
42381
|
}));
|
|
42352
42382
|
});
|
|
42353
42383
|
}
|
|
42354
|
-
function
|
|
42384
|
+
function ev(t) {
|
|
42355
42385
|
var e = t.state, n = {
|
|
42356
42386
|
popper: {
|
|
42357
42387
|
position: e.options.strategy,
|
|
@@ -42379,14 +42409,14 @@ Actual: ` + p3.attribValue
|
|
|
42379
42409
|
name: "applyStyles",
|
|
42380
42410
|
enabled: true,
|
|
42381
42411
|
phase: "write",
|
|
42382
|
-
fn:
|
|
42383
|
-
effect:
|
|
42412
|
+
fn: Qw,
|
|
42413
|
+
effect: ev,
|
|
42384
42414
|
requires: ["computeStyles"]
|
|
42385
42415
|
};
|
|
42386
42416
|
function rt$1(t) {
|
|
42387
42417
|
return t.split("-")[0];
|
|
42388
42418
|
}
|
|
42389
|
-
var
|
|
42419
|
+
var sn$2 = Math.max, Oo$1 = Math.min, Rn$2 = Math.round;
|
|
42390
42420
|
function us$1() {
|
|
42391
42421
|
var t = navigator.userAgentData;
|
|
42392
42422
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -42400,7 +42430,7 @@ Actual: ` + p3.attribValue
|
|
|
42400
42430
|
e === void 0 && (e = false), n === void 0 && (n = false);
|
|
42401
42431
|
var r = t.getBoundingClientRect(), o = 1, i3 = 1;
|
|
42402
42432
|
e && je$1(t) && (o = t.offsetWidth > 0 && Rn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Rn$2(r.height) / t.offsetHeight || 1);
|
|
42403
|
-
var s =
|
|
42433
|
+
var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !ju$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
|
|
42404
42434
|
return {
|
|
42405
42435
|
width: u,
|
|
42406
42436
|
height: f3,
|
|
@@ -42438,11 +42468,11 @@ Actual: ` + p3.attribValue
|
|
|
42438
42468
|
function Ct$1(t) {
|
|
42439
42469
|
return Re$1(t).getComputedStyle(t);
|
|
42440
42470
|
}
|
|
42441
|
-
function
|
|
42471
|
+
function tv(t) {
|
|
42442
42472
|
return ["table", "td", "th"].indexOf(st$1(t)) >= 0;
|
|
42443
42473
|
}
|
|
42444
42474
|
function Wt$2(t) {
|
|
42445
|
-
return ((
|
|
42475
|
+
return ((un$2(t) ? t.ownerDocument : (
|
|
42446
42476
|
// $FlowFixMe[prop-missing]
|
|
42447
42477
|
t.document
|
|
42448
42478
|
)) || window.document).documentElement;
|
|
@@ -42463,7 +42493,7 @@ Actual: ` + p3.attribValue
|
|
|
42463
42493
|
return !je$1(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
42464
42494
|
Ct$1(t).position === "fixed" ? null : t.offsetParent;
|
|
42465
42495
|
}
|
|
42466
|
-
function
|
|
42496
|
+
function nv(t) {
|
|
42467
42497
|
var e = /firefox/i.test(us$1()), n = /Trident/i.test(us$1());
|
|
42468
42498
|
if (n && je$1(t)) {
|
|
42469
42499
|
var r = Ct$1(t);
|
|
@@ -42480,17 +42510,17 @@ Actual: ` + p3.attribValue
|
|
|
42480
42510
|
return null;
|
|
42481
42511
|
}
|
|
42482
42512
|
function Pr(t) {
|
|
42483
|
-
for (var e = Re$1(t), n = El$1(t); n &&
|
|
42513
|
+
for (var e = Re$1(t), n = El$1(t); n && tv(n) && Ct$1(n).position === "static"; )
|
|
42484
42514
|
n = El$1(n);
|
|
42485
|
-
return n && (st$1(n) === "html" || st$1(n) === "body" && Ct$1(n).position === "static") ? e : n ||
|
|
42515
|
+
return n && (st$1(n) === "html" || st$1(n) === "body" && Ct$1(n).position === "static") ? e : n || nv(t) || e;
|
|
42486
42516
|
}
|
|
42487
42517
|
function qs(t) {
|
|
42488
42518
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
42489
42519
|
}
|
|
42490
42520
|
function ir$1(t, e, n) {
|
|
42491
|
-
return
|
|
42521
|
+
return sn$2(t, Oo$1(e, n));
|
|
42492
42522
|
}
|
|
42493
|
-
function
|
|
42523
|
+
function rv(t, e, n) {
|
|
42494
42524
|
var r = ir$1(t, e, n);
|
|
42495
42525
|
return r > n ? n : r;
|
|
42496
42526
|
}
|
|
@@ -42510,41 +42540,41 @@ Actual: ` + p3.attribValue
|
|
|
42510
42540
|
return n[r] = t, n;
|
|
42511
42541
|
}, {});
|
|
42512
42542
|
}
|
|
42513
|
-
var
|
|
42543
|
+
var ov = function(e, n) {
|
|
42514
42544
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
42515
42545
|
placement: n.placement
|
|
42516
42546
|
})) : e, qu$1(typeof e != "number" ? e : Ku$1(e, Ir));
|
|
42517
42547
|
};
|
|
42518
|
-
function
|
|
42548
|
+
function iv(t) {
|
|
42519
42549
|
var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt$1(n.placement), l = qs(a), c3 = [De$1, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
|
|
42520
42550
|
if (!(!i3 || !s)) {
|
|
42521
|
-
var u =
|
|
42551
|
+
var u = ov(o.padding, n), f3 = Us(i3), p3 = l === "y" ? Te$1 : De$1, h3 = l === "y" ? We$2 : Ue, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = Pr(i3), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = m / 2 - g / 2, y = u[p3], S = w - f3[d] - u[h3], k = w / 2 - f3[d] / 2 + C, A = ir$1(y, k, S), L3 = l;
|
|
42522
42552
|
n.modifiersData[r] = (e = {}, e[L3] = A, e.centerOffset = A - k, e);
|
|
42523
42553
|
}
|
|
42524
42554
|
}
|
|
42525
|
-
function
|
|
42555
|
+
function sv(t) {
|
|
42526
42556
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
42527
42557
|
o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Wu$1(e.elements.popper, o) && (e.elements.arrow = o));
|
|
42528
42558
|
}
|
|
42529
|
-
const
|
|
42559
|
+
const av = {
|
|
42530
42560
|
name: "arrow",
|
|
42531
42561
|
enabled: true,
|
|
42532
42562
|
phase: "main",
|
|
42533
|
-
fn:
|
|
42534
|
-
effect:
|
|
42563
|
+
fn: iv,
|
|
42564
|
+
effect: sv,
|
|
42535
42565
|
requires: ["popperOffsets"],
|
|
42536
42566
|
requiresIfExists: ["preventOverflow"]
|
|
42537
42567
|
};
|
|
42538
42568
|
function Fn$1(t) {
|
|
42539
42569
|
return t.split("-")[1];
|
|
42540
42570
|
}
|
|
42541
|
-
var
|
|
42571
|
+
var lv = {
|
|
42542
42572
|
top: "auto",
|
|
42543
42573
|
right: "auto",
|
|
42544
42574
|
bottom: "auto",
|
|
42545
42575
|
left: "auto"
|
|
42546
42576
|
};
|
|
42547
|
-
function
|
|
42577
|
+
function cv(t, e) {
|
|
42548
42578
|
var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
|
|
42549
42579
|
return {
|
|
42550
42580
|
x: Rn$2(n * o) / o || 0,
|
|
@@ -42582,7 +42612,7 @@ Actual: ` + p3.attribValue
|
|
|
42582
42612
|
}
|
|
42583
42613
|
var z = Object.assign({
|
|
42584
42614
|
position: a
|
|
42585
|
-
}, c3 &&
|
|
42615
|
+
}, c3 && lv), $ = d === true ? cv({
|
|
42586
42616
|
x: p3,
|
|
42587
42617
|
y: m
|
|
42588
42618
|
}, Re$1(n)) : {
|
|
@@ -42595,7 +42625,7 @@ Actual: ` + p3.attribValue
|
|
|
42595
42625
|
}
|
|
42596
42626
|
return Object.assign({}, z, (e = {}, e[y] = w ? m + "px" : "", e[C] = b ? p3 + "px" : "", e.transform = "", e));
|
|
42597
42627
|
}
|
|
42598
|
-
function
|
|
42628
|
+
function dv(t) {
|
|
42599
42629
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? true : r, i3 = n.adaptive, s = i3 === void 0 ? true : i3, a = n.roundOffsets, l = a === void 0 ? true : a, c3 = {
|
|
42600
42630
|
placement: rt$1(e.placement),
|
|
42601
42631
|
variation: Fn$1(e.placement),
|
|
@@ -42618,17 +42648,17 @@ Actual: ` + p3.attribValue
|
|
|
42618
42648
|
"data-popper-placement": e.placement
|
|
42619
42649
|
});
|
|
42620
42650
|
}
|
|
42621
|
-
const
|
|
42651
|
+
const uv = {
|
|
42622
42652
|
name: "computeStyles",
|
|
42623
42653
|
enabled: true,
|
|
42624
42654
|
phase: "beforeWrite",
|
|
42625
|
-
fn:
|
|
42655
|
+
fn: dv,
|
|
42626
42656
|
data: {}
|
|
42627
42657
|
};
|
|
42628
42658
|
var Qr$1 = {
|
|
42629
42659
|
passive: true
|
|
42630
42660
|
};
|
|
42631
|
-
function
|
|
42661
|
+
function fv(t) {
|
|
42632
42662
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i3 = o === void 0 ? true : o, s = r.resize, a = s === void 0 ? true : s, l = Re$1(e.elements.popper), c3 = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
42633
42663
|
return i3 && c3.forEach(function(d) {
|
|
42634
42664
|
d.addEventListener("scroll", n.update, Qr$1);
|
|
@@ -42638,16 +42668,16 @@ Actual: ` + p3.attribValue
|
|
|
42638
42668
|
}), a && l.removeEventListener("resize", n.update, Qr$1);
|
|
42639
42669
|
};
|
|
42640
42670
|
}
|
|
42641
|
-
const
|
|
42671
|
+
const pv = {
|
|
42642
42672
|
name: "eventListeners",
|
|
42643
42673
|
enabled: true,
|
|
42644
42674
|
phase: "write",
|
|
42645
42675
|
fn: function() {
|
|
42646
42676
|
},
|
|
42647
|
-
effect:
|
|
42677
|
+
effect: fv,
|
|
42648
42678
|
data: {}
|
|
42649
42679
|
};
|
|
42650
|
-
var
|
|
42680
|
+
var hv = {
|
|
42651
42681
|
left: "right",
|
|
42652
42682
|
right: "left",
|
|
42653
42683
|
bottom: "top",
|
|
@@ -42655,16 +42685,16 @@ Actual: ` + p3.attribValue
|
|
|
42655
42685
|
};
|
|
42656
42686
|
function uo$1(t) {
|
|
42657
42687
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
42658
|
-
return
|
|
42688
|
+
return hv[e];
|
|
42659
42689
|
});
|
|
42660
42690
|
}
|
|
42661
|
-
var
|
|
42691
|
+
var mv = {
|
|
42662
42692
|
start: "end",
|
|
42663
42693
|
end: "start"
|
|
42664
42694
|
};
|
|
42665
42695
|
function Pl$1(t) {
|
|
42666
42696
|
return t.replace(/start|end/g, function(e) {
|
|
42667
|
-
return
|
|
42697
|
+
return mv[e];
|
|
42668
42698
|
});
|
|
42669
42699
|
}
|
|
42670
42700
|
function Ks(t) {
|
|
@@ -42677,7 +42707,7 @@ Actual: ` + p3.attribValue
|
|
|
42677
42707
|
function Xs(t) {
|
|
42678
42708
|
return Ln$2(Wt$2(t)).left + Ks(t).scrollLeft;
|
|
42679
42709
|
}
|
|
42680
|
-
function
|
|
42710
|
+
function gv(t, e) {
|
|
42681
42711
|
var n = Re$1(t), r = Wt$2(t), o = n.visualViewport, i3 = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
42682
42712
|
if (o) {
|
|
42683
42713
|
i3 = o.width, s = o.height;
|
|
@@ -42691,9 +42721,9 @@ Actual: ` + p3.attribValue
|
|
|
42691
42721
|
y: l
|
|
42692
42722
|
};
|
|
42693
42723
|
}
|
|
42694
|
-
function
|
|
42695
|
-
var e, n = Wt$2(t), r = Ks(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i3 =
|
|
42696
|
-
return Ct$1(o || n).direction === "rtl" && (a +=
|
|
42724
|
+
function yv(t) {
|
|
42725
|
+
var e, n = Wt$2(t), r = Ks(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i3 = sn$2(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = sn$2(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + Xs(t), l = -r.scrollTop;
|
|
42726
|
+
return Ct$1(o || n).direction === "rtl" && (a += sn$2(n.clientWidth, o ? o.clientWidth : 0) - i3), {
|
|
42697
42727
|
width: i3,
|
|
42698
42728
|
height: s,
|
|
42699
42729
|
x: a,
|
|
@@ -42724,23 +42754,23 @@ Actual: ` + p3.attribValue
|
|
|
42724
42754
|
bottom: t.y + t.height
|
|
42725
42755
|
});
|
|
42726
42756
|
}
|
|
42727
|
-
function
|
|
42757
|
+
function bv(t, e) {
|
|
42728
42758
|
var n = Ln$2(t, false, e === "fixed");
|
|
42729
42759
|
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;
|
|
42730
42760
|
}
|
|
42731
42761
|
function Rl$1(t, e, n) {
|
|
42732
|
-
return e === Vu$1 ? fs$1(
|
|
42762
|
+
return e === Vu$1 ? fs$1(gv(t, n)) : un$2(e) ? bv(e, n) : fs$1(yv(Wt$2(t)));
|
|
42733
42763
|
}
|
|
42734
|
-
function
|
|
42764
|
+
function wv(t) {
|
|
42735
42765
|
var e = sr$1(_o$1(t)), n = ["absolute", "fixed"].indexOf(Ct$1(t).position) >= 0, r = n && je$1(t) ? Pr(t) : t;
|
|
42736
|
-
return
|
|
42737
|
-
return
|
|
42766
|
+
return un$2(r) ? e.filter(function(o) {
|
|
42767
|
+
return un$2(o) && Wu$1(o, r) && st$1(o) !== "body";
|
|
42738
42768
|
}) : [];
|
|
42739
42769
|
}
|
|
42740
|
-
function
|
|
42741
|
-
var o = e === "clippingParents" ?
|
|
42770
|
+
function vv(t, e, n, r) {
|
|
42771
|
+
var o = e === "clippingParents" ? wv(t) : [].concat(e), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
|
|
42742
42772
|
var d = Rl$1(t, c3, r);
|
|
42743
|
-
return l.top =
|
|
42773
|
+
return l.top = sn$2(d.top, l.top), l.right = Oo$1(d.right, l.right), l.bottom = Oo$1(d.bottom, l.bottom), l.left = sn$2(d.left, l.left), l;
|
|
42744
42774
|
}, Rl$1(t, s, r));
|
|
42745
42775
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
42746
42776
|
}
|
|
@@ -42793,7 +42823,7 @@ Actual: ` + p3.attribValue
|
|
|
42793
42823
|
}
|
|
42794
42824
|
function Sr$1(t, e) {
|
|
42795
42825
|
e === void 0 && (e = {});
|
|
42796
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ?
|
|
42826
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ? Vu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = qu$1(typeof g != "number" ? g : Ku$1(g, Ir)), w = f3 === Jn$2 ? Hw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = vv(un$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), A = Ju$1({
|
|
42797
42827
|
reference: k,
|
|
42798
42828
|
element: C,
|
|
42799
42829
|
placement: o
|
|
@@ -42812,7 +42842,7 @@ Actual: ` + p3.attribValue
|
|
|
42812
42842
|
}
|
|
42813
42843
|
return _;
|
|
42814
42844
|
}
|
|
42815
|
-
function
|
|
42845
|
+
function kv(t, e) {
|
|
42816
42846
|
e === void 0 && (e = {});
|
|
42817
42847
|
var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? $u$1 : l, d = Fn$1(r), u = d ? a ? Nl$1 : Nl$1.filter(function(h3) {
|
|
42818
42848
|
return Fn$1(h3) === d;
|
|
@@ -42832,17 +42862,17 @@ Actual: ` + p3.attribValue
|
|
|
42832
42862
|
return p3[h3] - p3[m];
|
|
42833
42863
|
});
|
|
42834
42864
|
}
|
|
42835
|
-
function
|
|
42865
|
+
function Cv(t) {
|
|
42836
42866
|
if (rt$1(t) === js)
|
|
42837
42867
|
return [];
|
|
42838
42868
|
var e = uo$1(t);
|
|
42839
42869
|
return [Pl$1(t), e, Pl$1(e)];
|
|
42840
42870
|
}
|
|
42841
|
-
function
|
|
42871
|
+
function Sv(t) {
|
|
42842
42872
|
var e = t.state, n = t.options, r = t.name;
|
|
42843
42873
|
if (!e.modifiersData[r]._skip) {
|
|
42844
|
-
for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] :
|
|
42845
|
-
return qe2.concat(rt$1(Ne2) === js ?
|
|
42874
|
+
for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = e.options.placement, b = rt$1(g), w = b === g, C = l || (w || !h3 ? [uo$1(g)] : Cv(g)), y = [g].concat(C).reduce(function(qe2, Ne2) {
|
|
42875
|
+
return qe2.concat(rt$1(Ne2) === js ? kv(e, {
|
|
42846
42876
|
placement: Ne2,
|
|
42847
42877
|
boundary: d,
|
|
42848
42878
|
rootBoundary: u,
|
|
@@ -42873,8 +42903,8 @@ Actual: ` + p3.attribValue
|
|
|
42873
42903
|
var Ke2 = y.find(function(xt2) {
|
|
42874
42904
|
var dt2 = A.get(xt2);
|
|
42875
42905
|
if (dt2)
|
|
42876
|
-
return dt2.slice(0, Ne2).every(function(
|
|
42877
|
-
return
|
|
42906
|
+
return dt2.slice(0, Ne2).every(function(fn2) {
|
|
42907
|
+
return fn2;
|
|
42878
42908
|
});
|
|
42879
42909
|
});
|
|
42880
42910
|
if (Ke2)
|
|
@@ -42886,11 +42916,11 @@ Actual: ` + p3.attribValue
|
|
|
42886
42916
|
e.placement !== x3 && (e.modifiersData[r]._skip = true, e.placement = x3, e.reset = true);
|
|
42887
42917
|
}
|
|
42888
42918
|
}
|
|
42889
|
-
const
|
|
42919
|
+
const xv = {
|
|
42890
42920
|
name: "flip",
|
|
42891
42921
|
enabled: true,
|
|
42892
42922
|
phase: "main",
|
|
42893
|
-
fn:
|
|
42923
|
+
fn: Sv,
|
|
42894
42924
|
requiresIfExists: ["offset"],
|
|
42895
42925
|
data: {
|
|
42896
42926
|
_skip: false
|
|
@@ -42912,7 +42942,7 @@ Actual: ` + p3.attribValue
|
|
|
42912
42942
|
return t[e] >= 0;
|
|
42913
42943
|
});
|
|
42914
42944
|
}
|
|
42915
|
-
function
|
|
42945
|
+
function Mv(t) {
|
|
42916
42946
|
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i3 = e.modifiersData.preventOverflow, s = Sr$1(e, {
|
|
42917
42947
|
elementContext: "reference"
|
|
42918
42948
|
}), a = Sr$1(e, {
|
|
@@ -42928,14 +42958,14 @@ Actual: ` + p3.attribValue
|
|
|
42928
42958
|
"data-popper-escaped": u
|
|
42929
42959
|
});
|
|
42930
42960
|
}
|
|
42931
|
-
const
|
|
42961
|
+
const Av = {
|
|
42932
42962
|
name: "hide",
|
|
42933
42963
|
enabled: true,
|
|
42934
42964
|
phase: "main",
|
|
42935
42965
|
requiresIfExists: ["preventOverflow"],
|
|
42936
|
-
fn:
|
|
42966
|
+
fn: Mv
|
|
42937
42967
|
};
|
|
42938
|
-
function
|
|
42968
|
+
function Ov(t, e, n) {
|
|
42939
42969
|
var r = rt$1(t), o = [De$1, Te$1].indexOf(r) >= 0 ? -1 : 1, i3 = typeof n == "function" ? n(Object.assign({}, e, {
|
|
42940
42970
|
placement: t
|
|
42941
42971
|
})) : n, s = i3[0], a = i3[1];
|
|
@@ -42947,20 +42977,20 @@ Actual: ` + p3.attribValue
|
|
|
42947
42977
|
y: a
|
|
42948
42978
|
};
|
|
42949
42979
|
}
|
|
42950
|
-
function
|
|
42980
|
+
function Tv(t) {
|
|
42951
42981
|
var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s = $u$1.reduce(function(d, u) {
|
|
42952
|
-
return d[u] =
|
|
42982
|
+
return d[u] = Ov(u, e.rects, i3), d;
|
|
42953
42983
|
}, {}), a = s[e.placement], l = a.x, c3 = a.y;
|
|
42954
42984
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c3), e.modifiersData[r] = s;
|
|
42955
42985
|
}
|
|
42956
|
-
const
|
|
42986
|
+
const Dv = {
|
|
42957
42987
|
name: "offset",
|
|
42958
42988
|
enabled: true,
|
|
42959
42989
|
phase: "main",
|
|
42960
42990
|
requires: ["popperOffsets"],
|
|
42961
|
-
fn:
|
|
42991
|
+
fn: Tv
|
|
42962
42992
|
};
|
|
42963
|
-
function
|
|
42993
|
+
function Nv(t) {
|
|
42964
42994
|
var e = t.state, n = t.name;
|
|
42965
42995
|
e.modifiersData[n] = Ju$1({
|
|
42966
42996
|
reference: e.rects.reference,
|
|
@@ -42968,23 +42998,23 @@ Actual: ` + p3.attribValue
|
|
|
42968
42998
|
placement: e.placement
|
|
42969
42999
|
});
|
|
42970
43000
|
}
|
|
42971
|
-
const
|
|
43001
|
+
const Ev = {
|
|
42972
43002
|
name: "popperOffsets",
|
|
42973
43003
|
enabled: true,
|
|
42974
43004
|
phase: "read",
|
|
42975
|
-
fn:
|
|
43005
|
+
fn: Nv,
|
|
42976
43006
|
data: {}
|
|
42977
43007
|
};
|
|
42978
|
-
function
|
|
43008
|
+
function Iv(t) {
|
|
42979
43009
|
return t === "x" ? "y" : "x";
|
|
42980
43010
|
}
|
|
42981
|
-
function
|
|
43011
|
+
function Pv(t) {
|
|
42982
43012
|
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? false : s, l = n.boundary, c3 = n.rootBoundary, d = n.altBoundary, u = n.padding, f3 = n.tether, p3 = f3 === void 0 ? true : f3, h3 = n.tetherOffset, m = h3 === void 0 ? 0 : h3, g = Sr$1(e, {
|
|
42983
43013
|
boundary: l,
|
|
42984
43014
|
rootBoundary: c3,
|
|
42985
43015
|
padding: u,
|
|
42986
43016
|
altBoundary: d
|
|
42987
|
-
}), b = rt$1(e.placement), w = Fn$1(e.placement), C = !w, y = qs(b), S =
|
|
43017
|
+
}), b = rt$1(e.placement), w = Fn$1(e.placement), C = !w, y = qs(b), S = Iv(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, L3 = e.rects.popper, x3 = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
42988
43018
|
placement: e.placement
|
|
42989
43019
|
})) : m, _ = typeof x3 == "number" ? {
|
|
42990
43020
|
mainAxis: x3,
|
|
@@ -43001,39 +43031,39 @@ Actual: ` + p3.attribValue
|
|
|
43001
43031
|
var j, se = y === "y" ? Te$1 : De$1, ce2 = y === "y" ? We$2 : Ue, ae2 = y === "y" ? "height" : "width", ee = k[y], ne = ee + g[se], ve2 = ee - g[ce2], ke2 = p3 ? -L3[ae2] / 2 : 0, lt2 = w === Pn$2 ? A[ae2] : L3[ae2], Fe2 = w === Pn$2 ? -L3[ae2] : -A[ae2], ct2 = e.elements.arrow, qe2 = p3 && ct2 ? Us(ct2) : {
|
|
43002
43032
|
width: 0,
|
|
43003
43033
|
height: 0
|
|
43004
|
-
}, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Uu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]),
|
|
43034
|
+
}, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Uu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]), fn2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - _.mainAxis : lt2 - dt2 - Ke2 - _.mainAxis, Mt2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + _.mainAxis : Fe2 + dt2 + xt2 + _.mainAxis, pn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, Hn2 = (j = z?.[y]) != null ? j : 0, Fr2 = ee + fn2 - Hn2 - Lr2, Br2 = ee + Mt2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? sn$2(ve2, Br2) : ve2);
|
|
43005
43035
|
k[y] = jn2, $[y] = jn2 - ee;
|
|
43006
43036
|
}
|
|
43007
43037
|
if (a) {
|
|
43008
|
-
var Wn2, zr2 = y === "x" ? Te$1 : De$1, _r2 = y === "x" ? We$2 : Ue, ut2 = k[S], At2 = S === "y" ? "height" : "width", Un2 = ut2 + g[zr2], Ut2 = ut2 - g[_r2], qn2 = [Te$1, De$1].indexOf(b) !== -1, Vr2 = (Wn2 = z?.[S]) != null ? Wn2 : 0, $r2 = qn2 ? Un2 : ut2 - A[At2] - L3[At2] - Vr2 + _.altAxis, Hr2 = qn2 ? ut2 + A[At2] + L3[At2] - Vr2 - _.altAxis : Ut2, jr2 = p3 && qn2 ?
|
|
43038
|
+
var Wn2, zr2 = y === "x" ? Te$1 : De$1, _r2 = y === "x" ? We$2 : Ue, ut2 = k[S], At2 = S === "y" ? "height" : "width", Un2 = ut2 + g[zr2], Ut2 = ut2 - g[_r2], qn2 = [Te$1, De$1].indexOf(b) !== -1, Vr2 = (Wn2 = z?.[S]) != null ? Wn2 : 0, $r2 = qn2 ? Un2 : ut2 - A[At2] - L3[At2] - Vr2 + _.altAxis, Hr2 = qn2 ? ut2 + A[At2] + L3[At2] - Vr2 - _.altAxis : Ut2, jr2 = p3 && qn2 ? rv($r2, ut2, Hr2) : ir$1(p3 ? $r2 : Un2, ut2, p3 ? Hr2 : Ut2);
|
|
43009
43039
|
k[S] = jr2, $[S] = jr2 - ut2;
|
|
43010
43040
|
}
|
|
43011
43041
|
e.modifiersData[r] = $;
|
|
43012
43042
|
}
|
|
43013
43043
|
}
|
|
43014
|
-
const
|
|
43044
|
+
const Rv = {
|
|
43015
43045
|
name: "preventOverflow",
|
|
43016
43046
|
enabled: true,
|
|
43017
43047
|
phase: "main",
|
|
43018
|
-
fn:
|
|
43048
|
+
fn: Pv,
|
|
43019
43049
|
requiresIfExists: ["offset"]
|
|
43020
43050
|
};
|
|
43021
|
-
function
|
|
43051
|
+
function Lv(t) {
|
|
43022
43052
|
return {
|
|
43023
43053
|
scrollLeft: t.scrollLeft,
|
|
43024
43054
|
scrollTop: t.scrollTop
|
|
43025
43055
|
};
|
|
43026
43056
|
}
|
|
43027
|
-
function
|
|
43028
|
-
return t === Re$1(t) || !je$1(t) ? Ks(t) :
|
|
43057
|
+
function Fv(t) {
|
|
43058
|
+
return t === Re$1(t) || !je$1(t) ? Ks(t) : Lv(t);
|
|
43029
43059
|
}
|
|
43030
|
-
function
|
|
43060
|
+
function Bv(t) {
|
|
43031
43061
|
var e = t.getBoundingClientRect(), n = Rn$2(e.width) / t.offsetWidth || 1, r = Rn$2(e.height) / t.offsetHeight || 1;
|
|
43032
43062
|
return n !== 1 || r !== 1;
|
|
43033
43063
|
}
|
|
43034
|
-
function
|
|
43064
|
+
function zv(t, e, n) {
|
|
43035
43065
|
n === void 0 && (n = false);
|
|
43036
|
-
var r = je$1(e), o = je$1(e) &&
|
|
43066
|
+
var r = je$1(e), o = je$1(e) && Bv(e), i3 = Wt$2(e), s = Ln$2(t, o, n), a = {
|
|
43037
43067
|
scrollLeft: 0,
|
|
43038
43068
|
scrollTop: 0
|
|
43039
43069
|
}, l = {
|
|
@@ -43041,14 +43071,14 @@ Actual: ` + p3.attribValue
|
|
|
43041
43071
|
y: 0
|
|
43042
43072
|
};
|
|
43043
43073
|
return (r || !r && !n) && ((st$1(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
43044
|
-
Js(i3)) && (a =
|
|
43074
|
+
Js(i3)) && (a = Fv(e)), je$1(e) ? (l = Ln$2(e, true), l.x += e.clientLeft, l.y += e.clientTop) : i3 && (l.x = Xs(i3))), {
|
|
43045
43075
|
x: s.left + a.scrollLeft - l.x,
|
|
43046
43076
|
y: s.top + a.scrollTop - l.y,
|
|
43047
43077
|
width: s.width,
|
|
43048
43078
|
height: s.height
|
|
43049
43079
|
};
|
|
43050
43080
|
}
|
|
43051
|
-
function
|
|
43081
|
+
function _v(t) {
|
|
43052
43082
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
43053
43083
|
t.forEach(function(i3) {
|
|
43054
43084
|
e.set(i3.name, i3);
|
|
@@ -43067,15 +43097,15 @@ Actual: ` + p3.attribValue
|
|
|
43067
43097
|
n.has(i3.name) || o(i3);
|
|
43068
43098
|
}), r;
|
|
43069
43099
|
}
|
|
43070
|
-
function
|
|
43071
|
-
var e =
|
|
43072
|
-
return
|
|
43100
|
+
function Vv(t) {
|
|
43101
|
+
var e = _v(t);
|
|
43102
|
+
return Zw.reduce(function(n, r) {
|
|
43073
43103
|
return n.concat(e.filter(function(o) {
|
|
43074
43104
|
return o.phase === r;
|
|
43075
43105
|
}));
|
|
43076
43106
|
}, []);
|
|
43077
43107
|
}
|
|
43078
|
-
function
|
|
43108
|
+
function $v(t) {
|
|
43079
43109
|
var e;
|
|
43080
43110
|
return function() {
|
|
43081
43111
|
return e || (e = new Promise(function(n) {
|
|
@@ -43085,7 +43115,7 @@ Actual: ` + p3.attribValue
|
|
|
43085
43115
|
})), e;
|
|
43086
43116
|
};
|
|
43087
43117
|
}
|
|
43088
|
-
function
|
|
43118
|
+
function Hv(t) {
|
|
43089
43119
|
var e = t.reduce(function(n, r) {
|
|
43090
43120
|
var o = n[r.name];
|
|
43091
43121
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -43109,7 +43139,7 @@ Actual: ` + p3.attribValue
|
|
|
43109
43139
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
43110
43140
|
});
|
|
43111
43141
|
}
|
|
43112
|
-
function
|
|
43142
|
+
function jv(t) {
|
|
43113
43143
|
t === void 0 && (t = {});
|
|
43114
43144
|
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i3 = o === void 0 ? Bl$1 : o;
|
|
43115
43145
|
return function(a, l, c3) {
|
|
@@ -43130,10 +43160,10 @@ Actual: ` + p3.attribValue
|
|
|
43130
43160
|
setOptions: function(b) {
|
|
43131
43161
|
var w = typeof b == "function" ? b(d.options) : b;
|
|
43132
43162
|
m(), d.options = Object.assign({}, i3, d.options, w), d.scrollParents = {
|
|
43133
|
-
reference:
|
|
43163
|
+
reference: un$2(a) ? sr$1(a) : a.contextElement ? sr$1(a.contextElement) : [],
|
|
43134
43164
|
popper: sr$1(l)
|
|
43135
43165
|
};
|
|
43136
|
-
var C =
|
|
43166
|
+
var C = Vv(Hv([].concat(r, d.options.modifiers)));
|
|
43137
43167
|
return d.orderedModifiers = C.filter(function(y) {
|
|
43138
43168
|
return y.enabled;
|
|
43139
43169
|
}), h3(), p3.update();
|
|
@@ -43148,7 +43178,7 @@ Actual: ` + p3.attribValue
|
|
|
43148
43178
|
var b = d.elements, w = b.reference, C = b.popper;
|
|
43149
43179
|
if (zl$1(w, C)) {
|
|
43150
43180
|
d.rects = {
|
|
43151
|
-
reference:
|
|
43181
|
+
reference: zv(w, Pr(C), d.options.strategy === "fixed"),
|
|
43152
43182
|
popper: Us(C)
|
|
43153
43183
|
}, d.reset = false, d.placement = d.options.placement, d.orderedModifiers.forEach(function(_) {
|
|
43154
43184
|
return d.modifiersData[_.name] = Object.assign({}, _.data);
|
|
@@ -43171,7 +43201,7 @@ Actual: ` + p3.attribValue
|
|
|
43171
43201
|
},
|
|
43172
43202
|
// Async and optimistically optimized update – it will not be executed if
|
|
43173
43203
|
// not necessary (debounced to run at most once-per-tick)
|
|
43174
|
-
update:
|
|
43204
|
+
update: $v(function() {
|
|
43175
43205
|
return new Promise(function(g) {
|
|
43176
43206
|
p3.forceUpdate(), g(d);
|
|
43177
43207
|
});
|
|
@@ -43208,15 +43238,15 @@ Actual: ` + p3.attribValue
|
|
|
43208
43238
|
return p3;
|
|
43209
43239
|
};
|
|
43210
43240
|
}
|
|
43211
|
-
var
|
|
43212
|
-
defaultModifiers:
|
|
43213
|
-
}),
|
|
43241
|
+
var Wv = [pv, Ev, uv, Hu$1, Dv, xv, Rv, av, Av], Uv = /* @__PURE__ */ jv({
|
|
43242
|
+
defaultModifiers: Wv
|
|
43243
|
+
}), qv = "tippy-box", Yu$1 = "tippy-content", Kv = "tippy-backdrop", Gu$1 = "tippy-arrow", Zu$1 = "tippy-svg-arrow", Yt$2 = {
|
|
43214
43244
|
passive: true,
|
|
43215
43245
|
capture: true
|
|
43216
43246
|
}, Qu$1 = function() {
|
|
43217
43247
|
return document.body;
|
|
43218
43248
|
};
|
|
43219
|
-
function
|
|
43249
|
+
function Xv(t, e) {
|
|
43220
43250
|
return {}.hasOwnProperty.call(t, e);
|
|
43221
43251
|
}
|
|
43222
43252
|
function ui$1(t, e, n) {
|
|
@@ -43243,27 +43273,27 @@ Actual: ` + p3.attribValue
|
|
|
43243
43273
|
}, e);
|
|
43244
43274
|
};
|
|
43245
43275
|
}
|
|
43246
|
-
function
|
|
43276
|
+
function Jv(t, e) {
|
|
43247
43277
|
var n = Object.assign({}, t);
|
|
43248
43278
|
return e.forEach(function(r) {
|
|
43249
43279
|
delete n[r];
|
|
43250
43280
|
}), n;
|
|
43251
43281
|
}
|
|
43252
|
-
function
|
|
43282
|
+
function Yv(t) {
|
|
43253
43283
|
return t.split(/\s+/).filter(Boolean);
|
|
43254
43284
|
}
|
|
43255
|
-
function
|
|
43285
|
+
function Mn$1(t) {
|
|
43256
43286
|
return [].concat(t);
|
|
43257
43287
|
}
|
|
43258
43288
|
function Vl$1(t, e) {
|
|
43259
43289
|
t.indexOf(e) === -1 && t.push(e);
|
|
43260
43290
|
}
|
|
43261
|
-
function
|
|
43291
|
+
function Gv(t) {
|
|
43262
43292
|
return t.filter(function(e, n) {
|
|
43263
43293
|
return t.indexOf(e) === n;
|
|
43264
43294
|
});
|
|
43265
43295
|
}
|
|
43266
|
-
function
|
|
43296
|
+
function Zv(t) {
|
|
43267
43297
|
return t.split("-")[0];
|
|
43268
43298
|
}
|
|
43269
43299
|
function To$1(t) {
|
|
@@ -43282,17 +43312,17 @@ Actual: ` + p3.attribValue
|
|
|
43282
43312
|
return Ys(t, e);
|
|
43283
43313
|
});
|
|
43284
43314
|
}
|
|
43285
|
-
function
|
|
43315
|
+
function Qv(t) {
|
|
43286
43316
|
return Ys(t, "NodeList");
|
|
43287
43317
|
}
|
|
43288
|
-
function
|
|
43318
|
+
function ek(t) {
|
|
43289
43319
|
return Ys(t, "MouseEvent");
|
|
43290
43320
|
}
|
|
43291
|
-
function
|
|
43321
|
+
function tk(t) {
|
|
43292
43322
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
43293
43323
|
}
|
|
43294
|
-
function
|
|
43295
|
-
return xr$1(t) ? [t] :
|
|
43324
|
+
function nk(t) {
|
|
43325
|
+
return xr$1(t) ? [t] : Qv(t) ? To$1(t) : Array.isArray(t) ? t : To$1(document.querySelectorAll(t));
|
|
43296
43326
|
}
|
|
43297
43327
|
function fi$1(t, e) {
|
|
43298
43328
|
t.forEach(function(n) {
|
|
@@ -43304,14 +43334,14 @@ Actual: ` + p3.attribValue
|
|
|
43304
43334
|
n && n.setAttribute("data-state", e);
|
|
43305
43335
|
});
|
|
43306
43336
|
}
|
|
43307
|
-
function
|
|
43308
|
-
var e, n =
|
|
43337
|
+
function rk(t) {
|
|
43338
|
+
var e, n = Mn$1(t), r = n[0];
|
|
43309
43339
|
return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
|
|
43310
43340
|
}
|
|
43311
|
-
function
|
|
43341
|
+
function ok(t, e) {
|
|
43312
43342
|
var n = e.clientX, r = e.clientY;
|
|
43313
43343
|
return t.every(function(o) {
|
|
43314
|
-
var i3 = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c3 =
|
|
43344
|
+
var i3 = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c3 = Zv(s.placement), d = s.modifiersData.offset;
|
|
43315
43345
|
if (!d)
|
|
43316
43346
|
return true;
|
|
43317
43347
|
var u = c3 === "bottom" ? d.top.y : 0, f3 = c3 === "top" ? d.bottom.y : 0, p3 = c3 === "right" ? d.left.x : 0, h3 = c3 === "left" ? d.right.x : 0, m = i3.top - r + u > l, g = r - i3.bottom - f3 > l, b = i3.left - n + p3 > l, w = n - i3.right - h3 > l;
|
|
@@ -43336,28 +43366,28 @@ Actual: ` + p3.attribValue
|
|
|
43336
43366
|
var tt$2 = {
|
|
43337
43367
|
isTouch: false
|
|
43338
43368
|
}, Wl$1 = 0;
|
|
43339
|
-
function
|
|
43369
|
+
function ik() {
|
|
43340
43370
|
tt$2.isTouch || (tt$2.isTouch = true, window.performance && document.addEventListener("mousemove", tf$1));
|
|
43341
43371
|
}
|
|
43342
43372
|
function tf$1() {
|
|
43343
43373
|
var t = performance.now();
|
|
43344
43374
|
t - Wl$1 < 20 && (tt$2.isTouch = false, document.removeEventListener("mousemove", tf$1)), Wl$1 = t;
|
|
43345
43375
|
}
|
|
43346
|
-
function
|
|
43376
|
+
function sk() {
|
|
43347
43377
|
var t = document.activeElement;
|
|
43348
|
-
if (
|
|
43378
|
+
if (tk(t)) {
|
|
43349
43379
|
var e = t._tippy;
|
|
43350
43380
|
t.blur && !e.state.isVisible && t.blur();
|
|
43351
43381
|
}
|
|
43352
43382
|
}
|
|
43353
|
-
function
|
|
43354
|
-
document.addEventListener("touchstart",
|
|
43383
|
+
function ak() {
|
|
43384
|
+
document.addEventListener("touchstart", ik, Yt$2), window.addEventListener("blur", sk);
|
|
43355
43385
|
}
|
|
43356
|
-
var
|
|
43386
|
+
var lk = typeof window < "u" && typeof document < "u", ck = lk ? (
|
|
43357
43387
|
// @ts-ignore
|
|
43358
43388
|
!!window.msCrypto
|
|
43359
43389
|
) : false;
|
|
43360
|
-
function
|
|
43390
|
+
function vn$2(t) {
|
|
43361
43391
|
var e = t === "destroy" ? "n already-" : " ";
|
|
43362
43392
|
return [t + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
43363
43393
|
}
|
|
@@ -43365,7 +43395,7 @@ Actual: ` + p3.attribValue
|
|
|
43365
43395
|
var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
43366
43396
|
return t.replace(e, " ").replace(n, "").trim();
|
|
43367
43397
|
}
|
|
43368
|
-
function
|
|
43398
|
+
function dk(t) {
|
|
43369
43399
|
return Ul$1(`
|
|
43370
43400
|
%ctippy.js
|
|
43371
43401
|
|
|
@@ -43376,7 +43406,7 @@ Actual: ` + p3.attribValue
|
|
|
43376
43406
|
}
|
|
43377
43407
|
function nf$1(t) {
|
|
43378
43408
|
return [
|
|
43379
|
-
|
|
43409
|
+
dk(t),
|
|
43380
43410
|
// title
|
|
43381
43411
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
43382
43412
|
// message
|
|
@@ -43386,8 +43416,8 @@ Actual: ` + p3.attribValue
|
|
|
43386
43416
|
];
|
|
43387
43417
|
}
|
|
43388
43418
|
var Mr$1;
|
|
43389
|
-
he$3.env.NODE_ENV !== "production" &&
|
|
43390
|
-
function
|
|
43419
|
+
he$3.env.NODE_ENV !== "production" && uk();
|
|
43420
|
+
function uk() {
|
|
43391
43421
|
Mr$1 = /* @__PURE__ */ new Set();
|
|
43392
43422
|
}
|
|
43393
43423
|
function gt$1(t, e) {
|
|
@@ -43402,7 +43432,7 @@ Actual: ` + p3.attribValue
|
|
|
43402
43432
|
Mr$1.add(e), (n = console).error.apply(n, nf$1(e));
|
|
43403
43433
|
}
|
|
43404
43434
|
}
|
|
43405
|
-
function
|
|
43435
|
+
function fk(t) {
|
|
43406
43436
|
var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
|
|
43407
43437
|
ps(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), ps(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
43408
43438
|
}
|
|
@@ -43411,7 +43441,7 @@ Actual: ` + p3.attribValue
|
|
|
43411
43441
|
followCursor: false,
|
|
43412
43442
|
inlinePositioning: false,
|
|
43413
43443
|
sticky: false
|
|
43414
|
-
},
|
|
43444
|
+
}, pk = {
|
|
43415
43445
|
allowHTML: false,
|
|
43416
43446
|
animation: "fade",
|
|
43417
43447
|
arrow: true,
|
|
@@ -43469,7 +43499,7 @@ Actual: ` + p3.attribValue
|
|
|
43469
43499
|
touch: true,
|
|
43470
43500
|
trigger: "mouseenter focus",
|
|
43471
43501
|
triggerTarget: null
|
|
43472
|
-
}, rf$1,
|
|
43502
|
+
}, rf$1, pk), hk = Object.keys(Ie$1), mk = function(e) {
|
|
43473
43503
|
he$3.env.NODE_ENV !== "production" && sf$1(e, []);
|
|
43474
43504
|
var n = Object.keys(e);
|
|
43475
43505
|
n.forEach(function(r) {
|
|
@@ -43487,10 +43517,10 @@ Actual: ` + p3.attribValue
|
|
|
43487
43517
|
}, {});
|
|
43488
43518
|
return Object.assign({}, t, n);
|
|
43489
43519
|
}
|
|
43490
|
-
function
|
|
43520
|
+
function gk(t, e) {
|
|
43491
43521
|
var n = e ? Object.keys(of$1(Object.assign({}, Ie$1, {
|
|
43492
43522
|
plugins: e
|
|
43493
|
-
}))) :
|
|
43523
|
+
}))) : hk, r = n.reduce(function(o, i3) {
|
|
43494
43524
|
var s = (t.getAttribute("data-tippy-" + i3) || "").trim();
|
|
43495
43525
|
if (!s)
|
|
43496
43526
|
return o;
|
|
@@ -43509,7 +43539,7 @@ Actual: ` + p3.attribValue
|
|
|
43509
43539
|
function ql$1(t, e) {
|
|
43510
43540
|
var n = Object.assign({}, e, {
|
|
43511
43541
|
content: ef$1(e.content, [t])
|
|
43512
|
-
}, e.ignoreAttributes ? {} :
|
|
43542
|
+
}, e.ignoreAttributes ? {} : gk(t, e.plugins));
|
|
43513
43543
|
return n.aria = Object.assign({}, Ie$1.aria, n.aria), n.aria = {
|
|
43514
43544
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
|
43515
43545
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
|
@@ -43519,7 +43549,7 @@ Actual: ` + p3.attribValue
|
|
|
43519
43549
|
t === void 0 && (t = {}), e === void 0 && (e = []);
|
|
43520
43550
|
var n = Object.keys(t);
|
|
43521
43551
|
n.forEach(function(r) {
|
|
43522
|
-
var o =
|
|
43552
|
+
var o = Jv(Ie$1, Object.keys(rf$1)), i3 = !Xv(o, r);
|
|
43523
43553
|
i3 && (i3 = e.filter(function(s) {
|
|
43524
43554
|
return s.name === r;
|
|
43525
43555
|
}).length === 0), gt$1(i3, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
@@ -43528,11 +43558,11 @@ Actual: ` + p3.attribValue
|
|
|
43528
43558
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
43529
43559
|
});
|
|
43530
43560
|
}
|
|
43531
|
-
var
|
|
43561
|
+
var yk = function() {
|
|
43532
43562
|
return "innerHTML";
|
|
43533
43563
|
};
|
|
43534
43564
|
function hs$1(t, e) {
|
|
43535
|
-
t[
|
|
43565
|
+
t[yk()] = e;
|
|
43536
43566
|
}
|
|
43537
43567
|
function Kl$1(t) {
|
|
43538
43568
|
var e = ar$1();
|
|
@@ -43552,13 +43582,13 @@ Actual: ` + p3.attribValue
|
|
|
43552
43582
|
return r.classList.contains(Gu$1) || r.classList.contains(Zu$1);
|
|
43553
43583
|
}),
|
|
43554
43584
|
backdrop: n.find(function(r) {
|
|
43555
|
-
return r.classList.contains(
|
|
43585
|
+
return r.classList.contains(Kv);
|
|
43556
43586
|
})
|
|
43557
43587
|
};
|
|
43558
43588
|
}
|
|
43559
43589
|
function af$1(t) {
|
|
43560
43590
|
var e = ar$1(), n = ar$1();
|
|
43561
|
-
n.className =
|
|
43591
|
+
n.className = qv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
43562
43592
|
var r = ar$1();
|
|
43563
43593
|
r.className = Yu$1, r.setAttribute("data-state", "hidden"), Xl$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
|
|
43564
43594
|
function o(i3, s) {
|
|
@@ -43571,9 +43601,9 @@ Actual: ` + p3.attribValue
|
|
|
43571
43601
|
};
|
|
43572
43602
|
}
|
|
43573
43603
|
af$1.$$tippy = true;
|
|
43574
|
-
var
|
|
43575
|
-
function
|
|
43576
|
-
var n = ql$1(t, Object.assign({}, Ie$1, of$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g =
|
|
43604
|
+
var bk = 1, eo$2 = [], hi$1 = [];
|
|
43605
|
+
function wk(t, e) {
|
|
43606
|
+
var n = ql$1(t, Object.assign({}, Ie$1, of$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g = bk++, b = null, w = Gv(n.plugins), C = {
|
|
43577
43607
|
// Is the instance currently enabled?
|
|
43578
43608
|
isEnabled: true,
|
|
43579
43609
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -43612,7 +43642,7 @@ Actual: ` + p3.attribValue
|
|
|
43612
43642
|
var L3 = w.map(function(v) {
|
|
43613
43643
|
return v.fn(y);
|
|
43614
43644
|
}), x3 = t.hasAttribute("aria-expanded");
|
|
43615
|
-
return
|
|
43645
|
+
return pn2(), ke2(), ee(), ne("onCreate", [y]), n.showOnCreate && Un2(), k.addEventListener("mouseenter", function() {
|
|
43616
43646
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
43617
43647
|
}), k.addEventListener("mouseleave", function() {
|
|
43618
43648
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && se().addEventListener("mousemove", h3);
|
|
@@ -43633,7 +43663,7 @@ Actual: ` + p3.attribValue
|
|
|
43633
43663
|
}
|
|
43634
43664
|
function se() {
|
|
43635
43665
|
var v = j().parentNode;
|
|
43636
|
-
return v ?
|
|
43666
|
+
return v ? rk(v) : document;
|
|
43637
43667
|
}
|
|
43638
43668
|
function ce2() {
|
|
43639
43669
|
return ms(k);
|
|
@@ -43655,7 +43685,7 @@ Actual: ` + p3.attribValue
|
|
|
43655
43685
|
function ve2() {
|
|
43656
43686
|
var v = y.props.aria;
|
|
43657
43687
|
if (v.content) {
|
|
43658
|
-
var O3 = "aria-" + v.content, R = k.id, q =
|
|
43688
|
+
var O3 = "aria-" + v.content, R = k.id, q = Mn$1(y.props.triggerTarget || t);
|
|
43659
43689
|
q.forEach(function(U) {
|
|
43660
43690
|
var Ce2 = U.getAttribute(O3);
|
|
43661
43691
|
if (y.state.isVisible)
|
|
@@ -43669,7 +43699,7 @@ Actual: ` + p3.attribValue
|
|
|
43669
43699
|
}
|
|
43670
43700
|
function ke2() {
|
|
43671
43701
|
if (!(x3 || !y.props.aria.expanded)) {
|
|
43672
|
-
var v =
|
|
43702
|
+
var v = Mn$1(y.props.triggerTarget || t);
|
|
43673
43703
|
v.forEach(function(O3) {
|
|
43674
43704
|
y.props.interactive ? O3.setAttribute("aria-expanded", y.state.isVisible && O3 === j() ? "true" : "false") : O3.removeAttribute("aria-expanded");
|
|
43675
43705
|
});
|
|
@@ -43684,7 +43714,7 @@ Actual: ` + p3.attribValue
|
|
|
43684
43714
|
if (!(tt$2.isTouch && (l || v.type === "mousedown"))) {
|
|
43685
43715
|
var O3 = v.composedPath && v.composedPath()[0] || v.target;
|
|
43686
43716
|
if (!(y.props.interactive && jl$1(k, O3))) {
|
|
43687
|
-
if (
|
|
43717
|
+
if (Mn$1(y.props.triggerTarget || t).some(function(R) {
|
|
43688
43718
|
return jl$1(R, O3);
|
|
43689
43719
|
})) {
|
|
43690
43720
|
if (tt$2.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
@@ -43712,14 +43742,14 @@ Actual: ` + p3.attribValue
|
|
|
43712
43742
|
v.removeEventListener("mousedown", Fe2, true), v.removeEventListener("touchend", Fe2, Yt$2), v.removeEventListener("touchstart", qe2, Yt$2), v.removeEventListener("touchmove", ct2, Yt$2);
|
|
43713
43743
|
}
|
|
43714
43744
|
function xt2(v, O3) {
|
|
43715
|
-
|
|
43745
|
+
fn2(v, function() {
|
|
43716
43746
|
!y.state.isVisible && k.parentNode && k.parentNode.contains(k) && O3();
|
|
43717
43747
|
});
|
|
43718
43748
|
}
|
|
43719
43749
|
function dt2(v, O3) {
|
|
43720
|
-
|
|
43750
|
+
fn2(v, O3);
|
|
43721
43751
|
}
|
|
43722
|
-
function
|
|
43752
|
+
function fn2(v, O3) {
|
|
43723
43753
|
var R = ce2().box;
|
|
43724
43754
|
function q(U) {
|
|
43725
43755
|
U.target === R && (pi$1(R, "remove", q), O3());
|
|
@@ -43730,7 +43760,7 @@ Actual: ` + p3.attribValue
|
|
|
43730
43760
|
}
|
|
43731
43761
|
function Mt2(v, O3, R) {
|
|
43732
43762
|
R === void 0 && (R = false);
|
|
43733
|
-
var q =
|
|
43763
|
+
var q = Mn$1(y.props.triggerTarget || t);
|
|
43734
43764
|
q.forEach(function(U) {
|
|
43735
43765
|
U.addEventListener(v, O3, R), p3.push({
|
|
43736
43766
|
node: U,
|
|
@@ -43740,19 +43770,19 @@ Actual: ` + p3.attribValue
|
|
|
43740
43770
|
});
|
|
43741
43771
|
});
|
|
43742
43772
|
}
|
|
43743
|
-
function
|
|
43773
|
+
function pn2() {
|
|
43744
43774
|
z() && (Mt2("touchstart", Hn2, {
|
|
43745
43775
|
passive: true
|
|
43746
43776
|
}), Mt2("touchend", Br2, {
|
|
43747
43777
|
passive: true
|
|
43748
|
-
})),
|
|
43778
|
+
})), Yv(y.props.trigger).forEach(function(v) {
|
|
43749
43779
|
if (v !== "manual")
|
|
43750
43780
|
switch (Mt2(v, Hn2), v) {
|
|
43751
43781
|
case "mouseenter":
|
|
43752
43782
|
Mt2("mouseleave", Br2);
|
|
43753
43783
|
break;
|
|
43754
43784
|
case "focus":
|
|
43755
|
-
Mt2(
|
|
43785
|
+
Mt2(ck ? "focusout" : "blur", jn2);
|
|
43756
43786
|
break;
|
|
43757
43787
|
case "focusin":
|
|
43758
43788
|
Mt2("focusout", jn2);
|
|
@@ -43770,7 +43800,7 @@ Actual: ` + p3.attribValue
|
|
|
43770
43800
|
var O3, R = false;
|
|
43771
43801
|
if (!(!y.state.isEnabled || Wn2(v) || a)) {
|
|
43772
43802
|
var q = ((O3 = d) == null ? void 0 : O3.type) === "focus";
|
|
43773
|
-
d = v, m = v.currentTarget, ke2(), !y.state.isVisible &&
|
|
43803
|
+
d = v, m = v.currentTarget, ke2(), !y.state.isVisible && ek(v) && eo$2.forEach(function(U) {
|
|
43774
43804
|
return U(v);
|
|
43775
43805
|
}), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== false && y.state.isVisible ? R = true : Un2(v), v.type === "click" && (s = !R), R && !q && Ut2(v);
|
|
43776
43806
|
}
|
|
@@ -43779,14 +43809,14 @@ Actual: ` + p3.attribValue
|
|
|
43779
43809
|
var O3 = v.target, R = j().contains(O3) || k.contains(O3);
|
|
43780
43810
|
if (!(v.type === "mousemove" && R)) {
|
|
43781
43811
|
var q = At2().concat(k).map(function(U) {
|
|
43782
|
-
var Ce2, Be = U._tippy,
|
|
43783
|
-
return
|
|
43812
|
+
var Ce2, Be = U._tippy, hn2 = (Ce2 = Be.popperInstance) == null ? void 0 : Ce2.state;
|
|
43813
|
+
return hn2 ? {
|
|
43784
43814
|
popperRect: U.getBoundingClientRect(),
|
|
43785
|
-
popperState:
|
|
43815
|
+
popperState: hn2,
|
|
43786
43816
|
props: n
|
|
43787
43817
|
} : null;
|
|
43788
43818
|
}).filter(Boolean);
|
|
43789
|
-
|
|
43819
|
+
ok(q, v) && (lt2(), Ut2(v));
|
|
43790
43820
|
}
|
|
43791
43821
|
}
|
|
43792
43822
|
function Br2(v) {
|
|
@@ -43807,7 +43837,7 @@ Actual: ` + p3.attribValue
|
|
|
43807
43837
|
}
|
|
43808
43838
|
function zr2() {
|
|
43809
43839
|
_r2();
|
|
43810
|
-
var v = y.props, O3 = v.popperOptions, R = v.placement, q = v.offset, U = v.getReferenceClientRect, Ce2 = v.moveTransition, Be = $() ? ms(k).arrow : null,
|
|
43840
|
+
var v = y.props, O3 = v.popperOptions, R = v.placement, q = v.offset, U = v.getReferenceClientRect, Ce2 = v.moveTransition, Be = $() ? ms(k).arrow : null, hn2 = U ? {
|
|
43811
43841
|
getBoundingClientRect: U,
|
|
43812
43842
|
contextElement: U.contextElement || j()
|
|
43813
43843
|
} : t, Zs2 = {
|
|
@@ -43816,12 +43846,12 @@ Actual: ` + p3.attribValue
|
|
|
43816
43846
|
phase: "beforeWrite",
|
|
43817
43847
|
requires: ["computeStyles"],
|
|
43818
43848
|
fn: function(Wr2) {
|
|
43819
|
-
var
|
|
43849
|
+
var mn2 = Wr2.state;
|
|
43820
43850
|
if ($()) {
|
|
43821
43851
|
var pf2 = ce2(), $o2 = pf2.box;
|
|
43822
43852
|
["placement", "reference-hidden", "escaped"].forEach(function(Ur2) {
|
|
43823
|
-
Ur2 === "placement" ? $o2.setAttribute("data-placement",
|
|
43824
|
-
}),
|
|
43853
|
+
Ur2 === "placement" ? $o2.setAttribute("data-placement", mn2.placement) : mn2.attributes.popper["data-popper-" + Ur2] ? $o2.setAttribute("data-" + Ur2, "") : $o2.removeAttribute("data-" + Ur2);
|
|
43854
|
+
}), mn2.attributes.popper = {};
|
|
43825
43855
|
}
|
|
43826
43856
|
}
|
|
43827
43857
|
}, qt2 = [{
|
|
@@ -43856,7 +43886,7 @@ Actual: ` + p3.attribValue
|
|
|
43856
43886
|
element: Be,
|
|
43857
43887
|
padding: 3
|
|
43858
43888
|
}
|
|
43859
|
-
}), qt2.push.apply(qt2, O3?.modifiers || []), y.popperInstance =
|
|
43889
|
+
}), qt2.push.apply(qt2, O3?.modifiers || []), y.popperInstance = Uv(hn2, k, Object.assign({}, O3, {
|
|
43860
43890
|
placement: R,
|
|
43861
43891
|
onFirstUpdate: f3,
|
|
43862
43892
|
modifiers: qt2
|
|
@@ -43909,12 +43939,12 @@ Actual: ` + p3.attribValue
|
|
|
43909
43939
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
|
|
43910
43940
|
}
|
|
43911
43941
|
function Hr2(v) {
|
|
43912
|
-
if (he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
43942
|
+
if (he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("setProps")), !y.state.isDestroyed) {
|
|
43913
43943
|
ne("onBeforeUpdate", [y, v]), Lr2();
|
|
43914
43944
|
var O3 = y.props, R = ql$1(t, Object.assign({}, O3, $l$1(v), {
|
|
43915
43945
|
ignoreAttributes: true
|
|
43916
43946
|
}));
|
|
43917
|
-
y.props = R,
|
|
43947
|
+
y.props = R, pn2(), O3.interactiveDebounce !== R.interactiveDebounce && (lt2(), h3 = _l$1(Fr2, R.interactiveDebounce)), O3.triggerTarget && !R.triggerTarget ? Mn$1(O3.triggerTarget).forEach(function(q) {
|
|
43918
43948
|
q.removeAttribute("aria-expanded");
|
|
43919
43949
|
}) : R.triggerTarget && t.removeAttribute("aria-expanded"), ke2(), ee(), A && A(O3, R), y.popperInstance && (zr2(), At2().forEach(function(q) {
|
|
43920
43950
|
requestAnimationFrame(q._tippy.popperInstance.forceUpdate);
|
|
@@ -43927,19 +43957,19 @@ Actual: ` + p3.attribValue
|
|
|
43927
43957
|
});
|
|
43928
43958
|
}
|
|
43929
43959
|
function lf2() {
|
|
43930
|
-
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
43960
|
+
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("show"));
|
|
43931
43961
|
var v = y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = tt$2.isTouch && !y.props.touch, U = ui$1(y.props.duration, 0, Ie$1.duration);
|
|
43932
43962
|
if (!(v || O3 || R || q) && !j().hasAttribute("disabled") && (ne("onShow", [y], false), y.props.onShow(y) !== false)) {
|
|
43933
43963
|
if (y.state.isVisible = true, $() && (k.style.visibility = "visible"), ee(), Ne2(), y.state.isMounted || (k.style.transition = "none"), $()) {
|
|
43934
|
-
var Ce2 = ce2(), Be = Ce2.box,
|
|
43935
|
-
fi$1([Be,
|
|
43964
|
+
var Ce2 = ce2(), Be = Ce2.box, hn2 = Ce2.content;
|
|
43965
|
+
fi$1([Be, hn2], 0);
|
|
43936
43966
|
}
|
|
43937
43967
|
f3 = function() {
|
|
43938
43968
|
var qt2;
|
|
43939
43969
|
if (!(!y.state.isVisible || c3)) {
|
|
43940
43970
|
if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition, $() && y.props.animation) {
|
|
43941
|
-
var Vo2 = ce2(), Wr2 = Vo2.box,
|
|
43942
|
-
fi$1([Wr2,
|
|
43971
|
+
var Vo2 = ce2(), Wr2 = Vo2.box, mn2 = Vo2.content;
|
|
43972
|
+
fi$1([Wr2, mn2], U), Hl$1([Wr2, mn2], "visible");
|
|
43943
43973
|
}
|
|
43944
43974
|
ve2(), ke2(), Vl$1(hi$1, y), (qt2 = y.popperInstance) == null || qt2.forceUpdate(), ne("onMount", [y]), y.props.animation && $() && dt2(U, function() {
|
|
43945
43975
|
y.state.isShown = true, ne("onShown", [y]);
|
|
@@ -43949,7 +43979,7 @@ Actual: ` + p3.attribValue
|
|
|
43949
43979
|
}
|
|
43950
43980
|
}
|
|
43951
43981
|
function cf2() {
|
|
43952
|
-
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
43982
|
+
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hide"));
|
|
43953
43983
|
var v = !y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = ui$1(y.props.duration, 1, Ie$1.duration);
|
|
43954
43984
|
if (!(v || O3 || R) && (ne("onHide", [y], false), y.props.onHide(y) !== false)) {
|
|
43955
43985
|
if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, $() && (k.style.visibility = "hidden"), lt2(), Ke2(), ee(true), $()) {
|
|
@@ -43960,26 +43990,26 @@ Actual: ` + p3.attribValue
|
|
|
43960
43990
|
}
|
|
43961
43991
|
}
|
|
43962
43992
|
function df2(v) {
|
|
43963
|
-
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
43993
|
+
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hideWithInteractivity")), se().addEventListener("mousemove", h3), Vl$1(eo$2, h3), h3(v);
|
|
43964
43994
|
}
|
|
43965
43995
|
function uf2() {
|
|
43966
|
-
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
43996
|
+
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), At2().forEach(function(v) {
|
|
43967
43997
|
v._tippy.unmount();
|
|
43968
43998
|
}), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
|
|
43969
43999
|
return v !== y;
|
|
43970
44000
|
}), y.state.isMounted = false, ne("onHidden", [y]));
|
|
43971
44001
|
}
|
|
43972
44002
|
function ff2() {
|
|
43973
|
-
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed,
|
|
44003
|
+
he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, ne("onDestroy", [y]));
|
|
43974
44004
|
}
|
|
43975
44005
|
}
|
|
43976
44006
|
function Rr(t, e) {
|
|
43977
44007
|
e === void 0 && (e = {});
|
|
43978
44008
|
var n = Ie$1.plugins.concat(e.plugins || []);
|
|
43979
|
-
he$3.env.NODE_ENV !== "production" && (
|
|
44009
|
+
he$3.env.NODE_ENV !== "production" && (fk(t), sf$1(e, n)), ak();
|
|
43980
44010
|
var r = Object.assign({}, e, {
|
|
43981
44011
|
plugins: n
|
|
43982
|
-
}), o =
|
|
44012
|
+
}), o = nk(t);
|
|
43983
44013
|
if (he$3.env.NODE_ENV !== "production") {
|
|
43984
44014
|
var i3 = xr$1(r.content), s = o.length > 1;
|
|
43985
44015
|
gt$1(i3 && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
@@ -43990,13 +44020,13 @@ Actual: ` + p3.attribValue
|
|
|
43990
44020
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
43991
44021
|
}
|
|
43992
44022
|
var a = o.reduce(function(l, c3) {
|
|
43993
|
-
var d = c3 &&
|
|
44023
|
+
var d = c3 && wk(c3, r);
|
|
43994
44024
|
return d && l.push(d), l;
|
|
43995
44025
|
}, []);
|
|
43996
44026
|
return xr$1(t) ? a[0] : a;
|
|
43997
44027
|
}
|
|
43998
44028
|
Rr.defaultProps = Ie$1;
|
|
43999
|
-
Rr.setDefaultProps =
|
|
44029
|
+
Rr.setDefaultProps = mk;
|
|
44000
44030
|
Rr.currentInput = tt$2;
|
|
44001
44031
|
Object.assign({}, Hu$1, {
|
|
44002
44032
|
effect: function(e) {
|
|
@@ -44018,12 +44048,12 @@ Actual: ` + p3.attribValue
|
|
|
44018
44048
|
Rr.setDefaultProps({
|
|
44019
44049
|
render: af$1
|
|
44020
44050
|
});
|
|
44021
|
-
const
|
|
44051
|
+
const vk = (t, e) => {
|
|
44022
44052
|
const n = t.__vccOpts || t;
|
|
44023
44053
|
for (const [r, o] of e)
|
|
44024
44054
|
n[r] = o;
|
|
44025
44055
|
return n;
|
|
44026
|
-
},
|
|
44056
|
+
}, kk = ["onClick", "onMouseenter"], Ck = { key: 0 }, Sk = { key: 0 }, xk = { key: 1 }, Mk = { key: 1 }, Ak = {
|
|
44027
44057
|
__name: "Mentions",
|
|
44028
44058
|
props: {
|
|
44029
44059
|
users: {
|
|
@@ -44075,16 +44105,16 @@ Actual: ` + p3.attribValue
|
|
|
44075
44105
|
key: d.email,
|
|
44076
44106
|
class: normalizeClass(["user-row", { selected: r.value === u }])
|
|
44077
44107
|
}, [
|
|
44078
|
-
d.name ? (openBlock(), createElementBlock("div",
|
|
44079
|
-
d.name ? (openBlock(), createElementBlock("span",
|
|
44080
|
-
d.name && d.email ? (openBlock(), createElementBlock("span",
|
|
44081
|
-
])) : (openBlock(), createElementBlock("div",
|
|
44108
|
+
d.name ? (openBlock(), createElementBlock("div", Ck, [
|
|
44109
|
+
d.name ? (openBlock(), createElementBlock("span", Sk, toDisplayString(d.name), 1)) : createCommentVNode("", true),
|
|
44110
|
+
d.name && d.email ? (openBlock(), createElementBlock("span", xk, " (" + toDisplayString(d.email) + ")", 1)) : createCommentVNode("", true)
|
|
44111
|
+
])) : (openBlock(), createElementBlock("div", Mk, [
|
|
44082
44112
|
createBaseVNode("span", null, toDisplayString(d.email), 1)
|
|
44083
44113
|
]))
|
|
44084
|
-
], 42,
|
|
44114
|
+
], 42, kk))), 128))
|
|
44085
44115
|
], 544));
|
|
44086
44116
|
}
|
|
44087
|
-
},
|
|
44117
|
+
}, Ok = /* @__PURE__ */ vk(Ak, [["__scopeId", "data-v-0a2a8b4e"]]), Jl$1 = new Cp$2("popoverPlugin"), Tk = Q$1.create({
|
|
44088
44118
|
name: "popoverPlugin",
|
|
44089
44119
|
addPmPlugins() {
|
|
44090
44120
|
return [new vp$2({
|
|
@@ -44097,7 +44127,7 @@ Actual: ` + p3.attribValue
|
|
|
44097
44127
|
}
|
|
44098
44128
|
},
|
|
44099
44129
|
view: (e) => {
|
|
44100
|
-
const n = new
|
|
44130
|
+
const n = new Dk(e, this.editor);
|
|
44101
44131
|
return {
|
|
44102
44132
|
update: (r, o) => {
|
|
44103
44133
|
Jl$1.getState(r.state).shouldUpdate && n.update(r, o);
|
|
@@ -44110,7 +44140,7 @@ Actual: ` + p3.attribValue
|
|
|
44110
44140
|
})];
|
|
44111
44141
|
}
|
|
44112
44142
|
});
|
|
44113
|
-
class
|
|
44143
|
+
class Dk {
|
|
44114
44144
|
constructor(e, n) {
|
|
44115
44145
|
P(this, "handleKeyDown", (e22) => {
|
|
44116
44146
|
const n22 = e22.key === "ArrowDown" || e22.key === "ArrowUp";
|
|
@@ -44147,7 +44177,7 @@ Actual: ` + p3.attribValue
|
|
|
44147
44177
|
if (this.isShowMentions) {
|
|
44148
44178
|
const { from: i3 } = this.state.selection, s = this.getMentionText(i3);
|
|
44149
44179
|
o = {
|
|
44150
|
-
component:
|
|
44180
|
+
component: Ok,
|
|
44151
44181
|
props: {
|
|
44152
44182
|
users: this.editor.users,
|
|
44153
44183
|
mention: s,
|
|
@@ -44189,7 +44219,7 @@ Actual: ` + p3.attribValue
|
|
|
44189
44219
|
this.tippyInstance.destroy(), this.popover.remove();
|
|
44190
44220
|
}
|
|
44191
44221
|
}
|
|
44192
|
-
const
|
|
44222
|
+
const Nk = false, Ek = Q$1.create({
|
|
44193
44223
|
name: "pagination",
|
|
44194
44224
|
addStorage() {
|
|
44195
44225
|
return {
|
|
@@ -44216,18 +44246,18 @@ Actual: ` + p3.attribValue
|
|
|
44216
44246
|
const t = this.editor;
|
|
44217
44247
|
let e = false, n = false, r = false, o = false;
|
|
44218
44248
|
return [new vp$2({
|
|
44219
|
-
key:
|
|
44249
|
+
key: on$3,
|
|
44220
44250
|
state: {
|
|
44221
44251
|
isReadyToInit: false,
|
|
44222
44252
|
init(s, a) {
|
|
44223
44253
|
return {
|
|
44224
44254
|
isReadyToInit: false,
|
|
44225
44255
|
decorations: F.empty,
|
|
44226
|
-
isDebugging:
|
|
44256
|
+
isDebugging: Nk
|
|
44227
44257
|
};
|
|
44228
44258
|
},
|
|
44229
44259
|
apply(s, a, l, c3) {
|
|
44230
|
-
const d = s.getMeta(
|
|
44260
|
+
const d = s.getMeta(on$3);
|
|
44231
44261
|
d && d.isReadyToInit && (n = true, o = d.isReadyToInit);
|
|
44232
44262
|
const u = s.getMeta(Ao$1);
|
|
44233
44263
|
if (u) {
|
|
@@ -44258,39 +44288,39 @@ Actual: ` + p3.attribValue
|
|
|
44258
44288
|
let a = F.empty;
|
|
44259
44289
|
return {
|
|
44260
44290
|
update: (l) => {
|
|
44261
|
-
!n || e || (e = true, r = true,
|
|
44291
|
+
!n || e || (e = true, r = true, Ik(t, l, a), e = false, n = false);
|
|
44262
44292
|
}
|
|
44263
44293
|
};
|
|
44264
44294
|
},
|
|
44265
44295
|
props: {
|
|
44266
44296
|
decorations(s) {
|
|
44267
|
-
return
|
|
44297
|
+
return on$3.getState(s).decorations;
|
|
44268
44298
|
}
|
|
44269
44299
|
}
|
|
44270
44300
|
})];
|
|
44271
44301
|
}
|
|
44272
|
-
}),
|
|
44302
|
+
}), kn$2 = (t, e, n) => {
|
|
44273
44303
|
const { alternateHeaders: r } = n.converter.pageStyles, o = n.converter[e];
|
|
44274
44304
|
if (o?.titlePg && !o.first && t === 1) return null;
|
|
44275
44305
|
const i3 = o.even, s = o.odd, a = o.first, l = o.default;
|
|
44276
44306
|
if (o?.titlePg && a && t === 1) return a;
|
|
44277
44307
|
let c3 = o.default;
|
|
44278
44308
|
return r && (t === 1 ? c3 = a : t % 2 === 0 ? c3 = i3 || l : c3 = s || l), c3;
|
|
44279
|
-
},
|
|
44280
|
-
const r = t.storage.pagination.sectionData, o =
|
|
44309
|
+
}, Ik = (t, e, n) => {
|
|
44310
|
+
const r = t.storage.pagination.sectionData, o = Pk(e, t, r);
|
|
44281
44311
|
if (!n.eq(o)) {
|
|
44282
44312
|
const i3 = e.state.tr.setMeta(
|
|
44283
|
-
|
|
44313
|
+
on$3,
|
|
44284
44314
|
{ decorations: o }
|
|
44285
44315
|
);
|
|
44286
44316
|
e.dispatch(i3);
|
|
44287
44317
|
}
|
|
44288
44318
|
t.emit("paginationUpdate");
|
|
44289
|
-
},
|
|
44319
|
+
}, Pk = (t, e, n) => {
|
|
44290
44320
|
if (!e.converter) return F.empty;
|
|
44291
44321
|
const r = e.converter.pageStyles?.pageSize, { width: o, height: i3 } = r;
|
|
44292
44322
|
if (!o || !i3) return F.empty;
|
|
44293
|
-
const s = [
|
|
44323
|
+
const s = [Cb, on$3], { state: a } = t, l = At.create({
|
|
44294
44324
|
schema: a.schema,
|
|
44295
44325
|
doc: a.doc,
|
|
44296
44326
|
plugins: a.plugins.filter((h3) => s.includes(h3.key))
|
|
@@ -44305,16 +44335,16 @@ Actual: ` + p3.attribValue
|
|
|
44305
44335
|
}
|
|
44306
44336
|
});
|
|
44307
44337
|
e.initDefaultStyles(c3);
|
|
44308
|
-
const p3 =
|
|
44338
|
+
const p3 = Rk(l.doc, f3, e, n);
|
|
44309
44339
|
return f3.destroy(), document.body.removeChild(c3), F.create(t.state.doc, p3);
|
|
44310
44340
|
};
|
|
44311
|
-
function
|
|
44341
|
+
function Rk(t, e, n, r) {
|
|
44312
44342
|
const o = [], { pageSize: i3, pageMargins: s } = n.converter.pageStyles, a = i3.height * 96;
|
|
44313
44343
|
n.options.scale;
|
|
44314
44344
|
let l = 1, c3 = a, d = null, u = null;
|
|
44315
|
-
const f3 =
|
|
44345
|
+
const f3 = kn$2(l, "headerIds", n), p3 = mi$1(s, i3, r, f3), h3 = yi$1({ editor: n, header: p3, isFirstHeader: true });
|
|
44316
44346
|
o.push(V.widget(0, h3, { key: "stable-key" }));
|
|
44317
|
-
const m =
|
|
44347
|
+
const m = kn$2(l, "footerIds", n), g = gi$1(s, i3, r, m);
|
|
44318
44348
|
c3 -= p3.headerHeight + g.footerHeight;
|
|
44319
44349
|
let b = e?.coordsAtPos(t.content.size);
|
|
44320
44350
|
if (!b) return [];
|
|
@@ -44337,9 +44367,9 @@ Actual: ` + p3.attribValue
|
|
|
44337
44367
|
top: ne,
|
|
44338
44368
|
bottom: ve2,
|
|
44339
44369
|
pos: ke2
|
|
44340
|
-
} =
|
|
44370
|
+
} = Lk(e, j, c3);
|
|
44341
44371
|
l++;
|
|
44342
|
-
const lt2 =
|
|
44372
|
+
const lt2 = kn$2(l, "headerIds", n), Fe2 = kn$2(l, "footerIds", n);
|
|
44343
44373
|
u = mi$1(s, i3, r, lt2), d = gi$1(s, i3, r, Fe2, l - 1);
|
|
44344
44374
|
const ct2 = c3 - ve2, { node: qe2 } = Yl$1(ct2), Ne2 = V.widget(ke2, qe2, { key: "stable-key" });
|
|
44345
44375
|
o.push(Ne2);
|
|
@@ -44348,7 +44378,7 @@ Actual: ` + p3.attribValue
|
|
|
44348
44378
|
}
|
|
44349
44379
|
});
|
|
44350
44380
|
let w = t.content.size;
|
|
44351
|
-
const C = e.coordsAtPos(w), y =
|
|
44381
|
+
const C = e.coordsAtPos(w), y = kn$2(l, "headerIds", n), S = kn$2(l, "footerIds", n);
|
|
44352
44382
|
u = mi$1(s, i3, r, y), d = gi$1(s, i3, r, S, l);
|
|
44353
44383
|
const k = c3 - C.bottom, { node: A } = Yl$1(k), L3 = V.widget(t.content.size, A, { key: "stable-key" });
|
|
44354
44384
|
o.push(L3);
|
|
@@ -44393,7 +44423,7 @@ Actual: ` + p3.attribValue
|
|
|
44393
44423
|
}
|
|
44394
44424
|
return e && (d.appendChild(e.section), l += e.headerHeight), c3.style.height = l + "px", c3.style.minHeight = l + "px", c3.style.maxHeight = l + "px", d.style.height = l + "px", c3.style.width = "100px", c3.style.marginLeft = a.left * -96 + "px", r !== null && (c3.style.position = "absolute", c3.style.bottom = r + "px"), c3;
|
|
44395
44425
|
}
|
|
44396
|
-
function
|
|
44426
|
+
function Lk(t, e, n) {
|
|
44397
44427
|
let r = e - 1;
|
|
44398
44428
|
const o = { top: 0, bottom: 0, pos: 0 };
|
|
44399
44429
|
for (; r > 0; ) {
|
|
@@ -44411,7 +44441,7 @@ Actual: ` + p3.attribValue
|
|
|
44411
44441
|
const e = t.view.state.tr;
|
|
44412
44442
|
e.setMeta("forceUpdatePagination", true), t.view.dispatch(e);
|
|
44413
44443
|
});
|
|
44414
|
-
},
|
|
44444
|
+
}, Fk = () => [
|
|
44415
44445
|
Eu$1,
|
|
44416
44446
|
Qd$1,
|
|
44417
44447
|
jd$1,
|
|
@@ -44434,8 +44464,8 @@ Actual: ` + p3.attribValue
|
|
|
44434
44464
|
Kd$1,
|
|
44435
44465
|
Nu$1,
|
|
44436
44466
|
Pu$1,
|
|
44437
|
-
|
|
44438
|
-
|
|
44467
|
+
Vw,
|
|
44468
|
+
Tk,
|
|
44439
44469
|
Du$1,
|
|
44440
44470
|
Ru$1,
|
|
44441
44471
|
Jd$1,
|
|
@@ -44449,13 +44479,13 @@ Actual: ` + p3.attribValue
|
|
|
44449
44479
|
zu$1,
|
|
44450
44480
|
_u$1,
|
|
44451
44481
|
Tu$1
|
|
44452
|
-
],
|
|
44482
|
+
], Bk = () => [
|
|
44453
44483
|
Eu$1,
|
|
44454
44484
|
Qd$1,
|
|
44455
44485
|
jd$1,
|
|
44456
|
-
e0,
|
|
44457
|
-
t0,
|
|
44458
44486
|
n0,
|
|
44487
|
+
r0,
|
|
44488
|
+
o0,
|
|
44459
44489
|
Gd$1,
|
|
44460
44490
|
Wd$1,
|
|
44461
44491
|
Ud$1,
|
|
@@ -44469,17 +44499,17 @@ Actual: ` + p3.attribValue
|
|
|
44469
44499
|
iu$1,
|
|
44470
44500
|
au$1,
|
|
44471
44501
|
lu$1,
|
|
44472
|
-
|
|
44502
|
+
Nb,
|
|
44473
44503
|
Lu$1,
|
|
44474
|
-
|
|
44504
|
+
s0,
|
|
44475
44505
|
Zd$1,
|
|
44476
44506
|
qd$1,
|
|
44477
44507
|
Kd$1,
|
|
44478
44508
|
Nu$1,
|
|
44479
44509
|
Pu$1,
|
|
44480
44510
|
Jd$1,
|
|
44481
|
-
|
|
44482
|
-
|
|
44511
|
+
nb,
|
|
44512
|
+
kb,
|
|
44483
44513
|
vu$1,
|
|
44484
44514
|
Cu$1,
|
|
44485
44515
|
Su$1,
|
|
@@ -44487,20 +44517,20 @@ Actual: ` + p3.attribValue
|
|
|
44487
44517
|
Ou$1,
|
|
44488
44518
|
Yd$1,
|
|
44489
44519
|
Tu$1,
|
|
44490
|
-
|
|
44520
|
+
Iw,
|
|
44491
44521
|
Du$1,
|
|
44492
|
-
|
|
44493
|
-
|
|
44494
|
-
|
|
44522
|
+
Sb,
|
|
44523
|
+
Tb,
|
|
44524
|
+
_w,
|
|
44495
44525
|
Bu$1,
|
|
44496
44526
|
zu$1,
|
|
44497
44527
|
_u$1,
|
|
44498
|
-
|
|
44499
|
-
|
|
44528
|
+
i0,
|
|
44529
|
+
Ek,
|
|
44500
44530
|
Ru$1,
|
|
44501
|
-
|
|
44502
|
-
|
|
44503
|
-
|
|
44531
|
+
Jb,
|
|
44532
|
+
Pw,
|
|
44533
|
+
Rw
|
|
44504
44534
|
];
|
|
44505
44535
|
const Tp = (e, t) => {
|
|
44506
44536
|
let n = e.replace(/[^0-9.]/g, "");
|
|
@@ -44608,7 +44638,7 @@ Actual: ` + p3.attribValue
|
|
|
44608
44638
|
}, null, 4)) : createCommentVNode("", true)
|
|
44609
44639
|
]));
|
|
44610
44640
|
}
|
|
44611
|
-
}, Vl = /* @__PURE__ */
|
|
44641
|
+
}, Vl = /* @__PURE__ */ vk(Kl, [["__scopeId", "data-v-6d7523ab"]]), Ul = {
|
|
44612
44642
|
key: 1,
|
|
44613
44643
|
class: "button-label"
|
|
44614
44644
|
}, Gl = { key: 2 }, Xl = ["placeholder", "onKeydown", "id"], ql = ["placeholder", "onKeydown", "id"], Yl = ["innerHTML"], Zl = {
|
|
@@ -44720,7 +44750,7 @@ Actual: ` + p3.attribValue
|
|
|
44720
44750
|
], 2)
|
|
44721
44751
|
], 6));
|
|
44722
44752
|
}
|
|
44723
|
-
}, Xn$1 = /* @__PURE__ */
|
|
44753
|
+
}, Xn$1 = /* @__PURE__ */ vk(Zl, [["__scopeId", "data-v-33900b15"]]), Jl = { class: "toolbar-separator" }, Ql = {
|
|
44724
44754
|
__name: "ToolbarSeparator",
|
|
44725
44755
|
props: {
|
|
44726
44756
|
active: {
|
|
@@ -44734,7 +44764,7 @@ Actual: ` + p3.attribValue
|
|
|
44734
44764
|
createBaseVNode("div", { class: "separator-inner" }, null, -1)
|
|
44735
44765
|
])));
|
|
44736
44766
|
}
|
|
44737
|
-
}, ea = /* @__PURE__ */
|
|
44767
|
+
}, ea = /* @__PURE__ */ vk(Ql, [["__scopeId", "data-v-ac2ee4f9"]]), ta = { class: "overflow-menu" }, na = { class: "overflow-menu-trigger" }, ra = {
|
|
44738
44768
|
key: 0,
|
|
44739
44769
|
class: "overflow-menu_items"
|
|
44740
44770
|
}, oa = {
|
|
@@ -44774,7 +44804,7 @@ Actual: ` + p3.attribValue
|
|
|
44774
44804
|
])) : createCommentVNode("", true)
|
|
44775
44805
|
]));
|
|
44776
44806
|
}
|
|
44777
|
-
}, ia = /* @__PURE__ */
|
|
44807
|
+
}, ia = /* @__PURE__ */ vk(oa, [["__scopeId", "data-v-ca29bf1d"]]);
|
|
44778
44808
|
function sa(e) {
|
|
44779
44809
|
let t = ".", n = "__", r = "--", o;
|
|
44780
44810
|
if (e) {
|
|
@@ -51788,7 +51818,7 @@ ${t}
|
|
|
51788
51818
|
], 2))), 128))
|
|
51789
51819
|
], 4));
|
|
51790
51820
|
}
|
|
51791
|
-
}, Yt$1 = /* @__PURE__ */
|
|
51821
|
+
}, Yt$1 = /* @__PURE__ */ vk($p, [["__scopeId", "data-v-a19e1b9f"]]), zp = {
|
|
51792
51822
|
__name: "Toolbar",
|
|
51793
51823
|
emits: ["command", "toggle", "select"],
|
|
51794
51824
|
setup(e, { emit: t }) {
|
|
@@ -51831,7 +51861,7 @@ ${t}
|
|
|
51831
51861
|
}, null, 8, ["toolbar-items"])) : createCommentVNode("", true)
|
|
51832
51862
|
]));
|
|
51833
51863
|
}
|
|
51834
|
-
}, Ip = /* @__PURE__ */
|
|
51864
|
+
}, Ip = /* @__PURE__ */ vk(zp, [["__scopeId", "data-v-4b88e275"]]);
|
|
51835
51865
|
async function c$3(o, t) {
|
|
51836
51866
|
const e = new Et$1();
|
|
51837
51867
|
return o.forEach((i3, n) => {
|
|
@@ -52071,7 +52101,7 @@ ${t}
|
|
|
52071
52101
|
}, null, 8, qt)
|
|
52072
52102
|
]));
|
|
52073
52103
|
}
|
|
52074
|
-
}, Kt = /* @__PURE__ */
|
|
52104
|
+
}, Kt = /* @__PURE__ */ vk(Gt, [["__scopeId", "data-v-d6fae878"]]), Xt = { class: "link-input-ctn" }, Zt = {
|
|
52075
52105
|
key: 0,
|
|
52076
52106
|
class: "link-title"
|
|
52077
52107
|
}, Yt = {
|
|
@@ -52190,7 +52220,7 @@ ${t}
|
|
|
52190
52220
|
])) : createCommentVNode("", true)
|
|
52191
52221
|
]));
|
|
52192
52222
|
}
|
|
52193
|
-
}, cn = /* @__PURE__ */
|
|
52223
|
+
}, cn = /* @__PURE__ */ vk(rn, [["__scopeId", "data-v-6990d5b2"]]), dn = { class: "document-mode" }, un = ["onClick"], mn = { class: "document-mode-column icon-column" }, pn = ["innerHTML"], fn = { class: "document-mode-column text-column" }, hn = { class: "document-mode-type" }, gn = { class: "document-mode-description" }, vn = {
|
|
52194
52224
|
__name: "DocumentMode",
|
|
52195
52225
|
props: {
|
|
52196
52226
|
options: {
|
|
@@ -52220,7 +52250,7 @@ ${t}
|
|
|
52220
52250
|
], 10, un))), 256))
|
|
52221
52251
|
]));
|
|
52222
52252
|
}
|
|
52223
|
-
}, yn = /* @__PURE__ */
|
|
52253
|
+
}, yn = /* @__PURE__ */ vk(vn, [["__scopeId", "data-v-f86e1477"]]), bn = {
|
|
52224
52254
|
key: 0,
|
|
52225
52255
|
class: "linked-style-buttons"
|
|
52226
52256
|
}, kn = ["onClick"], wn = {
|
|
@@ -52237,18 +52267,18 @@ ${t}
|
|
|
52237
52267
|
o("select", i3);
|
|
52238
52268
|
};
|
|
52239
52269
|
return (i3, c3) => n.editor ? (openBlock(), createElementBlock("div", bn, [
|
|
52240
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(
|
|
52270
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(qk)(t.editor), (s) => (openBlock(), createElementBlock("div", {
|
|
52241
52271
|
class: "style-item",
|
|
52242
52272
|
onClick: (a) => e(s)
|
|
52243
52273
|
}, [
|
|
52244
52274
|
createBaseVNode("div", {
|
|
52245
52275
|
class: "style-name",
|
|
52246
|
-
style: normalizeStyle(unref(
|
|
52276
|
+
style: normalizeStyle(unref(Gb)(s, null, false))
|
|
52247
52277
|
}, toDisplayString(s.definition.attrs.name), 5)
|
|
52248
52278
|
], 8, kn))), 256))
|
|
52249
52279
|
])) : createCommentVNode("", true);
|
|
52250
52280
|
}
|
|
52251
|
-
}, Cn = /* @__PURE__ */
|
|
52281
|
+
}, Cn = /* @__PURE__ */ vk(wn, [["__scopeId", "data-v-97e3296a"]]), _n = ["onClick"], xn = ["innerHTML"], En = ["innerHTML"], Sn = {
|
|
52252
52282
|
__name: "IconGridRow",
|
|
52253
52283
|
props: {
|
|
52254
52284
|
icons: {
|
|
@@ -52290,7 +52320,7 @@ ${t}
|
|
|
52290
52320
|
], 8, _n))), 128))
|
|
52291
52321
|
]))), 128));
|
|
52292
52322
|
}
|
|
52293
|
-
}, qe = /* @__PURE__ */
|
|
52323
|
+
}, qe = /* @__PURE__ */ vk(Sn, [["__scopeId", "data-v-6a2a9a40"]]), Tn = { class: "option-grid-ctn" }, An = {
|
|
52294
52324
|
__name: "IconGrid",
|
|
52295
52325
|
props: {
|
|
52296
52326
|
icons: {
|
|
@@ -52327,7 +52357,7 @@ ${t}
|
|
|
52327
52357
|
], 64)) : createCommentVNode("", true)
|
|
52328
52358
|
]));
|
|
52329
52359
|
}
|
|
52330
|
-
}, Fn = /* @__PURE__ */
|
|
52360
|
+
}, Fn = /* @__PURE__ */ vk(An, [["__scopeId", "data-v-fa2949d8"]]), In = (t) => {
|
|
52331
52361
|
t.expand.value = false;
|
|
52332
52362
|
}, f = (t, l = null) => ({
|
|
52333
52363
|
label: l,
|
|
@@ -52460,7 +52490,7 @@ ${t}
|
|
|
52460
52490
|
createBaseVNode("div", $n, toDisplayString(n.value) + " x " + toDisplayString(e.value), 1)
|
|
52461
52491
|
]));
|
|
52462
52492
|
}
|
|
52463
|
-
}, Bn = /* @__PURE__ */
|
|
52493
|
+
}, Bn = /* @__PURE__ */ vk(Hn, [["__scopeId", "data-v-06352ab9"]]), Rn = { class: "toolbar-table-actions" }, On = ["onClick"], Nn = { class: "toolbar-table-actions__icon" }, zn = ["innerHTML"], Pn = { class: "toolbar-table-actions__label" }, Vn = {
|
|
52464
52494
|
__name: "TableActions",
|
|
52465
52495
|
props: {
|
|
52466
52496
|
options: {
|
|
@@ -52487,7 +52517,7 @@ ${t}
|
|
|
52487
52517
|
], 10, On))), 256))
|
|
52488
52518
|
]));
|
|
52489
52519
|
}
|
|
52490
|
-
}, Wn = /* @__PURE__ */
|
|
52520
|
+
}, Wn = /* @__PURE__ */ vk(Vn, [["__scopeId", "data-v-9a702d7f"]]), jn = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
|
|
52491
52521
|
`, re = (t) => {
|
|
52492
52522
|
t.expand.value = false;
|
|
52493
52523
|
}, Un = (t, l = false, o, n, e) => {
|
|
@@ -53264,7 +53294,7 @@ ${t}
|
|
|
53264
53294
|
};
|
|
53265
53295
|
a.setMeta(Ao$1, u), l.dispatch(a), n(o).then(
|
|
53266
53296
|
(r) => {
|
|
53267
|
-
let b = o.name.replace(" ", "_"), h3 =
|
|
53297
|
+
let b = o.name.replace(" ", "_"), h3 = Jk(l.state, s);
|
|
53268
53298
|
if (h3 == null)
|
|
53269
53299
|
return;
|
|
53270
53300
|
let y = { type: "remove", id: s }, _ = `word/media/${b}`, g = d.nodes.image.create({
|
|
@@ -53423,7 +53453,7 @@ ${t}
|
|
|
53423
53453
|
const o = zf$1(this.activeEditor), n = Md$1(this.activeEditor.state);
|
|
53424
53454
|
this.toolbarItems.forEach((e) => {
|
|
53425
53455
|
if (e.resetDisabled(), e.name.value === "linkedStyles")
|
|
53426
|
-
return this.activeEditor && !
|
|
53456
|
+
return this.activeEditor && !qk(this.activeEditor).length ? e.deactivate() : e.activate();
|
|
53427
53457
|
const i3 = o.find((s) => s.name === e.name.value);
|
|
53428
53458
|
i3 ? e.activate(i3.attrs) : e.deactivate();
|
|
53429
53459
|
const c3 = o.find((s) => s.name === "spacing");
|
|
@@ -53488,7 +53518,7 @@ ${t}
|
|
|
53488
53518
|
n.value || o.setDisabled(true);
|
|
53489
53519
|
});
|
|
53490
53520
|
}, nt = function() {
|
|
53491
|
-
this.activeEditor && (this.undoDepth =
|
|
53521
|
+
this.activeEditor && (this.undoDepth = jk(this.activeEditor.state), this.redoDepth = Wk(this.activeEditor.state));
|
|
53492
53522
|
}, he = function({ item: o, argument: n }, e) {
|
|
53493
53523
|
if (!n || !this.activeEditor) return;
|
|
53494
53524
|
let i3 = o.command;
|
|
@@ -53648,7 +53678,7 @@ ${t}
|
|
|
53648
53678
|
], 6))), 256))
|
|
53649
53679
|
], 4));
|
|
53650
53680
|
}
|
|
53651
|
-
}, oo = /* @__PURE__ */
|
|
53681
|
+
}, oo = /* @__PURE__ */ vk(no, [["__scopeId", "data-v-ad77036c"]]), io = { class: "super-editor-container" }, so = {
|
|
53652
53682
|
key: 1,
|
|
53653
53683
|
class: "placeholder-editor"
|
|
53654
53684
|
}, lo = { class: "placeholder-title" }, ao = {
|
|
@@ -53710,7 +53740,7 @@ ${t}
|
|
|
53710
53740
|
C.on("synced", A);
|
|
53711
53741
|
}
|
|
53712
53742
|
}, h3 = () => {
|
|
53713
|
-
const p3 =
|
|
53743
|
+
const p3 = Bk();
|
|
53714
53744
|
return n.options.pagination ? p3 : p3.filter((C) => C.name !== "pagination");
|
|
53715
53745
|
}, y = async ({ content: p3, media: C = {}, mediaFiles: A = {}, fonts: H3 = {} } = {}) => {
|
|
53716
53746
|
i3.value = new ji$1({
|
|
@@ -53821,7 +53851,7 @@ ${t}
|
|
|
53821
53851
|
]))
|
|
53822
53852
|
]));
|
|
53823
53853
|
}
|
|
53824
|
-
}, vo = /* @__PURE__ */
|
|
53854
|
+
}, vo = /* @__PURE__ */ vk(ao, [["__scopeId", "data-v-ff8f86f4"]]), ro = ["innerHTML"], co = {
|
|
53825
53855
|
__name: "SuperInput",
|
|
53826
53856
|
props: {
|
|
53827
53857
|
modelValue: {
|
|
@@ -53853,11 +53883,11 @@ ${t}
|
|
|
53853
53883
|
}, d = ({ editor: h3, transaction: y }) => {
|
|
53854
53884
|
c3.value = false, o("blur", { editor: h3, transaction: y });
|
|
53855
53885
|
}, u = async () => {
|
|
53856
|
-
|
|
53886
|
+
Vw.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = s, n.options.onFocus = a, n.options.onBlur = d, e.value = new ji$1({
|
|
53857
53887
|
mode: "text",
|
|
53858
53888
|
content: document.getElementById("currentContent"),
|
|
53859
53889
|
element: i3.value,
|
|
53860
|
-
extensions:
|
|
53890
|
+
extensions: Fk(),
|
|
53861
53891
|
users: n.users,
|
|
53862
53892
|
...n.options
|
|
53863
53893
|
});
|
|
@@ -53886,7 +53916,7 @@ ${t}
|
|
|
53886
53916
|
}, null, 512)
|
|
53887
53917
|
], 2));
|
|
53888
53918
|
}
|
|
53889
|
-
}, bo = /* @__PURE__ */
|
|
53919
|
+
}, bo = /* @__PURE__ */ vk(co, [["__scopeId", "data-v-4d5cff52"]]);
|
|
53890
53920
|
const DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
53891
53921
|
const PDF = "application/pdf";
|
|
53892
53922
|
const HTML = "text/html";
|
|
@@ -56102,7 +56132,7 @@ ${t}
|
|
|
56102
56132
|
});
|
|
56103
56133
|
addComment({ superdoc: superdoc2, comment: newComment });
|
|
56104
56134
|
});
|
|
56105
|
-
const trackedChanges =
|
|
56135
|
+
const trackedChanges = Yk.getTrackChanges(editor.state);
|
|
56106
56136
|
trackedChanges.forEach(({ mark }) => {
|
|
56107
56137
|
const foundComment = commentsList.value.find((i3) => i3.commentId === mark.attrs.id);
|
|
56108
56138
|
if (foundComment) {
|
|
@@ -56143,7 +56173,7 @@ ${t}
|
|
|
56143
56173
|
mode: "text",
|
|
56144
56174
|
isHeadless: true,
|
|
56145
56175
|
content: div,
|
|
56146
|
-
extensions:
|
|
56176
|
+
extensions: Fk()
|
|
56147
56177
|
});
|
|
56148
56178
|
return editor.getJSON().content[0];
|
|
56149
56179
|
};
|
|
@@ -56167,7 +56197,7 @@ ${t}
|
|
|
56167
56197
|
isHeadless: true,
|
|
56168
56198
|
content: commentTextJson,
|
|
56169
56199
|
loadFromSchema: true,
|
|
56170
|
-
extensions:
|
|
56200
|
+
extensions: Fk()
|
|
56171
56201
|
});
|
|
56172
56202
|
return editor.getHTML();
|
|
56173
56203
|
} catch (error) {
|
|
@@ -68639,7 +68669,7 @@ ${style2}
|
|
|
68639
68669
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68640
68670
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68641
68671
|
this.colorIndex = 0;
|
|
68642
|
-
this.version = "0.10.
|
|
68672
|
+
this.version = "0.10.14";
|
|
68643
68673
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68644
68674
|
this.superdocId = config.superdocId || v4();
|
|
68645
68675
|
this.colors = this.config.colors;
|
|
@@ -69048,11 +69078,11 @@ ${style2}
|
|
|
69048
69078
|
exports2.SuperDoc = SuperDoc;
|
|
69049
69079
|
exports2.compareVersions = compareVersions;
|
|
69050
69080
|
exports2.createZip = c$3;
|
|
69051
|
-
exports2.fieldAnnotationHelpers =
|
|
69081
|
+
exports2.fieldAnnotationHelpers = Xk;
|
|
69052
69082
|
exports2.getFileObject = getFileObject;
|
|
69053
|
-
exports2.getRichTextExtensions =
|
|
69083
|
+
exports2.getRichTextExtensions = Fk;
|
|
69054
69084
|
exports2.superEditorHelpers = Ad$1;
|
|
69055
|
-
exports2.trackChangesHelpers =
|
|
69085
|
+
exports2.trackChangesHelpers = Yk;
|
|
69056
69086
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
69057
69087
|
});
|
|
69058
69088
|
//# sourceMappingURL=superdoc.umd.js.map
|