@harbour-enterprises/superdoc 0.10.11 → 0.10.13
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-CnsRjSH0.es.js → super-editor.es-35uGypnF.es.js} +1885 -1884
- package/dist/chunks/{super-editor.es-u_aBzqU8.cjs → super-editor.es-CtJbBdCY.cjs} +34 -34
- package/dist/super-editor/chunks/{converter-D70pBYBy.js → converter-CKYZCmLh.js} +603 -602
- package/dist/super-editor/chunks/{docx-zipper-96fM1jjz.js → docx-zipper-CksbnyTX.js} +1 -1
- package/dist/super-editor/chunks/{editor-BfAhjjdV.js → editor-DEWQqVFW.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DoKK_Ie4.js → toolbar-BxidMIRu.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +708 -707
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Nu = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Li = (r) => {
|
|
3
3
|
throw TypeError(r);
|
|
4
4
|
};
|
|
5
5
|
var Iu = (r, e, t) => e in r ? Nu(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
6
|
-
var
|
|
7
|
-
var Nr = (r, e, t) => e.has(r) ?
|
|
6
|
+
var _t = (r, e, t) => Iu(r, typeof e != "symbol" ? e + "" : e, t), Ru = (r, e, t) => e.has(r) || Li("Cannot " + t);
|
|
7
|
+
var Nr = (r, e, t) => e.has(r) ? Li("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
|
|
8
8
|
var Ke = (r, e, t) => (Ru(r, e, "access private method"), t);
|
|
9
9
|
import "vue";
|
|
10
10
|
var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -31,11 +31,11 @@ function Pu(r) {
|
|
|
31
31
|
}), t;
|
|
32
32
|
}
|
|
33
33
|
var Te = {}, Ar = {};
|
|
34
|
-
Ar.byteLength =
|
|
34
|
+
Ar.byteLength = _u;
|
|
35
35
|
Ar.toByteArray = Mu;
|
|
36
36
|
Ar.fromByteArray = Hu;
|
|
37
37
|
var Qe = [], Ve = [], Ou = typeof Uint8Array < "u" ? Uint8Array : Array, Ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
38
|
-
for (var yt = 0,
|
|
38
|
+
for (var yt = 0, Lu = Ir.length; yt < Lu; ++yt)
|
|
39
39
|
Qe[yt] = Ir[yt], Ve[Ir.charCodeAt(yt)] = yt;
|
|
40
40
|
Ve[45] = 62;
|
|
41
41
|
Ve[95] = 63;
|
|
@@ -48,7 +48,7 @@ function Mo(r) {
|
|
|
48
48
|
var n = t === e ? 0 : 4 - t % 4;
|
|
49
49
|
return [t, n];
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function _u(r) {
|
|
52
52
|
var e = Mo(r), t = e[0], n = e[1];
|
|
53
53
|
return (t + n) * 3 / 4 - n;
|
|
54
54
|
}
|
|
@@ -167,7 +167,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
167
167
|
throw new TypeError(
|
|
168
168
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof y
|
|
169
169
|
);
|
|
170
|
-
if (
|
|
170
|
+
if (_e(y, o) || y && _e(y.buffer, o) || typeof a < "u" && (_e(y, a) || y && _e(y.buffer, a)))
|
|
171
171
|
return k(y, l, d);
|
|
172
172
|
if (typeof y == "number")
|
|
173
173
|
throw new TypeError(
|
|
@@ -222,7 +222,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
222
222
|
return d;
|
|
223
223
|
}
|
|
224
224
|
function w(y) {
|
|
225
|
-
if (
|
|
225
|
+
if (_e(y, s)) {
|
|
226
226
|
const l = new s(y);
|
|
227
227
|
return k(l.buffer, l.byteOffset, l.byteLength);
|
|
228
228
|
}
|
|
@@ -257,7 +257,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
257
257
|
c.isBuffer = function(l) {
|
|
258
258
|
return l != null && l._isBuffer === !0 && l !== c.prototype;
|
|
259
259
|
}, c.compare = function(l, d) {
|
|
260
|
-
if (
|
|
260
|
+
if (_e(l, s) && (l = c.from(l, l.offset, l.byteLength)), _e(d, s) && (d = c.from(d, d.offset, d.byteLength)), !c.isBuffer(l) || !c.isBuffer(d))
|
|
261
261
|
throw new TypeError(
|
|
262
262
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
263
263
|
);
|
|
@@ -299,7 +299,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
299
299
|
let U = 0;
|
|
300
300
|
for (v = 0; v < l.length; ++v) {
|
|
301
301
|
let G = l[v];
|
|
302
|
-
if (
|
|
302
|
+
if (_e(G, s))
|
|
303
303
|
U + G.length > O.length ? (c.isBuffer(G) || (G = c.from(G)), G.copy(O, U)) : s.prototype.set.call(
|
|
304
304
|
O,
|
|
305
305
|
G,
|
|
@@ -316,7 +316,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
316
316
|
function N(y, l) {
|
|
317
317
|
if (c.isBuffer(y))
|
|
318
318
|
return y.length;
|
|
319
|
-
if (o.isView(y) ||
|
|
319
|
+
if (o.isView(y) || _e(y, o))
|
|
320
320
|
return y.byteLength;
|
|
321
321
|
if (typeof y != "string")
|
|
322
322
|
throw new TypeError(
|
|
@@ -357,7 +357,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
357
357
|
for (y || (y = "utf8"); ; )
|
|
358
358
|
switch (y) {
|
|
359
359
|
case "hex":
|
|
360
|
-
return
|
|
360
|
+
return L(this, l, d);
|
|
361
361
|
case "utf8":
|
|
362
362
|
case "utf-8":
|
|
363
363
|
return Y(this, l, d);
|
|
@@ -415,7 +415,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
415
415
|
const d = r.INSPECT_MAX_BYTES;
|
|
416
416
|
return l = this.toString("hex", 0, d).replace(/(.{2})/g, "$1 ").trim(), this.length > d && (l += " ... "), "<Buffer " + l + ">";
|
|
417
417
|
}, n && (c.prototype[n] = c.prototype.inspect), c.prototype.compare = function(l, d, v, O, U) {
|
|
418
|
-
if (
|
|
418
|
+
if (_e(l, s) && (l = c.from(l, l.offset, l.byteLength)), !c.isBuffer(l))
|
|
419
419
|
throw new TypeError(
|
|
420
420
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof l
|
|
421
421
|
);
|
|
@@ -615,7 +615,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
615
615
|
v += String.fromCharCode(y[O]);
|
|
616
616
|
return v;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function L(y, l, d) {
|
|
619
619
|
const v = y.length;
|
|
620
620
|
(!l || l < 0) && (l = 0), (!d || d < 0 || d > v) && (d = v);
|
|
621
621
|
let O = "";
|
|
@@ -662,13 +662,13 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
662
662
|
return l = l >>> 0, d || V(l, 4, this.length), (this[l] | this[l + 1] << 8 | this[l + 2] << 16) + this[l + 3] * 16777216;
|
|
663
663
|
}, c.prototype.readUint32BE = c.prototype.readUInt32BE = function(l, d) {
|
|
664
664
|
return l = l >>> 0, d || V(l, 4, this.length), this[l] * 16777216 + (this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3]);
|
|
665
|
-
}, c.prototype.readBigUInt64LE =
|
|
665
|
+
}, c.prototype.readBigUInt64LE = Le(function(l) {
|
|
666
666
|
l = l >>> 0, X(l, "offset");
|
|
667
667
|
const d = this[l], v = this[l + 7];
|
|
668
668
|
(d === void 0 || v === void 0) && ne(l, this.length - 8);
|
|
669
669
|
const O = d + this[++l] * 2 ** 8 + this[++l] * 2 ** 16 + this[++l] * 2 ** 24, U = this[++l] + this[++l] * 2 ** 8 + this[++l] * 2 ** 16 + v * 2 ** 24;
|
|
670
670
|
return BigInt(O) + (BigInt(U) << BigInt(32));
|
|
671
|
-
}), c.prototype.readBigUInt64BE =
|
|
671
|
+
}), c.prototype.readBigUInt64BE = Le(function(l) {
|
|
672
672
|
l = l >>> 0, X(l, "offset");
|
|
673
673
|
const d = this[l], v = this[l + 7];
|
|
674
674
|
(d === void 0 || v === void 0) && ne(l, this.length - 8);
|
|
@@ -700,13 +700,13 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
700
700
|
return l = l >>> 0, d || V(l, 4, this.length), this[l] | this[l + 1] << 8 | this[l + 2] << 16 | this[l + 3] << 24;
|
|
701
701
|
}, c.prototype.readInt32BE = function(l, d) {
|
|
702
702
|
return l = l >>> 0, d || V(l, 4, this.length), this[l] << 24 | this[l + 1] << 16 | this[l + 2] << 8 | this[l + 3];
|
|
703
|
-
}, c.prototype.readBigInt64LE =
|
|
703
|
+
}, c.prototype.readBigInt64LE = Le(function(l) {
|
|
704
704
|
l = l >>> 0, X(l, "offset");
|
|
705
705
|
const d = this[l], v = this[l + 7];
|
|
706
706
|
(d === void 0 || v === void 0) && ne(l, this.length - 8);
|
|
707
707
|
const O = this[l + 4] + this[l + 5] * 2 ** 8 + this[l + 6] * 2 ** 16 + (v << 24);
|
|
708
708
|
return (BigInt(O) << BigInt(32)) + BigInt(d + this[++l] * 2 ** 8 + this[++l] * 2 ** 16 + this[++l] * 2 ** 24);
|
|
709
|
-
}), c.prototype.readBigInt64BE =
|
|
709
|
+
}), c.prototype.readBigInt64BE = Le(function(l) {
|
|
710
710
|
l = l >>> 0, X(l, "offset");
|
|
711
711
|
const d = this[l], v = this[l + 7];
|
|
712
712
|
(d === void 0 || v === void 0) && ne(l, this.length - 8);
|
|
@@ -770,9 +770,9 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
770
770
|
let G = Number(l >> BigInt(32) & BigInt(4294967295));
|
|
771
771
|
return y[d + 3] = G, G = G >> 8, y[d + 2] = G, G = G >> 8, y[d + 1] = G, G = G >> 8, y[d] = G, d + 8;
|
|
772
772
|
}
|
|
773
|
-
c.prototype.writeBigUInt64LE =
|
|
773
|
+
c.prototype.writeBigUInt64LE = Le(function(l, d = 0) {
|
|
774
774
|
return P(this, l, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
775
|
-
}), c.prototype.writeBigUInt64BE =
|
|
775
|
+
}), c.prototype.writeBigUInt64BE = Le(function(l, d = 0) {
|
|
776
776
|
return p(this, l, d, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
777
777
|
}), c.prototype.writeIntLE = function(l, d, v, O) {
|
|
778
778
|
if (l = +l, d = d >>> 0, !O) {
|
|
@@ -802,9 +802,9 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
802
802
|
return l = +l, d = d >>> 0, v || $(this, l, d, 4, 2147483647, -2147483648), this[d] = l & 255, this[d + 1] = l >>> 8, this[d + 2] = l >>> 16, this[d + 3] = l >>> 24, d + 4;
|
|
803
803
|
}, c.prototype.writeInt32BE = function(l, d, v) {
|
|
804
804
|
return l = +l, d = d >>> 0, v || $(this, l, d, 4, 2147483647, -2147483648), l < 0 && (l = 4294967295 + l + 1), this[d] = l >>> 24, this[d + 1] = l >>> 16, this[d + 2] = l >>> 8, this[d + 3] = l & 255, d + 4;
|
|
805
|
-
}, c.prototype.writeBigInt64LE =
|
|
805
|
+
}, c.prototype.writeBigInt64LE = Le(function(l, d = 0) {
|
|
806
806
|
return P(this, l, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
807
|
-
}), c.prototype.writeBigInt64BE =
|
|
807
|
+
}), c.prototype.writeBigInt64BE = Le(function(l, d = 0) {
|
|
808
808
|
return p(this, l, d, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
809
809
|
});
|
|
810
810
|
function m(y, l, d, v, O, U) {
|
|
@@ -911,11 +911,11 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
911
911
|
"ERR_OUT_OF_RANGE",
|
|
912
912
|
function(y, l, d) {
|
|
913
913
|
let v = `The value of "${y}" is out of range.`, O = d;
|
|
914
|
-
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? O =
|
|
914
|
+
return Number.isInteger(d) && Math.abs(d) > 2 ** 32 ? O = _(String(d)) : typeof d == "bigint" && (O = String(d), (d > BigInt(2) ** BigInt(32) || d < -(BigInt(2) ** BigInt(32))) && (O = _(O)), O += "n"), v += ` It must be ${l}. Received ${O}`, v;
|
|
915
915
|
},
|
|
916
916
|
RangeError
|
|
917
917
|
);
|
|
918
|
-
function
|
|
918
|
+
function _(y) {
|
|
919
919
|
let l = "", d = y.length;
|
|
920
920
|
const v = y[0] === "-" ? 1 : 0;
|
|
921
921
|
for (; d >= v + 4; d -= 3)
|
|
@@ -1027,7 +1027,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
1027
1027
|
l[O + d] = y[O];
|
|
1028
1028
|
return O;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function _e(y, l) {
|
|
1031
1031
|
return y instanceof l || y != null && y.constructor != null && y.constructor.name != null && y.constructor.name === l.name;
|
|
1032
1032
|
}
|
|
1033
1033
|
function st(y) {
|
|
@@ -1042,7 +1042,7 @@ yi.write = function(r, e, t, n, i, s) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return l;
|
|
1044
1044
|
}();
|
|
1045
|
-
function
|
|
1045
|
+
function Le(y) {
|
|
1046
1046
|
return typeof BigInt > "u" ? ku : y;
|
|
1047
1047
|
}
|
|
1048
1048
|
function ku() {
|
|
@@ -1070,10 +1070,10 @@ const Ht = Te.Buffer, Vu = Te.Blob, zu = Te.BlobOptions, Gu = Te.Buffer, Wu = Te
|
|
|
1070
1070
|
resolveObjectURL: il,
|
|
1071
1071
|
transcode: sl
|
|
1072
1072
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1073
|
-
var Uo = {}, Yt = { exports: {} },
|
|
1073
|
+
var Uo = {}, Yt = { exports: {} }, _i;
|
|
1074
1074
|
function bi() {
|
|
1075
|
-
if (
|
|
1076
|
-
|
|
1075
|
+
if (_i) return Yt.exports;
|
|
1076
|
+
_i = 1;
|
|
1077
1077
|
var r = typeof Reflect == "object" ? Reflect : null, e = r && typeof r.apply == "function" ? r.apply : function(B, N, q) {
|
|
1078
1078
|
return Function.prototype.apply.call(B, N, q);
|
|
1079
1079
|
}, t;
|
|
@@ -1422,9 +1422,9 @@ function Go() {
|
|
|
1422
1422
|
return Mi || (Mi = 1, Rr = bi().EventEmitter), Rr;
|
|
1423
1423
|
}
|
|
1424
1424
|
const Dr = /* @__PURE__ */ Pu(ol);
|
|
1425
|
-
var Pr = {}, Or = {},
|
|
1425
|
+
var Pr = {}, Or = {}, Lr, Ui;
|
|
1426
1426
|
function Wo() {
|
|
1427
|
-
return Ui || (Ui = 1,
|
|
1427
|
+
return Ui || (Ui = 1, Lr = function() {
|
|
1428
1428
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1450,16 +1450,16 @@ function Wo() {
|
|
|
1450
1450
|
return !1;
|
|
1451
1451
|
}
|
|
1452
1452
|
return !0;
|
|
1453
|
-
}),
|
|
1453
|
+
}), Lr;
|
|
1454
1454
|
}
|
|
1455
|
-
var
|
|
1455
|
+
var _r, ji;
|
|
1456
1456
|
function Er() {
|
|
1457
|
-
if (ji) return
|
|
1457
|
+
if (ji) return _r;
|
|
1458
1458
|
ji = 1;
|
|
1459
1459
|
var r = Wo();
|
|
1460
|
-
return
|
|
1460
|
+
return _r = function() {
|
|
1461
1461
|
return r() && !!Symbol.toStringTag;
|
|
1462
|
-
},
|
|
1462
|
+
}, _r;
|
|
1463
1463
|
}
|
|
1464
1464
|
var qr, Hi;
|
|
1465
1465
|
function Jo() {
|
|
@@ -1834,8 +1834,8 @@ function Qo() {
|
|
|
1834
1834
|
var x = R("%AsyncGeneratorFunction%");
|
|
1835
1835
|
x && (b = x.prototype);
|
|
1836
1836
|
} else if (E === "%AsyncIteratorPrototype%") {
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1837
|
+
var _ = R("%AsyncGenerator%");
|
|
1838
|
+
_ && q && (b = q(_.prototype));
|
|
1839
1839
|
}
|
|
1840
1840
|
return ce[E] = b, b;
|
|
1841
1841
|
}, Y = {
|
|
@@ -1891,24 +1891,24 @@ function Qo() {
|
|
|
1891
1891
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1892
1892
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1893
1893
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1894
|
-
}, de = Kt(), J = Zo(), te = de.call(oe, Array.prototype.concat), ie = de.call(K, Array.prototype.splice),
|
|
1894
|
+
}, de = Kt(), J = Zo(), te = de.call(oe, Array.prototype.concat), ie = de.call(K, Array.prototype.splice), L = de.call(oe, String.prototype.replace), j = de.call(oe, String.prototype.slice), V = de.call(oe, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, p = function(E) {
|
|
1895
1895
|
var b = j(E, 0, 1), x = j(E, -1);
|
|
1896
1896
|
if (b === "%" && x !== "%")
|
|
1897
1897
|
throw new o("invalid intrinsic syntax, expected closing `%`");
|
|
1898
1898
|
if (x === "%" && b !== "%")
|
|
1899
1899
|
throw new o("invalid intrinsic syntax, expected opening `%`");
|
|
1900
|
-
var
|
|
1901
|
-
return
|
|
1902
|
-
|
|
1903
|
-
}),
|
|
1900
|
+
var _ = [];
|
|
1901
|
+
return L(E, $, function(W, re, X, ne) {
|
|
1902
|
+
_[_.length] = X ? L(ne, P, "$1") : re || W;
|
|
1903
|
+
}), _;
|
|
1904
1904
|
}, m = function(E, b) {
|
|
1905
|
-
var x = E,
|
|
1906
|
-
if (J(Y, x) && (
|
|
1905
|
+
var x = E, _;
|
|
1906
|
+
if (J(Y, x) && (_ = Y[x], x = "%" + _[0] + "%"), J(ce, x)) {
|
|
1907
1907
|
var W = ce[x];
|
|
1908
1908
|
if (W === ee && (W = se(x)), typeof W > "u" && !b)
|
|
1909
1909
|
throw new a("intrinsic " + E + " exists, but is not available. Please file an issue!");
|
|
1910
1910
|
return {
|
|
1911
|
-
alias:
|
|
1911
|
+
alias: _,
|
|
1912
1912
|
name: x,
|
|
1913
1913
|
value: W
|
|
1914
1914
|
};
|
|
@@ -1922,13 +1922,13 @@ function Qo() {
|
|
|
1922
1922
|
throw new a('"allowMissing" argument must be a boolean');
|
|
1923
1923
|
if (V(/^%?[^%]*%?$/, E) === null)
|
|
1924
1924
|
throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1925
|
-
var x = p(E),
|
|
1926
|
-
ye && (
|
|
1925
|
+
var x = p(E), _ = x.length > 0 ? x[0] : "", W = m("%" + _ + "%", b), re = W.name, X = W.value, ne = !1, ye = W.alias;
|
|
1926
|
+
ye && (_ = ye[0], ie(x, te([0, 1], ye)));
|
|
1927
1927
|
for (var z = 1, Be = !0; z < x.length; z += 1) {
|
|
1928
1928
|
var Fe = x[z], He = j(Fe, 0, 1), ze = j(Fe, -1);
|
|
1929
1929
|
if ((He === '"' || He === "'" || He === "`" || ze === '"' || ze === "'" || ze === "`") && He !== ze)
|
|
1930
1930
|
throw new o("property names with quotes must have matching quotes");
|
|
1931
|
-
if ((Fe === "constructor" || !Be) && (ne = !0),
|
|
1931
|
+
if ((Fe === "constructor" || !Be) && (ne = !0), _ += "." + Fe, re = "%" + _ + "%", J(ce, re))
|
|
1932
1932
|
X = ce[re];
|
|
1933
1933
|
else if (X != null) {
|
|
1934
1934
|
if (!(Fe in X)) {
|
|
@@ -2180,7 +2180,7 @@ function Ol() {
|
|
|
2180
2180
|
]), Cn;
|
|
2181
2181
|
}
|
|
2182
2182
|
var Sn, Bs;
|
|
2183
|
-
function
|
|
2183
|
+
function Ll() {
|
|
2184
2184
|
if (Bs) return Sn;
|
|
2185
2185
|
Bs = 1;
|
|
2186
2186
|
var r = Ol(), e = typeof globalThis > "u" ? We : globalThis;
|
|
@@ -2191,7 +2191,7 @@ function _l() {
|
|
|
2191
2191
|
}, Sn;
|
|
2192
2192
|
}
|
|
2193
2193
|
var Tn = { exports: {} }, Fn, ks;
|
|
2194
|
-
function
|
|
2194
|
+
function _l() {
|
|
2195
2195
|
if (ks) return Fn;
|
|
2196
2196
|
ks = 1;
|
|
2197
2197
|
var r = vr(), e = Ko(), t = Jt(), n = It();
|
|
@@ -2243,7 +2243,7 @@ var kn, Is;
|
|
|
2243
2243
|
function Ml() {
|
|
2244
2244
|
if (Is) return kn;
|
|
2245
2245
|
Is = 1;
|
|
2246
|
-
var r = Qo(), e =
|
|
2246
|
+
var r = Qo(), e = _l(), t = ql()(), n = It(), i = Jt(), s = r("%Math.floor%");
|
|
2247
2247
|
return kn = function(a, u) {
|
|
2248
2248
|
if (typeof a != "function")
|
|
2249
2249
|
throw new i("`fn` is not a function");
|
|
@@ -2296,7 +2296,7 @@ var In, Os;
|
|
|
2296
2296
|
function ea() {
|
|
2297
2297
|
if (Os) return In;
|
|
2298
2298
|
Os = 1;
|
|
2299
|
-
var r = Pl(), e =
|
|
2299
|
+
var r = Pl(), e = Ll(), t = jl(), n = $t(), i = It(), s = Ei(), o = n("Object.prototype.toString"), a = Er()(), u = typeof globalThis > "u" ? We : globalThis, f = e(), c = n("String.prototype.slice"), g = n("Array.prototype.indexOf", !0) || function(F, w) {
|
|
2300
2300
|
for (var k = 0; k < F.length; k += 1)
|
|
2301
2301
|
if (F[k] === w)
|
|
2302
2302
|
return k;
|
|
@@ -2362,18 +2362,18 @@ function ea() {
|
|
|
2362
2362
|
return i ? S(F) : null;
|
|
2363
2363
|
}, In;
|
|
2364
2364
|
}
|
|
2365
|
-
var Rn,
|
|
2365
|
+
var Rn, Ls;
|
|
2366
2366
|
function Hl() {
|
|
2367
|
-
if (
|
|
2368
|
-
|
|
2367
|
+
if (Ls) return Rn;
|
|
2368
|
+
Ls = 1;
|
|
2369
2369
|
var r = ea();
|
|
2370
2370
|
return Rn = function(t) {
|
|
2371
2371
|
return !!r(t);
|
|
2372
2372
|
}, Rn;
|
|
2373
2373
|
}
|
|
2374
|
-
var
|
|
2374
|
+
var _s;
|
|
2375
2375
|
function Vl() {
|
|
2376
|
-
return
|
|
2376
|
+
return _s || (_s = 1, function(r) {
|
|
2377
2377
|
var e = Bl(), t = Il(), n = ea(), i = Hl();
|
|
2378
2378
|
function s(z) {
|
|
2379
2379
|
return z.call.bind(z);
|
|
@@ -2485,12 +2485,12 @@ function Vl() {
|
|
|
2485
2485
|
return typeof ArrayBuffer > "u" ? !1 : te.working ? te(z) : z instanceof ArrayBuffer;
|
|
2486
2486
|
}
|
|
2487
2487
|
r.isArrayBuffer = ie;
|
|
2488
|
-
function
|
|
2488
|
+
function L(z) {
|
|
2489
2489
|
return u(z) === "[object DataView]";
|
|
2490
2490
|
}
|
|
2491
|
-
|
|
2491
|
+
L.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && L(new DataView(new ArrayBuffer(1), 0, 1));
|
|
2492
2492
|
function j(z) {
|
|
2493
|
-
return typeof DataView > "u" ? !1 :
|
|
2493
|
+
return typeof DataView > "u" ? !1 : L.working ? L(z) : z instanceof DataView;
|
|
2494
2494
|
}
|
|
2495
2495
|
r.isDataView = j;
|
|
2496
2496
|
var V = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
@@ -2525,10 +2525,10 @@ function Vl() {
|
|
|
2525
2525
|
return T(z, f);
|
|
2526
2526
|
}
|
|
2527
2527
|
r.isNumberObject = x;
|
|
2528
|
-
function
|
|
2528
|
+
function _(z) {
|
|
2529
2529
|
return T(z, c);
|
|
2530
2530
|
}
|
|
2531
|
-
r.isStringObject =
|
|
2531
|
+
r.isStringObject = _;
|
|
2532
2532
|
function W(z) {
|
|
2533
2533
|
return T(z, g);
|
|
2534
2534
|
}
|
|
@@ -2542,7 +2542,7 @@ function Vl() {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
r.isSymbolObject = X;
|
|
2544
2544
|
function ne(z) {
|
|
2545
|
-
return x(z) ||
|
|
2545
|
+
return x(z) || _(z) || W(z) || re(z) || X(z);
|
|
2546
2546
|
}
|
|
2547
2547
|
r.isBoxedPrimitive = ne;
|
|
2548
2548
|
function ye(z) {
|
|
@@ -2572,13 +2572,13 @@ function ta() {
|
|
|
2572
2572
|
$[V[P]] = Object.getOwnPropertyDescriptor(j, V[P]);
|
|
2573
2573
|
return $;
|
|
2574
2574
|
}, t = /%[sdj%]/g;
|
|
2575
|
-
r.format = function(
|
|
2576
|
-
if (!B(
|
|
2575
|
+
r.format = function(L) {
|
|
2576
|
+
if (!B(L)) {
|
|
2577
2577
|
for (var j = [], V = 0; V < arguments.length; V++)
|
|
2578
2578
|
j.push(o(arguments[V]));
|
|
2579
2579
|
return j.join(" ");
|
|
2580
2580
|
}
|
|
2581
|
-
for (var V = 1, $ = arguments, P = $.length, p = String(
|
|
2581
|
+
for (var V = 1, $ = arguments, P = $.length, p = String(L).replace(t, function(R) {
|
|
2582
2582
|
if (R === "%%") return "%";
|
|
2583
2583
|
if (V >= P) return R;
|
|
2584
2584
|
switch (R) {
|
|
@@ -2598,12 +2598,12 @@ function ta() {
|
|
|
2598
2598
|
}), m = $[V]; V < P; m = $[++V])
|
|
2599
2599
|
k(m) || !D(m) ? p += " " + m : p += " " + o(m);
|
|
2600
2600
|
return p;
|
|
2601
|
-
}, r.deprecate = function(
|
|
2601
|
+
}, r.deprecate = function(L, j) {
|
|
2602
2602
|
if (typeof he < "u" && he.noDeprecation === !0)
|
|
2603
|
-
return
|
|
2603
|
+
return L;
|
|
2604
2604
|
if (typeof he > "u")
|
|
2605
2605
|
return function() {
|
|
2606
|
-
return r.deprecate(
|
|
2606
|
+
return r.deprecate(L, j).apply(this, arguments);
|
|
2607
2607
|
};
|
|
2608
2608
|
var V = !1;
|
|
2609
2609
|
function $() {
|
|
@@ -2612,7 +2612,7 @@ function ta() {
|
|
|
2612
2612
|
throw new Error(j);
|
|
2613
2613
|
he.traceDeprecation ? console.trace(j) : console.error(j), V = !0;
|
|
2614
2614
|
}
|
|
2615
|
-
return
|
|
2615
|
+
return L.apply(this, arguments);
|
|
2616
2616
|
}
|
|
2617
2617
|
return $;
|
|
2618
2618
|
};
|
|
@@ -2621,25 +2621,25 @@ function ta() {
|
|
|
2621
2621
|
var s = he.env.NODE_DEBUG;
|
|
2622
2622
|
s = s.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + s + "$", "i");
|
|
2623
2623
|
}
|
|
2624
|
-
r.debuglog = function(
|
|
2625
|
-
if (
|
|
2626
|
-
if (i.test(
|
|
2624
|
+
r.debuglog = function(L) {
|
|
2625
|
+
if (L = L.toUpperCase(), !n[L])
|
|
2626
|
+
if (i.test(L)) {
|
|
2627
2627
|
var j = he.pid;
|
|
2628
|
-
n[
|
|
2628
|
+
n[L] = function() {
|
|
2629
2629
|
var V = r.format.apply(r, arguments);
|
|
2630
|
-
console.error("%s %d: %s",
|
|
2630
|
+
console.error("%s %d: %s", L, j, V);
|
|
2631
2631
|
};
|
|
2632
2632
|
} else
|
|
2633
|
-
n[
|
|
2633
|
+
n[L] = function() {
|
|
2634
2634
|
};
|
|
2635
|
-
return n[
|
|
2635
|
+
return n[L];
|
|
2636
2636
|
};
|
|
2637
|
-
function o(
|
|
2637
|
+
function o(L, j) {
|
|
2638
2638
|
var V = {
|
|
2639
2639
|
seen: [],
|
|
2640
2640
|
stylize: u
|
|
2641
2641
|
};
|
|
2642
|
-
return arguments.length >= 3 && (V.depth = arguments[2]), arguments.length >= 4 && (V.colors = arguments[3]), w(j) ? V.showHidden = j : j && r._extend(V, j), q(V.showHidden) && (V.showHidden = !1), q(V.depth) && (V.depth = 2), q(V.colors) && (V.colors = !1), q(V.customInspect) && (V.customInspect = !0), V.colors && (V.stylize = a), c(V,
|
|
2642
|
+
return arguments.length >= 3 && (V.depth = arguments[2]), arguments.length >= 4 && (V.colors = arguments[3]), w(j) ? V.showHidden = j : j && r._extend(V, j), q(V.showHidden) && (V.showHidden = !1), q(V.depth) && (V.depth = 2), q(V.colors) && (V.colors = !1), q(V.customInspect) && (V.customInspect = !0), V.colors && (V.stylize = a), c(V, L, V.depth);
|
|
2643
2643
|
}
|
|
2644
2644
|
r.inspect = o, o.colors = {
|
|
2645
2645
|
bold: [1, 22],
|
|
@@ -2666,80 +2666,80 @@ function ta() {
|
|
|
2666
2666
|
// "name": intentionally not styling
|
|
2667
2667
|
regexp: "red"
|
|
2668
2668
|
};
|
|
2669
|
-
function a(
|
|
2669
|
+
function a(L, j) {
|
|
2670
2670
|
var V = o.styles[j];
|
|
2671
|
-
return V ? "\x1B[" + o.colors[V][0] + "m" +
|
|
2671
|
+
return V ? "\x1B[" + o.colors[V][0] + "m" + L + "\x1B[" + o.colors[V][1] + "m" : L;
|
|
2672
2672
|
}
|
|
2673
|
-
function u(
|
|
2674
|
-
return
|
|
2673
|
+
function u(L, j) {
|
|
2674
|
+
return L;
|
|
2675
2675
|
}
|
|
2676
|
-
function f(
|
|
2676
|
+
function f(L) {
|
|
2677
2677
|
var j = {};
|
|
2678
|
-
return
|
|
2678
|
+
return L.forEach(function(V, $) {
|
|
2679
2679
|
j[V] = !0;
|
|
2680
2680
|
}), j;
|
|
2681
2681
|
}
|
|
2682
|
-
function c(
|
|
2683
|
-
if (
|
|
2682
|
+
function c(L, j, V) {
|
|
2683
|
+
if (L.customInspect && j && ee(j.inspect) && // Filter out the util module, it's inspect function is special
|
|
2684
2684
|
j.inspect !== r.inspect && // Also filter out any prototype objects using the circular check.
|
|
2685
2685
|
!(j.constructor && j.constructor.prototype === j)) {
|
|
2686
|
-
var $ = j.inspect(V,
|
|
2687
|
-
return B($) || ($ = c(
|
|
2686
|
+
var $ = j.inspect(V, L);
|
|
2687
|
+
return B($) || ($ = c(L, $, V)), $;
|
|
2688
2688
|
}
|
|
2689
|
-
var P = g(
|
|
2689
|
+
var P = g(L, j);
|
|
2690
2690
|
if (P)
|
|
2691
2691
|
return P;
|
|
2692
2692
|
var p = Object.keys(j), m = f(p);
|
|
2693
|
-
if (
|
|
2693
|
+
if (L.showHidden && (p = Object.getOwnPropertyNames(j)), oe(j) && (p.indexOf("message") >= 0 || p.indexOf("description") >= 0))
|
|
2694
2694
|
return h(j);
|
|
2695
2695
|
if (p.length === 0) {
|
|
2696
2696
|
if (ee(j)) {
|
|
2697
2697
|
var R = j.name ? ": " + j.name : "";
|
|
2698
|
-
return
|
|
2698
|
+
return L.stylize("[Function" + R + "]", "special");
|
|
2699
2699
|
}
|
|
2700
2700
|
if (H(j))
|
|
2701
|
-
return
|
|
2701
|
+
return L.stylize(RegExp.prototype.toString.call(j), "regexp");
|
|
2702
2702
|
if (K(j))
|
|
2703
|
-
return
|
|
2703
|
+
return L.stylize(Date.prototype.toString.call(j), "date");
|
|
2704
2704
|
if (oe(j))
|
|
2705
2705
|
return h(j);
|
|
2706
2706
|
}
|
|
2707
2707
|
var E = "", b = !1, x = ["{", "}"];
|
|
2708
2708
|
if (F(j) && (b = !0, x = ["[", "]"]), ee(j)) {
|
|
2709
|
-
var
|
|
2710
|
-
E = " [Function" +
|
|
2709
|
+
var _ = j.name ? ": " + j.name : "";
|
|
2710
|
+
E = " [Function" + _ + "]";
|
|
2711
2711
|
}
|
|
2712
2712
|
if (H(j) && (E = " " + RegExp.prototype.toString.call(j)), K(j) && (E = " " + Date.prototype.toUTCString.call(j)), oe(j) && (E = " " + h(j)), p.length === 0 && (!b || j.length == 0))
|
|
2713
2713
|
return x[0] + E + x[1];
|
|
2714
2714
|
if (V < 0)
|
|
2715
|
-
return H(j) ?
|
|
2716
|
-
|
|
2715
|
+
return H(j) ? L.stylize(RegExp.prototype.toString.call(j), "regexp") : L.stylize("[Object]", "special");
|
|
2716
|
+
L.seen.push(j);
|
|
2717
2717
|
var W;
|
|
2718
|
-
return b ? W = S(
|
|
2719
|
-
return T(
|
|
2720
|
-
}),
|
|
2718
|
+
return b ? W = S(L, j, V, m, p) : W = p.map(function(re) {
|
|
2719
|
+
return T(L, j, V, m, re, b);
|
|
2720
|
+
}), L.seen.pop(), A(W, E, x);
|
|
2721
2721
|
}
|
|
2722
|
-
function g(
|
|
2722
|
+
function g(L, j) {
|
|
2723
2723
|
if (q(j))
|
|
2724
|
-
return
|
|
2724
|
+
return L.stylize("undefined", "undefined");
|
|
2725
2725
|
if (B(j)) {
|
|
2726
2726
|
var V = "'" + JSON.stringify(j).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
2727
|
-
return
|
|
2727
|
+
return L.stylize(V, "string");
|
|
2728
2728
|
}
|
|
2729
2729
|
if (C(j))
|
|
2730
|
-
return
|
|
2730
|
+
return L.stylize("" + j, "number");
|
|
2731
2731
|
if (w(j))
|
|
2732
|
-
return
|
|
2732
|
+
return L.stylize("" + j, "boolean");
|
|
2733
2733
|
if (k(j))
|
|
2734
|
-
return
|
|
2734
|
+
return L.stylize("null", "null");
|
|
2735
2735
|
}
|
|
2736
|
-
function h(
|
|
2737
|
-
return "[" + Error.prototype.toString.call(
|
|
2736
|
+
function h(L) {
|
|
2737
|
+
return "[" + Error.prototype.toString.call(L) + "]";
|
|
2738
2738
|
}
|
|
2739
|
-
function S(
|
|
2739
|
+
function S(L, j, V, $, P) {
|
|
2740
2740
|
for (var p = [], m = 0, R = j.length; m < R; ++m)
|
|
2741
2741
|
de(j, String(m)) ? p.push(T(
|
|
2742
|
-
|
|
2742
|
+
L,
|
|
2743
2743
|
j,
|
|
2744
2744
|
V,
|
|
2745
2745
|
$,
|
|
@@ -2748,7 +2748,7 @@ function ta() {
|
|
|
2748
2748
|
)) : p.push("");
|
|
2749
2749
|
return P.forEach(function(E) {
|
|
2750
2750
|
E.match(/^\d+$/) || p.push(T(
|
|
2751
|
-
|
|
2751
|
+
L,
|
|
2752
2752
|
j,
|
|
2753
2753
|
V,
|
|
2754
2754
|
$,
|
|
@@ -2757,9 +2757,9 @@ function ta() {
|
|
|
2757
2757
|
));
|
|
2758
2758
|
}), p;
|
|
2759
2759
|
}
|
|
2760
|
-
function T(
|
|
2760
|
+
function T(L, j, V, $, P, p) {
|
|
2761
2761
|
var m, R, E;
|
|
2762
|
-
if (E = Object.getOwnPropertyDescriptor(j, P) || { value: j[P] }, E.get ? E.set ? R =
|
|
2762
|
+
if (E = Object.getOwnPropertyDescriptor(j, P) || { value: j[P] }, E.get ? E.set ? R = L.stylize("[Getter/Setter]", "special") : R = L.stylize("[Getter]", "special") : E.set && (R = L.stylize("[Setter]", "special")), de($, P) || (m = "[" + P + "]"), R || (L.seen.indexOf(E.value) < 0 ? (k(V) ? R = c(L, E.value, null) : R = c(L, E.value, V - 1), R.indexOf(`
|
|
2763
2763
|
`) > -1 && (p ? R = R.split(`
|
|
2764
2764
|
`).map(function(b) {
|
|
2765
2765
|
return " " + b;
|
|
@@ -2769,85 +2769,85 @@ function ta() {
|
|
|
2769
2769
|
`).map(function(b) {
|
|
2770
2770
|
return " " + b;
|
|
2771
2771
|
}).join(`
|
|
2772
|
-
`))) : R =
|
|
2772
|
+
`))) : R = L.stylize("[Circular]", "special")), q(m)) {
|
|
2773
2773
|
if (p && P.match(/^\d+$/))
|
|
2774
2774
|
return R;
|
|
2775
|
-
m = JSON.stringify("" + P), m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (m = m.slice(1, -1), m =
|
|
2775
|
+
m = JSON.stringify("" + P), m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (m = m.slice(1, -1), m = L.stylize(m, "name")) : (m = m.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), m = L.stylize(m, "string"));
|
|
2776
2776
|
}
|
|
2777
2777
|
return m + ": " + R;
|
|
2778
2778
|
}
|
|
2779
|
-
function A(
|
|
2780
|
-
var $ =
|
|
2779
|
+
function A(L, j, V) {
|
|
2780
|
+
var $ = L.reduce(function(P, p) {
|
|
2781
2781
|
return p.indexOf(`
|
|
2782
2782
|
`) >= 0, P + p.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
2783
2783
|
}, 0);
|
|
2784
2784
|
return $ > 60 ? V[0] + (j === "" ? "" : j + `
|
|
2785
|
-
`) + " " +
|
|
2786
|
-
`) + " " + V[1] : V[0] + j + " " +
|
|
2785
|
+
`) + " " + L.join(`,
|
|
2786
|
+
`) + " " + V[1] : V[0] + j + " " + L.join(", ") + " " + V[1];
|
|
2787
2787
|
}
|
|
2788
2788
|
r.types = Vl();
|
|
2789
|
-
function F(
|
|
2790
|
-
return Array.isArray(
|
|
2789
|
+
function F(L) {
|
|
2790
|
+
return Array.isArray(L);
|
|
2791
2791
|
}
|
|
2792
2792
|
r.isArray = F;
|
|
2793
|
-
function w(
|
|
2794
|
-
return typeof
|
|
2793
|
+
function w(L) {
|
|
2794
|
+
return typeof L == "boolean";
|
|
2795
2795
|
}
|
|
2796
2796
|
r.isBoolean = w;
|
|
2797
|
-
function k(
|
|
2798
|
-
return
|
|
2797
|
+
function k(L) {
|
|
2798
|
+
return L === null;
|
|
2799
2799
|
}
|
|
2800
2800
|
r.isNull = k;
|
|
2801
|
-
function I(
|
|
2802
|
-
return
|
|
2801
|
+
function I(L) {
|
|
2802
|
+
return L == null;
|
|
2803
2803
|
}
|
|
2804
2804
|
r.isNullOrUndefined = I;
|
|
2805
|
-
function C(
|
|
2806
|
-
return typeof
|
|
2805
|
+
function C(L) {
|
|
2806
|
+
return typeof L == "number";
|
|
2807
2807
|
}
|
|
2808
2808
|
r.isNumber = C;
|
|
2809
|
-
function B(
|
|
2810
|
-
return typeof
|
|
2809
|
+
function B(L) {
|
|
2810
|
+
return typeof L == "string";
|
|
2811
2811
|
}
|
|
2812
2812
|
r.isString = B;
|
|
2813
|
-
function N(
|
|
2814
|
-
return typeof
|
|
2813
|
+
function N(L) {
|
|
2814
|
+
return typeof L == "symbol";
|
|
2815
2815
|
}
|
|
2816
2816
|
r.isSymbol = N;
|
|
2817
|
-
function q(
|
|
2818
|
-
return
|
|
2817
|
+
function q(L) {
|
|
2818
|
+
return L === void 0;
|
|
2819
2819
|
}
|
|
2820
2820
|
r.isUndefined = q;
|
|
2821
|
-
function H(
|
|
2822
|
-
return D(
|
|
2821
|
+
function H(L) {
|
|
2822
|
+
return D(L) && ce(L) === "[object RegExp]";
|
|
2823
2823
|
}
|
|
2824
2824
|
r.isRegExp = H, r.types.isRegExp = H;
|
|
2825
|
-
function D(
|
|
2826
|
-
return typeof
|
|
2825
|
+
function D(L) {
|
|
2826
|
+
return typeof L == "object" && L !== null;
|
|
2827
2827
|
}
|
|
2828
2828
|
r.isObject = D;
|
|
2829
|
-
function K(
|
|
2830
|
-
return D(
|
|
2829
|
+
function K(L) {
|
|
2830
|
+
return D(L) && ce(L) === "[object Date]";
|
|
2831
2831
|
}
|
|
2832
2832
|
r.isDate = K, r.types.isDate = K;
|
|
2833
|
-
function oe(
|
|
2834
|
-
return D(
|
|
2833
|
+
function oe(L) {
|
|
2834
|
+
return D(L) && (ce(L) === "[object Error]" || L instanceof Error);
|
|
2835
2835
|
}
|
|
2836
2836
|
r.isError = oe, r.types.isNativeError = oe;
|
|
2837
|
-
function ee(
|
|
2838
|
-
return typeof
|
|
2837
|
+
function ee(L) {
|
|
2838
|
+
return typeof L == "function";
|
|
2839
2839
|
}
|
|
2840
2840
|
r.isFunction = ee;
|
|
2841
|
-
function Z(
|
|
2842
|
-
return
|
|
2843
|
-
typeof
|
|
2841
|
+
function Z(L) {
|
|
2842
|
+
return L === null || typeof L == "boolean" || typeof L == "number" || typeof L == "string" || typeof L == "symbol" || // ES6 symbol
|
|
2843
|
+
typeof L > "u";
|
|
2844
2844
|
}
|
|
2845
2845
|
r.isPrimitive = Z, r.isBuffer = zl();
|
|
2846
|
-
function ce(
|
|
2847
|
-
return Object.prototype.toString.call(
|
|
2846
|
+
function ce(L) {
|
|
2847
|
+
return Object.prototype.toString.call(L);
|
|
2848
2848
|
}
|
|
2849
|
-
function ae(
|
|
2850
|
-
return
|
|
2849
|
+
function ae(L) {
|
|
2850
|
+
return L < 10 ? "0" + L.toString(10) : L.toString(10);
|
|
2851
2851
|
}
|
|
2852
2852
|
var se = [
|
|
2853
2853
|
"Jan",
|
|
@@ -2864,23 +2864,23 @@ function ta() {
|
|
|
2864
2864
|
"Dec"
|
|
2865
2865
|
];
|
|
2866
2866
|
function Y() {
|
|
2867
|
-
var
|
|
2868
|
-
ae(
|
|
2869
|
-
ae(
|
|
2870
|
-
ae(
|
|
2867
|
+
var L = /* @__PURE__ */ new Date(), j = [
|
|
2868
|
+
ae(L.getHours()),
|
|
2869
|
+
ae(L.getMinutes()),
|
|
2870
|
+
ae(L.getSeconds())
|
|
2871
2871
|
].join(":");
|
|
2872
|
-
return [
|
|
2872
|
+
return [L.getDate(), se[L.getMonth()], j].join(" ");
|
|
2873
2873
|
}
|
|
2874
2874
|
r.log = function() {
|
|
2875
2875
|
console.log("%s - %s", Y(), r.format.apply(r, arguments));
|
|
2876
|
-
}, r.inherits = wt(), r._extend = function(
|
|
2877
|
-
if (!j || !D(j)) return
|
|
2876
|
+
}, r.inherits = wt(), r._extend = function(L, j) {
|
|
2877
|
+
if (!j || !D(j)) return L;
|
|
2878
2878
|
for (var V = Object.keys(j), $ = V.length; $--; )
|
|
2879
|
-
|
|
2880
|
-
return
|
|
2879
|
+
L[V[$]] = j[V[$]];
|
|
2880
|
+
return L;
|
|
2881
2881
|
};
|
|
2882
|
-
function de(
|
|
2883
|
-
return Object.prototype.hasOwnProperty.call(
|
|
2882
|
+
function de(L, j) {
|
|
2883
|
+
return Object.prototype.hasOwnProperty.call(L, j);
|
|
2884
2884
|
}
|
|
2885
2885
|
var J = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
2886
2886
|
r.promisify = function(j) {
|
|
@@ -2922,15 +2922,15 @@ function ta() {
|
|
|
2922
2922
|
e(j)
|
|
2923
2923
|
);
|
|
2924
2924
|
}, r.promisify.custom = J;
|
|
2925
|
-
function te(
|
|
2926
|
-
if (!
|
|
2925
|
+
function te(L, j) {
|
|
2926
|
+
if (!L) {
|
|
2927
2927
|
var V = new Error("Promise was rejected with a falsy value");
|
|
2928
|
-
V.reason =
|
|
2928
|
+
V.reason = L, L = V;
|
|
2929
2929
|
}
|
|
2930
|
-
return j(
|
|
2930
|
+
return j(L);
|
|
2931
2931
|
}
|
|
2932
|
-
function ie(
|
|
2933
|
-
if (typeof
|
|
2932
|
+
function ie(L) {
|
|
2933
|
+
if (typeof L != "function")
|
|
2934
2934
|
throw new TypeError('The "original" argument must be of type Function');
|
|
2935
2935
|
function j() {
|
|
2936
2936
|
for (var V = [], $ = 0; $ < arguments.length; $++)
|
|
@@ -2941,7 +2941,7 @@ function ta() {
|
|
|
2941
2941
|
var p = this, m = function() {
|
|
2942
2942
|
return P.apply(p, arguments);
|
|
2943
2943
|
};
|
|
2944
|
-
|
|
2944
|
+
L.apply(this, V).then(
|
|
2945
2945
|
function(R) {
|
|
2946
2946
|
he.nextTick(m.bind(null, null, R));
|
|
2947
2947
|
},
|
|
@@ -2950,9 +2950,9 @@ function ta() {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
2953
|
-
return Object.setPrototypeOf(j, Object.getPrototypeOf(
|
|
2953
|
+
return Object.setPrototypeOf(j, Object.getPrototypeOf(L)), Object.defineProperties(
|
|
2954
2954
|
j,
|
|
2955
|
-
e(
|
|
2955
|
+
e(L)
|
|
2956
2956
|
), j;
|
|
2957
2957
|
}
|
|
2958
2958
|
r.callbackify = ie;
|
|
@@ -3123,9 +3123,9 @@ function Gl() {
|
|
|
3123
3123
|
}]), T;
|
|
3124
3124
|
}(), On;
|
|
3125
3125
|
}
|
|
3126
|
-
var
|
|
3126
|
+
var Ln, js;
|
|
3127
3127
|
function ra() {
|
|
3128
|
-
if (js) return
|
|
3128
|
+
if (js) return Ln;
|
|
3129
3129
|
js = 1;
|
|
3130
3130
|
function r(o, a) {
|
|
3131
3131
|
var u = this, f = this._readableState && this._readableState.destroyed, c = this._writableState && this._writableState.destroyed;
|
|
@@ -3149,15 +3149,15 @@ function ra() {
|
|
|
3149
3149
|
var u = o._readableState, f = o._writableState;
|
|
3150
3150
|
u && u.autoDestroy || f && f.autoDestroy ? o.destroy(a) : o.emit("error", a);
|
|
3151
3151
|
}
|
|
3152
|
-
return
|
|
3152
|
+
return Ln = {
|
|
3153
3153
|
destroy: r,
|
|
3154
3154
|
undestroy: n,
|
|
3155
3155
|
errorOrDestroy: s
|
|
3156
|
-
},
|
|
3156
|
+
}, Ln;
|
|
3157
3157
|
}
|
|
3158
|
-
var
|
|
3158
|
+
var _n = {}, Hs;
|
|
3159
3159
|
function Rt() {
|
|
3160
|
-
if (Hs) return
|
|
3160
|
+
if (Hs) return _n;
|
|
3161
3161
|
Hs = 1;
|
|
3162
3162
|
function r(a, u) {
|
|
3163
3163
|
a.prototype = Object.create(u.prototype), a.prototype.constructor = a, a.__proto__ = u;
|
|
@@ -3214,7 +3214,7 @@ function Rt() {
|
|
|
3214
3214
|
return "Cannot call " + a + " after a stream was destroyed";
|
|
3215
3215
|
}), t("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), t("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), t("ERR_STREAM_WRITE_AFTER_END", "write after end"), t("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), t("ERR_UNKNOWN_ENCODING", function(a) {
|
|
3216
3216
|
return "Unknown encoding: " + a;
|
|
3217
|
-
}, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"),
|
|
3217
|
+
}, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), _n.codes = e, _n;
|
|
3218
3218
|
}
|
|
3219
3219
|
var qn, Vs;
|
|
3220
3220
|
function na() {
|
|
@@ -3377,8 +3377,8 @@ function ia() {
|
|
|
3377
3377
|
var x = oe(p, R, E);
|
|
3378
3378
|
R !== x && (m = !0, E = "buffer", R = x);
|
|
3379
3379
|
}
|
|
3380
|
-
var
|
|
3381
|
-
p.length +=
|
|
3380
|
+
var _ = p.objectMode ? 1 : R.length;
|
|
3381
|
+
p.length += _;
|
|
3382
3382
|
var W = p.length < p.highWaterMark;
|
|
3383
3383
|
if (W || (p.needDrain = !0), p.writing || p.corked) {
|
|
3384
3384
|
var re = p.lastBufferedRequest;
|
|
@@ -3390,7 +3390,7 @@ function ia() {
|
|
|
3390
3390
|
next: null
|
|
3391
3391
|
}, re ? re.next = p.lastBufferedRequest : p.bufferedRequest = p.lastBufferedRequest, p.bufferedRequestCount += 1;
|
|
3392
3392
|
} else
|
|
3393
|
-
Z(P, p, !1,
|
|
3393
|
+
Z(P, p, !1, _, R, E, b);
|
|
3394
3394
|
return W;
|
|
3395
3395
|
}
|
|
3396
3396
|
function Z(P, p, m, R, E, b, x) {
|
|
@@ -3423,9 +3423,9 @@ function ia() {
|
|
|
3423
3423
|
if (P._writev && m && m.next) {
|
|
3424
3424
|
var R = p.bufferedRequestCount, E = new Array(R), b = p.corkedRequestsFree;
|
|
3425
3425
|
b.entry = m;
|
|
3426
|
-
for (var x = 0,
|
|
3427
|
-
E[x] = m, m.isBuf || (
|
|
3428
|
-
E.allBuffers =
|
|
3426
|
+
for (var x = 0, _ = !0; m; )
|
|
3427
|
+
E[x] = m, m.isBuf || (_ = !1), m = m.next, x += 1;
|
|
3428
|
+
E.allBuffers = _, Z(P, p, !0, p.length, E, "", b.finish), p.pendingcb++, p.lastBufferedRequest = null, b.next ? (p.corkedRequestsFree = b.next, b.next = null) : p.corkedRequestsFree = new r(p), p.bufferedRequestCount = 0;
|
|
3429
3429
|
} else {
|
|
3430
3430
|
for (; m; ) {
|
|
3431
3431
|
var W = m.chunk, re = m.encoding, X = m.callback, ne = p.objectMode ? 1 : W.length;
|
|
@@ -3458,12 +3458,12 @@ function ia() {
|
|
|
3458
3458
|
p.pendingcb--, m && C(P, m), p.prefinished = !0, P.emit("prefinish"), j(P, p);
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function L(P, p) {
|
|
3462
3462
|
!p.prefinished && !p.finalCalled && (typeof P._final == "function" && !p.destroyed ? (p.pendingcb++, p.finalCalled = !0, he.nextTick(ie, P, p)) : (p.prefinished = !0, P.emit("prefinish")));
|
|
3463
3463
|
}
|
|
3464
3464
|
function j(P, p) {
|
|
3465
3465
|
var m = te(p);
|
|
3466
|
-
if (m && (
|
|
3466
|
+
if (m && (L(P, p), p.pendingcb === 0 && (p.finished = !0, P.emit("finish"), p.autoDestroy))) {
|
|
3467
3467
|
var R = P._readableState;
|
|
3468
3468
|
(!R || R.autoDestroy && R.endEmitted) && P.destroy();
|
|
3469
3469
|
}
|
|
@@ -3934,8 +3934,8 @@ function sa() {
|
|
|
3934
3934
|
Zs = 1, Wn = D;
|
|
3935
3935
|
var r;
|
|
3936
3936
|
D.ReadableState = H, bi().EventEmitter;
|
|
3937
|
-
var e = function(x,
|
|
3938
|
-
return x.listeners(
|
|
3937
|
+
var e = function(x, _) {
|
|
3938
|
+
return x.listeners(_).length;
|
|
3939
3939
|
}, t = Go(), n = Dr.Buffer, i = (typeof We < "u" ? We : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
3940
3940
|
};
|
|
3941
3941
|
function s(b) {
|
|
@@ -3950,12 +3950,12 @@ function sa() {
|
|
|
3950
3950
|
var f = Gl(), c = ra(), g = na(), h = g.getHighWaterMark, S = Rt().codes, T = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, F = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, I, C;
|
|
3951
3951
|
wt()(D, t);
|
|
3952
3952
|
var B = c.errorOrDestroy, N = ["error", "close", "destroy", "pause", "resume"];
|
|
3953
|
-
function q(b, x,
|
|
3954
|
-
if (typeof b.prependListener == "function") return b.prependListener(x,
|
|
3955
|
-
!b._events || !b._events[x] ? b.on(x,
|
|
3953
|
+
function q(b, x, _) {
|
|
3954
|
+
if (typeof b.prependListener == "function") return b.prependListener(x, _);
|
|
3955
|
+
!b._events || !b._events[x] ? b.on(x, _) : Array.isArray(b._events[x]) ? b._events[x].unshift(_) : b._events[x] = [_, b._events[x]];
|
|
3956
3956
|
}
|
|
3957
|
-
function H(b, x,
|
|
3958
|
-
r = r || Ct(), b = b || {}, typeof
|
|
3957
|
+
function H(b, x, _) {
|
|
3958
|
+
r = r || Ct(), b = b || {}, typeof _ != "boolean" && (_ = x instanceof r), this.objectMode = !!b.objectMode, _ && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = h(this, b, "readableHighWaterMark", _), this.buffer = new f(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = b.emitClose !== !1, this.autoDestroy = !!b.autoDestroy, this.destroyed = !1, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, b.encoding && (k || (k = ui().StringDecoder), this.decoder = new k(b.encoding), this.encoding = b.encoding);
|
|
3959
3959
|
}
|
|
3960
3960
|
function D(b) {
|
|
3961
3961
|
if (r = r || Ct(), !(this instanceof D)) return new D(b);
|
|
@@ -3976,12 +3976,12 @@ function sa() {
|
|
|
3976
3976
|
}), D.prototype.destroy = c.destroy, D.prototype._undestroy = c.undestroy, D.prototype._destroy = function(b, x) {
|
|
3977
3977
|
x(b);
|
|
3978
3978
|
}, D.prototype.push = function(b, x) {
|
|
3979
|
-
var
|
|
3980
|
-
return
|
|
3979
|
+
var _ = this._readableState, W;
|
|
3980
|
+
return _.objectMode ? W = !0 : typeof b == "string" && (x = x || _.defaultEncoding, x !== _.encoding && (b = n.from(b, x), x = ""), W = !0), K(this, b, x, !1, W);
|
|
3981
3981
|
}, D.prototype.unshift = function(b) {
|
|
3982
3982
|
return K(this, b, null, !0, !1);
|
|
3983
3983
|
};
|
|
3984
|
-
function K(b, x,
|
|
3984
|
+
function K(b, x, _, W, re) {
|
|
3985
3985
|
u("readableAddChunk", x);
|
|
3986
3986
|
var X = b._readableState;
|
|
3987
3987
|
if (x === null)
|
|
@@ -3998,18 +3998,18 @@ function sa() {
|
|
|
3998
3998
|
else {
|
|
3999
3999
|
if (X.destroyed)
|
|
4000
4000
|
return !1;
|
|
4001
|
-
X.reading = !1, X.decoder && !
|
|
4001
|
+
X.reading = !1, X.decoder && !_ ? (x = X.decoder.write(x), X.objectMode || x.length !== 0 ? oe(b, X, x, !1) : J(b, X)) : oe(b, X, x, !1);
|
|
4002
4002
|
}
|
|
4003
4003
|
else W || (X.reading = !1, J(b, X));
|
|
4004
4004
|
}
|
|
4005
4005
|
return !X.ended && (X.length < X.highWaterMark || X.length === 0);
|
|
4006
4006
|
}
|
|
4007
|
-
function oe(b, x,
|
|
4008
|
-
x.flowing && x.length === 0 && !x.sync ? (x.awaitDrain = 0, b.emit("data",
|
|
4007
|
+
function oe(b, x, _, W) {
|
|
4008
|
+
x.flowing && x.length === 0 && !x.sync ? (x.awaitDrain = 0, b.emit("data", _)) : (x.length += x.objectMode ? 1 : _.length, W ? x.buffer.unshift(_) : x.buffer.push(_), x.needReadable && Y(b)), J(b, x);
|
|
4009
4009
|
}
|
|
4010
4010
|
function ee(b, x) {
|
|
4011
|
-
var
|
|
4012
|
-
return !o(x) && typeof x != "string" && x !== void 0 && !b.objectMode && (
|
|
4011
|
+
var _;
|
|
4012
|
+
return !o(x) && typeof x != "string" && x !== void 0 && !b.objectMode && (_ = new T("chunk", ["string", "Buffer", "Uint8Array"], x)), _;
|
|
4013
4013
|
}
|
|
4014
4014
|
D.prototype.isPaused = function() {
|
|
4015
4015
|
return this._readableState.flowing === !1;
|
|
@@ -4017,8 +4017,8 @@ function sa() {
|
|
|
4017
4017
|
k || (k = ui().StringDecoder);
|
|
4018
4018
|
var x = new k(b);
|
|
4019
4019
|
this._readableState.decoder = x, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
4020
|
-
for (var
|
|
4021
|
-
W += x.write(
|
|
4020
|
+
for (var _ = this._readableState.buffer.head, W = ""; _ !== null; )
|
|
4021
|
+
W += x.write(_.data), _ = _.next;
|
|
4022
4022
|
return this._readableState.buffer.clear(), W !== "" && this._readableState.buffer.push(W), this._readableState.length = W.length, this;
|
|
4023
4023
|
};
|
|
4024
4024
|
var Z = 1073741824;
|
|
@@ -4030,21 +4030,21 @@ function sa() {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
D.prototype.read = function(b) {
|
|
4032
4032
|
u("read", b), b = parseInt(b, 10);
|
|
4033
|
-
var x = this._readableState,
|
|
4033
|
+
var x = this._readableState, _ = b;
|
|
4034
4034
|
if (b !== 0 && (x.emittedReadable = !1), b === 0 && x.needReadable && ((x.highWaterMark !== 0 ? x.length >= x.highWaterMark : x.length > 0) || x.ended))
|
|
4035
4035
|
return u("read: emitReadable", x.length, x.ended), x.length === 0 && x.ended ? m(this) : Y(this), null;
|
|
4036
4036
|
if (b = ae(b, x), b === 0 && x.ended)
|
|
4037
4037
|
return x.length === 0 && m(this), null;
|
|
4038
4038
|
var W = x.needReadable;
|
|
4039
|
-
u("need readable", W), (x.length === 0 || x.length - b < x.highWaterMark) && (W = !0, u("length less than watermark", W)), x.ended || x.reading ? (W = !1, u("reading or ended", W)) : W && (u("do read"), x.reading = !0, x.sync = !0, x.length === 0 && (x.needReadable = !0), this._read(x.highWaterMark), x.sync = !1, x.reading || (b = ae(
|
|
4039
|
+
u("need readable", W), (x.length === 0 || x.length - b < x.highWaterMark) && (W = !0, u("length less than watermark", W)), x.ended || x.reading ? (W = !1, u("reading or ended", W)) : W && (u("do read"), x.reading = !0, x.sync = !0, x.length === 0 && (x.needReadable = !0), this._read(x.highWaterMark), x.sync = !1, x.reading || (b = ae(_, x)));
|
|
4040
4040
|
var re;
|
|
4041
|
-
return b > 0 ? re = p(b, x) : re = null, re === null ? (x.needReadable = x.length <= x.highWaterMark, b = 0) : (x.length -= b, x.awaitDrain = 0), x.length === 0 && (x.ended || (x.needReadable = !0),
|
|
4041
|
+
return b > 0 ? re = p(b, x) : re = null, re === null ? (x.needReadable = x.length <= x.highWaterMark, b = 0) : (x.length -= b, x.awaitDrain = 0), x.length === 0 && (x.ended || (x.needReadable = !0), _ !== b && x.ended && m(this)), re !== null && this.emit("data", re), re;
|
|
4042
4042
|
};
|
|
4043
4043
|
function se(b, x) {
|
|
4044
4044
|
if (u("onEofChunk"), !x.ended) {
|
|
4045
4045
|
if (x.decoder) {
|
|
4046
|
-
var
|
|
4047
|
-
|
|
4046
|
+
var _ = x.decoder.end();
|
|
4047
|
+
_ && _.length && (x.buffer.push(_), x.length += x.objectMode ? 1 : _.length);
|
|
4048
4048
|
}
|
|
4049
4049
|
x.ended = !0, x.sync ? Y(b) : (x.needReadable = !1, x.emittedReadable || (x.emittedReadable = !0, de(b)));
|
|
4050
4050
|
}
|
|
@@ -4062,8 +4062,8 @@ function sa() {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
function te(b, x) {
|
|
4064
4064
|
for (; !x.reading && !x.ended && (x.length < x.highWaterMark || x.flowing && x.length === 0); ) {
|
|
4065
|
-
var
|
|
4066
|
-
if (u("maybeReadMore read 0"), b.read(0),
|
|
4065
|
+
var _ = x.length;
|
|
4066
|
+
if (u("maybeReadMore read 0"), b.read(0), _ === x.length)
|
|
4067
4067
|
break;
|
|
4068
4068
|
}
|
|
4069
4069
|
x.readingMore = !1;
|
|
@@ -4071,7 +4071,7 @@ function sa() {
|
|
|
4071
4071
|
D.prototype._read = function(b) {
|
|
4072
4072
|
B(this, new F("_read()"));
|
|
4073
4073
|
}, D.prototype.pipe = function(b, x) {
|
|
4074
|
-
var
|
|
4074
|
+
var _ = this, W = this._readableState;
|
|
4075
4075
|
switch (W.pipesCount) {
|
|
4076
4076
|
case 0:
|
|
4077
4077
|
W.pipes = b;
|
|
@@ -4085,55 +4085,55 @@ function sa() {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
W.pipesCount += 1, u("pipe count=%d opts=%j", W.pipesCount, x);
|
|
4087
4087
|
var re = (!x || x.end !== !1) && b !== he.stdout && b !== he.stderr, X = re ? ye : st;
|
|
4088
|
-
W.endEmitted ? he.nextTick(X) :
|
|
4089
|
-
function ne(lt,
|
|
4090
|
-
u("onunpipe"), lt ===
|
|
4088
|
+
W.endEmitted ? he.nextTick(X) : _.once("end", X), b.on("unpipe", ne);
|
|
4089
|
+
function ne(lt, Le) {
|
|
4090
|
+
u("onunpipe"), lt === _ && Le && Le.hasUnpiped === !1 && (Le.hasUnpiped = !0, Fe());
|
|
4091
4091
|
}
|
|
4092
4092
|
function ye() {
|
|
4093
4093
|
u("onend"), b.end();
|
|
4094
4094
|
}
|
|
4095
|
-
var z = ie(
|
|
4095
|
+
var z = ie(_);
|
|
4096
4096
|
b.on("drain", z);
|
|
4097
4097
|
var Be = !1;
|
|
4098
4098
|
function Fe() {
|
|
4099
|
-
u("cleanup"), b.removeListener("close", Me), b.removeListener("finish",
|
|
4099
|
+
u("cleanup"), b.removeListener("close", Me), b.removeListener("finish", _e), b.removeListener("drain", z), b.removeListener("error", ze), b.removeListener("unpipe", ne), _.removeListener("end", ye), _.removeListener("end", st), _.removeListener("data", He), Be = !0, W.awaitDrain && (!b._writableState || b._writableState.needDrain) && z();
|
|
4100
4100
|
}
|
|
4101
|
-
|
|
4101
|
+
_.on("data", He);
|
|
4102
4102
|
function He(lt) {
|
|
4103
4103
|
u("ondata");
|
|
4104
|
-
var
|
|
4105
|
-
u("dest.write",
|
|
4104
|
+
var Le = b.write(lt);
|
|
4105
|
+
u("dest.write", Le), Le === !1 && ((W.pipesCount === 1 && W.pipes === b || W.pipesCount > 1 && E(W.pipes, b) !== -1) && !Be && (u("false write response, pause", W.awaitDrain), W.awaitDrain++), _.pause());
|
|
4106
4106
|
}
|
|
4107
4107
|
function ze(lt) {
|
|
4108
4108
|
u("onerror", lt), st(), b.removeListener("error", ze), e(b, "error") === 0 && B(b, lt);
|
|
4109
4109
|
}
|
|
4110
4110
|
q(b, "error", ze);
|
|
4111
4111
|
function Me() {
|
|
4112
|
-
b.removeListener("finish",
|
|
4112
|
+
b.removeListener("finish", _e), st();
|
|
4113
4113
|
}
|
|
4114
4114
|
b.once("close", Me);
|
|
4115
|
-
function
|
|
4115
|
+
function _e() {
|
|
4116
4116
|
u("onfinish"), b.removeListener("close", Me), st();
|
|
4117
4117
|
}
|
|
4118
|
-
b.once("finish",
|
|
4118
|
+
b.once("finish", _e);
|
|
4119
4119
|
function st() {
|
|
4120
|
-
u("unpipe"),
|
|
4120
|
+
u("unpipe"), _.unpipe(b);
|
|
4121
4121
|
}
|
|
4122
|
-
return b.emit("pipe",
|
|
4122
|
+
return b.emit("pipe", _), W.flowing || (u("pipe resume"), _.resume()), b;
|
|
4123
4123
|
};
|
|
4124
4124
|
function ie(b) {
|
|
4125
4125
|
return function() {
|
|
4126
|
-
var
|
|
4127
|
-
u("pipeOnDrain",
|
|
4126
|
+
var _ = b._readableState;
|
|
4127
|
+
u("pipeOnDrain", _.awaitDrain), _.awaitDrain && _.awaitDrain--, _.awaitDrain === 0 && e(b, "data") && (_.flowing = !0, P(b));
|
|
4128
4128
|
};
|
|
4129
4129
|
}
|
|
4130
4130
|
D.prototype.unpipe = function(b) {
|
|
4131
|
-
var x = this._readableState,
|
|
4131
|
+
var x = this._readableState, _ = {
|
|
4132
4132
|
hasUnpiped: !1
|
|
4133
4133
|
};
|
|
4134
4134
|
if (x.pipesCount === 0) return this;
|
|
4135
4135
|
if (x.pipesCount === 1)
|
|
4136
|
-
return b && b !== x.pipes ? this : (b || (b = x.pipes), x.pipes = null, x.pipesCount = 0, x.flowing = !1, b && b.emit("unpipe", this,
|
|
4136
|
+
return b && b !== x.pipes ? this : (b || (b = x.pipes), x.pipes = null, x.pipesCount = 0, x.flowing = !1, b && b.emit("unpipe", this, _), this);
|
|
4137
4137
|
if (!b) {
|
|
4138
4138
|
var W = x.pipes, re = x.pipesCount;
|
|
4139
4139
|
x.pipes = null, x.pipesCount = 0, x.flowing = !1;
|
|
@@ -4143,18 +4143,18 @@ function sa() {
|
|
|
4143
4143
|
return this;
|
|
4144
4144
|
}
|
|
4145
4145
|
var ne = E(x.pipes, b);
|
|
4146
|
-
return ne === -1 ? this : (x.pipes.splice(ne, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), b.emit("unpipe", this,
|
|
4146
|
+
return ne === -1 ? this : (x.pipes.splice(ne, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), b.emit("unpipe", this, _), this);
|
|
4147
4147
|
}, D.prototype.on = function(b, x) {
|
|
4148
|
-
var
|
|
4149
|
-
return b === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== !1 && this.resume()) : b === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = !0, W.flowing = !1, W.emittedReadable = !1, u("on readable", W.length, W.reading), W.length ? Y(this) : W.reading || he.nextTick(j, this)),
|
|
4148
|
+
var _ = t.prototype.on.call(this, b, x), W = this._readableState;
|
|
4149
|
+
return b === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== !1 && this.resume()) : b === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = !0, W.flowing = !1, W.emittedReadable = !1, u("on readable", W.length, W.reading), W.length ? Y(this) : W.reading || he.nextTick(j, this)), _;
|
|
4150
4150
|
}, D.prototype.addListener = D.prototype.on, D.prototype.removeListener = function(b, x) {
|
|
4151
|
-
var
|
|
4152
|
-
return b === "readable" && he.nextTick(
|
|
4151
|
+
var _ = t.prototype.removeListener.call(this, b, x);
|
|
4152
|
+
return b === "readable" && he.nextTick(L, this), _;
|
|
4153
4153
|
}, D.prototype.removeAllListeners = function(b) {
|
|
4154
4154
|
var x = t.prototype.removeAllListeners.apply(this, arguments);
|
|
4155
|
-
return (b === "readable" || b === void 0) && he.nextTick(
|
|
4155
|
+
return (b === "readable" || b === void 0) && he.nextTick(L, this), x;
|
|
4156
4156
|
};
|
|
4157
|
-
function
|
|
4157
|
+
function L(b) {
|
|
4158
4158
|
var x = b._readableState;
|
|
4159
4159
|
x.readableListening = b.listenerCount("readable") > 0, x.resumeScheduled && !x.paused ? x.flowing = !0 : b.listenerCount("data") > 0 && b.resume();
|
|
4160
4160
|
}
|
|
@@ -4179,15 +4179,15 @@ function sa() {
|
|
|
4179
4179
|
for (u("flow", x.flowing); x.flowing && b.read() !== null; ) ;
|
|
4180
4180
|
}
|
|
4181
4181
|
D.prototype.wrap = function(b) {
|
|
4182
|
-
var x = this,
|
|
4182
|
+
var x = this, _ = this._readableState, W = !1;
|
|
4183
4183
|
b.on("end", function() {
|
|
4184
|
-
if (u("wrapped end"),
|
|
4185
|
-
var ne =
|
|
4184
|
+
if (u("wrapped end"), _.decoder && !_.ended) {
|
|
4185
|
+
var ne = _.decoder.end();
|
|
4186
4186
|
ne && ne.length && x.push(ne);
|
|
4187
4187
|
}
|
|
4188
4188
|
x.push(null);
|
|
4189
4189
|
}), b.on("data", function(ne) {
|
|
4190
|
-
if (u("wrapped data"),
|
|
4190
|
+
if (u("wrapped data"), _.decoder && (ne = _.decoder.write(ne)), !(_.objectMode && ne == null) && !(!_.objectMode && (!ne || !ne.length))) {
|
|
4191
4191
|
var ye = x.push(ne);
|
|
4192
4192
|
ye || (W = !0, b.pause());
|
|
4193
4193
|
}
|
|
@@ -4243,8 +4243,8 @@ function sa() {
|
|
|
4243
4243
|
});
|
|
4244
4244
|
function p(b, x) {
|
|
4245
4245
|
if (x.length === 0) return null;
|
|
4246
|
-
var
|
|
4247
|
-
return x.objectMode ?
|
|
4246
|
+
var _;
|
|
4247
|
+
return x.objectMode ? _ = x.buffer.shift() : !b || b >= x.length ? (x.decoder ? _ = x.buffer.join("") : x.buffer.length === 1 ? _ = x.buffer.first() : _ = x.buffer.concat(x.length), x.buffer.clear()) : _ = x.buffer.consume(b, x.decoder), _;
|
|
4248
4248
|
}
|
|
4249
4249
|
function m(b) {
|
|
4250
4250
|
var x = b._readableState;
|
|
@@ -4252,16 +4252,16 @@ function sa() {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
function R(b, x) {
|
|
4254
4254
|
if (u("endReadableNT", b.endEmitted, b.length), !b.endEmitted && b.length === 0 && (b.endEmitted = !0, x.readable = !1, x.emit("end"), b.autoDestroy)) {
|
|
4255
|
-
var
|
|
4256
|
-
(!
|
|
4255
|
+
var _ = x._writableState;
|
|
4256
|
+
(!_ || _.autoDestroy && _.finished) && x.destroy();
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
4259
|
typeof Symbol == "function" && (D.from = function(b, x) {
|
|
4260
4260
|
return C === void 0 && (C = $l()), C(D, b, x);
|
|
4261
4261
|
});
|
|
4262
4262
|
function E(b, x) {
|
|
4263
|
-
for (var
|
|
4264
|
-
if (b[
|
|
4263
|
+
for (var _ = 0, W = b.length; _ < W; _++)
|
|
4264
|
+
if (b[_] === x) return _;
|
|
4265
4265
|
return -1;
|
|
4266
4266
|
}
|
|
4267
4267
|
return Wn;
|
|
@@ -4515,8 +4515,8 @@ function Zl() {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
R = Math.max(R, x);
|
|
4517
4517
|
}
|
|
4518
|
-
var
|
|
4519
|
-
p.bufferCheckPosition =
|
|
4518
|
+
var _ = e.MAX_BUFFER_LENGTH - R;
|
|
4519
|
+
p.bufferCheckPosition = _ + p.position;
|
|
4520
4520
|
}
|
|
4521
4521
|
function s(p) {
|
|
4522
4522
|
for (var m = 0, R = t.length; m < R; m++)
|
|
@@ -5037,7 +5037,7 @@ Actual: ` + p.attribValue
|
|
|
5037
5037
|
uri: R.ns[He]
|
|
5038
5038
|
});
|
|
5039
5039
|
});
|
|
5040
|
-
for (var x = 0,
|
|
5040
|
+
for (var x = 0, _ = p.attribList.length; x < _; x++) {
|
|
5041
5041
|
var W = p.attribList[x], re = W[0], X = W[1], ne = J(re, !0), ye = ne.prefix, z = ne.local, Be = ye === "" ? "" : R.ns[ye] || "", Fe = {
|
|
5042
5042
|
name: re,
|
|
5043
5043
|
value: X,
|
|
@@ -5051,7 +5051,7 @@ Actual: ` + p.attribValue
|
|
|
5051
5051
|
}
|
|
5052
5052
|
p.tag.isSelfClosing = !!m, p.sawRoot = !0, p.tags.push(p.tag), ee(p, "onopentag", p.tag), m || (!p.noscript && p.tagName.toLowerCase() === "script" ? p.state = D.SCRIPT : p.state = D.TEXT, p.tag = null, p.tagName = ""), p.attribName = p.attribValue = "", p.attribList.length = 0;
|
|
5053
5053
|
}
|
|
5054
|
-
function
|
|
5054
|
+
function L(p) {
|
|
5055
5055
|
if (!p.tagName) {
|
|
5056
5056
|
Y(p, "Weird empty close tag."), p.textNode += "</>", p.state = D.TEXT;
|
|
5057
5057
|
return;
|
|
@@ -5078,14 +5078,14 @@ Actual: ` + p.attribValue
|
|
|
5078
5078
|
}
|
|
5079
5079
|
p.tagName = R;
|
|
5080
5080
|
for (var x = p.tags.length; x-- > m; ) {
|
|
5081
|
-
var
|
|
5081
|
+
var _ = p.tag = p.tags.pop();
|
|
5082
5082
|
p.tagName = p.tag.name, ee(p, "onclosetag", p.tagName);
|
|
5083
5083
|
var W = {};
|
|
5084
|
-
for (var re in
|
|
5085
|
-
W[re] =
|
|
5084
|
+
for (var re in _.ns)
|
|
5085
|
+
W[re] = _.ns[re];
|
|
5086
5086
|
var X = p.tags[p.tags.length - 1] || p;
|
|
5087
|
-
p.opt.xmlns &&
|
|
5088
|
-
var ye =
|
|
5087
|
+
p.opt.xmlns && _.ns !== X.ns && Object.keys(_.ns).forEach(function(ne) {
|
|
5088
|
+
var ye = _.ns[ne];
|
|
5089
5089
|
ee(p, "onclosenamespace", { prefix: ne, uri: ye });
|
|
5090
5090
|
});
|
|
5091
5091
|
}
|
|
@@ -5218,7 +5218,7 @@ Actual: ` + p.attribValue
|
|
|
5218
5218
|
q(w, E) ? m.tagName += E : (de(m), E === ">" ? ie(m) : E === "/" ? m.state = D.OPEN_TAG_SLASH : (C(E) || Y(m, "Invalid character in tag name"), m.state = D.ATTRIB));
|
|
5219
5219
|
continue;
|
|
5220
5220
|
case D.OPEN_TAG_SLASH:
|
|
5221
|
-
E === ">" ? (ie(m, !0),
|
|
5221
|
+
E === ">" ? (ie(m, !0), L(m)) : (Y(m, "Forward-slash in opening tag not followed by >"), m.state = D.ATTRIB);
|
|
5222
5222
|
continue;
|
|
5223
5223
|
case D.ATTRIB:
|
|
5224
5224
|
if (C(E))
|
|
@@ -5264,7 +5264,7 @@ Actual: ` + p.attribValue
|
|
|
5264
5264
|
continue;
|
|
5265
5265
|
case D.CLOSE_TAG:
|
|
5266
5266
|
if (m.tagName)
|
|
5267
|
-
E === ">" ?
|
|
5267
|
+
E === ">" ? L(m) : q(w, E) ? m.tagName += E : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = D.SCRIPT) : (C(E) || Y(m, "Invalid tagname in closing tag"), m.state = D.CLOSE_TAG_SAW_WHITE);
|
|
5268
5268
|
else {
|
|
5269
5269
|
if (C(E))
|
|
5270
5270
|
continue;
|
|
@@ -5274,27 +5274,27 @@ Actual: ` + p.attribValue
|
|
|
5274
5274
|
case D.CLOSE_TAG_SAW_WHITE:
|
|
5275
5275
|
if (C(E))
|
|
5276
5276
|
continue;
|
|
5277
|
-
E === ">" ?
|
|
5277
|
+
E === ">" ? L(m) : Y(m, "Invalid characters in closing tag");
|
|
5278
5278
|
continue;
|
|
5279
5279
|
case D.TEXT_ENTITY:
|
|
5280
5280
|
case D.ATTRIB_VALUE_ENTITY_Q:
|
|
5281
5281
|
case D.ATTRIB_VALUE_ENTITY_U:
|
|
5282
|
-
var
|
|
5282
|
+
var _, W;
|
|
5283
5283
|
switch (m.state) {
|
|
5284
5284
|
case D.TEXT_ENTITY:
|
|
5285
|
-
|
|
5285
|
+
_ = D.TEXT, W = "textNode";
|
|
5286
5286
|
break;
|
|
5287
5287
|
case D.ATTRIB_VALUE_ENTITY_Q:
|
|
5288
|
-
|
|
5288
|
+
_ = D.ATTRIB_VALUE_QUOTED, W = "attribValue";
|
|
5289
5289
|
break;
|
|
5290
5290
|
case D.ATTRIB_VALUE_ENTITY_U:
|
|
5291
|
-
|
|
5291
|
+
_ = D.ATTRIB_VALUE_UNQUOTED, W = "attribValue";
|
|
5292
5292
|
break;
|
|
5293
5293
|
}
|
|
5294
5294
|
if (E === ";") {
|
|
5295
5295
|
var re = j(m);
|
|
5296
|
-
m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(re) ? (m.entity = "", m.state =
|
|
5297
|
-
} else q(m.entity.length ? I : k, E) ? m.entity += E : (Y(m, "Invalid character in entity name"), m[W] += "&" + m.entity + E, m.entity = "", m.state =
|
|
5296
|
+
m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(re) ? (m.entity = "", m.state = _, m.write(re)) : (m[W] += re, m.entity = "", m.state = _);
|
|
5297
|
+
} else q(m.entity.length ? I : k, E) ? m.entity += E : (Y(m, "Invalid character in entity name"), m[W] += "&" + m.entity + E, m.entity = "", m.state = _);
|
|
5298
5298
|
continue;
|
|
5299
5299
|
default:
|
|
5300
5300
|
throw new Error(m, "Unknown state: " + m.state);
|
|
@@ -5304,7 +5304,7 @@ Actual: ` + p.attribValue
|
|
|
5304
5304
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
5305
5305
|
String.fromCodePoint || function() {
|
|
5306
5306
|
var p = String.fromCharCode, m = Math.floor, R = function() {
|
|
5307
|
-
var E = 16384, b = [], x,
|
|
5307
|
+
var E = 16384, b = [], x, _, W = -1, re = arguments.length;
|
|
5308
5308
|
if (!re)
|
|
5309
5309
|
return "";
|
|
5310
5310
|
for (var X = ""; ++W < re; ) {
|
|
@@ -5314,7 +5314,7 @@ Actual: ` + p.attribValue
|
|
|
5314
5314
|
ne > 1114111 || // not a valid Unicode code point
|
|
5315
5315
|
m(ne) !== ne)
|
|
5316
5316
|
throw RangeError("Invalid code point: " + ne);
|
|
5317
|
-
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296,
|
|
5317
|
+
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296, _ = ne % 1024 + 56320, b.push(x, _)), (W + 1 === re || b.length > E) && (X += p.apply(null, b), b.length = 0);
|
|
5318
5318
|
}
|
|
5319
5319
|
return X;
|
|
5320
5320
|
};
|
|
@@ -5723,16 +5723,16 @@ cr.exports;
|
|
|
5723
5723
|
`, nexist: "∄", nexists: "∄", nfr: "𝔫", Nfr: "𝔑", nge: "≱", ngE: "≧̸", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", nGg: "⋙̸", ngsim: "≵", ngt: "≯", nGt: "≫⃒", ngtr: "≯", nGtv: "≫̸", nharr: "↮", nhArr: "⇎", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", njcy: "њ", NJcy: "Њ", nlarr: "↚", nlArr: "⇍", nldr: "‥", nle: "≰", nlE: "≦̸", nleftarrow: "↚", nLeftarrow: "⇍", nleftrightarrow: "↮", nLeftrightarrow: "⇎", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nLl: "⋘̸", nlsim: "≴", nlt: "≮", nLt: "≪⃒", nltri: "⋪", nltrie: "⋬", nLtv: "≪̸", nmid: "∤", NoBreak: "", NonBreakingSpace: " ", nopf: "𝕟", Nopf: "ℕ", not: "¬", Not: "⫬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", notin: "∉", notindot: "⋵̸", notinE: "⋹̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrarr: "↛", nrArr: "⇏", nrarrc: "⤳̸", nrarrw: "↝̸", nrightarrow: "↛", nRightarrow: "⇏", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", nscr: "𝓃", Nscr: "𝒩", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsube: "⊈", nsubE: "⫅̸", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupe: "⊉", nsupE: "⫆̸", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", ntilde: "ñ", Ntilde: "Ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", nu: "ν", Nu: "Ν", num: "#", numero: "№", numsp: " ", nvap: "≍⃒", nvdash: "⊬", nvDash: "⊭", nVdash: "⊮", nVDash: "⊯", nvge: "≥⃒", nvgt: ">⃒", nvHarr: "⤄", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwarhk: "⤣", nwarr: "↖", nwArr: "⇖", nwarrow: "↖", nwnear: "⤧", oacute: "ó", Oacute: "Ó", oast: "⊛", ocir: "⊚", ocirc: "ô", Ocirc: "Ô", ocy: "о", Ocy: "О", odash: "⊝", odblac: "ő", Odblac: "Ő", odiv: "⨸", odot: "⊙", odsold: "⦼", oelig: "œ", OElig: "Œ", ofcir: "⦿", ofr: "𝔬", Ofr: "𝔒", ogon: "˛", ograve: "ò", Ograve: "Ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", omacr: "ō", Omacr: "Ō", omega: "ω", Omega: "Ω", omicron: "ο", Omicron: "Ο", omid: "⦶", ominus: "⊖", oopf: "𝕠", Oopf: "𝕆", opar: "⦷", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", operp: "⦹", oplus: "⊕", or: "∨", Or: "⩔", orarr: "↻", ord: "⩝", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oS: "Ⓢ", oscr: "ℴ", Oscr: "𝒪", oslash: "ø", Oslash: "Ø", osol: "⊘", otilde: "õ", Otilde: "Õ", otimes: "⊗", Otimes: "⨷", otimesas: "⨶", ouml: "ö", Ouml: "Ö", ovbar: "⌽", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", par: "∥", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", PartialD: "∂", pcy: "п", Pcy: "П", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", pfr: "𝔭", Pfr: "𝔓", phi: "φ", Phi: "Φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", pi: "π", Pi: "Π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", PlusMinus: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", Poincareplane: "ℌ", pointint: "⨕", popf: "𝕡", Popf: "ℙ", pound: "£", pr: "≺", Pr: "⪻", prap: "⪷", prcue: "≼", pre: "⪯", prE: "⪳", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", prime: "′", Prime: "″", primes: "ℙ", prnap: "⪹", prnE: "⪵", prnsim: "⋨", prod: "∏", Product: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", Proportion: "∷", Proportional: "∝", propto: "∝", prsim: "≾", prurel: "⊰", pscr: "𝓅", Pscr: "𝒫", psi: "ψ", Psi: "Ψ", puncsp: " ", qfr: "𝔮", Qfr: "𝔔", qint: "⨌", qopf: "𝕢", Qopf: "ℚ", qprime: "⁗", qscr: "𝓆", Qscr: "𝒬", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quot: '"', QUOT: '"', rAarr: "⇛", race: "∽̱", racute: "ŕ", Racute: "Ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", Rang: "⟫", rangd: "⦒", range: "⦥", rangle: "⟩", raquo: "»", rarr: "→", rArr: "⇒", Rarr: "↠", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", Rarrtl: "⤖", rarrw: "↝", ratail: "⤚", rAtail: "⤜", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rBarr: "⤏", RBarr: "⤐", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", Rcaron: "Ř", rcedil: "ŗ", Rcedil: "Ŗ", rceil: "⌉", rcub: "}", rcy: "р", Rcy: "Р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", Re: "ℜ", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", reg: "®", REG: "®", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", Rfr: "ℜ", rHar: "⥤", rhard: "⇁", rharu: "⇀", rharul: "⥬", rho: "ρ", Rho: "Ρ", rhov: "ϱ", RightAngleBracket: "⟩", rightarrow: "→", Rightarrow: "⇒", RightArrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", rightarrowtail: "↣", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", rightthreetimes: "⋌", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", Ropf: "ℝ", roplus: "⨮", rotimes: "⨵", RoundImplies: "⥰", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", Rrightarrow: "⇛", rsaquo: "›", rscr: "𝓇", Rscr: "ℛ", rsh: "↱", Rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", RuleDelayed: "⧴", ruluhar: "⥨", rx: "℞", sacute: "ś", Sacute: "Ś", sbquo: "‚", sc: "≻", Sc: "⪼", scap: "⪸", scaron: "š", Scaron: "Š", sccue: "≽", sce: "⪰", scE: "⪴", scedil: "ş", Scedil: "Ş", scirc: "ŝ", Scirc: "Ŝ", scnap: "⪺", scnE: "⪶", scnsim: "⋩", scpolint: "⨓", scsim: "≿", scy: "с", Scy: "С", sdot: "⋅", sdotb: "⊡", sdote: "⩦", searhk: "⤥", searr: "↘", seArr: "⇘", searrow: "↘", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", sfr: "𝔰", Sfr: "𝔖", sfrown: "⌢", sharp: "♯", shchcy: "щ", SHCHcy: "Щ", shcy: "ш", SHcy: "Ш", ShortDownArrow: "↓", ShortLeftArrow: "←", shortmid: "∣", shortparallel: "∥", ShortRightArrow: "→", ShortUpArrow: "↑", shy: "", sigma: "σ", Sigma: "Σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", SmallCircle: "∘", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", SOFTcy: "Ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", Sopf: "𝕊", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", Sqrt: "√", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", square: "□", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", squarf: "▪", squf: "▪", srarr: "→", sscr: "𝓈", Sscr: "𝒮", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", star: "☆", Star: "⋆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", Sub: "⋐", subdot: "⪽", sube: "⊆", subE: "⫅", subedot: "⫃", submult: "⫁", subne: "⊊", subnE: "⫋", subplus: "⪿", subrarr: "⥹", subset: "⊂", Subset: "⋐", subseteq: "⊆", subseteqq: "⫅", SubsetEqual: "⊆", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", SuchThat: "∋", sum: "∑", Sum: "∑", sung: "♪", sup: "⊃", Sup: "⋑", sup1: "¹", sup2: "²", sup3: "³", supdot: "⪾", supdsub: "⫘", supe: "⊇", supE: "⫆", supedot: "⫄", Superset: "⊃", SupersetEqual: "⊇", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supne: "⊋", supnE: "⫌", supplus: "⫀", supset: "⊃", Supset: "⋑", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swarhk: "⤦", swarr: "↙", swArr: "⇙", swarrow: "↙", swnwar: "⤪", szlig: "ß", Tab: " ", target: "⌖", tau: "τ", Tau: "Τ", tbrk: "⎴", tcaron: "ť", Tcaron: "Ť", tcedil: "ţ", Tcedil: "Ţ", tcy: "т", Tcy: "Т", tdot: "⃛", telrec: "⌕", tfr: "𝔱", Tfr: "𝔗", there4: "∴", therefore: "∴", Therefore: "∴", theta: "θ", Theta: "Θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", ThickSpace: " ", thinsp: " ", ThinSpace: " ", thkap: "≈", thksim: "∼", thorn: "þ", THORN: "Þ", tilde: "˜", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", topf: "𝕥", Topf: "𝕋", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", TRADE: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", TripleDot: "⃛", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", Tscr: "𝒯", tscy: "ц", TScy: "Ц", tshcy: "ћ", TSHcy: "Ћ", tstrok: "ŧ", Tstrok: "Ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", uacute: "ú", Uacute: "Ú", uarr: "↑", uArr: "⇑", Uarr: "↟", Uarrocir: "⥉", ubrcy: "ў", Ubrcy: "Ў", ubreve: "ŭ", Ubreve: "Ŭ", ucirc: "û", Ucirc: "Û", ucy: "у", Ucy: "У", udarr: "⇅", udblac: "ű", Udblac: "Ű", udhar: "⥮", ufisht: "⥾", ufr: "𝔲", Ufr: "𝔘", ugrave: "ù", Ugrave: "Ù", uHar: "⥣", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", Umacr: "Ū", uml: "¨", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", uogon: "ų", Uogon: "Ų", uopf: "𝕦", Uopf: "𝕌", uparrow: "↑", Uparrow: "⇑", UpArrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", updownarrow: "↕", Updownarrow: "⇕", UpDownArrow: "↕", UpEquilibrium: "⥮", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", UpperLeftArrow: "↖", UpperRightArrow: "↗", upsi: "υ", Upsi: "ϒ", upsih: "ϒ", upsilon: "υ", Upsilon: "Υ", UpTee: "⊥", UpTeeArrow: "↥", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", Uring: "Ů", urtri: "◹", uscr: "𝓊", Uscr: "𝒰", utdot: "⋰", utilde: "ũ", Utilde: "Ũ", utri: "▵", utrif: "▴", uuarr: "⇈", uuml: "ü", Uuml: "Ü", uwangle: "⦧", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", vArr: "⇕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vBar: "⫨", Vbar: "⫫", vBarv: "⫩", vcy: "в", Vcy: "В", vdash: "⊢", vDash: "⊨", Vdash: "⊩", VDash: "⊫", Vdashl: "⫦", vee: "∨", Vee: "⋁", veebar: "⊻", veeeq: "≚", vellip: "⋮", verbar: "|", Verbar: "‖", vert: "|", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", vfr: "𝔳", Vfr: "𝔙", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", vopf: "𝕧", Vopf: "𝕍", vprop: "∝", vrtri: "⊳", vscr: "𝓋", Vscr: "𝒱", vsubne: "⊊︀", vsubnE: "⫋︀", vsupne: "⊋︀", vsupnE: "⫌︀", Vvdash: "⊪", vzigzag: "⦚", wcirc: "ŵ", Wcirc: "Ŵ", wedbar: "⩟", wedge: "∧", Wedge: "⋀", wedgeq: "≙", weierp: "℘", wfr: "𝔴", Wfr: "𝔚", wopf: "𝕨", Wopf: "𝕎", wp: "℘", wr: "≀", wreath: "≀", wscr: "𝓌", Wscr: "𝒲", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", xfr: "𝔵", Xfr: "𝔛", xharr: "⟷", xhArr: "⟺", xi: "ξ", Xi: "Ξ", xlarr: "⟵", xlArr: "⟸", xmap: "⟼", xnis: "⋻", xodot: "⨀", xopf: "𝕩", Xopf: "𝕏", xoplus: "⨁", xotime: "⨂", xrarr: "⟶", xrArr: "⟹", xscr: "𝓍", Xscr: "𝒳", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", yacute: "ý", Yacute: "Ý", yacy: "я", YAcy: "Я", ycirc: "ŷ", Ycirc: "Ŷ", ycy: "ы", Ycy: "Ы", yen: "¥", yfr: "𝔶", Yfr: "𝔜", yicy: "ї", YIcy: "Ї", yopf: "𝕪", Yopf: "𝕐", yscr: "𝓎", Yscr: "𝒴", yucy: "ю", YUcy: "Ю", yuml: "ÿ", Yuml: "Ÿ", zacute: "ź", Zacute: "Ź", zcaron: "ž", Zcaron: "Ž", zcy: "з", Zcy: "З", zdot: "ż", Zdot: "Ż", zeetrf: "ℨ", ZeroWidthSpace: "", zeta: "ζ", Zeta: "Ζ", zfr: "𝔷", Zfr: "ℨ", zhcy: "ж", ZHcy: "Ж", zigrarr: "⇝", zopf: "𝕫", Zopf: "ℤ", zscr: "𝓏", Zscr: "𝒵", zwj: "", zwnj: "" }, w = { aacute: "á", Aacute: "Á", acirc: "â", Acirc: "Â", acute: "´", aelig: "æ", AElig: "Æ", agrave: "à", Agrave: "À", amp: "&", AMP: "&", aring: "å", Aring: "Å", atilde: "ã", Atilde: "Ã", auml: "ä", Auml: "Ä", brvbar: "¦", ccedil: "ç", Ccedil: "Ç", cedil: "¸", cent: "¢", copy: "©", COPY: "©", curren: "¤", deg: "°", divide: "÷", eacute: "é", Eacute: "É", ecirc: "ê", Ecirc: "Ê", egrave: "è", Egrave: "È", eth: "ð", ETH: "Ð", euml: "ë", Euml: "Ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", GT: ">", iacute: "í", Iacute: "Í", icirc: "î", Icirc: "Î", iexcl: "¡", igrave: "ì", Igrave: "Ì", iquest: "¿", iuml: "ï", Iuml: "Ï", laquo: "«", lt: "<", LT: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", ntilde: "ñ", Ntilde: "Ñ", oacute: "ó", Oacute: "Ó", ocirc: "ô", Ocirc: "Ô", ograve: "ò", Ograve: "Ò", ordf: "ª", ordm: "º", oslash: "ø", Oslash: "Ø", otilde: "õ", Otilde: "Õ", ouml: "ö", Ouml: "Ö", para: "¶", plusmn: "±", pound: "£", quot: '"', QUOT: '"', raquo: "»", reg: "®", REG: "®", sect: "§", shy: "", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", thorn: "þ", THORN: "Þ", times: "×", uacute: "ú", Uacute: "Ú", ucirc: "û", Ucirc: "Û", ugrave: "ù", Ugrave: "Ù", uml: "¨", uuml: "ü", Uuml: "Ü", yacute: "ý", Yacute: "Ý", yen: "¥", yuml: "ÿ" }, k = { 0: "�", 128: "€", 130: "‚", 131: "ƒ", 132: "„", 133: "…", 134: "†", 135: "‡", 136: "ˆ", 137: "‰", 138: "Š", 139: "‹", 140: "Œ", 142: "Ž", 145: "‘", 146: "’", 147: "“", 148: "”", 149: "•", 150: "–", 151: "—", 152: "˜", 153: "™", 154: "š", 155: "›", 156: "œ", 158: "ž", 159: "Ÿ" }, I = [1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 64976, 64977, 64978, 64979, 64980, 64981, 64982, 64983, 64984, 64985, 64986, 64987, 64988, 64989, 64990, 64991, 64992, 64993, 64994, 64995, 64996, 64997, 64998, 64999, 65e3, 65001, 65002, 65003, 65004, 65005, 65006, 65007, 65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, 1048575, 1114110, 1114111], C = String.fromCharCode, B = {}, N = B.hasOwnProperty, q = function(J, te) {
|
|
5724
5724
|
return N.call(J, te);
|
|
5725
5725
|
}, H = function(J, te) {
|
|
5726
|
-
for (var ie = -1,
|
|
5726
|
+
for (var ie = -1, L = J.length; ++ie < L; )
|
|
5727
5727
|
if (J[ie] == te)
|
|
5728
5728
|
return !0;
|
|
5729
5729
|
return !1;
|
|
5730
5730
|
}, D = function(J, te) {
|
|
5731
5731
|
if (!J)
|
|
5732
5732
|
return te;
|
|
5733
|
-
var ie = {},
|
|
5734
|
-
for (
|
|
5735
|
-
ie[
|
|
5733
|
+
var ie = {}, L;
|
|
5734
|
+
for (L in te)
|
|
5735
|
+
ie[L] = q(J, L) ? J[L] : te[L];
|
|
5736
5736
|
return ie;
|
|
5737
5737
|
}, K = function(J, te) {
|
|
5738
5738
|
var ie = "";
|
|
@@ -5747,10 +5747,10 @@ cr.exports;
|
|
|
5747
5747
|
te = D(te, ce.options);
|
|
5748
5748
|
var ie = te.strict;
|
|
5749
5749
|
ie && T.test(J) && Z("forbidden code point");
|
|
5750
|
-
var
|
|
5750
|
+
var L = te.encodeEverything, j = te.useNamedReferences, V = te.allowUnsafeSymbols, $ = te.decimal ? ee : oe, P = function(p) {
|
|
5751
5751
|
return $(p.charCodeAt(0));
|
|
5752
5752
|
};
|
|
5753
|
-
return
|
|
5753
|
+
return L ? (J = J.replace(a, function(p) {
|
|
5754
5754
|
return j && q(c, p) ? "&" + c[p] + ";" : P(p);
|
|
5755
5755
|
}), j && (J = J.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒").replace(/fj/g, "fj")), j && (J = J.replace(f, function(p) {
|
|
5756
5756
|
return "&" + c[p] + ";";
|
|
@@ -5773,13 +5773,13 @@ cr.exports;
|
|
|
5773
5773
|
var ae = function(J, te) {
|
|
5774
5774
|
te = D(te, ae.options);
|
|
5775
5775
|
var ie = te.strict;
|
|
5776
|
-
return ie && S.test(J) && Z("malformed character reference"), J.replace(A, function(
|
|
5777
|
-
var b, x,
|
|
5778
|
-
return j ? (re = j, F[re]) : V ? (re = V, X = $, X && te.isAttributeValue ? (ie && X == "=" && Z("`&` did not start a character reference"),
|
|
5776
|
+
return ie && S.test(J) && Z("malformed character reference"), J.replace(A, function(L, j, V, $, P, p, m, R, E) {
|
|
5777
|
+
var b, x, _, W, re, X;
|
|
5778
|
+
return j ? (re = j, F[re]) : V ? (re = V, X = $, X && te.isAttributeValue ? (ie && X == "=" && Z("`&` did not start a character reference"), L) : (ie && Z(
|
|
5779
5779
|
"named character reference was not terminated by a semicolon"
|
|
5780
|
-
), w[re] + (X || ""))) : P ? (
|
|
5780
|
+
), w[re] + (X || ""))) : P ? (_ = P, x = p, ie && !x && Z("character reference was not terminated by a semicolon"), b = parseInt(_, 10), K(b, ie)) : m ? (W = m, x = R, ie && !x && Z("character reference was not terminated by a semicolon"), b = parseInt(W, 16), K(b, ie)) : (ie && Z(
|
|
5781
5781
|
"named character reference was not terminated by a semicolon"
|
|
5782
|
-
),
|
|
5782
|
+
), L);
|
|
5783
5783
|
});
|
|
5784
5784
|
};
|
|
5785
5785
|
ae.options = {
|
|
@@ -6696,7 +6696,7 @@ class zt {
|
|
|
6696
6696
|
return e.blockRange(this);
|
|
6697
6697
|
for (let n = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); n >= 0; n--)
|
|
6698
6698
|
if (e.pos <= this.end(n) && (!t || t(this.node(n))))
|
|
6699
|
-
return new
|
|
6699
|
+
return new Lc(this, e, n);
|
|
6700
6700
|
return null;
|
|
6701
6701
|
}
|
|
6702
6702
|
/**
|
|
@@ -6764,7 +6764,7 @@ class Pc {
|
|
|
6764
6764
|
}
|
|
6765
6765
|
}
|
|
6766
6766
|
const Oc = 12, io = /* @__PURE__ */ new WeakMap();
|
|
6767
|
-
class
|
|
6767
|
+
class Lc {
|
|
6768
6768
|
/**
|
|
6769
6769
|
Construct a node range. `$from` and `$to` should point into the
|
|
6770
6770
|
same node until at least the given `depth`, since a node range
|
|
@@ -6804,7 +6804,7 @@ class _c {
|
|
|
6804
6804
|
return this.$to.indexAfter(this.depth);
|
|
6805
6805
|
}
|
|
6806
6806
|
}
|
|
6807
|
-
const
|
|
6807
|
+
const _c = /* @__PURE__ */ Object.create(null);
|
|
6808
6808
|
class rt {
|
|
6809
6809
|
/**
|
|
6810
6810
|
@internal
|
|
@@ -6923,7 +6923,7 @@ class rt {
|
|
|
6923
6923
|
attributes, and marks.
|
|
6924
6924
|
*/
|
|
6925
6925
|
hasMarkup(e, t, n) {
|
|
6926
|
-
return this.type == e && fr(this.attrs, t || e.defaultAttrs ||
|
|
6926
|
+
return this.type == e && fr(this.attrs, t || e.defaultAttrs || _c) && ge.sameSet(this.marks, n || ge.none);
|
|
6927
6927
|
}
|
|
6928
6928
|
/**
|
|
6929
6929
|
Create a new node with the same markup as this node, containing
|
|
@@ -7852,7 +7852,7 @@ class Sr {
|
|
|
7852
7852
|
return this.excluded.indexOf(e) > -1;
|
|
7853
7853
|
}
|
|
7854
7854
|
}
|
|
7855
|
-
let
|
|
7855
|
+
let gp = class {
|
|
7856
7856
|
/**
|
|
7857
7857
|
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
7858
7858
|
*/
|
|
@@ -8112,7 +8112,7 @@ const Oa = {
|
|
|
8112
8112
|
script: !0,
|
|
8113
8113
|
style: !0,
|
|
8114
8114
|
title: !0
|
|
8115
|
-
},
|
|
8115
|
+
}, La = { ol: !0, ul: !0 }, Gt = 1, ci = 2, or = 4;
|
|
8116
8116
|
function uo(r, e, t) {
|
|
8117
8117
|
return e != null ? (e ? Gt : 0) | (e === "full" ? ci : 0) : r && r.whitespace == "pre" ? Gt | ci : t & -5;
|
|
8118
8118
|
}
|
|
@@ -8184,7 +8184,7 @@ class lo {
|
|
|
8184
8184
|
let i = this.localPreserveWS, s = this.top;
|
|
8185
8185
|
(e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
8186
8186
|
let o = e.nodeName.toLowerCase(), a;
|
|
8187
|
-
|
|
8187
|
+
La.hasOwnProperty(o) && this.parser.normalizeLists && Zc(e);
|
|
8188
8188
|
let u = this.options.ruleFromNode && this.options.ruleFromNode(e) || (a = this.parser.matchTag(e, this, n));
|
|
8189
8189
|
e: if (u ? u.ignore : Yc.hasOwnProperty(o))
|
|
8190
8190
|
this.findInside(e), this.ignoreFallback(e, t);
|
|
@@ -8421,7 +8421,7 @@ class lo {
|
|
|
8421
8421
|
function Zc(r) {
|
|
8422
8422
|
for (let e = r.firstChild, t = null; e; e = e.nextSibling) {
|
|
8423
8423
|
let n = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
|
|
8424
|
-
n &&
|
|
8424
|
+
n && La.hasOwnProperty(n) && t ? (t.appendChild(e), e = t) : n == "li" ? t = e : n && (t = null);
|
|
8425
8425
|
}
|
|
8426
8426
|
}
|
|
8427
8427
|
function Qc(r, e) {
|
|
@@ -8451,7 +8451,7 @@ function fo(r, e) {
|
|
|
8451
8451
|
return !0;
|
|
8452
8452
|
}
|
|
8453
8453
|
}
|
|
8454
|
-
class
|
|
8454
|
+
class _a {
|
|
8455
8455
|
/**
|
|
8456
8456
|
Create a serializer. `nodes` should map node names to functions
|
|
8457
8457
|
that take a node and return a description of the corresponding
|
|
@@ -8538,7 +8538,7 @@ class La {
|
|
|
8538
8538
|
properties in a schema's node and mark specs.
|
|
8539
8539
|
*/
|
|
8540
8540
|
static fromSchema(e) {
|
|
8541
|
-
return e.cached.domSerializer || (e.cached.domSerializer = new
|
|
8541
|
+
return e.cached.domSerializer || (e.cached.domSerializer = new _a(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
8542
8542
|
}
|
|
8543
8543
|
/**
|
|
8544
8544
|
Gather the serializers in a schema's node specs into an object.
|
|
@@ -9310,7 +9310,7 @@ function Bi(r, e, t, n = t.contentMatch, i = !0) {
|
|
|
9310
9310
|
function af(r, e, t) {
|
|
9311
9311
|
return (e == 0 || r.canReplace(e, r.childCount)) && (t == r.childCount || r.canReplace(0, t));
|
|
9312
9312
|
}
|
|
9313
|
-
function
|
|
9313
|
+
function yp(r) {
|
|
9314
9314
|
let t = r.parent.content.cutByIndex(r.startIndex, r.endIndex);
|
|
9315
9315
|
for (let n = r.depth; ; --n) {
|
|
9316
9316
|
let i = r.$from.node(n), s = r.$from.index(n), o = r.$to.indexAfter(n);
|
|
@@ -9330,7 +9330,7 @@ function uf(r, e, t) {
|
|
|
9330
9330
|
A || i.after(T + 1) < i.end(T) ? (A = !0, h = Q.from(i.node(T).copy(h)), S++) : f++;
|
|
9331
9331
|
r.step(new Je(u, f, o, a, new ue(c.append(h), g, S), c.size - g, !0));
|
|
9332
9332
|
}
|
|
9333
|
-
function
|
|
9333
|
+
function bp(r, e, t = null, n = r) {
|
|
9334
9334
|
let i = lf(r, e), s = i && cf(n, e);
|
|
9335
9335
|
return s ? i.map(go).concat({ type: e, attrs: t }).concat(s.map(go)) : null;
|
|
9336
9336
|
}
|
|
@@ -9420,7 +9420,7 @@ function pf(r, e, t, n, i) {
|
|
|
9420
9420
|
throw new RangeError("Invalid content for node type " + t.name);
|
|
9421
9421
|
r.step(new Je(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new ue(Q.from(o), 0, 0), 1, !0));
|
|
9422
9422
|
}
|
|
9423
|
-
function
|
|
9423
|
+
function xp(r, e, t = 1, n) {
|
|
9424
9424
|
let i = r.resolve(e), s = i.depth - t, o = n && n[n.length - 1] || i.parent;
|
|
9425
9425
|
if (s < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !o.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount)))
|
|
9426
9426
|
return !1;
|
|
@@ -9446,7 +9446,7 @@ function hf(r, e, t = 1, n) {
|
|
|
9446
9446
|
}
|
|
9447
9447
|
r.step(new Ie(e, e, new ue(s.append(o), t, t), !0));
|
|
9448
9448
|
}
|
|
9449
|
-
function
|
|
9449
|
+
function Ap(r, e) {
|
|
9450
9450
|
let t = r.resolve(e), n = t.index();
|
|
9451
9451
|
return Ga(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(n, n + 1);
|
|
9452
9452
|
}
|
|
@@ -9463,7 +9463,7 @@ function gf(r, e) {
|
|
|
9463
9463
|
function Ga(r, e) {
|
|
9464
9464
|
return !!(r && e && !r.isLeaf && gf(r, e));
|
|
9465
9465
|
}
|
|
9466
|
-
function
|
|
9466
|
+
function Dp(r, e, t = -1) {
|
|
9467
9467
|
let n = r.resolve(e);
|
|
9468
9468
|
for (let i = n.depth; ; i--) {
|
|
9469
9469
|
let s, o, a = n.index(i);
|
|
@@ -9515,7 +9515,7 @@ function yf(r, e, t) {
|
|
|
9515
9515
|
}
|
|
9516
9516
|
return null;
|
|
9517
9517
|
}
|
|
9518
|
-
function
|
|
9518
|
+
function Ep(r, e, t) {
|
|
9519
9519
|
let n = r.resolve(e);
|
|
9520
9520
|
if (!t.content.size)
|
|
9521
9521
|
return e;
|
|
@@ -10885,7 +10885,7 @@ function Xa(r, e, t) {
|
|
|
10885
10885
|
}
|
|
10886
10886
|
return t;
|
|
10887
10887
|
}
|
|
10888
|
-
class
|
|
10888
|
+
class vp {
|
|
10889
10889
|
/**
|
|
10890
10890
|
Create a plugin.
|
|
10891
10891
|
*/
|
|
@@ -10903,7 +10903,7 @@ const si = /* @__PURE__ */ Object.create(null);
|
|
|
10903
10903
|
function Ya(r) {
|
|
10904
10904
|
return r in si ? r + "$" + ++si[r] : (si[r] = 0, r + "$");
|
|
10905
10905
|
}
|
|
10906
|
-
class
|
|
10906
|
+
class Cp {
|
|
10907
10907
|
/**
|
|
10908
10908
|
Create a plugin key.
|
|
10909
10909
|
*/
|
|
@@ -10924,7 +10924,7 @@ class Dp {
|
|
|
10924
10924
|
return e[this.key];
|
|
10925
10925
|
}
|
|
10926
10926
|
}
|
|
10927
|
-
const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`),
|
|
10927
|
+
const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Sp = (r) => Za(r), Tp = Object.freeze({
|
|
10928
10928
|
RESOLVED: "resolved",
|
|
10929
10929
|
NEW: "new",
|
|
10930
10930
|
ADD: "add",
|
|
@@ -10937,7 +10937,7 @@ const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Ep = (r) =>
|
|
|
10937
10937
|
// Tracked changes
|
|
10938
10938
|
CHANGE_ACCEPTED: "change-accepted",
|
|
10939
10939
|
CHANGE_REJECTED: "change-rejected"
|
|
10940
|
-
}),
|
|
10940
|
+
}), Fp = {
|
|
10941
10941
|
mounted(r, e, t) {
|
|
10942
10942
|
const n = (i) => {
|
|
10943
10943
|
r.contains(i.target) || e.value(i);
|
|
@@ -10948,20 +10948,20 @@ const Za = (r) => r.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Ep = (r) =>
|
|
|
10948
10948
|
document.removeEventListener("click", r.__clickOutsideHandler), delete r.__clickOutsideHandler;
|
|
10949
10949
|
}
|
|
10950
10950
|
};
|
|
10951
|
-
function
|
|
10951
|
+
function Bp(r, e = null, ...t) {
|
|
10952
10952
|
return typeof r == "function" ? e ? r.bind(e)(...t) : r(...t) : r;
|
|
10953
10953
|
}
|
|
10954
|
-
function
|
|
10954
|
+
function kp(r = {}) {
|
|
10955
10955
|
return Object.keys(r).length === 0 && r.constructor === Object;
|
|
10956
10956
|
}
|
|
10957
|
-
const
|
|
10957
|
+
const Np = () => typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1, Ip = () => ["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
|
|
10958
10958
|
navigator.platform
|
|
10959
10959
|
), Nf = (r) => Object.prototype.toString.call(r) === "[object RegExp]";
|
|
10960
10960
|
function If(r, e, t = { strict: !0 }) {
|
|
10961
10961
|
const n = Object.keys(e);
|
|
10962
10962
|
return n.length ? n.every((i) => t.strict ? e[i] === r[i] : Nf(e[i]) ? e[i].test(r[i]) : e[i] === r[i]) : !0;
|
|
10963
10963
|
}
|
|
10964
|
-
function
|
|
10964
|
+
function Rp(r, e) {
|
|
10965
10965
|
const n = typeof e == "string" ? [e] : e;
|
|
10966
10966
|
return Object.keys(r).reduce((i, s) => (n.includes(s) || (i[s] = r[s]), i), {});
|
|
10967
10967
|
}
|
|
@@ -10970,7 +10970,7 @@ function Of(r = "0") {
|
|
|
10970
10970
|
const e = r.toString() || "0", t = Number.parseFloat(e), i = (e.match(Rf)?.[1] ?? "").toLowerCase();
|
|
10971
10971
|
return [t, Pf.includes(i) ? i : null];
|
|
10972
10972
|
}
|
|
10973
|
-
function
|
|
10973
|
+
function Pp(r = 0, e = 0, t = 0) {
|
|
10974
10974
|
return Math.min(Math.max(r, e), t);
|
|
10975
10975
|
}
|
|
10976
10976
|
function Ft(r) {
|
|
@@ -10997,7 +10997,7 @@ function mi(r) {
|
|
|
10997
10997
|
if (r != null)
|
|
10998
10998
|
return r * 240;
|
|
10999
10999
|
}
|
|
11000
|
-
function
|
|
11000
|
+
function Lf(r) {
|
|
11001
11001
|
if (r != null)
|
|
11002
11002
|
return Math.round(r / 2);
|
|
11003
11003
|
}
|
|
@@ -11022,11 +11022,11 @@ function tu(r) {
|
|
|
11022
11022
|
if (r != null)
|
|
11023
11023
|
return r / 20;
|
|
11024
11024
|
}
|
|
11025
|
-
function
|
|
11025
|
+
function _f(r) {
|
|
11026
11026
|
if (r != null)
|
|
11027
11027
|
return r * 20;
|
|
11028
11028
|
}
|
|
11029
|
-
const qf = async (r) => await (await fetch(r)).arrayBuffer(),
|
|
11029
|
+
const qf = async (r) => await (await fetch(r)).arrayBuffer(), Op = (r) => {
|
|
11030
11030
|
const n = new window.DOMParser().parseFromString(r, "text/xml").querySelectorAll("Default");
|
|
11031
11031
|
return Array.from(n).map((i) => i.getAttribute("Extension"));
|
|
11032
11032
|
}, Mf = (r) => (/* @__PURE__ */ new Map([
|
|
@@ -11062,7 +11062,7 @@ function Uf(r) {
|
|
|
11062
11062
|
const jf = (r) => {
|
|
11063
11063
|
const e = Number(r).toString(16);
|
|
11064
11064
|
return e.length === 1 ? "0" + e : e;
|
|
11065
|
-
}, Hf = (r) => "#" + r.match(/\d+/g).map(jf).join(""),
|
|
11065
|
+
}, Hf = (r) => "#" + r.match(/\d+/g).map(jf).join(""), Lp = (r, e) => {
|
|
11066
11066
|
let [t, n] = Of(r);
|
|
11067
11067
|
return Number.isNaN(t) ? {} : (n = n || e, t += n ? 4 : 0.2, `line-height: ${t}${n}`);
|
|
11068
11068
|
};
|
|
@@ -12289,6 +12289,14 @@ const Vf = {
|
|
|
12289
12289
|
console.error("Error in carbonCopy", r, e);
|
|
12290
12290
|
return;
|
|
12291
12291
|
}
|
|
12292
|
+
}, Qf = {
|
|
12293
|
+
attributes: {
|
|
12294
|
+
"w:abstractNumId": "1"
|
|
12295
|
+
}
|
|
12296
|
+
}, ed = {
|
|
12297
|
+
attributes: {
|
|
12298
|
+
"w:abstractNumId": "0"
|
|
12299
|
+
}
|
|
12292
12300
|
}, nu = {
|
|
12293
12301
|
declaration: {
|
|
12294
12302
|
attributes: {
|
|
@@ -13539,7 +13547,7 @@ function Co(r, e) {
|
|
|
13539
13547
|
u && (f = r.comments.find((S) => S.commentId === u || S.importedId === u));
|
|
13540
13548
|
const c = f?.isInternal || o.isInternal;
|
|
13541
13549
|
if (n === "external" && c || !!o.resolvedTime) return;
|
|
13542
|
-
let h =
|
|
13550
|
+
let h = td(e, a);
|
|
13543
13551
|
if (e === "End") {
|
|
13544
13552
|
const S = {
|
|
13545
13553
|
name: "w:r",
|
|
@@ -13549,21 +13557,21 @@ function Co(r, e) {
|
|
|
13549
13557
|
}
|
|
13550
13558
|
return h;
|
|
13551
13559
|
}
|
|
13552
|
-
const
|
|
13560
|
+
const td = (r, e) => ({
|
|
13553
13561
|
name: `w:commentRange${r}`,
|
|
13554
13562
|
attributes: {
|
|
13555
13563
|
"w:id": String(e)
|
|
13556
13564
|
}
|
|
13557
|
-
}),
|
|
13565
|
+
}), rd = (r) => ({
|
|
13558
13566
|
...r,
|
|
13559
13567
|
commentParaId: ru()
|
|
13560
|
-
}),
|
|
13568
|
+
}), nd = (r, e, t) => {
|
|
13561
13569
|
const n = su({ node: r.commentJSON }), i = {
|
|
13562
13570
|
"w:id": String(e),
|
|
13563
13571
|
"w:author": r.creatorName || r.importedAuthor?.name,
|
|
13564
13572
|
"w:email": r.creatorEmail || r.importedAuthor?.email,
|
|
13565
13573
|
"w:date": iu(r.createdTime),
|
|
13566
|
-
"w:initials":
|
|
13574
|
+
"w:initials": id(r.creatorName),
|
|
13567
13575
|
"w:done": r.resolvedTime ? "1" : "0",
|
|
13568
13576
|
"w15:paraId": r.commentParaId,
|
|
13569
13577
|
"custom:internalId": r.commentId || r.internalId,
|
|
@@ -13582,7 +13590,7 @@ const Qf = (r, e) => ({
|
|
|
13582
13590
|
attributes: i,
|
|
13583
13591
|
elements: [n]
|
|
13584
13592
|
};
|
|
13585
|
-
},
|
|
13593
|
+
}, id = (r) => r ? r.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, iu = (r) => new Date(r || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), sd = (r = [], e) => {
|
|
13586
13594
|
const t = je(e);
|
|
13587
13595
|
return r.forEach((n) => {
|
|
13588
13596
|
n.elements[0].elements.unshift(Wf);
|
|
@@ -13601,7 +13609,7 @@ const Qf = (r, e) => ({
|
|
|
13601
13609
|
"xmlns:custom": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
13602
13610
|
};
|
|
13603
13611
|
}), t.elements[0].elements = r, t;
|
|
13604
|
-
},
|
|
13612
|
+
}, od = (r = [], e) => {
|
|
13605
13613
|
const t = je(e), n = r.map((i) => {
|
|
13606
13614
|
const s = {
|
|
13607
13615
|
"w15:paraId": i.commentParaId,
|
|
@@ -13618,7 +13626,7 @@ const Qf = (r, e) => ({
|
|
|
13618
13626
|
};
|
|
13619
13627
|
});
|
|
13620
13628
|
return t.elements[0].elements = n, t;
|
|
13621
|
-
},
|
|
13629
|
+
}, ad = (r = [], e, t) => {
|
|
13622
13630
|
const n = je(e), i = je(t);
|
|
13623
13631
|
return n.elements[0].elements = [], i.elements[0].elements = [], r.forEach((s) => {
|
|
13624
13632
|
const o = ru(), a = {
|
|
@@ -13643,13 +13651,13 @@ const Qf = (r, e) => ({
|
|
|
13643
13651
|
documentIdsUpdated: n,
|
|
13644
13652
|
extensibleUpdated: i
|
|
13645
13653
|
};
|
|
13646
|
-
},
|
|
13654
|
+
}, ud = (r) => {
|
|
13647
13655
|
const e = je(r);
|
|
13648
13656
|
return e["word/comments.xml"] = xt.COMMENTS_XML_DEF, e["word/commentsExtended.xml"] = xt.COMMENTS_EXTENDED_XML_DEF, e["word/commentsExtensible.xml"] = xt.COMMENTS_EXTENSIBLE_XML_DEF, e["word/commentsIds.xml"] = xt.COMMENTS_IDS_XML_DEF, e["[Content_Types].xml"] = xt.CONTENT_TYPES, e;
|
|
13649
|
-
},
|
|
13657
|
+
}, ld = (r) => {
|
|
13650
13658
|
const e = je(r);
|
|
13651
13659
|
return delete e["word/comments.xml"], delete e["word/commentsExtended.xml"], delete e["word/commentsExtensible.xml"], delete e["word/commentsIds.xml"], e;
|
|
13652
|
-
}, nr = (r) => ({ ...xt.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r) }),
|
|
13660
|
+
}, nr = (r) => ({ ...xt.DOCUMENT_RELS_XML_DEF.elements[0].elements.find((n) => n.attributes.Target === r) }), cd = ({
|
|
13653
13661
|
convertedXml: r,
|
|
13654
13662
|
defs: e,
|
|
13655
13663
|
commentsWithParaIds: t,
|
|
@@ -13658,16 +13666,16 @@ const Qf = (r, e) => ({
|
|
|
13658
13666
|
}) => {
|
|
13659
13667
|
const s = [];
|
|
13660
13668
|
if (n === "clean")
|
|
13661
|
-
return { documentXml:
|
|
13662
|
-
const o =
|
|
13663
|
-
o["word/comments.xml"] =
|
|
13669
|
+
return { documentXml: ld(r), relationships: s };
|
|
13670
|
+
const o = ud(r);
|
|
13671
|
+
o["word/comments.xml"] = sd(
|
|
13664
13672
|
e,
|
|
13665
13673
|
o["word/comments.xml"]
|
|
13666
|
-
), s.push(nr("comments.xml")), o["word/commentsExtended.xml"] =
|
|
13674
|
+
), s.push(nr("comments.xml")), o["word/commentsExtended.xml"] = od(
|
|
13667
13675
|
t,
|
|
13668
13676
|
o["word/commentsExtended.xml"]
|
|
13669
13677
|
), s.push(nr("commentsExtended.xml"));
|
|
13670
|
-
const { documentIdsUpdated: a, extensibleUpdated: u } =
|
|
13678
|
+
const { documentIdsUpdated: a, extensibleUpdated: u } = ad(
|
|
13671
13679
|
t,
|
|
13672
13680
|
o["word/commentsIds.xml"],
|
|
13673
13681
|
o["word/commentsExtensible.xml"]
|
|
@@ -13676,7 +13684,7 @@ const Qf = (r, e) => ({
|
|
|
13676
13684
|
relationships: s,
|
|
13677
13685
|
documentXml: o
|
|
13678
13686
|
};
|
|
13679
|
-
},
|
|
13687
|
+
}, fd = (r, e) => e ? ["width", `${Math.max(e, r)}px`] : ["min-width", `${r}px`], dd = (r, e, t, n) => {
|
|
13680
13688
|
let i = 0, s = !0;
|
|
13681
13689
|
const o = [], a = [], u = r.firstChild;
|
|
13682
13690
|
if (!u) return {};
|
|
@@ -13685,7 +13693,7 @@ const Qf = (r, e) => ({
|
|
|
13685
13693
|
for (let w = 0; w < A; w++, T++) {
|
|
13686
13694
|
const k = t === T ? n : F && F[w];
|
|
13687
13695
|
i += k || e, k || (s = !1);
|
|
13688
|
-
const [I, C] =
|
|
13696
|
+
const [I, C] = fd(e, k);
|
|
13689
13697
|
o.push(["col", { style: `${I}: ${C}` }]), a.push(parseInt(C, 10));
|
|
13690
13698
|
}
|
|
13691
13699
|
}
|
|
@@ -13699,28 +13707,28 @@ const Qf = (r, e) => ({
|
|
|
13699
13707
|
};
|
|
13700
13708
|
function Pt(r) {
|
|
13701
13709
|
const { type: e } = r.node || {}, t = {
|
|
13702
|
-
doc:
|
|
13703
|
-
body:
|
|
13710
|
+
doc: hd,
|
|
13711
|
+
body: md,
|
|
13704
13712
|
paragraph: su,
|
|
13705
|
-
text:
|
|
13713
|
+
text: gd,
|
|
13706
13714
|
bulletList: To,
|
|
13707
13715
|
orderedList: To,
|
|
13708
|
-
lineBreak:
|
|
13709
|
-
table:
|
|
13710
|
-
tableRow:
|
|
13711
|
-
tableCell:
|
|
13712
|
-
bookmarkStart:
|
|
13713
|
-
fieldAnnotation:
|
|
13714
|
-
tab:
|
|
13716
|
+
lineBreak: vd,
|
|
13717
|
+
table: Cd,
|
|
13718
|
+
tableRow: Nd,
|
|
13719
|
+
tableCell: Rd,
|
|
13720
|
+
bookmarkStart: Ld,
|
|
13721
|
+
fieldAnnotation: zd,
|
|
13722
|
+
tab: Td,
|
|
13715
13723
|
image: uu,
|
|
13716
|
-
hardBreak:
|
|
13724
|
+
hardBreak: Gd,
|
|
13717
13725
|
commentRangeStart: () => Co(r, "Start"),
|
|
13718
13726
|
commentRangeEnd: () => Co(r, "End"),
|
|
13719
13727
|
commentReference: () => null
|
|
13720
13728
|
};
|
|
13721
13729
|
return t[e] ? t[e](r) : (console.error("No translation function found for node type:", e), null);
|
|
13722
13730
|
}
|
|
13723
|
-
function
|
|
13731
|
+
function md(r) {
|
|
13724
13732
|
const e = r.bodyNode?.elements.find((n) => n.name === "w:sectPr") || {};
|
|
13725
13733
|
if (r.converter) {
|
|
13726
13734
|
const n = r.converter.pageStyles.pageMargins, i = e.elements.find((o) => o.name === "w:pgMar"), { attributes: s } = i;
|
|
@@ -13738,7 +13746,7 @@ function su(r) {
|
|
|
13738
13746
|
const e = Ot(r), t = e.find((s) => s.name === "htmlAnnotation");
|
|
13739
13747
|
if (e.length === 1 && t)
|
|
13740
13748
|
return t.elements;
|
|
13741
|
-
const n =
|
|
13749
|
+
const n = pd(r.node);
|
|
13742
13750
|
n && e.unshift(n);
|
|
13743
13751
|
let i = {};
|
|
13744
13752
|
return r.node.attrs?.rsidRDefault && (i["w:rsidRDefault"] = r.node.attrs.rsidRDefault), {
|
|
@@ -13747,13 +13755,13 @@ function su(r) {
|
|
|
13747
13755
|
attributes: i
|
|
13748
13756
|
};
|
|
13749
13757
|
}
|
|
13750
|
-
function
|
|
13758
|
+
function pd(r) {
|
|
13751
13759
|
const { attrs: e = {} } = r, t = [], { styleId: n } = e;
|
|
13752
13760
|
n && t.push({ name: "w:pStyle", attributes: { "w:val": n } });
|
|
13753
13761
|
const { spacing: i, indent: s, textAlign: o, textIndent: a, lineHeight: u, marksAttrs: f, keepLines: c, keepNext: g } = e;
|
|
13754
13762
|
if (i) {
|
|
13755
13763
|
const { lineSpaceBefore: h, lineSpaceAfter: S, line: T, lineRule: A } = i, F = {};
|
|
13756
|
-
h >= 0 && (F["w:before"] = Se(h)), S >= 0 && (F["w:after"] = Se(S)), A === "exact" ? u && (F["w:line"] =
|
|
13764
|
+
h >= 0 && (F["w:before"] = Se(h)), S >= 0 && (F["w:after"] = Se(S)), A === "exact" ? u && (F["w:line"] = _f(parseFloat(u))) : u && (F["w:line"] = mi(u)), F["w:lineRule"] = A || "auto";
|
|
13757
13765
|
const w = {
|
|
13758
13766
|
name: "w:spacing",
|
|
13759
13767
|
attributes: F
|
|
@@ -13808,7 +13816,7 @@ function dd(r) {
|
|
|
13808
13816
|
elements: t
|
|
13809
13817
|
} : null;
|
|
13810
13818
|
}
|
|
13811
|
-
function
|
|
13819
|
+
function hd(r) {
|
|
13812
13820
|
const e = {
|
|
13813
13821
|
type: "body",
|
|
13814
13822
|
content: r.node.content
|
|
@@ -13836,14 +13844,14 @@ function Fr(r, e) {
|
|
|
13836
13844
|
attributes: i
|
|
13837
13845
|
}, s);
|
|
13838
13846
|
}
|
|
13839
|
-
function
|
|
13847
|
+
function gd(r) {
|
|
13840
13848
|
const { node: e } = r, t = [yr, Ri];
|
|
13841
|
-
if (e.marks?.some((a) => t.includes(a.type))) return
|
|
13842
|
-
if (e.marks?.some((a) => a.type === "link")) return
|
|
13849
|
+
if (e.marks?.some((a) => t.includes(a.type))) return yd(r);
|
|
13850
|
+
if (e.marks?.some((a) => a.type === "link")) return bd(r);
|
|
13843
13851
|
const { text: s, marks: o = [] } = e;
|
|
13844
13852
|
return Fr(s, o);
|
|
13845
13853
|
}
|
|
13846
|
-
function
|
|
13854
|
+
function wd(r) {
|
|
13847
13855
|
const e = r.find((t) => t.type === Pi);
|
|
13848
13856
|
if (e)
|
|
13849
13857
|
return {
|
|
@@ -13858,8 +13866,8 @@ function hd(r) {
|
|
|
13858
13866
|
elements: e.attrs.before.map((n) => Br([n])).filter((n) => n !== void 0)
|
|
13859
13867
|
};
|
|
13860
13868
|
}
|
|
13861
|
-
function
|
|
13862
|
-
const { node: e } = r, t = e.marks, n = [yr, Ri, Pi], i = t.find((f) => n.includes(f.type)), s = i.type === yr, o =
|
|
13869
|
+
function yd(r) {
|
|
13870
|
+
const { node: e } = r, t = e.marks, n = [yr, Ri, Pi], i = t.find((f) => n.includes(f.type)), s = i.type === yr, o = wd(t);
|
|
13863
13871
|
e.marks = t.filter((f) => !n.includes(f.type)), o && e.marks.push(o);
|
|
13864
13872
|
const a = Pt({ ...r, node: e });
|
|
13865
13873
|
if (!s) {
|
|
@@ -13897,7 +13905,7 @@ function Br(r = []) {
|
|
|
13897
13905
|
return Fo(i);
|
|
13898
13906
|
}) : Fo(e));
|
|
13899
13907
|
}
|
|
13900
|
-
function
|
|
13908
|
+
function bd(r) {
|
|
13901
13909
|
const { node: e } = r, t = e.marks.find((a) => a.type === "link"), n = t.attrs.href;
|
|
13902
13910
|
let i = t.attrs.rId;
|
|
13903
13911
|
i || (i = au(r, n)), e.marks = e.marks.filter((a) => a.type !== "link");
|
|
@@ -13937,9 +13945,9 @@ function So(r, e) {
|
|
|
13937
13945
|
return r.relationships.push(n), t;
|
|
13938
13946
|
}
|
|
13939
13947
|
function To(r) {
|
|
13940
|
-
const { type: e } = r.node, t =
|
|
13948
|
+
const { type: e } = r.node, t = Ed(r), n = [];
|
|
13941
13949
|
return t.forEach((i) => {
|
|
13942
|
-
const { level: s, listType: o, pPrs: a, content: u, attrs: f = {} } = i, h = (i.attrs.numId || i.listId) ??
|
|
13950
|
+
const { level: s, listType: o, pPrs: a, content: u, attrs: f = {} } = i, h = (i.attrs.numId || i.listId) ?? xd(r, o), S = Dd(s, h, a);
|
|
13943
13951
|
u.forEach((T, A) => {
|
|
13944
13952
|
const F = Object.assign({}, T);
|
|
13945
13953
|
F.attrs = {
|
|
@@ -13975,30 +13983,22 @@ function To(r) {
|
|
|
13975
13983
|
});
|
|
13976
13984
|
}), n;
|
|
13977
13985
|
}
|
|
13978
|
-
function
|
|
13979
|
-
const t = {
|
|
13980
|
-
...definition,
|
|
13981
|
-
attributes: {
|
|
13982
|
-
...definition.attributes,
|
|
13983
|
-
"w:abstractNumId": r
|
|
13984
|
-
}
|
|
13985
|
-
}, n = {
|
|
13986
|
+
function xd(r, e) {
|
|
13987
|
+
const t = Ad(r.converter?.numbering?.definitions), n = e === "bullet" ? ed : Qf, i = t, s = n.attributes["w:abstractNumId"], o = {
|
|
13986
13988
|
type: "element",
|
|
13987
13989
|
name: "w:num",
|
|
13988
13990
|
attributes: {
|
|
13989
|
-
"w:numId": String(
|
|
13991
|
+
"w:numId": String(i),
|
|
13990
13992
|
"w16cid:durableId": "485517411"
|
|
13991
13993
|
},
|
|
13992
13994
|
elements: [
|
|
13993
|
-
{ name: "w:abstractNumId", attributes: { "w:val": String(
|
|
13995
|
+
{ name: "w:abstractNumId", attributes: { "w:val": String(s) } }
|
|
13994
13996
|
]
|
|
13995
13997
|
};
|
|
13996
|
-
return
|
|
13997
|
-
newAbstractDef: t,
|
|
13998
|
-
newNumDef: n
|
|
13999
|
-
};
|
|
13998
|
+
return r.converter.numbering.definitions[i] = o, i;
|
|
14000
13999
|
}
|
|
14001
|
-
|
|
14000
|
+
const Ad = (r) => !r || !Object.keys(r).length ? 0 : Math.max(...Object.keys(r).map((t) => parseInt(t, 10))) + 1;
|
|
14001
|
+
function Dd(r, e, t = []) {
|
|
14002
14002
|
return {
|
|
14003
14003
|
name: "w:pPr",
|
|
14004
14004
|
type: "element",
|
|
@@ -14023,7 +14023,7 @@ function bd(r, e, t = []) {
|
|
|
14023
14023
|
]
|
|
14024
14024
|
};
|
|
14025
14025
|
}
|
|
14026
|
-
function
|
|
14026
|
+
function Ed({ node: r }) {
|
|
14027
14027
|
const { content: e, attrs: t = {} } = r, { listId: n, syncId: i } = r.attrs || {}, s = r.attrs["list-style-type"], { attributes: o = {} } = t, a = o?.parentAttributes?.paragraphProperties?.elements?.filter((c) => c.name !== "w:numPr") || [], u = [];
|
|
14028
14028
|
function f(c, g = 0) {
|
|
14029
14029
|
!c || !c.length || c.forEach((h) => {
|
|
@@ -14044,22 +14044,22 @@ function xd({ node: r }) {
|
|
|
14044
14044
|
}
|
|
14045
14045
|
return f(e), u;
|
|
14046
14046
|
}
|
|
14047
|
-
function
|
|
14047
|
+
function vd(r) {
|
|
14048
14048
|
const e = {}, { lineBreakType: t } = r.node?.attrs || {};
|
|
14049
14049
|
return t && (e["w:type"] = t), {
|
|
14050
14050
|
name: "w:br",
|
|
14051
14051
|
attributes: e
|
|
14052
14052
|
};
|
|
14053
14053
|
}
|
|
14054
|
-
function
|
|
14055
|
-
r.node =
|
|
14056
|
-
const e = Ot(r), t =
|
|
14054
|
+
function Cd(r) {
|
|
14055
|
+
r.node = Sd(r.node, r);
|
|
14056
|
+
const e = Ot(r), t = Fd(r.node), n = kd(r.node, r);
|
|
14057
14057
|
return e.unshift(t), e.unshift(n), {
|
|
14058
14058
|
name: "w:tbl",
|
|
14059
14059
|
elements: e
|
|
14060
14060
|
};
|
|
14061
14061
|
}
|
|
14062
|
-
function
|
|
14062
|
+
function Sd(r, { editorSchema: e }) {
|
|
14063
14063
|
const { content: t } = r;
|
|
14064
14064
|
for (let n = 0; n < t.length; n++) {
|
|
14065
14065
|
const i = t[n];
|
|
@@ -14095,13 +14095,13 @@ function Ed(r, { editorSchema: e }) {
|
|
|
14095
14095
|
}
|
|
14096
14096
|
return r;
|
|
14097
14097
|
}
|
|
14098
|
-
function
|
|
14098
|
+
function Td(r) {
|
|
14099
14099
|
const { marks: e = [] } = r.node, t = Br(e);
|
|
14100
14100
|
return Oi({
|
|
14101
14101
|
name: "w:tab"
|
|
14102
14102
|
}, t);
|
|
14103
14103
|
}
|
|
14104
|
-
function
|
|
14104
|
+
function Fd(r) {
|
|
14105
14105
|
const e = [], { attrs: t } = r, { tableWidth: n, tableWidthType: i, tableStyleId: s, borders: o, tableIndent: a, tableLayout: u, tableCellSpacing: f } = t;
|
|
14106
14106
|
if (s) {
|
|
14107
14107
|
const c = {
|
|
@@ -14111,7 +14111,7 @@ function Cd(r) {
|
|
|
14111
14111
|
e.push(c);
|
|
14112
14112
|
}
|
|
14113
14113
|
if (o) {
|
|
14114
|
-
const c =
|
|
14114
|
+
const c = Bd(r);
|
|
14115
14115
|
e.push(c);
|
|
14116
14116
|
}
|
|
14117
14117
|
if (a) {
|
|
@@ -14146,7 +14146,7 @@ function Cd(r) {
|
|
|
14146
14146
|
elements: e
|
|
14147
14147
|
};
|
|
14148
14148
|
}
|
|
14149
|
-
function
|
|
14149
|
+
function Bd(r) {
|
|
14150
14150
|
const { borders: e } = r.attrs, t = [];
|
|
14151
14151
|
return e ? (["top", "bottom", "left", "right", "insideH", "insideV"].forEach((i) => {
|
|
14152
14152
|
const s = e[i];
|
|
@@ -14170,11 +14170,11 @@ function Sd(r) {
|
|
|
14170
14170
|
elements: t
|
|
14171
14171
|
}) : void 0;
|
|
14172
14172
|
}
|
|
14173
|
-
function
|
|
14173
|
+
function kd(r, e) {
|
|
14174
14174
|
const { editorSchema: t } = e;
|
|
14175
14175
|
let n = [];
|
|
14176
14176
|
try {
|
|
14177
|
-
const s = t.nodeFromJSON(r), o = 25, { colgroupValues: a } =
|
|
14177
|
+
const s = t.nodeFromJSON(r), o = 25, { colgroupValues: a } = dd(
|
|
14178
14178
|
s,
|
|
14179
14179
|
o
|
|
14180
14180
|
);
|
|
@@ -14193,14 +14193,14 @@ function Td(r, e) {
|
|
|
14193
14193
|
elements: i
|
|
14194
14194
|
};
|
|
14195
14195
|
}
|
|
14196
|
-
function
|
|
14197
|
-
const e = Ot(r), t =
|
|
14196
|
+
function Nd(r) {
|
|
14197
|
+
const e = Ot(r), t = Id(r.node);
|
|
14198
14198
|
return t.elements.length && e.unshift(t), {
|
|
14199
14199
|
name: "w:tr",
|
|
14200
14200
|
elements: e
|
|
14201
14201
|
};
|
|
14202
14202
|
}
|
|
14203
|
-
function
|
|
14203
|
+
function Id(r) {
|
|
14204
14204
|
const { attrs: e } = r, t = [], { rowHeight: n, rowHeightType: i } = e;
|
|
14205
14205
|
if (n) {
|
|
14206
14206
|
const s = { "w:val": Se(n) };
|
|
@@ -14216,17 +14216,17 @@ function Bd(r) {
|
|
|
14216
14216
|
elements: t
|
|
14217
14217
|
};
|
|
14218
14218
|
}
|
|
14219
|
-
function
|
|
14219
|
+
function Rd(r) {
|
|
14220
14220
|
const e = Ot({
|
|
14221
14221
|
...r,
|
|
14222
14222
|
tableCell: r.node
|
|
14223
|
-
}), t =
|
|
14223
|
+
}), t = Pd(r.node);
|
|
14224
14224
|
return e.unshift(t), {
|
|
14225
14225
|
name: "w:tc",
|
|
14226
14226
|
elements: e
|
|
14227
14227
|
};
|
|
14228
14228
|
}
|
|
14229
|
-
function
|
|
14229
|
+
function Pd(r) {
|
|
14230
14230
|
const e = [], { attrs: t } = r, { colwidth: n = [], cellWidthType: i = "dxa", background: s = {}, colspan: o, rowspan: a, widthUnit: u } = t, f = n.reduce((A, F) => A + F, 0), c = {
|
|
14231
14231
|
name: "w:tcW",
|
|
14232
14232
|
attributes: { "w:w": u === "px" ? Se(f) : Ft(f), "w:type": i }
|
|
@@ -14250,7 +14250,7 @@ function Nd(r) {
|
|
|
14250
14250
|
if (h) {
|
|
14251
14251
|
const A = {
|
|
14252
14252
|
name: "w:tcMar",
|
|
14253
|
-
elements:
|
|
14253
|
+
elements: Od(h)
|
|
14254
14254
|
};
|
|
14255
14255
|
e.push(A);
|
|
14256
14256
|
}
|
|
@@ -14302,11 +14302,11 @@ function Nd(r) {
|
|
|
14302
14302
|
elements: e
|
|
14303
14303
|
};
|
|
14304
14304
|
}
|
|
14305
|
-
function
|
|
14305
|
+
function Od(r) {
|
|
14306
14306
|
const e = [], { top: t, right: n, bottom: i, left: s } = r;
|
|
14307
14307
|
return t != null && e.push({ name: "w:top", attributes: { "w:w": Se(t) } }), n != null && e.push({ name: "w:right", attributes: { "w:w": Se(n) } }), i != null && e.push({ name: "w:bottom", attributes: { "w:w": Se(i) } }), s != null && e.push({ name: "w:left", attributes: { "w:w": Se(s) } }), e;
|
|
14308
14308
|
}
|
|
14309
|
-
function
|
|
14309
|
+
function Ld(r) {
|
|
14310
14310
|
const e = {
|
|
14311
14311
|
name: "w:bookmarkStart",
|
|
14312
14312
|
attributes: {
|
|
@@ -14362,7 +14362,7 @@ function Fo(r) {
|
|
|
14362
14362
|
}
|
|
14363
14363
|
return t;
|
|
14364
14364
|
}
|
|
14365
|
-
function
|
|
14365
|
+
function _d(r) {
|
|
14366
14366
|
if (!r) return {};
|
|
14367
14367
|
const e = r.split(";")[0].split("/")[1];
|
|
14368
14368
|
if (!r || e !== "png")
|
|
@@ -14376,7 +14376,7 @@ function Pd(r) {
|
|
|
14376
14376
|
originalHeight: i.getInt32(20)
|
|
14377
14377
|
};
|
|
14378
14378
|
}
|
|
14379
|
-
function
|
|
14379
|
+
function qd(r, e, t, n) {
|
|
14380
14380
|
let i = r, s = e, o = Math.min(t / r, n / e);
|
|
14381
14381
|
return i = Math.round(i * o), s = Math.round(s * o), { scaledWidth: i, scaledHeight: s };
|
|
14382
14382
|
}
|
|
@@ -14386,20 +14386,20 @@ function uu(r, e) {
|
|
|
14386
14386
|
tableCell: i
|
|
14387
14387
|
} = r;
|
|
14388
14388
|
let s = t.rId;
|
|
14389
|
-
const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } =
|
|
14389
|
+
const o = t.src || t.imageSrc, { originalWidth: a, originalHeight: u } = _d(o);
|
|
14390
14390
|
let f = t.size ? {
|
|
14391
14391
|
w: qt(t.size.width),
|
|
14392
14392
|
h: qt(t.size.height)
|
|
14393
14393
|
} : e;
|
|
14394
14394
|
if (a && u) {
|
|
14395
|
-
const S = $e(f.w), T = $e(f.h), { scaledWidth: A, scaledHeight: F } =
|
|
14395
|
+
const S = $e(f.w), T = $e(f.h), { scaledWidth: A, scaledHeight: F } = qd(a, u, S, T);
|
|
14396
14396
|
f = {
|
|
14397
14397
|
w: qt(A),
|
|
14398
14398
|
h: qt(F)
|
|
14399
14399
|
};
|
|
14400
14400
|
}
|
|
14401
14401
|
if (i) {
|
|
14402
|
-
const S = i.attrs.colwidth.reduce((I, C) => I + C, 0), T = i.attrs.cellMargins?.left || 8, A = i.attrs.cellMargins?.right || 8, F = qt(S - (T + A)), { width: w, height: k } =
|
|
14402
|
+
const S = i.attrs.colwidth.reduce((I, C) => I + C, 0), T = i.attrs.cellMargins?.left || 8, A = i.attrs.cellMargins?.right || 8, F = qt(S - (T + A)), { width: w, height: k } = Wd(f.w, f.h, F);
|
|
14403
14403
|
w && k && (f = { w, h: k });
|
|
14404
14404
|
}
|
|
14405
14405
|
if (r.node.type === "image" && !s) {
|
|
@@ -14566,16 +14566,16 @@ function uu(r, e) {
|
|
|
14566
14566
|
function lu(r) {
|
|
14567
14567
|
const {
|
|
14568
14568
|
node: { attrs: e = {}, marks: t = [] }
|
|
14569
|
-
} = r, n =
|
|
14569
|
+
} = r, n = Vd(e);
|
|
14570
14570
|
return Fr(e.displayLabel, [...t, ...n]);
|
|
14571
14571
|
}
|
|
14572
|
-
function
|
|
14572
|
+
function Md(r) {
|
|
14573
14573
|
const {
|
|
14574
14574
|
node: { attrs: e = {}, marks: t = [] }
|
|
14575
14575
|
} = r, n = Nc.decode(e.displayLabel);
|
|
14576
14576
|
return Fr(n, t);
|
|
14577
14577
|
}
|
|
14578
|
-
function
|
|
14578
|
+
function Ud(r) {
|
|
14579
14579
|
const {
|
|
14580
14580
|
node: { attrs: e = {} }
|
|
14581
14581
|
} = r, n = new window.DOMParser().parseFromString(e.rawHtml, "text/html"), s = At.create({
|
|
@@ -14584,6 +14584,7 @@ function Ld(r) {
|
|
|
14584
14584
|
return {
|
|
14585
14585
|
name: "htmlAnnotation",
|
|
14586
14586
|
elements: Ot({
|
|
14587
|
+
...r,
|
|
14587
14588
|
node: s
|
|
14588
14589
|
})
|
|
14589
14590
|
};
|
|
@@ -14591,7 +14592,7 @@ function Ld(r) {
|
|
|
14591
14592
|
function Bo(r, e) {
|
|
14592
14593
|
return uu(r, e);
|
|
14593
14594
|
}
|
|
14594
|
-
function
|
|
14595
|
+
function jd(r) {
|
|
14595
14596
|
const {
|
|
14596
14597
|
node: { attrs: e = {}, marks: t = [] }
|
|
14597
14598
|
} = r, n = au(r, e.linkUrl), i = Fr(e.linkUrl, t);
|
|
@@ -14605,7 +14606,7 @@ function qd(r) {
|
|
|
14605
14606
|
elements: [i]
|
|
14606
14607
|
};
|
|
14607
14608
|
}
|
|
14608
|
-
function
|
|
14609
|
+
function Hd(r) {
|
|
14609
14610
|
const e = {
|
|
14610
14611
|
w: 4286250,
|
|
14611
14612
|
h: 4286250
|
|
@@ -14617,12 +14618,12 @@ function Md(r) {
|
|
|
14617
14618
|
text: lu,
|
|
14618
14619
|
image: (i) => Bo(i, e),
|
|
14619
14620
|
signature: (i) => Bo(i, t),
|
|
14620
|
-
checkbox:
|
|
14621
|
-
html:
|
|
14622
|
-
link:
|
|
14621
|
+
checkbox: Md,
|
|
14622
|
+
html: Ud,
|
|
14623
|
+
link: jd
|
|
14623
14624
|
}[r];
|
|
14624
14625
|
}
|
|
14625
|
-
const
|
|
14626
|
+
const Vd = (r = {}) => {
|
|
14626
14627
|
const {
|
|
14627
14628
|
fontFamily: e,
|
|
14628
14629
|
fontSize: t,
|
|
@@ -14632,8 +14633,8 @@ const Ud = (r = {}) => {
|
|
|
14632
14633
|
} = r, o = [];
|
|
14633
14634
|
return e && o.push({ type: "fontFamily", attrs: { fontFamily: e } }), t && o.push({ type: "fontSize", attrs: { fontSize: t } }), n && o.push({ type: "bold", attrs: {} }), i && o.push({ type: "underline", attrs: {} }), s && o.push({ type: "italic", attrs: {} }), o;
|
|
14634
14635
|
};
|
|
14635
|
-
function
|
|
14636
|
-
const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i =
|
|
14636
|
+
function zd(r) {
|
|
14637
|
+
const { node: e, isFinalDoc: t } = r, { attrs: n = {} } = e, i = Hd(n.type);
|
|
14637
14638
|
if (!i) return {};
|
|
14638
14639
|
let s, o;
|
|
14639
14640
|
if (t)
|
|
@@ -14685,7 +14686,7 @@ function jd(r) {
|
|
|
14685
14686
|
]
|
|
14686
14687
|
};
|
|
14687
14688
|
}
|
|
14688
|
-
function
|
|
14689
|
+
function Gd() {
|
|
14689
14690
|
return {
|
|
14690
14691
|
name: "w:r",
|
|
14691
14692
|
elements: [{
|
|
@@ -14737,28 +14738,28 @@ nt = new WeakSet(), cu = function(e, t = falase) {
|
|
|
14737
14738
|
}
|
|
14738
14739
|
return a || u.push(`</${n}>`), u;
|
|
14739
14740
|
};
|
|
14740
|
-
function
|
|
14741
|
+
function Wd(r, e, t) {
|
|
14741
14742
|
if (r > t) {
|
|
14742
14743
|
let n = t / r, i = Math.round(e * n);
|
|
14743
14744
|
return { width: t, height: i };
|
|
14744
14745
|
}
|
|
14745
14746
|
return { width: r, height: e };
|
|
14746
14747
|
}
|
|
14747
|
-
const
|
|
14748
|
+
const Jd = '<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:oel="http://schemas.microsoft.com/office/2019/extlst" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cex="http://schemas.microsoft.com/office/word/2018/wordml/cex" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16="http://schemas.microsoft.com/office/word/2018/wordml" xmlns:w16sdtdh="http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 w16se w16cid w16 w16cex w16sdtdh wp14"><w:body></w:body></w:document>', Kd = (r) => JSON.parse(ba.xml2json(r, null, 2)), $d = (r, e = Jd) => r["word/document.xml"] || Kd(e), Xd = (r) => {
|
|
14748
14749
|
const { nodes: e } = r;
|
|
14749
14750
|
if (e.length === 0)
|
|
14750
14751
|
return { nodes: [], consumed: 0 };
|
|
14751
14752
|
const t = e[0];
|
|
14752
14753
|
switch (t.name) {
|
|
14753
14754
|
case "w:tbl":
|
|
14754
|
-
return { nodes: [
|
|
14755
|
+
return { nodes: [Zd(t, r)], consumed: 1 };
|
|
14755
14756
|
}
|
|
14756
14757
|
return { nodes: [], consumed: 0 };
|
|
14757
|
-
},
|
|
14758
|
+
}, Yd = {
|
|
14758
14759
|
handlerName: "tableNodeHandler",
|
|
14759
|
-
handler:
|
|
14760
|
+
handler: Xd
|
|
14760
14761
|
};
|
|
14761
|
-
function
|
|
14762
|
+
function Zd(r, e) {
|
|
14762
14763
|
const { docx: t, nodeListHandler: n } = e, i = r.elements.find((B) => B.name === "w:tblPr"), o = i.elements.find((B) => B.name === "w:tblBorders")?.elements || [], { borders: a, rowBorders: u } = du(o), f = i.elements.find((B) => B.name === "w:tblStyle"), g = { tableStyleId: f?.attributes["w:val"] }, h = i?.elements.find((B) => B.name === "w:tblInd");
|
|
14763
14764
|
if (h) {
|
|
14764
14765
|
const { "w:w": B, "w:type": N } = h.attributes;
|
|
@@ -14783,7 +14784,7 @@ function $d(r, e) {
|
|
|
14783
14784
|
g.borders = k;
|
|
14784
14785
|
const C = [];
|
|
14785
14786
|
return w.forEach((B) => {
|
|
14786
|
-
const N =
|
|
14787
|
+
const N = tm(B, r, I, f, e);
|
|
14787
14788
|
N.content?.length && C.push(N);
|
|
14788
14789
|
}), {
|
|
14789
14790
|
type: "table",
|
|
@@ -14791,15 +14792,15 @@ function $d(r, e) {
|
|
|
14791
14792
|
attrs: g
|
|
14792
14793
|
};
|
|
14793
14794
|
}
|
|
14794
|
-
function
|
|
14795
|
-
const { docx: u, nodeListHandler: f } = o, c = r.elements.find((ae) => ae.name === "w:tcPr"), g = c?.elements?.find((ae) => ae.name === "w:tcBorders"), h =
|
|
14795
|
+
function Qd(r, e, t, n, i = null, s, o, a) {
|
|
14796
|
+
const { docx: u, nodeListHandler: f } = o, c = r.elements.find((ae) => ae.name === "w:tcPr"), g = c?.elements?.find((ae) => ae.name === "w:tcBorders"), h = em(g, n), S = mu(t), T = c?.elements?.find((ae) => ae.name === "w:tcW");
|
|
14796
14797
|
let A = T ? xe(T.attributes["w:w"]) : null;
|
|
14797
14798
|
const F = T?.attributes["w:type"];
|
|
14798
14799
|
!A && i && (A = i);
|
|
14799
14800
|
const w = No(r), { attributes: k } = w || {}, C = {
|
|
14800
14801
|
color: c?.elements?.find((ae) => ae.name === "w:shd")?.attributes["w:fill"]
|
|
14801
14802
|
}, N = c?.elements?.find((ae) => ae.name === "w:gridSpan")?.attributes["w:val"], q = c?.elements?.find((ae) => ae.name === "w:tcMar"), D = c?.elements?.find((ae) => ae.name === "w:vAlign")?.attributes["w:val"] || "top", K = {}, oe = fu(s, u) || {};
|
|
14802
|
-
K.cellMargins =
|
|
14803
|
+
K.cellMargins = rm(q, oe);
|
|
14803
14804
|
const { fontSize: ee, fonts: Z = {} } = oe, ce = Z.ascii;
|
|
14804
14805
|
if (A) {
|
|
14805
14806
|
K.colwidth = [A], K.widthUnit = "px";
|
|
@@ -14817,12 +14818,12 @@ function Xd(r, e, t, n, i = null, s, o, a) {
|
|
|
14817
14818
|
const ae = t.elements.filter((ie) => ie.name === "w:tr"), se = ae.findIndex((ie) => ie === e), Y = ae.slice(se + 1);
|
|
14818
14819
|
let J = e.elements.filter((ie) => ie.name === "w:tc").findIndex((ie) => ie === r), te = 1;
|
|
14819
14820
|
for (let ie of Y) {
|
|
14820
|
-
const
|
|
14821
|
+
const L = ie.elements.findIndex((P) => P.name === "w:tc"), j = ie.elements[L + J];
|
|
14821
14822
|
if (!j) break;
|
|
14822
14823
|
const V = No(j), { attributes: $ } = V || {};
|
|
14823
14824
|
if (!V && !$ || $ && $["w:val"] === "restart")
|
|
14824
14825
|
break;
|
|
14825
|
-
te++, ie.elements.splice(
|
|
14826
|
+
te++, ie.elements.splice(L + J, 1);
|
|
14826
14827
|
}
|
|
14827
14828
|
K.rowspan = te;
|
|
14828
14829
|
}
|
|
@@ -14845,7 +14846,7 @@ const No = (r) => r.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n
|
|
|
14845
14846
|
return Object.keys(i) ? (i.val = "none", i) : null;
|
|
14846
14847
|
}
|
|
14847
14848
|
return null;
|
|
14848
|
-
},
|
|
14849
|
+
}, em = (r, e) => {
|
|
14849
14850
|
if (!r) return null;
|
|
14850
14851
|
const t = {}, n = ir(r, "bottom", e);
|
|
14851
14852
|
n && (t.bottom = n);
|
|
@@ -14883,7 +14884,7 @@ function fu(r, e, t) {
|
|
|
14883
14884
|
n.fonts = { ascii: w, hAnsi: k, cs: I };
|
|
14884
14885
|
}
|
|
14885
14886
|
const F = S.elements.find((w) => w.name === "w:sz");
|
|
14886
|
-
F?.attributes && (n.fontSize =
|
|
14887
|
+
F?.attributes && (n.fontSize = Lf(F.attributes["w:val"]) + "pt");
|
|
14887
14888
|
}
|
|
14888
14889
|
const T = f.elements.find((A) => A.name === "w:tblPr");
|
|
14889
14890
|
if (T && T.elements) {
|
|
@@ -14913,7 +14914,7 @@ function du(r) {
|
|
|
14913
14914
|
rowBorders: t
|
|
14914
14915
|
};
|
|
14915
14916
|
}
|
|
14916
|
-
function
|
|
14917
|
+
function tm(r, e, t, n, i) {
|
|
14917
14918
|
const s = {}, a = r.elements.find((T) => T.name === "w:trPr")?.elements?.find((T) => T.name === "w:trHeight"), u = a?.attributes["w:val"];
|
|
14918
14919
|
a?.attributes["w:hRule"];
|
|
14919
14920
|
const f = {};
|
|
@@ -14923,12 +14924,12 @@ function Zd(r, e, t, n, i) {
|
|
|
14923
14924
|
type: "tableRow",
|
|
14924
14925
|
content: g?.map((T, A) => {
|
|
14925
14926
|
const F = g.length > 1 ? c[A] : null;
|
|
14926
|
-
return
|
|
14927
|
+
return Qd(T, r, e, f, F, n, i, A);
|
|
14927
14928
|
}) || [],
|
|
14928
14929
|
attrs: s
|
|
14929
14930
|
};
|
|
14930
14931
|
}
|
|
14931
|
-
const
|
|
14932
|
+
const rm = (r, e) => {
|
|
14932
14933
|
const t = r?.elements?.find((F) => F.name === "w:left"), n = r?.elements?.find((F) => F.name === "w:right"), i = r?.elements?.find((F) => F.name === "w:top"), s = r?.elements?.find((F) => F.name === "w:bottom"), o = t?.attributes["w:w"], a = n?.attributes["w:w"], u = i?.attributes["w:w"], f = s?.attributes["w:w"], { cellMargins: c = {} } = e, {
|
|
14933
14934
|
marginLeft: g,
|
|
14934
14935
|
marginRight: h,
|
|
@@ -14941,7 +14942,7 @@ const Qd = (r, e) => {
|
|
|
14941
14942
|
top: xe(u ?? S),
|
|
14942
14943
|
bottom: xe(f ?? T)
|
|
14943
14944
|
};
|
|
14944
|
-
}, mu = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe(t.attributes["w:w"])) || [],
|
|
14945
|
+
}, mu = (r) => r.elements.find((t) => t.name === "w:tblGrid")?.elements?.flatMap((t) => t.name !== "w:gridCol" ? [] : xe(t.attributes["w:w"])) || [], nm = (r) => {
|
|
14945
14946
|
const { nodes: e, filename: t } = r;
|
|
14946
14947
|
if (e.length === 0 || e[0].name !== "w:drawing")
|
|
14947
14948
|
return { nodes: [], consumed: 0 };
|
|
@@ -14989,9 +14990,9 @@ function Io(r, e, t) {
|
|
|
14989
14990
|
}
|
|
14990
14991
|
};
|
|
14991
14992
|
}
|
|
14992
|
-
const
|
|
14993
|
+
const im = {
|
|
14993
14994
|
handlerName: "drawingNodeHandler",
|
|
14994
|
-
handler:
|
|
14995
|
+
handler: nm
|
|
14995
14996
|
};
|
|
14996
14997
|
function Bt(r, e = [], t = null) {
|
|
14997
14998
|
const n = [], i = /* @__PURE__ */ new Set();
|
|
@@ -15016,7 +15017,7 @@ function Bt(r, e = [], t = null) {
|
|
|
15016
15017
|
const { attributes: u = {} } = s, f = { type: a.type };
|
|
15017
15018
|
if (!(u["w:val"] == "0" || u["w:val"] === "none")) {
|
|
15018
15019
|
if (a.mark && (f.type = a.mark), Object.keys(u).length) {
|
|
15019
|
-
const c =
|
|
15020
|
+
const c = om(a.type, u, t);
|
|
15020
15021
|
if (c == null) return;
|
|
15021
15022
|
f.attrs = {}, f.attrs[a.property] = c;
|
|
15022
15023
|
}
|
|
@@ -15025,7 +15026,7 @@ function Bt(r, e = [], t = null) {
|
|
|
15025
15026
|
});
|
|
15026
15027
|
}), gi(n);
|
|
15027
15028
|
}
|
|
15028
|
-
function
|
|
15029
|
+
function sm(r, e) {
|
|
15029
15030
|
const t = r.elements?.find((o) => o.name === "w:rPrChange");
|
|
15030
15031
|
if (!t)
|
|
15031
15032
|
return [];
|
|
@@ -15046,25 +15047,25 @@ function gi(r) {
|
|
|
15046
15047
|
});
|
|
15047
15048
|
}), [...t, { type: "textStyle", attrs: n }];
|
|
15048
15049
|
}
|
|
15049
|
-
function
|
|
15050
|
+
function om(r, e, t) {
|
|
15050
15051
|
r === "tabs" && (r = "textIndent");
|
|
15051
15052
|
const n = {
|
|
15052
15053
|
color: () => `#${e["w:val"]}`,
|
|
15053
15054
|
fontSize: () => `${e["w:val"] / 2}pt`,
|
|
15054
|
-
textIndent: () =>
|
|
15055
|
-
fontFamily: () =>
|
|
15056
|
-
lineHeight: () =>
|
|
15055
|
+
textIndent: () => um(e),
|
|
15056
|
+
fontFamily: () => am(e, t),
|
|
15057
|
+
lineHeight: () => lm(e),
|
|
15057
15058
|
textAlign: () => e["w:val"],
|
|
15058
15059
|
link: () => e.href,
|
|
15059
15060
|
underline: () => e["w:val"],
|
|
15060
15061
|
bold: () => e?.["w:val"] || null,
|
|
15061
15062
|
italic: () => e?.["w:val"] || null,
|
|
15062
|
-
highlight: () =>
|
|
15063
|
+
highlight: () => cm(e)
|
|
15063
15064
|
};
|
|
15064
15065
|
if (r in n || console.debug("❗️❗️ No value mapper for:", r, "Attributes:", e), r in n)
|
|
15065
15066
|
return n[r], n[r]();
|
|
15066
15067
|
}
|
|
15067
|
-
function
|
|
15068
|
+
function am(r, e) {
|
|
15068
15069
|
const t = r["w:ascii"], n = r["w:asciiTheme"];
|
|
15069
15070
|
if (!e || !n) return t;
|
|
15070
15071
|
const i = e["word/theme/theme1.xml"];
|
|
@@ -15072,20 +15073,20 @@ function im(r, e) {
|
|
|
15072
15073
|
const { elements: s } = i, { elements: o } = s[0];
|
|
15073
15074
|
return o.find((h) => h.name === "a:themeElements").elements.find((h) => h.name === "a:fontScheme").elements.find((h) => h.name === "a:majorFont").elements.find((h) => h.name === "a:latin").attributes.typeface;
|
|
15074
15075
|
}
|
|
15075
|
-
function
|
|
15076
|
+
function um(r) {
|
|
15076
15077
|
let e = r["w:left"];
|
|
15077
15078
|
return e ? `${qe(e)}in` : null;
|
|
15078
15079
|
}
|
|
15079
|
-
function
|
|
15080
|
+
function lm(r) {
|
|
15080
15081
|
const e = r["w:line"], t = r["w:lineRule"];
|
|
15081
15082
|
return !e || e === "0" ? null : t === "exact" ? `${tu(e)}pt` : `${Ni(e)}`;
|
|
15082
15083
|
}
|
|
15083
|
-
function
|
|
15084
|
+
function cm(r) {
|
|
15084
15085
|
return r["w:fill"] ? `#${r["w:fill"]}` : Uf(r?.["w:val"]) ? `#${r["w:val"]}` : Mf(r?.["w:val"]) || null;
|
|
15085
15086
|
}
|
|
15086
|
-
function
|
|
15087
|
-
const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } =
|
|
15088
|
-
return s.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt(u, n)), a && a.elements?.length && t.push(...Bt(a, n)), t.push(...
|
|
15087
|
+
function Lt(r, e) {
|
|
15088
|
+
const t = [], n = [], { attributes: i = {}, elements: s = [] } = r, { nodes: o, paragraphProperties: a = {}, runProperties: u = {} } = fm(s);
|
|
15089
|
+
return s.find((c) => c.name === "w:r") && (a.elements = a?.elements?.filter((c) => c.name !== "w:rPr")), u && u?.elements?.length && t.push(...Bt(u, n)), a && a.elements?.length && t.push(...Bt(a, n)), t.push(...sm(u, t)), a && a.elements?.length && (i.paragraphProperties = a), t && r.name === "w:p" && t.forEach((c) => {
|
|
15089
15090
|
const g = Object.keys(c.attrs ?? {})[0];
|
|
15090
15091
|
if (g) {
|
|
15091
15092
|
const h = c.attrs[g];
|
|
@@ -15093,7 +15094,7 @@ function _t(r, e) {
|
|
|
15093
15094
|
}
|
|
15094
15095
|
}), { elements: o, attributes: i, marks: t, unknownMarks: n };
|
|
15095
15096
|
}
|
|
15096
|
-
function
|
|
15097
|
+
function fm(r) {
|
|
15097
15098
|
const e = r.find((s) => s.name === "w:pPr"), t = r.find((s) => s.name === "w:rPr"), n = r.find((s) => s.name === "w:sectPr");
|
|
15098
15099
|
return {
|
|
15099
15100
|
nodes: r.filter((s) => s.name !== "w:pPr" && s.name !== "w:rPr" && s.name !== "w:sectPr"),
|
|
@@ -15105,15 +15106,15 @@ function um(r) {
|
|
|
15105
15106
|
function lr(r) {
|
|
15106
15107
|
return Nt.allowedElements[r.name || r.type];
|
|
15107
15108
|
}
|
|
15108
|
-
const
|
|
15109
|
+
const dm = (r) => !!Nt.propertyTypes[r.name || r.type];
|
|
15109
15110
|
function pu(r) {
|
|
15110
15111
|
return r.filter((n) => n.name === "w:r").some((n) => n.elements.some((i) => i.name === "w:t"));
|
|
15111
15112
|
}
|
|
15112
|
-
const
|
|
15113
|
+
const mm = (r) => {
|
|
15113
15114
|
const { nodes: e, nodeListHandler: t } = r;
|
|
15114
15115
|
if (e.length === 0 || !(e[0].name === "w:del" || e[0].name === "w:ins"))
|
|
15115
15116
|
return { nodes: [], consumed: 0 };
|
|
15116
|
-
const n = e[0], { name: i } = n, { attributes: s, elements: o } =
|
|
15117
|
+
const n = e[0], { name: i } = n, { attributes: s, elements: o } = Lt(n), a = t.handler({ ...r, insideTrackChange: !0, nodes: o }), u = i === "w:del" ? Ri : yr, f = {
|
|
15117
15118
|
id: s["w:id"],
|
|
15118
15119
|
date: s["w:date"],
|
|
15119
15120
|
author: s["w:author"],
|
|
@@ -15122,10 +15123,10 @@ const cm = (r) => {
|
|
|
15122
15123
|
return a.forEach((c) => {
|
|
15123
15124
|
c.marks === void 0 && (c.marks = []), c.marks.push({ type: u, attrs: f });
|
|
15124
15125
|
}), { nodes: a, consumed: 1 };
|
|
15125
|
-
},
|
|
15126
|
+
}, pm = {
|
|
15126
15127
|
handlerName: "trackChangeNodeHandler",
|
|
15127
|
-
handler:
|
|
15128
|
-
},
|
|
15128
|
+
handler: mm
|
|
15129
|
+
}, hm = (r) => {
|
|
15129
15130
|
const { nodes: e, docx: t, nodeListHandler: n } = r;
|
|
15130
15131
|
if (e.length === 0 || e[0].name !== "w:hyperlink")
|
|
15131
15132
|
return { nodes: [], consumed: 0 };
|
|
@@ -15144,35 +15145,35 @@ const cm = (r) => {
|
|
|
15144
15145
|
}
|
|
15145
15146
|
}
|
|
15146
15147
|
return { nodes: n.handler({ ...r, nodes: T }), consumed: 1 };
|
|
15147
|
-
},
|
|
15148
|
+
}, gm = {
|
|
15148
15149
|
handlerName: "hyperlinkNodeHandler",
|
|
15149
|
-
handler:
|
|
15150
|
-
},
|
|
15150
|
+
handler: hm
|
|
15151
|
+
}, wm = (r) => {
|
|
15151
15152
|
const { nodes: e, nodeListHandler: t, parentStyleId: n, docx: i } = r;
|
|
15152
15153
|
if (e.length === 0 || e[0].name !== "w:r")
|
|
15153
15154
|
return { nodes: [], consumed: 0 };
|
|
15154
15155
|
const s = e[0], o = { ...r, nodes: s.elements };
|
|
15155
15156
|
let a = t.handler(o)?.filter((c) => c) || [];
|
|
15156
|
-
const u = s.elements?.some((c) => c.name === "w:rPr"), f =
|
|
15157
|
+
const u = s.elements?.some((c) => c.name === "w:rPr"), f = ym(i, n);
|
|
15157
15158
|
if (u) {
|
|
15158
|
-
const { marks: c = [], attributes: g = {} } =
|
|
15159
|
+
const { marks: c = [], attributes: g = {} } = Lt(s), h = c.find((T) => T.type === "textStyle"), S = h && Object.keys(h.attrs).length > 0;
|
|
15159
15160
|
f.marks && !S && c.push(...f.marks), s.marks && c.push(...s.marks), a = a.map((T) => ({ ...T, marks: gi(c), attributes: g }));
|
|
15160
15161
|
} else f.marks && (a = a.map((c) => ({ ...c, marks: gi(f.marks) })));
|
|
15161
15162
|
return { nodes: a, consumed: 1 };
|
|
15162
|
-
},
|
|
15163
|
+
}, ym = (r, e) => {
|
|
15163
15164
|
const t = r?.["word/styles.xml"];
|
|
15164
15165
|
if (!t)
|
|
15165
15166
|
return {};
|
|
15166
15167
|
const i = t.elements[0].elements.filter((s) => s.name === "w:style").find((s) => s.attributes["w:styleId"] === e) || {};
|
|
15167
|
-
return i ?
|
|
15168
|
-
},
|
|
15168
|
+
return i ? Lt(i) : {};
|
|
15169
|
+
}, bm = {
|
|
15169
15170
|
handlerName: "runNodeHandler",
|
|
15170
|
-
handler:
|
|
15171
|
-
},
|
|
15171
|
+
handler: wm
|
|
15172
|
+
}, xm = (r) => {
|
|
15172
15173
|
const { nodes: e, insideTrackChange: t } = r;
|
|
15173
15174
|
if (e.length === 0 || !(e[0].name === "w:t" || t && e[0].name === "w:delText"))
|
|
15174
15175
|
return { nodes: [], consumed: 0 };
|
|
15175
|
-
const n = e[0], { type: i } = n, { attributes: s, elements: o, marks: a = [] } =
|
|
15176
|
+
const n = e[0], { type: i } = n, { attributes: s, elements: o, marks: a = [] } = Lt(n);
|
|
15176
15177
|
let u;
|
|
15177
15178
|
if (o.length === 1) u = o[0].text;
|
|
15178
15179
|
else if (!o.length && "attributes" in n && n.attributes["xml:space"] === "preserve")
|
|
@@ -15189,36 +15190,36 @@ const cm = (r) => {
|
|
|
15189
15190
|
],
|
|
15190
15191
|
consumed: 1
|
|
15191
15192
|
};
|
|
15192
|
-
},
|
|
15193
|
+
}, Am = {
|
|
15193
15194
|
handlerName: "textNodeHandler",
|
|
15194
|
-
handler:
|
|
15195
|
+
handler: xm
|
|
15195
15196
|
}, hu = (r) => {
|
|
15196
15197
|
if (!r || !Array.isArray(r))
|
|
15197
15198
|
return r;
|
|
15198
15199
|
let e = [], t = null;
|
|
15199
15200
|
for (let n of r)
|
|
15200
|
-
n.type === "text" ? t &&
|
|
15201
|
+
n.type === "text" ? t && Dm(t, n) ? t = {
|
|
15201
15202
|
...t,
|
|
15202
15203
|
text: t.text += n.text
|
|
15203
15204
|
} : (t && e.push(t), t = { ...n }) : (t && (e.push(t), t = null), e.push(n));
|
|
15204
15205
|
return t && e.push(t), e;
|
|
15205
|
-
},
|
|
15206
|
+
}, Dm = (r, e) => {
|
|
15206
15207
|
if (!r || !e) return !1;
|
|
15207
15208
|
let t = r.marks ?? [], n = e.marks ?? [];
|
|
15208
15209
|
if (t.length !== n.length)
|
|
15209
15210
|
return !1;
|
|
15210
15211
|
for (let i = 0; i < t.length; i++)
|
|
15211
|
-
if (t[i].type !== n[i].type || !
|
|
15212
|
+
if (t[i].type !== n[i].type || !Em(t[i].attrs, n[i].attrs))
|
|
15212
15213
|
return !1;
|
|
15213
15214
|
return !0;
|
|
15214
|
-
},
|
|
15215
|
+
}, Em = (r = {}, e = {}) => If(r, e);
|
|
15215
15216
|
function gu(r, e, t) {
|
|
15216
15217
|
this.name = r, this.message = e || "", this.details = t;
|
|
15217
15218
|
const n = new Error(this.message);
|
|
15218
15219
|
this.stack = n.stack, n.name = this.name;
|
|
15219
15220
|
}
|
|
15220
15221
|
gu.prototype = Object.create(Error.prototype);
|
|
15221
|
-
const
|
|
15222
|
+
const vm = (r) => {
|
|
15222
15223
|
const { nodes: e, lists: t, docx: n } = r;
|
|
15223
15224
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
15224
15225
|
return { nodes: [], consumed: 0 };
|
|
@@ -15237,9 +15238,9 @@ const Am = (r) => {
|
|
|
15237
15238
|
};
|
|
15238
15239
|
} else
|
|
15239
15240
|
return { nodes: [], consumed: 0, lists: t };
|
|
15240
|
-
},
|
|
15241
|
+
}, Cm = {
|
|
15241
15242
|
handlerName: "listHandler",
|
|
15242
|
-
handler:
|
|
15243
|
+
handler: vm
|
|
15243
15244
|
};
|
|
15244
15245
|
function wu({
|
|
15245
15246
|
listItems: r,
|
|
@@ -15268,7 +15269,7 @@ function wu({
|
|
|
15268
15269
|
P && g[g.length - 1]?.content.push(P), N.seen = !0;
|
|
15269
15270
|
continue;
|
|
15270
15271
|
}
|
|
15271
|
-
const { attributes: q, elements: H, marks: D = [] } =
|
|
15272
|
+
const { attributes: q, elements: H, marks: D = [] } = Lt(N), K = D.find((P) => P.type === "textStyle"), {
|
|
15272
15273
|
listType: oe,
|
|
15273
15274
|
listOrderingType: ee,
|
|
15274
15275
|
ilvl: Z,
|
|
@@ -15278,15 +15279,15 @@ function wu({
|
|
|
15278
15279
|
lvlText: Y,
|
|
15279
15280
|
lvlJc: de,
|
|
15280
15281
|
numId: J
|
|
15281
|
-
} =
|
|
15282
|
+
} = Bm(N, n, u);
|
|
15282
15283
|
S = ee;
|
|
15283
|
-
const te = parseInt(Z), ie = i === te && J === s,
|
|
15284
|
+
const te = parseInt(Z), ie = i === te && J === s, L = Fm({
|
|
15284
15285
|
firstListId: J,
|
|
15285
15286
|
secondListId: s,
|
|
15286
15287
|
level: te,
|
|
15287
15288
|
pStyleId: null,
|
|
15288
15289
|
docx: u
|
|
15289
|
-
}), j = J !== s && !
|
|
15290
|
+
}), j = J !== s && !L, V = n < te || n === te && j && I === n;
|
|
15290
15291
|
c[s] || (c[s] = {}), c[s][n] || (c[s][n] = 0);
|
|
15291
15292
|
const $ = {};
|
|
15292
15293
|
if (ie && !V) {
|
|
@@ -15294,7 +15295,7 @@ function wu({
|
|
|
15294
15295
|
const P = [];
|
|
15295
15296
|
let p = {
|
|
15296
15297
|
type: "paragraph",
|
|
15297
|
-
content: f.handler({ ...t, nodes: [q.paragraphProperties, ...H] })?.filter((
|
|
15298
|
+
content: f.handler({ ...t, nodes: [q.paragraphProperties, ...H] })?.filter((_) => _)
|
|
15298
15299
|
};
|
|
15299
15300
|
p.content && (p = {
|
|
15300
15301
|
...p,
|
|
@@ -15306,23 +15307,23 @@ function wu({
|
|
|
15306
15307
|
}), P.push(p), I = n;
|
|
15307
15308
|
let m = [];
|
|
15308
15309
|
if (S !== "bullet" && (m = [...o, c[s][n]]), !o.length && i > 0) {
|
|
15309
|
-
const
|
|
15310
|
-
if (
|
|
15310
|
+
const _ = c[s];
|
|
15311
|
+
if (_) {
|
|
15311
15312
|
const W = [];
|
|
15312
|
-
Object.keys(
|
|
15313
|
-
W.push(
|
|
15313
|
+
Object.keys(_).forEach((re) => {
|
|
15314
|
+
W.push(_[re]);
|
|
15314
15315
|
}), m = W;
|
|
15315
15316
|
}
|
|
15316
15317
|
}
|
|
15317
|
-
const E = N.elements.find((
|
|
15318
|
+
const E = N.elements.find((_) => _.name === "w:pPr")?.elements.find((_) => _.name === "w:ind");
|
|
15318
15319
|
if (E) {
|
|
15319
|
-
const
|
|
15320
|
-
E.attributes["w:left"] !== void 0 && (
|
|
15320
|
+
const _ = {};
|
|
15321
|
+
E.attributes["w:left"] !== void 0 && (_.left = xe(E.attributes["w:left"])), E.attributes["w:right"] !== void 0 && (_.right = xe(E.attributes["w:right"])), E.attributes["w:firstLine"] !== void 0 && (_.firstLine = xe(E.attributes["w:firstLine"])), E.attributes["w:hanging"] !== void 0 && (_.hanging = xe(E.attributes["w:hanging"])), $.indent = _;
|
|
15321
15322
|
}
|
|
15322
15323
|
ae && ($.listParagraphProperties = ae), ce && ($.listRunProperties = ce), $.textStyle = K, $.order = se, $.lvlText = Y, $.lvlJc = K?.attrs.textAlign, $.listLevel = m, $.listNumberingType = ee, $.attributes = {
|
|
15323
15324
|
parentAttributes: N?.attributes || null
|
|
15324
15325
|
};
|
|
15325
|
-
const b = e?.elements?.find((
|
|
15326
|
+
const b = e?.elements?.find((_) => _.name === "w:rPr");
|
|
15326
15327
|
b && ($.attributes.originalInlineRunProps = b), $.numId = J, u && ($.spacing = xu(N, u));
|
|
15327
15328
|
const x = Ro(P, $, []);
|
|
15328
15329
|
g.push(x);
|
|
@@ -15401,7 +15402,7 @@ function Ro(r, e, t) {
|
|
|
15401
15402
|
marks: t
|
|
15402
15403
|
};
|
|
15403
15404
|
}
|
|
15404
|
-
const
|
|
15405
|
+
const Sm = [
|
|
15405
15406
|
"decimal",
|
|
15406
15407
|
// eg: 1, 2, 3, 4, 5, ...
|
|
15407
15408
|
"decimalZero",
|
|
@@ -15426,7 +15427,7 @@ const Em = [
|
|
|
15426
15427
|
// eg: (0, 1, 2, ..., 9, 10, 11, 12, ..., 19, 1A, 1B, 1C, ..., 1Z, 20, 21, ..., 2Z)
|
|
15427
15428
|
"none"
|
|
15428
15429
|
// No bullet
|
|
15429
|
-
],
|
|
15430
|
+
], Tm = [
|
|
15430
15431
|
"bullet",
|
|
15431
15432
|
// A standard bullet point (•)
|
|
15432
15433
|
"square",
|
|
@@ -15435,7 +15436,7 @@ const Em = [
|
|
|
15435
15436
|
// Circle bullets (◦)
|
|
15436
15437
|
"disc"
|
|
15437
15438
|
// Disc bullets (●)
|
|
15438
|
-
],
|
|
15439
|
+
], Fm = ({ firstListId: r, secondListId: e, level: t, pStyleId: n, docx: i }) => {
|
|
15439
15440
|
const { numFmt: s, lvlText: o, lvlJc: a } = br(r, t, n, i), {
|
|
15440
15441
|
numFmt: u,
|
|
15441
15442
|
lvlText: f,
|
|
@@ -15465,7 +15466,7 @@ const Em = [
|
|
|
15465
15466
|
}
|
|
15466
15467
|
const a = o.elements, u = a.filter((N) => N.name === "w:abstractNum"), g = a.filter((N) => N.name === "w:num").find((N) => N.attributes["w:numId"] === r)?.elements[0].attributes["w:val"], h = u?.find(
|
|
15467
15468
|
(N) => N.attributes["w:abstractNumId"] === g
|
|
15468
|
-
), S =
|
|
15469
|
+
), S = km(h, e), A = h?.elements?.find((N) => N.name === "w:numStyleLink")?.attributes["w:val"];
|
|
15469
15470
|
if (A) {
|
|
15470
15471
|
const N = Po(A, n);
|
|
15471
15472
|
return br(N.numId, e, null, n);
|
|
@@ -15473,7 +15474,7 @@ const Em = [
|
|
|
15473
15474
|
const F = S?.elements?.find((N) => N.name === "w:start")?.attributes["w:val"], w = S?.elements?.find((N) => N.name === "w:numFmt")?.attributes["w:val"], k = S?.elements?.find((N) => N.name === "w:lvlText").attributes["w:val"], I = S?.elements?.find((N) => N.name === "w:lvlJc").attributes["w:val"], C = S?.elements?.find((N) => N.name === "w:pPr"), B = S?.elements?.find((N) => N.name === "w:rPr");
|
|
15474
15475
|
return { start: F, numFmt: w, lvlText: k, lvlJc: I, pPr: C, rPr: B };
|
|
15475
15476
|
};
|
|
15476
|
-
function
|
|
15477
|
+
function Bm(r, e, t) {
|
|
15477
15478
|
if (!r) return;
|
|
15478
15479
|
const { attributes: n } = r, { paragraphProperties: i = {} } = n, { elements: s = [] } = i, u = r.elements.find((D) => D.name === "w:pPr")?.elements?.find((D) => D.name === "w:pStyle")?.attributes["w:val"], f = kr({ node: r, styleId: u, docx: t });
|
|
15479
15480
|
if (!f) return {};
|
|
@@ -15486,10 +15487,10 @@ function Sm(r, e, t) {
|
|
|
15486
15487
|
rPr: B
|
|
15487
15488
|
} = br(g, e, A, t);
|
|
15488
15489
|
let N, q;
|
|
15489
|
-
C && (N =
|
|
15490
|
+
C && (N = Nm(C)), B && (q = Im(B));
|
|
15490
15491
|
let H;
|
|
15491
|
-
if (
|
|
15492
|
-
else if (
|
|
15492
|
+
if (Tm.includes(w?.toLowerCase())) H = "bulletList";
|
|
15493
|
+
else if (Sm.includes(w)) H = "orderedList";
|
|
15493
15494
|
else
|
|
15494
15495
|
throw new gu("ListParsingError", `Unknown list type found during import: ${w}`, {
|
|
15495
15496
|
listOrderingType: w,
|
|
@@ -15503,10 +15504,10 @@ function Sm(r, e, t) {
|
|
|
15503
15504
|
});
|
|
15504
15505
|
return { listType: H, listOrderingType: w, ilvl: S, numId: g, listrPrs: q, listpPrs: N, start: F, lvlText: k, lvlJc: I };
|
|
15505
15506
|
}
|
|
15506
|
-
function
|
|
15507
|
+
function km(r, e) {
|
|
15507
15508
|
return r?.elements?.find((t) => Number(t.attributes["w:ilvl"]) === e);
|
|
15508
15509
|
}
|
|
15509
|
-
function
|
|
15510
|
+
function Nm(r) {
|
|
15510
15511
|
const { elements: e } = r, t = ["w:ind", "w:jc", "w:tabs"], n = {};
|
|
15511
15512
|
return e && e.forEach((i) => {
|
|
15512
15513
|
t.includes(i.name);
|
|
@@ -15516,7 +15517,7 @@ function Fm(r) {
|
|
|
15516
15517
|
});
|
|
15517
15518
|
}), n;
|
|
15518
15519
|
}
|
|
15519
|
-
function
|
|
15520
|
+
function Im(r) {
|
|
15520
15521
|
const { elements: e } = r, t = [
|
|
15521
15522
|
"w:rFonts",
|
|
15522
15523
|
"w:b",
|
|
@@ -15547,7 +15548,7 @@ function Bm(r) {
|
|
|
15547
15548
|
});
|
|
15548
15549
|
}), n;
|
|
15549
15550
|
}
|
|
15550
|
-
const
|
|
15551
|
+
const Rm = (r) => {
|
|
15551
15552
|
const { nodes: e, docx: t, nodeListHandler: n, filename: i } = r;
|
|
15552
15553
|
if (e.length === 0 || e[0].name !== "w:p")
|
|
15553
15554
|
return { nodes: [], consumed: 0 };
|
|
@@ -15564,7 +15565,7 @@ const km = (r) => {
|
|
|
15564
15565
|
c.nodes.length === 1 && (o = c.nodes[0]);
|
|
15565
15566
|
const g = s.elements?.find((w) => w.name === "w:pPr"), h = g?.elements?.find((w) => w.name === "w:pStyle"), S = g?.elements?.find((w) => w.name === "w:rPr");
|
|
15566
15567
|
if (S && (o.attrs.marksAttrs = Bt(S, [])), h && (o.attrs.styleId = h.attributes["w:val"]), t) {
|
|
15567
|
-
const w =
|
|
15568
|
+
const w = Pm(s, t, o.attrs.styleId);
|
|
15568
15569
|
o.attrs.indent || (o.attrs.indent = {}), w.left && (o.attrs.indent.left = w.left), w.right && (o.attrs.indent.right = w.right), w.firstLine && (o.attrs.indent.firstLine = w.firstLine), w.hanging && (o.attrs.indent.hanging = w.hanging), w.textIndent && (o.attrs.textIndent = `${w.textIndent}in`);
|
|
15569
15570
|
}
|
|
15570
15571
|
const T = g?.elements?.find((w) => w.name === "w:jc");
|
|
@@ -15580,7 +15581,7 @@ const km = (r) => {
|
|
|
15580
15581
|
...o,
|
|
15581
15582
|
content: hu(o.content)
|
|
15582
15583
|
}), { nodes: o ? [o] : [], consumed: 1 };
|
|
15583
|
-
},
|
|
15584
|
+
}, Pm = (r, e, t = "") => {
|
|
15584
15585
|
const n = {
|
|
15585
15586
|
left: 0,
|
|
15586
15587
|
right: 0,
|
|
@@ -15622,11 +15623,11 @@ const km = (r) => {
|
|
|
15622
15623
|
spacing: F || T || A,
|
|
15623
15624
|
indent: I || w || k
|
|
15624
15625
|
};
|
|
15625
|
-
},
|
|
15626
|
+
}, Om = {
|
|
15626
15627
|
handlerName: "paragraphNodeHandler",
|
|
15627
|
-
handler:
|
|
15628
|
+
handler: Rm
|
|
15628
15629
|
};
|
|
15629
|
-
function
|
|
15630
|
+
function Lm(r, e) {
|
|
15630
15631
|
const t = { lineSpaceBefore: null, lineSpaceAfter: null };
|
|
15631
15632
|
if (!r) return t;
|
|
15632
15633
|
const n = e["word/styles.xml"];
|
|
@@ -15736,29 +15737,29 @@ const Oo = (r = []) => {
|
|
|
15736
15737
|
});
|
|
15737
15738
|
}
|
|
15738
15739
|
return e;
|
|
15739
|
-
},
|
|
15740
|
+
}, _m = (r) => nodeListHandler.handler({ ...r, nodes: node.elements }), qm = (r) => {
|
|
15740
15741
|
const { nodes: e } = r;
|
|
15741
15742
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
15742
15743
|
return { nodes: [], consumed: 0 };
|
|
15743
15744
|
const t = e[0], o = t.elements.find((c) => c.name === "w:sdtPr")?.elements.find((c) => c.name === "w:docPartObj")?.elements.find((c) => c.name === "w:docPartGallery")?.attributes["w:val"];
|
|
15744
15745
|
if (!o)
|
|
15745
15746
|
return { nodes: [], consumed: 0 };
|
|
15746
|
-
if (!
|
|
15747
|
+
if (!Lo[o])
|
|
15747
15748
|
return { nodes: [], consumed: 0 };
|
|
15748
|
-
const a = t?.elements.find((c) => c.name === "w:sdtContent"), u =
|
|
15749
|
+
const a = t?.elements.find((c) => c.name === "w:sdtContent"), u = Lo[o];
|
|
15749
15750
|
return {
|
|
15750
15751
|
nodes: u({ ...r, nodes: [a] }),
|
|
15751
15752
|
consumed: 1
|
|
15752
15753
|
};
|
|
15753
|
-
},
|
|
15754
|
-
"Table of Contents":
|
|
15755
|
-
},
|
|
15754
|
+
}, Lo = {
|
|
15755
|
+
"Table of Contents": _m
|
|
15756
|
+
}, Mm = (r) => {
|
|
15756
15757
|
const { nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i } = r;
|
|
15757
15758
|
if (e.length === 0 || e[0].name !== "w:sdt")
|
|
15758
15759
|
return { nodes: [], consumed: 0 };
|
|
15759
|
-
const s = e[0], o = s.elements.find((I) => I.name === "w:sdtPr"), a = s.elements.find((I) => I.name === "w:sdtContent"), { attrs: u, marks: f } =
|
|
15760
|
+
const s = e[0], o = s.elements.find((I) => I.name === "w:sdtPr"), a = s.elements.find((I) => I.name === "w:sdtContent"), { attrs: u, marks: f } = Um(a);
|
|
15760
15761
|
if (o?.elements.find((I) => I.name === "w:docPartObj"))
|
|
15761
|
-
return
|
|
15762
|
+
return qm({ nodes: e, docx: t, nodeListHandler: n, insideTrackChange: i });
|
|
15762
15763
|
const g = o?.elements.find((I) => I.name === "w:alias"), h = o?.elements.find((I) => I.name === "w:tag"), S = o?.elements.find((I) => I.name === "w:fieldType")?.attributes["w:val"], T = o?.elements.find((I) => I.name === "w:fieldTypeShort")?.attributes["w:val"], A = o?.elements.find((I) => I.name === "w:fieldColor")?.attributes["w:val"], F = o?.elements.find((I) => I.name === "w:fieldMultipleImage")?.attributes["w:val"], w = {
|
|
15763
15764
|
type: T,
|
|
15764
15765
|
fieldId: h?.attributes["w:val"],
|
|
@@ -15782,7 +15783,7 @@ const Oo = (r = []) => {
|
|
|
15782
15783
|
nodes: [k],
|
|
15783
15784
|
consumed: 1
|
|
15784
15785
|
};
|
|
15785
|
-
},
|
|
15786
|
+
}, Um = (r = {}) => {
|
|
15786
15787
|
const t = r.elements?.find((a) => a.name === "w:r")?.elements?.find((a) => a.name === "w:rPr");
|
|
15787
15788
|
if (!t) return {};
|
|
15788
15789
|
const i = Bt(t, []) || [], s = [];
|
|
@@ -15804,17 +15805,17 @@ const Oo = (r = []) => {
|
|
|
15804
15805
|
attrs: o,
|
|
15805
15806
|
marks: i
|
|
15806
15807
|
};
|
|
15807
|
-
},
|
|
15808
|
+
}, jm = {
|
|
15808
15809
|
handlerName: "annotationNodeHandler",
|
|
15809
|
-
handler:
|
|
15810
|
-
},
|
|
15810
|
+
handler: Mm
|
|
15811
|
+
}, Hm = (r) => {
|
|
15811
15812
|
const { nodes: e, docx: t, nodeListHandler: n } = r;
|
|
15812
15813
|
if (!e || e.length === 0)
|
|
15813
15814
|
return { nodes: [], consumed: 0 };
|
|
15814
|
-
const i = e[0], { name: s } = i, { attributes: o, elements: a, marks: u = [] } =
|
|
15815
|
+
const i = e[0], { name: s } = i, { attributes: o, elements: a, marks: u = [] } = Lt(i);
|
|
15815
15816
|
if (s === "w:sdt")
|
|
15816
15817
|
return { nodes: [], consumed: 0 };
|
|
15817
|
-
if (
|
|
15818
|
+
if (dm(i))
|
|
15818
15819
|
return {
|
|
15819
15820
|
nodes: [{
|
|
15820
15821
|
type: lr(i),
|
|
@@ -15834,7 +15835,7 @@ const Oo = (r = []) => {
|
|
|
15834
15835
|
consumed: 0,
|
|
15835
15836
|
unhandled: !0
|
|
15836
15837
|
};
|
|
15837
|
-
const f = [], c =
|
|
15838
|
+
const f = [], c = Vm(i);
|
|
15838
15839
|
if (a && a.length) {
|
|
15839
15840
|
const h = a.map((A) => (A.marks || (A.marks = []), A.marks.push(...u), A)), S = { ...r, nodes: h, parentStyleId: c }, T = n.handler(S);
|
|
15840
15841
|
f.push(...T);
|
|
@@ -15845,13 +15846,13 @@ const Oo = (r = []) => {
|
|
|
15845
15846
|
attrs: { ...o },
|
|
15846
15847
|
marks: []
|
|
15847
15848
|
}], consumed: 1 };
|
|
15848
|
-
},
|
|
15849
|
+
}, Vm = (r) => {
|
|
15849
15850
|
const t = r.elements?.find((n) => n.name === "w:pPr")?.elements?.find((n) => n.name === "w:pStyle");
|
|
15850
15851
|
return t ? t.attributes["w:val"] : null;
|
|
15851
|
-
},
|
|
15852
|
+
}, zm = {
|
|
15852
15853
|
handlerName: "standardNodeHandler",
|
|
15853
|
-
handler:
|
|
15854
|
-
},
|
|
15854
|
+
handler: Hm
|
|
15855
|
+
}, Gm = (r) => {
|
|
15855
15856
|
const { nodes: e } = r;
|
|
15856
15857
|
return e.length === 0 || e[0].name !== "w:br" ? { nodes: [], consumed: 0 } : {
|
|
15857
15858
|
nodes: [{
|
|
@@ -15859,10 +15860,10 @@ const Oo = (r = []) => {
|
|
|
15859
15860
|
}],
|
|
15860
15861
|
consumed: 1
|
|
15861
15862
|
};
|
|
15862
|
-
},
|
|
15863
|
+
}, Wm = {
|
|
15863
15864
|
handlerName: "lineBreakNodeHandler",
|
|
15864
|
-
handler:
|
|
15865
|
-
},
|
|
15865
|
+
handler: Gm
|
|
15866
|
+
}, Jm = (r) => {
|
|
15866
15867
|
const { nodes: e, nodeListHandler: t } = r;
|
|
15867
15868
|
if (e.length === 0 || e[0].name !== "w:bookmarkStart")
|
|
15868
15869
|
return { nodes: [], consumed: 0 };
|
|
@@ -15873,26 +15874,26 @@ const Oo = (r = []) => {
|
|
|
15873
15874
|
return console.error("Standard node handler not found"), { nodes: [], consumed: 0 };
|
|
15874
15875
|
const s = { ...r, nodes: [n] }, o = i(s);
|
|
15875
15876
|
return o.nodes.length === 1 && (o.nodes[0].attrs.name = n.attributes["w:name"], o.nodes[0].attrs.id = n.attributes["w:id"]), o;
|
|
15876
|
-
},
|
|
15877
|
+
}, Km = {
|
|
15877
15878
|
handlerName: "bookmarkNodeHandler",
|
|
15878
|
-
handler:
|
|
15879
|
-
},
|
|
15879
|
+
handler: Jm
|
|
15880
|
+
}, $m = (r) => {
|
|
15880
15881
|
const { nodes: e } = r;
|
|
15881
15882
|
return e.length === 0 || e[0].name !== "sd:autoPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
|
|
15882
15883
|
type: "page-number"
|
|
15883
15884
|
}], consumed: 1 };
|
|
15884
|
-
},
|
|
15885
|
+
}, Xm = {
|
|
15885
15886
|
handlerName: "autoPageNumberHandler",
|
|
15886
|
-
handler:
|
|
15887
|
-
},
|
|
15887
|
+
handler: $m
|
|
15888
|
+
}, Ym = (r) => {
|
|
15888
15889
|
const { nodes: e } = r;
|
|
15889
15890
|
return e.length === 0 || e[0].name !== "sd:totalPageNumber" ? { nodes: [], consumed: 0 } : { nodes: [{
|
|
15890
15891
|
type: "total-page-number"
|
|
15891
15892
|
}], consumed: 1 };
|
|
15892
|
-
},
|
|
15893
|
+
}, Zm = {
|
|
15893
15894
|
handlerName: "autoTotalPageCountEntity",
|
|
15894
|
-
handler:
|
|
15895
|
-
},
|
|
15895
|
+
handler: Ym
|
|
15896
|
+
}, Qm = (r) => {
|
|
15896
15897
|
const { nodes: e } = r;
|
|
15897
15898
|
if (e.length === 0 || e[0].name !== "w:tab")
|
|
15898
15899
|
return { nodes: [], consumed: 0 };
|
|
@@ -15904,11 +15905,11 @@ const Oo = (r = []) => {
|
|
|
15904
15905
|
},
|
|
15905
15906
|
content: []
|
|
15906
15907
|
}], consumed: 1 };
|
|
15907
|
-
},
|
|
15908
|
+
}, ep = {
|
|
15908
15909
|
handlerName: "tabNodeHandler",
|
|
15909
|
-
handler:
|
|
15910
|
+
handler: Qm
|
|
15910
15911
|
};
|
|
15911
|
-
function
|
|
15912
|
+
function tp({ docx: r }) {
|
|
15912
15913
|
const e = xr(), t = r["word/comments.xml"];
|
|
15913
15914
|
if (!t) return;
|
|
15914
15915
|
const { elements: n } = t;
|
|
@@ -15934,16 +15935,16 @@ function Zm({ docx: r }) {
|
|
|
15934
15935
|
trackedDeletedText: k
|
|
15935
15936
|
};
|
|
15936
15937
|
});
|
|
15937
|
-
return
|
|
15938
|
+
return rp({ docx: r, comments: s });
|
|
15938
15939
|
}
|
|
15939
|
-
const
|
|
15940
|
+
const rp = ({ docx: r, comments: e }) => {
|
|
15940
15941
|
const t = r["word/commentsExtended.xml"];
|
|
15941
15942
|
if (!t) return [];
|
|
15942
15943
|
const { elements: n } = t, { elements: i } = n[0], s = i.filter((o) => o.name === "w15:commentEx");
|
|
15943
15944
|
return e.map((o) => {
|
|
15944
15945
|
const a = s.find((h) => h.attributes["w15:paraId"] === o.paraId);
|
|
15945
15946
|
if (!a) return { ...o };
|
|
15946
|
-
const { isDone: u, paraIdParent: f } =
|
|
15947
|
+
const { isDone: u, paraIdParent: f } = np(a);
|
|
15947
15948
|
let c;
|
|
15948
15949
|
return f && (c = e.find((h) => h.paraId === f)), {
|
|
15949
15950
|
...o,
|
|
@@ -15951,11 +15952,11 @@ const Qm = ({ docx: r, comments: e }) => {
|
|
|
15951
15952
|
parentCommentId: c?.commentId
|
|
15952
15953
|
};
|
|
15953
15954
|
});
|
|
15954
|
-
},
|
|
15955
|
+
}, np = (r) => {
|
|
15955
15956
|
const { attributes: e } = r, t = e["w15:paraId"], n = e["w15:done"] === "1", i = e["w15:paraIdParent"];
|
|
15956
15957
|
return { paraId: t, isDone: n, paraIdParent: i };
|
|
15957
|
-
},
|
|
15958
|
-
const n = je(
|
|
15958
|
+
}, ip = (r, e, t) => {
|
|
15959
|
+
const n = je($d(r));
|
|
15959
15960
|
if (!n) return null;
|
|
15960
15961
|
if (e?.telemetry) {
|
|
15961
15962
|
const o = Object.keys(r).map((a) => {
|
|
@@ -15980,7 +15981,7 @@ const Qm = ({ docx: r, comments: e }) => {
|
|
|
15980
15981
|
}
|
|
15981
15982
|
const i = xr(), s = n.elements[0].elements.find((o) => o.name === "w:body");
|
|
15982
15983
|
if (s) {
|
|
15983
|
-
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f =
|
|
15984
|
+
const o = s, a = ["w:sectPr"], u = o.elements?.filter((S) => !a.includes(S.name)) ?? [], f = tp({ docx: r }), c = {}, h = {
|
|
15984
15985
|
type: "doc",
|
|
15985
15986
|
content: i.handler({
|
|
15986
15987
|
nodes: u,
|
|
@@ -16003,37 +16004,37 @@ const Qm = ({ docx: r, comments: e }) => {
|
|
|
16003
16004
|
), {
|
|
16004
16005
|
pmDoc: h,
|
|
16005
16006
|
savedTagsToRestore: o,
|
|
16006
|
-
pageStyles:
|
|
16007
|
+
pageStyles: op(o, r, e, t),
|
|
16007
16008
|
comments: f,
|
|
16008
|
-
linkedStyles:
|
|
16009
|
-
numbering:
|
|
16009
|
+
linkedStyles: ap(r),
|
|
16010
|
+
numbering: cp(r)
|
|
16010
16011
|
};
|
|
16011
16012
|
}
|
|
16012
16013
|
return null;
|
|
16013
16014
|
}, xr = () => {
|
|
16014
16015
|
const r = [
|
|
16016
|
+
bm,
|
|
16017
|
+
Om,
|
|
16018
|
+
Cm,
|
|
16019
|
+
Am,
|
|
16020
|
+
Wm,
|
|
16021
|
+
jm,
|
|
16022
|
+
Km,
|
|
16015
16023
|
gm,
|
|
16016
|
-
|
|
16017
|
-
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
|
|
16022
|
-
|
|
16023
|
-
tm,
|
|
16024
|
-
fm,
|
|
16025
|
-
Kd,
|
|
16026
|
-
Ym,
|
|
16027
|
-
Jm,
|
|
16028
|
-
$m,
|
|
16029
|
-
jm
|
|
16024
|
+
im,
|
|
16025
|
+
pm,
|
|
16026
|
+
Yd,
|
|
16027
|
+
ep,
|
|
16028
|
+
Xm,
|
|
16029
|
+
Zm,
|
|
16030
|
+
zm
|
|
16030
16031
|
//this should be the last one, bcs this parses everything!!!
|
|
16031
16032
|
];
|
|
16032
16033
|
return {
|
|
16033
|
-
handler:
|
|
16034
|
+
handler: sp(r),
|
|
16034
16035
|
handlerEntities: r
|
|
16035
16036
|
};
|
|
16036
|
-
},
|
|
16037
|
+
}, sp = (r) => {
|
|
16037
16038
|
const e = (n, i, s, o) => !n || i < 0 || i >= n.length ? {
|
|
16038
16039
|
elementIndex: i,
|
|
16039
16040
|
error: "index_out_of_bounds",
|
|
@@ -16118,7 +16119,7 @@ const Qm = ({ docx: r, comments: e }) => {
|
|
|
16118
16119
|
};
|
|
16119
16120
|
return t;
|
|
16120
16121
|
};
|
|
16121
|
-
function
|
|
16122
|
+
function op(r, e, t, n) {
|
|
16122
16123
|
const i = r.elements?.find((o) => o.name === "w:sectPr"), s = {};
|
|
16123
16124
|
return i?.elements?.forEach((o) => {
|
|
16124
16125
|
const { name: a, attributes: u } = o;
|
|
@@ -16156,9 +16157,9 @@ function np(r, e, t, n) {
|
|
|
16156
16157
|
case "w:titlePg":
|
|
16157
16158
|
t.headerIds.titlePg = !0;
|
|
16158
16159
|
}
|
|
16159
|
-
}),
|
|
16160
|
+
}), lp(e, t, n), s.alternateHeaders = fp(e), s;
|
|
16160
16161
|
}
|
|
16161
|
-
function
|
|
16162
|
+
function ap(r) {
|
|
16162
16163
|
const e = r["word/styles.xml"];
|
|
16163
16164
|
if (!e) return [];
|
|
16164
16165
|
const { elements: t } = e.elements[0], n = t.filter((o) => o.name === "w:style");
|
|
@@ -16168,7 +16169,7 @@ function ip(r) {
|
|
|
16168
16169
|
});
|
|
16169
16170
|
const s = [];
|
|
16170
16171
|
return n.forEach((o) => {
|
|
16171
|
-
const a = o.attributes["w:styleId"], u =
|
|
16172
|
+
const a = o.attributes["w:styleId"], u = Lm(a, r), f = {
|
|
16172
16173
|
id: o.attributes["w:styleId"],
|
|
16173
16174
|
type: o.attributes["w:type"],
|
|
16174
16175
|
definition: u,
|
|
@@ -16177,7 +16178,7 @@ function ip(r) {
|
|
|
16177
16178
|
s.push(f);
|
|
16178
16179
|
}), s;
|
|
16179
16180
|
}
|
|
16180
|
-
function
|
|
16181
|
+
function up(r) {
|
|
16181
16182
|
if (!r) return null;
|
|
16182
16183
|
const e = je(r), { elements: t } = e.elements[0];
|
|
16183
16184
|
return Object.keys(vo).forEach((n) => {
|
|
@@ -16187,10 +16188,10 @@ function sp(r) {
|
|
|
16187
16188
|
}
|
|
16188
16189
|
}), e;
|
|
16189
16190
|
}
|
|
16190
|
-
const
|
|
16191
|
+
const lp = (r, e, t) => {
|
|
16191
16192
|
const i = r["word/_rels/document.xml.rels"].elements.find((h) => h.name === "Relationships"), { elements: s } = i, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((h) => h.attributes.Type === o), f = s.filter((h) => h.attributes.Type === a), g = (Eu(r["word/document.xml"]) || []).flatMap((h) => h.elements);
|
|
16192
16193
|
u.forEach((h) => {
|
|
16193
|
-
const { rId: S, referenceFile: T, currentFileName: A } =
|
|
16194
|
+
const { rId: S, referenceFile: T, currentFileName: A } = _o(h, r), w = g.find((C) => C.name === "w:headerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), I = k.handler({
|
|
16194
16195
|
nodes: T.elements[0].elements,
|
|
16195
16196
|
nodeListHandler: k,
|
|
16196
16197
|
docx: r,
|
|
@@ -16200,7 +16201,7 @@ const op = (r, e, t) => {
|
|
|
16200
16201
|
});
|
|
16201
16202
|
e.headers[S] = { type: "doc", content: [...I] }, e.headerIds[w] = S;
|
|
16202
16203
|
}), f.forEach((h) => {
|
|
16203
|
-
const { rId: S, referenceFile: T, currentFileName: A } =
|
|
16204
|
+
const { rId: S, referenceFile: T, currentFileName: A } = _o(h, r), w = g.find((C) => C.name === "w:footerReference" && C.attributes["r:id"] === S)?.attributes["w:type"], k = xr(), I = k.handler({
|
|
16204
16205
|
nodes: T.elements[0].elements,
|
|
16205
16206
|
nodeListHandler: k,
|
|
16206
16207
|
docx: r,
|
|
@@ -16214,7 +16215,7 @@ const op = (r, e, t) => {
|
|
|
16214
16215
|
for (const t in r)
|
|
16215
16216
|
r[t] === "w:sectPr" ? e.push(r) : typeof r[t] == "object" && Eu(r[t], e);
|
|
16216
16217
|
return e;
|
|
16217
|
-
},
|
|
16218
|
+
}, _o = (r, e) => {
|
|
16218
16219
|
const t = r.attributes.Id, n = r.attributes.Target, i = e[`word/${n}`];
|
|
16219
16220
|
return {
|
|
16220
16221
|
rId: t,
|
|
@@ -16222,7 +16223,7 @@ const op = (r, e, t) => {
|
|
|
16222
16223
|
currentFileName: n
|
|
16223
16224
|
};
|
|
16224
16225
|
};
|
|
16225
|
-
function
|
|
16226
|
+
function cp(r) {
|
|
16226
16227
|
let e = r["word/numbering.xml"];
|
|
16227
16228
|
(!e || !e.elements?.length || !e.elements[0].elements?.length) && (e = nu);
|
|
16228
16229
|
const t = e.elements[0].elements, n = t.filter((a) => a.name === "w:abstractNum"), i = t.filter((a) => a.name === "w:num"), s = {};
|
|
@@ -16239,7 +16240,7 @@ function ap(r) {
|
|
|
16239
16240
|
definitions: o
|
|
16240
16241
|
};
|
|
16241
16242
|
}
|
|
16242
|
-
const
|
|
16243
|
+
const fp = (r) => {
|
|
16243
16244
|
const e = r["word/settings.xml"];
|
|
16244
16245
|
if (!e || !e.elements?.length) return !1;
|
|
16245
16246
|
const { elements: t = [] } = e.elements[0];
|
|
@@ -16253,7 +16254,7 @@ const dt = class dt {
|
|
|
16253
16254
|
}
|
|
16254
16255
|
parseFromXml() {
|
|
16255
16256
|
this.docx?.forEach((e) => {
|
|
16256
|
-
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] =
|
|
16257
|
+
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] = up(this.convertedXml[e.name]));
|
|
16257
16258
|
}), this.initialJSON = this.convertedXml["word/document.xml"], this.initialJSON || (this.initialJSON = this.parseXmlToJson(this.xml)), this.declaration = this.initialJSON?.declaration;
|
|
16258
16259
|
}
|
|
16259
16260
|
parseXmlToJson(e) {
|
|
@@ -16272,7 +16273,7 @@ const dt = class dt {
|
|
|
16272
16273
|
return;
|
|
16273
16274
|
}
|
|
16274
16275
|
}
|
|
16275
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
16276
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.13") {
|
|
16276
16277
|
const n = "docProps/custom.xml";
|
|
16277
16278
|
e[n] || (e[n] = Fu());
|
|
16278
16279
|
const i = e["docProps/custom.xml"];
|
|
@@ -16339,14 +16340,14 @@ const dt = class dt {
|
|
|
16339
16340
|
}
|
|
16340
16341
|
getSchema(e) {
|
|
16341
16342
|
this.getDocumentInternalId();
|
|
16342
|
-
const t =
|
|
16343
|
+
const t = ip({ ...this.convertedXml, media: this.media }, this, e);
|
|
16343
16344
|
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;
|
|
16344
16345
|
}
|
|
16345
16346
|
schemaToXml(e, t = !1) {
|
|
16346
16347
|
return new ko(this).schemaToXml(e, t);
|
|
16347
16348
|
}
|
|
16348
16349
|
async exportToDocx(e, t, n, i = !1, s, o = []) {
|
|
16349
|
-
const a = o.map((A) =>
|
|
16350
|
+
const a = o.map((A) => rd(A)), u = a.map((A, F) => nd(A, F, a)), { result: f, params: c } = this.exportToXmlJson({
|
|
16350
16351
|
data: e,
|
|
16351
16352
|
editorSchema: t,
|
|
16352
16353
|
comments: o,
|
|
@@ -16368,7 +16369,7 @@ const dt = class dt {
|
|
|
16368
16369
|
});
|
|
16369
16370
|
S = { ...A }, T = F;
|
|
16370
16371
|
}
|
|
16371
|
-
return this.convertedXml = { ...this.convertedXml, ...S }, Ke(this, it, Su).call(this, [...c.relationships, ...T]),
|
|
16372
|
+
return this.convertedXml = { ...this.convertedXml, ...S }, Ke(this, it, Su).call(this, [...c.relationships, ...T]), dp(this.convertedXml), Ke(this, it, vu).call(this, c), h;
|
|
16372
16373
|
}
|
|
16373
16374
|
exportToXmlJson({
|
|
16374
16375
|
data: e,
|
|
@@ -16406,7 +16407,7 @@ it = new WeakSet(), vu = function(e) {
|
|
|
16406
16407
|
* Update comments files and relationships depending on export type
|
|
16407
16408
|
*/
|
|
16408
16409
|
Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
|
|
16409
|
-
const { documentXml: i, relationships: s } =
|
|
16410
|
+
const { documentXml: i, relationships: s } = cd({
|
|
16410
16411
|
exportType: t,
|
|
16411
16412
|
convertedXml: this.convertedXml,
|
|
16412
16413
|
defs: e,
|
|
@@ -16432,7 +16433,7 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
|
|
|
16432
16433
|
...this.convertedXml.media,
|
|
16433
16434
|
...t
|
|
16434
16435
|
}, this.media = this.convertedXml.media, this.addedMedia = t;
|
|
16435
|
-
},
|
|
16436
|
+
}, _t(dt, "allowedElements", Object.freeze({
|
|
16436
16437
|
"w:document": "doc",
|
|
16437
16438
|
"w:body": "body",
|
|
16438
16439
|
"w:p": "paragraph",
|
|
@@ -16453,7 +16454,7 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
|
|
|
16453
16454
|
"w:commentRangeStart": "commentRangeStart",
|
|
16454
16455
|
"w:commentRangeEnd": "commentRangeEnd",
|
|
16455
16456
|
"w:commentReference": "commentReference"
|
|
16456
|
-
})),
|
|
16457
|
+
})), _t(dt, "markTypes", [
|
|
16457
16458
|
{ name: "w:b", type: "bold" },
|
|
16458
16459
|
{ name: "w:bCs", type: "bold" },
|
|
16459
16460
|
{ name: "w:i", type: "italic" },
|
|
@@ -16470,15 +16471,15 @@ Cu = function({ defs: e, exportType: t, commentsWithParaIds: n }) {
|
|
|
16470
16471
|
{ name: "link", type: "link", mark: "link", property: "href" },
|
|
16471
16472
|
{ name: "w:highlight", type: "highlight", mark: "highlight", property: "color" }
|
|
16472
16473
|
// { name: 'w:shd', type: 'highlight', mark: 'highlight', property: 'color'}
|
|
16473
|
-
]),
|
|
16474
|
+
]), _t(dt, "propertyTypes", Object.freeze({
|
|
16474
16475
|
"w:pPr": "paragraphProperties",
|
|
16475
16476
|
"w:rPr": "runProperties",
|
|
16476
16477
|
"w:sectPr": "sectionProperties",
|
|
16477
16478
|
"w:numPr": "numberingProperties",
|
|
16478
16479
|
"w:tcPr": "tableCellProperties"
|
|
16479
|
-
})),
|
|
16480
|
+
})), _t(dt, "elements", /* @__PURE__ */ new Set(["w:document", "w:body", "w:p", "w:r", "w:t", "w:delText"]));
|
|
16480
16481
|
let Nt = dt;
|
|
16481
|
-
function
|
|
16482
|
+
function dp(r) {
|
|
16482
16483
|
const e = "docProps/custom.xml";
|
|
16483
16484
|
r[e] || (r[e] = Fu());
|
|
16484
16485
|
const n = r[e].elements.find((a) => a.name === "Properties");
|
|
@@ -16497,7 +16498,7 @@ function lp(r) {
|
|
|
16497
16498
|
function Fu() {
|
|
16498
16499
|
return zf;
|
|
16499
16500
|
}
|
|
16500
|
-
function Bu(r = 2, e = "0.10.
|
|
16501
|
+
function Bu(r = 2, e = "0.10.13") {
|
|
16501
16502
|
return {
|
|
16502
16503
|
type: "element",
|
|
16503
16504
|
name: "property",
|
|
@@ -16521,15 +16522,15 @@ function Bu(r = 2, e = "0.10.11") {
|
|
|
16521
16522
|
};
|
|
16522
16523
|
}
|
|
16523
16524
|
export {
|
|
16524
|
-
|
|
16525
|
+
dd as $,
|
|
16525
16526
|
at as A,
|
|
16526
16527
|
Ht as B,
|
|
16527
|
-
|
|
16528
|
-
|
|
16528
|
+
Pp as C,
|
|
16529
|
+
_a as D,
|
|
16529
16530
|
ru as E,
|
|
16530
16531
|
Q as F,
|
|
16531
16532
|
Pi as G,
|
|
16532
|
-
|
|
16533
|
+
Tp as H,
|
|
16533
16534
|
ct as I,
|
|
16534
16535
|
et as J,
|
|
16535
16536
|
Ni as K,
|
|
@@ -16537,44 +16538,44 @@ export {
|
|
|
16537
16538
|
wr as M,
|
|
16538
16539
|
Ge as N,
|
|
16539
16540
|
Nt as O,
|
|
16540
|
-
|
|
16541
|
+
Cp as P,
|
|
16541
16542
|
At as Q,
|
|
16542
16543
|
Je as R,
|
|
16543
16544
|
ve as S,
|
|
16544
16545
|
tt as T,
|
|
16545
16546
|
Of as U,
|
|
16546
|
-
|
|
16547
|
-
|
|
16547
|
+
Lp as V,
|
|
16548
|
+
Sp as W,
|
|
16548
16549
|
Za as X,
|
|
16549
|
-
|
|
16550
|
+
fd as Y,
|
|
16550
16551
|
Tf as Z,
|
|
16551
16552
|
Sf as _,
|
|
16552
|
-
|
|
16553
|
+
vp as a,
|
|
16553
16554
|
We as a0,
|
|
16554
16555
|
qo as a1,
|
|
16555
|
-
|
|
16556
|
-
|
|
16556
|
+
Op as a2,
|
|
16557
|
+
Fp as a3,
|
|
16557
16558
|
ue as b,
|
|
16558
|
-
|
|
16559
|
+
Bp as c,
|
|
16559
16560
|
gr as d,
|
|
16560
16561
|
ge as e,
|
|
16561
|
-
|
|
16562
|
-
|
|
16562
|
+
Ep as f,
|
|
16563
|
+
gp as g,
|
|
16563
16564
|
Nf as h,
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16565
|
+
kp as i,
|
|
16566
|
+
xp as j,
|
|
16567
|
+
Ap as k,
|
|
16568
|
+
yp as l,
|
|
16569
|
+
Dp as m,
|
|
16570
|
+
Rp as n,
|
|
16570
16571
|
If as o,
|
|
16571
16572
|
he as p,
|
|
16572
16573
|
Ie as q,
|
|
16573
16574
|
bf as r,
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16575
|
+
Lc as s,
|
|
16576
|
+
bp as t,
|
|
16577
|
+
Np as u,
|
|
16578
|
+
Ip as v,
|
|
16578
16579
|
Ri as w,
|
|
16579
16580
|
yr as x,
|
|
16580
16581
|
xa as y,
|