@harbour-enterprises/superdoc 0.11.19 → 0.11.20
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/{index-MTg0RB9I.cjs → index-BXKGjuVW.cjs} +1 -1
- package/dist/chunks/{index-k2jVlnWa.es.js → index-CPZ-IxHT.es.js} +1 -1
- package/dist/chunks/{index-f-drtAbP.cjs → index-CqRwYOdx.cjs} +1 -1
- package/dist/chunks/{index-Gs0-9Zg-.es.js → index-Y7BlAr93.es.js} +2 -2
- package/dist/chunks/{super-editor.es-C5WxgouW.es.js → super-editor.es-Du1kHoDA.es.js} +476 -454
- package/dist/chunks/{super-editor.es-BpCrZwJM.cjs → super-editor.es-DvREqt6O.cjs} +25 -25
- package/dist/chunks/{url-BY6ThfSE.cjs → url-6Xu7gR4T.cjs} +1 -1
- package/dist/chunks/{url-C5LEOXW-.es.js → url-t15h9onH.es.js} +1 -1
- package/dist/chunks/{xml-js-DjJijnzm.es.js → xml-js-kwrvzyhm.es.js} +355 -366
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-DsBQa9mA.js → converter-CwMvN1V7.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BhZqF_Iv.js → docx-zipper-CW3YnwaW.js} +1 -1
- package/dist/super-editor/chunks/{editor-C1MQt5t_.js → editor-CR8riiuL.js} +522 -500
- package/dist/super-editor/chunks/{toolbar-CKwDSMyY.js → toolbar-BZ4Xi416.js} +2 -2
- package/dist/super-editor/converter.es.js +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/extensions/search/search.d.ts.map +1 -1
- 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 +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +460 -438
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-C-3oH1mO.cjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as De from "yjs";
|
|
2
2
|
import { UndoManager as KS, Item as JS, ContentType as XS, Text as YS, XmlElement as ZS } from "yjs";
|
|
3
|
-
import { g as Lh, c as Nb, r as me, a as Ce, b as Ee, o as xe, F as yt, d as In, n as cn, w as An, e as nt, t as tn, f as Pe, i as xt, h as mf, j as gn, k as qn, l as kn, m as bt, q as ji, s as Fb, u as gf, v as Hr, x as Ot, y as
|
|
3
|
+
import { g as Lh, c as Nb, r as me, a as Ce, b as Ee, o as xe, F as yt, d as In, n as cn, w as An, e as nt, t as tn, f as Pe, i as xt, h as mf, j as gn, k as qn, l as kn, m as bt, q as ji, s as Fb, u as gf, v as Hr, x as Ot, y as Re, z as Zi, A as to, B as Zt, C as we, D as Rt, E as zn, G as qi, H as QS, T as eE, I as Ar, J as ki, K as yf, L as zs, M as Ol, N as Pd, O as Ml, P as Dl, Q as tE, R as wf, S as nE, U as rE, V as oE, W as iE, X as Rb } from "./vue-DXpzqXur.es.js";
|
|
4
4
|
var sE = Object.defineProperty, Lb = (t) => {
|
|
5
5
|
throw TypeError(t);
|
|
6
6
|
}, aE = (t, e, n) => e in t ? sE(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, $a = (t, e, n) => aE(t, typeof e != "symbol" ? e + "" : e, n), lE = (t, e, n) => e.has(t) || Lb("Cannot " + n), Bb = (t, e, n) => e.has(t) ? Lb("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), wr = (t, e, n) => (lE(t, e, "access private method"), n), Qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof Lh < "u" ? Lh : typeof self < "u" ? self : {};
|
|
@@ -1279,7 +1279,7 @@ function vf() {
|
|
|
1279
1279
|
return Ta.exports;
|
|
1280
1280
|
}
|
|
1281
1281
|
var Wc = { exports: {} }, Ph;
|
|
1282
|
-
function
|
|
1282
|
+
function Ho() {
|
|
1283
1283
|
return Ph || (Ph = 1, typeof Object.create == "function" ? Wc.exports = function(t, e) {
|
|
1284
1284
|
e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
|
|
1285
1285
|
constructor: {
|
|
@@ -1350,20 +1350,20 @@ function LE(t) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
var br = [], mi = !1,
|
|
1353
|
+
var br = [], mi = !1, vo, il = -1;
|
|
1354
1354
|
function BE() {
|
|
1355
|
-
!mi || !
|
|
1355
|
+
!mi || !vo || (mi = !1, vo.length ? br = vo.concat(br) : il = -1, br.length && Ub());
|
|
1356
1356
|
}
|
|
1357
1357
|
function Ub() {
|
|
1358
1358
|
if (!mi) {
|
|
1359
1359
|
var t = qb(BE);
|
|
1360
1360
|
mi = !0;
|
|
1361
1361
|
for (var e = br.length; e; ) {
|
|
1362
|
-
for (
|
|
1363
|
-
|
|
1362
|
+
for (vo = br, br = []; ++il < e; )
|
|
1363
|
+
vo && vo[il].run();
|
|
1364
1364
|
il = -1, e = br.length;
|
|
1365
1365
|
}
|
|
1366
|
-
|
|
1366
|
+
vo = null, mi = !1, LE(t);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
vt.nextTick = function(t) {
|
|
@@ -2869,7 +2869,7 @@ function t1() {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
t.log = function() {
|
|
2871
2871
|
console.log("%s - %s", W(), t.format.apply(t, arguments));
|
|
2872
|
-
}, t.inherits =
|
|
2872
|
+
}, t.inherits = Ho(), t._extend = function(F, Q) {
|
|
2873
2873
|
if (!Q || !k(Q)) return F;
|
|
2874
2874
|
for (var ee = Object.keys(Q), ie = ee.length; ie--; )
|
|
2875
2875
|
F[ee[ie]] = Q[ee[ie]];
|
|
@@ -3287,7 +3287,7 @@ function o1() {
|
|
|
3287
3287
|
return o.isBuffer(J) || J instanceof i;
|
|
3288
3288
|
}
|
|
3289
3289
|
var l = n1(), c = r1(), u = c.getHighWaterMark, d = Hi().codes, p = d.ERR_INVALID_ARG_TYPE, f = d.ERR_METHOD_NOT_IMPLEMENTED, h = d.ERR_MULTIPLE_CALLBACK, m = d.ERR_STREAM_CANNOT_PIPE, y = d.ERR_STREAM_DESTROYED, g = d.ERR_STREAM_NULL_VALUES, v = d.ERR_STREAM_WRITE_AFTER_END, x = d.ERR_UNKNOWN_ENCODING, w = l.errorOrDestroy;
|
|
3290
|
-
|
|
3290
|
+
Ho()(N, r);
|
|
3291
3291
|
function C() {
|
|
3292
3292
|
}
|
|
3293
3293
|
function M(J, T, E) {
|
|
@@ -3502,7 +3502,7 @@ function Si() {
|
|
|
3502
3502
|
};
|
|
3503
3503
|
$u = s;
|
|
3504
3504
|
var e = i1(), n = o1();
|
|
3505
|
-
|
|
3505
|
+
Ho()(s, e);
|
|
3506
3506
|
for (var r = t(n.prototype), o = 0; o < r.length; o++) {
|
|
3507
3507
|
var i = r[o];
|
|
3508
3508
|
s.prototype[i] || (s.prototype[i] = n.prototype[i]);
|
|
@@ -3944,7 +3944,7 @@ function i1() {
|
|
|
3944
3944
|
a && a.debuglog ? l = a.debuglog("stream") : l = function() {
|
|
3945
3945
|
};
|
|
3946
3946
|
var c = vC(), u = n1(), d = r1(), p = d.getHighWaterMark, f = Hi().codes, h = f.ERR_INVALID_ARG_TYPE, m = f.ERR_STREAM_PUSH_AFTER_EOF, y = f.ERR_METHOD_NOT_IMPLEMENTED, g = f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, x, w;
|
|
3947
|
-
|
|
3947
|
+
Ho()(k, n);
|
|
3948
3948
|
var C = u.errorOrDestroy, M = ["error", "close", "destroy", "pause", "resume"];
|
|
3949
3949
|
function O(I, R, ae) {
|
|
3950
3950
|
if (typeof I.prependListener == "function") return I.prependListener(R, ae);
|
|
@@ -4267,7 +4267,7 @@ function s1() {
|
|
|
4267
4267
|
if (Tg) return Iu;
|
|
4268
4268
|
Tg = 1, Iu = a;
|
|
4269
4269
|
var t = Hi().codes, e = t.ERR_METHOD_NOT_IMPLEMENTED, n = t.ERR_MULTIPLE_CALLBACK, r = t.ERR_TRANSFORM_ALREADY_TRANSFORMING, o = t.ERR_TRANSFORM_WITH_LENGTH_0, i = Si();
|
|
4270
|
-
|
|
4270
|
+
Ho()(a, i);
|
|
4271
4271
|
function s(u, d) {
|
|
4272
4272
|
var p = this._transformState;
|
|
4273
4273
|
p.transforming = !1;
|
|
@@ -4326,7 +4326,7 @@ function CC() {
|
|
|
4326
4326
|
if (Og) return Nu;
|
|
4327
4327
|
Og = 1, Nu = e;
|
|
4328
4328
|
var t = s1();
|
|
4329
|
-
|
|
4329
|
+
Ho()(e, t);
|
|
4330
4330
|
function e(n) {
|
|
4331
4331
|
if (!(this instanceof e)) return new e(n);
|
|
4332
4332
|
t.call(this, n);
|
|
@@ -4403,7 +4403,7 @@ var Ru, Dg;
|
|
|
4403
4403
|
function $C() {
|
|
4404
4404
|
if (Dg) return Ru;
|
|
4405
4405
|
Dg = 1, Ru = n;
|
|
4406
|
-
var t = vf().EventEmitter, e =
|
|
4406
|
+
var t = vf().EventEmitter, e = Ho();
|
|
4407
4407
|
e(n, t), n.Readable = i1(), n.Writable = o1(), n.Duplex = Si(), n.Transform = s1(), n.PassThrough = CC(), n.finished = Cf(), n.pipeline = AC(), n.Stream = n;
|
|
4408
4408
|
function n() {
|
|
4409
4409
|
t.call(this);
|
|
@@ -5348,9 +5348,9 @@ var Af = {
|
|
|
5348
5348
|
checkFnExists: function(t, e) {
|
|
5349
5349
|
return t + "Fn" in e;
|
|
5350
5350
|
}
|
|
5351
|
-
}, OC = zb,
|
|
5351
|
+
}, OC = zb, Ye = $f, gi = Af.isArray, de, Ue;
|
|
5352
5352
|
function MC(t) {
|
|
5353
|
-
return de =
|
|
5353
|
+
return de = Ye.copyOptions(t), Ye.ensureFlagExists("ignoreDeclaration", de), Ye.ensureFlagExists("ignoreInstruction", de), Ye.ensureFlagExists("ignoreAttributes", de), Ye.ensureFlagExists("ignoreText", de), Ye.ensureFlagExists("ignoreComment", de), Ye.ensureFlagExists("ignoreCdata", de), Ye.ensureFlagExists("ignoreDoctype", de), Ye.ensureFlagExists("compact", de), Ye.ensureFlagExists("alwaysChildren", de), Ye.ensureFlagExists("addParent", de), Ye.ensureFlagExists("trim", de), Ye.ensureFlagExists("nativeType", de), Ye.ensureFlagExists("nativeTypeAttributes", de), Ye.ensureFlagExists("sanitize", de), Ye.ensureFlagExists("instructionHasAttributes", de), Ye.ensureFlagExists("captureSpacesBetweenElements", de), Ye.ensureAlwaysArrayExists(de), Ye.ensureKeyExists("declaration", de), Ye.ensureKeyExists("instruction", de), Ye.ensureKeyExists("attributes", de), Ye.ensureKeyExists("text", de), Ye.ensureKeyExists("comment", de), Ye.ensureKeyExists("cdata", de), Ye.ensureKeyExists("doctype", de), Ye.ensureKeyExists("type", de), Ye.ensureKeyExists("name", de), Ye.ensureKeyExists("elements", de), Ye.ensureKeyExists("parent", de), de;
|
|
5354
5354
|
}
|
|
5355
5355
|
function a1(t) {
|
|
5356
5356
|
var e = Number(t);
|
|
@@ -5688,7 +5688,7 @@ function oA(t) {
|
|
|
5688
5688
|
throw TypeError("Stringified UUID is invalid");
|
|
5689
5689
|
return n;
|
|
5690
5690
|
}
|
|
5691
|
-
function
|
|
5691
|
+
function so(t, e, n) {
|
|
5692
5692
|
t = t || {};
|
|
5693
5693
|
var r = t.random || (t.rng || tA)();
|
|
5694
5694
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, oA(r);
|
|
@@ -6456,12 +6456,12 @@ function E1(t, e, n, r) {
|
|
|
6456
6456
|
} else if (n.content.size)
|
|
6457
6457
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
6458
6458
|
let s = t.parent, a = s.content;
|
|
6459
|
-
return
|
|
6459
|
+
return $o(s, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
6460
6460
|
} else {
|
|
6461
6461
|
let { start: s, end: a } = lA(n, t);
|
|
6462
|
-
return
|
|
6462
|
+
return $o(i, A1(t, s, a, e, r));
|
|
6463
6463
|
}
|
|
6464
|
-
else return
|
|
6464
|
+
else return $o(i, Fl(t, e, r));
|
|
6465
6465
|
}
|
|
6466
6466
|
function C1(t, e) {
|
|
6467
6467
|
if (!e.type.compatibleContent(t.type))
|
|
@@ -6471,29 +6471,29 @@ function Hd(t, e, n) {
|
|
|
6471
6471
|
let r = t.node(n);
|
|
6472
6472
|
return C1(r, e.node(n)), r;
|
|
6473
6473
|
}
|
|
6474
|
-
function
|
|
6474
|
+
function Ao(t, e) {
|
|
6475
6475
|
let n = e.length - 1;
|
|
6476
6476
|
n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
|
|
6477
6477
|
}
|
|
6478
6478
|
function Es(t, e, n, r) {
|
|
6479
6479
|
let o = (e || t).node(n), i = 0, s = e ? e.index(n) : o.childCount;
|
|
6480
|
-
t && (i = t.index(n), t.depth > n ? i++ : t.textOffset && (
|
|
6480
|
+
t && (i = t.index(n), t.depth > n ? i++ : t.textOffset && (Ao(t.nodeAfter, r), i++));
|
|
6481
6481
|
for (let a = i; a < s; a++)
|
|
6482
|
-
|
|
6483
|
-
e && e.depth == n && e.textOffset &&
|
|
6482
|
+
Ao(o.child(a), r);
|
|
6483
|
+
e && e.depth == n && e.textOffset && Ao(e.nodeBefore, r);
|
|
6484
6484
|
}
|
|
6485
|
-
function
|
|
6485
|
+
function $o(t, e) {
|
|
6486
6486
|
return t.type.checkContent(e), t.copy(e);
|
|
6487
6487
|
}
|
|
6488
6488
|
function A1(t, e, n, r, o) {
|
|
6489
6489
|
let i = t.depth > o && Hd(t, e, o + 1), s = r.depth > o && Hd(n, r, o + 1), a = [];
|
|
6490
|
-
return Es(null, t, o, a), i && s && e.index(o) == n.index(o) ? (C1(i, s),
|
|
6490
|
+
return Es(null, t, o, a), i && s && e.index(o) == n.index(o) ? (C1(i, s), Ao($o(i, A1(t, e, n, r, o + 1)), a)) : (i && Ao($o(i, Fl(t, e, o + 1)), a), Es(e, n, o, a), s && Ao($o(s, Fl(n, r, o + 1)), a)), Es(r, null, o, a), new ge(a);
|
|
6491
6491
|
}
|
|
6492
6492
|
function Fl(t, e, n) {
|
|
6493
6493
|
let r = [];
|
|
6494
6494
|
if (Es(null, t, n, r), t.depth > n) {
|
|
6495
6495
|
let o = Hd(t, e, n + 1);
|
|
6496
|
-
|
|
6496
|
+
Ao($o(o, Fl(t, e, n + 1)), r);
|
|
6497
6497
|
}
|
|
6498
6498
|
return Es(e, null, n, r), new ge(r);
|
|
6499
6499
|
}
|
|
@@ -6799,7 +6799,7 @@ let Rl = class {
|
|
|
6799
6799
|
}
|
|
6800
6800
|
};
|
|
6801
6801
|
const dA = /* @__PURE__ */ Object.create(null);
|
|
6802
|
-
let
|
|
6802
|
+
let To = class Wd {
|
|
6803
6803
|
/**
|
|
6804
6804
|
@internal
|
|
6805
6805
|
*/
|
|
@@ -7168,8 +7168,8 @@ let $o = class Wd {
|
|
|
7168
7168
|
return i.type.checkAttrs(i.attrs), i;
|
|
7169
7169
|
}
|
|
7170
7170
|
};
|
|
7171
|
-
|
|
7172
|
-
let pA = class Gd extends
|
|
7171
|
+
To.prototype.text = void 0;
|
|
7172
|
+
let pA = class Gd extends To {
|
|
7173
7173
|
/**
|
|
7174
7174
|
@internal
|
|
7175
7175
|
*/
|
|
@@ -7675,7 +7675,7 @@ let Lg = class F1 {
|
|
|
7675
7675
|
create(e = null, n, r) {
|
|
7676
7676
|
if (this.isText)
|
|
7677
7677
|
throw new Error("NodeType.create can't construct text nodes");
|
|
7678
|
-
return new
|
|
7678
|
+
return new To(this, this.computeAttrs(e), ge.from(n), rt.setFrom(r));
|
|
7679
7679
|
}
|
|
7680
7680
|
/**
|
|
7681
7681
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -7683,7 +7683,7 @@ let Lg = class F1 {
|
|
|
7683
7683
|
if it doesn't match.
|
|
7684
7684
|
*/
|
|
7685
7685
|
createChecked(e = null, n, r) {
|
|
7686
|
-
return n = ge.from(n), this.checkContent(n), new
|
|
7686
|
+
return n = ge.from(n), this.checkContent(n), new To(this, this.computeAttrs(e), n, rt.setFrom(r));
|
|
7687
7687
|
}
|
|
7688
7688
|
/**
|
|
7689
7689
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -7701,7 +7701,7 @@ let Lg = class F1 {
|
|
|
7701
7701
|
n = s.append(n);
|
|
7702
7702
|
}
|
|
7703
7703
|
let o = this.contentMatch.matchFragment(n), i = o && o.fillBefore(ge.empty, !0);
|
|
7704
|
-
return i ? new
|
|
7704
|
+
return i ? new To(this, e, n.append(i), rt.setFrom(r)) : null;
|
|
7705
7705
|
}
|
|
7706
7706
|
/**
|
|
7707
7707
|
Returns true if the given fragment is valid content for this node
|
|
@@ -7908,7 +7908,7 @@ let SA = class {
|
|
|
7908
7908
|
bound.
|
|
7909
7909
|
*/
|
|
7910
7910
|
nodeFromJSON(e) {
|
|
7911
|
-
return
|
|
7911
|
+
return To.fromJSON(this, e);
|
|
7912
7912
|
}
|
|
7913
7913
|
/**
|
|
7914
7914
|
Deserialize a mark from its JSON representation. This method is
|
|
@@ -8664,7 +8664,7 @@ let Xd = class {
|
|
|
8664
8664
|
get deletedAcross() {
|
|
8665
8665
|
return (this.delInfo & ll) > 0;
|
|
8666
8666
|
}
|
|
8667
|
-
},
|
|
8667
|
+
}, Ro = class ii {
|
|
8668
8668
|
/**
|
|
8669
8669
|
Create a position map. The modifications to the document are
|
|
8670
8670
|
represented as an array of numbers, in which each group of three
|
|
@@ -8760,7 +8760,7 @@ let Xd = class {
|
|
|
8760
8760
|
return e == 0 ? ii.empty : new ii(e < 0 ? [0, -e, 0] : [0, 0, e]);
|
|
8761
8761
|
}
|
|
8762
8762
|
};
|
|
8763
|
-
|
|
8763
|
+
Ro.empty = new Ro([]);
|
|
8764
8764
|
let Ei = class Yd {
|
|
8765
8765
|
/**
|
|
8766
8766
|
Create a new mapping with the given position maps.
|
|
@@ -8876,7 +8876,7 @@ let Kt = class {
|
|
|
8876
8876
|
and the new document.
|
|
8877
8877
|
*/
|
|
8878
8878
|
getMap() {
|
|
8879
|
-
return
|
|
8879
|
+
return Ro.empty;
|
|
8880
8880
|
}
|
|
8881
8881
|
/**
|
|
8882
8882
|
Try to merge this step with another one, to be applied directly
|
|
@@ -9108,7 +9108,7 @@ let Df = class Zd extends Kt {
|
|
|
9108
9108
|
}
|
|
9109
9109
|
};
|
|
9110
9110
|
Kt.jsonID("removeNodeMark", Df);
|
|
9111
|
-
let Pt = class
|
|
9111
|
+
let Pt = class mo extends Kt {
|
|
9112
9112
|
/**
|
|
9113
9113
|
The given `slice` should fit the 'gap' between `from` and
|
|
9114
9114
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -9125,24 +9125,24 @@ let Pt = class ho extends Kt {
|
|
|
9125
9125
|
return this.structure && Qd(e, this.from, this.to) ? en.fail("Structure replace would overwrite content") : en.fromReplace(e, this.from, this.to, this.slice);
|
|
9126
9126
|
}
|
|
9127
9127
|
getMap() {
|
|
9128
|
-
return new
|
|
9128
|
+
return new Ro([this.from, this.to - this.from, this.slice.size]);
|
|
9129
9129
|
}
|
|
9130
9130
|
invert(e) {
|
|
9131
|
-
return new
|
|
9131
|
+
return new mo(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
9132
9132
|
}
|
|
9133
9133
|
map(e) {
|
|
9134
9134
|
let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
9135
|
-
return n.deletedAcross && r.deletedAcross ? null : new
|
|
9135
|
+
return n.deletedAcross && r.deletedAcross ? null : new mo(n.pos, Math.max(n.pos, r.pos), this.slice);
|
|
9136
9136
|
}
|
|
9137
9137
|
merge(e) {
|
|
9138
|
-
if (!(e instanceof
|
|
9138
|
+
if (!(e instanceof mo) || e.structure || this.structure)
|
|
9139
9139
|
return null;
|
|
9140
9140
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
9141
9141
|
let n = this.slice.size + e.slice.size == 0 ? ve.empty : new ve(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
9142
|
-
return new
|
|
9142
|
+
return new mo(this.from, this.to + (e.to - e.from), n, this.structure);
|
|
9143
9143
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
9144
9144
|
let n = this.slice.size + e.slice.size == 0 ? ve.empty : new ve(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
9145
|
-
return new
|
|
9145
|
+
return new mo(e.from, this.to, n, this.structure);
|
|
9146
9146
|
} else
|
|
9147
9147
|
return null;
|
|
9148
9148
|
}
|
|
@@ -9156,7 +9156,7 @@ let Pt = class ho extends Kt {
|
|
|
9156
9156
|
static fromJSON(e, n) {
|
|
9157
9157
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
9158
9158
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
9159
|
-
return new
|
|
9159
|
+
return new mo(n.from, n.to, ve.fromJSON(e, n.slice), !!n.structure);
|
|
9160
9160
|
}
|
|
9161
9161
|
};
|
|
9162
9162
|
Kt.jsonID("replace", Pt);
|
|
@@ -9180,7 +9180,7 @@ let hn = class cl extends Kt {
|
|
|
9180
9180
|
return r ? en.fromReplace(e, this.from, this.to, r) : en.fail("Content does not fit in gap");
|
|
9181
9181
|
}
|
|
9182
9182
|
getMap() {
|
|
9183
|
-
return new
|
|
9183
|
+
return new Ro([
|
|
9184
9184
|
this.from,
|
|
9185
9185
|
this.gapFrom - this.from,
|
|
9186
9186
|
this.insert,
|
|
@@ -9435,7 +9435,7 @@ function UA(t, e, n = 1, r) {
|
|
|
9435
9435
|
}
|
|
9436
9436
|
t.step(new Pt(e, e, new ve(i.append(s), n, n), !0));
|
|
9437
9437
|
}
|
|
9438
|
-
function
|
|
9438
|
+
function ao(t, e) {
|
|
9439
9439
|
let n = t.resolve(e), r = n.index();
|
|
9440
9440
|
return X1(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
9441
9441
|
}
|
|
@@ -9822,7 +9822,7 @@ let rv = class ul extends Kt {
|
|
|
9822
9822
|
return en.fromReplace(e, this.pos, this.pos + 1, new ve(ge.from(o), 0, n.isLeaf ? 0 : 1));
|
|
9823
9823
|
}
|
|
9824
9824
|
getMap() {
|
|
9825
|
-
return
|
|
9825
|
+
return Ro.empty;
|
|
9826
9826
|
}
|
|
9827
9827
|
invert(e) {
|
|
9828
9828
|
return new ul(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -9857,7 +9857,7 @@ let ov = class ep extends Kt {
|
|
|
9857
9857
|
return en.ok(r);
|
|
9858
9858
|
}
|
|
9859
9859
|
getMap() {
|
|
9860
|
-
return
|
|
9860
|
+
return Ro.empty;
|
|
9861
9861
|
}
|
|
9862
9862
|
invert(e) {
|
|
9863
9863
|
return new ep(this.attr, e.attrs[this.attr]);
|
|
@@ -10844,7 +10844,7 @@ let Hu = class {
|
|
|
10844
10844
|
let o = new Hu(e.schema, e.plugins), i = new ms(o);
|
|
10845
10845
|
return o.fields.forEach((s) => {
|
|
10846
10846
|
if (s.name == "doc")
|
|
10847
|
-
i.doc =
|
|
10847
|
+
i.doc = To.fromJSON(e.schema, n.doc);
|
|
10848
10848
|
else if (s.name == "selection")
|
|
10849
10849
|
i.selection = Ve.fromJSON(i.doc, n.selection);
|
|
10850
10850
|
else if (s.name == "storedMarks")
|
|
@@ -10870,7 +10870,7 @@ function uv(t, e, n) {
|
|
|
10870
10870
|
}
|
|
10871
10871
|
return n;
|
|
10872
10872
|
}
|
|
10873
|
-
let
|
|
10873
|
+
let Xe = class {
|
|
10874
10874
|
/**
|
|
10875
10875
|
Create a plugin.
|
|
10876
10876
|
*/
|
|
@@ -10888,7 +10888,7 @@ const Vu = /* @__PURE__ */ Object.create(null);
|
|
|
10888
10888
|
function dv(t) {
|
|
10889
10889
|
return t in Vu ? t + "$" + ++Vu[t] : (Vu[t] = 0, t + "$");
|
|
10890
10890
|
}
|
|
10891
|
-
let
|
|
10891
|
+
let Ze = class {
|
|
10892
10892
|
/**
|
|
10893
10893
|
Create a plugin key.
|
|
10894
10894
|
*/
|
|
@@ -10933,7 +10933,7 @@ const Ll = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), r4 = (t) =>
|
|
|
10933
10933
|
document.removeEventListener("click", t.__clickOutsideHandler), delete t.__clickOutsideHandler;
|
|
10934
10934
|
}
|
|
10935
10935
|
};
|
|
10936
|
-
function
|
|
10936
|
+
function Qe(t, e = null, ...n) {
|
|
10937
10937
|
return typeof t == "function" ? e ? t.bind(e)(...n) : t(...n) : t;
|
|
10938
10938
|
}
|
|
10939
10939
|
function i4(t = {}) {
|
|
@@ -10992,7 +10992,7 @@ function ln(t) {
|
|
|
10992
10992
|
const e = t * 96 / 914400;
|
|
10993
10993
|
return Math.round(e);
|
|
10994
10994
|
}
|
|
10995
|
-
function
|
|
10995
|
+
function fo(t) {
|
|
10996
10996
|
if (t != null)
|
|
10997
10997
|
return typeof t == "string" && (t = parseFloat(t)), Math.round(t * 9525);
|
|
10998
10998
|
}
|
|
@@ -13756,11 +13756,11 @@ function j4(t) {
|
|
|
13756
13756
|
}
|
|
13757
13757
|
return {
|
|
13758
13758
|
name: "w:body",
|
|
13759
|
-
elements: [...
|
|
13759
|
+
elements: [...lo(t), e]
|
|
13760
13760
|
};
|
|
13761
13761
|
}
|
|
13762
13762
|
function bv(t) {
|
|
13763
|
-
const e =
|
|
13763
|
+
const e = lo(t), n = e.find((i) => i.name === "htmlAnnotation");
|
|
13764
13764
|
if (e.length === 1 && n)
|
|
13765
13765
|
return n.elements;
|
|
13766
13766
|
const r = q4(t.node);
|
|
@@ -13855,7 +13855,7 @@ function U4(t) {
|
|
|
13855
13855
|
attributes: b4
|
|
13856
13856
|
}, t];
|
|
13857
13857
|
}
|
|
13858
|
-
function
|
|
13858
|
+
function lo(t) {
|
|
13859
13859
|
const { content: e } = t.node;
|
|
13860
13860
|
if (!e) return [];
|
|
13861
13861
|
const n = [];
|
|
@@ -14105,7 +14105,7 @@ function Z4(t) {
|
|
|
14105
14105
|
}
|
|
14106
14106
|
function Q4(t) {
|
|
14107
14107
|
t.node = e6(t.node, t);
|
|
14108
|
-
const e =
|
|
14108
|
+
const e = lo(t), n = n6(t.node), r = o6(t.node, t);
|
|
14109
14109
|
return e.unshift(n), e.unshift(r), {
|
|
14110
14110
|
name: "w:tbl",
|
|
14111
14111
|
elements: e
|
|
@@ -14246,7 +14246,7 @@ function o6(t, e) {
|
|
|
14246
14246
|
};
|
|
14247
14247
|
}
|
|
14248
14248
|
function i6(t) {
|
|
14249
|
-
const e =
|
|
14249
|
+
const e = lo(t), n = s6(t.node);
|
|
14250
14250
|
return n.elements.length && e.unshift(n), {
|
|
14251
14251
|
name: "w:tr",
|
|
14252
14252
|
elements: e
|
|
@@ -14269,7 +14269,7 @@ function s6(t) {
|
|
|
14269
14269
|
};
|
|
14270
14270
|
}
|
|
14271
14271
|
function a6(t) {
|
|
14272
|
-
const e =
|
|
14272
|
+
const e = lo({
|
|
14273
14273
|
...t,
|
|
14274
14274
|
tableCell: t.node
|
|
14275
14275
|
}), n = l6(t.node);
|
|
@@ -14374,7 +14374,7 @@ function u6(t) {
|
|
|
14374
14374
|
return [e, n];
|
|
14375
14375
|
}
|
|
14376
14376
|
function iy(t) {
|
|
14377
|
-
const e =
|
|
14377
|
+
const e = Bo.markTypes.find((i) => i.type === t.type);
|
|
14378
14378
|
if (!e)
|
|
14379
14379
|
return {};
|
|
14380
14380
|
const n = { name: e.name, attributes: {} }, { attrs: r } = t;
|
|
@@ -14440,18 +14440,18 @@ function kv(t, e) {
|
|
|
14440
14440
|
let i = n.rId;
|
|
14441
14441
|
const s = n.src || n.imageSrc, { originalWidth: a, originalHeight: l } = d6(s);
|
|
14442
14442
|
let c = n.size ? {
|
|
14443
|
-
w:
|
|
14444
|
-
h:
|
|
14443
|
+
w: fo(n.size.width),
|
|
14444
|
+
h: fo(n.size.height)
|
|
14445
14445
|
} : e;
|
|
14446
14446
|
if (a && l) {
|
|
14447
14447
|
const m = ln(c.w), y = ln(c.h), { scaledWidth: g, scaledHeight: v } = p6(a, l, m, y);
|
|
14448
14448
|
c = {
|
|
14449
|
-
w:
|
|
14450
|
-
h:
|
|
14449
|
+
w: fo(g),
|
|
14450
|
+
h: fo(v)
|
|
14451
14451
|
};
|
|
14452
14452
|
}
|
|
14453
14453
|
if (o) {
|
|
14454
|
-
const m = o.attrs.colwidth.reduce((C, M) => C + M, 0), y = o.attrs.cellMargins?.left || 8, g = o.attrs.cellMargins?.right || 8, v =
|
|
14454
|
+
const m = o.attrs.colwidth.reduce((C, M) => C + M, 0), y = o.attrs.cellMargins?.left || 8, g = o.attrs.cellMargins?.right || 8, v = fo(m - (y + g)), { width: x, height: w } = k6(c.w, c.h, v);
|
|
14455
14455
|
x && w && (c = { w: x, h: w });
|
|
14456
14456
|
}
|
|
14457
14457
|
if (t.node.type === "image" && !i) {
|
|
@@ -14496,7 +14496,7 @@ function kv(t, e) {
|
|
|
14496
14496
|
name: "wp:posOffset",
|
|
14497
14497
|
elements: [{
|
|
14498
14498
|
type: "text",
|
|
14499
|
-
text:
|
|
14499
|
+
text: fo(n.marginOffset.left).toString()
|
|
14500
14500
|
}]
|
|
14501
14501
|
}]
|
|
14502
14502
|
},
|
|
@@ -14519,7 +14519,7 @@ function kv(t, e) {
|
|
|
14519
14519
|
name: "wp:posOffset",
|
|
14520
14520
|
elements: [{
|
|
14521
14521
|
type: "text",
|
|
14522
|
-
text:
|
|
14522
|
+
text: fo(n.marginOffset.top).toString()
|
|
14523
14523
|
}]
|
|
14524
14524
|
}]
|
|
14525
14525
|
},
|
|
@@ -14710,7 +14710,7 @@ function h6(t) {
|
|
|
14710
14710
|
const l = a.doc.toJSON();
|
|
14711
14711
|
return {
|
|
14712
14712
|
name: "htmlAnnotation",
|
|
14713
|
-
elements:
|
|
14713
|
+
elements: lo({
|
|
14714
14714
|
...t,
|
|
14715
14715
|
node: l
|
|
14716
14716
|
})
|
|
@@ -14839,7 +14839,7 @@ function w6(t) {
|
|
|
14839
14839
|
};
|
|
14840
14840
|
}
|
|
14841
14841
|
function b6(t) {
|
|
14842
|
-
const { node: e } = t, n =
|
|
14842
|
+
const { node: e } = t, n = lo(t), r = {
|
|
14843
14843
|
name: "v:shape",
|
|
14844
14844
|
attributes: {
|
|
14845
14845
|
...e.attrs.attributes,
|
|
@@ -14867,7 +14867,7 @@ function b6(t) {
|
|
|
14867
14867
|
function v6(t) {
|
|
14868
14868
|
const { node: e } = t, n = {
|
|
14869
14869
|
name: "w:txbxContent",
|
|
14870
|
-
elements:
|
|
14870
|
+
elements: lo(t)
|
|
14871
14871
|
};
|
|
14872
14872
|
return {
|
|
14873
14873
|
name: "v:textbox",
|
|
@@ -14896,17 +14896,17 @@ function x6(t) {
|
|
|
14896
14896
|
})]
|
|
14897
14897
|
};
|
|
14898
14898
|
}
|
|
14899
|
-
var
|
|
14899
|
+
var wo, Cv, Wu, Gu;
|
|
14900
14900
|
let ay = class {
|
|
14901
14901
|
constructor(e) {
|
|
14902
|
-
Bb(this,
|
|
14902
|
+
Bb(this, wo), this.converter = e;
|
|
14903
14903
|
}
|
|
14904
14904
|
schemaToXml(e, n = !1) {
|
|
14905
|
-
return wr(this,
|
|
14905
|
+
return wr(this, wo, Cv).call(this, e, n).join("");
|
|
14906
14906
|
}
|
|
14907
14907
|
};
|
|
14908
|
-
|
|
14909
|
-
const n = JSON.parse(JSON.stringify(t)), r = this.converter.declaration.attributes, o = `<?xml${Object.entries(r).map(([s, a]) => ` ${s}="${a}"`).join("")}?>`, i = wr(this,
|
|
14908
|
+
wo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
14909
|
+
const n = JSON.parse(JSON.stringify(t)), r = this.converter.declaration.attributes, o = `<?xml${Object.entries(r).map(([s, a]) => ` ${s}="${a}"`).join("")}?>`, i = wr(this, wo, Gu).call(this, n, e);
|
|
14910
14910
|
return [o, ...i];
|
|
14911
14911
|
}, Wu = function(t) {
|
|
14912
14912
|
if (t)
|
|
@@ -14917,7 +14917,7 @@ yo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
|
14917
14917
|
const { elements: r, attributes: o } = t;
|
|
14918
14918
|
let i = `<${n}`;
|
|
14919
14919
|
for (let l in o) {
|
|
14920
|
-
const c = typeof o[l] == "string" ? wr(this,
|
|
14920
|
+
const c = typeof o[l] == "string" ? wr(this, wo, Wu).call(this, o[l]) : o[l];
|
|
14921
14921
|
i += ` ${l}="${c}"`;
|
|
14922
14922
|
}
|
|
14923
14923
|
const s = n && (!r || !r.length);
|
|
@@ -14928,11 +14928,11 @@ yo = /* @__PURE__ */ new WeakSet(), Cv = function(t, e = falase) {
|
|
|
14928
14928
|
if (n === "w:instrText")
|
|
14929
14929
|
a.push(r[0].text);
|
|
14930
14930
|
else if (n === "w:t" || n === "w:delText" || n === "wp:posOffset") {
|
|
14931
|
-
const l = wr(this,
|
|
14931
|
+
const l = wr(this, wo, Wu).call(this, r[0].text);
|
|
14932
14932
|
a.push(l);
|
|
14933
14933
|
} else if (r)
|
|
14934
14934
|
for (let l of r) {
|
|
14935
|
-
const c = wr(this,
|
|
14935
|
+
const c = wr(this, wo, Gu).call(this, l);
|
|
14936
14936
|
if (!c) continue;
|
|
14937
14937
|
if (typeof c == "string") {
|
|
14938
14938
|
a.push(c);
|
|
@@ -15284,7 +15284,7 @@ const F6 = (t, e, n) => {
|
|
|
15284
15284
|
function Ti(t, e = [], n = null) {
|
|
15285
15285
|
const r = [], o = /* @__PURE__ */ new Set();
|
|
15286
15286
|
return t?.elements?.forEach((i) => {
|
|
15287
|
-
const s =
|
|
15287
|
+
const s = Bo.markTypes.filter((a) => a.name === i.name);
|
|
15288
15288
|
s.length || [
|
|
15289
15289
|
"w:shd",
|
|
15290
15290
|
"w:rStyle",
|
|
@@ -15372,7 +15372,7 @@ function U6(t) {
|
|
|
15372
15372
|
const e = t["w:fill"];
|
|
15373
15373
|
return e && e !== "auto" ? `#${e}` : m4(t?.["w:val"]) ? `#${t["w:val"]}` : h4(t?.["w:val"]) || null;
|
|
15374
15374
|
}
|
|
15375
|
-
function
|
|
15375
|
+
function Lo(t, e) {
|
|
15376
15376
|
const n = [], r = [], { attributes: o = {}, elements: i = [] } = t, { nodes: s, paragraphProperties: a = {}, runProperties: l = {} } = H6(i);
|
|
15377
15377
|
return i.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), l && l?.elements?.length && n.push(...Ti(l, r)), a && a.elements?.length && n.push(...Ti(a, r)), n.push(...B6(l, n)), a && a.elements?.length && (o.paragraphProperties = a), n && t.name === "w:p" && n.forEach((c) => {
|
|
15378
15378
|
const u = Object.keys(c.attrs ?? {})[0];
|
|
@@ -15392,9 +15392,9 @@ function H6(t) {
|
|
|
15392
15392
|
};
|
|
15393
15393
|
}
|
|
15394
15394
|
function fl(t) {
|
|
15395
|
-
return
|
|
15395
|
+
return Bo.allowedElements[t.name || t.type];
|
|
15396
15396
|
}
|
|
15397
|
-
const V6 = (t) => !!
|
|
15397
|
+
const V6 = (t) => !!Bo.propertyTypes[t.name || t.type];
|
|
15398
15398
|
function Ov(t) {
|
|
15399
15399
|
return t.filter((e) => e.name === "w:r").some((e) => e.elements.some((n) => n.name === "w:t"));
|
|
15400
15400
|
}
|
|
@@ -15412,7 +15412,7 @@ const W6 = (t) => {
|
|
|
15412
15412
|
}
|
|
15413
15413
|
if (!o)
|
|
15414
15414
|
return { nodes: [], consumed: 0 };
|
|
15415
|
-
const { name: i } = o, { attributes: s, elements: a } =
|
|
15415
|
+
const { name: i } = o, { attributes: s, elements: a } = Lo(o), l = n.handler({ ...t, insideTrackChange: !0, nodes: a }), c = i === "w:del" ? wt : Wt, u = {
|
|
15416
15416
|
id: s["w:id"],
|
|
15417
15417
|
date: s["w:date"],
|
|
15418
15418
|
author: s["w:author"],
|
|
@@ -15454,7 +15454,7 @@ const W6 = (t) => {
|
|
|
15454
15454
|
let a = n.handler(s)?.filter((u) => u) || [];
|
|
15455
15455
|
const l = i.elements?.some((u) => u.name === "w:rPr"), c = Y6(o, r);
|
|
15456
15456
|
if (l) {
|
|
15457
|
-
const { marks: u = [], attributes: d = {} } =
|
|
15457
|
+
const { marks: u = [], attributes: d = {} } = Lo(i), p = u.find((m) => m.type === "textStyle"), f = p && Object.keys(p.attrs).length > 0;
|
|
15458
15458
|
c.marks && !f && u.push(...c.marks), i.marks && u.push(...i.marks);
|
|
15459
15459
|
const h = rp(u);
|
|
15460
15460
|
a = a.map((m) => {
|
|
@@ -15468,7 +15468,7 @@ const W6 = (t) => {
|
|
|
15468
15468
|
if (!n)
|
|
15469
15469
|
return {};
|
|
15470
15470
|
const r = n.elements[0].elements.filter((o) => o.name === "w:style").find((o) => o.attributes["w:styleId"] === e) || {};
|
|
15471
|
-
return r ?
|
|
15471
|
+
return r ? Lo(r) : {};
|
|
15472
15472
|
}, Z6 = {
|
|
15473
15473
|
handlerName: "runNodeHandler",
|
|
15474
15474
|
handler: X6
|
|
@@ -15476,7 +15476,7 @@ const W6 = (t) => {
|
|
|
15476
15476
|
const { nodes: e, insideTrackChange: n } = t;
|
|
15477
15477
|
if (e.length === 0 || !(e[0].name === "w:t" || n && e[0].name === "w:delText"))
|
|
15478
15478
|
return { nodes: [], consumed: 0 };
|
|
15479
|
-
const r = e[0], { type: o } = r, { attributes: i, elements: s, marks: a = [] } =
|
|
15479
|
+
const r = e[0], { type: o } = r, { attributes: i, elements: s, marks: a = [] } = Lo(r);
|
|
15480
15480
|
let l;
|
|
15481
15481
|
if (s.length === 1) l = s[0].text;
|
|
15482
15482
|
else if (!s.length && "attributes" in r && r.attributes["xml:space"] === "preserve")
|
|
@@ -15565,7 +15565,7 @@ function Dv({
|
|
|
15565
15565
|
T && d[d.length - 1]?.content.push(T), w.seen = !0;
|
|
15566
15566
|
continue;
|
|
15567
15567
|
}
|
|
15568
|
-
const { attributes: C, elements: M, marks: O = [] } =
|
|
15568
|
+
const { attributes: C, elements: M, marks: O = [] } = Lo(w), N = Ff(m, l) || {}, { marks: k } = Lo(N), q = O.find((T) => T.type === "textStyle"), re = k?.find((T) => T.type === "textStyle"), {
|
|
15569
15569
|
listType: _,
|
|
15570
15570
|
listOrderingType: V,
|
|
15571
15571
|
ilvl: $,
|
|
@@ -16121,7 +16121,7 @@ const py = (t = []) => {
|
|
|
16121
16121
|
const { nodes: e, docx: n, nodeListHandler: r } = t;
|
|
16122
16122
|
if (!e || e.length === 0)
|
|
16123
16123
|
return { nodes: [], consumed: 0 };
|
|
16124
|
-
const o = e[0], { name: i } = o, { attributes: s, elements: a, marks: l = [] } =
|
|
16124
|
+
const o = e[0], { name: i } = o, { attributes: s, elements: a, marks: l = [] } = Lo(o);
|
|
16125
16125
|
if (i === "w:sdt")
|
|
16126
16126
|
return { nodes: [], consumed: 0 };
|
|
16127
16127
|
if (V6(o))
|
|
@@ -16349,7 +16349,7 @@ function z$({ docx: t }) {
|
|
|
16349
16349
|
docx: t
|
|
16350
16350
|
}), { attrs: O } = M[0], N = O["w14:paraId"];
|
|
16351
16351
|
return {
|
|
16352
|
-
commentId: f ||
|
|
16352
|
+
commentId: f || so(),
|
|
16353
16353
|
importedId: l,
|
|
16354
16354
|
creatorName: c,
|
|
16355
16355
|
creatorEmail: u,
|
|
@@ -16705,7 +16705,7 @@ const gs = class qv {
|
|
|
16705
16705
|
return;
|
|
16706
16706
|
}
|
|
16707
16707
|
}
|
|
16708
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16708
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.20") {
|
|
16709
16709
|
const r = "docProps/custom.xml";
|
|
16710
16710
|
e[r] || (e[r] = Uv());
|
|
16711
16711
|
const o = e["docProps/custom.xml"];
|
|
@@ -16788,7 +16788,7 @@ const gs = class qv {
|
|
|
16788
16788
|
this.documentInternalId = r?.attributes["w15:val"];
|
|
16789
16789
|
}
|
|
16790
16790
|
createDocumentIdElement() {
|
|
16791
|
-
const e =
|
|
16791
|
+
const e = so().toUpperCase();
|
|
16792
16792
|
return this.documentInternalId = e, {
|
|
16793
16793
|
type: "element",
|
|
16794
16794
|
name: "w15:docId",
|
|
@@ -16948,7 +16948,7 @@ Pv = function({ defs: t, exportType: e, commentsWithParaIds: n }) {
|
|
|
16948
16948
|
"w:numPr": "numberingProperties",
|
|
16949
16949
|
"w:tcPr": "tableCellProperties"
|
|
16950
16950
|
})), $a(gs, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
16951
|
-
let
|
|
16951
|
+
let Bo = gs;
|
|
16952
16952
|
function Y$(t) {
|
|
16953
16953
|
const e = "docProps/custom.xml";
|
|
16954
16954
|
t[e] || (t[e] = Uv());
|
|
@@ -16968,7 +16968,7 @@ function Y$(t) {
|
|
|
16968
16968
|
function Uv() {
|
|
16969
16969
|
return v4;
|
|
16970
16970
|
}
|
|
16971
|
-
function Hv(t = 2, e = "0.11.
|
|
16971
|
+
function Hv(t = 2, e = "0.11.20") {
|
|
16972
16972
|
return {
|
|
16973
16973
|
type: "element",
|
|
16974
16974
|
name: "property",
|
|
@@ -19794,12 +19794,12 @@ function hl(t) {
|
|
|
19794
19794
|
}
|
|
19795
19795
|
return Ju;
|
|
19796
19796
|
}
|
|
19797
|
-
const Sr = new
|
|
19797
|
+
const Sr = new Ze("history"), cT = new Ze("closeHistory");
|
|
19798
19798
|
function uT(t = {}) {
|
|
19799
19799
|
return t = {
|
|
19800
19800
|
depth: t.depth || 100,
|
|
19801
19801
|
newGroupDelay: t.newGroupDelay || 500
|
|
19802
|
-
}, new
|
|
19802
|
+
}, new Xe({
|
|
19803
19803
|
key: Sr,
|
|
19804
19804
|
state: {
|
|
19805
19805
|
init() {
|
|
@@ -19851,11 +19851,11 @@ let ct = class e2 {
|
|
|
19851
19851
|
}), this.config = {
|
|
19852
19852
|
...this.config,
|
|
19853
19853
|
...e
|
|
19854
|
-
}, this.name = this.config.name, this.config.addOptions && (this.options =
|
|
19854
|
+
}, this.name = this.config.name, this.config.addOptions && (this.options = Qe(
|
|
19855
19855
|
Be(this, "addOptions", {
|
|
19856
19856
|
name: this.name
|
|
19857
19857
|
})
|
|
19858
|
-
)), this.storage =
|
|
19858
|
+
)), this.storage = Qe(
|
|
19859
19859
|
Be(this, "addStorage", {
|
|
19860
19860
|
name: this.name,
|
|
19861
19861
|
options: this.options
|
|
@@ -19895,7 +19895,7 @@ const t2 = ct.create({
|
|
|
19895
19895
|
"Mod-y": () => this.editor.commands.redo()
|
|
19896
19896
|
};
|
|
19897
19897
|
}
|
|
19898
|
-
}),
|
|
19898
|
+
}), xo = globalThis || void 0 || self, Lt = function(t) {
|
|
19899
19899
|
for (var e = 0; ; e++)
|
|
19900
19900
|
if (t = t.previousSibling, !t)
|
|
19901
19901
|
return e;
|
|
@@ -19909,7 +19909,7 @@ const hr = function(t, e, n) {
|
|
|
19909
19909
|
return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
|
|
19910
19910
|
}, fT = function() {
|
|
19911
19911
|
sp = null;
|
|
19912
|
-
},
|
|
19912
|
+
}, Po = function(t, e, n, r) {
|
|
19913
19913
|
return n && (by(t, e, n, r, -1) || by(t, e, n, r, 1));
|
|
19914
19914
|
}, hT = /^(img|br|input|textarea|hr)$/i;
|
|
19915
19915
|
function by(t, e, n, r, o) {
|
|
@@ -19977,9 +19977,9 @@ function wa(t) {
|
|
|
19977
19977
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
19978
19978
|
}
|
|
19979
19979
|
const Tc = function(t) {
|
|
19980
|
-
return t.focusNode &&
|
|
19980
|
+
return t.focusNode && Po(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
19981
19981
|
};
|
|
19982
|
-
function
|
|
19982
|
+
function bo(t, e) {
|
|
19983
19983
|
let n = document.createEvent("Event");
|
|
19984
19984
|
return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
|
|
19985
19985
|
}
|
|
@@ -20003,9 +20003,9 @@ function bT(t, e, n) {
|
|
|
20003
20003
|
return { node: r.startContainer, offset: Math.min(_n(r.startContainer), r.startOffset) };
|
|
20004
20004
|
}
|
|
20005
20005
|
}
|
|
20006
|
-
const rr = typeof navigator < "u" ? navigator : null, vy = typeof document < "u" ? document : null,
|
|
20007
|
-
jn && +(/Firefox\/(\d+)/.exec(
|
|
20008
|
-
const cp = !un && /Chrome\/(\d+)/.exec(
|
|
20006
|
+
const rr = typeof navigator < "u" ? navigator : null, vy = typeof document < "u" ? document : null, co = rr && rr.userAgent || "", ap = /Edge\/(\d+)/.exec(co), n2 = /MSIE \d/.exec(co), lp = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(co), un = !!(n2 || lp || ap), Yr = n2 ? document.documentMode : lp ? +lp[1] : ap ? +ap[1] : 0, jn = !un && /gecko\/(\d+)/i.test(co);
|
|
20007
|
+
jn && +(/Firefox\/(\d+)/.exec(co) || [0, 0])[1];
|
|
20008
|
+
const cp = !un && /Chrome\/(\d+)/.exec(co), Ut = !!cp, r2 = cp ? +cp[1] : 0, nn = !un && !!rr && /Apple Computer/.test(rr.vendor), Di = nn && (/Mobile\/\w+/.test(co) || !!rr && rr.maxTouchPoints > 2), Dn = Di || (rr ? /Mac/.test(rr.platform) : !1), vT = rr ? /Win/.test(rr.platform) : !1, vr = /Android \d/.test(co), ba = !!vy && "webkitFontSmoothing" in vy.documentElement.style, xT = ba ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
20009
20009
|
function kT(t) {
|
|
20010
20010
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
20011
20011
|
return e ? {
|
|
@@ -20339,7 +20339,7 @@ let Sy = null, Ey = null, Cy = !1;
|
|
|
20339
20339
|
function RT(t, e, n) {
|
|
20340
20340
|
return Sy == e && Ey == n ? Cy : (Sy = e, Ey = n, Cy = n == "up" || n == "down" ? IT(t, e, n) : FT(t, e, n));
|
|
20341
20341
|
}
|
|
20342
|
-
const Nn = 0, Ay = 1,
|
|
20342
|
+
const Nn = 0, Ay = 1, ko = 2, or = 3;
|
|
20343
20343
|
class va {
|
|
20344
20344
|
constructor(e, n, r, o) {
|
|
20345
20345
|
this.parent = e, this.children = n, this.dom = r, this.contentDOM = o, this.dirty = Nn, r.pmViewDesc = this;
|
|
@@ -20622,7 +20622,7 @@ class va {
|
|
|
20622
20622
|
let f = u.focusNode.childNodes[u.focusOffset];
|
|
20623
20623
|
f && f.contentEditable == "false" && (o = !0);
|
|
20624
20624
|
}
|
|
20625
|
-
if (!(o || d && nn) &&
|
|
20625
|
+
if (!(o || d && nn) && Po(a.node, a.offset, u.anchorNode, u.anchorOffset) && Po(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
20626
20626
|
return;
|
|
20627
20627
|
let p = !1;
|
|
20628
20628
|
if ((c.extend || e == n) && !d) {
|
|
@@ -20655,19 +20655,19 @@ class va {
|
|
|
20655
20655
|
if (r == s ? e <= s && n >= r : e < s && n > r) {
|
|
20656
20656
|
let a = r + i.border, l = s - i.border;
|
|
20657
20657
|
if (e >= a && n <= l) {
|
|
20658
|
-
this.dirty = e == r || n == s ?
|
|
20658
|
+
this.dirty = e == r || n == s ? ko : Ay, e == a && n == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = or : i.markDirty(e - a, n - a);
|
|
20659
20659
|
return;
|
|
20660
20660
|
} else
|
|
20661
|
-
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ?
|
|
20661
|
+
i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? ko : or;
|
|
20662
20662
|
}
|
|
20663
20663
|
r = s;
|
|
20664
20664
|
}
|
|
20665
|
-
this.dirty =
|
|
20665
|
+
this.dirty = ko;
|
|
20666
20666
|
}
|
|
20667
20667
|
markParentsDirty() {
|
|
20668
20668
|
let e = 1;
|
|
20669
20669
|
for (let n = this.parent; n; n = n.parent, e++) {
|
|
20670
|
-
let r = e == 1 ?
|
|
20670
|
+
let r = e == 1 ? ko : Ay;
|
|
20671
20671
|
n.dirty < r && (n.dirty = r);
|
|
20672
20672
|
}
|
|
20673
20673
|
}
|
|
@@ -20844,7 +20844,7 @@ let jl = class up extends va {
|
|
|
20844
20844
|
l.syncToMarks(c.marks, r, e);
|
|
20845
20845
|
let f;
|
|
20846
20846
|
l.findNodeMatch(c, u, d, p) || a && e.state.selection.from > o && e.state.selection.to < o + c.nodeSize && (f = l.findIndexWithChild(i.node)) > -1 && l.updateNodeAt(c, u, d, f, e) || l.updateNextNode(c, u, d, e, p, o) || l.addNode(c, u, d, e, o), o += c.nodeSize;
|
|
20847
|
-
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty ==
|
|
20847
|
+
}), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == ko) && (s && this.protectLocalComposition(e, s), m2(this.contentDOM, this.children, e), Di && HT(this.dom));
|
|
20848
20848
|
}
|
|
20849
20849
|
localCompositionInfo(e, n) {
|
|
20850
20850
|
let { from: r, to: o } = e.state.selection;
|
|
@@ -21017,11 +21017,11 @@ const As = function(t) {
|
|
|
21017
21017
|
t && (this.nodeName = t);
|
|
21018
21018
|
};
|
|
21019
21019
|
As.prototype = /* @__PURE__ */ Object.create(null);
|
|
21020
|
-
const
|
|
21020
|
+
const So = [new As()];
|
|
21021
21021
|
function dp(t, e, n) {
|
|
21022
21022
|
if (t.length == 0)
|
|
21023
|
-
return
|
|
21024
|
-
let r = n ?
|
|
21023
|
+
return So;
|
|
21024
|
+
let r = n ? So[0] : new As(), o = [r];
|
|
21025
21025
|
for (let i = 0; i < t.length; i++) {
|
|
21026
21026
|
let s = t[i].type.attrs;
|
|
21027
21027
|
if (s) {
|
|
@@ -21035,16 +21035,16 @@ function dp(t, e, n) {
|
|
|
21035
21035
|
return o;
|
|
21036
21036
|
}
|
|
21037
21037
|
function g2(t, e, n, r) {
|
|
21038
|
-
if (n ==
|
|
21038
|
+
if (n == So && r == So)
|
|
21039
21039
|
return e;
|
|
21040
21040
|
let o = e;
|
|
21041
21041
|
for (let i = 0; i < r.length; i++) {
|
|
21042
21042
|
let s = r[i], a = n[i];
|
|
21043
21043
|
if (i) {
|
|
21044
21044
|
let l;
|
|
21045
|
-
a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = !0, l.appendChild(o), a =
|
|
21045
|
+
a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = !0, l.appendChild(o), a = So[0]), o = l;
|
|
21046
21046
|
}
|
|
21047
|
-
PT(o, a ||
|
|
21047
|
+
PT(o, a || So[0], s);
|
|
21048
21048
|
}
|
|
21049
21049
|
return o;
|
|
21050
21050
|
}
|
|
@@ -21071,7 +21071,7 @@ function PT(t, e, n) {
|
|
|
21071
21071
|
}
|
|
21072
21072
|
}
|
|
21073
21073
|
function y2(t, e, n) {
|
|
21074
|
-
return g2(t, t,
|
|
21074
|
+
return g2(t, t, So, dp(e, n, t.nodeType != 1));
|
|
21075
21075
|
}
|
|
21076
21076
|
function ql(t, e) {
|
|
21077
21077
|
if (t.length != e.length)
|
|
@@ -21147,7 +21147,7 @@ class zT {
|
|
|
21147
21147
|
}
|
|
21148
21148
|
updateNodeAt(e, n, r, o, i) {
|
|
21149
21149
|
let s = this.top.children[o];
|
|
21150
|
-
return s.dirty == or && s.dom == s.contentDOM && (s.dirty =
|
|
21150
|
+
return s.dirty == or && s.dom == s.contentDOM && (s.dirty = ko), s.update(e, n, r, i) ? (this.destroyBetween(this.index, o), this.index++, !0) : !1;
|
|
21151
21151
|
}
|
|
21152
21152
|
findIndexWithChild(e) {
|
|
21153
21153
|
for (; ; ) {
|
|
@@ -21179,7 +21179,7 @@ class zT {
|
|
|
21179
21179
|
if (!p && l.update(e, n, r, o))
|
|
21180
21180
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
21181
21181
|
if (!p && (d = this.recreateWrapper(l, e, n, r, o, s)))
|
|
21182
|
-
return this.destroyBetween(this.index, a), this.top.children[this.index] = d, d.contentDOM && (d.dirty =
|
|
21182
|
+
return this.destroyBetween(this.index, a), this.top.children[this.index] = d, d.contentDOM && (d.dirty = ko, d.updateChildren(o, s + 1), d.dirty = Nn), this.changed = !0, this.index++, !0;
|
|
21183
21183
|
break;
|
|
21184
21184
|
}
|
|
21185
21185
|
}
|
|
@@ -21397,7 +21397,7 @@ function Er(t, e = !1) {
|
|
|
21397
21397
|
if (b2(t, n), !!w2(t)) {
|
|
21398
21398
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Ut) {
|
|
21399
21399
|
let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
21400
|
-
if (r.anchorNode && o.anchorNode &&
|
|
21400
|
+
if (r.anchorNode && o.anchorNode && Po(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
21401
21401
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
21402
21402
|
return;
|
|
21403
21403
|
}
|
|
@@ -21474,7 +21474,7 @@ function v2(t) {
|
|
|
21474
21474
|
}
|
|
21475
21475
|
function KT(t) {
|
|
21476
21476
|
let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
|
|
21477
|
-
return
|
|
21477
|
+
return Po(e.node, e.offset, n.anchorNode, n.anchorOffset);
|
|
21478
21478
|
}
|
|
21479
21479
|
function fp(t, e) {
|
|
21480
21480
|
let { $anchor: n, $head: r } = t.selection, o = e > 0 ? n.max(r) : n.min(r), i = o.parent.inlineContent ? o.depth ? t.doc.resolve(e > 0 ? o.after() : o.before()) : null : o;
|
|
@@ -21971,7 +21971,7 @@ on.keydown = (t, e) => {
|
|
|
21971
21971
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Di && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
21972
21972
|
let r = Date.now();
|
|
21973
21973
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
21974
|
-
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t,
|
|
21974
|
+
t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, bo(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
21975
21975
|
}, 200);
|
|
21976
21976
|
} else t.someProp("handleKeyDown", (r) => r(t, n)) || t5(t, n) ? n.preventDefault() : Vr(t, "key");
|
|
21977
21977
|
};
|
|
@@ -22335,7 +22335,7 @@ rn.beforeinput = (t, e) => {
|
|
|
22335
22335
|
t.domObserver.flushSoon();
|
|
22336
22336
|
let { domChangeCount: n } = t.input;
|
|
22337
22337
|
setTimeout(() => {
|
|
22338
|
-
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t,
|
|
22338
|
+
if (t.input.domChangeCount != n || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, bo(8, "Backspace")))))
|
|
22339
22339
|
return;
|
|
22340
22340
|
let { $cursor: r } = t.state.selection;
|
|
22341
22341
|
r && r.pos > 0 && t.dispatch(t.state.tr.delete(r.pos - 1, r.pos).scrollIntoView());
|
|
@@ -22357,7 +22357,7 @@ function Gs(t, e) {
|
|
|
22357
22357
|
}
|
|
22358
22358
|
let jy = class F2 {
|
|
22359
22359
|
constructor(e, n) {
|
|
22360
|
-
this.toDOM = e, this.spec = n ||
|
|
22360
|
+
this.toDOM = e, this.spec = n || Oo, this.side = this.spec.side || 0;
|
|
22361
22361
|
}
|
|
22362
22362
|
map(e, n, r, o) {
|
|
22363
22363
|
let { pos: i, deleted: s } = e.mapResult(n.from + o, this.side < 0 ? -1 : 1);
|
|
@@ -22374,7 +22374,7 @@ let jy = class F2 {
|
|
|
22374
22374
|
}
|
|
22375
22375
|
}, Ts = class yp {
|
|
22376
22376
|
constructor(e, n) {
|
|
22377
|
-
this.attrs = e, this.spec = n ||
|
|
22377
|
+
this.attrs = e, this.spec = n || Oo;
|
|
22378
22378
|
}
|
|
22379
22379
|
map(e, n, r, o) {
|
|
22380
22380
|
let i = e.map(n.from + o, this.spec.inclusiveStart ? -1 : 1) - r, s = e.map(n.to + o, this.spec.inclusiveEnd ? 1 : -1) - r;
|
|
@@ -22394,7 +22394,7 @@ let jy = class F2 {
|
|
|
22394
22394
|
};
|
|
22395
22395
|
class Hf {
|
|
22396
22396
|
constructor(e, n) {
|
|
22397
|
-
this.attrs = e, this.spec = n ||
|
|
22397
|
+
this.attrs = e, this.spec = n || Oo;
|
|
22398
22398
|
}
|
|
22399
22399
|
map(e, n, r, o) {
|
|
22400
22400
|
let i = e.mapResult(n.from + o, 1);
|
|
@@ -22484,8 +22484,8 @@ let Ge = class ys {
|
|
|
22484
22484
|
return this.type instanceof jy;
|
|
22485
22485
|
}
|
|
22486
22486
|
};
|
|
22487
|
-
const ui = [],
|
|
22488
|
-
class
|
|
22487
|
+
const ui = [], Oo = {};
|
|
22488
|
+
class Fe {
|
|
22489
22489
|
/**
|
|
22490
22490
|
@internal
|
|
22491
22491
|
*/
|
|
@@ -22498,7 +22498,7 @@ class Re {
|
|
|
22498
22498
|
you must make a copy if you want need to preserve that.
|
|
22499
22499
|
*/
|
|
22500
22500
|
static create(e, n) {
|
|
22501
|
-
return n.length ? Vl(n, e, 0,
|
|
22501
|
+
return n.length ? Vl(n, e, 0, Oo) : jt;
|
|
22502
22502
|
}
|
|
22503
22503
|
/**
|
|
22504
22504
|
Find all decorations in this set which touch the given range
|
|
@@ -22528,7 +22528,7 @@ class Re {
|
|
|
22528
22528
|
document.
|
|
22529
22529
|
*/
|
|
22530
22530
|
map(e, n, r) {
|
|
22531
|
-
return this == jt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r ||
|
|
22531
|
+
return this == jt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Oo);
|
|
22532
22532
|
}
|
|
22533
22533
|
/**
|
|
22534
22534
|
@internal
|
|
@@ -22539,7 +22539,7 @@ class Re {
|
|
|
22539
22539
|
let l = this.local[a].map(e, r, o);
|
|
22540
22540
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
|
|
22541
22541
|
}
|
|
22542
|
-
return this.children.length ? O5(this.children, s || [], e, n, r, o, i) : s ? new
|
|
22542
|
+
return this.children.length ? O5(this.children, s || [], e, n, r, o, i) : s ? new Fe(s.sort(Mo), ui) : jt;
|
|
22543
22543
|
}
|
|
22544
22544
|
/**
|
|
22545
22545
|
Add the given array of decorations to the ones in the set,
|
|
@@ -22548,7 +22548,7 @@ class Re {
|
|
|
22548
22548
|
structure.
|
|
22549
22549
|
*/
|
|
22550
22550
|
add(e, n) {
|
|
22551
|
-
return n.length ? this == jt ?
|
|
22551
|
+
return n.length ? this == jt ? Fe.create(e, n) : this.addInner(e, n, 0) : this;
|
|
22552
22552
|
}
|
|
22553
22553
|
addInner(e, n, r) {
|
|
22554
22554
|
let o, i = 0;
|
|
@@ -22557,13 +22557,13 @@ class Re {
|
|
|
22557
22557
|
if (u = B2(n, a, c)) {
|
|
22558
22558
|
for (o || (o = this.children.slice()); i < o.length && o[i] < l; )
|
|
22559
22559
|
i += 3;
|
|
22560
|
-
o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, Vl(u, a, c + 1,
|
|
22560
|
+
o[i] == l ? o[i + 2] = o[i + 2].addInner(a, u, c + 1) : o.splice(i, 0, l, l + a.nodeSize, Vl(u, a, c + 1, Oo)), i += 3;
|
|
22561
22561
|
}
|
|
22562
22562
|
});
|
|
22563
22563
|
let s = L2(i ? P2(n) : n, -r);
|
|
22564
22564
|
for (let a = 0; a < s.length; a++)
|
|
22565
22565
|
s[a].type.valid(e, s[a]) || s.splice(a--, 1);
|
|
22566
|
-
return new
|
|
22566
|
+
return new Fe(s.length ? this.local.concat(s).sort(Mo) : this.local, o || this.children);
|
|
22567
22567
|
}
|
|
22568
22568
|
/**
|
|
22569
22569
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -22590,13 +22590,13 @@ class Re {
|
|
|
22590
22590
|
for (let a = 0; a < o.length; a++)
|
|
22591
22591
|
o[a].eq(s, n) && (o == this.local && (o = this.local.slice()), o.splice(a--, 1));
|
|
22592
22592
|
}
|
|
22593
|
-
return r == this.children && o == this.local ? this : o.length || r.length ? new
|
|
22593
|
+
return r == this.children && o == this.local ? this : o.length || r.length ? new Fe(o, r) : jt;
|
|
22594
22594
|
}
|
|
22595
22595
|
forChild(e, n) {
|
|
22596
22596
|
if (this == jt)
|
|
22597
22597
|
return this;
|
|
22598
22598
|
if (n.isLeaf)
|
|
22599
|
-
return
|
|
22599
|
+
return Fe.empty;
|
|
22600
22600
|
let r, o;
|
|
22601
22601
|
for (let a = 0; a < this.children.length; a += 3)
|
|
22602
22602
|
if (this.children[a] >= e) {
|
|
@@ -22612,7 +22612,7 @@ class Re {
|
|
|
22612
22612
|
}
|
|
22613
22613
|
}
|
|
22614
22614
|
if (o) {
|
|
22615
|
-
let a = new
|
|
22615
|
+
let a = new Fe(o.sort(Mo), ui);
|
|
22616
22616
|
return r ? new R2([a, r]) : a;
|
|
22617
22617
|
}
|
|
22618
22618
|
return r || jt;
|
|
@@ -22623,7 +22623,7 @@ class Re {
|
|
|
22623
22623
|
eq(e) {
|
|
22624
22624
|
if (this == e)
|
|
22625
22625
|
return !0;
|
|
22626
|
-
if (!(e instanceof
|
|
22626
|
+
if (!(e instanceof Fe) || this.local.length != e.local.length || this.children.length != e.children.length)
|
|
22627
22627
|
return !1;
|
|
22628
22628
|
for (let n = 0; n < this.local.length; n++)
|
|
22629
22629
|
if (!this.local[n].eq(e.local[n]))
|
|
@@ -22656,20 +22656,20 @@ class Re {
|
|
|
22656
22656
|
e(this);
|
|
22657
22657
|
}
|
|
22658
22658
|
}
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
const jt =
|
|
22659
|
+
Fe.empty = new Fe([], []);
|
|
22660
|
+
Fe.removeOverlap = Vf;
|
|
22661
|
+
const jt = Fe.empty;
|
|
22662
22662
|
let R2 = class di {
|
|
22663
22663
|
constructor(e) {
|
|
22664
22664
|
this.members = e;
|
|
22665
22665
|
}
|
|
22666
22666
|
map(e, n) {
|
|
22667
|
-
const r = this.members.map((o) => o.map(e, n,
|
|
22667
|
+
const r = this.members.map((o) => o.map(e, n, Oo));
|
|
22668
22668
|
return di.from(r);
|
|
22669
22669
|
}
|
|
22670
22670
|
forChild(e, n) {
|
|
22671
22671
|
if (n.isLeaf)
|
|
22672
|
-
return
|
|
22672
|
+
return Fe.empty;
|
|
22673
22673
|
let r = [];
|
|
22674
22674
|
for (let o = 0; o < this.members.length; o++) {
|
|
22675
22675
|
let i = this.members[o].forChild(e, n);
|
|
@@ -22698,7 +22698,7 @@ let R2 = class di {
|
|
|
22698
22698
|
n.push(i[s]);
|
|
22699
22699
|
}
|
|
22700
22700
|
}
|
|
22701
|
-
return n ? Vf(r ? n : n.sort(
|
|
22701
|
+
return n ? Vf(r ? n : n.sort(Mo)) : ui;
|
|
22702
22702
|
}
|
|
22703
22703
|
// Create a group for the given array of decoration sets, or return
|
|
22704
22704
|
// a single set when possible.
|
|
@@ -22709,7 +22709,7 @@ let R2 = class di {
|
|
|
22709
22709
|
case 1:
|
|
22710
22710
|
return e[0];
|
|
22711
22711
|
default:
|
|
22712
|
-
return new di(e.every((n) => n instanceof
|
|
22712
|
+
return new di(e.every((n) => n instanceof Fe) ? e : e.reduce((n, r) => n.concat(r instanceof Fe ? r : r.members), []));
|
|
22713
22713
|
}
|
|
22714
22714
|
}
|
|
22715
22715
|
forEachSet(e) {
|
|
@@ -22764,7 +22764,7 @@ function O5(t, e, n, r, o, i, s) {
|
|
|
22764
22764
|
a.splice(p, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
|
|
22765
22765
|
}
|
|
22766
22766
|
}
|
|
22767
|
-
return new
|
|
22767
|
+
return new Fe(e.sort(Mo), a);
|
|
22768
22768
|
}
|
|
22769
22769
|
function L2(t, e) {
|
|
22770
22770
|
if (!e || !t.length)
|
|
@@ -22813,12 +22813,12 @@ function Vl(t, e, n, r) {
|
|
|
22813
22813
|
u != jt && o.push(l, l + a.nodeSize, u);
|
|
22814
22814
|
}
|
|
22815
22815
|
});
|
|
22816
|
-
let s = L2(i ? P2(t) : t, -n).sort(
|
|
22816
|
+
let s = L2(i ? P2(t) : t, -n).sort(Mo);
|
|
22817
22817
|
for (let a = 0; a < s.length; a++)
|
|
22818
22818
|
s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
|
|
22819
|
-
return s.length || o.length ? new
|
|
22819
|
+
return s.length || o.length ? new Fe(s, o) : jt;
|
|
22820
22820
|
}
|
|
22821
|
-
function
|
|
22821
|
+
function Mo(t, e) {
|
|
22822
22822
|
return t.from - e.from || t.to - e.to;
|
|
22823
22823
|
}
|
|
22824
22824
|
function Vf(t) {
|
|
@@ -22840,7 +22840,7 @@ function Vf(t) {
|
|
|
22840
22840
|
return e;
|
|
22841
22841
|
}
|
|
22842
22842
|
function qy(t, e, n) {
|
|
22843
|
-
for (; e < t.length &&
|
|
22843
|
+
for (; e < t.length && Mo(n, t[e]) > 0; )
|
|
22844
22844
|
e++;
|
|
22845
22845
|
t.splice(e, 0, n);
|
|
22846
22846
|
}
|
|
@@ -22849,7 +22849,7 @@ function Qu(t) {
|
|
|
22849
22849
|
return t.someProp("decorations", (n) => {
|
|
22850
22850
|
let r = n(t.state);
|
|
22851
22851
|
r && r != jt && e.push(r);
|
|
22852
|
-
}), t.cursorWrapper && e.push(
|
|
22852
|
+
}), t.cursorWrapper && e.push(Fe.create(t.state.doc, [t.cursorWrapper.deco])), R2.from(e);
|
|
22853
22853
|
}
|
|
22854
22854
|
const D5 = {
|
|
22855
22855
|
childList: !0,
|
|
@@ -22920,7 +22920,7 @@ let I5 = class {
|
|
|
22920
22920
|
return Er(this.view);
|
|
22921
22921
|
if (un && Yr <= 11 && !this.view.state.selection.empty) {
|
|
22922
22922
|
let e = this.view.domSelectionRange();
|
|
22923
|
-
if (e.focusNode &&
|
|
22923
|
+
if (e.focusNode && Po(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
22924
22924
|
return this.flushSoon();
|
|
22925
22925
|
}
|
|
22926
22926
|
this.flush();
|
|
@@ -23023,7 +23023,7 @@ function F5(t) {
|
|
|
23023
23023
|
}
|
|
23024
23024
|
function Vy(t, e) {
|
|
23025
23025
|
let n = e.startContainer, r = e.startOffset, o = e.endContainer, i = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
|
|
23026
|
-
return
|
|
23026
|
+
return Po(s.node, s.offset, o, i) && ([n, r, o, i] = [o, i, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i };
|
|
23027
23027
|
}
|
|
23028
23028
|
function R5(t, e) {
|
|
23029
23029
|
if (e.getComposedRanges) {
|
|
@@ -23094,7 +23094,7 @@ function j5(t, e, n, r, o) {
|
|
|
23094
23094
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
23095
23095
|
let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, q = Bf(t, k);
|
|
23096
23096
|
if (q && !t.state.selection.eq(q)) {
|
|
23097
|
-
if (Ut && vr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (_) => _(t,
|
|
23097
|
+
if (Ut && vr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (_) => _(t, bo(13, "Enter"))))
|
|
23098
23098
|
return;
|
|
23099
23099
|
let re = t.state.tr.setSelection(q);
|
|
23100
23100
|
k == "pointer" ? re.setMeta("pointer", !0) : k == "key" && re.scrollIntoView(), i && re.setMeta("composition", i), t.dispatch(re);
|
|
@@ -23106,7 +23106,7 @@ function j5(t, e, n, r, o) {
|
|
|
23106
23106
|
let l = t.state.selection, c = B5(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), p, f;
|
|
23107
23107
|
t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (p = t.state.selection.to, f = "end") : (p = t.state.selection.from, f = "start"), t.input.lastKeyCode = null;
|
|
23108
23108
|
let h = H5(d.content, c.doc.content, c.from, p, f);
|
|
23109
|
-
if (h && t.input.domChangeCount++, (Di && t.input.lastIOSEnter > Date.now() - 225 || vr) && o.some((k) => k.nodeType == 1 && !z5.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23109
|
+
if (h && t.input.domChangeCount++, (Di && t.input.lastIOSEnter > Date.now() - 225 || vr) && o.some((k) => k.nodeType == 1 && !z5.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t, bo(13, "Enter")))) {
|
|
23110
23110
|
t.input.lastIOSEnter = 0;
|
|
23111
23111
|
return;
|
|
23112
23112
|
}
|
|
@@ -23125,17 +23125,17 @@ function j5(t, e, n, r, o) {
|
|
|
23125
23125
|
}
|
|
23126
23126
|
t.state.selection.from < t.state.selection.to && h.start == h.endB && t.state.selection instanceof We && (h.start > t.state.selection.from && h.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? h.start = t.state.selection.from : h.endA < t.state.selection.to && h.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (h.endB += t.state.selection.to - h.endA, h.endA = t.state.selection.to)), un && Yr <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == " " && (h.start--, h.endA--, h.endB--);
|
|
23127
23127
|
let m = c.doc.resolveNoCache(h.start - c.from), y = c.doc.resolveNoCache(h.endB - c.from), g = u.resolve(h.start), v = m.sameParent(y) && m.parent.inlineContent && g.end() >= h.endA, x;
|
|
23128
|
-
if ((Di && t.input.lastIOSEnter > Date.now() - 225 && (!v || o.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !v && m.pos < c.doc.content.size && (!m.sameParent(y) || !m.parent.inlineContent) && (x = Ve.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && x.head > m.pos) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23128
|
+
if ((Di && t.input.lastIOSEnter > Date.now() - 225 && (!v || o.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !v && m.pos < c.doc.content.size && (!m.sameParent(y) || !m.parent.inlineContent) && (x = Ve.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && x.head > m.pos) && t.someProp("handleKeyDown", (k) => k(t, bo(13, "Enter")))) {
|
|
23129
23129
|
t.input.lastIOSEnter = 0;
|
|
23130
23130
|
return;
|
|
23131
23131
|
}
|
|
23132
|
-
if (t.state.selection.anchor > h.start && U5(u, h.start, h.endA, m, y) && t.someProp("handleKeyDown", (k) => k(t,
|
|
23132
|
+
if (t.state.selection.anchor > h.start && U5(u, h.start, h.endA, m, y) && t.someProp("handleKeyDown", (k) => k(t, bo(8, "Backspace")))) {
|
|
23133
23133
|
vr && Ut && t.domObserver.suppressSelectionUpdates();
|
|
23134
23134
|
return;
|
|
23135
23135
|
}
|
|
23136
23136
|
Ut && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), vr && !v && m.start() != y.start() && y.parentOffset == 0 && m.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, y = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
|
|
23137
23137
|
t.someProp("handleKeyDown", function(k) {
|
|
23138
|
-
return k(t,
|
|
23138
|
+
return k(t, bo(13, "Enter"));
|
|
23139
23139
|
});
|
|
23140
23140
|
}, 20));
|
|
23141
23141
|
let w = h.start, C = h.endA, M, O, N;
|
|
@@ -23770,7 +23770,7 @@ Xs.encodeInto ? yO : wO, bO = (t, e) => {
|
|
|
23770
23770
|
remove: t.length - n - r,
|
|
23771
23771
|
insert: e.slice(n, e.length - r)
|
|
23772
23772
|
};
|
|
23773
|
-
}, _O = DO, dt = new
|
|
23773
|
+
}, _O = DO, dt = new Ze("y-sync"), Qr = new Ze("y-undo"), Fa = new Ze("yjs-cursor"), IO = Math.random, NO = (t) => t[Ks(IO() * t.length)], FO = (t) => t === void 0 ? null : t;
|
|
23774
23774
|
class RO {
|
|
23775
23775
|
constructor() {
|
|
23776
23776
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -23989,7 +23989,7 @@ e.sv.get(t.id.client) > t.id.clock && !De.isDeleted(e.ds, t.id), iM = [{ light:
|
|
|
23989
23989
|
mapping: i
|
|
23990
23990
|
} = {}) => {
|
|
23991
23991
|
let s = !1;
|
|
23992
|
-
const a = new cM(t, i), l = new
|
|
23992
|
+
const a = new cM(t, i), l = new Xe({
|
|
23993
23993
|
props: {
|
|
23994
23994
|
editable: (c) => {
|
|
23995
23995
|
const u = dt.getState(c);
|
|
@@ -24748,7 +24748,7 @@ const yM = () => {
|
|
|
24748
24748
|
class: "ProseMirror-yjs-selection"
|
|
24749
24749
|
}), CM = /^#[0-9a-fA-F]{6}$/, iw = (t, e, n, r, o) => {
|
|
24750
24750
|
const i = dt.getState(t), s = i.doc, a = [];
|
|
24751
|
-
return i.snapshot != null || i.prevSnapshot != null || i.binding.mapping.size === 0 ?
|
|
24751
|
+
return i.snapshot != null || i.prevSnapshot != null || i.binding.mapping.size === 0 ? Fe.create(t.doc, []) : (e.getStates().forEach((l, c) => {
|
|
24752
24752
|
if (n(s.clientID, c, l) && l.cursor != null) {
|
|
24753
24753
|
const u = l.user || {};
|
|
24754
24754
|
u.color == null ? u.color = "#ffa500" : CM.test(u.color) || console.warn("A user uses an unsupported color format", u), u.name == null && (u.name = `User: ${c}`);
|
|
@@ -24780,13 +24780,13 @@ const yM = () => {
|
|
|
24780
24780
|
);
|
|
24781
24781
|
}
|
|
24782
24782
|
}
|
|
24783
|
-
}),
|
|
24783
|
+
}), Fe.create(t.doc, a));
|
|
24784
24784
|
}, AM = (t, {
|
|
24785
24785
|
awarenessStateFilter: e = kM,
|
|
24786
24786
|
cursorBuilder: n = SM,
|
|
24787
24787
|
selectionBuilder: r = EM,
|
|
24788
24788
|
getSelection: o = (s) => s.selection
|
|
24789
|
-
} = {}, i = "cursor") => new
|
|
24789
|
+
} = {}, i = "cursor") => new Xe({
|
|
24790
24790
|
key: Fa,
|
|
24791
24791
|
state: {
|
|
24792
24792
|
init(s, a) {
|
|
@@ -24859,7 +24859,7 @@ const yM = () => {
|
|
|
24859
24859
|
const e = Qr.getState(t).undoManager;
|
|
24860
24860
|
if (e != null)
|
|
24861
24861
|
return e.redo(), !0;
|
|
24862
|
-
}, OM = /* @__PURE__ */ new Set(["paragraph"]), MM = (t, e) => !(t instanceof JS) || !(t.content instanceof XS) || !(t.content.type instanceof YS || t.content.type instanceof ZS && e.has(t.content.type.nodeName)) || t.content.type._length === 0, DM = ({ protectedNodes: t = OM, trackedOrigins: e = [], undoManager: n = null } = {}) => new
|
|
24862
|
+
}, OM = /* @__PURE__ */ new Set(["paragraph"]), MM = (t, e) => !(t instanceof JS) || !(t.content instanceof XS) || !(t.content.type instanceof YS || t.content.type instanceof ZS && e.has(t.content.type.nodeName)) || t.content.type._length === 0, DM = ({ protectedNodes: t = OM, trackedOrigins: e = [], undoManager: n = null } = {}) => new Xe({
|
|
24863
24863
|
key: Qr,
|
|
24864
24864
|
state: {
|
|
24865
24865
|
init: (r, o) => {
|
|
@@ -25072,7 +25072,7 @@ function rd(t, e, n = !0) {
|
|
|
25072
25072
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
25073
25073
|
}
|
|
25074
25074
|
function PM(t) {
|
|
25075
|
-
return new
|
|
25075
|
+
return new Xe({ props: { handleKeyDown: Jf(t) } });
|
|
25076
25076
|
}
|
|
25077
25077
|
function Jf(t) {
|
|
25078
25078
|
let e = BM(t);
|
|
@@ -25328,19 +25328,19 @@ Yl = /* @__PURE__ */ new WeakSet(), ex = function(t, e, n) {
|
|
|
25328
25328
|
...m ? m(o) : {}
|
|
25329
25329
|
};
|
|
25330
25330
|
}, {}), c = Ap({
|
|
25331
|
-
content:
|
|
25332
|
-
group:
|
|
25333
|
-
marks:
|
|
25334
|
-
inline:
|
|
25335
|
-
atom:
|
|
25336
|
-
selectable:
|
|
25337
|
-
draggable:
|
|
25338
|
-
code:
|
|
25339
|
-
defining:
|
|
25340
|
-
isolating:
|
|
25331
|
+
content: Qe(Be(o, "content", s)),
|
|
25332
|
+
group: Qe(Be(o, "group", s)),
|
|
25333
|
+
marks: Qe(Be(o, "marks", s)),
|
|
25334
|
+
inline: Qe(Be(o, "inline", s)),
|
|
25335
|
+
atom: Qe(Be(o, "atom", s)),
|
|
25336
|
+
selectable: Qe(Be(o, "selectable", s)),
|
|
25337
|
+
draggable: Qe(Be(o, "draggable", s)),
|
|
25338
|
+
code: Qe(Be(o, "code", s)),
|
|
25339
|
+
defining: Qe(Be(o, "defining", s)),
|
|
25340
|
+
isolating: Qe(Be(o, "isolating", s)),
|
|
25341
25341
|
attrs: a,
|
|
25342
25342
|
...l
|
|
25343
|
-
}), u =
|
|
25343
|
+
}), u = Qe(Be(o, "parseDOM", s));
|
|
25344
25344
|
u && (c.parseDOM = u.map((f) => Oe.insertExtensionAttrsToParseRule(f, i)));
|
|
25345
25345
|
const d = Be(o, "renderDOM", s);
|
|
25346
25346
|
d && (c.toDOM = (f) => d({
|
|
@@ -25361,13 +25361,13 @@ Yl = /* @__PURE__ */ new WeakSet(), ex = function(t, e, n) {
|
|
|
25361
25361
|
}, a = Object.fromEntries(
|
|
25362
25362
|
i.map((d) => [d.name, { default: d?.attribute?.default }])
|
|
25363
25363
|
), l = Ap({
|
|
25364
|
-
group:
|
|
25365
|
-
inclusive:
|
|
25366
|
-
excludes:
|
|
25367
|
-
spanning:
|
|
25368
|
-
code:
|
|
25364
|
+
group: Qe(Be(o, "group", s)),
|
|
25365
|
+
inclusive: Qe(Be(o, "inclusive", s)),
|
|
25366
|
+
excludes: Qe(Be(o, "excludes", s)),
|
|
25367
|
+
spanning: Qe(Be(o, "spanning", s)),
|
|
25368
|
+
code: Qe(Be(o, "code", s)),
|
|
25369
25369
|
attrs: a
|
|
25370
|
-
}), c =
|
|
25370
|
+
}), c = Qe(Be(o, "parseDOM", s));
|
|
25371
25371
|
c && (l.parseDOM = c.map((d) => Oe.insertExtensionAttrsToParseRule(d, i)));
|
|
25372
25372
|
const u = Be(o, "renderDOM", s);
|
|
25373
25373
|
return u && (l.toDOM = (d) => u({
|
|
@@ -25580,8 +25580,8 @@ const VM = (t, e) => {
|
|
|
25580
25580
|
}), a.dispatch(f), c = !0);
|
|
25581
25581
|
}), c;
|
|
25582
25582
|
}, WM = ({ editor: t, rules: e }) => {
|
|
25583
|
-
const n = new
|
|
25584
|
-
key: new
|
|
25583
|
+
const n = new Xe({
|
|
25584
|
+
key: new Ze("inputRulesPlugin"),
|
|
25585
25585
|
state: {
|
|
25586
25586
|
init() {
|
|
25587
25587
|
return null;
|
|
@@ -25811,7 +25811,7 @@ ix = function() {
|
|
|
25811
25811
|
editor: this.editor,
|
|
25812
25812
|
type: ea(t.name, this.schema)
|
|
25813
25813
|
};
|
|
25814
|
-
t.type === "mark" && (
|
|
25814
|
+
t.type === "mark" && (Qe(Be(t, "keepOnSplit", e)) ?? !0) && this.splittableMarks.push(t.name), Ie(this, Zl, sw).call(this, t);
|
|
25815
25815
|
}
|
|
25816
25816
|
}, /**
|
|
25817
25817
|
* Attach editor events to extension
|
|
@@ -25952,7 +25952,7 @@ function dx(t) {
|
|
|
25952
25952
|
const oD = (t, e) => {
|
|
25953
25953
|
let n = t.selection, r = n instanceof ze, o;
|
|
25954
25954
|
if (r) {
|
|
25955
|
-
if (n.node.isTextblock || !
|
|
25955
|
+
if (n.node.isTextblock || !ao(t.doc, n.from))
|
|
25956
25956
|
return !1;
|
|
25957
25957
|
o = n.from;
|
|
25958
25958
|
} else if (o = Y1(t.doc, n.from, -1), o == null)
|
|
@@ -25965,7 +25965,7 @@ const oD = (t, e) => {
|
|
|
25965
25965
|
}, iD = (t, e) => {
|
|
25966
25966
|
let n = t.selection, r;
|
|
25967
25967
|
if (n instanceof ze) {
|
|
25968
|
-
if (n.node.isTextblock || !
|
|
25968
|
+
if (n.node.isTextblock || !ao(t.doc, n.to))
|
|
25969
25969
|
return !1;
|
|
25970
25970
|
r = n.to;
|
|
25971
25971
|
} else if (r = Y1(t.doc, n.to, 1), r == null)
|
|
@@ -26050,7 +26050,7 @@ function aD(t) {
|
|
|
26050
26050
|
const lD = aD(), cD = (t, e) => (e && e(t.tr.setSelection(new Qn(t.doc))), !0);
|
|
26051
26051
|
function uD(t, e, n) {
|
|
26052
26052
|
let r = e.nodeBefore, o = e.nodeAfter, i = e.index();
|
|
26053
|
-
return !r || !o || !r.type.compatibleContent(o.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock ||
|
|
26053
|
+
return !r || !o || !r.type.compatibleContent(o.type) ? !1 : !r.content.size && e.parent.canReplace(i - 1, i) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(i, i + 1) || !(o.isTextblock || ao(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
|
|
26054
26054
|
}
|
|
26055
26055
|
function mx(t, e, n, r) {
|
|
26056
26056
|
let o = e.nodeBefore, i = e.nodeAfter, s, a, l = o.type.spec.isolating || i.type.spec.isolating;
|
|
@@ -26064,7 +26064,7 @@ function mx(t, e, n, r) {
|
|
|
26064
26064
|
h = ge.from(s[g].create(null, h));
|
|
26065
26065
|
h = ge.from(o.copy(h));
|
|
26066
26066
|
let m = t.tr.step(new hn(e.pos - 1, f, e.pos, f, new ve(h, 1, 0), s.length, !0)), y = m.doc.resolve(f + 2 * s.length);
|
|
26067
|
-
y.nodeAfter && y.nodeAfter.type == o.type &&
|
|
26067
|
+
y.nodeAfter && y.nodeAfter.type == o.type && ao(m.doc, y.pos) && m.join(y.pos), n(m.scrollIntoView());
|
|
26068
26068
|
}
|
|
26069
26069
|
return !0;
|
|
26070
26070
|
}
|
|
@@ -26535,7 +26535,7 @@ function KD(t, e, n, r) {
|
|
|
26535
26535
|
return !1;
|
|
26536
26536
|
o.lift(r, a);
|
|
26537
26537
|
let l = o.doc.resolve(o.mapping.map(i, -1) - 1);
|
|
26538
|
-
return
|
|
26538
|
+
return ao(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), !0;
|
|
26539
26539
|
}
|
|
26540
26540
|
function JD(t, e, n) {
|
|
26541
26541
|
let r = t.tr, o = n.parent;
|
|
@@ -26589,7 +26589,7 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
26589
26589
|
name: n.name,
|
|
26590
26590
|
options: n.options,
|
|
26591
26591
|
storage: n.storage
|
|
26592
|
-
}, o =
|
|
26592
|
+
}, o = Qe(Be(n, "group", r));
|
|
26593
26593
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
26594
26594
|
}, ZD = {
|
|
26595
26595
|
type: "element",
|
|
@@ -27740,14 +27740,14 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27740
27740
|
const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
27741
27741
|
if (r === void 0) return !0;
|
|
27742
27742
|
const o = t.doc.nodeAt(r);
|
|
27743
|
-
return n.node.type === o?.type &&
|
|
27743
|
+
return n.node.type === o?.type && ao(t.doc, n.pos) && t.join(n.pos), !0;
|
|
27744
27744
|
}, sd = (t, e) => {
|
|
27745
27745
|
const n = dn((i) => i.type === e)(t.selection);
|
|
27746
27746
|
if (!n) return !0;
|
|
27747
27747
|
const r = t.doc.resolve(n.start).after(n.depth);
|
|
27748
27748
|
if (r === void 0) return !0;
|
|
27749
27749
|
const o = t.doc.nodeAt(r);
|
|
27750
|
-
return n.node.type === o?.type &&
|
|
27750
|
+
return n.node.type === o?.type && ao(t.doc, r) && t.join(r), !0;
|
|
27751
27751
|
}, e8 = (t, e, n, r = {}) => (o) => {
|
|
27752
27752
|
const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: u, commands: d } = o, { extensions: p, splittableMarks: f } = i.extensionService, h = Ct(t, a.schema), m = Ct(e, a.schema), { selection: y, storedMarks: g } = a, { $from: v, $to: x } = y, w = v.blockRange(x), C = g || y.$to.parentOffset && y.$from.marks();
|
|
27753
27753
|
if (!w) return !1;
|
|
@@ -27942,8 +27942,8 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27942
27942
|
}), u8 = ct.create({
|
|
27943
27943
|
name: "editable",
|
|
27944
27944
|
addPmPlugins() {
|
|
27945
|
-
return [new
|
|
27946
|
-
key: new
|
|
27945
|
+
return [new Xe({
|
|
27946
|
+
key: new Ze("editable"),
|
|
27947
27947
|
props: {
|
|
27948
27948
|
editable: () => this.editor.options.editable
|
|
27949
27949
|
}
|
|
@@ -27953,8 +27953,8 @@ const YD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27953
27953
|
name: "editorFocus",
|
|
27954
27954
|
addPmPlugins() {
|
|
27955
27955
|
const t = this.editor;
|
|
27956
|
-
return [new
|
|
27957
|
-
key: new
|
|
27956
|
+
return [new Xe({
|
|
27957
|
+
key: new Ze("editorFocus"),
|
|
27958
27958
|
props: {
|
|
27959
27959
|
handleDOMEvents: {
|
|
27960
27960
|
focus: (e, n) => {
|
|
@@ -28018,7 +28018,7 @@ const th = ({
|
|
|
28018
28018
|
markName: Wt,
|
|
28019
28019
|
attrs: { authorEmail: r.email }
|
|
28020
28020
|
}), s;
|
|
28021
|
-
i ? s = i.mark.attrs.id : s =
|
|
28021
|
+
i ? s = i.mark.attrs.id : s = so();
|
|
28022
28022
|
const a = t.doc.type.schema.marks[Wt].create({
|
|
28023
28023
|
id: s,
|
|
28024
28024
|
author: r.name,
|
|
@@ -28039,7 +28039,7 @@ const th = ({
|
|
|
28039
28039
|
markName: wt,
|
|
28040
28040
|
attrs: { authorEmail: r.email }
|
|
28041
28041
|
}), s;
|
|
28042
|
-
i ? s = i.mark.attrs.id : s =
|
|
28042
|
+
i ? s = i.mark.attrs.id : s = so();
|
|
28043
28043
|
const a = t.doc.type.schema.marks[wt].create({
|
|
28044
28044
|
id: s,
|
|
28045
28045
|
author: r.name,
|
|
@@ -28239,7 +28239,7 @@ const rh = (t) => {
|
|
|
28239
28239
|
});
|
|
28240
28240
|
});
|
|
28241
28241
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
28242
|
-
}, Tt = new
|
|
28242
|
+
}, Tt = new Ze("TrackChangesBase"), g8 = (t = {}) => new Xe({
|
|
28243
28243
|
key: Tt,
|
|
28244
28244
|
state: {
|
|
28245
28245
|
init(e, n) {
|
|
@@ -28294,7 +28294,7 @@ const rh = (t) => {
|
|
|
28294
28294
|
}
|
|
28295
28295
|
}), Qo = (t, e, n) => {
|
|
28296
28296
|
if (!t.doc || !t.doc.nodeSize || n && e)
|
|
28297
|
-
return
|
|
28297
|
+
return Fe.empty;
|
|
28298
28298
|
const r = [], o = ih(t);
|
|
28299
28299
|
return o.length ? (o.forEach(({ mark: i, from: s, to: a }) => {
|
|
28300
28300
|
if (i.type.name === Wt)
|
|
@@ -28358,7 +28358,7 @@ const rh = (t) => {
|
|
|
28358
28358
|
});
|
|
28359
28359
|
r.push(l);
|
|
28360
28360
|
}
|
|
28361
|
-
}),
|
|
28361
|
+
}), Fe.create(t.doc, r)) : Fe.empty;
|
|
28362
28362
|
}, Sn = "commentMark", cw = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
|
|
28363
28363
|
y8(t, e.doc).forEach(({ from: o, to: i }) => {
|
|
28364
28364
|
n.removeMark(o, i, e.schema.marks[Sn]);
|
|
@@ -28468,7 +28468,7 @@ const rh = (t) => {
|
|
|
28468
28468
|
if (!r.options.isInternal && n) return "transparent";
|
|
28469
28469
|
const o = Ft.getState(r.state), i = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
28470
28470
|
return `${i}${s}`;
|
|
28471
|
-
}, eo = new
|
|
28471
|
+
}, eo = new Ze("paginationPlugin"), k8 = async (t) => {
|
|
28472
28472
|
if (!t.converter) return;
|
|
28473
28473
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds.ids, r = t.converter.footerIds.ids;
|
|
28474
28474
|
for (let o in n) {
|
|
@@ -28534,7 +28534,7 @@ const rh = (t) => {
|
|
|
28534
28534
|
}), n({ height: u, sectionEditor: c, sectionContainer: r });
|
|
28535
28535
|
});
|
|
28536
28536
|
});
|
|
28537
|
-
}) : {}, sh = [Wt, wt, Mt], Ft = new
|
|
28537
|
+
}) : {}, sh = [Wt, wt, Mt], Ft = new Ze("comments"), S8 = ct.create({
|
|
28538
28538
|
name: "comments",
|
|
28539
28539
|
addCommands() {
|
|
28540
28540
|
return {
|
|
@@ -28583,7 +28583,7 @@ const rh = (t) => {
|
|
|
28583
28583
|
addPmPlugins() {
|
|
28584
28584
|
const t = this.editor;
|
|
28585
28585
|
let e, n;
|
|
28586
|
-
return t.options.isHeadless ? [] : [new
|
|
28586
|
+
return t.options.isHeadless ? [] : [new Xe({
|
|
28587
28587
|
key: Ft,
|
|
28588
28588
|
state: {
|
|
28589
28589
|
init() {
|
|
@@ -28591,7 +28591,7 @@ const rh = (t) => {
|
|
|
28591
28591
|
activeThreadId: null,
|
|
28592
28592
|
externalColor: "#B1124B",
|
|
28593
28593
|
internalColor: "#078383",
|
|
28594
|
-
decorations:
|
|
28594
|
+
decorations: Fe.empty,
|
|
28595
28595
|
allCommentPositions: {},
|
|
28596
28596
|
allCommentIds: [],
|
|
28597
28597
|
changedActiveThread: !1,
|
|
@@ -28686,7 +28686,7 @@ const rh = (t) => {
|
|
|
28686
28686
|
});
|
|
28687
28687
|
}
|
|
28688
28688
|
});
|
|
28689
|
-
const p =
|
|
28689
|
+
const p = Fe.create(l, u);
|
|
28690
28690
|
if (!Ft.getState(a).decorations.eq(p)) {
|
|
28691
28691
|
const f = a.tr.setMeta(Ft, {
|
|
28692
28692
|
decorations: p,
|
|
@@ -28916,7 +28916,7 @@ const Mx = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
28916
28916
|
return;
|
|
28917
28917
|
if (c.marks.find((f) => f.type.name === wt))
|
|
28918
28918
|
return !1;
|
|
28919
|
-
const d = c.marks.find((f) => [wt, Mt].includes(f.type.name)), p = d ? d.attrs.id :
|
|
28919
|
+
const d = c.marks.find((f) => [wt, Mt].includes(f.type.name)), p = d ? d.attrs.id : so();
|
|
28920
28920
|
if (r.addMark(Math.max(n.from, u), Math.min(n.to, u + c.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c.marks.find((f) => f.type === n.mark.type)) {
|
|
28921
28921
|
const f = c.marks.find((y) => y.type.name === Mt);
|
|
28922
28922
|
let h = [], m = [];
|
|
@@ -28976,7 +28976,7 @@ const Mx = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
|
|
|
28976
28976
|
}
|
|
28977
28977
|
]), p.length || f.length) {
|
|
28978
28978
|
const h = t.schema.marks[Mt].create({
|
|
28979
|
-
id:
|
|
28979
|
+
id: so(),
|
|
28980
28980
|
author: s.name,
|
|
28981
28981
|
authorEmail: s.email,
|
|
28982
28982
|
date: a,
|
|
@@ -29272,10 +29272,10 @@ const I8 = class zx extends _M {
|
|
|
29272
29272
|
return [o, i, r.mediaFiles, r.fonts];
|
|
29273
29273
|
}
|
|
29274
29274
|
static getDocumentVersion(e) {
|
|
29275
|
-
return
|
|
29275
|
+
return Bo.getStoredSuperdocVersion(e);
|
|
29276
29276
|
}
|
|
29277
29277
|
static updateDocumentVersion(e, n) {
|
|
29278
|
-
return
|
|
29278
|
+
return Bo.updateDocumentVersion(e, n);
|
|
29279
29279
|
}
|
|
29280
29280
|
/**
|
|
29281
29281
|
* Creates all node views.
|
|
@@ -29436,7 +29436,7 @@ const I8 = class zx extends _M {
|
|
|
29436
29436
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29437
29437
|
*/
|
|
29438
29438
|
processCollaborationMigrations() {
|
|
29439
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29439
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.20"), !this.options.ydoc) return;
|
|
29440
29440
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29441
29441
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29442
29442
|
const n = fw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -29489,7 +29489,7 @@ hi = /* @__PURE__ */ new WeakMap(), Nx = /* @__PURE__ */ new WeakMap(), He = /*
|
|
|
29489
29489
|
}, ad = function({ editor: t, event: e }) {
|
|
29490
29490
|
this.toolbar?.setActiveEditor(t), this.options.onFocus({ editor: t, event: e });
|
|
29491
29491
|
}, Lx = function(t) {
|
|
29492
|
-
t.isHeadless && (typeof navigator > "u" && (
|
|
29492
|
+
t.isHeadless && (typeof navigator > "u" && (xo.navigator = { isHeadless: !0 }), t.mockDocument && (xo.document = t.mockDocument, xo.window = t.mockWindow));
|
|
29493
29493
|
}, /**
|
|
29494
29494
|
* Replace the current document with new data. Necessary for initializing a new collaboration file,
|
|
29495
29495
|
* since we need to insert the data only after the provider has synced.
|
|
@@ -29523,7 +29523,7 @@ cd = function() {
|
|
|
29523
29523
|
* Creates a SuperConverter.
|
|
29524
29524
|
*/
|
|
29525
29525
|
Ip = function() {
|
|
29526
|
-
this.options.converter ? this.converter = this.options.converter : this.converter = new
|
|
29526
|
+
this.options.converter ? this.converter = this.options.converter : this.converter = new Bo({
|
|
29527
29527
|
docx: this.options.content,
|
|
29528
29528
|
media: this.options.mediaFiles,
|
|
29529
29529
|
fonts: this.options.fonts,
|
|
@@ -29697,11 +29697,11 @@ let tc = I8, et = class jx {
|
|
|
29697
29697
|
}), this.config = {
|
|
29698
29698
|
...this.config,
|
|
29699
29699
|
...e
|
|
29700
|
-
}, this.name = this.config.name, this.config.addOptions && (this.options =
|
|
29700
|
+
}, this.name = this.config.name, this.config.addOptions && (this.options = Qe(
|
|
29701
29701
|
Be(this, "addOptions", {
|
|
29702
29702
|
name: this.name
|
|
29703
29703
|
})
|
|
29704
|
-
)), this.storage =
|
|
29704
|
+
)), this.storage = Qe(
|
|
29705
29705
|
Be(this, "addStorage", {
|
|
29706
29706
|
name: this.name,
|
|
29707
29707
|
options: this.options
|
|
@@ -29722,11 +29722,11 @@ let tc = I8, et = class jx {
|
|
|
29722
29722
|
}), this.config = {
|
|
29723
29723
|
...this.config,
|
|
29724
29724
|
...e
|
|
29725
|
-
}, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options =
|
|
29725
|
+
}, this.name = this.config.name, this.isExternal = !!this.config.isExternal, this.config.addOptions && (this.options = Qe(
|
|
29726
29726
|
Be(this, "addOptions", {
|
|
29727
29727
|
name: this.name
|
|
29728
29728
|
})
|
|
29729
|
-
)), this.storage =
|
|
29729
|
+
)), this.storage = Qe(
|
|
29730
29730
|
Be(this, "addStorage", {
|
|
29731
29731
|
name: this.name,
|
|
29732
29732
|
options: this.options
|
|
@@ -30022,7 +30022,7 @@ const Ux = ct.create({
|
|
|
30022
30022
|
}
|
|
30023
30023
|
});
|
|
30024
30024
|
function N8(t = {}) {
|
|
30025
|
-
return new
|
|
30025
|
+
return new Xe({
|
|
30026
30026
|
view(e) {
|
|
30027
30027
|
return new F8(e, t);
|
|
30028
30028
|
}
|
|
@@ -30248,7 +30248,7 @@ function L8(t) {
|
|
|
30248
30248
|
return !0;
|
|
30249
30249
|
}
|
|
30250
30250
|
function B8() {
|
|
30251
|
-
return new
|
|
30251
|
+
return new Xe({
|
|
30252
30252
|
props: {
|
|
30253
30253
|
decorations: q8,
|
|
30254
30254
|
createSelectionBetween(t, e, n) {
|
|
@@ -30304,7 +30304,7 @@ function q8(t) {
|
|
|
30304
30304
|
if (!(t.selection instanceof mn))
|
|
30305
30305
|
return null;
|
|
30306
30306
|
let e = document.createElement("div");
|
|
30307
|
-
return e.className = "ProseMirror-gapcursor",
|
|
30307
|
+
return e.className = "ProseMirror-gapcursor", Fe.create(t.doc, [Ge.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
30308
30308
|
}
|
|
30309
30309
|
const U8 = ct.create({
|
|
30310
30310
|
name: "gapCursor",
|
|
@@ -30315,14 +30315,14 @@ const U8 = ct.create({
|
|
|
30315
30315
|
},
|
|
30316
30316
|
extendNodeSchema(t) {
|
|
30317
30317
|
return {
|
|
30318
|
-
allowGapCursor:
|
|
30318
|
+
allowGapCursor: Qe(Be(t, "allowGapCursor", {
|
|
30319
30319
|
name: t.name,
|
|
30320
30320
|
options: t.options,
|
|
30321
30321
|
storage: t.storage
|
|
30322
30322
|
})) ?? null
|
|
30323
30323
|
};
|
|
30324
30324
|
}
|
|
30325
|
-
}), H8 = new
|
|
30325
|
+
}), H8 = new Ze("collaboration"), V8 = ct.create({
|
|
30326
30326
|
name: "collaboration",
|
|
30327
30327
|
priority: 1e3,
|
|
30328
30328
|
addOptions() {
|
|
@@ -30476,7 +30476,7 @@ const U8 = ct.create({
|
|
|
30476
30476
|
renderDOM({ htmlAttributes: t }) {
|
|
30477
30477
|
return [Ba, Oe.mergeAttributes(this.options.htmlAttributes, t)];
|
|
30478
30478
|
}
|
|
30479
|
-
}), e_ = new
|
|
30479
|
+
}), e_ = new Ze("ai"), Yx = ct.create({
|
|
30480
30480
|
name: "ai",
|
|
30481
30481
|
addCommands() {
|
|
30482
30482
|
return {
|
|
@@ -30508,19 +30508,19 @@ const U8 = ct.create({
|
|
|
30508
30508
|
},
|
|
30509
30509
|
addPmPlugins() {
|
|
30510
30510
|
const t = this.editor;
|
|
30511
|
-
return [new
|
|
30511
|
+
return [new Xe({
|
|
30512
30512
|
key: e_,
|
|
30513
30513
|
state: {
|
|
30514
30514
|
init() {
|
|
30515
30515
|
return {
|
|
30516
|
-
decorations:
|
|
30516
|
+
decorations: Fe.empty,
|
|
30517
30517
|
highlightColor: "#6366f1"
|
|
30518
30518
|
// Indigo color, matches AiLayer
|
|
30519
30519
|
};
|
|
30520
30520
|
},
|
|
30521
30521
|
apply(e, n, r, o) {
|
|
30522
30522
|
if (!e.docChanged) return n;
|
|
30523
|
-
const { decorations: i } = t_(t, o.doc, n.highlightColor) || {}, s =
|
|
30523
|
+
const { decorations: i } = t_(t, o.doc, n.highlightColor) || {}, s = Fe.create(o.doc, i);
|
|
30524
30524
|
return {
|
|
30525
30525
|
...n,
|
|
30526
30526
|
decorations: s
|
|
@@ -30599,7 +30599,7 @@ function nc(t) {
|
|
|
30599
30599
|
match: r,
|
|
30600
30600
|
chain: o
|
|
30601
30601
|
}) => {
|
|
30602
|
-
const i =
|
|
30602
|
+
const i = Qe(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), a = s.doc.resolve(n.from).blockRange(), l = a && G1(a, t.type, i);
|
|
30603
30603
|
if (!l)
|
|
30604
30604
|
return null;
|
|
30605
30605
|
if (s.wrap(a, l), t.keepMarks && t.editor) {
|
|
@@ -30614,7 +30614,7 @@ function nc(t) {
|
|
|
30614
30614
|
o().updateAttributes(u, i).run();
|
|
30615
30615
|
}
|
|
30616
30616
|
const c = s.doc.resolve(n.from - 1).nodeBefore;
|
|
30617
|
-
c && c.type === t.type &&
|
|
30617
|
+
c && c.type === t.type && ao(s.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, c)) && s.join(n.from - 1);
|
|
30618
30618
|
}
|
|
30619
30619
|
});
|
|
30620
30620
|
}
|
|
@@ -30685,8 +30685,8 @@ const ww = /^\s*([-+*])\s$/, e3 = et.create({
|
|
|
30685
30685
|
}
|
|
30686
30686
|
});
|
|
30687
30687
|
function r_(t = {}) {
|
|
30688
|
-
return new
|
|
30689
|
-
key: new
|
|
30688
|
+
return new Xe({
|
|
30689
|
+
key: new Ze("orderedListSync"),
|
|
30690
30690
|
appendTransaction: (e, n, r) => {
|
|
30691
30691
|
if (!(e.some((l) => l.docChanged) && !n.doc.eq(r.doc)))
|
|
30692
30692
|
return;
|
|
@@ -30725,8 +30725,8 @@ function o_() {
|
|
|
30725
30725
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
30726
30726
|
}
|
|
30727
30727
|
function i_(t) {
|
|
30728
|
-
return new
|
|
30729
|
-
key: new
|
|
30728
|
+
return new Xe({
|
|
30729
|
+
key: new Ze("orderedListMarker"),
|
|
30730
30730
|
appendTransaction: (e, n, r) => {
|
|
30731
30731
|
if (!(e.some((l) => l.docChanged) && !n.doc.eq(r.doc)))
|
|
30732
30732
|
return;
|
|
@@ -31036,15 +31036,15 @@ const vw = /^(\d+)\.\s$/, n3 = et.create({
|
|
|
31036
31036
|
return e;
|
|
31037
31037
|
};
|
|
31038
31038
|
function w_(t = {}) {
|
|
31039
|
-
return new
|
|
31040
|
-
key: new
|
|
31039
|
+
return new Xe({
|
|
31040
|
+
key: new Ze("styledListMarker"),
|
|
31041
31041
|
state: {
|
|
31042
31042
|
init(e, n) {
|
|
31043
31043
|
const r = [
|
|
31044
31044
|
...xw(n),
|
|
31045
31045
|
...kw(n)
|
|
31046
31046
|
];
|
|
31047
|
-
return
|
|
31047
|
+
return Fe.create(n.doc, r);
|
|
31048
31048
|
},
|
|
31049
31049
|
apply(e, n, r, o) {
|
|
31050
31050
|
if (!e.docChanged || e.getMeta("orderedListMarker")) return n;
|
|
@@ -31052,7 +31052,7 @@ function w_(t = {}) {
|
|
|
31052
31052
|
...xw(o, i),
|
|
31053
31053
|
...kw(o)
|
|
31054
31054
|
];
|
|
31055
|
-
return
|
|
31055
|
+
return Fe.create(o.doc, s);
|
|
31056
31056
|
}
|
|
31057
31057
|
},
|
|
31058
31058
|
props: {
|
|
@@ -31247,7 +31247,7 @@ const i3 = et.create({
|
|
|
31247
31247
|
addPmPlugins() {
|
|
31248
31248
|
return [w_()];
|
|
31249
31249
|
}
|
|
31250
|
-
}), wl = new
|
|
31250
|
+
}), wl = new Ze("linkedStyles"), x_ = ct.create({
|
|
31251
31251
|
name: "linkedStyles",
|
|
31252
31252
|
addPmPlugins() {
|
|
31253
31253
|
return [k_(this.editor)];
|
|
@@ -31270,7 +31270,7 @@ const i3 = et.create({
|
|
|
31270
31270
|
}
|
|
31271
31271
|
};
|
|
31272
31272
|
}
|
|
31273
|
-
}), k_ = (t) => new
|
|
31273
|
+
}), k_ = (t) => new Xe({
|
|
31274
31274
|
key: wl,
|
|
31275
31275
|
state: {
|
|
31276
31276
|
init(e, { doc: n, selection: r }) {
|
|
@@ -31283,7 +31283,7 @@ const i3 = et.create({
|
|
|
31283
31283
|
},
|
|
31284
31284
|
apply(e, n, r, o) {
|
|
31285
31285
|
if (!t.converter || t.options.mode !== "docx") return { ...n };
|
|
31286
|
-
let i = n.decorations ||
|
|
31286
|
+
let i = n.decorations || Fe.empty;
|
|
31287
31287
|
if (e.docChanged) {
|
|
31288
31288
|
const s = wl.getState(t.state).styles;
|
|
31289
31289
|
i = Sw(o, s);
|
|
@@ -31309,7 +31309,7 @@ const i3 = et.create({
|
|
|
31309
31309
|
if (!u) return;
|
|
31310
31310
|
const d = Ge.inline(s, s + i.nodeSize, { style: u });
|
|
31311
31311
|
n.push(d);
|
|
31312
|
-
}),
|
|
31312
|
+
}), Fe.create(o, n);
|
|
31313
31313
|
}, s3 = (t, e, n, r = !0) => {
|
|
31314
31314
|
if (!t?.definition?.styles) return "";
|
|
31315
31315
|
const o = {};
|
|
@@ -31459,17 +31459,17 @@ const i3 = et.create({
|
|
|
31459
31459
|
},
|
|
31460
31460
|
addPmPlugins() {
|
|
31461
31461
|
const { view: t } = this.editor;
|
|
31462
|
-
return [new
|
|
31462
|
+
return [new Xe({
|
|
31463
31463
|
name: "dropcapPlugin",
|
|
31464
|
-
key: new
|
|
31464
|
+
key: new Ze("dropcapPlugin"),
|
|
31465
31465
|
state: {
|
|
31466
31466
|
init(e, n) {
|
|
31467
31467
|
let r = Ew(n, t);
|
|
31468
|
-
return
|
|
31468
|
+
return Fe.create(n.doc, r);
|
|
31469
31469
|
},
|
|
31470
31470
|
apply(e, n, r, o) {
|
|
31471
31471
|
const i = Ew(o, t);
|
|
31472
|
-
return
|
|
31472
|
+
return Fe.create(o.doc, i);
|
|
31473
31473
|
}
|
|
31474
31474
|
},
|
|
31475
31475
|
props: {
|
|
@@ -31685,17 +31685,17 @@ const c3 = et.create({
|
|
|
31685
31685
|
},
|
|
31686
31686
|
addPmPlugins() {
|
|
31687
31687
|
const { view: t } = this.editor;
|
|
31688
|
-
return [new
|
|
31688
|
+
return [new Xe({
|
|
31689
31689
|
name: "tabPlugin",
|
|
31690
|
-
key: new
|
|
31690
|
+
key: new Ze("tabPlugin"),
|
|
31691
31691
|
state: {
|
|
31692
31692
|
init(e, n) {
|
|
31693
31693
|
let r = Cw(n, t);
|
|
31694
|
-
return
|
|
31694
|
+
return Fe.create(n.doc, r);
|
|
31695
31695
|
},
|
|
31696
31696
|
apply(e, n, r, o) {
|
|
31697
31697
|
const i = Cw(o, t);
|
|
31698
|
-
return
|
|
31698
|
+
return Fe.create(o.doc, i);
|
|
31699
31699
|
}
|
|
31700
31700
|
},
|
|
31701
31701
|
props: {
|
|
@@ -32088,7 +32088,7 @@ function Gt(t) {
|
|
|
32088
32088
|
}
|
|
32089
32089
|
return e;
|
|
32090
32090
|
}
|
|
32091
|
-
var Ur = new
|
|
32091
|
+
var Ur = new Ze("selectingCells");
|
|
32092
32092
|
function Gi(t) {
|
|
32093
32093
|
for (let e = t.depth - 1; e > 0; e--)
|
|
32094
32094
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -32143,7 +32143,7 @@ function p3(t, e, n) {
|
|
|
32143
32143
|
const r = t.node(-1), o = gt.get(r), i = t.start(-1), s = o.nextCell(t.pos - i, e, n);
|
|
32144
32144
|
return s == null ? null : t.node(0).resolve(i + s);
|
|
32145
32145
|
}
|
|
32146
|
-
function
|
|
32146
|
+
function zo(t, e, n = 1) {
|
|
32147
32147
|
const r = { ...t, colspan: t.colspan - n };
|
|
32148
32148
|
return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
|
|
32149
32149
|
}
|
|
@@ -32213,7 +32213,7 @@ var st = class fr extends Ve {
|
|
|
32213
32213
|
const m = o.left - f.left, y = f.right - o.right;
|
|
32214
32214
|
if (m > 0 || y > 0) {
|
|
32215
32215
|
let g = h.attrs;
|
|
32216
|
-
if (m > 0 && (g =
|
|
32216
|
+
if (m > 0 && (g = zo(g, 0, m)), y > 0 && (g = zo(
|
|
32217
32217
|
g,
|
|
32218
32218
|
g.colspan - y,
|
|
32219
32219
|
y
|
|
@@ -32347,7 +32347,7 @@ function G_(t) {
|
|
|
32347
32347
|
e.push(
|
|
32348
32348
|
Ge.node(r, r + n.nodeSize, { class: "selectedCell" })
|
|
32349
32349
|
);
|
|
32350
|
-
}),
|
|
32350
|
+
}), Fe.create(t.doc, e);
|
|
32351
32351
|
}
|
|
32352
32352
|
function K_({ $from: t, $to: e }) {
|
|
32353
32353
|
if (t.pos == e.pos || t.pos < e.pos - 6) return !1;
|
|
@@ -32392,7 +32392,7 @@ function X_(t, e, n) {
|
|
|
32392
32392
|
} else r instanceof We && K_(r) ? i = We.create(o, r.from) : r instanceof We && J_(r) && (i = We.create(o, r.$from.start(), r.$from.end()));
|
|
32393
32393
|
return i && (e || (e = t.tr)).setSelection(i), e;
|
|
32394
32394
|
}
|
|
32395
|
-
var Y_ = new
|
|
32395
|
+
var Y_ = new Ze("fix-tables");
|
|
32396
32396
|
function m3(t, e, n, r) {
|
|
32397
32397
|
const o = t.childCount, i = e.childCount;
|
|
32398
32398
|
e: for (let s = 0, a = 0; s < i; s++) {
|
|
@@ -32428,7 +32428,7 @@ function Z_(t, e, n, r) {
|
|
|
32428
32428
|
r.setNodeMarkup(
|
|
32429
32429
|
r.mapping.map(n + 1 + c.pos),
|
|
32430
32430
|
null,
|
|
32431
|
-
|
|
32431
|
+
zo(d, d.colspan - c.n, c.n)
|
|
32432
32432
|
);
|
|
32433
32433
|
} else if (c.type == "missing")
|
|
32434
32434
|
i[c.row] += c.n;
|
|
@@ -32521,7 +32521,7 @@ function tI(t, { map: e, table: n, tableStart: r }, o) {
|
|
|
32521
32521
|
t.setNodeMarkup(
|
|
32522
32522
|
t.mapping.slice(i).map(r + l),
|
|
32523
32523
|
null,
|
|
32524
|
-
|
|
32524
|
+
zo(u, o - e.colCount(l))
|
|
32525
32525
|
);
|
|
32526
32526
|
else {
|
|
32527
32527
|
const d = t.mapping.slice(i).map(r + l);
|
|
@@ -32965,7 +32965,7 @@ function yI({ width: t, height: e, rows: n }, r, o) {
|
|
|
32965
32965
|
for (let u = i[a] || 0, d = 0; u < r; d++) {
|
|
32966
32966
|
let p = l.child(d % l.childCount);
|
|
32967
32967
|
u + p.attrs.colspan > r && (p = p.type.createChecked(
|
|
32968
|
-
|
|
32968
|
+
zo(
|
|
32969
32969
|
p.attrs,
|
|
32970
32970
|
p.attrs.colspan,
|
|
32971
32971
|
u + p.attrs.colspan - r
|
|
@@ -33059,7 +33059,7 @@ function Rw(t, e, n, r, o, i, s, a) {
|
|
|
33059
33059
|
t.setNodeMarkup(
|
|
33060
33060
|
h,
|
|
33061
33061
|
null,
|
|
33062
|
-
|
|
33062
|
+
zo(
|
|
33063
33063
|
p.attrs,
|
|
33064
33064
|
s - f,
|
|
33065
33065
|
p.attrs.colspan - (s - f)
|
|
@@ -33067,7 +33067,7 @@ function Rw(t, e, n, r, o, i, s, a) {
|
|
|
33067
33067
|
), t.insert(
|
|
33068
33068
|
h + p.nodeSize,
|
|
33069
33069
|
p.type.createAndFill(
|
|
33070
|
-
|
|
33070
|
+
zo(p.attrs, 0, s - f)
|
|
33071
33071
|
)
|
|
33072
33072
|
), c += p.attrs.rowspan - 1;
|
|
33073
33073
|
}
|
|
@@ -33306,7 +33306,7 @@ function Pp(t, e, n, r, o, i) {
|
|
|
33306
33306
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
33307
33307
|
}
|
|
33308
33308
|
}
|
|
33309
|
-
var vn = new
|
|
33309
|
+
var vn = new Ze(
|
|
33310
33310
|
"tableColumnResizing"
|
|
33311
33311
|
);
|
|
33312
33312
|
function EI({
|
|
@@ -33316,7 +33316,7 @@ function EI({
|
|
|
33316
33316
|
View: r = SI,
|
|
33317
33317
|
lastColumnResizable: o = !0
|
|
33318
33318
|
} = {}) {
|
|
33319
|
-
const i = new
|
|
33319
|
+
const i = new Xe({
|
|
33320
33320
|
key: vn,
|
|
33321
33321
|
state: {
|
|
33322
33322
|
init(s, a) {
|
|
@@ -33508,7 +33508,7 @@ function II(t, e) {
|
|
|
33508
33508
|
var n;
|
|
33509
33509
|
const r = [], o = t.doc.resolve(e), i = o.node(-1);
|
|
33510
33510
|
if (!i)
|
|
33511
|
-
return
|
|
33511
|
+
return Fe.empty;
|
|
33512
33512
|
const s = gt.get(i), a = o.start(-1), l = s.colCount(o.pos - a) + o.nodeAfter.attrs.colspan - 1;
|
|
33513
33513
|
for (let c = 0; c < s.height; c++) {
|
|
33514
33514
|
const u = l + c * s.width;
|
|
@@ -33525,12 +33525,12 @@ function II(t, e) {
|
|
|
33525
33525
|
), r.push(Ge.widget(p, f));
|
|
33526
33526
|
}
|
|
33527
33527
|
}
|
|
33528
|
-
return
|
|
33528
|
+
return Fe.create(t.doc, r);
|
|
33529
33529
|
}
|
|
33530
33530
|
function NI({
|
|
33531
33531
|
allowTableNodeSelection: t = !1
|
|
33532
33532
|
} = {}) {
|
|
33533
|
-
return new
|
|
33533
|
+
return new Xe({
|
|
33534
33534
|
key: Ur,
|
|
33535
33535
|
// This piece of state is used to remember when a mouse-drag
|
|
33536
33536
|
// cell-selection is happening, so that it can continue even as
|
|
@@ -33783,7 +33783,7 @@ const FI = (t) => t instanceof st, qa = ({ editor: t }) => {
|
|
|
33783
33783
|
},
|
|
33784
33784
|
extendNodeSchema(t) {
|
|
33785
33785
|
return {
|
|
33786
|
-
tableRole:
|
|
33786
|
+
tableRole: Qe(Be(t, "tableRole", {
|
|
33787
33787
|
name: t.name,
|
|
33788
33788
|
options: t.options,
|
|
33789
33789
|
storage: t.storage
|
|
@@ -33933,7 +33933,7 @@ const FI = (t) => t instanceof st, qa = ({ editor: t }) => {
|
|
|
33933
33933
|
return ["td", Oe.mergeAttributes(this.options.htmlAttributes, t), 0];
|
|
33934
33934
|
}
|
|
33935
33935
|
});
|
|
33936
|
-
var Br,
|
|
33936
|
+
var Br, go;
|
|
33937
33937
|
class jI {
|
|
33938
33938
|
constructor(e) {
|
|
33939
33939
|
Xr(this, Br), je(this, "editor"), je(this, "node"), je(this, "decorations"), je(this, "getPos"), je(this, "htmlAttributes"), je(this, "dom"), je(this, "annotationClass"), je(this, "annotationContentClass"), je(this, "borderColor"), this.editor = e.editor, this.node = e.node, this.decorations = e.decorations, this.getPos = e.getPos, this.htmlAttributes = e.htmlAttributes, this.annotationClass = e.annotationClass, this.annotationContentClass = e.annotationContentClass, this.borderColor = e.borderColor, this.handleAnnotationClick = this.handleAnnotationClick.bind(this), this.handleAnnotationDoubleClick = this.handleAnnotationDoubleClick.bind(this), this.handleSelectionUpdate = this.handleSelectionUpdate.bind(this), this.buildView(), this.attachEventListeners();
|
|
@@ -33951,13 +33951,13 @@ class jI {
|
|
|
33951
33951
|
(n[e] ?? n.default)();
|
|
33952
33952
|
}
|
|
33953
33953
|
buildTextView() {
|
|
33954
|
-
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br,
|
|
33954
|
+
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br, go).call(this, {
|
|
33955
33955
|
displayLabel: e
|
|
33956
33956
|
});
|
|
33957
33957
|
this.dom = n;
|
|
33958
33958
|
}
|
|
33959
33959
|
buildImageView() {
|
|
33960
|
-
let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33960
|
+
let { displayLabel: e, imageSrc: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33961
33961
|
if (n) {
|
|
33962
33962
|
let i = document.createElement("img");
|
|
33963
33963
|
i.src = n, i.alt = e, i.style.height = "auto", i.style.maxWidth = "100%", i.style.pointerEvents = "none", i.style.verticalAlign = "middle", o.append(i), r.style.display = "inline-block", o.style.display = "inline-block";
|
|
@@ -33968,7 +33968,7 @@ class jI {
|
|
|
33968
33968
|
buildSignatureView() {
|
|
33969
33969
|
let { displayLabel: e, imageSrc: n } = this.node.attrs;
|
|
33970
33970
|
e = e || "Signature";
|
|
33971
|
-
let { annotation: r, content: o } = Ie(this, Br,
|
|
33971
|
+
let { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33972
33972
|
if (n) {
|
|
33973
33973
|
let i = document.createElement("img");
|
|
33974
33974
|
i.src = n, i.alt = e, i.style.height = "auto", i.style.maxWidth = "100%", i.style.maxHeight = "28px", i.style.pointerEvents = "none", i.style.verticalAlign = "middle", o.append(i), r.style.display = "inline-block", o.style.display = "inline-block";
|
|
@@ -33977,17 +33977,17 @@ class jI {
|
|
|
33977
33977
|
this.dom = r;
|
|
33978
33978
|
}
|
|
33979
33979
|
buildCheckboxView() {
|
|
33980
|
-
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br,
|
|
33980
|
+
let { displayLabel: e } = this.node.attrs, { annotation: n } = Ie(this, Br, go).call(this, {
|
|
33981
33981
|
displayLabel: e
|
|
33982
33982
|
});
|
|
33983
33983
|
this.dom = n;
|
|
33984
33984
|
}
|
|
33985
33985
|
buildHTMLView() {
|
|
33986
|
-
let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33986
|
+
let { displayLabel: e, rawHtml: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33987
33987
|
n ? (o.innerHTML = n.trim(), r.style.display = "inline-block", o.style.display = "inline-block") : o.textContent = e, this.dom = r;
|
|
33988
33988
|
}
|
|
33989
33989
|
buildLinkView() {
|
|
33990
|
-
let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br,
|
|
33990
|
+
let { displayLabel: e, linkUrl: n } = this.node.attrs, { annotation: r, content: o } = Ie(this, Br, go).call(this);
|
|
33991
33991
|
if (n) {
|
|
33992
33992
|
let i = document.createElement("a");
|
|
33993
33993
|
i.href = n, i.target = "_blank", i.textContent = n, i.style.textDecoration = "none", o.append(i), o.style.pointerEvents = "all";
|
|
@@ -34054,7 +34054,7 @@ class jI {
|
|
|
34054
34054
|
}), !0));
|
|
34055
34055
|
}
|
|
34056
34056
|
}
|
|
34057
|
-
Br = /* @__PURE__ */ new WeakSet(),
|
|
34057
|
+
Br = /* @__PURE__ */ new WeakSet(), go = function({ displayLabel: t } = {}) {
|
|
34058
34058
|
let { highlighted: e } = this.node.attrs, n = document.createElement("span");
|
|
34059
34059
|
n.classList.add(this.annotationClass);
|
|
34060
34060
|
let r = document.createElement("span");
|
|
@@ -34097,8 +34097,8 @@ function Wr(t) {
|
|
|
34097
34097
|
}
|
|
34098
34098
|
const UI = (t = {}) => {
|
|
34099
34099
|
let { editor: e, annotationClass: n } = t;
|
|
34100
|
-
return new
|
|
34101
|
-
key: new
|
|
34100
|
+
return new Xe({
|
|
34101
|
+
key: new Ze("fieldAnnotation"),
|
|
34102
34102
|
state: {
|
|
34103
34103
|
init() {
|
|
34104
34104
|
return null;
|
|
@@ -34818,15 +34818,15 @@ function lN(t) {
|
|
|
34818
34818
|
}
|
|
34819
34819
|
return e;
|
|
34820
34820
|
}
|
|
34821
|
-
const
|
|
34822
|
-
key:
|
|
34821
|
+
const Do = new Ze("ImagePlaceholder"), cN = (t = {}) => new Xe({
|
|
34822
|
+
key: Do,
|
|
34823
34823
|
state: {
|
|
34824
34824
|
init() {
|
|
34825
|
-
return
|
|
34825
|
+
return Fe.empty;
|
|
34826
34826
|
},
|
|
34827
34827
|
apply(e, n, r, o) {
|
|
34828
34828
|
n = n.map(e.mapping, e.doc);
|
|
34829
|
-
let i = e.getMeta(
|
|
34829
|
+
let i = e.getMeta(Do);
|
|
34830
34830
|
if (i?.type === "add") {
|
|
34831
34831
|
let s = document.createElement("placeholder"), a = Ge.widget(i.pos, s, {
|
|
34832
34832
|
id: i.id
|
|
@@ -34842,21 +34842,21 @@ const Mo = new Qe("ImagePlaceholder"), cN = (t = {}) => new Ye({
|
|
|
34842
34842
|
}
|
|
34843
34843
|
}
|
|
34844
34844
|
}), uN = (t, e) => {
|
|
34845
|
-
let n =
|
|
34845
|
+
let n = Do.getState(t)?.find(null, null, (r) => r.id === e);
|
|
34846
34846
|
return n?.length ? n[0].from : null;
|
|
34847
|
-
}, Hw = new
|
|
34847
|
+
}, Hw = new Ze("ImagePosition"), dN = ({ editor: t }) => {
|
|
34848
34848
|
const { view: e } = t;
|
|
34849
34849
|
let n = !1;
|
|
34850
|
-
return new
|
|
34850
|
+
return new Xe({
|
|
34851
34851
|
name: "ImagePositionPlugin",
|
|
34852
34852
|
key: Hw,
|
|
34853
34853
|
state: {
|
|
34854
34854
|
init(r, o) {
|
|
34855
|
-
return
|
|
34855
|
+
return Fe.empty;
|
|
34856
34856
|
},
|
|
34857
34857
|
apply(r, o, i, s) {
|
|
34858
34858
|
const a = Vw(s, e);
|
|
34859
|
-
return
|
|
34859
|
+
return Fe.create(s.doc, a);
|
|
34860
34860
|
}
|
|
34861
34861
|
},
|
|
34862
34862
|
view: (r) => ({
|
|
@@ -35874,15 +35874,15 @@ const vN = "track-insert", P3 = yn.create({
|
|
|
35874
35874
|
},
|
|
35875
35875
|
addPmPlugins() {
|
|
35876
35876
|
const t = (e) => {
|
|
35877
|
-
if (e.doc.textBetween(0, e.doc.content.size, " ", " ") !== "") return
|
|
35877
|
+
if (e.doc.textBetween(0, e.doc.content.size, " ", " ") !== "") return Fe.empty;
|
|
35878
35878
|
const { $from: n } = e.selection, r = Ge.node(n.before(), n.after(), {
|
|
35879
35879
|
"data-placeholder": this.options.placeholder,
|
|
35880
35880
|
class: "sd-editor-placeholder"
|
|
35881
35881
|
});
|
|
35882
|
-
return
|
|
35882
|
+
return Fe.create(e.doc, [r]);
|
|
35883
35883
|
};
|
|
35884
|
-
return [new
|
|
35885
|
-
key: new
|
|
35884
|
+
return [new Xe({
|
|
35885
|
+
key: new Ze("placeholder"),
|
|
35886
35886
|
state: {
|
|
35887
35887
|
init: (e, n) => t(n),
|
|
35888
35888
|
apply: (e, n, r, o) => t(o)
|
|
@@ -35912,7 +35912,7 @@ function Tn(t) {
|
|
|
35912
35912
|
}
|
|
35913
35913
|
return t;
|
|
35914
35914
|
}
|
|
35915
|
-
function
|
|
35915
|
+
function jo(t) {
|
|
35916
35916
|
var e = Tn(t).Element;
|
|
35917
35917
|
return t instanceof e || t instanceof Element;
|
|
35918
35918
|
}
|
|
@@ -35971,7 +35971,7 @@ const V3 = {
|
|
|
35971
35971
|
function tr(t) {
|
|
35972
35972
|
return t.split("-")[0];
|
|
35973
35973
|
}
|
|
35974
|
-
var
|
|
35974
|
+
var _o = Math.max, rc = Math.min, Ri = Math.round;
|
|
35975
35975
|
function Up() {
|
|
35976
35976
|
var t = navigator.userAgentData;
|
|
35977
35977
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -35985,7 +35985,7 @@ function Li(t, e, n) {
|
|
|
35985
35985
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
35986
35986
|
var r = t.getBoundingClientRect(), o = 1, i = 1;
|
|
35987
35987
|
e && Fn(t) && (o = t.offsetWidth > 0 && Ri(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && Ri(r.height) / t.offsetHeight || 1);
|
|
35988
|
-
var s =
|
|
35988
|
+
var s = jo(t) ? Tn(t) : window, a = s.visualViewport, l = !W3() && n, c = (r.left + (l && a ? a.offsetLeft : 0)) / o, u = (r.top + (l && a ? a.offsetTop : 0)) / i, d = r.width / o, p = r.height / i;
|
|
35989
35989
|
return {
|
|
35990
35990
|
width: d,
|
|
35991
35991
|
height: p,
|
|
@@ -36026,8 +36026,8 @@ function $r(t) {
|
|
|
36026
36026
|
function BN(t) {
|
|
36027
36027
|
return ["table", "td", "th"].indexOf(ir(t)) >= 0;
|
|
36028
36028
|
}
|
|
36029
|
-
function
|
|
36030
|
-
return ((
|
|
36029
|
+
function uo(t) {
|
|
36030
|
+
return ((jo(t) ? t.ownerDocument : (
|
|
36031
36031
|
// $FlowFixMe[prop-missing]
|
|
36032
36032
|
t.document
|
|
36033
36033
|
)) || window.document).documentElement;
|
|
@@ -36041,7 +36041,7 @@ function _c(t) {
|
|
|
36041
36041
|
t.parentNode || // DOM Element detected
|
|
36042
36042
|
(dh(t) ? t.host : null) || // ShadowRoot detected
|
|
36043
36043
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
36044
|
-
|
|
36044
|
+
uo(t)
|
|
36045
36045
|
);
|
|
36046
36046
|
}
|
|
36047
36047
|
function Jw(t) {
|
|
@@ -36073,7 +36073,7 @@ function fh(t) {
|
|
|
36073
36073
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
36074
36074
|
}
|
|
36075
36075
|
function _s(t, e, n) {
|
|
36076
|
-
return
|
|
36076
|
+
return _o(t, rc(e, n));
|
|
36077
36077
|
}
|
|
36078
36078
|
function zN(t, e, n) {
|
|
36079
36079
|
var r = _s(t, e, n);
|
|
@@ -36148,7 +36148,7 @@ function Xw(t) {
|
|
|
36148
36148
|
var g = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), x = fn, w = pn, C = window;
|
|
36149
36149
|
if (c) {
|
|
36150
36150
|
var M = Ea(n), O = "clientHeight", N = "clientWidth";
|
|
36151
|
-
if (M === Tn(n) && (M =
|
|
36151
|
+
if (M === Tn(n) && (M = uo(n), $r(M).position !== "static" && a === "absolute" && (O = "scrollHeight", N = "scrollWidth")), M = M, o === pn || (o === fn || o === Ln) && i === ra) {
|
|
36152
36152
|
w = Rn;
|
|
36153
36153
|
var k = d && M === C && C.visualViewport ? C.visualViewport.height : (
|
|
36154
36154
|
// $FlowFixMe[prop-missing]
|
|
@@ -36260,10 +36260,10 @@ function hh(t) {
|
|
|
36260
36260
|
};
|
|
36261
36261
|
}
|
|
36262
36262
|
function mh(t) {
|
|
36263
|
-
return Li(
|
|
36263
|
+
return Li(uo(t)).left + hh(t).scrollLeft;
|
|
36264
36264
|
}
|
|
36265
36265
|
function QN(t, e) {
|
|
36266
|
-
var n = Tn(t), r =
|
|
36266
|
+
var n = Tn(t), r = uo(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
|
|
36267
36267
|
if (o) {
|
|
36268
36268
|
i = o.width, s = o.height;
|
|
36269
36269
|
var c = W3();
|
|
@@ -36277,8 +36277,8 @@ function QN(t, e) {
|
|
|
36277
36277
|
};
|
|
36278
36278
|
}
|
|
36279
36279
|
function eF(t) {
|
|
36280
|
-
var e, n =
|
|
36281
|
-
return $r(o || n).direction === "rtl" && (a +=
|
|
36280
|
+
var e, n = uo(t), r = hh(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = _o(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = _o(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + mh(t), l = -r.scrollTop;
|
|
36281
|
+
return $r(o || n).direction === "rtl" && (a += _o(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
36282
36282
|
width: i,
|
|
36283
36283
|
height: s,
|
|
36284
36284
|
x: a,
|
|
@@ -36314,18 +36314,18 @@ function tF(t, e) {
|
|
|
36314
36314
|
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;
|
|
36315
36315
|
}
|
|
36316
36316
|
function Zw(t, e, n) {
|
|
36317
|
-
return e === U3 ? Hp(QN(t, n)) :
|
|
36317
|
+
return e === U3 ? Hp(QN(t, n)) : jo(e) ? tF(e, n) : Hp(eF(uo(t)));
|
|
36318
36318
|
}
|
|
36319
36319
|
function nF(t) {
|
|
36320
36320
|
var e = Is(_c(t)), n = ["absolute", "fixed"].indexOf($r(t).position) >= 0, r = n && Fn(t) ? Ea(t) : t;
|
|
36321
|
-
return
|
|
36322
|
-
return
|
|
36321
|
+
return jo(r) ? e.filter(function(o) {
|
|
36322
|
+
return jo(o) && G3(o, r) && ir(o) !== "body";
|
|
36323
36323
|
}) : [];
|
|
36324
36324
|
}
|
|
36325
36325
|
function rF(t, e, n, r) {
|
|
36326
36326
|
var o = e === "clippingParents" ? nF(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
|
|
36327
36327
|
var u = Zw(t, c, r);
|
|
36328
|
-
return l.top =
|
|
36328
|
+
return l.top = _o(u.top, l.top), l.right = rc(u.right, l.right), l.bottom = rc(u.bottom, l.bottom), l.left = _o(u.left, l.left), l;
|
|
36329
36329
|
}, Zw(t, s, r));
|
|
36330
36330
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
36331
36331
|
}
|
|
@@ -36378,7 +36378,7 @@ function Z3(t) {
|
|
|
36378
36378
|
}
|
|
36379
36379
|
function oa(t, e) {
|
|
36380
36380
|
e === void 0 && (e = {});
|
|
36381
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? EN : a, c = n.rootBoundary, u = c === void 0 ? U3 : c, d = n.elementContext, p = d === void 0 ? ts : d, f = n.altBoundary, h = f === void 0 ? !1 : f, m = n.padding, y = m === void 0 ? 0 : m, g = J3(typeof y != "number" ? y : X3(y, Sa)), v = p === ts ? CN : ts, x = t.rects.popper, w = t.elements[h ? v : p], C = rF(
|
|
36381
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? EN : a, c = n.rootBoundary, u = c === void 0 ? U3 : c, d = n.elementContext, p = d === void 0 ? ts : d, f = n.altBoundary, h = f === void 0 ? !1 : f, m = n.padding, y = m === void 0 ? 0 : m, g = J3(typeof y != "number" ? y : X3(y, Sa)), v = p === ts ? CN : ts, x = t.rects.popper, w = t.elements[h ? v : p], C = rF(jo(w) ? w : w.contextElement || uo(t.elements.popper), l, u, s), M = Li(t.elements.reference), O = Z3({
|
|
36382
36382
|
reference: M,
|
|
36383
36383
|
element: x,
|
|
36384
36384
|
placement: o
|
|
@@ -36586,7 +36586,7 @@ function gF(t) {
|
|
|
36586
36586
|
var V, $ = w === "y" ? pn : fn, K = w === "y" ? Rn : Ln, oe = w === "y" ? "height" : "width", W = M[w], le = W + y[$], G = W - y[K], ce = f ? -N[oe] / 2 : 0, Y = v === Fi ? O[oe] : N[oe], F = v === Fi ? -N[oe] : -O[oe], Q = e.elements.arrow, ee = f && Q ? ph(Q) : {
|
|
36587
36587
|
width: 0,
|
|
36588
36588
|
height: 0
|
|
36589
|
-
}, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K3(), J = ie[$], T = ie[K], E = _s(0, O[oe], ee[oe]), U = x ? O[oe] / 2 - ce - E - J - q.mainAxis : Y - E - J - q.mainAxis, B = x ? -O[oe] / 2 + ce + E + T + q.mainAxis : F + E + T + q.mainAxis, I = e.elements.arrow && Ea(e.elements.arrow), R = I ? w === "y" ? I.clientTop || 0 : I.clientLeft || 0 : 0, ae = (V = re?.[w]) != null ? V : 0, S = W + U - ae - R, ne = W + B - ae, Z = _s(f ? rc(le, S) : le, W, f ?
|
|
36589
|
+
}, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : K3(), J = ie[$], T = ie[K], E = _s(0, O[oe], ee[oe]), U = x ? O[oe] / 2 - ce - E - J - q.mainAxis : Y - E - J - q.mainAxis, B = x ? -O[oe] / 2 + ce + E + T + q.mainAxis : F + E + T + q.mainAxis, I = e.elements.arrow && Ea(e.elements.arrow), R = I ? w === "y" ? I.clientTop || 0 : I.clientLeft || 0 : 0, ae = (V = re?.[w]) != null ? V : 0, S = W + U - ae - R, ne = W + B - ae, Z = _s(f ? rc(le, S) : le, W, f ? _o(G, ne) : G);
|
|
36590
36590
|
M[w] = Z, _[w] = Z - W;
|
|
36591
36591
|
}
|
|
36592
36592
|
if (a) {
|
|
@@ -36618,7 +36618,7 @@ function vF(t) {
|
|
|
36618
36618
|
}
|
|
36619
36619
|
function xF(t, e, n) {
|
|
36620
36620
|
n === void 0 && (n = !1);
|
|
36621
|
-
var r = Fn(e), o = Fn(e) && vF(e), i =
|
|
36621
|
+
var r = Fn(e), o = Fn(e) && vF(e), i = uo(e), s = Li(t, o, n), a = {
|
|
36622
36622
|
scrollLeft: 0,
|
|
36623
36623
|
scrollTop: 0
|
|
36624
36624
|
}, l = {
|
|
@@ -36715,7 +36715,7 @@ function AF(t) {
|
|
|
36715
36715
|
setOptions: function(m) {
|
|
36716
36716
|
var y = typeof m == "function" ? m(c.options) : m;
|
|
36717
36717
|
h(), c.options = Object.assign({}, i, c.options, y), c.scrollParents = {
|
|
36718
|
-
reference:
|
|
36718
|
+
reference: jo(s) ? Is(s) : s.contextElement ? Is(s.contextElement) : [],
|
|
36719
36719
|
popper: Is(a)
|
|
36720
36720
|
};
|
|
36721
36721
|
var g = SF(CF([].concat(r, c.options.modifiers)));
|
|
@@ -36795,7 +36795,7 @@ function AF(t) {
|
|
|
36795
36795
|
}
|
|
36796
36796
|
var $F = [XN, hF, KN, V3, pF, aF, yF, HN, cF], TF = /* @__PURE__ */ AF({
|
|
36797
36797
|
defaultModifiers: $F
|
|
36798
|
-
}), OF = "tippy-box", Q3 = "tippy-content", MF = "tippy-backdrop", ek = "tippy-arrow", tk = "tippy-svg-arrow",
|
|
36798
|
+
}), OF = "tippy-box", Q3 = "tippy-content", MF = "tippy-backdrop", ek = "tippy-arrow", tk = "tippy-svg-arrow", yo = {
|
|
36799
36799
|
passive: !0,
|
|
36800
36800
|
capture: !0
|
|
36801
36801
|
}, nk = function() {
|
|
@@ -36936,7 +36936,7 @@ function UF() {
|
|
|
36936
36936
|
}
|
|
36937
36937
|
}
|
|
36938
36938
|
function HF() {
|
|
36939
|
-
document.addEventListener("touchstart", qF,
|
|
36939
|
+
document.addEventListener("touchstart", qF, yo), window.addEventListener("blur", UF);
|
|
36940
36940
|
}
|
|
36941
36941
|
var VF = typeof window < "u" && typeof document < "u", WF = VF ? (
|
|
36942
36942
|
// @ts-ignore
|
|
@@ -37290,11 +37290,11 @@ function nR(t, e) {
|
|
|
37290
37290
|
}
|
|
37291
37291
|
function ie() {
|
|
37292
37292
|
var j = $();
|
|
37293
|
-
j.addEventListener("mousedown", F, !0), j.addEventListener("touchend", F,
|
|
37293
|
+
j.addEventListener("mousedown", F, !0), j.addEventListener("touchend", F, yo), j.addEventListener("touchstart", ee, yo), j.addEventListener("touchmove", Q, yo);
|
|
37294
37294
|
}
|
|
37295
37295
|
function J() {
|
|
37296
37296
|
var j = $();
|
|
37297
|
-
j.removeEventListener("mousedown", F, !0), j.removeEventListener("touchend", F,
|
|
37297
|
+
j.removeEventListener("mousedown", F, !0), j.removeEventListener("touchend", F, yo), j.removeEventListener("touchstart", ee, yo), j.removeEventListener("touchmove", Q, yo);
|
|
37298
37298
|
}
|
|
37299
37299
|
function T(j, H) {
|
|
37300
37300
|
U(j, function() {
|
|
@@ -37669,10 +37669,10 @@ const kt = (t, e) => {
|
|
|
37669
37669
|
], 42, rR))), 128))
|
|
37670
37670
|
], 544));
|
|
37671
37671
|
}
|
|
37672
|
-
}, cR = /* @__PURE__ */ kt(lR, [["__scopeId", "data-v-0a2a8b4e"]]), f0 = new
|
|
37672
|
+
}, cR = /* @__PURE__ */ kt(lR, [["__scopeId", "data-v-0a2a8b4e"]]), f0 = new Ze("popoverPlugin"), uR = ct.create({
|
|
37673
37673
|
name: "popoverPlugin",
|
|
37674
37674
|
addPmPlugins() {
|
|
37675
|
-
return [new
|
|
37675
|
+
return [new Xe({
|
|
37676
37676
|
key: f0,
|
|
37677
37677
|
state: {
|
|
37678
37678
|
init: () => ({}),
|
|
@@ -37799,21 +37799,21 @@ const pR = !1, fR = ct.create({
|
|
|
37799
37799
|
addPmPlugins() {
|
|
37800
37800
|
const t = this.editor;
|
|
37801
37801
|
let e = !1, n = !1, r = !1, o = !1;
|
|
37802
|
-
return [new
|
|
37802
|
+
return [new Xe({
|
|
37803
37803
|
key: eo,
|
|
37804
37804
|
state: {
|
|
37805
37805
|
isReadyToInit: !1,
|
|
37806
37806
|
init(i, s) {
|
|
37807
37807
|
return {
|
|
37808
37808
|
isReadyToInit: !1,
|
|
37809
|
-
decorations:
|
|
37809
|
+
decorations: Fe.empty,
|
|
37810
37810
|
isDebugging: pR
|
|
37811
37811
|
};
|
|
37812
37812
|
},
|
|
37813
37813
|
apply(i, s, a, l) {
|
|
37814
37814
|
const c = i.getMeta(eo);
|
|
37815
37815
|
c && c.isReadyToInit && (n = !0, o = c.isReadyToInit);
|
|
37816
|
-
const u = i.getMeta(
|
|
37816
|
+
const u = i.getMeta(Do);
|
|
37817
37817
|
if (u) {
|
|
37818
37818
|
if (u.type === "remove") {
|
|
37819
37819
|
const p = u.pos, f = t.view.domAtPos(p).node.querySelector("img");
|
|
@@ -37839,7 +37839,7 @@ const pR = !1, fR = ct.create({
|
|
|
37839
37839
|
},
|
|
37840
37840
|
/* The view method is the most important part of the plugin */
|
|
37841
37841
|
view: (i) => {
|
|
37842
|
-
let s =
|
|
37842
|
+
let s = Fe.empty;
|
|
37843
37843
|
return {
|
|
37844
37844
|
update: (a) => {
|
|
37845
37845
|
!n || e || (e = !0, r = !0, hR(t, a, s), e = !1, n = !1);
|
|
@@ -37853,7 +37853,7 @@ const pR = !1, fR = ct.create({
|
|
|
37853
37853
|
}
|
|
37854
37854
|
})];
|
|
37855
37855
|
}
|
|
37856
|
-
}),
|
|
37856
|
+
}), ho = (t, e, n, r = null) => {
|
|
37857
37857
|
const { alternateHeaders: o } = n.converter.pageStyles, i = n.converter[e];
|
|
37858
37858
|
if (r && r.attrs?.paragraphProperties?.sectPr) {
|
|
37859
37859
|
const d = r.attrs?.paragraphProperties?.sectPr;
|
|
@@ -37880,9 +37880,9 @@ const pR = !1, fR = ct.create({
|
|
|
37880
37880
|
}
|
|
37881
37881
|
t.emit("paginationUpdate");
|
|
37882
37882
|
}, mR = (t, e, n) => {
|
|
37883
|
-
if (!e.converter) return
|
|
37883
|
+
if (!e.converter) return Fe.empty;
|
|
37884
37884
|
const r = e.converter.pageStyles?.pageSize, { width: o, height: i } = r;
|
|
37885
|
-
if (!o || !i) return
|
|
37885
|
+
if (!o || !i) return Fe.empty;
|
|
37886
37886
|
const s = [H8, eo], { state: a } = t, l = Cs.create({
|
|
37887
37887
|
schema: a.schema,
|
|
37888
37888
|
doc: a.doc,
|
|
@@ -37899,15 +37899,15 @@ const pR = !1, fR = ct.create({
|
|
|
37899
37899
|
});
|
|
37900
37900
|
e.initDefaultStyles(c);
|
|
37901
37901
|
const f = gR(l.doc, p, e, n);
|
|
37902
|
-
return p.destroy(), document.body.removeChild(c),
|
|
37902
|
+
return p.destroy(), document.body.removeChild(c), Fe.create(t.state.doc, f);
|
|
37903
37903
|
};
|
|
37904
37904
|
function gR(t, e, n, r) {
|
|
37905
37905
|
const o = [], { pageSize: i, pageMargins: s } = n.converter.pageStyles, a = i.height * 96;
|
|
37906
37906
|
n.options.scale;
|
|
37907
37907
|
let l = 1, c = a, u = null, d = null;
|
|
37908
|
-
const p =
|
|
37908
|
+
const p = ho(l, "headerIds", n), f = Va(s, i, r, p), h = Wa({ editor: n, header: f, isFirstHeader: !0 });
|
|
37909
37909
|
o.push(Ge.widget(0, h, { key: "stable-key" }));
|
|
37910
|
-
const m =
|
|
37910
|
+
const m = ho(l, "footerIds", n), y = bd(s, i, r, m);
|
|
37911
37911
|
c -= f.headerHeight + y.footerHeight;
|
|
37912
37912
|
let g = e?.coordsAtPos(t.content.size);
|
|
37913
37913
|
if (!g) return [];
|
|
@@ -37916,7 +37916,7 @@ function gR(t, e, n, r) {
|
|
|
37916
37916
|
if (g = e?.coordsAtPos(V), !g) return;
|
|
37917
37917
|
let $ = g.bottom > c, K = _.type.name === "hardBreak";
|
|
37918
37918
|
if (_.attrs?.pageBreakSource === "sectPr" && (t.nodeAt(V + _.nodeSize)?.attrs?.pageBreakSource === "sectPr" || (K = !0), l === 1)) {
|
|
37919
|
-
const oe =
|
|
37919
|
+
const oe = ho(l, "headerIds", n, _);
|
|
37920
37920
|
o.pop();
|
|
37921
37921
|
const W = Va(s, i, r, oe), le = Wa({ editor: n, header: W, isFirstHeader: !0 });
|
|
37922
37922
|
o.push(Ge.widget(0, le, { key: "stable-key" }));
|
|
@@ -37935,9 +37935,9 @@ function gR(t, e, n, r) {
|
|
|
37935
37935
|
top: le,
|
|
37936
37936
|
bottom: G,
|
|
37937
37937
|
pos: ce
|
|
37938
|
-
} = yR(e, V, c), Y =
|
|
37938
|
+
} = yR(e, V, c), Y = ho(l, "footerIds", n, _);
|
|
37939
37939
|
l++;
|
|
37940
|
-
const F =
|
|
37940
|
+
const F = ho(l, "headerIds", n);
|
|
37941
37941
|
d = Va(s, i, r, F), u = bd(s, i, r, Y, l - 1);
|
|
37942
37942
|
const Q = c - G, { node: ee } = h0(Q), ie = Ge.widget(ce, ee, { key: "stable-key" });
|
|
37943
37943
|
o.push(ie);
|
|
@@ -37946,7 +37946,7 @@ function gR(t, e, n, r) {
|
|
|
37946
37946
|
}
|
|
37947
37947
|
});
|
|
37948
37948
|
let v = t.content.size;
|
|
37949
|
-
const x = e.coordsAtPos(v), w =
|
|
37949
|
+
const x = e.coordsAtPos(v), w = ho(l, "headerIds", n), C = ho(l, "footerIds", n);
|
|
37950
37950
|
d = Va(s, i, r, w), u = bd(s, i, r, C, l);
|
|
37951
37951
|
const M = c - x.bottom, { node: O } = h0(M), N = Ge.widget(t.content.size, O, { key: "stable-key" });
|
|
37952
37952
|
o.push(N);
|
|
@@ -38231,7 +38231,7 @@ let vd = class {
|
|
|
38231
38231
|
};
|
|
38232
38232
|
function xd(t, e, n) {
|
|
38233
38233
|
if (!e.valid)
|
|
38234
|
-
return
|
|
38234
|
+
return Fe.empty;
|
|
38235
38235
|
let r = [], o = t.selection;
|
|
38236
38236
|
for (let i = n ? n.from : 0, s = n ? n.to : t.doc.content.size; ; ) {
|
|
38237
38237
|
let a = e.findNext(t, i, s);
|
|
@@ -38240,11 +38240,11 @@ function xd(t, e, n) {
|
|
|
38240
38240
|
let l = a.from == o.from && a.to == o.to ? "ProseMirror-active-search-match" : "ProseMirror-search-match";
|
|
38241
38241
|
r.push(Ge.inline(a.from, a.to, { class: l })), i = a.to;
|
|
38242
38242
|
}
|
|
38243
|
-
return
|
|
38243
|
+
return Fe.create(t.doc, r);
|
|
38244
38244
|
}
|
|
38245
|
-
const Fs = new
|
|
38245
|
+
const Fs = new Ze("search");
|
|
38246
38246
|
function ER(t = {}) {
|
|
38247
|
-
return new
|
|
38247
|
+
return new Xe({
|
|
38248
38248
|
key: Fs,
|
|
38249
38249
|
state: {
|
|
38250
38250
|
init(e, n) {
|
|
@@ -38273,14 +38273,35 @@ function ER(t = {}) {
|
|
|
38273
38273
|
}
|
|
38274
38274
|
function w0(t) {
|
|
38275
38275
|
let e = Fs.getState(t);
|
|
38276
|
-
return e ? e.deco :
|
|
38276
|
+
return e ? e.deco : Fe.empty;
|
|
38277
38277
|
}
|
|
38278
38278
|
function CR(t, e, n = null) {
|
|
38279
38279
|
return t.setMeta(Fs, { query: e, range: n });
|
|
38280
38280
|
}
|
|
38281
38281
|
const AR = ct.create({
|
|
38282
|
+
addStorage() {
|
|
38283
|
+
return {
|
|
38284
|
+
searchResults: []
|
|
38285
|
+
};
|
|
38286
|
+
},
|
|
38282
38287
|
addPmPlugins() {
|
|
38283
|
-
|
|
38288
|
+
const t = this.editor, e = this.storage, n = new Xe({
|
|
38289
|
+
key: new Ze("customSearchHighlights"),
|
|
38290
|
+
props: {
|
|
38291
|
+
decorations(r) {
|
|
38292
|
+
if (!t) return null;
|
|
38293
|
+
const o = e?.searchResults;
|
|
38294
|
+
if (!o?.length) return null;
|
|
38295
|
+
const i = o.map(
|
|
38296
|
+
(s, a) => Ge.inline(s.from, s.to, {
|
|
38297
|
+
id: `search-match-${s.id}`
|
|
38298
|
+
})
|
|
38299
|
+
);
|
|
38300
|
+
return Fe.create(r.doc, i);
|
|
38301
|
+
}
|
|
38302
|
+
}
|
|
38303
|
+
});
|
|
38304
|
+
return [ER(), n];
|
|
38284
38305
|
},
|
|
38285
38306
|
addCommands() {
|
|
38286
38307
|
return {
|
|
@@ -38290,29 +38311,30 @@ const AR = ct.create({
|
|
|
38290
38311
|
const o = r.children.find((s) => s.local), i = r.children[0] + o.local[0].from + 1;
|
|
38291
38312
|
e.view.domAtPos(i)?.node?.scrollIntoView(!0);
|
|
38292
38313
|
},
|
|
38293
|
-
search: (t) => ({ state: e,
|
|
38294
|
-
let
|
|
38295
|
-
const
|
|
38314
|
+
search: (t) => ({ state: e, editor: n, dispatch: r }) => {
|
|
38315
|
+
let o, i = !1, s = !1;
|
|
38316
|
+
const a = !1;
|
|
38296
38317
|
if (t instanceof RegExp)
|
|
38297
|
-
|
|
38318
|
+
s = !0, o = t.source, i = !t.flags.includes("i");
|
|
38298
38319
|
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
38299
|
-
const [,
|
|
38300
|
-
|
|
38320
|
+
const [, f, h] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
38321
|
+
s = !0, o = f, i = !h.includes("i");
|
|
38301
38322
|
} else
|
|
38302
|
-
|
|
38303
|
-
const
|
|
38304
|
-
search:
|
|
38305
|
-
caseSensitive:
|
|
38306
|
-
regexp:
|
|
38307
|
-
wholeWord:
|
|
38308
|
-
}),
|
|
38309
|
-
|
|
38310
|
-
const
|
|
38311
|
-
|
|
38312
|
-
|
|
38313
|
-
|
|
38314
|
-
|
|
38323
|
+
o = String(t);
|
|
38324
|
+
const l = new uk({
|
|
38325
|
+
search: o,
|
|
38326
|
+
caseSensitive: i,
|
|
38327
|
+
regexp: s,
|
|
38328
|
+
wholeWord: a
|
|
38329
|
+
}), c = CR(e.tr, l);
|
|
38330
|
+
r(c);
|
|
38331
|
+
const u = e.apply(c), d = w0(u), p = (d ? d.find() : []).map((f) => ({
|
|
38332
|
+
from: f.from,
|
|
38333
|
+
to: f.to,
|
|
38334
|
+
text: u.doc.textBetween(f.from, f.to),
|
|
38335
|
+
id: so()
|
|
38315
38336
|
}));
|
|
38337
|
+
return this.storage.searchResults = p, p;
|
|
38316
38338
|
},
|
|
38317
38339
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
38318
38340
|
const { from: o, to: i } = t;
|
|
@@ -38588,31 +38610,31 @@ const AR = ct.create({
|
|
|
38588
38610
|
g.value = k.replace(/[^0-9]/g, "");
|
|
38589
38611
|
}, O = Ce(() => i.value ? En.dropdownCaretUp : En.dropdownCaretDown);
|
|
38590
38612
|
return (N, k) => (xe(), Ee("div", {
|
|
38591
|
-
class: cn(["toolbar-item",
|
|
38613
|
+
class: cn(["toolbar-item", Re(y).className]),
|
|
38592
38614
|
style: Zt(C.value)
|
|
38593
38615
|
}, [
|
|
38594
38616
|
Pe("div", {
|
|
38595
38617
|
onClick: x,
|
|
38596
|
-
class: cn(["toolbar-button", { active:
|
|
38618
|
+
class: cn(["toolbar-button", { active: Re(i), disabled: Re(d), narrow: t.isNarrow, wide: t.isWide, "has-inline-text-input": Re(f) }])
|
|
38597
38619
|
}, [
|
|
38598
|
-
|
|
38620
|
+
Re(s) ? (xe(), Hr(vL, {
|
|
38599
38621
|
key: 0,
|
|
38600
|
-
color:
|
|
38622
|
+
color: Re(c),
|
|
38601
38623
|
class: "toolbar-icon",
|
|
38602
|
-
icon:
|
|
38603
|
-
name:
|
|
38624
|
+
icon: Re(s),
|
|
38625
|
+
name: Re(o)
|
|
38604
38626
|
}, null, 8, ["color", "icon", "name"])) : nt("", !0),
|
|
38605
|
-
|
|
38606
|
-
|
|
38607
|
-
|
|
38627
|
+
Re(a) && !Re(l) && !Re(p) ? (xe(), Ee("div", xL, tn(Re(a)), 1)) : nt("", !0),
|
|
38628
|
+
Re(p) ? (xe(), Ee("span", kL, [
|
|
38629
|
+
Re(o) === "fontSize" ? Ar((xe(), Ee("input", {
|
|
38608
38630
|
key: 0,
|
|
38609
38631
|
"onUpdate:modelValue": k[0] || (k[0] = (q) => g.value = q),
|
|
38610
38632
|
onInput: M,
|
|
38611
|
-
placeholder:
|
|
38633
|
+
placeholder: Re(a),
|
|
38612
38634
|
onKeydown: Ol(An(w, ["prevent"]), ["enter"]),
|
|
38613
38635
|
type: "text",
|
|
38614
38636
|
class: "button-text-input",
|
|
38615
|
-
id: "inlineTextInput-" +
|
|
38637
|
+
id: "inlineTextInput-" + Re(o),
|
|
38616
38638
|
autoccomplete: "off",
|
|
38617
38639
|
ref_key: "inlineInput",
|
|
38618
38640
|
ref: v
|
|
@@ -38621,11 +38643,11 @@ const AR = ct.create({
|
|
|
38621
38643
|
]) : Ar((xe(), Ee("input", {
|
|
38622
38644
|
key: 1,
|
|
38623
38645
|
"onUpdate:modelValue": k[1] || (k[1] = (q) => g.value = q),
|
|
38624
|
-
placeholder:
|
|
38646
|
+
placeholder: Re(a),
|
|
38625
38647
|
onKeydown: Ol(An(w, ["prevent"]), ["enter"]),
|
|
38626
38648
|
type: "text",
|
|
38627
38649
|
class: "button-text-input",
|
|
38628
|
-
id: "inlineTextInput-" +
|
|
38650
|
+
id: "inlineTextInput-" + Re(o),
|
|
38629
38651
|
autoccomplete: "off",
|
|
38630
38652
|
ref_key: "inlineInput",
|
|
38631
38653
|
ref: v
|
|
@@ -38633,11 +38655,11 @@ const AR = ct.create({
|
|
|
38633
38655
|
[zs, g.value]
|
|
38634
38656
|
])
|
|
38635
38657
|
])) : nt("", !0),
|
|
38636
|
-
|
|
38658
|
+
Re(u) ? (xe(), Ee("div", {
|
|
38637
38659
|
key: 3,
|
|
38638
38660
|
class: "dropdown-caret",
|
|
38639
38661
|
innerHTML: O.value,
|
|
38640
|
-
style: Zt({ opacity:
|
|
38662
|
+
style: Zt({ opacity: Re(d) ? 0.6 : 1 })
|
|
38641
38663
|
}, null, 12, CL)) : nt("", !0)
|
|
38642
38664
|
], 2)
|
|
38643
38665
|
], 6));
|
|
@@ -39263,7 +39285,7 @@ function aB(t, e, n) {
|
|
|
39263
39285
|
let r = e * Math.min(n, 1 - n), o = (i, s = (i + t / 30) % 12) => n - r * Math.max(Math.min(s - 3, 9 - s, 1), -1);
|
|
39264
39286
|
return [o(0) * 255, o(8) * 255, o(4) * 255];
|
|
39265
39287
|
}
|
|
39266
|
-
const ar = "^\\s*", lr = "\\s*$", ro = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Cn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",
|
|
39288
|
+
const ar = "^\\s*", lr = "\\s*$", ro = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*", Cn = "\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*", Eo = "([0-9A-Fa-f])", Co = "([0-9A-Fa-f]{2})", xk = new RegExp(`${ar}hsl\\s*\\(${Cn},${ro},${ro}\\)${lr}`), kk = new RegExp(`${ar}hsv\\s*\\(${Cn},${ro},${ro}\\)${lr}`), Sk = new RegExp(`${ar}hsla\\s*\\(${Cn},${ro},${ro},${Cn}\\)${lr}`), Ek = new RegExp(`${ar}hsva\\s*\\(${Cn},${ro},${ro},${Cn}\\)${lr}`), lB = new RegExp(`${ar}rgb\\s*\\(${Cn},${Cn},${Cn}\\)${lr}`), cB = new RegExp(`${ar}rgba\\s*\\(${Cn},${Cn},${Cn},${Cn}\\)${lr}`), uB = new RegExp(`${ar}#${Eo}${Eo}${Eo}${lr}`), dB = new RegExp(`${ar}#${Co}${Co}${Co}${lr}`), pB = new RegExp(`${ar}#${Eo}${Eo}${Eo}${Eo}${lr}`), fB = new RegExp(`${ar}#${Co}${Co}${Co}${Co}${lr}`);
|
|
39267
39289
|
function sn(t) {
|
|
39268
39290
|
return parseInt(t, 16);
|
|
39269
39291
|
}
|
|
@@ -39275,7 +39297,7 @@ function hB(t) {
|
|
|
39275
39297
|
ac(e[1]),
|
|
39276
39298
|
Gr(e[5]),
|
|
39277
39299
|
Gr(e[9]),
|
|
39278
|
-
|
|
39300
|
+
Io(e[13])
|
|
39279
39301
|
];
|
|
39280
39302
|
if (e = xk.exec(t))
|
|
39281
39303
|
return [ac(e[1]), Gr(e[5]), Gr(e[9]), 1];
|
|
@@ -39292,7 +39314,7 @@ function mB(t) {
|
|
|
39292
39314
|
ac(e[1]),
|
|
39293
39315
|
Gr(e[5]),
|
|
39294
39316
|
Gr(e[9]),
|
|
39295
|
-
|
|
39317
|
+
Io(e[13])
|
|
39296
39318
|
];
|
|
39297
39319
|
if (e = kk.exec(t))
|
|
39298
39320
|
return [ac(e[1]), Gr(e[5]), Gr(e[9]), 1];
|
|
@@ -39301,7 +39323,7 @@ function mB(t) {
|
|
|
39301
39323
|
throw e;
|
|
39302
39324
|
}
|
|
39303
39325
|
}
|
|
39304
|
-
function
|
|
39326
|
+
function qo(t) {
|
|
39305
39327
|
try {
|
|
39306
39328
|
let e;
|
|
39307
39329
|
if (e = dB.exec(t))
|
|
@@ -39313,7 +39335,7 @@ function jo(t) {
|
|
|
39313
39335
|
qt(e[1]),
|
|
39314
39336
|
qt(e[5]),
|
|
39315
39337
|
qt(e[9]),
|
|
39316
|
-
|
|
39338
|
+
Io(e[13])
|
|
39317
39339
|
];
|
|
39318
39340
|
if (e = uB.exec(t))
|
|
39319
39341
|
return [
|
|
@@ -39327,17 +39349,17 @@ function jo(t) {
|
|
|
39327
39349
|
sn(e[1]),
|
|
39328
39350
|
sn(e[2]),
|
|
39329
39351
|
sn(e[3]),
|
|
39330
|
-
|
|
39352
|
+
Io(sn(e[4]) / 255)
|
|
39331
39353
|
];
|
|
39332
39354
|
if (e = pB.exec(t))
|
|
39333
39355
|
return [
|
|
39334
39356
|
sn(e[1] + e[1]),
|
|
39335
39357
|
sn(e[2] + e[2]),
|
|
39336
39358
|
sn(e[3] + e[3]),
|
|
39337
|
-
|
|
39359
|
+
Io(sn(e[4] + e[4]) / 255)
|
|
39338
39360
|
];
|
|
39339
39361
|
if (t in T0)
|
|
39340
|
-
return
|
|
39362
|
+
return qo(T0[t]);
|
|
39341
39363
|
if (xk.test(t) || Sk.test(t)) {
|
|
39342
39364
|
const [n, r, o, i] = hB(t);
|
|
39343
39365
|
return [...aB(n, r, o), i];
|
|
@@ -39360,19 +39382,19 @@ function Sd(t, e, n, r, o) {
|
|
|
39360
39382
|
return qt((t * e * (1 - r) + n * r) / o);
|
|
39361
39383
|
}
|
|
39362
39384
|
function Ck(t, e) {
|
|
39363
|
-
Array.isArray(t) || (t =
|
|
39364
|
-
const n = t[3], r = e[3], o =
|
|
39385
|
+
Array.isArray(t) || (t = qo(t)), Array.isArray(e) || (e = qo(e));
|
|
39386
|
+
const n = t[3], r = e[3], o = Io(n + r - n * r);
|
|
39365
39387
|
return Yp(Sd(t[0], n, e[0], r, o), Sd(t[1], n, e[1], r, o), Sd(t[2], n, e[2], r, o), o);
|
|
39366
39388
|
}
|
|
39367
39389
|
function yB(t, e) {
|
|
39368
|
-
const [n, r, o, i = 1] = Array.isArray(t) ? t :
|
|
39390
|
+
const [n, r, o, i = 1] = Array.isArray(t) ? t : qo(t);
|
|
39369
39391
|
return typeof e.alpha == "number" ? Yp(n, r, o, e.alpha) : Yp(n, r, o, i);
|
|
39370
39392
|
}
|
|
39371
39393
|
function Xa(t, e) {
|
|
39372
|
-
const [n, r, o, i = 1] = Array.isArray(t) ? t :
|
|
39394
|
+
const [n, r, o, i = 1] = Array.isArray(t) ? t : qo(t), { lightness: s = 1, alpha: a = 1 } = e;
|
|
39373
39395
|
return wB([n * s, r * s, o * s, i * a]);
|
|
39374
39396
|
}
|
|
39375
|
-
function
|
|
39397
|
+
function Io(t) {
|
|
39376
39398
|
const e = Math.round(Number(t) * 100) / 100;
|
|
39377
39399
|
return e > 1 ? 1 : e < 0 ? 0 : e;
|
|
39378
39400
|
}
|
|
@@ -39390,7 +39412,7 @@ function Gr(t) {
|
|
|
39390
39412
|
}
|
|
39391
39413
|
function wB(t) {
|
|
39392
39414
|
const [e, n, r] = t;
|
|
39393
|
-
return 3 in t ? `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, ${
|
|
39415
|
+
return 3 in t ? `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, ${Io(t[3])})` : `rgba(${qt(e)}, ${qt(n)}, ${qt(r)}, 1)`;
|
|
39394
39416
|
}
|
|
39395
39417
|
function bB(t = 8) {
|
|
39396
39418
|
return Math.random().toString(16).slice(2, 2 + t);
|
|
@@ -40553,12 +40575,12 @@ const r9 = Ya([
|
|
|
40553
40575
|
});
|
|
40554
40576
|
}
|
|
40555
40577
|
});
|
|
40556
|
-
var
|
|
40557
|
-
return
|
|
40578
|
+
var No = [], o9 = function() {
|
|
40579
|
+
return No.some(function(t) {
|
|
40558
40580
|
return t.activeTargets.length > 0;
|
|
40559
40581
|
});
|
|
40560
40582
|
}, i9 = function() {
|
|
40561
|
-
return
|
|
40583
|
+
return No.some(function(t) {
|
|
40562
40584
|
return t.skippedTargets.length > 0;
|
|
40563
40585
|
});
|
|
40564
40586
|
}, L0 = "ResizeObserver loop completed with undelivered notifications.", s9 = function() {
|
|
@@ -40570,16 +40592,16 @@ var Io = [], o9 = function() {
|
|
|
40570
40592
|
(function(t) {
|
|
40571
40593
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
40572
40594
|
})(la || (la = {}));
|
|
40573
|
-
var
|
|
40595
|
+
var Fo = function(t) {
|
|
40574
40596
|
return Object.freeze(t);
|
|
40575
40597
|
}, a9 = /* @__PURE__ */ function() {
|
|
40576
40598
|
function t(e, n) {
|
|
40577
|
-
this.inlineSize = e, this.blockSize = n,
|
|
40599
|
+
this.inlineSize = e, this.blockSize = n, Fo(this);
|
|
40578
40600
|
}
|
|
40579
40601
|
return t;
|
|
40580
40602
|
}(), Rk = function() {
|
|
40581
40603
|
function t(e, n, r, o) {
|
|
40582
|
-
return this.x = e, this.y = n, this.width = r, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width,
|
|
40604
|
+
return this.x = e, this.y = n, this.width = r, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Fo(this);
|
|
40583
40605
|
}
|
|
40584
40606
|
return t.prototype.toJSON = function() {
|
|
40585
40607
|
var e = this, n = e.x, r = e.y, o = e.top, i = e.right, s = e.bottom, a = e.left, l = e.width, c = e.height;
|
|
@@ -40621,7 +40643,7 @@ var No = function(t) {
|
|
|
40621
40643
|
return parseFloat(t || "0");
|
|
40622
40644
|
}, xi = function(t, e, n) {
|
|
40623
40645
|
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new a9((n ? e : t) || 0, (n ? t : e) || 0);
|
|
40624
|
-
}, z0 =
|
|
40646
|
+
}, z0 = Fo({
|
|
40625
40647
|
devicePixelContentBoxSize: xi(),
|
|
40626
40648
|
borderBoxSize: xi(),
|
|
40627
40649
|
contentBoxSize: xi(),
|
|
@@ -40631,7 +40653,7 @@ var No = function(t) {
|
|
|
40631
40653
|
return Qa.get(t);
|
|
40632
40654
|
if (Lk(t))
|
|
40633
40655
|
return Qa.set(t, z0), z0;
|
|
40634
|
-
var n = getComputedStyle(t), r = vh(t) && t.ownerSVGElement && t.getBBox(), o = !u9 && n.boxSizing === "border-box", i = c9.test(n.writingMode || ""), s = !r && P0.test(n.overflowY || ""), a = !r && P0.test(n.overflowX || ""), l = r ? 0 : Wn(n.paddingTop), c = r ? 0 : Wn(n.paddingRight), u = r ? 0 : Wn(n.paddingBottom), d = r ? 0 : Wn(n.paddingLeft), p = r ? 0 : Wn(n.borderTopWidth), f = r ? 0 : Wn(n.borderRightWidth), h = r ? 0 : Wn(n.borderBottomWidth), m = r ? 0 : Wn(n.borderLeftWidth), y = d + c, g = l + u, v = m + f, x = p + h, w = a ? t.offsetHeight - x - t.clientHeight : 0, C = s ? t.offsetWidth - v - t.clientWidth : 0, M = o ? y + v : 0, O = o ? g + x : 0, N = r ? r.width : Wn(n.width) - M - C, k = r ? r.height : Wn(n.height) - O - w, q = N + y + C + v, re = k + g + w + x, _ =
|
|
40656
|
+
var n = getComputedStyle(t), r = vh(t) && t.ownerSVGElement && t.getBBox(), o = !u9 && n.boxSizing === "border-box", i = c9.test(n.writingMode || ""), s = !r && P0.test(n.overflowY || ""), a = !r && P0.test(n.overflowX || ""), l = r ? 0 : Wn(n.paddingTop), c = r ? 0 : Wn(n.paddingRight), u = r ? 0 : Wn(n.paddingBottom), d = r ? 0 : Wn(n.paddingLeft), p = r ? 0 : Wn(n.borderTopWidth), f = r ? 0 : Wn(n.borderRightWidth), h = r ? 0 : Wn(n.borderBottomWidth), m = r ? 0 : Wn(n.borderLeftWidth), y = d + c, g = l + u, v = m + f, x = p + h, w = a ? t.offsetHeight - x - t.clientHeight : 0, C = s ? t.offsetWidth - v - t.clientWidth : 0, M = o ? y + v : 0, O = o ? g + x : 0, N = r ? r.width : Wn(n.width) - M - C, k = r ? r.height : Wn(n.height) - O - w, q = N + y + C + v, re = k + g + w + x, _ = Fo({
|
|
40635
40657
|
devicePixelContentBoxSize: xi(Math.round(N * devicePixelRatio), Math.round(k * devicePixelRatio), i),
|
|
40636
40658
|
borderBoxSize: xi(q, re, i),
|
|
40637
40659
|
contentBoxSize: xi(N, k, i),
|
|
@@ -40651,7 +40673,7 @@ var No = function(t) {
|
|
|
40651
40673
|
}, d9 = /* @__PURE__ */ function() {
|
|
40652
40674
|
function t(e) {
|
|
40653
40675
|
var n = Bk(e);
|
|
40654
|
-
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize =
|
|
40676
|
+
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = Fo([n.borderBoxSize]), this.contentBoxSize = Fo([n.contentBoxSize]), this.devicePixelContentBoxSize = Fo([n.devicePixelContentBoxSize]);
|
|
40655
40677
|
}
|
|
40656
40678
|
return t;
|
|
40657
40679
|
}(), zk = function(t) {
|
|
@@ -40662,7 +40684,7 @@ var No = function(t) {
|
|
|
40662
40684
|
return e;
|
|
40663
40685
|
}, p9 = function() {
|
|
40664
40686
|
var t = 1 / 0, e = [];
|
|
40665
|
-
|
|
40687
|
+
No.forEach(function(i) {
|
|
40666
40688
|
if (i.activeTargets.length !== 0) {
|
|
40667
40689
|
var s = [];
|
|
40668
40690
|
i.activeTargets.forEach(function(a) {
|
|
@@ -40679,7 +40701,7 @@ var No = function(t) {
|
|
|
40679
40701
|
}
|
|
40680
40702
|
return t;
|
|
40681
40703
|
}, j0 = function(t) {
|
|
40682
|
-
|
|
40704
|
+
No.forEach(function(e) {
|
|
40683
40705
|
e.activeTargets.splice(0, e.activeTargets.length), e.skippedTargets.splice(0, e.skippedTargets.length), e.observationTargets.forEach(function(n) {
|
|
40684
40706
|
n.isActive() && (zk(n.target) > t ? e.activeTargets.push(n) : e.skippedTargets.push(n));
|
|
40685
40707
|
});
|
|
@@ -40800,10 +40822,10 @@ var No = function(t) {
|
|
|
40800
40822
|
el.set(e, r);
|
|
40801
40823
|
}, t.observe = function(e, n, r) {
|
|
40802
40824
|
var o = el.get(e), i = o.observationTargets.length === 0;
|
|
40803
|
-
V0(o.observationTargets, n) < 0 && (i &&
|
|
40825
|
+
V0(o.observationTargets, n) < 0 && (i && No.push(o), o.observationTargets.push(new k9(n, r && r.box)), H0(1), ef.schedule());
|
|
40804
40826
|
}, t.unobserve = function(e, n) {
|
|
40805
40827
|
var r = el.get(e), o = V0(r.observationTargets, n), i = r.observationTargets.length === 1;
|
|
40806
|
-
o >= 0 && (i &&
|
|
40828
|
+
o >= 0 && (i && No.splice(No.indexOf(r), 1), r.observationTargets.splice(o, 1), H0(-1));
|
|
40807
40829
|
}, t.disconnect = function(e) {
|
|
40808
40830
|
var n = this, r = el.get(e);
|
|
40809
40831
|
r.observationTargets.slice().forEach(function(o) {
|
|
@@ -41220,7 +41242,7 @@ function Lc(t, e, n, r) {
|
|
|
41220
41242
|
}
|
|
41221
41243
|
};
|
|
41222
41244
|
}
|
|
41223
|
-
var Gk = typeof
|
|
41245
|
+
var Gk = typeof xo == "object" && xo && xo.Object === Object && xo, N9 = typeof self == "object" && self && self.Object === Object && self, cr = Gk || N9 || Function("return this")(), oo = cr.Symbol, Kk = Object.prototype, F9 = Kk.hasOwnProperty, R9 = Kk.toString, is = oo ? oo.toStringTag : void 0;
|
|
41224
41246
|
function L9(t) {
|
|
41225
41247
|
var e = F9.call(t, is), n = t[is];
|
|
41226
41248
|
try {
|
|
@@ -41262,7 +41284,7 @@ function Xk(t) {
|
|
|
41262
41284
|
var e = t + "";
|
|
41263
41285
|
return e == "0" && 1 / t == -1 / 0 ? "-0" : e;
|
|
41264
41286
|
}
|
|
41265
|
-
function
|
|
41287
|
+
function po(t) {
|
|
41266
41288
|
var e = typeof t;
|
|
41267
41289
|
return t != null && (e == "object" || e == "function");
|
|
41268
41290
|
}
|
|
@@ -41271,7 +41293,7 @@ function Sh(t) {
|
|
|
41271
41293
|
}
|
|
41272
41294
|
var H9 = "[object AsyncFunction]", V9 = "[object Function]", W9 = "[object GeneratorFunction]", G9 = "[object Proxy]";
|
|
41273
41295
|
function Eh(t) {
|
|
41274
|
-
if (!
|
|
41296
|
+
if (!po(t))
|
|
41275
41297
|
return !1;
|
|
41276
41298
|
var e = Vo(t);
|
|
41277
41299
|
return e == V9 || e == W9 || e == H9 || e == G9;
|
|
@@ -41301,7 +41323,7 @@ var Y9 = /[\\^$.*+?()[\]{}|]/g, Z9 = /^\[object .+?Constructor\]$/, Q9 = Functio
|
|
|
41301
41323
|
"^" + t7.call(n7).replace(Y9, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
41302
41324
|
);
|
|
41303
41325
|
function o7(t) {
|
|
41304
|
-
if (!
|
|
41326
|
+
if (!po(t) || K9(t))
|
|
41305
41327
|
return !1;
|
|
41306
41328
|
var e = Eh(t) ? r7 : Z9;
|
|
41307
41329
|
return e.test(Wo(t));
|
|
@@ -41317,7 +41339,7 @@ var nf = Go(cr, "WeakMap"), rb = Object.create, s7 = /* @__PURE__ */ function()
|
|
|
41317
41339
|
function t() {
|
|
41318
41340
|
}
|
|
41319
41341
|
return function(e) {
|
|
41320
|
-
if (!
|
|
41342
|
+
if (!po(e))
|
|
41321
41343
|
return {};
|
|
41322
41344
|
if (rb)
|
|
41323
41345
|
return rb(e);
|
|
@@ -41428,7 +41450,7 @@ function Ji(t) {
|
|
|
41428
41450
|
return t != null && $h(t.length) && !Eh(t);
|
|
41429
41451
|
}
|
|
41430
41452
|
function C7(t, e, n) {
|
|
41431
|
-
if (!
|
|
41453
|
+
if (!po(n))
|
|
41432
41454
|
return !1;
|
|
41433
41455
|
var r = typeof e;
|
|
41434
41456
|
return (r == "number" ? Ji(n) && Ch(e, n.length) : r == "string" && e in n) ? Aa(n[e], t) : !1;
|
|
@@ -41519,7 +41541,7 @@ function hP(t) {
|
|
|
41519
41541
|
}
|
|
41520
41542
|
var mP = Object.prototype, gP = mP.hasOwnProperty;
|
|
41521
41543
|
function yP(t) {
|
|
41522
|
-
if (!
|
|
41544
|
+
if (!po(t))
|
|
41523
41545
|
return hP(t);
|
|
41524
41546
|
var e = Th(t), n = [];
|
|
41525
41547
|
for (var r in t)
|
|
@@ -41563,18 +41585,18 @@ function MP(t, e) {
|
|
|
41563
41585
|
var n = this.__data__;
|
|
41564
41586
|
return this.size += this.has(t) ? 0 : 1, n[t] = ca && e === void 0 ? OP : e, this;
|
|
41565
41587
|
}
|
|
41566
|
-
function
|
|
41588
|
+
function Uo(t) {
|
|
41567
41589
|
var e = -1, n = t == null ? 0 : t.length;
|
|
41568
41590
|
for (this.clear(); ++e < n; ) {
|
|
41569
41591
|
var r = t[e];
|
|
41570
41592
|
this.set(r[0], r[1]);
|
|
41571
41593
|
}
|
|
41572
41594
|
}
|
|
41573
|
-
|
|
41574
|
-
|
|
41575
|
-
|
|
41576
|
-
|
|
41577
|
-
|
|
41595
|
+
Uo.prototype.clear = vP;
|
|
41596
|
+
Uo.prototype.delete = xP;
|
|
41597
|
+
Uo.prototype.get = CP;
|
|
41598
|
+
Uo.prototype.has = TP;
|
|
41599
|
+
Uo.prototype.set = MP;
|
|
41578
41600
|
function DP() {
|
|
41579
41601
|
this.__data__ = [], this.size = 0;
|
|
41580
41602
|
}
|
|
@@ -41618,9 +41640,9 @@ Mr.prototype.set = LP;
|
|
|
41618
41640
|
var ua = Go(cr, "Map");
|
|
41619
41641
|
function BP() {
|
|
41620
41642
|
this.size = 0, this.__data__ = {
|
|
41621
|
-
hash: new
|
|
41643
|
+
hash: new Uo(),
|
|
41622
41644
|
map: new (ua || Mr)(),
|
|
41623
|
-
string: new
|
|
41645
|
+
string: new Uo()
|
|
41624
41646
|
};
|
|
41625
41647
|
}
|
|
41626
41648
|
function PP(t) {
|
|
@@ -41997,7 +42019,7 @@ function sj(t, e, n, r) {
|
|
|
41997
42019
|
return !0;
|
|
41998
42020
|
}
|
|
41999
42021
|
function cS(t) {
|
|
42000
|
-
return t === t && !
|
|
42022
|
+
return t === t && !po(t);
|
|
42001
42023
|
}
|
|
42002
42024
|
function aj(t) {
|
|
42003
42025
|
for (var e = Mh(t), n = e.length; n--; ) {
|
|
@@ -42104,13 +42126,13 @@ function Cj(t, e, n, r, o, i, s) {
|
|
|
42104
42126
|
var u = i ? i(a, l, n + "", t, e, s) : void 0, d = u === void 0;
|
|
42105
42127
|
if (d) {
|
|
42106
42128
|
var p = Bn(l), f = !p && pc(l), h = !p && !f && Oh(l);
|
|
42107
|
-
u = l, p || f || h ? Bn(a) ? u = a : Sj(a) ? u = l7(a) : f ? (d = !1, u = pz(l)) : h ? (d = !1, u = Az(l)) : u = [] : oz(l) || dc(l) ? (u = a, dc(a) ? u = Ej(a) : (!
|
|
42129
|
+
u = l, p || f || h ? Bn(a) ? u = a : Sj(a) ? u = l7(a) : f ? (d = !1, u = pz(l)) : h ? (d = !1, u = Az(l)) : u = [] : oz(l) || dc(l) ? (u = a, dc(a) ? u = Ej(a) : (!po(a) || Eh(a)) && (u = $z(l))) : d = !1;
|
|
42108
42130
|
}
|
|
42109
42131
|
d && (s.set(l, u), o(u, l, r, i, s), s.delete(l)), af(t, n, u);
|
|
42110
42132
|
}
|
|
42111
42133
|
function pS(t, e, n, r, o) {
|
|
42112
42134
|
t !== e && dS(e, function(i, s) {
|
|
42113
|
-
if (o || (o = new nr()),
|
|
42135
|
+
if (o || (o = new nr()), po(i))
|
|
42114
42136
|
Cj(t, e, s, n, pS, r, o);
|
|
42115
42137
|
else {
|
|
42116
42138
|
var a = r ? r(lf(t, s), i, s + "", t, e, o) : void 0;
|
|
@@ -42355,7 +42377,7 @@ const Ne = {
|
|
|
42355
42377
|
successDefault: "#18a058",
|
|
42356
42378
|
successActive: "#0c7a43",
|
|
42357
42379
|
successSuppl: "#36ad6a"
|
|
42358
|
-
}, Fj =
|
|
42380
|
+
}, Fj = qo(Ne.neutralBase), fS = qo(Ne.neutralInvertBase), Rj = `rgba(${fS.slice(0, 3).join(", ")}, `;
|
|
42359
42381
|
function Eb(t) {
|
|
42360
42382
|
return `${Rj + String(t)})`;
|
|
42361
42383
|
}
|
|
@@ -45664,7 +45686,7 @@ const Wq = {
|
|
|
45664
45686
|
key: 0,
|
|
45665
45687
|
style: { width: "20px" }
|
|
45666
45688
|
})) : nt("", !0),
|
|
45667
|
-
c(x) && x.nestedOptions?.value?.length ? (xe(), Hr(
|
|
45689
|
+
c(x) && x.nestedOptions?.value?.length ? (xe(), Hr(Re(Hq), {
|
|
45668
45690
|
key: 1,
|
|
45669
45691
|
options: x.nestedOptions.value,
|
|
45670
45692
|
trigger: x.disabled.value ? null : "click",
|
|
@@ -45677,7 +45699,7 @@ const Wq = {
|
|
|
45677
45699
|
style: Zt(x.dropdownStyles.value)
|
|
45678
45700
|
}, {
|
|
45679
45701
|
default: Zi(() => [
|
|
45680
|
-
Ot(
|
|
45702
|
+
Ot(Re(Ob), {
|
|
45681
45703
|
trigger: "hover",
|
|
45682
45704
|
disabled: !x.tooltip?.value
|
|
45683
45705
|
}, {
|
|
@@ -45698,7 +45720,7 @@ const Wq = {
|
|
|
45698
45720
|
}, 1032, ["disabled"])
|
|
45699
45721
|
]),
|
|
45700
45722
|
_: 2
|
|
45701
|
-
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : l(x) ? (xe(), Hr(
|
|
45723
|
+
}, 1032, ["options", "trigger", "show", "onSelect", "style"])) : l(x) ? (xe(), Hr(Re(Ob), {
|
|
45702
45724
|
key: 2,
|
|
45703
45725
|
trigger: "hover",
|
|
45704
45726
|
class: "sd-editor-toolbar-tooltip"
|
|
@@ -45751,9 +45773,9 @@ const Wq = {
|
|
|
45751
45773
|
};
|
|
45752
45774
|
return (d, p) => (xe(), Ee("div", {
|
|
45753
45775
|
class: "superdoc-toolbar",
|
|
45754
|
-
key:
|
|
45776
|
+
key: Re(r)
|
|
45755
45777
|
}, [
|
|
45756
|
-
|
|
45778
|
+
Re(o) ? (xe(), Hr(Tl, {
|
|
45757
45779
|
key: 0,
|
|
45758
45780
|
"toolbar-items": a("left"),
|
|
45759
45781
|
position: "left",
|
|
@@ -45762,11 +45784,11 @@ const Wq = {
|
|
|
45762
45784
|
}, null, 8, ["toolbar-items"])) : nt("", !0),
|
|
45763
45785
|
Ot(Tl, {
|
|
45764
45786
|
"toolbar-items": a("center"),
|
|
45765
|
-
"overflow-items":
|
|
45787
|
+
"overflow-items": Re(n).$toolbar.overflowItems,
|
|
45766
45788
|
position: "center",
|
|
45767
45789
|
onCommand: u
|
|
45768
45790
|
}, null, 8, ["toolbar-items", "overflow-items"]),
|
|
45769
|
-
|
|
45791
|
+
Re(i) ? (xe(), Hr(Tl, {
|
|
45770
45792
|
key: 1,
|
|
45771
45793
|
"toolbar-items": a("right"),
|
|
45772
45794
|
position: "right",
|
|
@@ -46019,7 +46041,7 @@ const iU = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
46019
46041
|
Pe("div", cU, [
|
|
46020
46042
|
Pe("span", {
|
|
46021
46043
|
class: "ai-textarea-icon",
|
|
46022
|
-
innerHTML:
|
|
46044
|
+
innerHTML: Re(iU)
|
|
46023
46045
|
}, null, 8, uU),
|
|
46024
46046
|
Ar(Pe("textarea", {
|
|
46025
46047
|
ref_key: "editableRef",
|
|
@@ -46036,16 +46058,16 @@ const iU = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
46036
46058
|
]),
|
|
46037
46059
|
Pe("div", pU, [
|
|
46038
46060
|
f.value ? (xe(), Ee("span", fU, [
|
|
46039
|
-
Pe("span", { innerHTML:
|
|
46061
|
+
Pe("span", { innerHTML: Re(lU) }, null, 8, hU)
|
|
46040
46062
|
])) : h.value ? (xe(), Ee("span", {
|
|
46041
46063
|
key: 1,
|
|
46042
46064
|
class: "ai-textarea-icon error",
|
|
46043
|
-
innerHTML:
|
|
46065
|
+
innerHTML: Re(aU)
|
|
46044
46066
|
}, null, 8, mU)) : m.value ? (xe(), Ee("span", {
|
|
46045
46067
|
key: 2,
|
|
46046
46068
|
class: "ai-textarea-icon ai-submit-button",
|
|
46047
46069
|
onClick: An(M, ["stop"]),
|
|
46048
|
-
innerHTML:
|
|
46070
|
+
innerHTML: Re(sU)
|
|
46049
46071
|
}, null, 8, gU)) : nt("", !0)
|
|
46050
46072
|
])
|
|
46051
46073
|
], 544));
|
|
@@ -46191,7 +46213,7 @@ const Je = (t) => {
|
|
|
46191
46213
|
throw new Error("Toolbar button item needs either icon or label - " + t.name);
|
|
46192
46214
|
if (!t.name)
|
|
46193
46215
|
throw new Error("Invalid toolbar item name - " + t.name);
|
|
46194
|
-
const e = me(
|
|
46216
|
+
const e = me(so()), n = t.type, r = me(t.name), o = t.command, i = t.noArgumentCommand, s = me(t.icon), a = me(t.group || "center"), l = me(t.allowWithoutEditor), c = me(t.attributes || {}), u = t.disabled || !1, d = me(t.disabled), p = me(!1), f = me(!1), h = me(t.style), m = me(t.isNarrow), y = me(t.isWide), g = me(t.minWidth), v = me(t.suppressActiveHighlight || !1), x = me(t.argument), w = me(null), C = me(null), M = me(t.iconColor), O = me(t.hasCaret), N = me(t.dropdownStyles), k = me(t.tooltip), q = me(t.tooltipVisible), re = me(t.tooltipTimeout), _ = me(t.defaultLabel), V = me(t.label), $ = me(t.hideLabel), K = me(t.inlineTextInputVisible), oe = me(t.hasInlineTextInput), W = me(t.markName), le = me(t.labelAttr), G = me(t.selectedValue), ce = me(t.dropdownValueKey), Y = me(t.inputRef || null), F = me([]);
|
|
46195
46217
|
if (t.options) {
|
|
46196
46218
|
if (!Array.isArray(t.options)) throw new Error("Invalid toolbar item options - " + t.options);
|
|
46197
46219
|
F.value.push(...t.options);
|
|
@@ -46268,22 +46290,22 @@ const Je = (t) => {
|
|
|
46268
46290
|
Pe("div", {
|
|
46269
46291
|
class: "button-icon",
|
|
46270
46292
|
onClick: i[0] || (i[0] = (s) => r("left")),
|
|
46271
|
-
innerHTML:
|
|
46293
|
+
innerHTML: Re(En).alignLeft
|
|
46272
46294
|
}, null, 8, AU),
|
|
46273
46295
|
Pe("div", {
|
|
46274
46296
|
class: "button-icon",
|
|
46275
46297
|
onClick: i[1] || (i[1] = (s) => r("center")),
|
|
46276
|
-
innerHTML:
|
|
46298
|
+
innerHTML: Re(En).alignCenter
|
|
46277
46299
|
}, null, 8, $U),
|
|
46278
46300
|
Pe("div", {
|
|
46279
46301
|
class: "button-icon",
|
|
46280
46302
|
onClick: i[2] || (i[2] = (s) => r("right")),
|
|
46281
|
-
innerHTML:
|
|
46303
|
+
innerHTML: Re(En).alignRight
|
|
46282
46304
|
}, null, 8, TU),
|
|
46283
46305
|
Pe("div", {
|
|
46284
46306
|
class: "button-icon",
|
|
46285
46307
|
onClick: i[3] || (i[3] = (s) => r("justify")),
|
|
46286
|
-
innerHTML:
|
|
46308
|
+
innerHTML: Re(En).alignJustify
|
|
46287
46309
|
}, null, 8, OU)
|
|
46288
46310
|
]));
|
|
46289
46311
|
}
|
|
@@ -46361,7 +46383,7 @@ const Je = (t) => {
|
|
|
46361
46383
|
Pe("div", LU, [
|
|
46362
46384
|
Pe("div", {
|
|
46363
46385
|
class: "input-icon",
|
|
46364
|
-
innerHTML:
|
|
46386
|
+
innerHTML: Re(En).linkInput
|
|
46365
46387
|
}, null, 8, BU),
|
|
46366
46388
|
Ar(Pe("input", {
|
|
46367
46389
|
type: "text",
|
|
@@ -46377,7 +46399,7 @@ const Je = (t) => {
|
|
|
46377
46399
|
]),
|
|
46378
46400
|
Pe("div", {
|
|
46379
46401
|
class: cn(["open-link-icon", { disabled: !d.value }]),
|
|
46380
|
-
innerHTML:
|
|
46402
|
+
innerHTML: Re(En).openLink,
|
|
46381
46403
|
onClick: g
|
|
46382
46404
|
}, null, 10, zU)
|
|
46383
46405
|
]),
|
|
@@ -46389,7 +46411,7 @@ const Je = (t) => {
|
|
|
46389
46411
|
}, [
|
|
46390
46412
|
Pe("div", {
|
|
46391
46413
|
class: "remove-btn__icon",
|
|
46392
|
-
innerHTML:
|
|
46414
|
+
innerHTML: Re(En).removeLink
|
|
46393
46415
|
}, null, 8, qU),
|
|
46394
46416
|
w[3] || (w[3] = to(" Remove "))
|
|
46395
46417
|
])) : nt("", !0),
|
|
@@ -46453,13 +46475,13 @@ const Je = (t) => {
|
|
|
46453
46475
|
n("select", i);
|
|
46454
46476
|
};
|
|
46455
46477
|
return (i, s) => r.editor ? (xe(), Ee("div", tH, [
|
|
46456
|
-
(xe(!0), Ee(yt, null, In(
|
|
46478
|
+
(xe(!0), Ee(yt, null, In(Re(a3)(t.editor), (a) => (xe(), Ee("div", {
|
|
46457
46479
|
class: "style-item",
|
|
46458
46480
|
onClick: (l) => o(a)
|
|
46459
46481
|
}, [
|
|
46460
46482
|
Pe("div", {
|
|
46461
46483
|
class: "style-name",
|
|
46462
|
-
style: Zt(
|
|
46484
|
+
style: Zt(Re(s3)(a, null, !1))
|
|
46463
46485
|
}, tn(a.definition.attrs.name), 5)
|
|
46464
46486
|
], 8, nH))), 256))
|
|
46465
46487
|
])) : nt("", !0);
|
|
@@ -46500,7 +46522,7 @@ const Je = (t) => {
|
|
|
46500
46522
|
o.value(d) ? (xe(), Ee("div", {
|
|
46501
46523
|
key: 0,
|
|
46502
46524
|
class: "option__check",
|
|
46503
|
-
innerHTML:
|
|
46525
|
+
innerHTML: Re(En).colorOptionCheck,
|
|
46504
46526
|
style: Zt(i(d.value, p))
|
|
46505
46527
|
}, null, 12, aH)) : nt("", !0)
|
|
46506
46528
|
], 8, iH))), 128))
|
|
@@ -46539,7 +46561,7 @@ const Je = (t) => {
|
|
|
46539
46561
|
onClick: i[0] || (i[0] = (s) => r("none"))
|
|
46540
46562
|
}, [
|
|
46541
46563
|
Pe("span", {
|
|
46542
|
-
innerHTML:
|
|
46564
|
+
innerHTML: Re(cH),
|
|
46543
46565
|
class: "none-icon"
|
|
46544
46566
|
}, null, 8, dH),
|
|
46545
46567
|
i[1] || (i[1] = to(" None "))
|
|
@@ -47596,7 +47618,7 @@ const Je = (t) => {
|
|
|
47596
47618
|
pos: a.selection.from,
|
|
47597
47619
|
id: s
|
|
47598
47620
|
};
|
|
47599
|
-
a.setMeta(
|
|
47621
|
+
a.setMeta(Do, c), e.dispatch(a), r(n).then(
|
|
47600
47622
|
(u) => {
|
|
47601
47623
|
let d = n.name.replace(" ", "_"), p = uN(e.state, s);
|
|
47602
47624
|
if (p == null)
|
|
@@ -47606,12 +47628,12 @@ const Je = (t) => {
|
|
|
47606
47628
|
size: { width: o, height: i }
|
|
47607
47629
|
});
|
|
47608
47630
|
t.storage.image.media = Object.assign(t.storage.image.media, { [h]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: h, fileData: u }), e.dispatch(
|
|
47609
|
-
e.state.tr.replaceWith(p, p, m).setMeta(
|
|
47631
|
+
e.state.tr.replaceWith(p, p, m).setMeta(Do, f)
|
|
47610
47632
|
);
|
|
47611
47633
|
},
|
|
47612
47634
|
() => {
|
|
47613
47635
|
let u = { type: "remove", id: s };
|
|
47614
|
-
e.dispatch(a.setMeta(
|
|
47636
|
+
e.dispatch(a.setMeta(Do, u));
|
|
47615
47637
|
}
|
|
47616
47638
|
);
|
|
47617
47639
|
};
|
|
@@ -48129,45 +48151,45 @@ const UH = (t, e) => {
|
|
|
48129
48151
|
], 544),
|
|
48130
48152
|
o.value ? nt("", !0) : (xe(), Ee("div", JH, [
|
|
48131
48153
|
Pe("div", XH, [
|
|
48132
|
-
Ot(
|
|
48154
|
+
Ot(Re(Gn), {
|
|
48133
48155
|
text: "",
|
|
48134
48156
|
style: { width: "60%" }
|
|
48135
48157
|
})
|
|
48136
48158
|
]),
|
|
48137
|
-
Ot(
|
|
48159
|
+
Ot(Re(Gn), {
|
|
48138
48160
|
text: "",
|
|
48139
48161
|
repeat: 6
|
|
48140
48162
|
}),
|
|
48141
|
-
Ot(
|
|
48163
|
+
Ot(Re(Gn), {
|
|
48142
48164
|
text: "",
|
|
48143
48165
|
style: { width: "60%" }
|
|
48144
48166
|
}),
|
|
48145
|
-
Ot(
|
|
48167
|
+
Ot(Re(Gn), {
|
|
48146
48168
|
text: "",
|
|
48147
48169
|
repeat: 6,
|
|
48148
48170
|
style: { width: "30%", display: "block", margin: "20px" }
|
|
48149
48171
|
}),
|
|
48150
|
-
Ot(
|
|
48172
|
+
Ot(Re(Gn), {
|
|
48151
48173
|
text: "",
|
|
48152
48174
|
style: { width: "60%" }
|
|
48153
48175
|
}),
|
|
48154
|
-
Ot(
|
|
48176
|
+
Ot(Re(Gn), {
|
|
48155
48177
|
text: "",
|
|
48156
48178
|
repeat: 5
|
|
48157
48179
|
}),
|
|
48158
|
-
Ot(
|
|
48180
|
+
Ot(Re(Gn), {
|
|
48159
48181
|
text: "",
|
|
48160
48182
|
style: { width: "30%" }
|
|
48161
48183
|
}),
|
|
48162
|
-
Ot(
|
|
48184
|
+
Ot(Re(Gn), {
|
|
48163
48185
|
text: "",
|
|
48164
48186
|
style: { "margin-top": "50px" }
|
|
48165
48187
|
}),
|
|
48166
|
-
Ot(
|
|
48188
|
+
Ot(Re(Gn), {
|
|
48167
48189
|
text: "",
|
|
48168
48190
|
repeat: 6
|
|
48169
48191
|
}),
|
|
48170
|
-
Ot(
|
|
48192
|
+
Ot(Re(Gn), {
|
|
48171
48193
|
text: "",
|
|
48172
48194
|
style: { width: "70%" }
|
|
48173
48195
|
})
|
|
@@ -48259,7 +48281,7 @@ const UH = (t, e) => {
|
|
|
48259
48281
|
Node: et,
|
|
48260
48282
|
Attribute: Oe,
|
|
48261
48283
|
Extension: ct,
|
|
48262
|
-
Plugin:
|
|
48284
|
+
Plugin: Xe,
|
|
48263
48285
|
Mark: yn
|
|
48264
48286
|
};
|
|
48265
48287
|
export {
|
|
@@ -48271,7 +48293,7 @@ export {
|
|
|
48271
48293
|
NV as L,
|
|
48272
48294
|
zV as M,
|
|
48273
48295
|
my as N,
|
|
48274
|
-
|
|
48296
|
+
Bo as O,
|
|
48275
48297
|
eU as P,
|
|
48276
48298
|
tc as Q,
|
|
48277
48299
|
pk as S,
|