@harbour-enterprises/superdoc 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{super-editor.es-DuYBhMYe.es.js → super-editor.es-DHMvsb6g.es.js} +4 -4
- package/dist/chunks/{super-editor.es-DvZXJuGP.cjs → super-editor.es-TCX4UBkY.cjs} +2 -2
- package/dist/super-editor/chunks/{converter-Rx70Oyy_.js → converter-MQO9fSne.js} +620 -620
- package/dist/super-editor/chunks/{docx-zipper-C3CdrwGR.js → docx-zipper-BP5RW1jI.js} +1 -1
- package/dist/super-editor/chunks/{editor-BmA670kK.js → editor-7ArOKaK2.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DARtdvYp.js → toolbar-CQXO2s93.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/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 +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +713 -713
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -7419,9 +7419,9 @@
|
|
|
7419
7419
|
Ze$3[e >> 10] + Ze$3[e >> 4 & 63] + Ze$3[e << 2 & 63] + "="
|
|
7420
7420
|
)), i3.join("");
|
|
7421
7421
|
}
|
|
7422
|
-
var
|
|
7422
|
+
var pi$2 = {};
|
|
7423
7423
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7424
|
-
|
|
7424
|
+
pi$2.read = function(r22, e, t, n, i3) {
|
|
7425
7425
|
var s, o, a = i3 * 8 - n - 1, u = (1 << a) - 1, f3 = u >> 1, c3 = -7, g = t ? i3 - 1 : 0, h3 = t ? -1 : 1, S = r22[e + g];
|
|
7426
7426
|
for (g += h3, s = S & (1 << -c3) - 1, S >>= -c3, c3 += a; c3 > 0; s = s * 256 + r22[e + g], g += h3, c3 -= 8)
|
|
7427
7427
|
;
|
|
@@ -7436,7 +7436,7 @@
|
|
|
7436
7436
|
}
|
|
7437
7437
|
return (S ? -1 : 1) * o * Math.pow(2, s - n);
|
|
7438
7438
|
};
|
|
7439
|
-
|
|
7439
|
+
pi$2.write = function(r22, e, t, n, i3, s) {
|
|
7440
7440
|
var o, a, u, f3 = s * 8 - i3 - 1, c3 = (1 << f3) - 1, g = c3 >> 1, h3 = i3 === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, S = n ? 0 : s - 1, T3 = n ? 1 : -1, A = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
7441
7441
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = c3) : (o = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -o)) < 1 && (o--, u *= 2), o + g >= 1 ? e += h3 / u : e += h3 * Math.pow(2, 1 - g), e * u >= 2 && (o++, u /= 2), o + g >= c3 ? (a = 0, o = c3) : o + g >= 1 ? (a = (e * u - 1) * Math.pow(2, i3), o = o + g) : (a = e * Math.pow(2, g - 1) * Math.pow(2, i3), o = 0)); i3 >= 8; r22[t + S] = a & 255, S += T3, a /= 256, i3 -= 8)
|
|
7442
7442
|
;
|
|
@@ -7451,7 +7451,7 @@
|
|
|
7451
7451
|
* @license MIT
|
|
7452
7452
|
*/
|
|
7453
7453
|
(function(r22) {
|
|
7454
|
-
const e = br$2, t =
|
|
7454
|
+
const e = br$2, t = pi$2, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
7455
7455
|
r22.Buffer = c3, r22.SlowBuffer = B, r22.INSPECT_MAX_BYTES = 50;
|
|
7456
7456
|
const i3 = 2147483647;
|
|
7457
7457
|
r22.kMaxLength = i3;
|
|
@@ -7929,16 +7929,16 @@
|
|
|
7929
7929
|
}
|
|
7930
7930
|
return J3(E3);
|
|
7931
7931
|
}
|
|
7932
|
-
const
|
|
7932
|
+
const pe2 = 4096;
|
|
7933
7933
|
function J3(w) {
|
|
7934
7934
|
const l = w.length;
|
|
7935
|
-
if (l <=
|
|
7935
|
+
if (l <= pe2)
|
|
7936
7936
|
return String.fromCharCode.apply(String, w);
|
|
7937
7937
|
let d = "", E3 = 0;
|
|
7938
7938
|
for (; E3 < l; )
|
|
7939
7939
|
d += String.fromCharCode.apply(
|
|
7940
7940
|
String,
|
|
7941
|
-
w.slice(E3, E3 +=
|
|
7941
|
+
w.slice(E3, E3 += pe2)
|
|
7942
7942
|
);
|
|
7943
7943
|
return d;
|
|
7944
7944
|
}
|
|
@@ -8104,7 +8104,7 @@
|
|
|
8104
8104
|
let G = Number(l >> BigInt(32) & BigInt(4294967295));
|
|
8105
8105
|
return w[d++] = G, G = G >> 8, w[d++] = G, G = G >> 8, w[d++] = G, G = G >> 8, w[d++] = G, d;
|
|
8106
8106
|
}
|
|
8107
|
-
function
|
|
8107
|
+
function p3(w, l, d, E3, P3) {
|
|
8108
8108
|
te2(l, E3, P3, w, d, 7);
|
|
8109
8109
|
let j = Number(l & BigInt(4294967295));
|
|
8110
8110
|
w[d + 7] = j, j = j >> 8, w[d + 6] = j, j = j >> 8, w[d + 5] = j, j = j >> 8, w[d + 4] = j;
|
|
@@ -8114,7 +8114,7 @@
|
|
|
8114
8114
|
c3.prototype.writeBigUInt64LE = Le2(function(l, d = 0) {
|
|
8115
8115
|
return O3(this, l, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
8116
8116
|
}), c3.prototype.writeBigUInt64BE = Le2(function(l, d = 0) {
|
|
8117
|
-
return
|
|
8117
|
+
return p3(this, l, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
8118
8118
|
}), c3.prototype.writeIntLE = function(l, d, E3, P3) {
|
|
8119
8119
|
if (l = +l, d = d >>> 0, !P3) {
|
|
8120
8120
|
const Ae2 = Math.pow(2, 8 * E3 - 1);
|
|
@@ -8146,14 +8146,14 @@
|
|
|
8146
8146
|
}, c3.prototype.writeBigInt64LE = Le2(function(l, d = 0) {
|
|
8147
8147
|
return O3(this, l, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
8148
8148
|
}), c3.prototype.writeBigInt64BE = Le2(function(l, d = 0) {
|
|
8149
|
-
return
|
|
8149
|
+
return p3(this, l, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
8150
8150
|
});
|
|
8151
|
-
function
|
|
8151
|
+
function m(w, l, d, E3, P3, j) {
|
|
8152
8152
|
if (d + E3 > w.length) throw new RangeError("Index out of range");
|
|
8153
8153
|
if (d < 0) throw new RangeError("Index out of range");
|
|
8154
8154
|
}
|
|
8155
8155
|
function N(w, l, d, E3, P3) {
|
|
8156
|
-
return l = +l, d = d >>> 0, P3 ||
|
|
8156
|
+
return l = +l, d = d >>> 0, P3 || m(w, l, d, 4), t.write(w, l, d, E3, 23, 4), d + 4;
|
|
8157
8157
|
}
|
|
8158
8158
|
c3.prototype.writeFloatLE = function(l, d, E3) {
|
|
8159
8159
|
return N(this, l, d, true, E3);
|
|
@@ -8161,7 +8161,7 @@
|
|
|
8161
8161
|
return N(this, l, d, false, E3);
|
|
8162
8162
|
};
|
|
8163
8163
|
function D3(w, l, d, E3, P3) {
|
|
8164
|
-
return l = +l, d = d >>> 0, P3 ||
|
|
8164
|
+
return l = +l, d = d >>> 0, P3 || m(w, l, d, 8), t.write(w, l, d, E3, 52, 8), d + 8;
|
|
8165
8165
|
}
|
|
8166
8166
|
c3.prototype.writeDoubleLE = function(l, d, E3) {
|
|
8167
8167
|
return D3(this, l, d, true, E3);
|
|
@@ -8695,20 +8695,20 @@
|
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
8697
|
}
|
|
8698
|
-
var ot$1 = [], Et$2 = false,
|
|
8698
|
+
var ot$1 = [], Et$2 = false, mt$2, ir$2 = -1;
|
|
8699
8699
|
function rl$2() {
|
|
8700
|
-
!Et$2 || !
|
|
8700
|
+
!Et$2 || !mt$2 || (Et$2 = false, mt$2.length ? ot$1 = mt$2.concat(ot$1) : ir$2 = -1, ot$1.length && Mo$2());
|
|
8701
8701
|
}
|
|
8702
8702
|
function Mo$2() {
|
|
8703
8703
|
if (!Et$2) {
|
|
8704
8704
|
var r22 = qo$1(rl$2);
|
|
8705
8705
|
Et$2 = true;
|
|
8706
8706
|
for (var e = ot$1.length; e; ) {
|
|
8707
|
-
for (
|
|
8708
|
-
|
|
8707
|
+
for (mt$2 = ot$1, ot$1 = []; ++ir$2 < e; )
|
|
8708
|
+
mt$2 && mt$2[ir$2].run();
|
|
8709
8709
|
ir$2 = -1, e = ot$1.length;
|
|
8710
8710
|
}
|
|
8711
|
-
|
|
8711
|
+
mt$2 = null, Et$2 = false, tl$2(r22);
|
|
8712
8712
|
}
|
|
8713
8713
|
}
|
|
8714
8714
|
Ee$1.nextTick = function(r22) {
|
|
@@ -8757,7 +8757,7 @@
|
|
|
8757
8757
|
return 0;
|
|
8758
8758
|
};
|
|
8759
8759
|
var nl$2 = _o$2.exports;
|
|
8760
|
-
const
|
|
8760
|
+
const me$1 = /* @__PURE__ */ el$1(nl$2);
|
|
8761
8761
|
var kr$1, Li$2;
|
|
8762
8762
|
function jo$2() {
|
|
8763
8763
|
return Li$2 || (Li$2 = 1, kr$1 = hi$2().EventEmitter), kr$1;
|
|
@@ -8851,11 +8851,11 @@
|
|
|
8851
8851
|
return Xi$2 || (Xi$2 = 1, Wr$2 = Math.min), Wr$2;
|
|
8852
8852
|
}
|
|
8853
8853
|
var Jr$2, Yi$2;
|
|
8854
|
-
function
|
|
8854
|
+
function ml$2() {
|
|
8855
8855
|
return Yi$2 || (Yi$2 = 1, Jr$2 = Math.pow), Jr$2;
|
|
8856
8856
|
}
|
|
8857
8857
|
var Kr$2, Qi$2;
|
|
8858
|
-
function
|
|
8858
|
+
function pl$2() {
|
|
8859
8859
|
return Qi$2 || (Qi$2 = 1, Kr$2 = Math.round), Kr$2;
|
|
8860
8860
|
}
|
|
8861
8861
|
var $r$1, Zi$2;
|
|
@@ -8994,10 +8994,10 @@
|
|
|
8994
8994
|
var r22 = Jt$1(), e = wi$2(), t = gi$2(), n = xl$2();
|
|
8995
8995
|
return ln$3 = n || r22.call(t, e), ln$3;
|
|
8996
8996
|
}
|
|
8997
|
-
var cn$3,
|
|
8997
|
+
var cn$3, ms$1;
|
|
8998
8998
|
function yi$1() {
|
|
8999
|
-
if (
|
|
9000
|
-
|
|
8999
|
+
if (ms$1) return cn$3;
|
|
9000
|
+
ms$1 = 1;
|
|
9001
9001
|
var r22 = Jt$1(), e = Wt$3(), t = gi$2(), n = Jo$2();
|
|
9002
9002
|
return cn$3 = function(s) {
|
|
9003
9003
|
if (s.length < 1 || typeof s[0] != "function")
|
|
@@ -9005,10 +9005,10 @@
|
|
|
9005
9005
|
return n(r22, t, s);
|
|
9006
9006
|
}, cn$3;
|
|
9007
9007
|
}
|
|
9008
|
-
var fn$2,
|
|
9008
|
+
var fn$2, ps$1;
|
|
9009
9009
|
function Al$2() {
|
|
9010
|
-
if (
|
|
9011
|
-
|
|
9010
|
+
if (ps$1) return fn$2;
|
|
9011
|
+
ps$1 = 1;
|
|
9012
9012
|
var r22 = yi$1(), e = Nt$4(), t;
|
|
9013
9013
|
try {
|
|
9014
9014
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
@@ -9044,18 +9044,18 @@
|
|
|
9044
9044
|
return t(i3);
|
|
9045
9045
|
} : null, dn$3;
|
|
9046
9046
|
}
|
|
9047
|
-
var
|
|
9047
|
+
var mn$3, gs$1;
|
|
9048
9048
|
function Ko$1() {
|
|
9049
|
-
if (gs$1) return
|
|
9049
|
+
if (gs$1) return mn$3;
|
|
9050
9050
|
gs$1 = 1;
|
|
9051
9051
|
var r22 = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Jt$1();
|
|
9052
|
-
return
|
|
9052
|
+
return mn$3 = t.call(r22, e), mn$3;
|
|
9053
9053
|
}
|
|
9054
|
-
var
|
|
9054
|
+
var pn$1, ws$1;
|
|
9055
9055
|
function $o$1() {
|
|
9056
|
-
if (ws$1) return
|
|
9056
|
+
if (ws$1) return pn$1;
|
|
9057
9057
|
ws$1 = 1;
|
|
9058
|
-
var r22, e = Vo$2(), t = il$2(), n = sl$2(), i3 = ol$2(), s = al$2(), o = zo$1(), a = Wt$3(), u = ul$2(), f3 = ll$2(), c3 = cl$2(), g = fl$2(), h3 = dl$2(), S =
|
|
9058
|
+
var r22, e = Vo$2(), t = il$2(), n = sl$2(), i3 = ol$2(), s = al$2(), o = zo$1(), a = Wt$3(), u = ul$2(), f3 = ll$2(), c3 = cl$2(), g = fl$2(), h3 = dl$2(), S = ml$2(), T3 = pl$2(), A = gl$2(), k = Function, b = function(N) {
|
|
9059
9059
|
try {
|
|
9060
9060
|
return k('"use strict"; return (' + N + ").constructor;")();
|
|
9061
9061
|
} catch {
|
|
@@ -9232,7 +9232,7 @@
|
|
|
9232
9232
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
9233
9233
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
9234
9234
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
9235
|
-
},
|
|
9235
|
+
}, pe2 = Jt$1(), J3 = Ko$1(), ne2 = pe2.call(ie, Array.prototype.concat), ae2 = pe2.call($, Array.prototype.splice), L3 = pe2.call(ie, String.prototype.replace), H3 = pe2.call(ie, String.prototype.slice), V = pe2.call(ie, RegExp.prototype.exec), K3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, O3 = /\\(\\)?/g, p3 = function(D3) {
|
|
9236
9236
|
var y = H3(D3, 0, 1), x = H3(D3, -1);
|
|
9237
9237
|
if (y === "%" && x !== "%")
|
|
9238
9238
|
throw new o("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -9242,7 +9242,7 @@
|
|
|
9242
9242
|
return L3(D3, K3, function(W, te2, Y, re2) {
|
|
9243
9243
|
M[M.length] = Y ? L3(re2, O3, "$1") : te2 || W;
|
|
9244
9244
|
}), M;
|
|
9245
|
-
},
|
|
9245
|
+
}, m = function(D3, y) {
|
|
9246
9246
|
var x = D3, M;
|
|
9247
9247
|
if (J3(Q3, x) && (M = Q3[x], x = "%" + M[0] + "%"), J3(ce2, x)) {
|
|
9248
9248
|
var W = ce2[x];
|
|
@@ -9256,14 +9256,14 @@
|
|
|
9256
9256
|
}
|
|
9257
9257
|
throw new o("intrinsic " + D3 + " does not exist!");
|
|
9258
9258
|
};
|
|
9259
|
-
return
|
|
9259
|
+
return pn$1 = function(D3, y) {
|
|
9260
9260
|
if (typeof D3 != "string" || D3.length === 0)
|
|
9261
9261
|
throw new a("intrinsic name must be a non-empty string");
|
|
9262
9262
|
if (arguments.length > 1 && typeof y != "boolean")
|
|
9263
9263
|
throw new a('"allowMissing" argument must be a boolean');
|
|
9264
9264
|
if (V(/^%?[^%]*%?$/, D3) === null)
|
|
9265
9265
|
throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
9266
|
-
var x =
|
|
9266
|
+
var x = p3(D3), M = x.length > 0 ? x[0] : "", W = m("%" + M + "%", y), te2 = W.name, Y = W.value, re2 = false, ye2 = W.alias;
|
|
9267
9267
|
ye2 && (M = ye2[0], ae2(x, ne2([0, 1], ye2)));
|
|
9268
9268
|
for (var z3 = 1, Be2 = true; z3 < x.length; z3 += 1) {
|
|
9269
9269
|
var Te2 = x[z3], He2 = H3(Te2, 0, 1), ze2 = H3(Te2, -1);
|
|
@@ -9286,7 +9286,7 @@
|
|
|
9286
9286
|
}
|
|
9287
9287
|
}
|
|
9288
9288
|
return Y;
|
|
9289
|
-
},
|
|
9289
|
+
}, pn$1;
|
|
9290
9290
|
}
|
|
9291
9291
|
var hn$2, ys$1;
|
|
9292
9292
|
function Kt$2() {
|
|
@@ -9810,12 +9810,12 @@
|
|
|
9810
9810
|
return typeof WeakMap > "u" ? false : se.working ? se(z3) : z3 instanceof WeakMap;
|
|
9811
9811
|
}
|
|
9812
9812
|
r22.isWeakMap = Q3;
|
|
9813
|
-
function
|
|
9813
|
+
function pe2(z3) {
|
|
9814
9814
|
return u(z3) === "[object WeakSet]";
|
|
9815
9815
|
}
|
|
9816
|
-
|
|
9816
|
+
pe2.working = typeof WeakSet < "u" && pe2(/* @__PURE__ */ new WeakSet());
|
|
9817
9817
|
function J3(z3) {
|
|
9818
|
-
return
|
|
9818
|
+
return pe2(z3);
|
|
9819
9819
|
}
|
|
9820
9820
|
r22.isWeakSet = J3;
|
|
9821
9821
|
function ne2(z3) {
|
|
@@ -9842,14 +9842,14 @@
|
|
|
9842
9842
|
return typeof V > "u" ? false : (typeof K3.working > "u" && (K3.working = K3(new V())), K3.working ? K3(z3) : z3 instanceof V);
|
|
9843
9843
|
}
|
|
9844
9844
|
r22.isSharedArrayBuffer = O3;
|
|
9845
|
-
function
|
|
9845
|
+
function p3(z3) {
|
|
9846
9846
|
return u(z3) === "[object AsyncFunction]";
|
|
9847
9847
|
}
|
|
9848
|
-
r22.isAsyncFunction =
|
|
9849
|
-
function
|
|
9848
|
+
r22.isAsyncFunction = p3;
|
|
9849
|
+
function m(z3) {
|
|
9850
9850
|
return u(z3) === "[object Map Iterator]";
|
|
9851
9851
|
}
|
|
9852
|
-
r22.isMapIterator =
|
|
9852
|
+
r22.isMapIterator = m;
|
|
9853
9853
|
function N(z3) {
|
|
9854
9854
|
return u(z3) === "[object Set Iterator]";
|
|
9855
9855
|
}
|
|
@@ -9919,7 +9919,7 @@
|
|
|
9919
9919
|
H3.push(o(arguments[V]));
|
|
9920
9920
|
return H3.join(" ");
|
|
9921
9921
|
}
|
|
9922
|
-
for (var V = 1, K3 = arguments, O3 = K3.length,
|
|
9922
|
+
for (var V = 1, K3 = arguments, O3 = K3.length, p3 = String(L3).replace(t, function(N) {
|
|
9923
9923
|
if (N === "%%") return "%";
|
|
9924
9924
|
if (V >= O3) return N;
|
|
9925
9925
|
switch (N) {
|
|
@@ -9936,36 +9936,36 @@
|
|
|
9936
9936
|
default:
|
|
9937
9937
|
return N;
|
|
9938
9938
|
}
|
|
9939
|
-
}),
|
|
9940
|
-
F3(
|
|
9941
|
-
return
|
|
9939
|
+
}), m = K3[V]; V < O3; m = K3[++V])
|
|
9940
|
+
F3(m) || !v(m) ? p3 += " " + m : p3 += " " + o(m);
|
|
9941
|
+
return p3;
|
|
9942
9942
|
}, r22.deprecate = function(L3, H3) {
|
|
9943
|
-
if (typeof
|
|
9943
|
+
if (typeof me$1 < "u" && me$1.noDeprecation === true)
|
|
9944
9944
|
return L3;
|
|
9945
|
-
if (typeof
|
|
9945
|
+
if (typeof me$1 > "u")
|
|
9946
9946
|
return function() {
|
|
9947
9947
|
return r22.deprecate(L3, H3).apply(this, arguments);
|
|
9948
9948
|
};
|
|
9949
9949
|
var V = false;
|
|
9950
9950
|
function K3() {
|
|
9951
9951
|
if (!V) {
|
|
9952
|
-
if (
|
|
9952
|
+
if (me$1.throwDeprecation)
|
|
9953
9953
|
throw new Error(H3);
|
|
9954
|
-
|
|
9954
|
+
me$1.traceDeprecation ? console.trace(H3) : console.error(H3), V = true;
|
|
9955
9955
|
}
|
|
9956
9956
|
return L3.apply(this, arguments);
|
|
9957
9957
|
}
|
|
9958
9958
|
return K3;
|
|
9959
9959
|
};
|
|
9960
9960
|
var n = {}, i3 = /^$/;
|
|
9961
|
-
if (
|
|
9962
|
-
var s =
|
|
9961
|
+
if (me$1.env.NODE_DEBUG) {
|
|
9962
|
+
var s = me$1.env.NODE_DEBUG;
|
|
9963
9963
|
s = s.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i3 = new RegExp("^" + s + "$", "i");
|
|
9964
9964
|
}
|
|
9965
9965
|
r22.debuglog = function(L3) {
|
|
9966
9966
|
if (L3 = L3.toUpperCase(), !n[L3])
|
|
9967
9967
|
if (i3.test(L3)) {
|
|
9968
|
-
var H3 =
|
|
9968
|
+
var H3 = me$1.pid;
|
|
9969
9969
|
n[L3] = function() {
|
|
9970
9970
|
var V = r22.format.apply(r22, arguments);
|
|
9971
9971
|
console.error("%s %d: %s", L3, H3, V);
|
|
@@ -10030,10 +10030,10 @@
|
|
|
10030
10030
|
var O3 = g(L3, H3);
|
|
10031
10031
|
if (O3)
|
|
10032
10032
|
return O3;
|
|
10033
|
-
var
|
|
10034
|
-
if (L3.showHidden && (
|
|
10033
|
+
var p3 = Object.keys(H3), m = f3(p3);
|
|
10034
|
+
if (L3.showHidden && (p3 = Object.getOwnPropertyNames(H3)), ie(H3) && (p3.indexOf("message") >= 0 || p3.indexOf("description") >= 0))
|
|
10035
10035
|
return h3(H3);
|
|
10036
|
-
if (
|
|
10036
|
+
if (p3.length === 0) {
|
|
10037
10037
|
if (ee2(H3)) {
|
|
10038
10038
|
var N = H3.name ? ": " + H3.name : "";
|
|
10039
10039
|
return L3.stylize("[Function" + N + "]", "special");
|
|
@@ -10050,14 +10050,14 @@
|
|
|
10050
10050
|
var M = H3.name ? ": " + H3.name : "";
|
|
10051
10051
|
D3 = " [Function" + M + "]";
|
|
10052
10052
|
}
|
|
10053
|
-
if (q(H3) && (D3 = " " + RegExp.prototype.toString.call(H3)), $(H3) && (D3 = " " + Date.prototype.toUTCString.call(H3)), ie(H3) && (D3 = " " + h3(H3)),
|
|
10053
|
+
if (q(H3) && (D3 = " " + RegExp.prototype.toString.call(H3)), $(H3) && (D3 = " " + Date.prototype.toUTCString.call(H3)), ie(H3) && (D3 = " " + h3(H3)), p3.length === 0 && (!y || H3.length == 0))
|
|
10054
10054
|
return x[0] + D3 + x[1];
|
|
10055
10055
|
if (V < 0)
|
|
10056
10056
|
return q(H3) ? L3.stylize(RegExp.prototype.toString.call(H3), "regexp") : L3.stylize("[Object]", "special");
|
|
10057
10057
|
L3.seen.push(H3);
|
|
10058
10058
|
var W;
|
|
10059
|
-
return y ? W = S(L3, H3, V,
|
|
10060
|
-
return T3(L3, H3, V,
|
|
10059
|
+
return y ? W = S(L3, H3, V, m, p3) : W = p3.map(function(te2) {
|
|
10060
|
+
return T3(L3, H3, V, m, te2, y);
|
|
10061
10061
|
}), L3.seen.pop(), A(W, D3, x);
|
|
10062
10062
|
}
|
|
10063
10063
|
function g(L3, H3) {
|
|
@@ -10078,17 +10078,17 @@
|
|
|
10078
10078
|
return "[" + Error.prototype.toString.call(L3) + "]";
|
|
10079
10079
|
}
|
|
10080
10080
|
function S(L3, H3, V, K3, O3) {
|
|
10081
|
-
for (var
|
|
10082
|
-
|
|
10081
|
+
for (var p3 = [], m = 0, N = H3.length; m < N; ++m)
|
|
10082
|
+
pe2(H3, String(m)) ? p3.push(T3(
|
|
10083
10083
|
L3,
|
|
10084
10084
|
H3,
|
|
10085
10085
|
V,
|
|
10086
10086
|
K3,
|
|
10087
|
-
String(
|
|
10087
|
+
String(m),
|
|
10088
10088
|
true
|
|
10089
|
-
)) :
|
|
10089
|
+
)) : p3.push("");
|
|
10090
10090
|
return O3.forEach(function(D3) {
|
|
10091
|
-
D3.match(/^\d+$/) ||
|
|
10091
|
+
D3.match(/^\d+$/) || p3.push(T3(
|
|
10092
10092
|
L3,
|
|
10093
10093
|
H3,
|
|
10094
10094
|
V,
|
|
@@ -10096,12 +10096,12 @@
|
|
|
10096
10096
|
D3,
|
|
10097
10097
|
true
|
|
10098
10098
|
));
|
|
10099
|
-
}),
|
|
10099
|
+
}), p3;
|
|
10100
10100
|
}
|
|
10101
|
-
function T3(L3, H3, V, K3, O3,
|
|
10102
|
-
var
|
|
10103
|
-
if (D3 = Object.getOwnPropertyDescriptor(H3, O3) || { value: H3[O3] }, D3.get ? D3.set ? N = L3.stylize("[Getter/Setter]", "special") : N = L3.stylize("[Getter]", "special") : D3.set && (N = L3.stylize("[Setter]", "special")),
|
|
10104
|
-
`) > -1 && (
|
|
10101
|
+
function T3(L3, H3, V, K3, O3, p3) {
|
|
10102
|
+
var m, N, D3;
|
|
10103
|
+
if (D3 = Object.getOwnPropertyDescriptor(H3, O3) || { value: H3[O3] }, D3.get ? D3.set ? N = L3.stylize("[Getter/Setter]", "special") : N = L3.stylize("[Getter]", "special") : D3.set && (N = L3.stylize("[Setter]", "special")), pe2(K3, O3) || (m = "[" + O3 + "]"), N || (L3.seen.indexOf(D3.value) < 0 ? (F3(V) ? N = c3(L3, D3.value, null) : N = c3(L3, D3.value, V - 1), N.indexOf(`
|
|
10104
|
+
`) > -1 && (p3 ? N = N.split(`
|
|
10105
10105
|
`).map(function(y) {
|
|
10106
10106
|
return " " + y;
|
|
10107
10107
|
}).join(`
|
|
@@ -10110,17 +10110,17 @@
|
|
|
10110
10110
|
`).map(function(y) {
|
|
10111
10111
|
return " " + y;
|
|
10112
10112
|
}).join(`
|
|
10113
|
-
`))) : N = L3.stylize("[Circular]", "special")), _(
|
|
10114
|
-
if (
|
|
10113
|
+
`))) : N = L3.stylize("[Circular]", "special")), _(m)) {
|
|
10114
|
+
if (p3 && O3.match(/^\d+$/))
|
|
10115
10115
|
return N;
|
|
10116
|
-
|
|
10116
|
+
m = JSON.stringify("" + O3), m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (m = m.slice(1, -1), m = L3.stylize(m, "name")) : (m = m.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), m = L3.stylize(m, "string"));
|
|
10117
10117
|
}
|
|
10118
|
-
return
|
|
10118
|
+
return m + ": " + N;
|
|
10119
10119
|
}
|
|
10120
10120
|
function A(L3, H3, V) {
|
|
10121
|
-
var K3 = L3.reduce(function(O3,
|
|
10122
|
-
return
|
|
10123
|
-
`) >= 0, O3 +
|
|
10121
|
+
var K3 = L3.reduce(function(O3, p3) {
|
|
10122
|
+
return p3.indexOf(`
|
|
10123
|
+
`) >= 0, O3 + p3.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
10124
10124
|
}, 0);
|
|
10125
10125
|
return K3 > 60 ? V[0] + (H3 === "" ? "" : H3 + `
|
|
10126
10126
|
`) + " " + L3.join(`,
|
|
@@ -10220,7 +10220,7 @@
|
|
|
10220
10220
|
L3[V[K3]] = H3[V[K3]];
|
|
10221
10221
|
return L3;
|
|
10222
10222
|
};
|
|
10223
|
-
function
|
|
10223
|
+
function pe2(L3, H3) {
|
|
10224
10224
|
return Object.prototype.hasOwnProperty.call(L3, H3);
|
|
10225
10225
|
}
|
|
10226
10226
|
var J3 = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
@@ -10239,19 +10239,19 @@
|
|
|
10239
10239
|
}), V;
|
|
10240
10240
|
}
|
|
10241
10241
|
function V() {
|
|
10242
|
-
for (var K3, O3,
|
|
10242
|
+
for (var K3, O3, p3 = new Promise(function(D3, y) {
|
|
10243
10243
|
K3 = D3, O3 = y;
|
|
10244
|
-
}),
|
|
10245
|
-
|
|
10246
|
-
|
|
10244
|
+
}), m = [], N = 0; N < arguments.length; N++)
|
|
10245
|
+
m.push(arguments[N]);
|
|
10246
|
+
m.push(function(D3, y) {
|
|
10247
10247
|
D3 ? O3(D3) : K3(y);
|
|
10248
10248
|
});
|
|
10249
10249
|
try {
|
|
10250
|
-
H3.apply(this,
|
|
10250
|
+
H3.apply(this, m);
|
|
10251
10251
|
} catch (D3) {
|
|
10252
10252
|
O3(D3);
|
|
10253
10253
|
}
|
|
10254
|
-
return
|
|
10254
|
+
return p3;
|
|
10255
10255
|
}
|
|
10256
10256
|
return Object.setPrototypeOf(V, Object.getPrototypeOf(H3)), J3 && Object.defineProperty(V, J3, {
|
|
10257
10257
|
value: V,
|
|
@@ -10279,15 +10279,15 @@
|
|
|
10279
10279
|
var O3 = V.pop();
|
|
10280
10280
|
if (typeof O3 != "function")
|
|
10281
10281
|
throw new TypeError("The last argument must be of type Function");
|
|
10282
|
-
var
|
|
10283
|
-
return O3.apply(
|
|
10282
|
+
var p3 = this, m = function() {
|
|
10283
|
+
return O3.apply(p3, arguments);
|
|
10284
10284
|
};
|
|
10285
10285
|
L3.apply(this, V).then(
|
|
10286
10286
|
function(N) {
|
|
10287
|
-
|
|
10287
|
+
me$1.nextTick(m.bind(null, null, N));
|
|
10288
10288
|
},
|
|
10289
10289
|
function(N) {
|
|
10290
|
-
|
|
10290
|
+
me$1.nextTick(ne2.bind(null, N, m));
|
|
10291
10291
|
}
|
|
10292
10292
|
);
|
|
10293
10293
|
}
|
|
@@ -10470,8 +10470,8 @@
|
|
|
10470
10470
|
qs$1 = 1;
|
|
10471
10471
|
function r22(o, a) {
|
|
10472
10472
|
var u = this, f3 = this._readableState && this._readableState.destroyed, c3 = this._writableState && this._writableState.destroyed;
|
|
10473
|
-
return f3 || c3 ? (a ? a(o) : o && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true,
|
|
10474
|
-
!a && g ? u._writableState ? u._writableState.errorEmitted ?
|
|
10473
|
+
return f3 || c3 ? (a ? a(o) : o && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = true, me$1.nextTick(i3, this, o)) : me$1.nextTick(i3, this, o)), this) : (this._readableState && (this._readableState.destroyed = true), this._writableState && (this._writableState.destroyed = true), this._destroy(o || null, function(g) {
|
|
10474
|
+
!a && g ? u._writableState ? u._writableState.errorEmitted ? me$1.nextTick(t, u) : (u._writableState.errorEmitted = true, me$1.nextTick(e, u, g)) : me$1.nextTick(e, u, g) : a ? (me$1.nextTick(t, u), a(g)) : me$1.nextTick(t, u);
|
|
10475
10475
|
}), this);
|
|
10476
10476
|
}
|
|
10477
10477
|
function e(o, a) {
|
|
@@ -10614,9 +10614,9 @@
|
|
|
10614
10614
|
if (Hs$1) return _n$3;
|
|
10615
10615
|
Hs$1 = 1, _n$3 = q;
|
|
10616
10616
|
function r22(O3) {
|
|
10617
|
-
var
|
|
10617
|
+
var p3 = this;
|
|
10618
10618
|
this.next = null, this.entry = null, this.finish = function() {
|
|
10619
|
-
K3(
|
|
10619
|
+
K3(p3, O3);
|
|
10620
10620
|
};
|
|
10621
10621
|
}
|
|
10622
10622
|
var e;
|
|
@@ -10635,17 +10635,17 @@
|
|
|
10635
10635
|
yt$2()(q, n);
|
|
10636
10636
|
function B() {
|
|
10637
10637
|
}
|
|
10638
|
-
function I3(O3,
|
|
10639
|
-
e = e || St$2(), O3 = O3 || {}, typeof
|
|
10638
|
+
function I3(O3, p3, m) {
|
|
10639
|
+
e = e || St$2(), O3 = O3 || {}, typeof m != "boolean" && (m = p3 instanceof e), this.objectMode = !!O3.objectMode, m && (this.objectMode = this.objectMode || !!O3.writableObjectMode), this.highWaterMark = c3(this, O3, "writableHighWaterMark", m), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
10640
10640
|
var N = O3.decodeStrings === false;
|
|
10641
10641
|
this.decodeStrings = !N, this.defaultEncoding = O3.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(D3) {
|
|
10642
|
-
se(
|
|
10642
|
+
se(p3, D3);
|
|
10643
10643
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = O3.emitClose !== false, this.autoDestroy = !!O3.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r22(this);
|
|
10644
10644
|
}
|
|
10645
10645
|
I3.prototype.getBuffer = function() {
|
|
10646
|
-
for (var
|
|
10647
|
-
|
|
10648
|
-
return
|
|
10646
|
+
for (var p3 = this.bufferedRequest, m = []; p3; )
|
|
10647
|
+
m.push(p3), p3 = p3.next;
|
|
10648
|
+
return m;
|
|
10649
10649
|
}, function() {
|
|
10650
10650
|
try {
|
|
10651
10651
|
Object.defineProperty(I3.prototype, "buffer", {
|
|
@@ -10658,40 +10658,40 @@
|
|
|
10658
10658
|
}();
|
|
10659
10659
|
var _;
|
|
10660
10660
|
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (_ = Function.prototype[Symbol.hasInstance], Object.defineProperty(q, Symbol.hasInstance, {
|
|
10661
|
-
value: function(
|
|
10662
|
-
return _.call(this,
|
|
10661
|
+
value: function(p3) {
|
|
10662
|
+
return _.call(this, p3) ? true : this !== q ? false : p3 && p3._writableState instanceof I3;
|
|
10663
10663
|
}
|
|
10664
|
-
})) : _ = function(
|
|
10665
|
-
return
|
|
10664
|
+
})) : _ = function(p3) {
|
|
10665
|
+
return p3 instanceof this;
|
|
10666
10666
|
};
|
|
10667
10667
|
function q(O3) {
|
|
10668
10668
|
e = e || St$2();
|
|
10669
|
-
var
|
|
10670
|
-
if (!
|
|
10671
|
-
this._writableState = new I3(O3, this,
|
|
10669
|
+
var p3 = this instanceof e;
|
|
10670
|
+
if (!p3 && !_.call(q, this)) return new q(O3);
|
|
10671
|
+
this._writableState = new I3(O3, this, p3), this.writable = true, O3 && (typeof O3.write == "function" && (this._write = O3.write), typeof O3.writev == "function" && (this._writev = O3.writev), typeof O3.destroy == "function" && (this._destroy = O3.destroy), typeof O3.final == "function" && (this._final = O3.final)), n.call(this);
|
|
10672
10672
|
}
|
|
10673
10673
|
q.prototype.pipe = function() {
|
|
10674
10674
|
C(this, new A());
|
|
10675
10675
|
};
|
|
10676
|
-
function v(O3,
|
|
10677
|
-
var
|
|
10678
|
-
C(O3,
|
|
10676
|
+
function v(O3, p3) {
|
|
10677
|
+
var m = new F3();
|
|
10678
|
+
C(O3, m), me$1.nextTick(p3, m);
|
|
10679
10679
|
}
|
|
10680
|
-
function $(O3,
|
|
10680
|
+
function $(O3, p3, m, N) {
|
|
10681
10681
|
var D3;
|
|
10682
|
-
return
|
|
10682
|
+
return m === null ? D3 = new b() : typeof m != "string" && !p3.objectMode && (D3 = new h3("chunk", ["string", "Buffer"], m)), D3 ? (C(O3, D3), me$1.nextTick(N, D3), false) : true;
|
|
10683
10683
|
}
|
|
10684
|
-
q.prototype.write = function(O3,
|
|
10684
|
+
q.prototype.write = function(O3, p3, m) {
|
|
10685
10685
|
var N = this._writableState, D3 = false, y = !N.objectMode && a(O3);
|
|
10686
|
-
return y && !i3.isBuffer(O3) && (O3 = o(O3)), typeof
|
|
10686
|
+
return y && !i3.isBuffer(O3) && (O3 = o(O3)), typeof p3 == "function" && (m = p3, p3 = null), y ? p3 = "buffer" : p3 || (p3 = N.defaultEncoding), typeof m != "function" && (m = B), N.ending ? v(this, m) : (y || $(this, N, O3, m)) && (N.pendingcb++, D3 = ee2(this, N, y, O3, p3, m)), D3;
|
|
10687
10687
|
}, q.prototype.cork = function() {
|
|
10688
10688
|
this._writableState.corked++;
|
|
10689
10689
|
}, q.prototype.uncork = function() {
|
|
10690
10690
|
var O3 = this._writableState;
|
|
10691
10691
|
O3.corked && (O3.corked--, !O3.writing && !O3.corked && !O3.bufferProcessing && O3.bufferedRequest && J3(this, O3));
|
|
10692
|
-
}, q.prototype.setDefaultEncoding = function(
|
|
10693
|
-
if (typeof
|
|
10694
|
-
return this._writableState.defaultEncoding =
|
|
10692
|
+
}, q.prototype.setDefaultEncoding = function(p3) {
|
|
10693
|
+
if (typeof p3 == "string" && (p3 = p3.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((p3 + "").toLowerCase()) > -1)) throw new R(p3);
|
|
10694
|
+
return this._writableState.defaultEncoding = p3, this;
|
|
10695
10695
|
}, Object.defineProperty(q.prototype, "writableBuffer", {
|
|
10696
10696
|
// making it explicit this property is not enumerable
|
|
10697
10697
|
// because otherwise some prototype manipulation in
|
|
@@ -10701,8 +10701,8 @@
|
|
|
10701
10701
|
return this._writableState && this._writableState.getBuffer();
|
|
10702
10702
|
}
|
|
10703
10703
|
});
|
|
10704
|
-
function ie(O3,
|
|
10705
|
-
return !O3.objectMode && O3.decodeStrings !== false && typeof
|
|
10704
|
+
function ie(O3, p3, m) {
|
|
10705
|
+
return !O3.objectMode && O3.decodeStrings !== false && typeof p3 == "string" && (p3 = i3.from(p3, m)), p3;
|
|
10706
10706
|
}
|
|
10707
10707
|
Object.defineProperty(q.prototype, "writableHighWaterMark", {
|
|
10708
10708
|
// making it explicit this property is not enumerable
|
|
@@ -10713,75 +10713,75 @@
|
|
|
10713
10713
|
return this._writableState.highWaterMark;
|
|
10714
10714
|
}
|
|
10715
10715
|
});
|
|
10716
|
-
function ee2(O3,
|
|
10717
|
-
if (!
|
|
10718
|
-
var x = ie(
|
|
10719
|
-
N !== x && (
|
|
10720
|
-
}
|
|
10721
|
-
var M =
|
|
10722
|
-
|
|
10723
|
-
var W =
|
|
10724
|
-
if (W || (
|
|
10725
|
-
var te2 =
|
|
10726
|
-
|
|
10716
|
+
function ee2(O3, p3, m, N, D3, y) {
|
|
10717
|
+
if (!m) {
|
|
10718
|
+
var x = ie(p3, N, D3);
|
|
10719
|
+
N !== x && (m = true, D3 = "buffer", N = x);
|
|
10720
|
+
}
|
|
10721
|
+
var M = p3.objectMode ? 1 : N.length;
|
|
10722
|
+
p3.length += M;
|
|
10723
|
+
var W = p3.length < p3.highWaterMark;
|
|
10724
|
+
if (W || (p3.needDrain = true), p3.writing || p3.corked) {
|
|
10725
|
+
var te2 = p3.lastBufferedRequest;
|
|
10726
|
+
p3.lastBufferedRequest = {
|
|
10727
10727
|
chunk: N,
|
|
10728
10728
|
encoding: D3,
|
|
10729
|
-
isBuf:
|
|
10729
|
+
isBuf: m,
|
|
10730
10730
|
callback: y,
|
|
10731
10731
|
next: null
|
|
10732
|
-
}, te2 ? te2.next =
|
|
10732
|
+
}, te2 ? te2.next = p3.lastBufferedRequest : p3.bufferedRequest = p3.lastBufferedRequest, p3.bufferedRequestCount += 1;
|
|
10733
10733
|
} else
|
|
10734
|
-
X3(O3,
|
|
10734
|
+
X3(O3, p3, false, M, N, D3, y);
|
|
10735
10735
|
return W;
|
|
10736
10736
|
}
|
|
10737
|
-
function X3(O3,
|
|
10738
|
-
|
|
10737
|
+
function X3(O3, p3, m, N, D3, y, x) {
|
|
10738
|
+
p3.writelen = N, p3.writecb = x, p3.writing = true, p3.sync = true, p3.destroyed ? p3.onwrite(new k("write")) : m ? O3._writev(D3, p3.onwrite) : O3._write(D3, y, p3.onwrite), p3.sync = false;
|
|
10739
10739
|
}
|
|
10740
|
-
function ce2(O3,
|
|
10741
|
-
--
|
|
10740
|
+
function ce2(O3, p3, m, N, D3) {
|
|
10741
|
+
--p3.pendingcb, m ? (me$1.nextTick(D3, N), me$1.nextTick(H3, O3, p3), O3._writableState.errorEmitted = true, C(O3, N)) : (D3(N), O3._writableState.errorEmitted = true, C(O3, N), H3(O3, p3));
|
|
10742
10742
|
}
|
|
10743
10743
|
function he2(O3) {
|
|
10744
10744
|
O3.writing = false, O3.writecb = null, O3.length -= O3.writelen, O3.writelen = 0;
|
|
10745
10745
|
}
|
|
10746
|
-
function se(O3,
|
|
10747
|
-
var
|
|
10746
|
+
function se(O3, p3) {
|
|
10747
|
+
var m = O3._writableState, N = m.sync, D3 = m.writecb;
|
|
10748
10748
|
if (typeof D3 != "function") throw new T3();
|
|
10749
|
-
if (he2(
|
|
10749
|
+
if (he2(m), p3) ce2(O3, m, N, p3, D3);
|
|
10750
10750
|
else {
|
|
10751
|
-
var y = ne2(
|
|
10752
|
-
!y && !
|
|
10751
|
+
var y = ne2(m) || O3.destroyed;
|
|
10752
|
+
!y && !m.corked && !m.bufferProcessing && m.bufferedRequest && J3(O3, m), N ? me$1.nextTick(Q3, O3, m, y, D3) : Q3(O3, m, y, D3);
|
|
10753
10753
|
}
|
|
10754
10754
|
}
|
|
10755
|
-
function Q3(O3,
|
|
10756
|
-
|
|
10755
|
+
function Q3(O3, p3, m, N) {
|
|
10756
|
+
m || pe2(O3, p3), p3.pendingcb--, N(), H3(O3, p3);
|
|
10757
10757
|
}
|
|
10758
|
-
function
|
|
10759
|
-
|
|
10758
|
+
function pe2(O3, p3) {
|
|
10759
|
+
p3.length === 0 && p3.needDrain && (p3.needDrain = false, O3.emit("drain"));
|
|
10760
10760
|
}
|
|
10761
|
-
function J3(O3,
|
|
10762
|
-
|
|
10763
|
-
var
|
|
10764
|
-
if (O3._writev &&
|
|
10765
|
-
var N =
|
|
10766
|
-
y.entry =
|
|
10767
|
-
for (var x = 0, M = true;
|
|
10768
|
-
D3[x] =
|
|
10769
|
-
D3.allBuffers = M, X3(O3,
|
|
10761
|
+
function J3(O3, p3) {
|
|
10762
|
+
p3.bufferProcessing = true;
|
|
10763
|
+
var m = p3.bufferedRequest;
|
|
10764
|
+
if (O3._writev && m && m.next) {
|
|
10765
|
+
var N = p3.bufferedRequestCount, D3 = new Array(N), y = p3.corkedRequestsFree;
|
|
10766
|
+
y.entry = m;
|
|
10767
|
+
for (var x = 0, M = true; m; )
|
|
10768
|
+
D3[x] = m, m.isBuf || (M = false), m = m.next, x += 1;
|
|
10769
|
+
D3.allBuffers = M, X3(O3, p3, true, p3.length, D3, "", y.finish), p3.pendingcb++, p3.lastBufferedRequest = null, y.next ? (p3.corkedRequestsFree = y.next, y.next = null) : p3.corkedRequestsFree = new r22(p3), p3.bufferedRequestCount = 0;
|
|
10770
10770
|
} else {
|
|
10771
|
-
for (;
|
|
10772
|
-
var W =
|
|
10773
|
-
if (X3(O3,
|
|
10771
|
+
for (; m; ) {
|
|
10772
|
+
var W = m.chunk, te2 = m.encoding, Y = m.callback, re2 = p3.objectMode ? 1 : W.length;
|
|
10773
|
+
if (X3(O3, p3, false, re2, W, te2, Y), m = m.next, p3.bufferedRequestCount--, p3.writing)
|
|
10774
10774
|
break;
|
|
10775
10775
|
}
|
|
10776
|
-
|
|
10776
|
+
m === null && (p3.lastBufferedRequest = null);
|
|
10777
10777
|
}
|
|
10778
|
-
|
|
10778
|
+
p3.bufferedRequest = m, p3.bufferProcessing = false;
|
|
10779
10779
|
}
|
|
10780
|
-
q.prototype._write = function(O3,
|
|
10781
|
-
|
|
10782
|
-
}, q.prototype._writev = null, q.prototype.end = function(O3,
|
|
10780
|
+
q.prototype._write = function(O3, p3, m) {
|
|
10781
|
+
m(new S("_write()"));
|
|
10782
|
+
}, q.prototype._writev = null, q.prototype.end = function(O3, p3, m) {
|
|
10783
10783
|
var N = this._writableState;
|
|
10784
|
-
return typeof O3 == "function" ? (
|
|
10784
|
+
return typeof O3 == "function" ? (m = O3, O3 = null, p3 = null) : typeof p3 == "function" && (m = p3, p3 = null), O3 != null && this.write(O3, p3), N.corked && (N.corked = 1, this.uncork()), N.ending || V(this, N, m), this;
|
|
10785
10785
|
}, Object.defineProperty(q.prototype, "writableLength", {
|
|
10786
10786
|
// making it explicit this property is not enumerable
|
|
10787
10787
|
// because otherwise some prototype manipulation in
|
|
@@ -10794,32 +10794,32 @@
|
|
|
10794
10794
|
function ne2(O3) {
|
|
10795
10795
|
return O3.ending && O3.length === 0 && O3.bufferedRequest === null && !O3.finished && !O3.writing;
|
|
10796
10796
|
}
|
|
10797
|
-
function ae2(O3,
|
|
10798
|
-
O3._final(function(
|
|
10799
|
-
|
|
10797
|
+
function ae2(O3, p3) {
|
|
10798
|
+
O3._final(function(m) {
|
|
10799
|
+
p3.pendingcb--, m && C(O3, m), p3.prefinished = true, O3.emit("prefinish"), H3(O3, p3);
|
|
10800
10800
|
});
|
|
10801
10801
|
}
|
|
10802
|
-
function L3(O3,
|
|
10803
|
-
!
|
|
10802
|
+
function L3(O3, p3) {
|
|
10803
|
+
!p3.prefinished && !p3.finalCalled && (typeof O3._final == "function" && !p3.destroyed ? (p3.pendingcb++, p3.finalCalled = true, me$1.nextTick(ae2, O3, p3)) : (p3.prefinished = true, O3.emit("prefinish")));
|
|
10804
10804
|
}
|
|
10805
|
-
function H3(O3,
|
|
10806
|
-
var
|
|
10807
|
-
if (
|
|
10805
|
+
function H3(O3, p3) {
|
|
10806
|
+
var m = ne2(p3);
|
|
10807
|
+
if (m && (L3(O3, p3), p3.pendingcb === 0 && (p3.finished = true, O3.emit("finish"), p3.autoDestroy))) {
|
|
10808
10808
|
var N = O3._readableState;
|
|
10809
10809
|
(!N || N.autoDestroy && N.endEmitted) && O3.destroy();
|
|
10810
10810
|
}
|
|
10811
|
-
return
|
|
10811
|
+
return m;
|
|
10812
10812
|
}
|
|
10813
|
-
function V(O3,
|
|
10814
|
-
|
|
10813
|
+
function V(O3, p3, m) {
|
|
10814
|
+
p3.ending = true, H3(O3, p3), m && (p3.finished ? me$1.nextTick(m) : O3.once("finish", m)), p3.ended = true, O3.writable = false;
|
|
10815
10815
|
}
|
|
10816
|
-
function K3(O3,
|
|
10816
|
+
function K3(O3, p3, m) {
|
|
10817
10817
|
var N = O3.entry;
|
|
10818
10818
|
for (O3.entry = null; N; ) {
|
|
10819
10819
|
var D3 = N.callback;
|
|
10820
|
-
|
|
10820
|
+
p3.pendingcb--, D3(m), N = N.next;
|
|
10821
10821
|
}
|
|
10822
|
-
|
|
10822
|
+
p3.corkedRequestsFree.next = O3;
|
|
10823
10823
|
}
|
|
10824
10824
|
return Object.defineProperty(q.prototype, "destroyed", {
|
|
10825
10825
|
// making it explicit this property is not enumerable
|
|
@@ -10829,11 +10829,11 @@
|
|
|
10829
10829
|
get: function() {
|
|
10830
10830
|
return this._writableState === void 0 ? false : this._writableState.destroyed;
|
|
10831
10831
|
},
|
|
10832
|
-
set: function(
|
|
10833
|
-
this._writableState && (this._writableState.destroyed =
|
|
10832
|
+
set: function(p3) {
|
|
10833
|
+
this._writableState && (this._writableState.destroyed = p3);
|
|
10834
10834
|
}
|
|
10835
|
-
}), q.prototype.destroy = u.destroy, q.prototype._undestroy = u.undestroy, q.prototype._destroy = function(O3,
|
|
10836
|
-
|
|
10835
|
+
}), q.prototype.destroy = u.destroy, q.prototype._undestroy = u.undestroy, q.prototype._destroy = function(O3, p3) {
|
|
10836
|
+
p3(O3);
|
|
10837
10837
|
}, _n$3;
|
|
10838
10838
|
}
|
|
10839
10839
|
var qn$3, Vs$1;
|
|
@@ -10882,7 +10882,7 @@
|
|
|
10882
10882
|
}
|
|
10883
10883
|
});
|
|
10884
10884
|
function a() {
|
|
10885
|
-
this._writableState.ended ||
|
|
10885
|
+
this._writableState.ended || me$1.nextTick(u, this);
|
|
10886
10886
|
}
|
|
10887
10887
|
function u(f3) {
|
|
10888
10888
|
f3.end();
|
|
@@ -11174,7 +11174,7 @@
|
|
|
11174
11174
|
}
|
|
11175
11175
|
}
|
|
11176
11176
|
function T3(R) {
|
|
11177
|
-
|
|
11177
|
+
me$1.nextTick(S, R);
|
|
11178
11178
|
}
|
|
11179
11179
|
function A(R, C) {
|
|
11180
11180
|
return function(B, I3) {
|
|
@@ -11200,7 +11200,7 @@
|
|
|
11200
11200
|
return Promise.resolve(h3(void 0, true));
|
|
11201
11201
|
if (this[g].destroyed)
|
|
11202
11202
|
return new Promise(function(v, $) {
|
|
11203
|
-
|
|
11203
|
+
me$1.nextTick(function() {
|
|
11204
11204
|
C[a] ? $(C[a]) : v(h3(void 0, true));
|
|
11205
11205
|
});
|
|
11206
11206
|
});
|
|
@@ -11373,13 +11373,13 @@
|
|
|
11373
11373
|
u("read", y), y = parseInt(y, 10);
|
|
11374
11374
|
var x = this._readableState, M = y;
|
|
11375
11375
|
if (y !== 0 && (x.emittedReadable = false), y === 0 && x.needReadable && ((x.highWaterMark !== 0 ? x.length >= x.highWaterMark : x.length > 0) || x.ended))
|
|
11376
|
-
return u("read: emitReadable", x.length, x.ended), x.length === 0 && x.ended ?
|
|
11376
|
+
return u("read: emitReadable", x.length, x.ended), x.length === 0 && x.ended ? m(this) : Q3(this), null;
|
|
11377
11377
|
if (y = he2(y, x), y === 0 && x.ended)
|
|
11378
|
-
return x.length === 0 &&
|
|
11378
|
+
return x.length === 0 && m(this), null;
|
|
11379
11379
|
var W = x.needReadable;
|
|
11380
11380
|
u("need readable", W), (x.length === 0 || x.length - y < x.highWaterMark) && (W = true, u("length less than watermark", W)), x.ended || x.reading ? (W = false, u("reading or ended", W)) : W && (u("do read"), x.reading = true, x.sync = true, x.length === 0 && (x.needReadable = true), this._read(x.highWaterMark), x.sync = false, x.reading || (y = he2(M, x)));
|
|
11381
11381
|
var te2;
|
|
11382
|
-
return y > 0 ? te2 =
|
|
11382
|
+
return y > 0 ? te2 = p3(y, x) : te2 = null, te2 === null ? (x.needReadable = x.length <= x.highWaterMark, y = 0) : (x.length -= y, x.awaitDrain = 0), x.length === 0 && (x.ended || (x.needReadable = true), M !== y && x.ended && m(this)), te2 !== null && this.emit("data", te2), te2;
|
|
11383
11383
|
};
|
|
11384
11384
|
function se(y, x) {
|
|
11385
11385
|
if (u("onEofChunk"), !x.ended) {
|
|
@@ -11387,19 +11387,19 @@
|
|
|
11387
11387
|
var M = x.decoder.end();
|
|
11388
11388
|
M && M.length && (x.buffer.push(M), x.length += x.objectMode ? 1 : M.length);
|
|
11389
11389
|
}
|
|
11390
|
-
x.ended = true, x.sync ? Q3(y) : (x.needReadable = false, x.emittedReadable || (x.emittedReadable = true,
|
|
11390
|
+
x.ended = true, x.sync ? Q3(y) : (x.needReadable = false, x.emittedReadable || (x.emittedReadable = true, pe2(y)));
|
|
11391
11391
|
}
|
|
11392
11392
|
}
|
|
11393
11393
|
function Q3(y) {
|
|
11394
11394
|
var x = y._readableState;
|
|
11395
|
-
u("emitReadable", x.needReadable, x.emittedReadable), x.needReadable = false, x.emittedReadable || (u("emitReadable", x.flowing), x.emittedReadable = true,
|
|
11395
|
+
u("emitReadable", x.needReadable, x.emittedReadable), x.needReadable = false, x.emittedReadable || (u("emitReadable", x.flowing), x.emittedReadable = true, me$1.nextTick(pe2, y));
|
|
11396
11396
|
}
|
|
11397
|
-
function
|
|
11397
|
+
function pe2(y) {
|
|
11398
11398
|
var x = y._readableState;
|
|
11399
11399
|
u("emitReadable_", x.destroyed, x.length, x.ended), !x.destroyed && (x.length || x.ended) && (y.emit("readable"), x.emittedReadable = false), x.needReadable = !x.flowing && !x.ended && x.length <= x.highWaterMark, O3(y);
|
|
11400
11400
|
}
|
|
11401
11401
|
function J3(y, x) {
|
|
11402
|
-
x.readingMore || (x.readingMore = true,
|
|
11402
|
+
x.readingMore || (x.readingMore = true, me$1.nextTick(ne2, y, x));
|
|
11403
11403
|
}
|
|
11404
11404
|
function ne2(y, x) {
|
|
11405
11405
|
for (; !x.reading && !x.ended && (x.length < x.highWaterMark || x.flowing && x.length === 0); ) {
|
|
@@ -11425,8 +11425,8 @@
|
|
|
11425
11425
|
break;
|
|
11426
11426
|
}
|
|
11427
11427
|
W.pipesCount += 1, u("pipe count=%d opts=%j", W.pipesCount, x);
|
|
11428
|
-
var te2 = (!x || x.end !== false) && y !==
|
|
11429
|
-
W.endEmitted ?
|
|
11428
|
+
var te2 = (!x || x.end !== false) && y !== me$1.stdout && y !== me$1.stderr, Y = te2 ? ye2 : st2;
|
|
11429
|
+
W.endEmitted ? me$1.nextTick(Y) : M.once("end", Y), y.on("unpipe", re2);
|
|
11430
11430
|
function re2(lt2, Le2) {
|
|
11431
11431
|
u("onunpipe"), lt2 === M && Le2 && Le2.hasUnpiped === false && (Le2.hasUnpiped = true, Te2());
|
|
11432
11432
|
}
|
|
@@ -11487,13 +11487,13 @@
|
|
|
11487
11487
|
return re2 === -1 ? this : (x.pipes.splice(re2, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), y.emit("unpipe", this, M), this);
|
|
11488
11488
|
}, v.prototype.on = function(y, x) {
|
|
11489
11489
|
var M = t.prototype.on.call(this, y, x), W = this._readableState;
|
|
11490
|
-
return y === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== false && this.resume()) : y === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = true, W.flowing = false, W.emittedReadable = false, u("on readable", W.length, W.reading), W.length ? Q3(this) : W.reading ||
|
|
11490
|
+
return y === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== false && this.resume()) : y === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = true, W.flowing = false, W.emittedReadable = false, u("on readable", W.length, W.reading), W.length ? Q3(this) : W.reading || me$1.nextTick(H3, this)), M;
|
|
11491
11491
|
}, v.prototype.addListener = v.prototype.on, v.prototype.removeListener = function(y, x) {
|
|
11492
11492
|
var M = t.prototype.removeListener.call(this, y, x);
|
|
11493
|
-
return y === "readable" &&
|
|
11493
|
+
return y === "readable" && me$1.nextTick(L3, this), M;
|
|
11494
11494
|
}, v.prototype.removeAllListeners = function(y) {
|
|
11495
11495
|
var x = t.prototype.removeAllListeners.apply(this, arguments);
|
|
11496
|
-
return (y === "readable" || y === void 0) &&
|
|
11496
|
+
return (y === "readable" || y === void 0) && me$1.nextTick(L3, this), x;
|
|
11497
11497
|
};
|
|
11498
11498
|
function L3(y) {
|
|
11499
11499
|
var x = y._readableState;
|
|
@@ -11507,7 +11507,7 @@
|
|
|
11507
11507
|
return y.flowing || (u("resume"), y.flowing = !y.readableListening, V(this, y)), y.paused = false, this;
|
|
11508
11508
|
};
|
|
11509
11509
|
function V(y, x) {
|
|
11510
|
-
x.resumeScheduled || (x.resumeScheduled = true,
|
|
11510
|
+
x.resumeScheduled || (x.resumeScheduled = true, me$1.nextTick(K3, y, x));
|
|
11511
11511
|
}
|
|
11512
11512
|
function K3(y, x) {
|
|
11513
11513
|
u("resume", x.reading), x.reading || y.read(0), x.resumeScheduled = false, y.emit("resume"), O3(y), x.flowing && !x.reading && y.read(0);
|
|
@@ -11573,7 +11573,7 @@
|
|
|
11573
11573
|
set: function(x) {
|
|
11574
11574
|
this._readableState && (this._readableState.flowing = x);
|
|
11575
11575
|
}
|
|
11576
|
-
}), v._fromList =
|
|
11576
|
+
}), v._fromList = p3, Object.defineProperty(v.prototype, "readableLength", {
|
|
11577
11577
|
// making it explicit this property is not enumerable
|
|
11578
11578
|
// because otherwise some prototype manipulation in
|
|
11579
11579
|
// userland will fail
|
|
@@ -11582,14 +11582,14 @@
|
|
|
11582
11582
|
return this._readableState.length;
|
|
11583
11583
|
}
|
|
11584
11584
|
});
|
|
11585
|
-
function
|
|
11585
|
+
function p3(y, x) {
|
|
11586
11586
|
if (x.length === 0) return null;
|
|
11587
11587
|
var M;
|
|
11588
11588
|
return x.objectMode ? M = x.buffer.shift() : !y || y >= x.length ? (x.decoder ? M = x.buffer.join("") : x.buffer.length === 1 ? M = x.buffer.first() : M = x.buffer.concat(x.length), x.buffer.clear()) : M = x.buffer.consume(y, x.decoder), M;
|
|
11589
11589
|
}
|
|
11590
|
-
function
|
|
11590
|
+
function m(y) {
|
|
11591
11591
|
var x = y._readableState;
|
|
11592
|
-
u("endReadable", x.endEmitted), x.endEmitted || (x.ended = true,
|
|
11592
|
+
u("endReadable", x.endEmitted), x.endEmitted || (x.ended = true, me$1.nextTick(N, x, y));
|
|
11593
11593
|
}
|
|
11594
11594
|
function N(y, x) {
|
|
11595
11595
|
if (u("endReadableNT", y.endEmitted, y.length), !y.endEmitted && y.length === 0 && (y.endEmitted = true, x.readable = false, x.emit("end"), y.autoDestroy)) {
|
|
@@ -11783,8 +11783,8 @@
|
|
|
11783
11783
|
}
|
|
11784
11784
|
(function(r22) {
|
|
11785
11785
|
(function(e) {
|
|
11786
|
-
e.parser = function(
|
|
11787
|
-
return new n(
|
|
11786
|
+
e.parser = function(p3, m) {
|
|
11787
|
+
return new n(p3, m);
|
|
11788
11788
|
}, e.SAXParser = n, e.SAXStream = c3, e.createStream = f3, e.MAX_BUFFER_LENGTH = 64 * 1024;
|
|
11789
11789
|
var t = [
|
|
11790
11790
|
"comment",
|
|
@@ -11820,51 +11820,51 @@
|
|
|
11820
11820
|
"opennamespace",
|
|
11821
11821
|
"closenamespace"
|
|
11822
11822
|
];
|
|
11823
|
-
function n(
|
|
11823
|
+
function n(p3, m) {
|
|
11824
11824
|
if (!(this instanceof n))
|
|
11825
|
-
return new n(
|
|
11825
|
+
return new n(p3, m);
|
|
11826
11826
|
var N = this;
|
|
11827
|
-
s(N), N.q = N.c = "", N.bufferCheckPosition = e.MAX_BUFFER_LENGTH, N.opt =
|
|
11827
|
+
s(N), N.q = N.c = "", N.bufferCheckPosition = e.MAX_BUFFER_LENGTH, N.opt = m || {}, N.opt.lowercase = N.opt.lowercase || N.opt.lowercasetags, N.looseCase = N.opt.lowercase ? "toLowerCase" : "toUpperCase", N.tags = [], N.closed = N.closedRoot = N.sawRoot = false, N.tag = N.error = null, N.strict = !!p3, N.noscript = !!(p3 || N.opt.noscript), N.state = v.BEGIN, N.strictEntities = N.opt.strictEntities, N.ENTITIES = N.strictEntities ? Object.create(e.XML_ENTITIES) : Object.create(e.ENTITIES), N.attribList = [], N.opt.xmlns && (N.ns = Object.create(A)), N.opt.unquotedAttributeValues === void 0 && (N.opt.unquotedAttributeValues = !p3), N.trackPosition = N.opt.position !== false, N.trackPosition && (N.position = N.line = N.column = 0), ie(N, "onready");
|
|
11828
11828
|
}
|
|
11829
|
-
Object.create || (Object.create = function(
|
|
11830
|
-
function
|
|
11829
|
+
Object.create || (Object.create = function(p3) {
|
|
11830
|
+
function m() {
|
|
11831
11831
|
}
|
|
11832
|
-
|
|
11833
|
-
var N = new
|
|
11832
|
+
m.prototype = p3;
|
|
11833
|
+
var N = new m();
|
|
11834
11834
|
return N;
|
|
11835
|
-
}), Object.keys || (Object.keys = function(
|
|
11836
|
-
var
|
|
11837
|
-
for (var N in
|
|
11838
|
-
return
|
|
11835
|
+
}), Object.keys || (Object.keys = function(p3) {
|
|
11836
|
+
var m = [];
|
|
11837
|
+
for (var N in p3) p3.hasOwnProperty(N) && m.push(N);
|
|
11838
|
+
return m;
|
|
11839
11839
|
});
|
|
11840
|
-
function i3(
|
|
11841
|
-
for (var
|
|
11842
|
-
var x =
|
|
11843
|
-
if (x >
|
|
11840
|
+
function i3(p3) {
|
|
11841
|
+
for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), N = 0, D3 = 0, y = t.length; D3 < y; D3++) {
|
|
11842
|
+
var x = p3[t[D3]].length;
|
|
11843
|
+
if (x > m)
|
|
11844
11844
|
switch (t[D3]) {
|
|
11845
11845
|
case "textNode":
|
|
11846
|
-
X3(
|
|
11846
|
+
X3(p3);
|
|
11847
11847
|
break;
|
|
11848
11848
|
case "cdata":
|
|
11849
|
-
ee2(
|
|
11849
|
+
ee2(p3, "oncdata", p3.cdata), p3.cdata = "";
|
|
11850
11850
|
break;
|
|
11851
11851
|
case "script":
|
|
11852
|
-
ee2(
|
|
11852
|
+
ee2(p3, "onscript", p3.script), p3.script = "";
|
|
11853
11853
|
break;
|
|
11854
11854
|
default:
|
|
11855
|
-
he2(
|
|
11855
|
+
he2(p3, "Max buffer length exceeded: " + t[D3]);
|
|
11856
11856
|
}
|
|
11857
11857
|
N = Math.max(N, x);
|
|
11858
11858
|
}
|
|
11859
11859
|
var M = e.MAX_BUFFER_LENGTH - N;
|
|
11860
|
-
|
|
11860
|
+
p3.bufferCheckPosition = M + p3.position;
|
|
11861
11861
|
}
|
|
11862
|
-
function s(
|
|
11863
|
-
for (var
|
|
11864
|
-
|
|
11862
|
+
function s(p3) {
|
|
11863
|
+
for (var m = 0, N = t.length; m < N; m++)
|
|
11864
|
+
p3[t[m]] = "";
|
|
11865
11865
|
}
|
|
11866
|
-
function o(
|
|
11867
|
-
X3(
|
|
11866
|
+
function o(p3) {
|
|
11867
|
+
X3(p3), p3.cdata !== "" && (ee2(p3, "oncdata", p3.cdata), p3.cdata = ""), p3.script !== "" && (ee2(p3, "onscript", p3.script), p3.script = "");
|
|
11868
11868
|
}
|
|
11869
11869
|
n.prototype = {
|
|
11870
11870
|
end: function() {
|
|
@@ -11890,16 +11890,16 @@
|
|
|
11890
11890
|
}
|
|
11891
11891
|
a || (a = function() {
|
|
11892
11892
|
});
|
|
11893
|
-
var u = e.EVENTS.filter(function(
|
|
11894
|
-
return
|
|
11893
|
+
var u = e.EVENTS.filter(function(p3) {
|
|
11894
|
+
return p3 !== "error" && p3 !== "end";
|
|
11895
11895
|
});
|
|
11896
|
-
function f3(
|
|
11897
|
-
return new c3(
|
|
11896
|
+
function f3(p3, m) {
|
|
11897
|
+
return new c3(p3, m);
|
|
11898
11898
|
}
|
|
11899
|
-
function c3(
|
|
11899
|
+
function c3(p3, m) {
|
|
11900
11900
|
if (!(this instanceof c3))
|
|
11901
|
-
return new c3(
|
|
11902
|
-
a.apply(this), this._parser = new n(
|
|
11901
|
+
return new c3(p3, m);
|
|
11902
|
+
a.apply(this), this._parser = new n(p3, m), this.writable = true, this.readable = true;
|
|
11903
11903
|
var N = this;
|
|
11904
11904
|
this._parser.onend = function() {
|
|
11905
11905
|
N.emit("end");
|
|
@@ -11924,40 +11924,40 @@
|
|
|
11924
11924
|
constructor: {
|
|
11925
11925
|
value: c3
|
|
11926
11926
|
}
|
|
11927
|
-
}), c3.prototype.write = function(
|
|
11928
|
-
if (typeof jt$3 == "function" && typeof jt$3.isBuffer == "function" && jt$3.isBuffer(
|
|
11927
|
+
}), c3.prototype.write = function(p3) {
|
|
11928
|
+
if (typeof jt$3 == "function" && typeof jt$3.isBuffer == "function" && jt$3.isBuffer(p3)) {
|
|
11929
11929
|
if (!this._decoder) {
|
|
11930
|
-
var
|
|
11931
|
-
this._decoder = new
|
|
11930
|
+
var m = si$2().StringDecoder;
|
|
11931
|
+
this._decoder = new m("utf8");
|
|
11932
11932
|
}
|
|
11933
|
-
|
|
11933
|
+
p3 = this._decoder.write(p3);
|
|
11934
11934
|
}
|
|
11935
|
-
return this._parser.write(
|
|
11936
|
-
}, c3.prototype.end = function(
|
|
11937
|
-
return
|
|
11938
|
-
}, c3.prototype.on = function(
|
|
11935
|
+
return this._parser.write(p3.toString()), this.emit("data", p3), true;
|
|
11936
|
+
}, c3.prototype.end = function(p3) {
|
|
11937
|
+
return p3 && p3.length && this.write(p3), this._parser.end(), true;
|
|
11938
|
+
}, c3.prototype.on = function(p3, m) {
|
|
11939
11939
|
var N = this;
|
|
11940
|
-
return !N._parser["on" +
|
|
11940
|
+
return !N._parser["on" + p3] && u.indexOf(p3) !== -1 && (N._parser["on" + p3] = function() {
|
|
11941
11941
|
var D3 = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
11942
|
-
D3.splice(0, 0,
|
|
11943
|
-
}), a.prototype.on.call(N,
|
|
11942
|
+
D3.splice(0, 0, p3), N.emit.apply(N, D3);
|
|
11943
|
+
}), a.prototype.on.call(N, p3, m);
|
|
11944
11944
|
};
|
|
11945
11945
|
var g = "[CDATA[", h3 = "DOCTYPE", S = "http://www.w3.org/XML/1998/namespace", T3 = "http://www.w3.org/2000/xmlns/", A = { xml: S, xmlns: T3 }, k = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, b = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, F3 = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, R = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
11946
|
-
function C(
|
|
11947
|
-
return
|
|
11948
|
-
` ||
|
|
11946
|
+
function C(p3) {
|
|
11947
|
+
return p3 === " " || p3 === `
|
|
11948
|
+
` || p3 === "\r" || p3 === " ";
|
|
11949
11949
|
}
|
|
11950
|
-
function B(
|
|
11951
|
-
return
|
|
11950
|
+
function B(p3) {
|
|
11951
|
+
return p3 === '"' || p3 === "'";
|
|
11952
11952
|
}
|
|
11953
|
-
function I3(
|
|
11954
|
-
return
|
|
11953
|
+
function I3(p3) {
|
|
11954
|
+
return p3 === ">" || C(p3);
|
|
11955
11955
|
}
|
|
11956
|
-
function _(
|
|
11957
|
-
return
|
|
11956
|
+
function _(p3, m) {
|
|
11957
|
+
return p3.test(m);
|
|
11958
11958
|
}
|
|
11959
|
-
function q(
|
|
11960
|
-
return !_(
|
|
11959
|
+
function q(p3, m) {
|
|
11960
|
+
return !_(p3, m);
|
|
11961
11961
|
}
|
|
11962
11962
|
var v = 0;
|
|
11963
11963
|
e.STATE = {
|
|
@@ -12293,335 +12293,335 @@
|
|
|
12293
12293
|
clubs: 9827,
|
|
12294
12294
|
hearts: 9829,
|
|
12295
12295
|
diams: 9830
|
|
12296
|
-
}, Object.keys(e.ENTITIES).forEach(function(
|
|
12297
|
-
var
|
|
12298
|
-
e.ENTITIES[
|
|
12296
|
+
}, Object.keys(e.ENTITIES).forEach(function(p3) {
|
|
12297
|
+
var m = e.ENTITIES[p3], N = typeof m == "number" ? String.fromCharCode(m) : m;
|
|
12298
|
+
e.ENTITIES[p3] = N;
|
|
12299
12299
|
});
|
|
12300
12300
|
for (var $ in e.STATE)
|
|
12301
12301
|
e.STATE[e.STATE[$]] = $;
|
|
12302
12302
|
v = e.STATE;
|
|
12303
|
-
function ie(
|
|
12304
|
-
m
|
|
12303
|
+
function ie(p3, m, N) {
|
|
12304
|
+
p3[m] && p3[m](N);
|
|
12305
12305
|
}
|
|
12306
|
-
function ee2(
|
|
12307
|
-
|
|
12306
|
+
function ee2(p3, m, N) {
|
|
12307
|
+
p3.textNode && X3(p3), ie(p3, m, N);
|
|
12308
12308
|
}
|
|
12309
|
-
function X3(
|
|
12310
|
-
|
|
12309
|
+
function X3(p3) {
|
|
12310
|
+
p3.textNode = ce2(p3.opt, p3.textNode), p3.textNode && ie(p3, "ontext", p3.textNode), p3.textNode = "";
|
|
12311
12311
|
}
|
|
12312
|
-
function ce2(
|
|
12313
|
-
return
|
|
12312
|
+
function ce2(p3, m) {
|
|
12313
|
+
return p3.trim && (m = m.trim()), p3.normalize && (m = m.replace(/\s+/g, " ")), m;
|
|
12314
12314
|
}
|
|
12315
|
-
function he2(
|
|
12316
|
-
return X3(
|
|
12317
|
-
Line: ` +
|
|
12318
|
-
Column: ` +
|
|
12319
|
-
Char: ` +
|
|
12315
|
+
function he2(p3, m) {
|
|
12316
|
+
return X3(p3), p3.trackPosition && (m += `
|
|
12317
|
+
Line: ` + p3.line + `
|
|
12318
|
+
Column: ` + p3.column + `
|
|
12319
|
+
Char: ` + p3.c), m = new Error(m), p3.error = m, ie(p3, "onerror", m), p3;
|
|
12320
12320
|
}
|
|
12321
|
-
function se(
|
|
12322
|
-
return
|
|
12321
|
+
function se(p3) {
|
|
12322
|
+
return p3.sawRoot && !p3.closedRoot && Q3(p3, "Unclosed root tag"), p3.state !== v.BEGIN && p3.state !== v.BEGIN_WHITESPACE && p3.state !== v.TEXT && he2(p3, "Unexpected end"), X3(p3), p3.c = "", p3.closed = true, ie(p3, "onend"), n.call(p3, p3.strict, p3.opt), p3;
|
|
12323
12323
|
}
|
|
12324
|
-
function Q3(
|
|
12325
|
-
if (typeof
|
|
12324
|
+
function Q3(p3, m) {
|
|
12325
|
+
if (typeof p3 != "object" || !(p3 instanceof n))
|
|
12326
12326
|
throw new Error("bad call to strictFail");
|
|
12327
|
-
|
|
12327
|
+
p3.strict && he2(p3, m);
|
|
12328
12328
|
}
|
|
12329
|
-
function
|
|
12330
|
-
|
|
12331
|
-
var
|
|
12332
|
-
|
|
12329
|
+
function pe2(p3) {
|
|
12330
|
+
p3.strict || (p3.tagName = p3.tagName[p3.looseCase]());
|
|
12331
|
+
var m = p3.tags[p3.tags.length - 1] || p3, N = p3.tag = { name: p3.tagName, attributes: {} };
|
|
12332
|
+
p3.opt.xmlns && (N.ns = m.ns), p3.attribList.length = 0, ee2(p3, "onopentagstart", N);
|
|
12333
12333
|
}
|
|
12334
|
-
function J3(
|
|
12335
|
-
var N =
|
|
12336
|
-
return
|
|
12334
|
+
function J3(p3, m) {
|
|
12335
|
+
var N = p3.indexOf(":"), D3 = N < 0 ? ["", p3] : p3.split(":"), y = D3[0], x = D3[1];
|
|
12336
|
+
return m && p3 === "xmlns" && (y = "xmlns", x = ""), { prefix: y, local: x };
|
|
12337
12337
|
}
|
|
12338
|
-
function ne2(
|
|
12339
|
-
if (
|
|
12340
|
-
|
|
12338
|
+
function ne2(p3) {
|
|
12339
|
+
if (p3.strict || (p3.attribName = p3.attribName[p3.looseCase]()), p3.attribList.indexOf(p3.attribName) !== -1 || p3.tag.attributes.hasOwnProperty(p3.attribName)) {
|
|
12340
|
+
p3.attribName = p3.attribValue = "";
|
|
12341
12341
|
return;
|
|
12342
12342
|
}
|
|
12343
|
-
if (
|
|
12344
|
-
var
|
|
12343
|
+
if (p3.opt.xmlns) {
|
|
12344
|
+
var m = J3(p3.attribName, true), N = m.prefix, D3 = m.local;
|
|
12345
12345
|
if (N === "xmlns")
|
|
12346
|
-
if (D3 === "xml" &&
|
|
12346
|
+
if (D3 === "xml" && p3.attribValue !== S)
|
|
12347
12347
|
Q3(
|
|
12348
|
-
|
|
12348
|
+
p3,
|
|
12349
12349
|
"xml: prefix must be bound to " + S + `
|
|
12350
|
-
Actual: ` +
|
|
12350
|
+
Actual: ` + p3.attribValue
|
|
12351
12351
|
);
|
|
12352
|
-
else if (D3 === "xmlns" &&
|
|
12352
|
+
else if (D3 === "xmlns" && p3.attribValue !== T3)
|
|
12353
12353
|
Q3(
|
|
12354
|
-
|
|
12354
|
+
p3,
|
|
12355
12355
|
"xmlns: prefix must be bound to " + T3 + `
|
|
12356
|
-
Actual: ` +
|
|
12356
|
+
Actual: ` + p3.attribValue
|
|
12357
12357
|
);
|
|
12358
12358
|
else {
|
|
12359
|
-
var y =
|
|
12360
|
-
y.ns === x.ns && (y.ns = Object.create(x.ns)), y.ns[D3] =
|
|
12359
|
+
var y = p3.tag, x = p3.tags[p3.tags.length - 1] || p3;
|
|
12360
|
+
y.ns === x.ns && (y.ns = Object.create(x.ns)), y.ns[D3] = p3.attribValue;
|
|
12361
12361
|
}
|
|
12362
|
-
|
|
12362
|
+
p3.attribList.push([p3.attribName, p3.attribValue]);
|
|
12363
12363
|
} else
|
|
12364
|
-
|
|
12365
|
-
name:
|
|
12366
|
-
value:
|
|
12364
|
+
p3.tag.attributes[p3.attribName] = p3.attribValue, ee2(p3, "onattribute", {
|
|
12365
|
+
name: p3.attribName,
|
|
12366
|
+
value: p3.attribValue
|
|
12367
12367
|
});
|
|
12368
|
-
|
|
12368
|
+
p3.attribName = p3.attribValue = "";
|
|
12369
12369
|
}
|
|
12370
|
-
function ae2(
|
|
12371
|
-
if (
|
|
12372
|
-
var N =
|
|
12373
|
-
N.prefix = D3.prefix, N.local = D3.local, N.uri = N.ns[D3.prefix] || "", N.prefix && !N.uri && (Q3(
|
|
12374
|
-
var y =
|
|
12370
|
+
function ae2(p3, m) {
|
|
12371
|
+
if (p3.opt.xmlns) {
|
|
12372
|
+
var N = p3.tag, D3 = J3(p3.tagName);
|
|
12373
|
+
N.prefix = D3.prefix, N.local = D3.local, N.uri = N.ns[D3.prefix] || "", N.prefix && !N.uri && (Q3(p3, "Unbound namespace prefix: " + JSON.stringify(p3.tagName)), N.uri = D3.prefix);
|
|
12374
|
+
var y = p3.tags[p3.tags.length - 1] || p3;
|
|
12375
12375
|
N.ns && y.ns !== N.ns && Object.keys(N.ns).forEach(function(He2) {
|
|
12376
|
-
ee2(
|
|
12376
|
+
ee2(p3, "onopennamespace", {
|
|
12377
12377
|
prefix: He2,
|
|
12378
12378
|
uri: N.ns[He2]
|
|
12379
12379
|
});
|
|
12380
12380
|
});
|
|
12381
|
-
for (var x = 0, M =
|
|
12382
|
-
var W =
|
|
12381
|
+
for (var x = 0, M = p3.attribList.length; x < M; x++) {
|
|
12382
|
+
var W = p3.attribList[x], te2 = W[0], Y = W[1], re2 = J3(te2, true), ye2 = re2.prefix, z3 = re2.local, Be2 = ye2 === "" ? "" : N.ns[ye2] || "", Te2 = {
|
|
12383
12383
|
name: te2,
|
|
12384
12384
|
value: Y,
|
|
12385
12385
|
prefix: ye2,
|
|
12386
12386
|
local: z3,
|
|
12387
12387
|
uri: Be2
|
|
12388
12388
|
};
|
|
12389
|
-
ye2 && ye2 !== "xmlns" && !Be2 && (Q3(
|
|
12389
|
+
ye2 && ye2 !== "xmlns" && !Be2 && (Q3(p3, "Unbound namespace prefix: " + JSON.stringify(ye2)), Te2.uri = ye2), p3.tag.attributes[te2] = Te2, ee2(p3, "onattribute", Te2);
|
|
12390
12390
|
}
|
|
12391
|
-
|
|
12391
|
+
p3.attribList.length = 0;
|
|
12392
12392
|
}
|
|
12393
|
-
|
|
12393
|
+
p3.tag.isSelfClosing = !!m, p3.sawRoot = true, p3.tags.push(p3.tag), ee2(p3, "onopentag", p3.tag), m || (!p3.noscript && p3.tagName.toLowerCase() === "script" ? p3.state = v.SCRIPT : p3.state = v.TEXT, p3.tag = null, p3.tagName = ""), p3.attribName = p3.attribValue = "", p3.attribList.length = 0;
|
|
12394
12394
|
}
|
|
12395
|
-
function L3(
|
|
12396
|
-
if (!
|
|
12397
|
-
Q3(
|
|
12395
|
+
function L3(p3) {
|
|
12396
|
+
if (!p3.tagName) {
|
|
12397
|
+
Q3(p3, "Weird empty close tag."), p3.textNode += "</>", p3.state = v.TEXT;
|
|
12398
12398
|
return;
|
|
12399
12399
|
}
|
|
12400
|
-
if (
|
|
12401
|
-
if (
|
|
12402
|
-
|
|
12400
|
+
if (p3.script) {
|
|
12401
|
+
if (p3.tagName !== "script") {
|
|
12402
|
+
p3.script += "</" + p3.tagName + ">", p3.tagName = "", p3.state = v.SCRIPT;
|
|
12403
12403
|
return;
|
|
12404
12404
|
}
|
|
12405
|
-
ee2(
|
|
12405
|
+
ee2(p3, "onscript", p3.script), p3.script = "";
|
|
12406
12406
|
}
|
|
12407
|
-
var
|
|
12408
|
-
|
|
12409
|
-
for (var D3 = N;
|
|
12410
|
-
var y =
|
|
12407
|
+
var m = p3.tags.length, N = p3.tagName;
|
|
12408
|
+
p3.strict || (N = N[p3.looseCase]());
|
|
12409
|
+
for (var D3 = N; m--; ) {
|
|
12410
|
+
var y = p3.tags[m];
|
|
12411
12411
|
if (y.name !== D3)
|
|
12412
|
-
Q3(
|
|
12412
|
+
Q3(p3, "Unexpected close tag");
|
|
12413
12413
|
else
|
|
12414
12414
|
break;
|
|
12415
12415
|
}
|
|
12416
|
-
if (
|
|
12417
|
-
Q3(
|
|
12416
|
+
if (m < 0) {
|
|
12417
|
+
Q3(p3, "Unmatched closing tag: " + p3.tagName), p3.textNode += "</" + p3.tagName + ">", p3.state = v.TEXT;
|
|
12418
12418
|
return;
|
|
12419
12419
|
}
|
|
12420
|
-
|
|
12421
|
-
for (var x =
|
|
12422
|
-
var M =
|
|
12423
|
-
|
|
12420
|
+
p3.tagName = N;
|
|
12421
|
+
for (var x = p3.tags.length; x-- > m; ) {
|
|
12422
|
+
var M = p3.tag = p3.tags.pop();
|
|
12423
|
+
p3.tagName = p3.tag.name, ee2(p3, "onclosetag", p3.tagName);
|
|
12424
12424
|
var W = {};
|
|
12425
12425
|
for (var te2 in M.ns)
|
|
12426
12426
|
W[te2] = M.ns[te2];
|
|
12427
|
-
var Y =
|
|
12428
|
-
|
|
12427
|
+
var Y = p3.tags[p3.tags.length - 1] || p3;
|
|
12428
|
+
p3.opt.xmlns && M.ns !== Y.ns && Object.keys(M.ns).forEach(function(re2) {
|
|
12429
12429
|
var ye2 = M.ns[re2];
|
|
12430
|
-
ee2(
|
|
12430
|
+
ee2(p3, "onclosenamespace", { prefix: re2, uri: ye2 });
|
|
12431
12431
|
});
|
|
12432
12432
|
}
|
|
12433
|
-
|
|
12433
|
+
m === 0 && (p3.closedRoot = true), p3.tagName = p3.attribValue = p3.attribName = "", p3.attribList.length = 0, p3.state = v.TEXT;
|
|
12434
12434
|
}
|
|
12435
|
-
function H3(
|
|
12436
|
-
var
|
|
12437
|
-
return
|
|
12435
|
+
function H3(p3) {
|
|
12436
|
+
var m = p3.entity, N = m.toLowerCase(), D3, y = "";
|
|
12437
|
+
return p3.ENTITIES[m] ? p3.ENTITIES[m] : p3.ENTITIES[N] ? p3.ENTITIES[N] : (m = N, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2), D3 = parseInt(m, 16), y = D3.toString(16)) : (m = m.slice(1), D3 = parseInt(m, 10), y = D3.toString(10))), m = m.replace(/^0+/, ""), isNaN(D3) || y.toLowerCase() !== m ? (Q3(p3, "Invalid character entity"), "&" + p3.entity + ";") : String.fromCodePoint(D3));
|
|
12438
12438
|
}
|
|
12439
|
-
function V(
|
|
12440
|
-
|
|
12439
|
+
function V(p3, m) {
|
|
12440
|
+
m === "<" ? (p3.state = v.OPEN_WAKA, p3.startTagPosition = p3.position) : C(m) || (Q3(p3, "Non-whitespace before first tag."), p3.textNode = m, p3.state = v.TEXT);
|
|
12441
12441
|
}
|
|
12442
|
-
function K3(
|
|
12442
|
+
function K3(p3, m) {
|
|
12443
12443
|
var N = "";
|
|
12444
|
-
return
|
|
12444
|
+
return m < p3.length && (N = p3.charAt(m)), N;
|
|
12445
12445
|
}
|
|
12446
|
-
function O3(
|
|
12447
|
-
var
|
|
12446
|
+
function O3(p3) {
|
|
12447
|
+
var m = this;
|
|
12448
12448
|
if (this.error)
|
|
12449
12449
|
throw this.error;
|
|
12450
|
-
if (
|
|
12450
|
+
if (m.closed)
|
|
12451
12451
|
return he2(
|
|
12452
|
-
|
|
12452
|
+
m,
|
|
12453
12453
|
"Cannot write after close. Assign an onready handler."
|
|
12454
12454
|
);
|
|
12455
|
-
if (
|
|
12456
|
-
return se(
|
|
12457
|
-
typeof
|
|
12458
|
-
for (var N = 0, D3 = ""; D3 = K3(
|
|
12459
|
-
switch (
|
|
12460
|
-
` ? (
|
|
12455
|
+
if (p3 === null)
|
|
12456
|
+
return se(m);
|
|
12457
|
+
typeof p3 == "object" && (p3 = p3.toString());
|
|
12458
|
+
for (var N = 0, D3 = ""; D3 = K3(p3, N++), m.c = D3, !!D3; )
|
|
12459
|
+
switch (m.trackPosition && (m.position++, D3 === `
|
|
12460
|
+
` ? (m.line++, m.column = 0) : m.column++), m.state) {
|
|
12461
12461
|
case v.BEGIN:
|
|
12462
|
-
if (
|
|
12462
|
+
if (m.state = v.BEGIN_WHITESPACE, D3 === "\uFEFF")
|
|
12463
12463
|
continue;
|
|
12464
|
-
V(
|
|
12464
|
+
V(m, D3);
|
|
12465
12465
|
continue;
|
|
12466
12466
|
case v.BEGIN_WHITESPACE:
|
|
12467
|
-
V(
|
|
12467
|
+
V(m, D3);
|
|
12468
12468
|
continue;
|
|
12469
12469
|
case v.TEXT:
|
|
12470
|
-
if (
|
|
12470
|
+
if (m.sawRoot && !m.closedRoot) {
|
|
12471
12471
|
for (var y = N - 1; D3 && D3 !== "<" && D3 !== "&"; )
|
|
12472
|
-
D3 = K3(
|
|
12473
|
-
` ? (
|
|
12474
|
-
|
|
12472
|
+
D3 = K3(p3, N++), D3 && m.trackPosition && (m.position++, D3 === `
|
|
12473
|
+
` ? (m.line++, m.column = 0) : m.column++);
|
|
12474
|
+
m.textNode += p3.substring(y, N - 1);
|
|
12475
12475
|
}
|
|
12476
|
-
D3 === "<" && !(
|
|
12476
|
+
D3 === "<" && !(m.sawRoot && m.closedRoot && !m.strict) ? (m.state = v.OPEN_WAKA, m.startTagPosition = m.position) : (!C(D3) && (!m.sawRoot || m.closedRoot) && Q3(m, "Text data outside of root node."), D3 === "&" ? m.state = v.TEXT_ENTITY : m.textNode += D3);
|
|
12477
12477
|
continue;
|
|
12478
12478
|
case v.SCRIPT:
|
|
12479
|
-
D3 === "<" ?
|
|
12479
|
+
D3 === "<" ? m.state = v.SCRIPT_ENDING : m.script += D3;
|
|
12480
12480
|
continue;
|
|
12481
12481
|
case v.SCRIPT_ENDING:
|
|
12482
|
-
D3 === "/" ?
|
|
12482
|
+
D3 === "/" ? m.state = v.CLOSE_TAG : (m.script += "<" + D3, m.state = v.SCRIPT);
|
|
12483
12483
|
continue;
|
|
12484
12484
|
case v.OPEN_WAKA:
|
|
12485
12485
|
if (D3 === "!")
|
|
12486
|
-
|
|
12486
|
+
m.state = v.SGML_DECL, m.sgmlDecl = "";
|
|
12487
12487
|
else if (!C(D3)) if (_(k, D3))
|
|
12488
|
-
|
|
12488
|
+
m.state = v.OPEN_TAG, m.tagName = D3;
|
|
12489
12489
|
else if (D3 === "/")
|
|
12490
|
-
|
|
12490
|
+
m.state = v.CLOSE_TAG, m.tagName = "";
|
|
12491
12491
|
else if (D3 === "?")
|
|
12492
|
-
|
|
12492
|
+
m.state = v.PROC_INST, m.procInstName = m.procInstBody = "";
|
|
12493
12493
|
else {
|
|
12494
|
-
if (Q3(
|
|
12495
|
-
var x =
|
|
12494
|
+
if (Q3(m, "Unencoded <"), m.startTagPosition + 1 < m.position) {
|
|
12495
|
+
var x = m.position - m.startTagPosition;
|
|
12496
12496
|
D3 = new Array(x).join(" ") + D3;
|
|
12497
12497
|
}
|
|
12498
|
-
|
|
12498
|
+
m.textNode += "<" + D3, m.state = v.TEXT;
|
|
12499
12499
|
}
|
|
12500
12500
|
continue;
|
|
12501
12501
|
case v.SGML_DECL:
|
|
12502
|
-
if (
|
|
12503
|
-
|
|
12502
|
+
if (m.sgmlDecl + D3 === "--") {
|
|
12503
|
+
m.state = v.COMMENT, m.comment = "", m.sgmlDecl = "";
|
|
12504
12504
|
continue;
|
|
12505
12505
|
}
|
|
12506
|
-
|
|
12507
|
-
|
|
12506
|
+
m.doctype && m.doctype !== true && m.sgmlDecl ? (m.state = v.DOCTYPE_DTD, m.doctype += "<!" + m.sgmlDecl + D3, m.sgmlDecl = "") : (m.sgmlDecl + D3).toUpperCase() === g ? (ee2(m, "onopencdata"), m.state = v.CDATA, m.sgmlDecl = "", m.cdata = "") : (m.sgmlDecl + D3).toUpperCase() === h3 ? (m.state = v.DOCTYPE, (m.doctype || m.sawRoot) && Q3(
|
|
12507
|
+
m,
|
|
12508
12508
|
"Inappropriately located doctype declaration"
|
|
12509
|
-
),
|
|
12509
|
+
), m.doctype = "", m.sgmlDecl = "") : D3 === ">" ? (ee2(m, "onsgmldeclaration", m.sgmlDecl), m.sgmlDecl = "", m.state = v.TEXT) : (B(D3) && (m.state = v.SGML_DECL_QUOTED), m.sgmlDecl += D3);
|
|
12510
12510
|
continue;
|
|
12511
12511
|
case v.SGML_DECL_QUOTED:
|
|
12512
|
-
D3 ===
|
|
12512
|
+
D3 === m.q && (m.state = v.SGML_DECL, m.q = ""), m.sgmlDecl += D3;
|
|
12513
12513
|
continue;
|
|
12514
12514
|
case v.DOCTYPE:
|
|
12515
|
-
D3 === ">" ? (
|
|
12515
|
+
D3 === ">" ? (m.state = v.TEXT, ee2(m, "ondoctype", m.doctype), m.doctype = true) : (m.doctype += D3, D3 === "[" ? m.state = v.DOCTYPE_DTD : B(D3) && (m.state = v.DOCTYPE_QUOTED, m.q = D3));
|
|
12516
12516
|
continue;
|
|
12517
12517
|
case v.DOCTYPE_QUOTED:
|
|
12518
|
-
|
|
12518
|
+
m.doctype += D3, D3 === m.q && (m.q = "", m.state = v.DOCTYPE);
|
|
12519
12519
|
continue;
|
|
12520
12520
|
case v.DOCTYPE_DTD:
|
|
12521
|
-
D3 === "]" ? (
|
|
12521
|
+
D3 === "]" ? (m.doctype += D3, m.state = v.DOCTYPE) : D3 === "<" ? (m.state = v.OPEN_WAKA, m.startTagPosition = m.position) : B(D3) ? (m.doctype += D3, m.state = v.DOCTYPE_DTD_QUOTED, m.q = D3) : m.doctype += D3;
|
|
12522
12522
|
continue;
|
|
12523
12523
|
case v.DOCTYPE_DTD_QUOTED:
|
|
12524
|
-
|
|
12524
|
+
m.doctype += D3, D3 === m.q && (m.state = v.DOCTYPE_DTD, m.q = "");
|
|
12525
12525
|
continue;
|
|
12526
12526
|
case v.COMMENT:
|
|
12527
|
-
D3 === "-" ?
|
|
12527
|
+
D3 === "-" ? m.state = v.COMMENT_ENDING : m.comment += D3;
|
|
12528
12528
|
continue;
|
|
12529
12529
|
case v.COMMENT_ENDING:
|
|
12530
|
-
D3 === "-" ? (
|
|
12530
|
+
D3 === "-" ? (m.state = v.COMMENT_ENDED, m.comment = ce2(m.opt, m.comment), m.comment && ee2(m, "oncomment", m.comment), m.comment = "") : (m.comment += "-" + D3, m.state = v.COMMENT);
|
|
12531
12531
|
continue;
|
|
12532
12532
|
case v.COMMENT_ENDED:
|
|
12533
|
-
D3 !== ">" ? (Q3(
|
|
12533
|
+
D3 !== ">" ? (Q3(m, "Malformed comment"), m.comment += "--" + D3, m.state = v.COMMENT) : m.doctype && m.doctype !== true ? m.state = v.DOCTYPE_DTD : m.state = v.TEXT;
|
|
12534
12534
|
continue;
|
|
12535
12535
|
case v.CDATA:
|
|
12536
|
-
D3 === "]" ?
|
|
12536
|
+
D3 === "]" ? m.state = v.CDATA_ENDING : m.cdata += D3;
|
|
12537
12537
|
continue;
|
|
12538
12538
|
case v.CDATA_ENDING:
|
|
12539
|
-
D3 === "]" ?
|
|
12539
|
+
D3 === "]" ? m.state = v.CDATA_ENDING_2 : (m.cdata += "]" + D3, m.state = v.CDATA);
|
|
12540
12540
|
continue;
|
|
12541
12541
|
case v.CDATA_ENDING_2:
|
|
12542
|
-
D3 === ">" ? (
|
|
12542
|
+
D3 === ">" ? (m.cdata && ee2(m, "oncdata", m.cdata), ee2(m, "onclosecdata"), m.cdata = "", m.state = v.TEXT) : D3 === "]" ? m.cdata += "]" : (m.cdata += "]]" + D3, m.state = v.CDATA);
|
|
12543
12543
|
continue;
|
|
12544
12544
|
case v.PROC_INST:
|
|
12545
|
-
D3 === "?" ?
|
|
12545
|
+
D3 === "?" ? m.state = v.PROC_INST_ENDING : C(D3) ? m.state = v.PROC_INST_BODY : m.procInstName += D3;
|
|
12546
12546
|
continue;
|
|
12547
12547
|
case v.PROC_INST_BODY:
|
|
12548
|
-
if (!
|
|
12548
|
+
if (!m.procInstBody && C(D3))
|
|
12549
12549
|
continue;
|
|
12550
|
-
D3 === "?" ?
|
|
12550
|
+
D3 === "?" ? m.state = v.PROC_INST_ENDING : m.procInstBody += D3;
|
|
12551
12551
|
continue;
|
|
12552
12552
|
case v.PROC_INST_ENDING:
|
|
12553
|
-
D3 === ">" ? (ee2(
|
|
12554
|
-
name:
|
|
12555
|
-
body:
|
|
12556
|
-
}),
|
|
12553
|
+
D3 === ">" ? (ee2(m, "onprocessinginstruction", {
|
|
12554
|
+
name: m.procInstName,
|
|
12555
|
+
body: m.procInstBody
|
|
12556
|
+
}), m.procInstName = m.procInstBody = "", m.state = v.TEXT) : (m.procInstBody += "?" + D3, m.state = v.PROC_INST_BODY);
|
|
12557
12557
|
continue;
|
|
12558
12558
|
case v.OPEN_TAG:
|
|
12559
|
-
_(b, D3) ?
|
|
12559
|
+
_(b, D3) ? m.tagName += D3 : (pe2(m), D3 === ">" ? ae2(m) : D3 === "/" ? m.state = v.OPEN_TAG_SLASH : (C(D3) || Q3(m, "Invalid character in tag name"), m.state = v.ATTRIB));
|
|
12560
12560
|
continue;
|
|
12561
12561
|
case v.OPEN_TAG_SLASH:
|
|
12562
|
-
D3 === ">" ? (ae2(
|
|
12562
|
+
D3 === ">" ? (ae2(m, true), L3(m)) : (Q3(m, "Forward-slash in opening tag not followed by >"), m.state = v.ATTRIB);
|
|
12563
12563
|
continue;
|
|
12564
12564
|
case v.ATTRIB:
|
|
12565
12565
|
if (C(D3))
|
|
12566
12566
|
continue;
|
|
12567
|
-
D3 === ">" ? ae2(
|
|
12567
|
+
D3 === ">" ? ae2(m) : D3 === "/" ? m.state = v.OPEN_TAG_SLASH : _(k, D3) ? (m.attribName = D3, m.attribValue = "", m.state = v.ATTRIB_NAME) : Q3(m, "Invalid attribute name");
|
|
12568
12568
|
continue;
|
|
12569
12569
|
case v.ATTRIB_NAME:
|
|
12570
|
-
D3 === "=" ?
|
|
12570
|
+
D3 === "=" ? m.state = v.ATTRIB_VALUE : D3 === ">" ? (Q3(m, "Attribute without value"), m.attribValue = m.attribName, ne2(m), ae2(m)) : C(D3) ? m.state = v.ATTRIB_NAME_SAW_WHITE : _(b, D3) ? m.attribName += D3 : Q3(m, "Invalid attribute name");
|
|
12571
12571
|
continue;
|
|
12572
12572
|
case v.ATTRIB_NAME_SAW_WHITE:
|
|
12573
12573
|
if (D3 === "=")
|
|
12574
|
-
|
|
12574
|
+
m.state = v.ATTRIB_VALUE;
|
|
12575
12575
|
else {
|
|
12576
12576
|
if (C(D3))
|
|
12577
12577
|
continue;
|
|
12578
|
-
Q3(
|
|
12579
|
-
name:
|
|
12578
|
+
Q3(m, "Attribute without value"), m.tag.attributes[m.attribName] = "", m.attribValue = "", ee2(m, "onattribute", {
|
|
12579
|
+
name: m.attribName,
|
|
12580
12580
|
value: ""
|
|
12581
|
-
}),
|
|
12581
|
+
}), m.attribName = "", D3 === ">" ? ae2(m) : _(k, D3) ? (m.attribName = D3, m.state = v.ATTRIB_NAME) : (Q3(m, "Invalid attribute name"), m.state = v.ATTRIB);
|
|
12582
12582
|
}
|
|
12583
12583
|
continue;
|
|
12584
12584
|
case v.ATTRIB_VALUE:
|
|
12585
12585
|
if (C(D3))
|
|
12586
12586
|
continue;
|
|
12587
|
-
B(D3) ? (
|
|
12587
|
+
B(D3) ? (m.q = D3, m.state = v.ATTRIB_VALUE_QUOTED) : (m.opt.unquotedAttributeValues || he2(m, "Unquoted attribute value"), m.state = v.ATTRIB_VALUE_UNQUOTED, m.attribValue = D3);
|
|
12588
12588
|
continue;
|
|
12589
12589
|
case v.ATTRIB_VALUE_QUOTED:
|
|
12590
|
-
if (D3 !==
|
|
12591
|
-
D3 === "&" ?
|
|
12590
|
+
if (D3 !== m.q) {
|
|
12591
|
+
D3 === "&" ? m.state = v.ATTRIB_VALUE_ENTITY_Q : m.attribValue += D3;
|
|
12592
12592
|
continue;
|
|
12593
12593
|
}
|
|
12594
|
-
ne2(
|
|
12594
|
+
ne2(m), m.q = "", m.state = v.ATTRIB_VALUE_CLOSED;
|
|
12595
12595
|
continue;
|
|
12596
12596
|
case v.ATTRIB_VALUE_CLOSED:
|
|
12597
|
-
C(D3) ?
|
|
12597
|
+
C(D3) ? m.state = v.ATTRIB : D3 === ">" ? ae2(m) : D3 === "/" ? m.state = v.OPEN_TAG_SLASH : _(k, D3) ? (Q3(m, "No whitespace between attributes"), m.attribName = D3, m.attribValue = "", m.state = v.ATTRIB_NAME) : Q3(m, "Invalid attribute name");
|
|
12598
12598
|
continue;
|
|
12599
12599
|
case v.ATTRIB_VALUE_UNQUOTED:
|
|
12600
12600
|
if (!I3(D3)) {
|
|
12601
|
-
D3 === "&" ?
|
|
12601
|
+
D3 === "&" ? m.state = v.ATTRIB_VALUE_ENTITY_U : m.attribValue += D3;
|
|
12602
12602
|
continue;
|
|
12603
12603
|
}
|
|
12604
|
-
ne2(
|
|
12604
|
+
ne2(m), D3 === ">" ? ae2(m) : m.state = v.ATTRIB;
|
|
12605
12605
|
continue;
|
|
12606
12606
|
case v.CLOSE_TAG:
|
|
12607
|
-
if (
|
|
12608
|
-
D3 === ">" ? L3(
|
|
12607
|
+
if (m.tagName)
|
|
12608
|
+
D3 === ">" ? L3(m) : _(b, D3) ? m.tagName += D3 : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = v.SCRIPT) : (C(D3) || Q3(m, "Invalid tagname in closing tag"), m.state = v.CLOSE_TAG_SAW_WHITE);
|
|
12609
12609
|
else {
|
|
12610
12610
|
if (C(D3))
|
|
12611
12611
|
continue;
|
|
12612
|
-
q(k, D3) ?
|
|
12612
|
+
q(k, D3) ? m.script ? (m.script += "</" + D3, m.state = v.SCRIPT) : Q3(m, "Invalid tagname in closing tag.") : m.tagName = D3;
|
|
12613
12613
|
}
|
|
12614
12614
|
continue;
|
|
12615
12615
|
case v.CLOSE_TAG_SAW_WHITE:
|
|
12616
12616
|
if (C(D3))
|
|
12617
12617
|
continue;
|
|
12618
|
-
D3 === ">" ? L3(
|
|
12618
|
+
D3 === ">" ? L3(m) : Q3(m, "Invalid characters in closing tag");
|
|
12619
12619
|
continue;
|
|
12620
12620
|
case v.TEXT_ENTITY:
|
|
12621
12621
|
case v.ATTRIB_VALUE_ENTITY_Q:
|
|
12622
12622
|
case v.ATTRIB_VALUE_ENTITY_U:
|
|
12623
12623
|
var M, W;
|
|
12624
|
-
switch (
|
|
12624
|
+
switch (m.state) {
|
|
12625
12625
|
case v.TEXT_ENTITY:
|
|
12626
12626
|
M = v.TEXT, W = "textNode";
|
|
12627
12627
|
break;
|
|
@@ -12633,18 +12633,18 @@ Actual: ` + m.attribValue
|
|
|
12633
12633
|
break;
|
|
12634
12634
|
}
|
|
12635
12635
|
if (D3 === ";") {
|
|
12636
|
-
var te2 = H3(
|
|
12637
|
-
|
|
12638
|
-
} else _(
|
|
12636
|
+
var te2 = H3(m);
|
|
12637
|
+
m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(te2) ? (m.entity = "", m.state = M, m.write(te2)) : (m[W] += te2, m.entity = "", m.state = M);
|
|
12638
|
+
} else _(m.entity.length ? R : F3, D3) ? m.entity += D3 : (Q3(m, "Invalid character in entity name"), m[W] += "&" + m.entity + D3, m.entity = "", m.state = M);
|
|
12639
12639
|
continue;
|
|
12640
12640
|
default:
|
|
12641
|
-
throw new Error(
|
|
12641
|
+
throw new Error(m, "Unknown state: " + m.state);
|
|
12642
12642
|
}
|
|
12643
|
-
return
|
|
12643
|
+
return m.position >= m.bufferCheckPosition && i3(m), m;
|
|
12644
12644
|
}
|
|
12645
12645
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
12646
12646
|
String.fromCodePoint || function() {
|
|
12647
|
-
var
|
|
12647
|
+
var p3 = String.fromCharCode, m = Math.floor, N = function() {
|
|
12648
12648
|
var D3 = 16384, y = [], x, M, W = -1, te2 = arguments.length;
|
|
12649
12649
|
if (!te2)
|
|
12650
12650
|
return "";
|
|
@@ -12653,9 +12653,9 @@ Actual: ` + m.attribValue
|
|
|
12653
12653
|
if (!isFinite(re2) || // `NaN`, `+Infinity`, or `-Infinity`
|
|
12654
12654
|
re2 < 0 || // not a valid Unicode code point
|
|
12655
12655
|
re2 > 1114111 || // not a valid Unicode code point
|
|
12656
|
-
|
|
12656
|
+
m(re2) !== re2)
|
|
12657
12657
|
throw RangeError("Invalid code point: " + re2);
|
|
12658
|
-
re2 <= 65535 ? y.push(re2) : (re2 -= 65536, x = (re2 >> 10) + 55296, M = re2 % 1024 + 56320, y.push(x, M)), (W + 1 === te2 || y.length > D3) && (Y +=
|
|
12658
|
+
re2 <= 65535 ? y.push(re2) : (re2 -= 65536, x = (re2 >> 10) + 55296, M = re2 % 1024 + 56320, y.push(x, M)), (W + 1 === te2 || y.length > D3) && (Y += p3.apply(null, y), y.length = 0);
|
|
12659
12659
|
}
|
|
12660
12660
|
return Y;
|
|
12661
12661
|
};
|
|
@@ -12955,9 +12955,9 @@ Actual: ` + m.attribValue
|
|
|
12955
12955
|
else
|
|
12956
12956
|
return o.push("/>"), o.join("");
|
|
12957
12957
|
}
|
|
12958
|
-
return o.push(
|
|
12958
|
+
return o.push(ma$2(r22, t, n + 1, false)), Re$2 = r22, Oe$2 = e, e && o.push((i3 ? Qe$3(t, n, false) : "") + "</" + s + ">"), o.join("");
|
|
12959
12959
|
}
|
|
12960
|
-
function
|
|
12960
|
+
function ma$2(r22, e, t, n) {
|
|
12961
12961
|
var i3, s, o, a = [];
|
|
12962
12962
|
for (s in r22)
|
|
12963
12963
|
if (r22.hasOwnProperty(s))
|
|
@@ -12991,11 +12991,11 @@ Actual: ` + m.attribValue
|
|
|
12991
12991
|
}
|
|
12992
12992
|
return a.join("");
|
|
12993
12993
|
}
|
|
12994
|
-
var
|
|
12994
|
+
var pa$2 = function(r22, e) {
|
|
12995
12995
|
e = ac$2(e);
|
|
12996
12996
|
var t = [];
|
|
12997
|
-
return Re$2 = r22, Oe$2 = "_root_", e.compact ? t.push(
|
|
12998
|
-
}, fc$2 =
|
|
12997
|
+
return Re$2 = r22, Oe$2 = "_root_", e.compact ? t.push(ma$2(r22, e, 0, true)) : (r22[e.declarationKey] && t.push(oa$2(r22[e.declarationKey], e, 0)), r22[e.elementsKey] && r22[e.elementsKey].length && t.push(fa$2(r22[e.elementsKey], e, 0, !t.length))), t.join("");
|
|
12998
|
+
}, fc$2 = pa$2, dc$2 = function(r22, e) {
|
|
12999
12999
|
r22 instanceof jt$3 && (r22 = r22.toString());
|
|
13000
13000
|
var t = null;
|
|
13001
13001
|
if (typeof r22 == "string")
|
|
@@ -13007,9 +13007,9 @@ Actual: ` + m.attribValue
|
|
|
13007
13007
|
else
|
|
13008
13008
|
t = r22;
|
|
13009
13009
|
return fc$2(t, e);
|
|
13010
|
-
},
|
|
13011
|
-
xml2js:
|
|
13012
|
-
xml2json:
|
|
13010
|
+
}, mc$2 = sa$2, pc$2 = sc$2, hc$2 = pa$2, gc$2 = dc$2, wc$2 = {
|
|
13011
|
+
xml2js: mc$2,
|
|
13012
|
+
xml2json: pc$2,
|
|
13013
13013
|
js2xml: hc$2,
|
|
13014
13014
|
json2xml: gc$2
|
|
13015
13015
|
};
|
|
@@ -13088,19 +13088,19 @@ Actual: ` + m.attribValue
|
|
|
13088
13088
|
ne2 = v(ne2, ce2.options);
|
|
13089
13089
|
var ae2 = ne2.strict;
|
|
13090
13090
|
ae2 && T3.test(J3) && X3("forbidden code point");
|
|
13091
|
-
var L3 = ne2.encodeEverything, H3 = ne2.useNamedReferences, V = ne2.allowUnsafeSymbols, K3 = ne2.decimal ? ee2 : ie, O3 = function(
|
|
13092
|
-
return K3(
|
|
13091
|
+
var L3 = ne2.encodeEverything, H3 = ne2.useNamedReferences, V = ne2.allowUnsafeSymbols, K3 = ne2.decimal ? ee2 : ie, O3 = function(p3) {
|
|
13092
|
+
return K3(p3.charCodeAt(0));
|
|
13093
13093
|
};
|
|
13094
|
-
return L3 ? (J3 = J3.replace(a, function(
|
|
13095
|
-
return H3 && _(c3,
|
|
13096
|
-
}), H3 && (J3 = J3.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒").replace(/fj/g, "fj")), H3 && (J3 = J3.replace(f3, function(
|
|
13097
|
-
return "&" + c3[
|
|
13098
|
-
}))) : H3 ? (V || (J3 = J3.replace(g, function(
|
|
13099
|
-
return "&" + c3[
|
|
13100
|
-
})), J3 = J3.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒"), J3 = J3.replace(f3, function(
|
|
13101
|
-
return "&" + c3[
|
|
13102
|
-
})) : V || (J3 = J3.replace(g, O3)), J3.replace(o, function(
|
|
13103
|
-
var
|
|
13094
|
+
return L3 ? (J3 = J3.replace(a, function(p3) {
|
|
13095
|
+
return H3 && _(c3, p3) ? "&" + c3[p3] + ";" : O3(p3);
|
|
13096
|
+
}), H3 && (J3 = J3.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒").replace(/fj/g, "fj")), H3 && (J3 = J3.replace(f3, function(p3) {
|
|
13097
|
+
return "&" + c3[p3] + ";";
|
|
13098
|
+
}))) : H3 ? (V || (J3 = J3.replace(g, function(p3) {
|
|
13099
|
+
return "&" + c3[p3] + ";";
|
|
13100
|
+
})), J3 = J3.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒"), J3 = J3.replace(f3, function(p3) {
|
|
13101
|
+
return "&" + c3[p3] + ";";
|
|
13102
|
+
})) : V || (J3 = J3.replace(g, O3)), J3.replace(o, function(p3) {
|
|
13103
|
+
var m = p3.charCodeAt(0), N = p3.charCodeAt(1), D3 = (m - 55296) * 1024 + N - 56320 + 65536;
|
|
13104
13104
|
return K3(D3);
|
|
13105
13105
|
}).replace(u, O3);
|
|
13106
13106
|
};
|
|
@@ -13114,11 +13114,11 @@ Actual: ` + m.attribValue
|
|
|
13114
13114
|
var he2 = function(J3, ne2) {
|
|
13115
13115
|
ne2 = v(ne2, he2.options);
|
|
13116
13116
|
var ae2 = ne2.strict;
|
|
13117
|
-
return ae2 && S.test(J3) && X3("malformed character reference"), J3.replace(A, function(L3, H3, V, K3, O3,
|
|
13117
|
+
return ae2 && S.test(J3) && X3("malformed character reference"), J3.replace(A, function(L3, H3, V, K3, O3, p3, m, N, D3) {
|
|
13118
13118
|
var y, x, M, W, te2, Y;
|
|
13119
13119
|
return H3 ? (te2 = H3, k[te2]) : V ? (te2 = V, Y = K3, Y && ne2.isAttributeValue ? (ae2 && Y == "=" && X3("`&` did not start a character reference"), L3) : (ae2 && X3(
|
|
13120
13120
|
"named character reference was not terminated by a semicolon"
|
|
13121
|
-
), b[te2] + (Y || ""))) : O3 ? (M = O3, x =
|
|
13121
|
+
), b[te2] + (Y || ""))) : O3 ? (M = O3, x = p3, ae2 && !x && X3("character reference was not terminated by a semicolon"), y = parseInt(M, 10), $(y, ae2)) : m ? (W = m, x = N, ae2 && !x && X3("character reference was not terminated by a semicolon"), y = parseInt(W, 16), $(y, ae2)) : (ae2 && X3(
|
|
13122
13122
|
"named character reference was not terminated by a semicolon"
|
|
13123
13123
|
), L3);
|
|
13124
13124
|
});
|
|
@@ -13142,8 +13142,8 @@ Actual: ` + m.attribValue
|
|
|
13142
13142
|
if (i3)
|
|
13143
13143
|
i3.exports = Q3;
|
|
13144
13144
|
else
|
|
13145
|
-
for (var
|
|
13146
|
-
_(Q3,
|
|
13145
|
+
for (var pe2 in Q3)
|
|
13146
|
+
_(Q3, pe2) && (n[pe2] = Q3[pe2]);
|
|
13147
13147
|
else
|
|
13148
13148
|
t.he = Q3;
|
|
13149
13149
|
})(We$2);
|
|
@@ -13817,29 +13817,29 @@ Actual: ` + m.attribValue
|
|
|
13817
13817
|
let n = r22.node(t);
|
|
13818
13818
|
return Da$2(n, e.node(t)), n;
|
|
13819
13819
|
}
|
|
13820
|
-
function
|
|
13820
|
+
function pt(r22, e) {
|
|
13821
13821
|
let t = e.length - 1;
|
|
13822
13822
|
t >= 0 && r22.isText && r22.sameMarkup(e[t]) ? e[t] = r22.withText(e[t].text + r22.text) : e.push(r22);
|
|
13823
13823
|
}
|
|
13824
13824
|
function Ht$2(r22, e, t, n) {
|
|
13825
13825
|
let i3 = (e || r22).node(t), s = 0, o = e ? e.index(t) : i3.childCount;
|
|
13826
|
-
r22 && (s = r22.index(t), r22.depth > t ? s++ : r22.textOffset && (
|
|
13826
|
+
r22 && (s = r22.index(t), r22.depth > t ? s++ : r22.textOffset && (pt(r22.nodeAfter, n), s++));
|
|
13827
13827
|
for (let a = s; a < o; a++)
|
|
13828
|
-
|
|
13829
|
-
e && e.depth == t && e.textOffset &&
|
|
13828
|
+
pt(i3.child(a), n);
|
|
13829
|
+
e && e.depth == t && e.textOffset && pt(e.nodeBefore, n);
|
|
13830
13830
|
}
|
|
13831
13831
|
function ht$2(r22, e) {
|
|
13832
13832
|
return r22.type.checkContent(e), r22.copy(e);
|
|
13833
13833
|
}
|
|
13834
13834
|
function Ea$2(r22, e, t, n, i3) {
|
|
13835
13835
|
let s = r22.depth > i3 && oi$2(r22, e, i3 + 1), o = n.depth > i3 && oi$2(t, n, i3 + 1), a = [];
|
|
13836
|
-
return Ht$2(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o),
|
|
13836
|
+
return Ht$2(null, r22, i3, a), s && o && e.index(i3) == t.index(i3) ? (Da$2(s, o), pt(ht$2(s, Ea$2(r22, e, t, n, i3 + 1)), a)) : (s && pt(ht$2(s, dr$1(r22, e, i3 + 1)), a), Ht$2(e, t, i3, a), o && pt(ht$2(o, dr$1(t, n, i3 + 1)), a)), Ht$2(n, null, i3, a), new Z(a);
|
|
13837
13837
|
}
|
|
13838
13838
|
function dr$1(r22, e, t) {
|
|
13839
13839
|
let n = [];
|
|
13840
13840
|
if (Ht$2(null, r22, t, n), r22.depth > t) {
|
|
13841
13841
|
let i3 = oi$2(r22, e, t + 1);
|
|
13842
|
-
|
|
13842
|
+
pt(ht$2(i3, dr$1(r22, e, t + 1)), n);
|
|
13843
13843
|
}
|
|
13844
13844
|
return Ht$2(e, null, t, n), new Z(n);
|
|
13845
13845
|
}
|
|
@@ -14516,7 +14516,7 @@ Actual: ` + m.attribValue
|
|
|
14516
14516
|
}
|
|
14517
14517
|
};
|
|
14518
14518
|
rt$3.prototype.text = void 0;
|
|
14519
|
-
let
|
|
14519
|
+
let mr$2 = class mr2 extends rt$3 {
|
|
14520
14520
|
/**
|
|
14521
14521
|
@internal
|
|
14522
14522
|
*/
|
|
@@ -14538,10 +14538,10 @@ Actual: ` + m.attribValue
|
|
|
14538
14538
|
return this.text.length;
|
|
14539
14539
|
}
|
|
14540
14540
|
mark(e) {
|
|
14541
|
-
return e == this.marks ? this : new
|
|
14541
|
+
return e == this.marks ? this : new mr2(this.type, this.attrs, this.text, e);
|
|
14542
14542
|
}
|
|
14543
14543
|
withText(e) {
|
|
14544
|
-
return e == this.text ? this : new
|
|
14544
|
+
return e == this.text ? this : new mr2(this.type, this.attrs, e, this.marks);
|
|
14545
14545
|
}
|
|
14546
14546
|
cut(e = 0, t = this.text.length) {
|
|
14547
14547
|
return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
|
|
@@ -14943,7 +14943,7 @@ Actual: ` + m.attribValue
|
|
|
14943
14943
|
t[n] = new jc$2(r22, n, e[n]);
|
|
14944
14944
|
return t;
|
|
14945
14945
|
}
|
|
14946
|
-
let
|
|
14946
|
+
let pr$2 = class pr2 {
|
|
14947
14947
|
/**
|
|
14948
14948
|
@internal
|
|
14949
14949
|
*/
|
|
@@ -15111,7 +15111,7 @@ Actual: ` + m.attribValue
|
|
|
15111
15111
|
*/
|
|
15112
15112
|
static compile(e, t) {
|
|
15113
15113
|
let n = /* @__PURE__ */ Object.create(null);
|
|
15114
|
-
e.forEach((s, o) => n[s] = new
|
|
15114
|
+
e.forEach((s, o) => n[s] = new pr2(s, t, o));
|
|
15115
15115
|
let i3 = t.spec.topNode || "doc";
|
|
15116
15116
|
if (!n[i3])
|
|
15117
15117
|
throw new RangeError("Schema is missing its top node type ('" + i3 + "')");
|
|
@@ -15193,7 +15193,7 @@ Actual: ` + m.attribValue
|
|
|
15193
15193
|
return this.excluded.indexOf(e) > -1;
|
|
15194
15194
|
}
|
|
15195
15195
|
};
|
|
15196
|
-
let
|
|
15196
|
+
let Km$1 = class Km {
|
|
15197
15197
|
/**
|
|
15198
15198
|
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
15199
15199
|
*/
|
|
@@ -15202,7 +15202,7 @@ Actual: ` + m.attribValue
|
|
|
15202
15202
|
let t = this.spec = {};
|
|
15203
15203
|
for (let i3 in e)
|
|
15204
15204
|
t[i3] = e[i3];
|
|
15205
|
-
t.nodes = Ne$3.from(e.nodes), t.marks = Ne$3.from(e.marks || {}), this.nodes =
|
|
15205
|
+
t.nodes = Ne$3.from(e.nodes), t.marks = Ne$3.from(e.marks || {}), this.nodes = pr$2.compile(this.spec.nodes, this), this.marks = vr$2.compile(this.spec.marks, this);
|
|
15206
15206
|
let n = /* @__PURE__ */ Object.create(null);
|
|
15207
15207
|
for (let i3 in this.nodes) {
|
|
15208
15208
|
if (i3 in this.marks)
|
|
@@ -15232,7 +15232,7 @@ Actual: ` + m.attribValue
|
|
|
15232
15232
|
node(e, t = null, n, i3) {
|
|
15233
15233
|
if (typeof e == "string")
|
|
15234
15234
|
e = this.nodeType(e);
|
|
15235
|
-
else if (e instanceof
|
|
15235
|
+
else if (e instanceof pr$2) {
|
|
15236
15236
|
if (e.schema != this)
|
|
15237
15237
|
throw new RangeError("Node type from different schema used (" + e.name + ")");
|
|
15238
15238
|
} else throw new RangeError("Invalid node type: " + e);
|
|
@@ -15244,7 +15244,7 @@ Actual: ` + m.attribValue
|
|
|
15244
15244
|
*/
|
|
15245
15245
|
text(e, t) {
|
|
15246
15246
|
let n = this.nodes.text;
|
|
15247
|
-
return new
|
|
15247
|
+
return new mr$2(n, n.defaultAttrs, e, ge$1.setFrom(t));
|
|
15248
15248
|
}
|
|
15249
15249
|
/**
|
|
15250
15250
|
Create a mark with the given type and attributes.
|
|
@@ -16651,7 +16651,7 @@ Actual: ` + m.attribValue
|
|
|
16651
16651
|
function Zc$2(r22, e, t) {
|
|
16652
16652
|
return (e == 0 || r22.canReplace(e, r22.childCount)) && (t == r22.childCount || r22.canReplace(0, t));
|
|
16653
16653
|
}
|
|
16654
|
-
function
|
|
16654
|
+
function Xm$1(r22) {
|
|
16655
16655
|
let t = r22.parent.content.cutByIndex(r22.startIndex, r22.endIndex);
|
|
16656
16656
|
for (let n = r22.depth; ; --n) {
|
|
16657
16657
|
let i3 = r22.$from.node(n), s = r22.$from.index(n), o = r22.$to.indexAfter(n);
|
|
@@ -16671,11 +16671,11 @@ Actual: ` + m.attribValue
|
|
|
16671
16671
|
A || i3.after(T3 + 1) < i3.end(T3) ? (A = true, h3 = Z.from(i3.node(T3).copy(h3)), S++) : f3++;
|
|
16672
16672
|
r22.step(new Je$3(u, f3, o, a, new oe$1(c3.append(h3), g, S), c3.size - g, true));
|
|
16673
16673
|
}
|
|
16674
|
-
function
|
|
16674
|
+
function Ym$1(r22, e, t = null, n = r22) {
|
|
16675
16675
|
let i3 = tf$1(r22, e), s = i3 && rf$1(n, e);
|
|
16676
|
-
return s ? i3.map(
|
|
16676
|
+
return s ? i3.map(mo$2).concat({ type: e, attrs: t }).concat(s.map(mo$2)) : null;
|
|
16677
16677
|
}
|
|
16678
|
-
function
|
|
16678
|
+
function mo$2(r22) {
|
|
16679
16679
|
return { type: r22, attrs: null };
|
|
16680
16680
|
}
|
|
16681
16681
|
function tf$1(r22, e) {
|
|
@@ -16761,7 +16761,7 @@ Actual: ` + m.attribValue
|
|
|
16761
16761
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
16762
16762
|
r22.step(new Je$3(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new oe$1(Z.from(o), 0, 0), 1, true));
|
|
16763
16763
|
}
|
|
16764
|
-
function
|
|
16764
|
+
function Qm$1(r22, e, t = 1, n) {
|
|
16765
16765
|
let i3 = r22.resolve(e), s = i3.depth - t, o = n && n[n.length - 1] || i3.parent;
|
|
16766
16766
|
if (s < 0 || i3.parent.type.spec.isolating || !i3.parent.canReplace(i3.index(), i3.parent.childCount) || !o.type.validContent(i3.parent.content.cutByIndex(i3.index(), i3.parent.childCount)))
|
|
16767
16767
|
return false;
|
|
@@ -16787,7 +16787,7 @@ Actual: ` + m.attribValue
|
|
|
16787
16787
|
}
|
|
16788
16788
|
r22.step(new Ie$3(e, e, new oe$1(s.append(o), t, t), true));
|
|
16789
16789
|
}
|
|
16790
|
-
function
|
|
16790
|
+
function Zm$1(r22, e) {
|
|
16791
16791
|
let t = r22.resolve(e), n = t.index();
|
|
16792
16792
|
return ja$2(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
|
|
16793
16793
|
}
|
|
@@ -16804,7 +16804,7 @@ Actual: ` + m.attribValue
|
|
|
16804
16804
|
function ja$2(r22, e) {
|
|
16805
16805
|
return !!(r22 && e && !r22.isLeaf && lf$2(r22, e));
|
|
16806
16806
|
}
|
|
16807
|
-
function
|
|
16807
|
+
function ep$2(r22, e, t = -1) {
|
|
16808
16808
|
let n = r22.resolve(e);
|
|
16809
16809
|
for (let i3 = n.depth; ; i3--) {
|
|
16810
16810
|
let s, o, a = n.index(i3);
|
|
@@ -16856,7 +16856,7 @@ Actual: ` + m.attribValue
|
|
|
16856
16856
|
}
|
|
16857
16857
|
return null;
|
|
16858
16858
|
}
|
|
16859
|
-
function
|
|
16859
|
+
function tp$2(r22, e, t) {
|
|
16860
16860
|
let n = r22.resolve(e);
|
|
16861
16861
|
if (!t.content.size)
|
|
16862
16862
|
return e;
|
|
@@ -16881,12 +16881,12 @@ Actual: ` + m.attribValue
|
|
|
16881
16881
|
if (e == t && !n.size)
|
|
16882
16882
|
return null;
|
|
16883
16883
|
let i3 = r22.resolve(e), s = r22.resolve(t);
|
|
16884
|
-
return Ha$2(i3, s, n) ? new Ie$3(e, t, n) : new
|
|
16884
|
+
return Ha$2(i3, s, n) ? new Ie$3(e, t, n) : new mf$1(i3, s, n).fit();
|
|
16885
16885
|
}
|
|
16886
16886
|
function Ha$2(r22, e, t) {
|
|
16887
16887
|
return !t.openStart && !t.openEnd && r22.start() == e.start() && r22.parent.canReplace(r22.index(), e.index(), t.content);
|
|
16888
16888
|
}
|
|
16889
|
-
let
|
|
16889
|
+
let mf$1 = class mf {
|
|
16890
16890
|
constructor(e, t, n) {
|
|
16891
16891
|
this.$from = e, this.$to = t, this.unplaced = n, this.frontier = [], this.placed = Z.empty;
|
|
16892
16892
|
for (let i3 = 0; i3 <= e.depth; i3++) {
|
|
@@ -17055,9 +17055,9 @@ Actual: ` + m.attribValue
|
|
|
17055
17055
|
if (o == s.childCount && !t.compatibleContent(s.type))
|
|
17056
17056
|
return null;
|
|
17057
17057
|
let a = n.fillBefore(s.content, true, o);
|
|
17058
|
-
return a && !
|
|
17058
|
+
return a && !pf$1(t, s.content, o) ? a : null;
|
|
17059
17059
|
}
|
|
17060
|
-
function
|
|
17060
|
+
function pf$1(r22, e, t) {
|
|
17061
17061
|
for (let n = t; n < e.childCount; n++)
|
|
17062
17062
|
if (!r22.allowsMarks(e.child(n).marks))
|
|
17063
17063
|
return true;
|
|
@@ -17630,9 +17630,9 @@ Actual: ` + m.attribValue
|
|
|
17630
17630
|
this.$from = e, this.$to = t;
|
|
17631
17631
|
}
|
|
17632
17632
|
};
|
|
17633
|
-
let
|
|
17633
|
+
let po$3 = false;
|
|
17634
17634
|
function ho$2(r22) {
|
|
17635
|
-
!
|
|
17635
|
+
!po$3 && !r22.parent.inlineContent && (po$3 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
|
|
17636
17636
|
}
|
|
17637
17637
|
let tt$2 = class tt2 extends ve$2 {
|
|
17638
17638
|
/**
|
|
@@ -18226,7 +18226,7 @@ Actual: ` + m.attribValue
|
|
|
18226
18226
|
}
|
|
18227
18227
|
return t;
|
|
18228
18228
|
}
|
|
18229
|
-
let
|
|
18229
|
+
let rp$2 = class rp {
|
|
18230
18230
|
/**
|
|
18231
18231
|
Create a plugin.
|
|
18232
18232
|
*/
|
|
@@ -18244,7 +18244,7 @@ Actual: ` + m.attribValue
|
|
|
18244
18244
|
function Ja$2(r22) {
|
|
18245
18245
|
return r22 in ri$1 ? r22 + "$" + ++ri$1[r22] : (ri$1[r22] = 0, r22 + "$");
|
|
18246
18246
|
}
|
|
18247
|
-
let
|
|
18247
|
+
let np$2 = class np {
|
|
18248
18248
|
/**
|
|
18249
18249
|
Create a plugin key.
|
|
18250
18250
|
*/
|
|
@@ -18265,7 +18265,7 @@ Actual: ` + m.attribValue
|
|
|
18265
18265
|
return e[this.key];
|
|
18266
18266
|
}
|
|
18267
18267
|
};
|
|
18268
|
-
const Ka$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`),
|
|
18268
|
+
const Ka$2 = (r22) => r22.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), ip$2 = (r22) => Ka$2(r22), sp$2 = Object.freeze({
|
|
18269
18269
|
RESOLVED: "resolved",
|
|
18270
18270
|
NEW: "new",
|
|
18271
18271
|
ADD: "add",
|
|
@@ -18278,7 +18278,7 @@ Actual: ` + m.attribValue
|
|
|
18278
18278
|
// Tracked changes
|
|
18279
18279
|
CHANGE_ACCEPTED: "change-accepted",
|
|
18280
18280
|
CHANGE_REJECTED: "change-rejected"
|
|
18281
|
-
}),
|
|
18281
|
+
}), op$2 = {
|
|
18282
18282
|
mounted(r22, e, t) {
|
|
18283
18283
|
const n = (i3) => {
|
|
18284
18284
|
r22.contains(i3.target) || e.value(i3);
|
|
@@ -18334,7 +18334,7 @@ Actual: ` + m.attribValue
|
|
|
18334
18334
|
if (r22 != null)
|
|
18335
18335
|
return Math.round(r22 * 6);
|
|
18336
18336
|
}
|
|
18337
|
-
const Cf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(),
|
|
18337
|
+
const Cf$1 = async (r22) => await (await fetch(r22)).arrayBuffer(), ap$2 = (r22) => {
|
|
18338
18338
|
const n = new window.DOMParser().parseFromString(r22, "text/xml").querySelectorAll("Default");
|
|
18339
18339
|
return Array.from(n).map((i3) => i3.getAttribute("Extension"));
|
|
18340
18340
|
}, Sf$1 = (r22) => (/* @__PURE__ */ new Map([
|
|
@@ -20992,7 +20992,7 @@ Actual: ` + m.attribValue
|
|
|
20992
20992
|
orderedList: vo$3,
|
|
20993
20993
|
lineBreak: od$2,
|
|
20994
20994
|
table: ad$2,
|
|
20995
|
-
tableRow:
|
|
20995
|
+
tableRow: md$2,
|
|
20996
20996
|
tableCell: hd$2,
|
|
20997
20997
|
bookmarkStart: yd$2,
|
|
20998
20998
|
fieldAnnotation: Sd$2,
|
|
@@ -21453,14 +21453,14 @@ Actual: ` + m.attribValue
|
|
|
21453
21453
|
elements: t
|
|
21454
21454
|
};
|
|
21455
21455
|
}
|
|
21456
|
-
function
|
|
21457
|
-
const e = Ot$1(r22), t =
|
|
21456
|
+
function md$2(r22) {
|
|
21457
|
+
const e = Ot$1(r22), t = pd$2(r22.node);
|
|
21458
21458
|
return t.elements.length && e.unshift(t), {
|
|
21459
21459
|
name: "w:tr",
|
|
21460
21460
|
elements: e
|
|
21461
21461
|
};
|
|
21462
21462
|
}
|
|
21463
|
-
function
|
|
21463
|
+
function pd$2(r22) {
|
|
21464
21464
|
const { attrs: e } = r22, t = [], { rowHeight: n, rowHeightType: i3 } = e;
|
|
21465
21465
|
if (n) {
|
|
21466
21466
|
const s = { "w:val": Fe$2(n) };
|
|
@@ -22065,16 +22065,16 @@ Actual: ` + m.attribValue
|
|
|
22065
22065
|
const { fontSize: $, fonts: ie = {} } = v, ee2 = ie.ascii;
|
|
22066
22066
|
if (S && (q.colwidth = [S], q.widthUnit = "px"), T3 && (q.widthType = T3), C && (q.colspan = Number(C)), F3 && (q.background = F3), q.verticalAlign = _, $ && (q.fontSize = $), ee2 && (q.fontFamily = ee2.ascii), n && (q.borders = { ...n }), g && (q.borders = Object.assign(q.borders || {}, g)), k && k["w:val"] === "restart") {
|
|
22067
22067
|
const X3 = t.elements.filter((J3) => J3.name === "w:tr"), ce2 = X3.findIndex((J3) => J3 === e), he2 = X3.slice(ce2 + 1);
|
|
22068
|
-
let Q3 = e.elements.filter((J3) => J3.name === "w:tc").findIndex((J3) => J3 === r22),
|
|
22068
|
+
let Q3 = e.elements.filter((J3) => J3.name === "w:tc").findIndex((J3) => J3 === r22), pe2 = 1;
|
|
22069
22069
|
for (let J3 of he2) {
|
|
22070
22070
|
const ne2 = J3.elements.findIndex((V) => V.name === "w:tc"), ae2 = J3.elements[ne2 + Q3];
|
|
22071
22071
|
if (!ae2) break;
|
|
22072
22072
|
const L3 = Fo$2(ae2), { attributes: H3 } = L3 || {};
|
|
22073
22073
|
if (!L3 && !H3 || H3 && H3["w:val"] === "restart")
|
|
22074
22074
|
break;
|
|
22075
|
-
|
|
22075
|
+
pe2++, J3.elements.splice(ne2 + Q3, 1);
|
|
22076
22076
|
}
|
|
22077
|
-
q.rowspan =
|
|
22077
|
+
q.rowspan = pe2;
|
|
22078
22078
|
}
|
|
22079
22079
|
return {
|
|
22080
22080
|
type: "tableCell",
|
|
@@ -22403,22 +22403,22 @@ Actual: ` + m.attribValue
|
|
|
22403
22403
|
return { nodes: [], consumed: 0 };
|
|
22404
22404
|
const s = e[0], o = { ...r22, nodes: s.elements };
|
|
22405
22405
|
let a = t.handler(o)?.filter((c3) => c3) || [];
|
|
22406
|
-
const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 =
|
|
22406
|
+
const u = s.elements?.some((c3) => c3.name === "w:rPr"), f3 = em$1(i3, n);
|
|
22407
22407
|
if (u) {
|
|
22408
22408
|
const { marks: c3 = [], attributes: g = {} } = Pt$2(s), h3 = c3.find((T3) => T3.type === "textStyle"), S = h3 && Object.keys(h3.attrs).length > 0;
|
|
22409
22409
|
f3.marks && !S && c3.push(...f3.marks), s.marks && c3.push(...s.marks), a = a.map((T3) => ({ ...T3, marks: di$2(c3), attributes: g }));
|
|
22410
22410
|
} else f3.marks && (a = a.map((c3) => ({ ...c3, marks: di$2(f3.marks) })));
|
|
22411
22411
|
return { nodes: a, consumed: 1 };
|
|
22412
|
-
},
|
|
22412
|
+
}, em$1 = (r22, e) => {
|
|
22413
22413
|
const t = r22?.["word/styles.xml"];
|
|
22414
22414
|
if (!t)
|
|
22415
22415
|
return {};
|
|
22416
22416
|
const i3 = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
|
|
22417
22417
|
return i3 ? Pt$2(i3) : {};
|
|
22418
|
-
},
|
|
22418
|
+
}, tm$1 = {
|
|
22419
22419
|
handlerName: "runNodeHandler",
|
|
22420
22420
|
handler: Zd$2
|
|
22421
|
-
},
|
|
22421
|
+
}, rm$1 = (r22) => {
|
|
22422
22422
|
const { nodes: e, insideTrackChange: t } = r22;
|
|
22423
22423
|
if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
|
|
22424
22424
|
return { nodes: [], consumed: 0 };
|
|
@@ -22439,64 +22439,64 @@ Actual: ` + m.attribValue
|
|
|
22439
22439
|
],
|
|
22440
22440
|
consumed: 1
|
|
22441
22441
|
};
|
|
22442
|
-
},
|
|
22442
|
+
}, nm$1 = {
|
|
22443
22443
|
handlerName: "textNodeHandler",
|
|
22444
|
-
handler:
|
|
22445
|
-
},
|
|
22446
|
-
function
|
|
22444
|
+
handler: rm$1
|
|
22445
|
+
}, im$1 = (r22) => Object.prototype.toString.call(r22) === "[object RegExp]";
|
|
22446
|
+
function sm$1(r22, e, t = { strict: true }) {
|
|
22447
22447
|
const n = Object.keys(e);
|
|
22448
|
-
return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] :
|
|
22448
|
+
return n.length ? n.every((i3) => t.strict ? e[i3] === r22[i3] : im$1(e[i3]) ? e[i3].test(r22[i3]) : e[i3] === r22[i3]) : true;
|
|
22449
22449
|
}
|
|
22450
22450
|
const fu$2 = (r22) => {
|
|
22451
22451
|
if (!r22 || !Array.isArray(r22))
|
|
22452
22452
|
return r22;
|
|
22453
22453
|
let e = [], t = null;
|
|
22454
22454
|
for (let n of r22)
|
|
22455
|
-
n.type === "text" ? t &&
|
|
22455
|
+
n.type === "text" ? t && om$1(t, n) ? t = {
|
|
22456
22456
|
...t,
|
|
22457
22457
|
text: t.text += n.text
|
|
22458
22458
|
} : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
|
|
22459
22459
|
return t && e.push(t), e;
|
|
22460
|
-
},
|
|
22460
|
+
}, om$1 = (r22, e) => {
|
|
22461
22461
|
if (!r22 || !e) return false;
|
|
22462
22462
|
let t = r22.marks ?? [], n = e.marks ?? [];
|
|
22463
22463
|
if (t.length !== n.length)
|
|
22464
22464
|
return false;
|
|
22465
22465
|
for (let i3 = 0; i3 < t.length; i3++)
|
|
22466
|
-
if (t[i3].type !== n[i3].type || !
|
|
22466
|
+
if (t[i3].type !== n[i3].type || !am$1(t[i3].attrs, n[i3].attrs))
|
|
22467
22467
|
return false;
|
|
22468
22468
|
return true;
|
|
22469
|
-
},
|
|
22469
|
+
}, am$1 = (r22 = {}, e = {}) => sm$1(r22, e);
|
|
22470
22470
|
function du$2(r22, e, t) {
|
|
22471
22471
|
this.name = r22, this.message = e || "", this.details = t;
|
|
22472
22472
|
const n = new Error(this.message);
|
|
22473
22473
|
this.stack = n.stack, n.name = this.name;
|
|
22474
22474
|
}
|
|
22475
22475
|
du$2.prototype = Object.create(Error.prototype);
|
|
22476
|
-
const
|
|
22476
|
+
const um$1 = (r22) => {
|
|
22477
22477
|
const { nodes: e, lists: t } = r22;
|
|
22478
22478
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
22479
22479
|
return { nodes: [], consumed: 0 };
|
|
22480
22480
|
const n = je$3(e[0]), i3 = gu$2(n.elements);
|
|
22481
22481
|
n.elements = i3;
|
|
22482
22482
|
const s = n.elements.find((o) => o.name === "w:pPr");
|
|
22483
|
-
if (
|
|
22483
|
+
if (mi$2(n)) {
|
|
22484
22484
|
const o = je$3(e), a = [];
|
|
22485
22485
|
let u = o.shift();
|
|
22486
|
-
for (; u &&
|
|
22486
|
+
for (; u && mi$2(u, true); )
|
|
22487
22487
|
a.push(u), u = o.shift(), u?.elements && !cu$2(u.elements) && (a.push(u), u = o.shift());
|
|
22488
22488
|
return {
|
|
22489
|
-
nodes: [
|
|
22489
|
+
nodes: [mu$2({ listItems: a, params: r22, originalPpr: s })],
|
|
22490
22490
|
consumed: a.filter((c3) => c3.seen).length,
|
|
22491
22491
|
lists: t
|
|
22492
22492
|
};
|
|
22493
22493
|
} else
|
|
22494
22494
|
return { nodes: [], consumed: 0, lists: t };
|
|
22495
|
-
},
|
|
22495
|
+
}, lm$1 = {
|
|
22496
22496
|
handlerName: "listHandler",
|
|
22497
|
-
handler:
|
|
22497
|
+
handler: um$1
|
|
22498
22498
|
};
|
|
22499
|
-
function
|
|
22499
|
+
function mu$2({
|
|
22500
22500
|
listItems: r22,
|
|
22501
22501
|
originalPpr: e,
|
|
22502
22502
|
params: t,
|
|
@@ -22523,9 +22523,9 @@ Actual: ` + m.attribValue
|
|
|
22523
22523
|
O3 && g[g.length - 1]?.content.push(O3), I3.seen = true;
|
|
22524
22524
|
continue;
|
|
22525
22525
|
}
|
|
22526
|
-
const { attributes: _, elements: q, marks: v = [] } = Pt$2(I3), $ = v.find((O3) => O3.type === "textStyle"), { listType: ie, listOrderingType: ee2, ilvl: X3, listrPrs: ce2, listpPrs: he2, start: se, lvlText: Q3, lvlJc:
|
|
22526
|
+
const { attributes: _, elements: q, marks: v = [] } = Pt$2(I3), $ = v.find((O3) => O3.type === "textStyle"), { listType: ie, listOrderingType: ee2, ilvl: X3, listrPrs: ce2, listpPrs: he2, start: se, lvlText: Q3, lvlJc: pe2, numId: J3 } = mm$1(_, n, u);
|
|
22527
22527
|
S = ee2;
|
|
22528
|
-
const ne2 = parseInt(X3), ae2 = i3 === ne2 && J3 === s, L3 =
|
|
22528
|
+
const ne2 = parseInt(X3), ae2 = i3 === ne2 && J3 === s, L3 = dm$1({
|
|
22529
22529
|
firstListId: J3,
|
|
22530
22530
|
secondListId: s,
|
|
22531
22531
|
level: ne2,
|
|
@@ -22537,26 +22537,26 @@ Actual: ` + m.attribValue
|
|
|
22537
22537
|
if (ae2 && !V) {
|
|
22538
22538
|
c3[s][i3]++, h3 = ie, I3.seen = true;
|
|
22539
22539
|
const O3 = [];
|
|
22540
|
-
let
|
|
22540
|
+
let p3 = {
|
|
22541
22541
|
type: "paragraph",
|
|
22542
22542
|
content: f3.handler({ ...t, nodes: [_.paragraphProperties, ...q] })?.filter((x) => x)
|
|
22543
22543
|
};
|
|
22544
|
-
|
|
22545
|
-
...
|
|
22544
|
+
p3.content && (p3 = {
|
|
22545
|
+
...p3,
|
|
22546
22546
|
attrs: {
|
|
22547
22547
|
textAlign: $?.attrs.textAlign || null,
|
|
22548
22548
|
rsidRDefault: _?.["w:rsidRDefault"] || null
|
|
22549
22549
|
},
|
|
22550
|
-
content: fu$2(
|
|
22551
|
-
}), O3.push(
|
|
22552
|
-
let
|
|
22553
|
-
if (S !== "bullet" && (
|
|
22550
|
+
content: fu$2(p3.content)
|
|
22551
|
+
}), O3.push(p3), R = n;
|
|
22552
|
+
let m = [];
|
|
22553
|
+
if (S !== "bullet" && (m = [...o, c3[s][n]]), !o.length && i3 > 0) {
|
|
22554
22554
|
const x = c3[s];
|
|
22555
22555
|
if (x) {
|
|
22556
22556
|
const M = [];
|
|
22557
22557
|
Object.keys(x).forEach((W) => {
|
|
22558
22558
|
M.push(x[W]);
|
|
22559
|
-
}),
|
|
22559
|
+
}), m = M;
|
|
22560
22560
|
}
|
|
22561
22561
|
}
|
|
22562
22562
|
const D3 = I3.elements.find((x) => x.name === "w:pPr")?.elements.find((x) => x.name === "w:ind");
|
|
@@ -22564,14 +22564,14 @@ Actual: ` + m.attribValue
|
|
|
22564
22564
|
const x = {};
|
|
22565
22565
|
D3.attributes["w:left"] !== void 0 && (x.left = xe$1(D3.attributes["w:left"])), D3.attributes["w:right"] !== void 0 && (x.right = xe$1(D3.attributes["w:right"])), D3.attributes["w:firstLine"] !== void 0 && (x.firstLine = xe$1(D3.attributes["w:firstLine"])), D3.attributes["w:hanging"] !== void 0 && (x.hanging = xe$1(D3.attributes["w:hanging"])), K3.indent = x;
|
|
22566
22566
|
}
|
|
22567
|
-
he2 && (K3.listParagraphProperties = he2), ce2 && (K3.listRunProperties = ce2), K3.textStyle = $, K3.order = se, K3.lvlText = Q3, K3.lvlJc = $?.attrs.textAlign, K3.listLevel =
|
|
22567
|
+
he2 && (K3.listParagraphProperties = he2), ce2 && (K3.listRunProperties = ce2), K3.textStyle = $, K3.order = se, K3.lvlText = Q3, K3.lvlJc = $?.attrs.textAlign, K3.listLevel = m, K3.listNumberingType = ee2, K3.attributes = {
|
|
22568
22568
|
parentAttributes: I3?.attributes || null,
|
|
22569
22569
|
originalInlineRunProps: e?.elements?.find((x) => x.name === "w:rPr")
|
|
22570
|
-
}, K3.numId = J3, u && (K3.spacing =
|
|
22570
|
+
}, K3.numId = J3, u && (K3.spacing = pu$2(I3, u));
|
|
22571
22571
|
const y = ko$2(O3, K3, []);
|
|
22572
22572
|
g.push(y);
|
|
22573
22573
|
} else if (V) {
|
|
22574
|
-
const O3 = [...o, c3[s][n]],
|
|
22574
|
+
const O3 = [...o, c3[s][n]], p3 = mu$2({
|
|
22575
22575
|
listItems: r22.slice(B),
|
|
22576
22576
|
originalPpr: e,
|
|
22577
22577
|
params: t,
|
|
@@ -22581,9 +22581,9 @@ Actual: ` + m.attribValue
|
|
|
22581
22581
|
path: O3,
|
|
22582
22582
|
isNested: true
|
|
22583
22583
|
});
|
|
22584
|
-
R =
|
|
22585
|
-
const
|
|
22586
|
-
|
|
22584
|
+
R = p3.lastNestedListLevel, delete p3.lastNestedListLevel;
|
|
22585
|
+
const m = g[g.length - 1];
|
|
22586
|
+
m ? m.content.push(p3) : g.push(ko$2([p3], K3, []));
|
|
22587
22587
|
} else if (J3) {
|
|
22588
22588
|
R = n, n > 0 && I3.elements[0].elements.find((O3) => O3.name === "w:numPr") && (c3[s][n] = 0);
|
|
22589
22589
|
break;
|
|
@@ -22607,7 +22607,7 @@ Actual: ` + m.attribValue
|
|
|
22607
22607
|
};
|
|
22608
22608
|
return a && (C.lastNestedListLevel = R), C;
|
|
22609
22609
|
}
|
|
22610
|
-
function
|
|
22610
|
+
function mi$2(r22, e = false) {
|
|
22611
22611
|
const { elements: t } = r22, n = t?.find((a) => a.name === "w:pPr");
|
|
22612
22612
|
if (!n) return false;
|
|
22613
22613
|
const s = n.elements?.find((a) => a.name === "w:pStyle")?.attributes["w:val"] === "ListParagraph", o = n.elements?.find((a) => a.name === "w:numPr");
|
|
@@ -22621,7 +22621,7 @@ Actual: ` + m.attribValue
|
|
|
22621
22621
|
marks: t
|
|
22622
22622
|
};
|
|
22623
22623
|
}
|
|
22624
|
-
const
|
|
22624
|
+
const cm$1 = [
|
|
22625
22625
|
"decimal",
|
|
22626
22626
|
// eg: 1, 2, 3, 4, 5, ...
|
|
22627
22627
|
"decimalZero",
|
|
@@ -22646,7 +22646,7 @@ Actual: ` + m.attribValue
|
|
|
22646
22646
|
// eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
|
|
22647
22647
|
"none"
|
|
22648
22648
|
// No bullet
|
|
22649
|
-
],
|
|
22649
|
+
], fm$1 = [
|
|
22650
22650
|
"bullet",
|
|
22651
22651
|
// A standard bullet point (•)
|
|
22652
22652
|
"square",
|
|
@@ -22655,7 +22655,7 @@ Actual: ` + m.attribValue
|
|
|
22655
22655
|
// Circle bullets (◦)
|
|
22656
22656
|
"disc"
|
|
22657
22657
|
// Disc bullets (●)
|
|
22658
|
-
],
|
|
22658
|
+
], dm$1 = ({ firstListId: r22, secondListId: e, level: t, pStyleId: n, docx: i3 }) => {
|
|
22659
22659
|
const { numFmt: s, lvlText: o, lvlJc: a } = yr$2(r22, t, n, i3), {
|
|
22660
22660
|
numFmt: u,
|
|
22661
22661
|
lvlText: f3,
|
|
@@ -22685,7 +22685,7 @@ Actual: ` + m.attribValue
|
|
|
22685
22685
|
}
|
|
22686
22686
|
const a = o.elements, u = a.filter((I3) => I3.name === "w:abstractNum"), g = a.filter((I3) => I3.name === "w:num").find((I3) => I3.attributes["w:numId"] === r22)?.elements[0].attributes["w:val"], h3 = u?.find(
|
|
22687
22687
|
(I3) => I3.attributes["w:abstractNumId"] === g
|
|
22688
|
-
), S =
|
|
22688
|
+
), S = pm$1(h3, e), A = h3?.elements?.find((I3) => I3.name === "w:numStyleLink")?.attributes["w:val"];
|
|
22689
22689
|
if (A) {
|
|
22690
22690
|
const I3 = No$2(A, n);
|
|
22691
22691
|
return yr$2(I3.numId, e, null, n);
|
|
@@ -22693,7 +22693,7 @@ Actual: ` + m.attribValue
|
|
|
22693
22693
|
const k = S?.elements?.find((I3) => I3.name === "w:start")?.attributes["w:val"], b = S?.elements?.find((I3) => I3.name === "w:numFmt")?.attributes["w:val"], F3 = S?.elements?.find((I3) => I3.name === "w:lvlText").attributes["w:val"], R = S?.elements?.find((I3) => I3.name === "w:lvlJc").attributes["w:val"], C = S?.elements?.find((I3) => I3.name === "w:pPr"), B = S?.elements?.find((I3) => I3.name === "w:rPr");
|
|
22694
22694
|
return { start: k, numFmt: b, lvlText: F3, lvlJc: R, pPr: C, rPr: B };
|
|
22695
22695
|
};
|
|
22696
|
-
function
|
|
22696
|
+
function mm$1(r22, e, t) {
|
|
22697
22697
|
if (!r22) return;
|
|
22698
22698
|
const { paragraphProperties: n = {} } = r22, { elements: i3 = [] } = n, s = i3.find((B) => B.name === "w:numPr");
|
|
22699
22699
|
if (!s)
|
|
@@ -22707,10 +22707,10 @@ Actual: ` + m.attribValue
|
|
|
22707
22707
|
rPr: b
|
|
22708
22708
|
} = yr$2(f3, e, g, t);
|
|
22709
22709
|
let F3, R;
|
|
22710
|
-
k && (F3 =
|
|
22710
|
+
k && (F3 = hm$1(k)), b && (R = gm$1(b));
|
|
22711
22711
|
let C;
|
|
22712
|
-
if (
|
|
22713
|
-
else if (
|
|
22712
|
+
if (fm$1.includes(S?.toLowerCase())) C = "bulletList";
|
|
22713
|
+
else if (cm$1.includes(S)) C = "orderedList";
|
|
22714
22714
|
else
|
|
22715
22715
|
throw new du$2("ListParsingError", `Unknown list type found during import: ${S}`, {
|
|
22716
22716
|
listOrderingType: S,
|
|
@@ -22724,10 +22724,10 @@ Actual: ` + m.attribValue
|
|
|
22724
22724
|
});
|
|
22725
22725
|
return { listType: C, listOrderingType: S, ilvl: a, numId: f3, listrPrs: R, listpPrs: F3, start: h3, lvlText: T3, lvlJc: A };
|
|
22726
22726
|
}
|
|
22727
|
-
function
|
|
22727
|
+
function pm$1(r22, e) {
|
|
22728
22728
|
return r22?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
|
|
22729
22729
|
}
|
|
22730
|
-
function
|
|
22730
|
+
function hm$1(r22) {
|
|
22731
22731
|
const { elements: e } = r22, t = ["w:ind", "w:jc", "w:tabs"], n = {};
|
|
22732
22732
|
return e && e.forEach((i3) => {
|
|
22733
22733
|
t.includes(i3.name);
|
|
@@ -22737,7 +22737,7 @@ Actual: ` + m.attribValue
|
|
|
22737
22737
|
});
|
|
22738
22738
|
}), n;
|
|
22739
22739
|
}
|
|
22740
|
-
function
|
|
22740
|
+
function gm$1(r22) {
|
|
22741
22741
|
const { elements: e } = r22, t = [
|
|
22742
22742
|
"w:rFonts",
|
|
22743
22743
|
"w:b",
|
|
@@ -22768,14 +22768,14 @@ Actual: ` + m.attribValue
|
|
|
22768
22768
|
});
|
|
22769
22769
|
}), n;
|
|
22770
22770
|
}
|
|
22771
|
-
const
|
|
22771
|
+
const wm$1 = (r22) => {
|
|
22772
22772
|
const { nodes: e, docx: t, nodeListHandler: n, filename: i3, lists: s } = r22;
|
|
22773
22773
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
22774
22774
|
return { nodes: [], consumed: 0 };
|
|
22775
22775
|
const o = je$3(e[0]);
|
|
22776
22776
|
let a;
|
|
22777
22777
|
const u = gu$2(o.elements);
|
|
22778
|
-
if (o.elements = u,
|
|
22778
|
+
if (o.elements = u, mi$2(o))
|
|
22779
22779
|
return { nodes: [], consumed: 0 };
|
|
22780
22780
|
const f3 = n.handlerEntities.find(
|
|
22781
22781
|
(F3) => F3.handlerName === "standardNodeHandler"
|
|
@@ -22786,7 +22786,7 @@ Actual: ` + m.attribValue
|
|
|
22786
22786
|
g.nodes.length === 1 && (a = g.nodes[0]);
|
|
22787
22787
|
const h3 = o.elements?.find((F3) => F3.name === "w:pPr"), S = h3?.elements?.find((F3) => F3.name === "w:pStyle"), T3 = h3?.elements?.find((F3) => F3.name === "w:rPr");
|
|
22788
22788
|
if (T3 && (a.attrs.marksAttrs = Bt$2(T3, [])), S && (a.attrs.styleId = S.attributes["w:val"]), t) {
|
|
22789
|
-
const F3 =
|
|
22789
|
+
const F3 = ym$1(o, t, a.attrs.styleId);
|
|
22790
22790
|
a.attrs.indent || (a.attrs.indent = {}), F3.left && (a.attrs.indent.left = F3.left), F3.right && (a.attrs.indent.right = F3.right), F3.firstLine && (a.attrs.indent.firstLine = F3.firstLine), F3.hanging && (a.attrs.indent.hanging = F3.hanging), F3.textIndent && (a.attrs.textIndent = `${F3.textIndent}in`);
|
|
22791
22791
|
}
|
|
22792
22792
|
const A = h3?.elements?.find((F3) => F3.name === "w:jc");
|
|
@@ -22796,13 +22796,13 @@ Actual: ` + m.attribValue
|
|
|
22796
22796
|
const b = h3?.elements?.find((F3) => F3.name === "w:keepNext");
|
|
22797
22797
|
if (b && b.attributes && (a.attrs.keepNext = b.attributes["w:val"]), t) {
|
|
22798
22798
|
const F3 = o.attributes?.["w:rsidRDefault"];
|
|
22799
|
-
a.attrs.spacing =
|
|
22799
|
+
a.attrs.spacing = pu$2(o, t, a.attrs.styleId, a.attrs.marksAttrs), a.attrs.rsidRDefault = F3;
|
|
22800
22800
|
}
|
|
22801
22801
|
return a.attrs.filename = i3, a && a.content && (a = {
|
|
22802
22802
|
...a,
|
|
22803
22803
|
content: fu$2(a.content)
|
|
22804
22804
|
}), { nodes: a ? [a] : [], consumed: 1 };
|
|
22805
|
-
},
|
|
22805
|
+
}, ym$1 = (r22, e, t = "") => {
|
|
22806
22806
|
const n = {
|
|
22807
22807
|
left: 0,
|
|
22808
22808
|
right: 0,
|
|
@@ -22813,7 +22813,7 @@ Actual: ` + m.attribValue
|
|
|
22813
22813
|
u && (n.left = xe$1(u)), f3 && (n.right = xe$1(f3)), c3 && (n.firstLine = xe$1(c3)), g && (n.hanging = xe$1(g));
|
|
22814
22814
|
const h3 = u - parseInt(g || 0) || 0;
|
|
22815
22815
|
return h3 && (n.textIndent = qe$1(h3)), n;
|
|
22816
|
-
},
|
|
22816
|
+
}, pu$2 = (r22, e, t = "", n = []) => {
|
|
22817
22817
|
const i3 = {
|
|
22818
22818
|
lineSpaceAfter: 0,
|
|
22819
22819
|
lineSpaceBefore: 0,
|
|
@@ -22844,11 +22844,11 @@ Actual: ` + m.attribValue
|
|
|
22844
22844
|
spacing: k || T3 || A,
|
|
22845
22845
|
indent: R || b || F3
|
|
22846
22846
|
};
|
|
22847
|
-
},
|
|
22847
|
+
}, bm$1 = {
|
|
22848
22848
|
handlerName: "paragraphNodeHandler",
|
|
22849
|
-
handler:
|
|
22849
|
+
handler: wm$1
|
|
22850
22850
|
};
|
|
22851
|
-
function
|
|
22851
|
+
function xm$1(r22, e) {
|
|
22852
22852
|
const t = { lineSpaceBefore: null, lineSpaceAfter: null };
|
|
22853
22853
|
if (!r22) return t;
|
|
22854
22854
|
const n = e["word/styles.xml"];
|
|
@@ -22858,7 +22858,7 @@ Actual: ` + m.attribValue
|
|
|
22858
22858
|
return Q3 && Q3["w:styleId"] === r22;
|
|
22859
22859
|
}), o = s[0];
|
|
22860
22860
|
if (!o) return t;
|
|
22861
|
-
const a = s.find((se) => se.elements.find((
|
|
22861
|
+
const a = s.find((se) => se.elements.find((pe2) => pe2.name === "w:qFormat")), u = s.find(
|
|
22862
22862
|
(se) => se.elements.some((Q3) => Q3.name === "w:name")
|
|
22863
22863
|
)?.elements.find((se) => se.name === "w:name")?.attributes["w:val"], f3 = o.elements.find((se) => se.name === "w:pPr"), c3 = f3?.elements?.find((se) => se.name === "w:spacing"), g = f3?.elements?.find((se) => se.name === "w:jc"), h3 = f3?.elements?.find((se) => se.name === "w:ind");
|
|
22864
22864
|
let S, T3, A;
|
|
@@ -22885,14 +22885,14 @@ Actual: ` + m.attribValue
|
|
|
22885
22885
|
indent: { leftIndent: b, rightIndent: F3, firstLine: R }
|
|
22886
22886
|
};
|
|
22887
22887
|
return ce2.forEach((se) => {
|
|
22888
|
-
const { type: Q3, attrs:
|
|
22888
|
+
const { type: Q3, attrs: pe2 } = se;
|
|
22889
22889
|
if (Q3 === "textStyle") {
|
|
22890
|
-
Object.entries(
|
|
22890
|
+
Object.entries(pe2).forEach(([J3, ne2]) => {
|
|
22891
22891
|
he2[Ka$2(J3)] = ne2;
|
|
22892
22892
|
});
|
|
22893
22893
|
return;
|
|
22894
22894
|
}
|
|
22895
|
-
he2[Q3] =
|
|
22895
|
+
he2[Q3] = pe2;
|
|
22896
22896
|
}), {
|
|
22897
22897
|
attrs: ee2,
|
|
22898
22898
|
styles: he2
|
|
@@ -22935,7 +22935,7 @@ Actual: ` + m.attribValue
|
|
|
22935
22935
|
}
|
|
22936
22936
|
}), e;
|
|
22937
22937
|
}
|
|
22938
|
-
const
|
|
22938
|
+
const Am$1 = (r22) => nodeListHandler.handler({ ...r22, nodes: node.elements }), Dm$1 = (r22) => {
|
|
22939
22939
|
const { nodes: e } = r22;
|
|
22940
22940
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
22941
22941
|
return { nodes: [], consumed: 0 };
|
|
@@ -22950,14 +22950,14 @@ Actual: ` + m.attribValue
|
|
|
22950
22950
|
consumed: 1
|
|
22951
22951
|
};
|
|
22952
22952
|
}, Io$2 = {
|
|
22953
|
-
"Table of Contents":
|
|
22954
|
-
},
|
|
22953
|
+
"Table of Contents": Am$1
|
|
22954
|
+
}, Em$1 = (r22) => {
|
|
22955
22955
|
const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 } = r22;
|
|
22956
22956
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
22957
22957
|
return { nodes: [], consumed: 0 };
|
|
22958
|
-
const s = e[0], o = s.elements.find((R) => R.name === "w:sdtPr"), a = s.elements.find((R) => R.name === "w:sdtContent"), { attrs: u, marks: f3 } =
|
|
22958
|
+
const s = e[0], o = s.elements.find((R) => R.name === "w:sdtPr"), a = s.elements.find((R) => R.name === "w:sdtContent"), { attrs: u, marks: f3 } = vm$1(a);
|
|
22959
22959
|
if (o?.elements.find((R) => R.name === "w:docPartObj"))
|
|
22960
|
-
return
|
|
22960
|
+
return Dm$1({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i3 });
|
|
22961
22961
|
const g = o?.elements.find((R) => R.name === "w:alias"), h3 = o?.elements.find((R) => R.name === "w:tag"), S = o?.elements.find((R) => R.name === "w:fieldType")?.attributes["w:val"], T3 = o?.elements.find((R) => R.name === "w:fieldTypeShort")?.attributes["w:val"], A = o?.elements.find((R) => R.name === "w:fieldColor")?.attributes["w:val"], k = o?.elements.find((R) => R.name === "w:fieldMultipleImage")?.attributes["w:val"], b = {
|
|
22962
22962
|
type: T3,
|
|
22963
22963
|
fieldId: h3?.attributes["w:val"],
|
|
@@ -22981,7 +22981,7 @@ Actual: ` + m.attribValue
|
|
|
22981
22981
|
nodes: [F3],
|
|
22982
22982
|
consumed: 1
|
|
22983
22983
|
};
|
|
22984
|
-
},
|
|
22984
|
+
}, vm$1 = (r22 = {}) => {
|
|
22985
22985
|
const t = r22.elements?.find((a) => a.name === "w:r")?.elements?.find((a) => a.name === "w:rPr");
|
|
22986
22986
|
if (!t) return {};
|
|
22987
22987
|
const i3 = Bt$2(t, []) || [], s = [];
|
|
@@ -23003,10 +23003,10 @@ Actual: ` + m.attribValue
|
|
|
23003
23003
|
attrs: o,
|
|
23004
23004
|
marks: i3
|
|
23005
23005
|
};
|
|
23006
|
-
},
|
|
23006
|
+
}, Cm$1 = {
|
|
23007
23007
|
handlerName: "annotationNodeHandler",
|
|
23008
|
-
handler:
|
|
23009
|
-
},
|
|
23008
|
+
handler: Em$1
|
|
23009
|
+
}, Sm$1 = (r22) => {
|
|
23010
23010
|
const { nodes: e, docx: t, nodeListHandler: n } = r22;
|
|
23011
23011
|
if (!e || e.length === 0)
|
|
23012
23012
|
return { nodes: [], consumed: 0 };
|
|
@@ -23033,7 +23033,7 @@ Actual: ` + m.attribValue
|
|
|
23033
23033
|
consumed: 0,
|
|
23034
23034
|
unhandled: true
|
|
23035
23035
|
};
|
|
23036
|
-
const f3 = [], c3 =
|
|
23036
|
+
const f3 = [], c3 = Tm$1(i3);
|
|
23037
23037
|
if (a && a.length) {
|
|
23038
23038
|
const h3 = a.map((A) => (A.marks || (A.marks = []), A.marks.push(...u), A)), S = { ...r22, nodes: h3, parentStyleId: c3 }, T3 = n.handler(S);
|
|
23039
23039
|
f3.push(...T3);
|
|
@@ -23044,13 +23044,13 @@ Actual: ` + m.attribValue
|
|
|
23044
23044
|
attrs: { ...o },
|
|
23045
23045
|
marks: []
|
|
23046
23046
|
}], consumed: 1 };
|
|
23047
|
-
},
|
|
23047
|
+
}, Tm$1 = (r22) => {
|
|
23048
23048
|
const t = r22.elements?.find((n) => n.name === "w:pPr")?.elements?.find((n) => n.name === "w:pStyle");
|
|
23049
23049
|
return t ? t.attributes["w:val"] : null;
|
|
23050
|
-
},
|
|
23050
|
+
}, Fm$1 = {
|
|
23051
23051
|
handlerName: "standardNodeHandler",
|
|
23052
|
-
handler:
|
|
23053
|
-
},
|
|
23052
|
+
handler: Sm$1
|
|
23053
|
+
}, Bm$1 = (r22) => {
|
|
23054
23054
|
const { nodes: e } = r22;
|
|
23055
23055
|
return e.length === 0 || e[0].name !== "w:br" ? { nodes: [], consumed: 0 } : {
|
|
23056
23056
|
nodes: [{
|
|
@@ -23058,10 +23058,10 @@ Actual: ` + m.attribValue
|
|
|
23058
23058
|
}],
|
|
23059
23059
|
consumed: 1
|
|
23060
23060
|
};
|
|
23061
|
-
},
|
|
23061
|
+
}, km$1 = {
|
|
23062
23062
|
handlerName: "lineBreakNodeHandler",
|
|
23063
|
-
handler:
|
|
23064
|
-
},
|
|
23063
|
+
handler: Bm$1
|
|
23064
|
+
}, Nm$1 = (r22) => {
|
|
23065
23065
|
const { nodes: e, nodeListHandler: t } = r22;
|
|
23066
23066
|
if (e.length === 0 || e[0].name !== "w:bookmarkStart")
|
|
23067
23067
|
return { nodes: [], consumed: 0 };
|
|
@@ -23072,10 +23072,10 @@ Actual: ` + m.attribValue
|
|
|
23072
23072
|
return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
|
|
23073
23073
|
const s = { ...r22, nodes: [n] }, o = i3(s);
|
|
23074
23074
|
return o.nodes.length === 1 && (o.nodes[0].attrs.name = n.attributes["w:name"], o.nodes[0].attrs.id = n.attributes["w:id"]), o;
|
|
23075
|
-
},
|
|
23075
|
+
}, Im$1 = {
|
|
23076
23076
|
handlerName: "bookmarkNodeHandler",
|
|
23077
|
-
handler:
|
|
23078
|
-
},
|
|
23077
|
+
handler: Nm$1
|
|
23078
|
+
}, Rm$1 = (r22) => {
|
|
23079
23079
|
const { nodes: e } = r22;
|
|
23080
23080
|
if (e.length === 0 || e[0].name !== "w:tab")
|
|
23081
23081
|
return { nodes: [], consumed: 0 };
|
|
@@ -23087,11 +23087,11 @@ Actual: ` + m.attribValue
|
|
|
23087
23087
|
},
|
|
23088
23088
|
content: []
|
|
23089
23089
|
}], consumed: 1 };
|
|
23090
|
-
},
|
|
23090
|
+
}, Om$1 = {
|
|
23091
23091
|
handlerName: "runNodeHandler",
|
|
23092
|
-
handler:
|
|
23092
|
+
handler: Rm$1
|
|
23093
23093
|
};
|
|
23094
|
-
function
|
|
23094
|
+
function Pm$1({ docx: r22 }) {
|
|
23095
23095
|
const e = Ii$2(), t = r22["word/comments.xml"];
|
|
23096
23096
|
if (!t) return;
|
|
23097
23097
|
const { elements: n } = t;
|
|
@@ -23117,16 +23117,16 @@ Actual: ` + m.attribValue
|
|
|
23117
23117
|
trackedDeletedText: F3
|
|
23118
23118
|
};
|
|
23119
23119
|
});
|
|
23120
|
-
return
|
|
23120
|
+
return Lm$1({ docx: r22, comments: s });
|
|
23121
23121
|
}
|
|
23122
|
-
const
|
|
23122
|
+
const Lm$1 = ({ docx: r22, comments: e }) => {
|
|
23123
23123
|
const t = r22["word/commentsExtended.xml"];
|
|
23124
23124
|
if (!t) return [];
|
|
23125
23125
|
const { elements: n } = t, { elements: i3 } = n[0], s = i3.filter((o) => o.name === "w15:commentEx");
|
|
23126
23126
|
return e.map((o) => {
|
|
23127
23127
|
const a = s.find((h3) => h3.attributes["w15:paraId"] === o.paraId);
|
|
23128
23128
|
if (!a) return { ...o };
|
|
23129
|
-
const { isDone: u, paraIdParent: f3 } =
|
|
23129
|
+
const { isDone: u, paraIdParent: f3 } = _m$1(a);
|
|
23130
23130
|
let c3;
|
|
23131
23131
|
return f3 && (c3 = e.find((h3) => h3.paraId === f3)), {
|
|
23132
23132
|
...o,
|
|
@@ -23134,10 +23134,10 @@ Actual: ` + m.attribValue
|
|
|
23134
23134
|
parentCommentId: c3?.commentId
|
|
23135
23135
|
};
|
|
23136
23136
|
});
|
|
23137
|
-
},
|
|
23137
|
+
}, _m$1 = (r22) => {
|
|
23138
23138
|
const { attributes: e } = r22, t = e["w15:paraId"], n = e["w15:done"] === "1", i3 = e["w15:paraIdParent"];
|
|
23139
23139
|
return { paraId: t, isDone: n, paraIdParent: i3 };
|
|
23140
|
-
},
|
|
23140
|
+
}, qm$1 = (r22, e, t) => {
|
|
23141
23141
|
const n = je$3(Nd$2(r22));
|
|
23142
23142
|
if (!n) return null;
|
|
23143
23143
|
if (e?.telemetry) {
|
|
@@ -23163,7 +23163,7 @@ Actual: ` + m.attribValue
|
|
|
23163
23163
|
}
|
|
23164
23164
|
const i3 = Ii$2(), s = n.elements[0].elements.find((o) => o.name === "w:body");
|
|
23165
23165
|
if (s) {
|
|
23166
|
-
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f3 =
|
|
23166
|
+
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f3 = Pm$1({ docx: r22 }), c3 = {}, h3 = {
|
|
23167
23167
|
type: "doc",
|
|
23168
23168
|
content: i3.handler({
|
|
23169
23169
|
nodes: u,
|
|
@@ -23186,35 +23186,35 @@ Actual: ` + m.attribValue
|
|
|
23186
23186
|
), {
|
|
23187
23187
|
pmDoc: h3,
|
|
23188
23188
|
savedTagsToRestore: o,
|
|
23189
|
-
pageStyles:
|
|
23189
|
+
pageStyles: Um$1(o, r22, e, t),
|
|
23190
23190
|
comments: f3,
|
|
23191
|
-
linkedStyles:
|
|
23192
|
-
numbering:
|
|
23191
|
+
linkedStyles: jm$1(r22),
|
|
23192
|
+
numbering: Vm$1(r22)
|
|
23193
23193
|
};
|
|
23194
23194
|
}
|
|
23195
23195
|
return null;
|
|
23196
23196
|
}, Ii$2 = () => {
|
|
23197
23197
|
const r22 = [
|
|
23198
|
-
|
|
23199
|
-
|
|
23200
|
-
|
|
23201
|
-
|
|
23202
|
-
|
|
23203
|
-
|
|
23204
|
-
|
|
23198
|
+
tm$1,
|
|
23199
|
+
bm$1,
|
|
23200
|
+
lm$1,
|
|
23201
|
+
nm$1,
|
|
23202
|
+
km$1,
|
|
23203
|
+
Cm$1,
|
|
23204
|
+
Im$1,
|
|
23205
23205
|
Qd$2,
|
|
23206
23206
|
Ud$2,
|
|
23207
23207
|
Xd$2,
|
|
23208
23208
|
Rd$2,
|
|
23209
|
-
|
|
23210
|
-
|
|
23209
|
+
Om$1,
|
|
23210
|
+
Fm$1
|
|
23211
23211
|
//this should be the last one, bcs this parses everything!!!
|
|
23212
23212
|
];
|
|
23213
23213
|
return {
|
|
23214
|
-
handler:
|
|
23214
|
+
handler: Mm$1(r22),
|
|
23215
23215
|
handlerEntities: r22
|
|
23216
23216
|
};
|
|
23217
|
-
},
|
|
23217
|
+
}, Mm$1 = (r22) => {
|
|
23218
23218
|
const e = (n, i3, s, o) => !n || i3 < 0 || i3 >= n.length ? {
|
|
23219
23219
|
elementIndex: i3,
|
|
23220
23220
|
error: "index_out_of_bounds",
|
|
@@ -23290,7 +23290,7 @@ Actual: ` + m.attribValue
|
|
|
23290
23290
|
};
|
|
23291
23291
|
return t;
|
|
23292
23292
|
};
|
|
23293
|
-
function
|
|
23293
|
+
function Um$1(r22, e, t, n) {
|
|
23294
23294
|
const i3 = r22.elements?.find((o) => o.name === "w:sectPr"), s = {};
|
|
23295
23295
|
return i3?.elements?.forEach((o) => {
|
|
23296
23296
|
const { name: a, attributes: u } = o;
|
|
@@ -23336,7 +23336,7 @@ Actual: ` + m.attribValue
|
|
|
23336
23336
|
}
|
|
23337
23337
|
}), s;
|
|
23338
23338
|
}
|
|
23339
|
-
function
|
|
23339
|
+
function jm$1(r22) {
|
|
23340
23340
|
const e = r22["word/styles.xml"];
|
|
23341
23341
|
if (!e) return [];
|
|
23342
23342
|
const { elements: t } = e.elements[0], n = t.filter((o) => o.name === "w:style");
|
|
@@ -23346,7 +23346,7 @@ Actual: ` + m.attribValue
|
|
|
23346
23346
|
});
|
|
23347
23347
|
const s = [];
|
|
23348
23348
|
return n.forEach((o) => {
|
|
23349
|
-
const a = o.attributes["w:styleId"], u =
|
|
23349
|
+
const a = o.attributes["w:styleId"], u = xm$1(a, r22), f3 = {
|
|
23350
23350
|
id: o.attributes["w:styleId"],
|
|
23351
23351
|
type: o.attributes["w:type"],
|
|
23352
23352
|
definition: u,
|
|
@@ -23355,7 +23355,7 @@ Actual: ` + m.attribValue
|
|
|
23355
23355
|
s.push(f3);
|
|
23356
23356
|
}), s;
|
|
23357
23357
|
}
|
|
23358
|
-
function
|
|
23358
|
+
function Hm$1(r22) {
|
|
23359
23359
|
if (!r22) return null;
|
|
23360
23360
|
const e = je$3(r22), { elements: t } = e.elements[0];
|
|
23361
23361
|
return Object.keys(Ao$2).forEach((n) => {
|
|
@@ -23377,9 +23377,9 @@ Actual: ` + m.attribValue
|
|
|
23377
23377
|
let k, b;
|
|
23378
23378
|
e === "header" ? (k = n.headers, b = n.headerIds) : e === "footer" && (k = n.footers, b = n.footerIds), k[f3] = { type: "doc", content: [...A] }, b[u] = f3;
|
|
23379
23379
|
}
|
|
23380
|
-
function
|
|
23380
|
+
function Vm$1(r22) {
|
|
23381
23381
|
let e = r22["word/numbering.xml"];
|
|
23382
|
-
e || (e = Za$2);
|
|
23382
|
+
(!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = Za$2);
|
|
23383
23383
|
const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i3 = t.filter((a) => a.name === "w:num"), s = {};
|
|
23384
23384
|
n.forEach((a) => {
|
|
23385
23385
|
const u = Number(a.attributes["w:abstractNumId"]);
|
|
@@ -23402,7 +23402,7 @@ Actual: ` + m.attribValue
|
|
|
23402
23402
|
}
|
|
23403
23403
|
parseFromXml() {
|
|
23404
23404
|
this.docx?.forEach((e) => {
|
|
23405
|
-
this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] =
|
|
23405
|
+
this.convertedXml[e.name] = this.parseXmlToJson(e.content), e.name === "word/document.xml" && (this.documentAttributes = this.convertedXml[e.name].elements[0]?.attributes), e.name === "word/styles.xml" && (this.convertedXml[e.name] = Hm$1(this.convertedXml[e.name]));
|
|
23406
23406
|
}), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
|
|
23407
23407
|
}
|
|
23408
23408
|
parseXmlToJson(e) {
|
|
@@ -23421,7 +23421,7 @@ Actual: ` + m.attribValue
|
|
|
23421
23421
|
return;
|
|
23422
23422
|
}
|
|
23423
23423
|
}
|
|
23424
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23424
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.16") {
|
|
23425
23425
|
const n = "docProps/custom.xml";
|
|
23426
23426
|
e[n] || (e[n] = Au$2());
|
|
23427
23427
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23488,7 +23488,7 @@ Actual: ` + m.attribValue
|
|
|
23488
23488
|
}
|
|
23489
23489
|
getSchema(e) {
|
|
23490
23490
|
this.getDocumentInternalId();
|
|
23491
|
-
const t =
|
|
23491
|
+
const t = qm$1({ ...this.convertedXml, media: this.media }, this, e);
|
|
23492
23492
|
return t ? (this.savedTagsToRestore.push({ ...t.savedTagsToRestore }), this.pageStyles = t.pageStyles, this.numbering = t.numbering, this.comments = t.comments, this.linkedStyles = t.linkedStyles, t.pmDoc) : null;
|
|
23493
23493
|
}
|
|
23494
23494
|
schemaToXml(e, t = false) {
|
|
@@ -23517,7 +23517,7 @@ Actual: ` + m.attribValue
|
|
|
23517
23517
|
});
|
|
23518
23518
|
S = { ...A }, T3 = k;
|
|
23519
23519
|
}
|
|
23520
|
-
return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, bu$2).call(this, [...c3.relationships, ...T3]),
|
|
23520
|
+
return this.convertedXml = { ...this.convertedXml, ...S }, Ke$1(this, it$1, bu$2).call(this, [...c3.relationships, ...T3]), zm$1(this.convertedXml), Ke$1(this, it$1, wu$2).call(this, c3), h3;
|
|
23521
23521
|
}
|
|
23522
23522
|
exportToXmlJson({
|
|
23523
23523
|
data: e,
|
|
@@ -23627,7 +23627,7 @@ Actual: ` + m.attribValue
|
|
|
23627
23627
|
"w:tcPr": "tableCellProperties"
|
|
23628
23628
|
})), Lt$2(dt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
23629
23629
|
let kt$3 = dt;
|
|
23630
|
-
function
|
|
23630
|
+
function zm$1(r22) {
|
|
23631
23631
|
const e = "docProps/custom.xml";
|
|
23632
23632
|
r22[e] || (r22[e] = Au$2());
|
|
23633
23633
|
const n = r22[e].elements.find((a) => a.name === "Properties");
|
|
@@ -23646,7 +23646,7 @@ Actual: ` + m.attribValue
|
|
|
23646
23646
|
function Au$2() {
|
|
23647
23647
|
return Nf$2;
|
|
23648
23648
|
}
|
|
23649
|
-
function Du$2(r22 = 2, e = "0.9.
|
|
23649
|
+
function Du$2(r22 = 2, e = "0.9.16") {
|
|
23650
23650
|
return {
|
|
23651
23651
|
type: "element",
|
|
23652
23652
|
name: "property",
|
|
@@ -25900,7 +25900,7 @@ Actual: ` + m.attribValue
|
|
|
25900
25900
|
if (!s.setImmediate) {
|
|
25901
25901
|
var h3, m, v, c3, b = 1, i3 = {}, d = false, n = s.document, u = Object.getPrototypeOf && Object.getPrototypeOf(s);
|
|
25902
25902
|
u = u && u.setTimeout ? u : s, h3 = {}.toString.call(s.process) === "[object process]" ? function(S) {
|
|
25903
|
-
|
|
25903
|
+
me$1.nextTick(function() {
|
|
25904
25904
|
p3(S);
|
|
25905
25905
|
});
|
|
25906
25906
|
} : function() {
|
|
@@ -26033,7 +26033,7 @@ Actual: ` + m.attribValue
|
|
|
26033
26033
|
async updateContentTypes(nt2, _) {
|
|
26034
26034
|
const R = Object.keys(_).map((c3) => this.getFileExtension(c3)), y = "[Content_Types].xml", l = await nt2.file(y).async("string");
|
|
26035
26035
|
let s = "";
|
|
26036
|
-
const r =
|
|
26036
|
+
const r = ap$2(l), h3 = /* @__PURE__ */ new Set();
|
|
26037
26037
|
for (let c3 of R) {
|
|
26038
26038
|
if (r.includes(c3) || h3.has(c3)) continue;
|
|
26039
26039
|
const b = `<Default Extension="${c3}" ContentType="image/${c3}"/>`;
|
|
@@ -26476,12 +26476,12 @@ Actual: ` + m.attribValue
|
|
|
26476
26476
|
}
|
|
26477
26477
|
return Jo$1;
|
|
26478
26478
|
}
|
|
26479
|
-
const wt$1 = new
|
|
26479
|
+
const wt$1 = new np$2("history"), Bf$1 = new np$2("closeHistory");
|
|
26480
26480
|
function _f$1(t = {}) {
|
|
26481
26481
|
return t = {
|
|
26482
26482
|
depth: t.depth || 100,
|
|
26483
26483
|
newGroupDelay: t.newGroupDelay || 500
|
|
26484
|
-
}, new
|
|
26484
|
+
}, new rp$2({
|
|
26485
26485
|
key: wt$1,
|
|
26486
26486
|
state: {
|
|
26487
26487
|
init() {
|
|
@@ -28995,7 +28995,7 @@ Actual: ` + m.attribValue
|
|
|
28995
28995
|
if (!s)
|
|
28996
28996
|
return;
|
|
28997
28997
|
n.preventDefault();
|
|
28998
|
-
let l = s ?
|
|
28998
|
+
let l = s ? tp$2(t.state.doc, i3.pos, s) : i3.pos;
|
|
28999
28999
|
l == null && (l = i3.pos);
|
|
29000
29000
|
let c3 = t.state.tr;
|
|
29001
29001
|
if (a) {
|
|
@@ -30467,7 +30467,7 @@ Actual: ` + m.attribValue
|
|
|
30467
30467
|
remove: t.length - n - r,
|
|
30468
30468
|
insert: e.slice(n, e.length - r)
|
|
30469
30469
|
};
|
|
30470
|
-
}, im = om, te = new
|
|
30470
|
+
}, im = om, te = new np$2("y-sync"), zt$2 = new np$2("y-undo"), Wr$1 = new np$2("yjs-cursor"), sm = Math.random, am = (t) => t[pr$1(sm() * t.length)], Va$1 = (t) => t === void 0 ? null : t;
|
|
30471
30471
|
class lm {
|
|
30472
30472
|
constructor() {
|
|
30473
30473
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -30491,13 +30491,13 @@ Actual: ` + m.attribValue
|
|
|
30491
30491
|
typeof localStorage < "u" && localStorage && (Vc$1 = localStorage, cm = false);
|
|
30492
30492
|
} catch {
|
|
30493
30493
|
}
|
|
30494
|
-
const dm = Vc$1, Nn$2 = typeof
|
|
30494
|
+
const dm = Vc$1, Nn$2 = typeof me$1 < "u" && me$1.release && /node|io\.js/.test(me$1.release.name) && Object.prototype.toString.call(typeof me$1 < "u" ? me$1 : 0) === "[object process]", jc$1 = typeof window < "u" && typeof document < "u" && !Nn$2;
|
|
30495
30495
|
let Qe$2;
|
|
30496
30496
|
const um = () => {
|
|
30497
30497
|
if (Qe$2 === void 0)
|
|
30498
30498
|
if (Nn$2) {
|
|
30499
30499
|
Qe$2 = ro$1();
|
|
30500
|
-
const t =
|
|
30500
|
+
const t = me$1.argv;
|
|
30501
30501
|
let e = null;
|
|
30502
30502
|
for (let n = 0; n < t.length; n++) {
|
|
30503
30503
|
const r = t[n];
|
|
@@ -30511,11 +30511,11 @@ Actual: ` + m.attribValue
|
|
|
30511
30511
|
}
|
|
30512
30512
|
})) : Qe$2 = ro$1();
|
|
30513
30513
|
return Qe$2;
|
|
30514
|
-
}, Ni$1 = (t) => um().has(t), Ei$1 = (t) => Va$1(Nn$2 ?
|
|
30514
|
+
}, Ni$1 = (t) => um().has(t), Ei$1 = (t) => Va$1(Nn$2 ? me$1.env[t.toUpperCase().replaceAll("-", "_")] : dm.getItem(t)), Hc$1 = (t) => Ni$1("--" + t) || Ei$1(t) !== null;
|
|
30515
30515
|
Hc$1("production");
|
|
30516
|
-
const fm = Nn$2 && em(
|
|
30516
|
+
const fm = Nn$2 && em(me$1.env.FORCE_COLOR, ["true", "1", "2"]);
|
|
30517
30517
|
fm || !Ni$1("--no-colors") && // @todo deprecate --no-colors
|
|
30518
|
-
!Hc$1("no-color") && (!Nn$2 ||
|
|
30518
|
+
!Hc$1("no-color") && (!Nn$2 || me$1.stdout.isTTY) && (!Nn$2 || Ni$1("--color") || Ei$1("COLORTERM") !== null || (Ei$1("TERM") || "").includes("color"));
|
|
30519
30519
|
const pm = (
|
|
30520
30520
|
/** @type {Document} */
|
|
30521
30521
|
typeof document < "u" ? document : {}
|
|
@@ -30686,7 +30686,7 @@ Actual: ` + m.attribValue
|
|
|
30686
30686
|
mapping: i3
|
|
30687
30687
|
} = {}) => {
|
|
30688
30688
|
let s = false;
|
|
30689
|
-
const a = new Lm(t, i3), l = new
|
|
30689
|
+
const a = new Lm(t, i3), l = new rp$2({
|
|
30690
30690
|
props: {
|
|
30691
30691
|
editable: (c3) => {
|
|
30692
30692
|
const d = te.getState(c3);
|
|
@@ -31483,7 +31483,7 @@ Actual: ` + m.attribValue
|
|
|
31483
31483
|
cursorBuilder: n = Jm,
|
|
31484
31484
|
selectionBuilder: r = Ym,
|
|
31485
31485
|
getSelection: o = (s) => s.selection
|
|
31486
|
-
} = {}, i3 = "cursor") => new
|
|
31486
|
+
} = {}, i3 = "cursor") => new rp$2({
|
|
31487
31487
|
key: Wr$1,
|
|
31488
31488
|
state: {
|
|
31489
31489
|
init(s, a) {
|
|
@@ -31556,7 +31556,7 @@ Actual: ` + m.attribValue
|
|
|
31556
31556
|
const e = zt$2.getState(t).undoManager;
|
|
31557
31557
|
if (e != null)
|
|
31558
31558
|
return e.redo(), true;
|
|
31559
|
-
}, tg = /* @__PURE__ */ new Set(["paragraph"]), ng = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, rg = ({ protectedNodes: t = tg, trackedOrigins: e = [], undoManager: n = null } = {}) => new
|
|
31559
|
+
}, tg = /* @__PURE__ */ new Set(["paragraph"]), ng = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, rg = ({ protectedNodes: t = tg, trackedOrigins: e = [], undoManager: n = null } = {}) => new rp$2({
|
|
31560
31560
|
key: zt$2,
|
|
31561
31561
|
state: {
|
|
31562
31562
|
init: (r, o) => {
|
|
@@ -31769,7 +31769,7 @@ Actual: ` + m.attribValue
|
|
|
31769
31769
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
31770
31770
|
}
|
|
31771
31771
|
function ug(t) {
|
|
31772
|
-
return new
|
|
31772
|
+
return new rp$2({ props: { handleKeyDown: Os(t) } });
|
|
31773
31773
|
}
|
|
31774
31774
|
function Os(t) {
|
|
31775
31775
|
let e = dg(t);
|
|
@@ -32009,7 +32009,7 @@ Actual: ` + m.attribValue
|
|
|
32009
32009
|
static createSchemaByExtensions(e, n) {
|
|
32010
32010
|
var c3, d;
|
|
32011
32011
|
const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i3 = r.find((u) => D(u, "topNode"))?.name, s = E$1.getAttributesFromExtensions(e), a = P(c3 = ar2, Bn$1, Yc$1).call(c3, r, s, n), l = P(d = ar2, Bn$1, Gc$1).call(d, o, s, n);
|
|
32012
|
-
return new
|
|
32012
|
+
return new Km$1({ topNode: i3, nodes: a, marks: l });
|
|
32013
32013
|
}
|
|
32014
32014
|
};
|
|
32015
32015
|
Bn$1 = /* @__PURE__ */ new WeakSet(), Yc$1 = function(e, n, r) {
|
|
@@ -32231,7 +32231,7 @@ Actual: ` + m.attribValue
|
|
|
32231
32231
|
}
|
|
32232
32232
|
}
|
|
32233
32233
|
const yg = (t, e) => {
|
|
32234
|
-
if (
|
|
32234
|
+
if (im$1(e))
|
|
32235
32235
|
return e.exec(t);
|
|
32236
32236
|
const n = e(t);
|
|
32237
32237
|
if (!n)
|
|
@@ -32284,8 +32284,8 @@ Actual: ` + m.attribValue
|
|
|
32284
32284
|
}), a.dispatch(p3), c3 = true);
|
|
32285
32285
|
}), c3;
|
|
32286
32286
|
}, bg = ({ editor: t, rules: e }) => {
|
|
32287
|
-
const n = new
|
|
32288
|
-
key: new
|
|
32287
|
+
const n = new rp$2({
|
|
32288
|
+
key: new np$2("inputRulesPlugin"),
|
|
32289
32289
|
state: {
|
|
32290
32290
|
init() {
|
|
32291
32291
|
return null;
|
|
@@ -32526,7 +32526,7 @@ Actual: ` + m.attribValue
|
|
|
32526
32526
|
return false;
|
|
32527
32527
|
let o = nd$1(r);
|
|
32528
32528
|
if (!o) {
|
|
32529
|
-
let s = r.blockRange(), a = s &&
|
|
32529
|
+
let s = r.blockRange(), a = s && Xm$1(s);
|
|
32530
32530
|
return a == null ? false : (e && e(t.tr.lift(s, a).scrollIntoView()), true);
|
|
32531
32531
|
}
|
|
32532
32532
|
let i3 = o.nodeBefore;
|
|
@@ -32629,10 +32629,10 @@ Actual: ` + m.attribValue
|
|
|
32629
32629
|
const Ag = (t, e) => {
|
|
32630
32630
|
let n = t.selection, r = n instanceof Ge$1, o;
|
|
32631
32631
|
if (r) {
|
|
32632
|
-
if (n.node.isTextblock || !
|
|
32632
|
+
if (n.node.isTextblock || !Zm$1(t.doc, n.from))
|
|
32633
32633
|
return false;
|
|
32634
32634
|
o = n.from;
|
|
32635
|
-
} else if (o =
|
|
32635
|
+
} else if (o = ep$2(t.doc, n.from, -1), o == null)
|
|
32636
32636
|
return false;
|
|
32637
32637
|
if (e) {
|
|
32638
32638
|
let i3 = t.tr.join(o);
|
|
@@ -32642,10 +32642,10 @@ Actual: ` + m.attribValue
|
|
|
32642
32642
|
}, Og = (t, e) => {
|
|
32643
32643
|
let n = t.selection, r;
|
|
32644
32644
|
if (n instanceof Ge$1) {
|
|
32645
|
-
if (n.node.isTextblock || !
|
|
32645
|
+
if (n.node.isTextblock || !Zm$1(t.doc, n.to))
|
|
32646
32646
|
return false;
|
|
32647
32647
|
r = n.to;
|
|
32648
|
-
} else if (r =
|
|
32648
|
+
} else if (r = ep$2(t.doc, n.to, 1), r == null)
|
|
32649
32649
|
return false;
|
|
32650
32650
|
return e && e(t.tr.join(r).scrollIntoView()), true;
|
|
32651
32651
|
}, sd$1 = (t, e) => {
|
|
@@ -32691,17 +32691,17 @@ Actual: ` + m.attribValue
|
|
|
32691
32691
|
return false;
|
|
32692
32692
|
if (n.depth > 1 && n.after() != n.end(-1)) {
|
|
32693
32693
|
let i3 = n.before();
|
|
32694
|
-
if (
|
|
32694
|
+
if (Qm$1(t.doc, i3))
|
|
32695
32695
|
return e && e(t.tr.split(i3).scrollIntoView()), true;
|
|
32696
32696
|
}
|
|
32697
|
-
let r = n.blockRange(), o = r &&
|
|
32697
|
+
let r = n.blockRange(), o = r && Xm$1(r);
|
|
32698
32698
|
return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
|
|
32699
32699
|
};
|
|
32700
32700
|
function Dg(t) {
|
|
32701
32701
|
return (e, n) => {
|
|
32702
32702
|
let { $from: r, $to: o } = e.selection;
|
|
32703
32703
|
if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
|
|
32704
|
-
return !r.parentOffset || !
|
|
32704
|
+
return !r.parentOffset || !Qm$1(e.doc, r.pos) ? false : (n && n(e.tr.split(r.pos).scrollIntoView()), true);
|
|
32705
32705
|
if (!r.depth)
|
|
32706
32706
|
return false;
|
|
32707
32707
|
let i3 = [], s, a, l = false, c3 = false;
|
|
@@ -32716,8 +32716,8 @@ Actual: ` + m.attribValue
|
|
|
32716
32716
|
}
|
|
32717
32717
|
let d = e.tr;
|
|
32718
32718
|
(e.selection instanceof tt$2 || e.selection instanceof at$3) && d.deleteSelection();
|
|
32719
|
-
let u = d.mapping.map(r.pos), f3 =
|
|
32720
|
-
if (f3 || (i3[0] = a ? { type: a } : null, f3 =
|
|
32719
|
+
let u = d.mapping.map(r.pos), f3 = Qm$1(d.doc, u, i3.length, i3);
|
|
32720
|
+
if (f3 || (i3[0] = a ? { type: a } : null, f3 = Qm$1(d.doc, u, i3.length, i3)), d.split(u, i3.length, i3), !l && c3 && r.node(s).type != a) {
|
|
32721
32721
|
let p3 = d.mapping.map(r.before(s)), h3 = d.doc.resolve(p3);
|
|
32722
32722
|
a && r.node(s - 1).canReplaceWith(h3.index(), h3.index() + 1, a) && d.setNodeMarkup(d.mapping.map(r.before(s)), a);
|
|
32723
32723
|
}
|
|
@@ -32727,7 +32727,7 @@ Actual: ` + m.attribValue
|
|
|
32727
32727
|
const Ng = Dg(), Eg = (t, e) => (e && e(t.tr.setSelection(new at$3(t.doc))), true);
|
|
32728
32728
|
function Pg(t, e, n) {
|
|
32729
32729
|
let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
|
|
32730
|
-
return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock ||
|
|
32730
|
+
return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || Zm$1(t.doc, e.pos)) ? false : (n && n(t.tr.join(e.pos).scrollIntoView()), true);
|
|
32731
32731
|
}
|
|
32732
32732
|
function cd$1(t, e, n, r) {
|
|
32733
32733
|
let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
|
|
@@ -32741,11 +32741,11 @@ Actual: ` + m.attribValue
|
|
|
32741
32741
|
h3 = Z.from(s[b].create(null, h3));
|
|
32742
32742
|
h3 = Z.from(o.copy(h3));
|
|
32743
32743
|
let m = t.tr.step(new Je$3(e.pos - 1, p3, e.pos, p3, new oe$1(h3, 1, 0), s.length, true)), g = m.doc.resolve(p3 + 2 * s.length);
|
|
32744
|
-
g.nodeAfter && g.nodeAfter.type == o.type &&
|
|
32744
|
+
g.nodeAfter && g.nodeAfter.type == o.type && Zm$1(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
|
32745
32745
|
}
|
|
32746
32746
|
return true;
|
|
32747
32747
|
}
|
|
32748
|
-
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$2.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u &&
|
|
32748
|
+
let d = i3.type.spec.isolating || r > 0 && l ? null : ve$2.findFrom(e, 1), u = d && d.$from.blockRange(d.$to), f3 = u && Xm$1(u);
|
|
32749
32749
|
if (f3 != null && f3 >= e.depth)
|
|
32750
32750
|
return n && n(t.tr.lift(u, f3).scrollIntoView()), true;
|
|
32751
32751
|
if (c3 && En$1(i3, "start", true) && En$1(o, "end")) {
|
|
@@ -32838,14 +32838,14 @@ Actual: ` + m.attribValue
|
|
|
32838
32838
|
}, Lg = ({ keepMarks: t = true } = {}) => (e) => {
|
|
32839
32839
|
const { tr: n, state: r, dispatch: o, editor: i3 } = e, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = E$1.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
|
|
32840
32840
|
if (s instanceof Ge$1 && s.node.isBlock)
|
|
32841
|
-
return !l.parentOffset || !
|
|
32841
|
+
return !l.parentOffset || !Qm$1(a, l.pos) ? false : (o && (t && qa$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
|
|
32842
32842
|
if (!l.parent.isBlock) return false;
|
|
32843
32843
|
if (o) {
|
|
32844
32844
|
const f3 = c3.parentOffset === c3.parent.content.size;
|
|
32845
32845
|
s instanceof tt$2 && n.deleteSelection();
|
|
32846
32846
|
const p3 = l.depth === 0 ? null : ud$1(l.node(-1).contentMatchAt(l.indexAfter(-1)));
|
|
32847
|
-
let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m =
|
|
32848
|
-
if (!h3 && !m &&
|
|
32847
|
+
let h3 = f3 && p3 ? [{ type: p3, attrs: u }] : void 0, m = Qm$1(n.doc, n.mapping.map(l.pos), 1, h3);
|
|
32848
|
+
if (!h3 && !m && Qm$1(n.doc, n.mapping.map(l.pos), 1, p3 ? [{ type: p3 }] : void 0) && (m = true, h3 = p3 ? [{ type: p3, attrs: u }] : void 0), m && (n.split(n.mapping.map(l.pos), 1, h3), p3 && !f3 && !l.parentOffset && l.parent.type !== p3)) {
|
|
32849
32849
|
const g = n.mapping.map(l.before()), b = n.doc.resolve(g);
|
|
32850
32850
|
l.node(-1).canReplaceWith(b.index(), b.index() + 1, p3) && n.setNodeMarkup(n.mapping.map(l.before()), p3);
|
|
32851
32851
|
}
|
|
@@ -32904,7 +32904,7 @@ Actual: ` + m.attribValue
|
|
|
32904
32904
|
return $g(r, n, l);
|
|
32905
32905
|
};
|
|
32906
32906
|
function zi$1(t, e, n = {}) {
|
|
32907
|
-
return t.find((r) => r.type === e &&
|
|
32907
|
+
return t.find((r) => r.type === e && sm$1(r.attrs, n));
|
|
32908
32908
|
}
|
|
32909
32909
|
function jg(t, e, n = {}) {
|
|
32910
32910
|
return !!zi$1(t, e, n);
|
|
@@ -32943,7 +32943,7 @@ Actual: ` + m.attribValue
|
|
|
32943
32943
|
function ko$1(t, e, n = {}) {
|
|
32944
32944
|
const { empty: r, ranges: o } = t.selection, i3 = e ? St$1(e, t.schema) : null;
|
|
32945
32945
|
if (r)
|
|
32946
|
-
return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) =>
|
|
32946
|
+
return !!(t.storedMarks || t.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => sm$1(u.attrs, n, { strict: false }));
|
|
32947
32947
|
let s = 0;
|
|
32948
32948
|
const a = [];
|
|
32949
32949
|
if (o.forEach(({ $from: u, $to: f3 }) => {
|
|
@@ -32960,7 +32960,7 @@ Actual: ` + m.attribValue
|
|
|
32960
32960
|
);
|
|
32961
32961
|
});
|
|
32962
32962
|
}), s === 0) return false;
|
|
32963
|
-
const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) =>
|
|
32963
|
+
const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => sm$1(u.mark.attrs, n, { strict: false })).reduce((u, f3) => u + f3.to - f3.from, 0), c3 = a.filter((u) => i3 ? u.mark.type !== i3 && u.mark.type.excludes(i3) : true).reduce((u, f3) => u + f3.to - f3.from, 0);
|
|
32964
32964
|
return (l > 0 ? l + c3 : l) >= s;
|
|
32965
32965
|
}
|
|
32966
32966
|
const Wg = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
@@ -32973,7 +32973,7 @@ Actual: ` + m.attribValue
|
|
|
32973
32973
|
if (a.type.isText) return;
|
|
32974
32974
|
const { doc: c3, mapping: d } = e, u = c3.resolve(d.map(l)), f3 = c3.resolve(d.map(l + a.nodeSize)), p3 = u.blockRange(f3);
|
|
32975
32975
|
if (!p3) return;
|
|
32976
|
-
const h3 =
|
|
32976
|
+
const h3 = Xm$1(p3);
|
|
32977
32977
|
if (a.type.isTextblock) {
|
|
32978
32978
|
const { defaultType: m } = u.parent.contentMatchAt(u.index());
|
|
32979
32979
|
e.setNodeMarkup(p3.start, m);
|
|
@@ -32996,7 +32996,7 @@ Actual: ` + m.attribValue
|
|
|
32996
32996
|
to: h3
|
|
32997
32997
|
});
|
|
32998
32998
|
});
|
|
32999
|
-
const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) =>
|
|
32999
|
+
const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => sm$1(u.node.attrs, n, { strict: false }));
|
|
33000
33000
|
return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
|
|
33001
33001
|
}
|
|
33002
33002
|
const Xg = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
@@ -33070,7 +33070,7 @@ Actual: ` + m.attribValue
|
|
|
33070
33070
|
if (o) {
|
|
33071
33071
|
if (n.errorOnInvalidContent) {
|
|
33072
33072
|
let s = false, a = "";
|
|
33073
|
-
const l = new
|
|
33073
|
+
const l = new Km$1({
|
|
33074
33074
|
topNode: e.spec.topNode,
|
|
33075
33075
|
marks: e.spec.marks,
|
|
33076
33076
|
// Prosemirror's schemas are executed such that: the last to execute, matches last
|
|
@@ -33187,7 +33187,7 @@ Actual: ` + m.attribValue
|
|
|
33187
33187
|
let l = s.resolve(e.start - 2);
|
|
33188
33188
|
i3 = new Bc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Bc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
|
|
33189
33189
|
}
|
|
33190
|
-
let a =
|
|
33190
|
+
let a = Ym$1(i3, n, r, e);
|
|
33191
33191
|
return a ? (t && hy(t, e, a, o, n), true) : false;
|
|
33192
33192
|
}
|
|
33193
33193
|
function hy(t, e, n, r, o) {
|
|
@@ -33200,7 +33200,7 @@ Actual: ` + m.attribValue
|
|
|
33200
33200
|
n[d].type == o && (s = d + 1);
|
|
33201
33201
|
let a = n.length - s, l = e.start + n.length - (r ? 2 : 0), c3 = e.parent;
|
|
33202
33202
|
for (let d = e.startIndex, u = e.endIndex, f3 = true; d < u; d++, f3 = false)
|
|
33203
|
-
!f3 &&
|
|
33203
|
+
!f3 && Qm$1(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
|
|
33204
33204
|
return t;
|
|
33205
33205
|
}
|
|
33206
33206
|
function my(t) {
|
|
@@ -33212,12 +33212,12 @@ Actual: ` + m.attribValue
|
|
|
33212
33212
|
function gy(t, e, n, r) {
|
|
33213
33213
|
let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
|
|
33214
33214
|
i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new oe$1(Z.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Bc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
|
|
33215
|
-
const a =
|
|
33215
|
+
const a = Xm$1(r);
|
|
33216
33216
|
if (a == null)
|
|
33217
33217
|
return false;
|
|
33218
33218
|
o.lift(r, a);
|
|
33219
33219
|
let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
|
|
33220
|
-
return
|
|
33220
|
+
return Zm$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
|
|
33221
33221
|
}
|
|
33222
33222
|
function yy(t, e, n) {
|
|
33223
33223
|
let r = t.tr, o = n.parent;
|
|
@@ -34422,14 +34422,14 @@ Actual: ` + m.attribValue
|
|
|
34422
34422
|
const r = t.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
|
|
34423
34423
|
if (r === void 0) return true;
|
|
34424
34424
|
const o = t.doc.nodeAt(r);
|
|
34425
|
-
return n.node.type === o?.type &&
|
|
34425
|
+
return n.node.type === o?.type && Zm$1(t.doc, n.pos) && t.join(n.pos), true;
|
|
34426
34426
|
}, ai$1 = (t, e) => {
|
|
34427
34427
|
const n = jt$2((s) => s.type === e)(t.selection);
|
|
34428
34428
|
if (!n) return true;
|
|
34429
34429
|
const r = t.doc.resolve(n.start).after(n.depth);
|
|
34430
34430
|
if (r === void 0) return true;
|
|
34431
34431
|
const o = t.doc.nodeAt(r);
|
|
34432
|
-
return n.node.type === o?.type &&
|
|
34432
|
+
return n.node.type === o?.type && Zm$1(t.doc, r) && t.join(r), true;
|
|
34433
34433
|
}, Cy = (t, e, n, r = {}) => (o) => {
|
|
34434
34434
|
const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = ae$1(t, a.schema), m = ae$1(e, a.schema), { selection: g, storedMarks: b } = a, { $from: v, $to: C } = g, y = v.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
|
|
34435
34435
|
if (!y) return false;
|
|
@@ -34518,7 +34518,7 @@ Actual: ` + m.attribValue
|
|
|
34518
34518
|
{ type: s, attrs: p3 },
|
|
34519
34519
|
{ type: f3, attrs: h3 }
|
|
34520
34520
|
] : [{ type: s, attrs: p3 }];
|
|
34521
|
-
if (!
|
|
34521
|
+
if (!Qm$1(n.doc, a.pos, 2))
|
|
34522
34522
|
return false;
|
|
34523
34523
|
if (o) {
|
|
34524
34524
|
const { selection: g, storedMarks: b } = r, { splittableMarks: v } = i3.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
|
|
@@ -34632,8 +34632,8 @@ Actual: ` + m.attribValue
|
|
|
34632
34632
|
}), Ry = Q$1.create({
|
|
34633
34633
|
name: "editable",
|
|
34634
34634
|
addPmPlugins() {
|
|
34635
|
-
return [new
|
|
34636
|
-
key: new
|
|
34635
|
+
return [new rp$2({
|
|
34636
|
+
key: new np$2("editable"),
|
|
34637
34637
|
props: {
|
|
34638
34638
|
editable: () => this.editor.options.editable
|
|
34639
34639
|
}
|
|
@@ -34643,8 +34643,8 @@ Actual: ` + m.attribValue
|
|
|
34643
34643
|
name: "editorFocus",
|
|
34644
34644
|
addPmPlugins() {
|
|
34645
34645
|
const t = this.editor;
|
|
34646
|
-
return [new
|
|
34647
|
-
key: new
|
|
34646
|
+
return [new rp$2({
|
|
34647
|
+
key: new np$2("editorFocus"),
|
|
34648
34648
|
props: {
|
|
34649
34649
|
handleDOMEvents: {
|
|
34650
34650
|
focus: (n, r) => {
|
|
@@ -34932,7 +34932,7 @@ Actual: ` + m.attribValue
|
|
|
34932
34932
|
});
|
|
34933
34933
|
});
|
|
34934
34934
|
}), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
|
|
34935
|
-
}, de = new
|
|
34935
|
+
}, de = new np$2("TrackChangesBase"), $y = (t = {}) => new rp$2({
|
|
34936
34936
|
key: de,
|
|
34937
34937
|
state: {
|
|
34938
34938
|
init(e, n) {
|
|
@@ -35161,7 +35161,7 @@ Actual: ` + m.attribValue
|
|
|
35161
35161
|
if (!r.options.isInternal && n) return "transparent";
|
|
35162
35162
|
const o = me.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
|
|
35163
35163
|
return `${i3}${s}`;
|
|
35164
|
-
}, on$3 = new
|
|
35164
|
+
}, on$3 = new np$2("paginationPlugin"), qy = async (t) => {
|
|
35165
35165
|
if (!t.converter) return;
|
|
35166
35166
|
const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
|
|
35167
35167
|
for (let o in n) {
|
|
@@ -35227,7 +35227,7 @@ Actual: ` + m.attribValue
|
|
|
35227
35227
|
}), n({ height: d, sectionEditor: c3, sectionContainer: r });
|
|
35228
35228
|
});
|
|
35229
35229
|
});
|
|
35230
|
-
}), Fs = [wr$2, Bi$2, ki$2], me = new
|
|
35230
|
+
}), Fs = [wr$2, Bi$2, ki$2], me = new np$2("comments"), Ky = Q$1.create({
|
|
35231
35231
|
name: "comments",
|
|
35232
35232
|
addCommands() {
|
|
35233
35233
|
return {
|
|
@@ -35276,7 +35276,7 @@ Actual: ` + m.attribValue
|
|
|
35276
35276
|
addPmPlugins() {
|
|
35277
35277
|
const t = this.editor;
|
|
35278
35278
|
let e, n;
|
|
35279
|
-
return t.options.isHeadless ? [] : [new
|
|
35279
|
+
return t.options.isHeadless ? [] : [new rp$2({
|
|
35280
35280
|
key: me,
|
|
35281
35281
|
state: {
|
|
35282
35282
|
init() {
|
|
@@ -35315,7 +35315,7 @@ Actual: ` + m.attribValue
|
|
|
35315
35315
|
if (h3 && (g = d.activeThreadId), n !== g) {
|
|
35316
35316
|
n = g;
|
|
35317
35317
|
const v = {
|
|
35318
|
-
type:
|
|
35318
|
+
type: sp$2.SELECTED,
|
|
35319
35319
|
activeCommentId: n || null
|
|
35320
35320
|
};
|
|
35321
35321
|
e = true, t.emit("commentsUpdate", v);
|
|
@@ -35545,7 +35545,7 @@ Actual: ` + m.attribValue
|
|
|
35545
35545
|
if (!b && !v)
|
|
35546
35546
|
return;
|
|
35547
35547
|
const C = {
|
|
35548
|
-
event:
|
|
35548
|
+
event: sp$2.ADD,
|
|
35549
35549
|
type: "trackedChange",
|
|
35550
35550
|
documentId: i3,
|
|
35551
35551
|
changeId: p3,
|
|
@@ -35556,7 +35556,7 @@ Actual: ` + m.attribValue
|
|
|
35556
35556
|
authorEmail: u,
|
|
35557
35557
|
date: f3
|
|
35558
35558
|
};
|
|
35559
|
-
return t === "add" ? C.event =
|
|
35559
|
+
return t === "add" ? C.event = sp$2.ADD : t === "update" && (C.event = sp$2.UPDATE), C;
|
|
35560
35560
|
};
|
|
35561
35561
|
function Zy(t, e) {
|
|
35562
35562
|
let n = null;
|
|
@@ -35613,7 +35613,7 @@ Actual: ` + m.attribValue
|
|
|
35613
35613
|
if (r.addMark(Math.max(n.from, d), Math.min(n.to, d + c3.nodeSize), n.mark), ["bold", "italic", "strike", "underline", "textStyle"].includes(n.mark.type.name) && !c3.marks.find((h3) => h3.type === n.mark.type)) {
|
|
35614
35614
|
const h3 = c3.marks.find((b) => b.type.name === ki$2);
|
|
35615
35615
|
let m = [], g = [];
|
|
35616
|
-
if (h3 ? h3.attrs.before.find((v) => v.type === "textStyle" ? v.type === n.mark.type.name &&
|
|
35616
|
+
if (h3 ? h3.attrs.before.find((v) => v.type === "textStyle" ? v.type === n.mark.type.name && sm$1(v.attrs, n.mark.attrs) : v.type === n.mark.type.name) ? (g = [...h3.attrs.before.filter((v) => v.type !== n.mark.type.name)], m = [...h3.attrs.after]) : (g = [...h3.attrs.before], m = [
|
|
35617
35617
|
...h3.attrs.after,
|
|
35618
35618
|
{
|
|
35619
35619
|
type: n.mark.type.name,
|
|
@@ -36125,7 +36125,7 @@ Actual: ` + m.attribValue
|
|
|
36125
36125
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36126
36126
|
*/
|
|
36127
36127
|
processCollaborationMigrations() {
|
|
36128
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36128
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.16"), !this.options.ydoc) return;
|
|
36129
36129
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36130
36130
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36131
36131
|
const o = Za$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -36693,7 +36693,7 @@ Actual: ` + m.attribValue
|
|
|
36693
36693
|
}
|
|
36694
36694
|
});
|
|
36695
36695
|
function ib(t = {}) {
|
|
36696
|
-
return new
|
|
36696
|
+
return new rp$2({
|
|
36697
36697
|
view(e) {
|
|
36698
36698
|
return new sb(e, t);
|
|
36699
36699
|
}
|
|
@@ -36755,7 +36755,7 @@ Actual: ` + m.attribValue
|
|
|
36755
36755
|
if (n && !i3) {
|
|
36756
36756
|
let s = n.pos;
|
|
36757
36757
|
if (this.editorView.dragging && this.editorView.dragging.slice) {
|
|
36758
|
-
let a =
|
|
36758
|
+
let a = tp$2(this.editorView.state.doc, s, this.editorView.dragging.slice);
|
|
36759
36759
|
a != null && (s = a);
|
|
36760
36760
|
}
|
|
36761
36761
|
this.setCursor(s), this.scheduleRemoval(5e3);
|
|
@@ -36919,7 +36919,7 @@ Actual: ` + m.attribValue
|
|
|
36919
36919
|
return true;
|
|
36920
36920
|
}
|
|
36921
36921
|
function cb() {
|
|
36922
|
-
return new
|
|
36922
|
+
return new rp$2({
|
|
36923
36923
|
props: {
|
|
36924
36924
|
decorations: pb,
|
|
36925
36925
|
createSelectionBetween(t, e, n) {
|
|
@@ -36993,7 +36993,7 @@ Actual: ` + m.attribValue
|
|
|
36993
36993
|
})) ?? null
|
|
36994
36994
|
};
|
|
36995
36995
|
}
|
|
36996
|
-
}), mb = new
|
|
36996
|
+
}), mb = new np$2("collaboration"), gb = Q$1.create({
|
|
36997
36997
|
name: "collaboration",
|
|
36998
36998
|
priority: 1e3,
|
|
36999
36999
|
addOptions() {
|
|
@@ -37141,7 +37141,7 @@ Actual: ` + m.attribValue
|
|
|
37141
37141
|
match: r,
|
|
37142
37142
|
chain: o
|
|
37143
37143
|
}) => {
|
|
37144
|
-
const i3 = K$1(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l &&
|
|
37144
|
+
const i3 = K$1(t.getAttributes, null, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c3 = l && Ym$1(l, t.type, i3);
|
|
37145
37145
|
if (!c3)
|
|
37146
37146
|
return null;
|
|
37147
37147
|
if (s.wrap(l, c3), t.keepMarks && t.editor) {
|
|
@@ -37156,7 +37156,7 @@ Actual: ` + m.attribValue
|
|
|
37156
37156
|
o().updateAttributes(u, i3).run();
|
|
37157
37157
|
}
|
|
37158
37158
|
const d = s.doc.resolve(n.from - 1).nodeBefore;
|
|
37159
|
-
d && d.type === t.type &&
|
|
37159
|
+
d && d.type === t.type && Zm$1(s.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, d)) && s.join(n.from - 1);
|
|
37160
37160
|
}
|
|
37161
37161
|
});
|
|
37162
37162
|
}
|
|
@@ -37227,8 +37227,8 @@ Actual: ` + m.attribValue
|
|
|
37227
37227
|
}
|
|
37228
37228
|
});
|
|
37229
37229
|
function xb(t = {}) {
|
|
37230
|
-
return new
|
|
37231
|
-
key: new
|
|
37230
|
+
return new rp$2({
|
|
37231
|
+
key: new np$2("orderedListSync"),
|
|
37232
37232
|
appendTransaction: (e, n, r) => {
|
|
37233
37233
|
if (!(e.some((d) => d.docChanged) && !n.doc.eq(r.doc)))
|
|
37234
37234
|
return;
|
|
@@ -37267,8 +37267,8 @@ Actual: ` + m.attribValue
|
|
|
37267
37267
|
return Math.floor(Math.random() * 4294967295).toString();
|
|
37268
37268
|
}
|
|
37269
37269
|
function Ab(t = {}) {
|
|
37270
|
-
return new
|
|
37271
|
-
key: new
|
|
37270
|
+
return new rp$2({
|
|
37271
|
+
key: new np$2("orderedListMarker"),
|
|
37272
37272
|
appendTransaction: (e, n, r) => {
|
|
37273
37273
|
if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
|
|
37274
37274
|
return;
|
|
@@ -37413,7 +37413,7 @@ Actual: ` + m.attribValue
|
|
|
37413
37413
|
renderDOM: (t) => {
|
|
37414
37414
|
let e = t["list-style-type"];
|
|
37415
37415
|
return e ? (e === "lowerLetter" && (e = "lowerAlpha"), {
|
|
37416
|
-
style: `list-style-type: ${
|
|
37416
|
+
style: `list-style-type: ${ip$2(e)};`
|
|
37417
37417
|
}) : {};
|
|
37418
37418
|
}
|
|
37419
37419
|
},
|
|
@@ -37561,8 +37561,8 @@ Actual: ` + m.attribValue
|
|
|
37561
37561
|
return e;
|
|
37562
37562
|
};
|
|
37563
37563
|
function zb(t = {}) {
|
|
37564
|
-
return new
|
|
37565
|
-
key: new
|
|
37564
|
+
return new rp$2({
|
|
37565
|
+
key: new np$2("styledListMarker"),
|
|
37566
37566
|
state: {
|
|
37567
37567
|
init(e, n) {
|
|
37568
37568
|
const r = [
|
|
@@ -37745,7 +37745,7 @@ Actual: ` + m.attribValue
|
|
|
37745
37745
|
addPmPlugins() {
|
|
37746
37746
|
return [zb()];
|
|
37747
37747
|
}
|
|
37748
|
-
}), oo$2 = new
|
|
37748
|
+
}), oo$2 = new np$2("linkedStyles"), jb = Q$1.create({
|
|
37749
37749
|
name: "linkedStyles",
|
|
37750
37750
|
addPmPlugins() {
|
|
37751
37751
|
return [Hb(this.editor)];
|
|
@@ -37768,7 +37768,7 @@ Actual: ` + m.attribValue
|
|
|
37768
37768
|
}
|
|
37769
37769
|
};
|
|
37770
37770
|
}
|
|
37771
|
-
}), Hb = (t) => new
|
|
37771
|
+
}), Hb = (t) => new rp$2({
|
|
37772
37772
|
key: oo$2,
|
|
37773
37773
|
state: {
|
|
37774
37774
|
init(e, { doc: n, selection: r }) {
|
|
@@ -38125,9 +38125,9 @@ Actual: ` + m.attribValue
|
|
|
38125
38125
|
},
|
|
38126
38126
|
addPmPlugins() {
|
|
38127
38127
|
const { view: t } = this.editor;
|
|
38128
|
-
return [new
|
|
38128
|
+
return [new rp$2({
|
|
38129
38129
|
name: "tabPlugin",
|
|
38130
|
-
key: new
|
|
38130
|
+
key: new np$2("tabPlugin"),
|
|
38131
38131
|
state: {
|
|
38132
38132
|
init(n, r) {
|
|
38133
38133
|
let o = il$1(r, t);
|
|
@@ -38519,7 +38519,7 @@ Actual: ` + m.attribValue
|
|
|
38519
38519
|
}
|
|
38520
38520
|
return e;
|
|
38521
38521
|
}
|
|
38522
|
-
var Pt$1 = new
|
|
38522
|
+
var Pt$1 = new np$2("selectingCells");
|
|
38523
38523
|
function $n$2(t) {
|
|
38524
38524
|
for (let e = t.depth - 1; e > 0; e--)
|
|
38525
38525
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -38823,7 +38823,7 @@ Actual: ` + m.attribValue
|
|
|
38823
38823
|
} else r instanceof tt$2 && m0(r) ? i3 = tt$2.create(o, r.from) : r instanceof tt$2 && g0(r) && (i3 = tt$2.create(o, r.$from.start(), r.$from.end()));
|
|
38824
38824
|
return i3 && (e || (e = t.tr)).setSelection(i3), e;
|
|
38825
38825
|
}
|
|
38826
|
-
var b0 = new
|
|
38826
|
+
var b0 = new np$2("fix-tables");
|
|
38827
38827
|
function lu$1(t, e, n, r) {
|
|
38828
38828
|
const o = t.childCount, i3 = e.childCount;
|
|
38829
38829
|
e: for (let s = 0, a = 0; s < i3; s++) {
|
|
@@ -39737,7 +39737,7 @@ Actual: ` + m.attribValue
|
|
|
39737
39737
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
39738
39738
|
}
|
|
39739
39739
|
}
|
|
39740
|
-
var Pe$1 = new
|
|
39740
|
+
var Pe$1 = new np$2(
|
|
39741
39741
|
"tableColumnResizing"
|
|
39742
39742
|
);
|
|
39743
39743
|
function W0({
|
|
@@ -39747,7 +39747,7 @@ Actual: ` + m.attribValue
|
|
|
39747
39747
|
View: r = U0,
|
|
39748
39748
|
lastColumnResizable: o = true
|
|
39749
39749
|
} = {}) {
|
|
39750
|
-
const i3 = new
|
|
39750
|
+
const i3 = new rp$2({
|
|
39751
39751
|
key: Pe$1,
|
|
39752
39752
|
state: {
|
|
39753
39753
|
init(s, a) {
|
|
@@ -39961,7 +39961,7 @@ Actual: ` + m.attribValue
|
|
|
39961
39961
|
function tw({
|
|
39962
39962
|
allowTableNodeSelection: t = false
|
|
39963
39963
|
} = {}) {
|
|
39964
|
-
return new
|
|
39964
|
+
return new rp$2({
|
|
39965
39965
|
key: Pt$1,
|
|
39966
39966
|
// This piece of state is used to remember when a mouse-drag
|
|
39967
39967
|
// cell-selection is happening, so that it can continue even as
|
|
@@ -40501,8 +40501,8 @@ Actual: ` + m.attribValue
|
|
|
40501
40501
|
}
|
|
40502
40502
|
const iw = (t = {}) => {
|
|
40503
40503
|
let { editor: e, annotationClass: n } = t;
|
|
40504
|
-
return new
|
|
40505
|
-
key: new
|
|
40504
|
+
return new rp$2({
|
|
40505
|
+
key: new np$2("fieldAnnotation"),
|
|
40506
40506
|
state: {
|
|
40507
40507
|
init() {
|
|
40508
40508
|
return null;
|
|
@@ -41218,7 +41218,7 @@ Actual: ` + m.attribValue
|
|
|
41218
41218
|
}
|
|
41219
41219
|
return e;
|
|
41220
41220
|
}
|
|
41221
|
-
const Mo$1 = new
|
|
41221
|
+
const Mo$1 = new np$2("ImagePlaceholder"), Mw = (t = {}) => new rp$2({
|
|
41222
41222
|
key: Mo$1,
|
|
41223
41223
|
state: {
|
|
41224
41224
|
init() {
|
|
@@ -42017,8 +42017,8 @@ Actual: ` + m.attribValue
|
|
|
42017
42017
|
});
|
|
42018
42018
|
return F.create(n.doc, [i3]);
|
|
42019
42019
|
};
|
|
42020
|
-
return [new
|
|
42021
|
-
key: new
|
|
42020
|
+
return [new rp$2({
|
|
42021
|
+
key: new np$2("placeholder"),
|
|
42022
42022
|
state: {
|
|
42023
42023
|
init: (n, r) => t(r),
|
|
42024
42024
|
apply: (n, r, o, i3) => t(i3)
|
|
@@ -43107,7 +43107,7 @@ Actual: ` + m.attribValue
|
|
|
43107
43107
|
];
|
|
43108
43108
|
}
|
|
43109
43109
|
var xr$1;
|
|
43110
|
-
|
|
43110
|
+
me$1.env.NODE_ENV !== "production" && ok();
|
|
43111
43111
|
function ok() {
|
|
43112
43112
|
xr$1 = /* @__PURE__ */ new Set();
|
|
43113
43113
|
}
|
|
@@ -43191,7 +43191,7 @@ Actual: ` + m.attribValue
|
|
|
43191
43191
|
trigger: "mouseenter focus",
|
|
43192
43192
|
triggerTarget: null
|
|
43193
43193
|
}, Gu$1, sk), ak = Object.keys(Ie$2), lk = function(e) {
|
|
43194
|
-
|
|
43194
|
+
me$1.env.NODE_ENV !== "production" && Qu$1(e, []);
|
|
43195
43195
|
var n = Object.keys(e);
|
|
43196
43196
|
n.forEach(function(r) {
|
|
43197
43197
|
Ie$2[r] = e[r];
|
|
@@ -43327,7 +43327,7 @@ Actual: ` + m.attribValue
|
|
|
43327
43327
|
destroy: sf2
|
|
43328
43328
|
};
|
|
43329
43329
|
if (!n.render)
|
|
43330
|
-
return
|
|
43330
|
+
return me$1.env.NODE_ENV !== "production" && us$1(true, "render() function has not been supplied."), y;
|
|
43331
43331
|
var S = n.render(y), k = S.popper, M = S.onUpdate;
|
|
43332
43332
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + y.id, y.popper = k, t._tippy = y, k._tippy = y;
|
|
43333
43333
|
var L3 = v.map(function(w) {
|
|
@@ -43588,7 +43588,7 @@ Actual: ` + m.attribValue
|
|
|
43588
43588
|
}
|
|
43589
43589
|
function dt2() {
|
|
43590
43590
|
var w = y.props.appendTo, A, R = W();
|
|
43591
|
-
y.props.interactive && w === Ku$1 || w === "parent" ? A = R.parentNode : A = Xu$1(w, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, Br2(),
|
|
43591
|
+
y.props.interactive && w === Ku$1 || w === "parent" ? A = R.parentNode : A = Xu$1(w, [R]), A.contains(k) || A.appendChild(k), y.state.isMounted = true, Br2(), me$1.env.NODE_ENV !== "production" && mt$1(y.props.interactive && w === Ie$2.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
43592
43592
|
|
|
43593
43593
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
43594
43594
|
|
|
@@ -43630,7 +43630,7 @@ Actual: ` + m.attribValue
|
|
|
43630
43630
|
clearTimeout(r), clearTimeout(o), cancelAnimationFrame(i3);
|
|
43631
43631
|
}
|
|
43632
43632
|
function Vr2(w) {
|
|
43633
|
-
if (
|
|
43633
|
+
if (me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("setProps")), !y.state.isDestroyed) {
|
|
43634
43634
|
ie("onBeforeUpdate", [y, w]), Rr2();
|
|
43635
43635
|
var A = y.props, R = Vl$1(t, Object.assign({}, A, Fl$1(w), {
|
|
43636
43636
|
ignoreAttributes: true
|
|
@@ -43648,7 +43648,7 @@ Actual: ` + m.attribValue
|
|
|
43648
43648
|
});
|
|
43649
43649
|
}
|
|
43650
43650
|
function tf2() {
|
|
43651
|
-
|
|
43651
|
+
me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("show"));
|
|
43652
43652
|
var w = y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = nt$1.isTouch && !y.props.touch, U3 = di$1(y.props.duration, 0, Ie$2.duration);
|
|
43653
43653
|
if (!(w || A || R || q) && !W().hasAttribute("disabled") && (ie("onShow", [y], false), y.props.onShow(y) !== false)) {
|
|
43654
43654
|
if (y.state.isVisible = true, H3() && (k.style.visibility = "visible"), ce2(), Ee2(), y.state.isMounted || (k.style.transition = "none"), H3()) {
|
|
@@ -43670,7 +43670,7 @@ Actual: ` + m.attribValue
|
|
|
43670
43670
|
}
|
|
43671
43671
|
}
|
|
43672
43672
|
function nf2() {
|
|
43673
|
-
|
|
43673
|
+
me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("hide"));
|
|
43674
43674
|
var w = !y.state.isVisible, A = y.state.isDestroyed, R = !y.state.isEnabled, q = di$1(y.props.duration, 1, Ie$2.duration);
|
|
43675
43675
|
if (!(w || A || R) && (ie("onHide", [y], false), y.props.onHide(y) !== false)) {
|
|
43676
43676
|
if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, H3() && (k.style.visibility = "hidden"), Be2(), Ke2(), ce2(true), H3()) {
|
|
@@ -43681,27 +43681,27 @@ Actual: ` + m.attribValue
|
|
|
43681
43681
|
}
|
|
43682
43682
|
}
|
|
43683
43683
|
function rf2(w) {
|
|
43684
|
-
|
|
43684
|
+
me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("hideWithInteractivity")), Y().addEventListener("mousemove", h3), Ll$1(Qr$1, h3), h3(w);
|
|
43685
43685
|
}
|
|
43686
43686
|
function of2() {
|
|
43687
|
-
|
|
43687
|
+
me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), Ot2().forEach(function(w) {
|
|
43688
43688
|
w._tippy.unmount();
|
|
43689
43689
|
}), k.parentNode && k.parentNode.removeChild(k), pi$1 = pi$1.filter(function(w) {
|
|
43690
43690
|
return w !== y;
|
|
43691
43691
|
}), y.state.isMounted = false, ie("onHidden", [y]));
|
|
43692
43692
|
}
|
|
43693
43693
|
function sf2() {
|
|
43694
|
-
|
|
43694
|
+
me$1.env.NODE_ENV !== "production" && mt$1(y.state.isDestroyed, wn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Rr2(), delete t._tippy, y.state.isDestroyed = true, ie("onDestroy", [y]));
|
|
43695
43695
|
}
|
|
43696
43696
|
}
|
|
43697
43697
|
function Ir(t, e) {
|
|
43698
43698
|
e === void 0 && (e = {});
|
|
43699
43699
|
var n = Ie$2.plugins.concat(e.plugins || []);
|
|
43700
|
-
|
|
43700
|
+
me$1.env.NODE_ENV !== "production" && (ik(t), Qu$1(e, n)), ek();
|
|
43701
43701
|
var r = Object.assign({}, e, {
|
|
43702
43702
|
plugins: n
|
|
43703
43703
|
}), o = Jv(t);
|
|
43704
|
-
if (
|
|
43704
|
+
if (me$1.env.NODE_ENV !== "production") {
|
|
43705
43705
|
var i3 = Sr$1(r.content), s = o.length > 1;
|
|
43706
43706
|
mt$1(i3 && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
43707
43707
|
|
|
@@ -43805,10 +43805,10 @@ Actual: ` + m.attribValue
|
|
|
43805
43805
|
], 42, hk))), 128))
|
|
43806
43806
|
], 544));
|
|
43807
43807
|
}
|
|
43808
|
-
}, vk = /* @__PURE__ */ pk(wk, [["__scopeId", "data-v-0a2a8b4e"]]), Ul$1 = new
|
|
43808
|
+
}, vk = /* @__PURE__ */ pk(wk, [["__scopeId", "data-v-0a2a8b4e"]]), Ul$1 = new np$2("popoverPlugin"), kk = Q$1.create({
|
|
43809
43809
|
name: "popoverPlugin",
|
|
43810
43810
|
addPmPlugins() {
|
|
43811
|
-
return [new
|
|
43811
|
+
return [new rp$2({
|
|
43812
43812
|
key: Ul$1,
|
|
43813
43813
|
state: {
|
|
43814
43814
|
init: () => ({}),
|
|
@@ -43936,7 +43936,7 @@ Actual: ` + m.attribValue
|
|
|
43936
43936
|
addPmPlugins() {
|
|
43937
43937
|
const t = this.editor;
|
|
43938
43938
|
let e = false, n = false, r = false, o = false;
|
|
43939
|
-
return [new
|
|
43939
|
+
return [new rp$2({
|
|
43940
43940
|
key: on$3,
|
|
43941
43941
|
state: {
|
|
43942
43942
|
isReadyToInit: false,
|
|
@@ -44531,7 +44531,7 @@ Actual: ` + m.attribValue
|
|
|
44531
44531
|
}
|
|
44532
44532
|
const A = m.bem.els;
|
|
44533
44533
|
if (A !== null) {
|
|
44534
|
-
if (
|
|
44534
|
+
if (me$1.env.NODE_ENV !== "production" && A.length >= 2)
|
|
44535
44535
|
throw Error(`[css-render/plugin-bem]: m(${f3}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
44536
44536
|
return $(A[0]);
|
|
44537
44537
|
} else
|
|
@@ -44544,7 +44544,7 @@ Actual: ` + m.attribValue
|
|
|
44544
44544
|
$({ context: m, props: v }) {
|
|
44545
44545
|
f3 = typeof f3 == "string" ? f3 : f3({ context: m, props: v });
|
|
44546
44546
|
const u = m.bem.els;
|
|
44547
|
-
if (
|
|
44547
|
+
if (me$1.env.NODE_ENV !== "production" && u !== null && u.length >= 2)
|
|
44548
44548
|
throw Error(`[css-render/plugin-bem]: notM(${f3}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
44549
44549
|
return `&:not(${v?.bPrefix || t}${m.bem.b}${u !== null && u.length > 0 ? `${n}${u[0]}` : ""}${r}${f3})`;
|
|
44550
44550
|
}
|
|
@@ -49156,7 +49156,7 @@ ${t}
|
|
|
49156
49156
|
const l = [];
|
|
49157
49157
|
return e.forEach((a, c3) => {
|
|
49158
49158
|
var d;
|
|
49159
|
-
|
|
49159
|
+
me$1.env.NODE_ENV !== "production" && S2(a, o) && console.error("[treemate]: node", a, "is invalid");
|
|
49160
49160
|
const h3 = Object.create(r);
|
|
49161
49161
|
if (h3.rawNode = a, h3.siblings = l, h3.level = s, h3.index = c3, h3.isFirstChild = c3 === 0, h3.isLastChild = c3 + 1 === e.length, h3.parent = i3, !h3.ignored) {
|
|
49162
49162
|
const p3 = o(a);
|
|
@@ -49887,7 +49887,7 @@ ${t}
|
|
|
49887
49887
|
slots: Object,
|
|
49888
49888
|
__popover__: true,
|
|
49889
49889
|
setup(e) {
|
|
49890
|
-
|
|
49890
|
+
me$1.env.NODE_ENV !== "production" && watchEffect(() => {
|
|
49891
49891
|
e.maxWidth !== void 0 && yt("popover", "`max-width` is deprecated, please use `style` instead."), e.minWidth !== void 0 && yt("popover", "`min-width` is deprecated, please use `style` instead."), e.arrow !== void 0 && yt("popover", "`arrow` is deprecated, please use `showArrow` instead."), e.onHide !== void 0 && yt("popover", "`on-hide` is deprecated, please use `on-update:show` instead."), e.onShow !== void 0 && yt("popover", "`on-show` is deprecated, please use `on-update:show` instead.");
|
|
49892
49892
|
});
|
|
49893
49893
|
const t = bi(), n = ref(null), r = computed(() => e.show), o = ref(e.defaultShow), i3 = mi(r, o), s = Te(() => e.disabled ? false : i3.value), l = () => {
|
|
@@ -53064,7 +53064,7 @@ ${t}
|
|
|
53064
53064
|
console.warn(`[super-toolbar 🎨] Element not found: ${this.config.selector}`);
|
|
53065
53065
|
return;
|
|
53066
53066
|
}
|
|
53067
|
-
this.app = createApp(_p), this.app.directive("click-outside",
|
|
53067
|
+
this.app = createApp(_p), this.app.directive("click-outside", op$2), this.app.config.globalProperties.$toolbar = this, n && (this.toolbar = this.app.mount(n)), this.activeEditor = o.editor || null, this.updateToolbarState();
|
|
53068
53068
|
}
|
|
53069
53069
|
log(...o) {
|
|
53070
53070
|
console.debug("[🎨 super-toolbar]", ...o);
|
|
@@ -68302,7 +68302,7 @@ ${style2}
|
|
|
68302
68302
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68303
68303
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68304
68304
|
this.colorIndex = 0;
|
|
68305
|
-
this.version = "0.9.
|
|
68305
|
+
this.version = "0.9.16";
|
|
68306
68306
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68307
68307
|
this.superdocId = config.superdocId || v4();
|
|
68308
68308
|
this.colors = this.config.colors;
|