@editora/plugins 1.0.22 → 1.1.0
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/README.md +1 -1
- package/dist/{CodePlugin.native-CKJo7IFG.js → CodePlugin.native-BwhZsI5v.js} +11 -11
- package/dist/{CodePlugin.native-D8gGxB8i.mjs → CodePlugin.native-CojLCp6C.mjs} +61 -53
- package/dist/MediaManagerPlugin.native-CycfjOi4.js +1841 -0
- package/dist/MediaManagerPlugin.native-DZrmcmnm.mjs +4688 -0
- package/dist/a11y-checker.cjs.js +3 -3
- package/dist/a11y-checker.esm.js +6 -4
- package/dist/anchor.cjs.js +4 -4
- package/dist/anchor.esm.js +19 -18
- package/dist/anchoredPopover-BNJ8e7j-.mjs +128 -0
- package/dist/anchoredPopover-Cygmit_o.js +1 -0
- package/dist/approval-workflow.cjs.js +7 -7
- package/dist/approval-workflow.esm.js +55 -54
- package/dist/background-color.cjs.js +2 -2
- package/dist/background-color.esm.js +72 -67
- package/dist/blocks-library.cjs.js +18 -19
- package/dist/blocks-library.esm.js +41 -42
- package/dist/citations.cjs.js +4 -4
- package/dist/citations.esm.js +50 -50
- package/dist/code-sample.cjs.js +10 -10
- package/dist/code-sample.esm.js +4 -4
- package/dist/code.cjs.js +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/comments.cjs.js +23 -11
- package/dist/comments.esm.js +167 -149
- package/dist/conditional-content.cjs.js +2 -2
- package/dist/conditional-content.esm.js +2 -2
- package/dist/confirmDialog-D3S8BhIM.js +42 -0
- package/dist/confirmDialog-DR4c8j6S.mjs +87 -0
- package/dist/content-rules.cjs.js +6 -6
- package/dist/content-rules.esm.js +51 -51
- package/dist/data-binding.cjs.js +2 -2
- package/dist/data-binding.esm.js +2 -2
- package/dist/dialogHelpers-BbwpIXD9.mjs +183 -0
- package/dist/dialogHelpers-BxSQ7A6M.js +12 -0
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +1 -1
- package/dist/{documentManager-BL98a7YZ.mjs → documentManager-BFjGIeI8.mjs} +793 -781
- package/dist/{documentManager-r8t7yZEd.js → documentManager-C9d17K5W.js} +10 -10
- package/dist/embed-iframe.cjs.js +6 -6
- package/dist/embed-iframe.esm.js +6 -6
- package/dist/emojis.cjs.js +5 -5
- package/dist/emojis.esm.js +3 -3
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +12 -12
- package/dist/format-painter.cjs.js +1 -1
- package/dist/format-painter.esm.js +172 -151
- package/dist/heading.cjs.js +1 -1
- package/dist/heading.esm.js +96 -83
- package/dist/history.cjs.js +1 -1
- package/dist/history.esm.js +176 -97
- package/dist/{index-D5xugkYA.js → index-CtR8olYy.js} +2 -2
- package/dist/{index-B-VitI3v.mjs → index-Du_Ljqfz.mjs} +36 -35
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +90 -83
- package/dist/katex-Cc3-mvOY.js +257 -0
- package/dist/katex-DoRnZ_sp.mjs +11682 -0
- package/dist/katex.min--Ws3c9be.mjs +5 -0
- package/dist/katex.min-Dk2VscxB.js +2 -0
- package/dist/link.cjs.js +3 -3
- package/dist/link.esm.js +3 -3
- package/dist/list.cjs.js +1 -1
- package/dist/list.esm.js +140 -52
- package/dist/math.cjs.js +14 -14
- package/dist/math.esm.js +149 -136
- package/dist/media-manager.cjs.js +1 -619
- package/dist/media-manager.esm.js +30 -1017
- package/dist/mentions.cjs.js +12 -12
- package/dist/mentions.esm.js +149 -143
- package/dist/merge-tag.cjs.js +5 -3
- package/dist/merge-tag.esm.js +5 -3
- package/dist/notify-BkbzMopb.js +32 -0
- package/dist/notify-zOp-mUOJ.mjs +59 -0
- package/dist/pii-redaction.cjs.js +1 -1
- package/dist/pii-redaction.esm.js +1 -1
- package/dist/preview.cjs.js +1 -1
- package/dist/preview.esm.js +1 -1
- package/dist/shared-config.cjs.js +1 -1
- package/dist/shared-config.esm.js +14 -14
- package/dist/slash-commands.cjs.js +5 -5
- package/dist/slash-commands.esm.js +259 -236
- package/dist/smart-paste.cjs.js +1 -1
- package/dist/smart-paste.esm.js +1 -1
- package/dist/special-characters.cjs.js +3 -3
- package/dist/special-characters.esm.js +3 -3
- package/dist/spell-check.cjs.js +9 -9
- package/dist/spell-check.esm.js +288 -251
- package/dist/table.cjs.js +14 -14
- package/dist/table.esm.js +175 -154
- package/dist/template.cjs.js +5 -3
- package/dist/template.esm.js +15 -13
- package/dist/text-color.cjs.js +4 -4
- package/dist/text-color.esm.js +38 -34
- package/dist/translation-workflow.cjs.js +9 -9
- package/dist/translation-workflow.esm.js +98 -95
- package/dist/version-diff.cjs.js +4 -4
- package/dist/version-diff.esm.js +36 -36
- package/index.d.ts +183 -2
- package/package.json +6 -5
- package/dist/anchoredPopover-Bg-ey7Yo.js +0 -1
- package/dist/anchoredPopover-D_JbjvdA.mjs +0 -111
- package/dist/dialogHelpers-5d5BuOCW.mjs +0 -39
- package/dist/dialogHelpers-zU6zpMIA.js +0 -12
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { g as sc, a as oc, b as ic } from "./index-
|
|
1
|
+
import { g as sc, a as oc, b as ic } from "./index-Du_Ljqfz.mjs";
|
|
2
2
|
import { p as ys } from "./sanitizeHtml-CtLy8um-.mjs";
|
|
3
3
|
var wr = { exports: {} };
|
|
4
4
|
var fs;
|
|
5
5
|
function ac() {
|
|
6
6
|
return fs || (fs = 1, (function(bt, _t) {
|
|
7
|
-
(function(ot,
|
|
8
|
-
bt.exports =
|
|
7
|
+
(function(ot, ft) {
|
|
8
|
+
bt.exports = ft();
|
|
9
9
|
})(globalThis, (() => (() => {
|
|
10
|
-
var ot = { 9742: (
|
|
11
|
-
|
|
10
|
+
var ot = { 9742: (H, D) => {
|
|
11
|
+
D.byteLength = function(N) {
|
|
12
12
|
var _ = p(N), y = _[0], h = _[1];
|
|
13
13
|
return 3 * (y + h) / 4 - h;
|
|
14
|
-
},
|
|
14
|
+
}, D.toByteArray = function(N) {
|
|
15
15
|
var _, y, h = p(N), u = h[0], m = h[1], E = new i((function(d, b, C) {
|
|
16
16
|
return 3 * (b + C) / 4 - C;
|
|
17
17
|
})(0, u, m)), O = 0, M = m > 0 ? u - 4 : u;
|
|
18
18
|
for (y = 0; y < M; y += 4) _ = a[N.charCodeAt(y)] << 18 | a[N.charCodeAt(y + 1)] << 12 | a[N.charCodeAt(y + 2)] << 6 | a[N.charCodeAt(y + 3)], E[O++] = _ >> 16 & 255, E[O++] = _ >> 8 & 255, E[O++] = 255 & _;
|
|
19
19
|
return m === 2 && (_ = a[N.charCodeAt(y)] << 2 | a[N.charCodeAt(y + 1)] >> 4, E[O++] = 255 & _), m === 1 && (_ = a[N.charCodeAt(y)] << 10 | a[N.charCodeAt(y + 1)] << 4 | a[N.charCodeAt(y + 2)] >> 2, E[O++] = _ >> 8 & 255, E[O++] = 255 & _), E;
|
|
20
|
-
},
|
|
20
|
+
}, D.fromByteArray = function(N) {
|
|
21
21
|
for (var _, y = N.length, h = y % 3, u = [], m = 16383, E = 0, O = y - h; E < O; E += m) u.push(S(N, E, E + m > O ? O : E + m));
|
|
22
22
|
return h === 1 ? (_ = N[y - 1], u.push(r[_ >> 2] + r[_ << 4 & 63] + "==")) : h === 2 && (_ = (N[y - 2] << 8) + N[y - 1], u.push(r[_ >> 10] + r[_ >> 4 & 63] + r[_ << 2 & 63] + "=")), u.join("");
|
|
23
23
|
};
|
|
@@ -33,11 +33,11 @@ function ac() {
|
|
|
33
33
|
return m.join("");
|
|
34
34
|
}
|
|
35
35
|
a[45] = 62, a[95] = 63;
|
|
36
|
-
}, 8764: (
|
|
36
|
+
}, 8764: (H, D, r) => {
|
|
37
37
|
const a = r(9742), i = r(645), l = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
|
|
38
|
-
|
|
38
|
+
D.Buffer = p, D.SlowBuffer = function(s) {
|
|
39
39
|
return +s != s && (s = 0), p.alloc(+s);
|
|
40
|
-
},
|
|
40
|
+
}, D.INSPECT_MAX_BYTES = 50;
|
|
41
41
|
const g = 2147483647;
|
|
42
42
|
function I(s) {
|
|
43
43
|
if (s > g) throw new RangeError('The value "' + s + '" is invalid for option "size"');
|
|
@@ -223,7 +223,7 @@ function ac() {
|
|
|
223
223
|
return Z;
|
|
224
224
|
})(w), s, R, j);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function P(s, w, R, j) {
|
|
227
227
|
return nt(ht(w), s, R, j);
|
|
228
228
|
}
|
|
229
229
|
function n(s, w, R, j) {
|
|
@@ -270,7 +270,7 @@ function ac() {
|
|
|
270
270
|
return yt;
|
|
271
271
|
})(j);
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
D.kMaxLength = g, p.TYPED_ARRAY_SUPPORT = (function() {
|
|
274
274
|
try {
|
|
275
275
|
const s = new Uint8Array(1), w = { foo: function() {
|
|
276
276
|
return 42;
|
|
@@ -361,7 +361,7 @@ function ac() {
|
|
|
361
361
|
return this === s || p.compare(this, s) === 0;
|
|
362
362
|
}, p.prototype.inspect = function() {
|
|
363
363
|
let s = "";
|
|
364
|
-
const w =
|
|
364
|
+
const w = D.INSPECT_MAX_BYTES;
|
|
365
365
|
return s = this.toString("hex", 0, w).replace(/(.{2})/g, "$1 ").trim(), this.length > w && (s += " ... "), "<Buffer " + s + ">";
|
|
366
366
|
}, l && (p.prototype[l] = p.prototype.inspect), p.prototype.compare = function(s, w, R, j, X) {
|
|
367
367
|
if (it(s, Uint8Array) && (s = p.from(s, s.offset, s.byteLength)), !p.isBuffer(s)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof s);
|
|
@@ -405,7 +405,7 @@ function ac() {
|
|
|
405
405
|
case "binary":
|
|
406
406
|
return x(this, s, w, R);
|
|
407
407
|
case "base64":
|
|
408
|
-
return
|
|
408
|
+
return P(this, s, w, R);
|
|
409
409
|
case "ucs2":
|
|
410
410
|
case "ucs-2":
|
|
411
411
|
case "utf16le":
|
|
@@ -435,7 +435,7 @@ function ac() {
|
|
|
435
435
|
const j = s.length;
|
|
436
436
|
(!w || w < 0) && (w = 0), (!R || R < 0 || R > j) && (R = j);
|
|
437
437
|
let X = "";
|
|
438
|
-
for (let Z = w; Z < R; ++Z) X +=
|
|
438
|
+
for (let Z = w; Z < R; ++Z) X += mt[s[Z]];
|
|
439
439
|
return X;
|
|
440
440
|
}
|
|
441
441
|
function c(s, w, R) {
|
|
@@ -758,7 +758,7 @@ function ac() {
|
|
|
758
758
|
function wt(s) {
|
|
759
759
|
return s != s;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const mt = (function() {
|
|
762
762
|
const s = "0123456789abcdef", w = new Array(256);
|
|
763
763
|
for (let R = 0; R < 16; ++R) {
|
|
764
764
|
const j = 16 * R;
|
|
@@ -772,11 +772,11 @@ function ac() {
|
|
|
772
772
|
function Ft() {
|
|
773
773
|
throw new Error("BigInt not supported");
|
|
774
774
|
}
|
|
775
|
-
}, 7187: (
|
|
776
|
-
var
|
|
775
|
+
}, 7187: (H) => {
|
|
776
|
+
var D, r = typeof Reflect == "object" ? Reflect : null, a = r && typeof r.apply == "function" ? r.apply : function(E, O, M) {
|
|
777
777
|
return Function.prototype.apply.call(E, O, M);
|
|
778
778
|
};
|
|
779
|
-
|
|
779
|
+
D = r && typeof r.ownKeys == "function" ? r.ownKeys : Object.getOwnPropertySymbols ? function(E) {
|
|
780
780
|
return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E));
|
|
781
781
|
} : function(E) {
|
|
782
782
|
return Object.getOwnPropertyNames(E);
|
|
@@ -787,7 +787,7 @@ function ac() {
|
|
|
787
787
|
function l() {
|
|
788
788
|
l.init.call(this);
|
|
789
789
|
}
|
|
790
|
-
|
|
790
|
+
H.exports = l, H.exports.once = function(E, O) {
|
|
791
791
|
return new Promise((function(M, d) {
|
|
792
792
|
function b(x) {
|
|
793
793
|
E.removeListener(O, C), d(x);
|
|
@@ -795,8 +795,8 @@ function ac() {
|
|
|
795
795
|
function C() {
|
|
796
796
|
typeof E.removeListener == "function" && E.removeListener("error", b), M([].slice.call(arguments));
|
|
797
797
|
}
|
|
798
|
-
m(E, O, C, { once: !0 }), O !== "error" && (function(x,
|
|
799
|
-
typeof x.on == "function" && m(x, "error",
|
|
798
|
+
m(E, O, C, { once: !0 }), O !== "error" && (function(x, P, n) {
|
|
799
|
+
typeof x.on == "function" && m(x, "error", P, { once: !0 });
|
|
800
800
|
})(E, b);
|
|
801
801
|
}));
|
|
802
802
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
|
@@ -808,12 +808,12 @@ function ac() {
|
|
|
808
808
|
return E._maxListeners === void 0 ? l.defaultMaxListeners : E._maxListeners;
|
|
809
809
|
}
|
|
810
810
|
function S(E, O, M, d) {
|
|
811
|
-
var b, C, x,
|
|
811
|
+
var b, C, x, P;
|
|
812
812
|
if (I(M), (C = E._events) === void 0 ? (C = E._events = /* @__PURE__ */ Object.create(null), E._eventsCount = 0) : (C.newListener !== void 0 && (E.emit("newListener", O, M.listener ? M.listener : M), C = E._events), x = C[O]), x === void 0) x = C[O] = M, ++E._eventsCount;
|
|
813
813
|
else if (typeof x == "function" ? x = C[O] = d ? [M, x] : [x, M] : d ? x.unshift(M) : x.push(M), (b = p(E)) > 0 && x.length > b && !x.warned) {
|
|
814
814
|
x.warned = !0;
|
|
815
815
|
var n = new Error("Possible EventEmitter memory leak detected. " + x.length + " " + String(O) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
816
|
-
n.name = "MaxListenersExceededWarning", n.emitter = E, n.type = O, n.count = x.length,
|
|
816
|
+
n.name = "MaxListenersExceededWarning", n.emitter = E, n.type = O, n.count = x.length, P = n, console && console.warn && console.warn(P);
|
|
817
817
|
}
|
|
818
818
|
return E;
|
|
819
819
|
}
|
|
@@ -829,7 +829,7 @@ function ac() {
|
|
|
829
829
|
if (d === void 0) return [];
|
|
830
830
|
var b = d[O];
|
|
831
831
|
return b === void 0 ? [] : typeof b == "function" ? M ? [b.listener || b] : [b] : M ? (function(C) {
|
|
832
|
-
for (var x = new Array(C.length),
|
|
832
|
+
for (var x = new Array(C.length), P = 0; P < x.length; ++P) x[P] = C[P].listener || C[P];
|
|
833
833
|
return x;
|
|
834
834
|
})(b) : u(b, b.length);
|
|
835
835
|
}
|
|
@@ -878,11 +878,11 @@ function ac() {
|
|
|
878
878
|
var x = new Error("Unhandled error." + (C ? " (" + C.message + ")" : ""));
|
|
879
879
|
throw x.context = C, x;
|
|
880
880
|
}
|
|
881
|
-
var
|
|
882
|
-
if (
|
|
883
|
-
if (typeof
|
|
881
|
+
var P = b[E];
|
|
882
|
+
if (P === void 0) return !1;
|
|
883
|
+
if (typeof P == "function") a(P, this, O);
|
|
884
884
|
else {
|
|
885
|
-
var n =
|
|
885
|
+
var n = P.length, B = u(P, n);
|
|
886
886
|
for (M = 0; M < n; ++M) a(B[M], this, O);
|
|
887
887
|
}
|
|
888
888
|
return !0;
|
|
@@ -905,9 +905,9 @@ function ac() {
|
|
|
905
905
|
break;
|
|
906
906
|
}
|
|
907
907
|
if (b < 0) return this;
|
|
908
|
-
b === 0 ? M.shift() : (function(
|
|
909
|
-
for (; n + 1 <
|
|
910
|
-
|
|
908
|
+
b === 0 ? M.shift() : (function(P, n) {
|
|
909
|
+
for (; n + 1 < P.length; n++) P[n] = P[n + 1];
|
|
910
|
+
P.pop();
|
|
911
911
|
})(M, b), M.length === 1 && (d[E] = M[0]), d.removeListener !== void 0 && this.emit("removeListener", E, x || O);
|
|
912
912
|
}
|
|
913
913
|
return this;
|
|
@@ -930,10 +930,10 @@ function ac() {
|
|
|
930
930
|
}, l.listenerCount = function(E, O) {
|
|
931
931
|
return typeof E.listenerCount == "function" ? E.listenerCount(O) : h.call(E, O);
|
|
932
932
|
}, l.prototype.listenerCount = h, l.prototype.eventNames = function() {
|
|
933
|
-
return this._eventsCount > 0 ?
|
|
933
|
+
return this._eventsCount > 0 ? D(this._events) : [];
|
|
934
934
|
};
|
|
935
|
-
}, 645: (
|
|
936
|
-
|
|
935
|
+
}, 645: (H, D) => {
|
|
936
|
+
D.read = function(r, a, i, l, g) {
|
|
937
937
|
var I, p, S = 8 * g - l - 1, N = (1 << S) - 1, _ = N >> 1, y = -7, h = i ? g - 1 : 0, u = i ? -1 : 1, m = r[a + h];
|
|
938
938
|
for (h += u, I = m & (1 << -y) - 1, m >>= -y, y += S; y > 0; I = 256 * I + r[a + h], h += u, y -= 8) ;
|
|
939
939
|
for (p = I & (1 << -y) - 1, I >>= -y, y += l; y > 0; p = 256 * p + r[a + h], h += u, y -= 8) ;
|
|
@@ -943,13 +943,13 @@ function ac() {
|
|
|
943
943
|
p += Math.pow(2, l), I -= _;
|
|
944
944
|
}
|
|
945
945
|
return (m ? -1 : 1) * p * Math.pow(2, I - l);
|
|
946
|
-
},
|
|
946
|
+
}, D.write = function(r, a, i, l, g, I) {
|
|
947
947
|
var p, S, N, _ = 8 * I - g - 1, y = (1 << _) - 1, h = y >> 1, u = g === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = l ? 0 : I - 1, E = l ? 1 : -1, O = a < 0 || a === 0 && 1 / a < 0 ? 1 : 0;
|
|
948
948
|
for (a = Math.abs(a), isNaN(a) || a === 1 / 0 ? (S = isNaN(a) ? 1 : 0, p = y) : (p = Math.floor(Math.log(a) / Math.LN2), a * (N = Math.pow(2, -p)) < 1 && (p--, N *= 2), (a += p + h >= 1 ? u / N : u * Math.pow(2, 1 - h)) * N >= 2 && (p++, N /= 2), p + h >= y ? (S = 0, p = y) : p + h >= 1 ? (S = (a * N - 1) * Math.pow(2, g), p += h) : (S = a * Math.pow(2, h - 1) * Math.pow(2, g), p = 0)); g >= 8; r[i + m] = 255 & S, m += E, S /= 256, g -= 8) ;
|
|
949
949
|
for (p = p << g | S, _ += g; _ > 0; r[i + m] = 255 & p, m += E, p /= 256, _ -= 8) ;
|
|
950
950
|
r[i + m - E] |= 128 * O;
|
|
951
951
|
};
|
|
952
|
-
}, 5705: (
|
|
952
|
+
}, 5705: (H, D, r) => {
|
|
953
953
|
var a, i, l = r.g.MutationObserver || r.g.WebKitMutationObserver;
|
|
954
954
|
if (l) {
|
|
955
955
|
var g = 0, I = new l(_), p = r.g.document.createTextNode("");
|
|
@@ -980,26 +980,26 @@ function ac() {
|
|
|
980
980
|
}
|
|
981
981
|
i = !1;
|
|
982
982
|
}
|
|
983
|
-
|
|
983
|
+
H.exports = function(y) {
|
|
984
984
|
N.push(y) !== 1 || i || a();
|
|
985
985
|
};
|
|
986
|
-
}, 5717: (
|
|
987
|
-
typeof Object.create == "function" ?
|
|
988
|
-
r && (
|
|
989
|
-
} :
|
|
986
|
+
}, 5717: (H) => {
|
|
987
|
+
typeof Object.create == "function" ? H.exports = function(D, r) {
|
|
988
|
+
r && (D.super_ = r, D.prototype = Object.create(r.prototype, { constructor: { value: D, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
989
|
+
} : H.exports = function(D, r) {
|
|
990
990
|
if (r) {
|
|
991
|
-
|
|
991
|
+
D.super_ = r;
|
|
992
992
|
var a = function() {
|
|
993
993
|
};
|
|
994
|
-
a.prototype = r.prototype,
|
|
994
|
+
a.prototype = r.prototype, D.prototype = new a(), D.prototype.constructor = D;
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
|
-
}, 8458: (
|
|
997
|
+
}, 8458: (H, D, r) => {
|
|
998
998
|
var a = r(8910), i = r(3790), l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
999
|
-
|
|
999
|
+
D.encode = function(g) {
|
|
1000
1000
|
for (var I, p, S, N, _, y, h, u = [], m = 0, E = g.length, O = E, M = a.getTypeOf(g) !== "string"; m < g.length; ) O = E - m, M ? (I = g[m++], p = m < E ? g[m++] : 0, S = m < E ? g[m++] : 0) : (I = g.charCodeAt(m++), p = m < E ? g.charCodeAt(m++) : 0, S = m < E ? g.charCodeAt(m++) : 0), N = I >> 2, _ = (3 & I) << 4 | p >> 4, y = O > 1 ? (15 & p) << 2 | S >> 6 : 64, h = O > 2 ? 63 & S : 64, u.push(l.charAt(N) + l.charAt(_) + l.charAt(y) + l.charAt(h));
|
|
1001
1001
|
return u.join("");
|
|
1002
|
-
},
|
|
1002
|
+
}, D.decode = function(g) {
|
|
1003
1003
|
var I, p, S, N, _, y, h = 0, u = 0, m = "data:";
|
|
1004
1004
|
if (g.substr(0, m.length) === m) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
1005
1005
|
var E, O = 3 * (g = g.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
@@ -1007,7 +1007,7 @@ function ac() {
|
|
|
1007
1007
|
for (E = i.uint8array ? new Uint8Array(0 | O) : new Array(0 | O); h < g.length; ) I = l.indexOf(g.charAt(h++)) << 2 | (N = l.indexOf(g.charAt(h++))) >> 4, p = (15 & N) << 4 | (_ = l.indexOf(g.charAt(h++))) >> 2, S = (3 & _) << 6 | (y = l.indexOf(g.charAt(h++))), E[u++] = I, _ !== 64 && (E[u++] = p), y !== 64 && (E[u++] = S);
|
|
1008
1008
|
return E;
|
|
1009
1009
|
};
|
|
1010
|
-
}, 7326: (
|
|
1010
|
+
}, 7326: (H, D, r) => {
|
|
1011
1011
|
var a = r(8565), i = r(5301), l = r(2541), g = r(5977);
|
|
1012
1012
|
function I(p, S, N, _, y) {
|
|
1013
1013
|
this.compressedSize = p, this.uncompressedSize = S, this.crc32 = N, this.compression = _, this.compressedContent = y;
|
|
@@ -1021,15 +1021,15 @@ function ac() {
|
|
|
1021
1021
|
return new i(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
1022
1022
|
} }, I.createWorkerFrom = function(p, S, N) {
|
|
1023
1023
|
return p.pipe(new l()).pipe(new g("uncompressedSize")).pipe(S.compressWorker(N)).pipe(new g("compressedSize")).withStreamInfo("compression", S);
|
|
1024
|
-
},
|
|
1025
|
-
}, 1678: (
|
|
1024
|
+
}, H.exports = I;
|
|
1025
|
+
}, 1678: (H, D, r) => {
|
|
1026
1026
|
var a = r(3718);
|
|
1027
|
-
|
|
1027
|
+
D.STORE = { magic: "\0\0", compressWorker: function() {
|
|
1028
1028
|
return new a("STORE compression");
|
|
1029
1029
|
}, uncompressWorker: function() {
|
|
1030
1030
|
return new a("STORE decompression");
|
|
1031
|
-
} },
|
|
1032
|
-
}, 6988: (
|
|
1031
|
+
} }, D.DEFLATE = r(1033);
|
|
1032
|
+
}, 6988: (H, D, r) => {
|
|
1033
1033
|
var a = r(8910), i = (function() {
|
|
1034
1034
|
for (var l, g = [], I = 0; I < 256; I++) {
|
|
1035
1035
|
l = I;
|
|
@@ -1038,7 +1038,7 @@ function ac() {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return g;
|
|
1040
1040
|
})();
|
|
1041
|
-
|
|
1041
|
+
H.exports = function(l, g) {
|
|
1042
1042
|
return l !== void 0 && l.length ? a.getTypeOf(l) !== "string" ? (function(I, p, S, N) {
|
|
1043
1043
|
var _ = i, y = 0 + S;
|
|
1044
1044
|
I ^= -1;
|
|
@@ -1051,17 +1051,17 @@ function ac() {
|
|
|
1051
1051
|
return -1 ^ I;
|
|
1052
1052
|
})(0 | g, l, l.length) : 0;
|
|
1053
1053
|
};
|
|
1054
|
-
}, 6032: (
|
|
1055
|
-
|
|
1056
|
-
}, 8565: (
|
|
1054
|
+
}, 6032: (H, D) => {
|
|
1055
|
+
D.base64 = !1, D.binary = !1, D.dir = !1, D.createFolders = !0, D.date = null, D.compression = null, D.compressionOptions = null, D.comment = null, D.unixPermissions = null, D.dosPermissions = null;
|
|
1056
|
+
}, 8565: (H, D, r) => {
|
|
1057
1057
|
var a;
|
|
1058
|
-
a = typeof Promise < "u" ? Promise : r(3389),
|
|
1059
|
-
}, 1033: (
|
|
1058
|
+
a = typeof Promise < "u" ? Promise : r(3389), H.exports = { Promise: a };
|
|
1059
|
+
}, 1033: (H, D, r) => {
|
|
1060
1060
|
var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", i = r(9591), l = r(8910), g = r(3718), I = a ? "uint8array" : "array";
|
|
1061
1061
|
function p(S, N) {
|
|
1062
1062
|
g.call(this, "FlateWorker/" + S), this._pako = null, this._pakoAction = S, this._pakoOptions = N, this.meta = {};
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
D.magic = "\b\0", l.inherits(p, g), p.prototype.processChunk = function(S) {
|
|
1065
1065
|
this.meta = S.meta, this._pako === null && this._createPako(), this._pako.push(l.transformTo(I, S.data), !1);
|
|
1066
1066
|
}, p.prototype.flush = function() {
|
|
1067
1067
|
g.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
@@ -1073,26 +1073,26 @@ function ac() {
|
|
|
1073
1073
|
this._pako.onData = function(N) {
|
|
1074
1074
|
S.push({ data: N, meta: S.meta });
|
|
1075
1075
|
};
|
|
1076
|
-
},
|
|
1076
|
+
}, D.compressWorker = function(S) {
|
|
1077
1077
|
return new p("Deflate", S);
|
|
1078
|
-
},
|
|
1078
|
+
}, D.uncompressWorker = function() {
|
|
1079
1079
|
return new p("Inflate", {});
|
|
1080
1080
|
};
|
|
1081
|
-
}, 4979: (
|
|
1081
|
+
}, 4979: (H, D, r) => {
|
|
1082
1082
|
var a = r(8910), i = r(3718), l = r(3600), g = r(6988), I = r(1141), p = function(y, h) {
|
|
1083
1083
|
var u, m = "";
|
|
1084
1084
|
for (u = 0; u < h; u++) m += String.fromCharCode(255 & y), y >>>= 8;
|
|
1085
1085
|
return m;
|
|
1086
1086
|
}, S = function(y, h, u, m, E, O) {
|
|
1087
|
-
var M, d, b = y.file, C = y.compression, x = O !== l.utf8encode,
|
|
1087
|
+
var M, d, b = y.file, C = y.compression, x = O !== l.utf8encode, P = a.transformTo("string", O(b.name)), n = a.transformTo("string", l.utf8encode(b.name)), B = b.comment, Q = a.transformTo("string", O(B)), G = a.transformTo("string", l.utf8encode(B)), lt = n.length !== b.name.length, rt = G.length !== B.length, at = "", c = "", A = "", U = b.dir, k = b.date, q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
1088
1088
|
h && !u || (q.crc32 = y.crc32, q.compressedSize = y.compressedSize, q.uncompressedSize = y.uncompressedSize);
|
|
1089
1089
|
var F = 0;
|
|
1090
1090
|
h && (F |= 8), x || !lt && !rt || (F |= 2048);
|
|
1091
1091
|
var W, V, $ = 0, K = 0;
|
|
1092
|
-
U && ($ |= 16), E === "UNIX" ? (K = 798, $ |= (V = W = b.unixPermissions, W || (V = U ? 16893 : 33204), (65535 & V) << 16)) : (K = 20, $ |= 63 & (b.dosPermissions || 0)), M = k.getUTCHours(), M <<= 6, M |= k.getUTCMinutes(), M <<= 5, M |= k.getUTCSeconds() / 2, d = k.getUTCFullYear() - 1980, d <<= 4, d |= k.getUTCMonth() + 1, d <<= 5, d |= k.getUTCDate(), lt && (c = p(1, 1) + p(g(
|
|
1092
|
+
U && ($ |= 16), E === "UNIX" ? (K = 798, $ |= (V = W = b.unixPermissions, W || (V = U ? 16893 : 33204), (65535 & V) << 16)) : (K = 20, $ |= 63 & (b.dosPermissions || 0)), M = k.getUTCHours(), M <<= 6, M |= k.getUTCMinutes(), M <<= 5, M |= k.getUTCSeconds() / 2, d = k.getUTCFullYear() - 1980, d <<= 4, d |= k.getUTCMonth() + 1, d <<= 5, d |= k.getUTCDate(), lt && (c = p(1, 1) + p(g(P), 4) + n, at += "up" + p(c.length, 2) + c), rt && (A = p(1, 1) + p(g(Q), 4) + G, at += "uc" + p(A.length, 2) + A);
|
|
1093
1093
|
var T = "";
|
|
1094
1094
|
return T += `
|
|
1095
|
-
\0`, T += p(F, 2), T += C.magic, T += p(M, 2), T += p(d, 2), T += p(q.crc32, 4), T += p(q.compressedSize, 4), T += p(q.uncompressedSize, 4), T += p(
|
|
1095
|
+
\0`, T += p(F, 2), T += C.magic, T += p(M, 2), T += p(d, 2), T += p(q.crc32, 4), T += p(q.compressedSize, 4), T += p(q.uncompressedSize, 4), T += p(P.length, 2), T += p(at.length, 2), { fileRecord: I.LOCAL_FILE_HEADER + T + P + at, dirRecord: I.CENTRAL_FILE_HEADER + p(K, 2) + T + p(Q.length, 2) + "\0\0\0\0" + p($, 4) + p(m, 4) + P + at + Q };
|
|
1096
1096
|
}, N = function(y) {
|
|
1097
1097
|
return I.DATA_DESCRIPTOR + p(y.crc32, 4) + p(y.compressedSize, 4) + p(y.uncompressedSize, 4);
|
|
1098
1098
|
};
|
|
@@ -1147,10 +1147,10 @@ function ac() {
|
|
|
1147
1147
|
}, _.prototype.lock = function() {
|
|
1148
1148
|
i.prototype.lock.call(this);
|
|
1149
1149
|
for (var y = this._sources, h = 0; h < y.length; h++) y[h].lock();
|
|
1150
|
-
},
|
|
1151
|
-
}, 7834: (
|
|
1150
|
+
}, H.exports = _;
|
|
1151
|
+
}, 7834: (H, D, r) => {
|
|
1152
1152
|
var a = r(1678), i = r(4979);
|
|
1153
|
-
|
|
1153
|
+
D.generateWorker = function(l, g, I) {
|
|
1154
1154
|
var p = new i(g.streamFiles, I, g.platform, g.encodeFileName), S = 0;
|
|
1155
1155
|
try {
|
|
1156
1156
|
l.forEach((function(N, _) {
|
|
@@ -1167,7 +1167,7 @@ function ac() {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
return p;
|
|
1169
1169
|
};
|
|
1170
|
-
}, 6085: (
|
|
1170
|
+
}, 6085: (H, D, r) => {
|
|
1171
1171
|
function a() {
|
|
1172
1172
|
if (!(this instanceof a)) return new a();
|
|
1173
1173
|
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
@@ -1179,8 +1179,8 @@ function ac() {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
a.prototype = r(7132), a.prototype.loadAsync = r(1062), a.support = r(3790), a.defaults = r(6032), a.version = "3.10.1", a.loadAsync = function(i, l) {
|
|
1181
1181
|
return new a().loadAsync(i, l);
|
|
1182
|
-
}, a.external = r(8565),
|
|
1183
|
-
}, 1062: (
|
|
1182
|
+
}, a.external = r(8565), H.exports = a;
|
|
1183
|
+
}, 1062: (H, D, r) => {
|
|
1184
1184
|
var a = r(8910), i = r(8565), l = r(3600), g = r(6624), I = r(2541), p = r(2182);
|
|
1185
1185
|
function S(N) {
|
|
1186
1186
|
return new i.Promise((function(_, y) {
|
|
@@ -1192,7 +1192,7 @@ function ac() {
|
|
|
1192
1192
|
})).resume();
|
|
1193
1193
|
}));
|
|
1194
1194
|
}
|
|
1195
|
-
|
|
1195
|
+
H.exports = function(N, _) {
|
|
1196
1196
|
var y = this;
|
|
1197
1197
|
return _ = a.extend(_ || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: l.utf8decode }), p.isNode && p.isStream(N) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", N, !0, _.optimizedBinaryString, _.base64).then((function(h) {
|
|
1198
1198
|
var u = new g(_);
|
|
@@ -1209,21 +1209,21 @@ function ac() {
|
|
|
1209
1209
|
return u.zipComment.length && (y.comment = u.zipComment), y;
|
|
1210
1210
|
}));
|
|
1211
1211
|
};
|
|
1212
|
-
}, 2182: (
|
|
1213
|
-
|
|
1214
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(
|
|
1215
|
-
if (typeof
|
|
1216
|
-
return new Buffer(
|
|
1217
|
-
}, allocBuffer: function(
|
|
1218
|
-
if (Buffer.alloc) return Buffer.alloc(
|
|
1219
|
-
var r = new Buffer(
|
|
1212
|
+
}, 2182: (H) => {
|
|
1213
|
+
H.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(D, r) {
|
|
1214
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(D, r);
|
|
1215
|
+
if (typeof D == "number") throw new Error('The "data" argument must not be a number');
|
|
1216
|
+
return new Buffer(D, r);
|
|
1217
|
+
}, allocBuffer: function(D) {
|
|
1218
|
+
if (Buffer.alloc) return Buffer.alloc(D);
|
|
1219
|
+
var r = new Buffer(D);
|
|
1220
1220
|
return r.fill(0), r;
|
|
1221
|
-
}, isBuffer: function(
|
|
1222
|
-
return Buffer.isBuffer(
|
|
1223
|
-
}, isStream: function(
|
|
1224
|
-
return
|
|
1221
|
+
}, isBuffer: function(D) {
|
|
1222
|
+
return Buffer.isBuffer(D);
|
|
1223
|
+
}, isStream: function(D) {
|
|
1224
|
+
return D && typeof D.on == "function" && typeof D.pause == "function" && typeof D.resume == "function";
|
|
1225
1225
|
} };
|
|
1226
|
-
}, 660: (
|
|
1226
|
+
}, 660: (H, D, r) => {
|
|
1227
1227
|
var a = r(8910), i = r(3718);
|
|
1228
1228
|
function l(g, I) {
|
|
1229
1229
|
i.call(this, "Nodejs stream input adapter for " + g), this._upstreamEnded = !1, this._bindStream(I);
|
|
@@ -1241,8 +1241,8 @@ function ac() {
|
|
|
1241
1241
|
return !!i.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
1242
1242
|
}, l.prototype.resume = function() {
|
|
1243
1243
|
return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
1244
|
-
},
|
|
1245
|
-
}, 1220: (
|
|
1244
|
+
}, H.exports = l;
|
|
1245
|
+
}, 1220: (H, D, r) => {
|
|
1246
1246
|
var a = r(749).Readable;
|
|
1247
1247
|
function i(l, g, I) {
|
|
1248
1248
|
a.call(this, g), this._helper = l;
|
|
@@ -1257,13 +1257,13 @@ function ac() {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
r(8910).inherits(i, a), i.prototype._read = function() {
|
|
1259
1259
|
this._helper.resume();
|
|
1260
|
-
},
|
|
1261
|
-
}, 7132: (
|
|
1260
|
+
}, H.exports = i;
|
|
1261
|
+
}, 7132: (H, D, r) => {
|
|
1262
1262
|
var a = r(3600), i = r(8910), l = r(3718), g = r(1285), I = r(6032), p = r(7326), S = r(6859), N = r(7834), _ = r(2182), y = r(660), h = function(d, b, C) {
|
|
1263
|
-
var x,
|
|
1263
|
+
var x, P = i.getTypeOf(b), n = i.extend(C || {}, I);
|
|
1264
1264
|
n.date = n.date || /* @__PURE__ */ new Date(), n.compression !== null && (n.compression = n.compression.toUpperCase()), typeof n.unixPermissions == "string" && (n.unixPermissions = parseInt(n.unixPermissions, 8)), n.unixPermissions && 16384 & n.unixPermissions && (n.dir = !0), n.dosPermissions && 16 & n.dosPermissions && (n.dir = !0), n.dir && (d = m(d)), n.createFolders && (x = u(d)) && E.call(this, x, !0);
|
|
1265
|
-
var B =
|
|
1266
|
-
C && C.binary !== void 0 || (n.binary = !B), (b instanceof p && b.uncompressedSize === 0 || n.dir || !b || b.length === 0) && (n.base64 = !1, n.binary = !0, b = "", n.compression = "STORE",
|
|
1265
|
+
var B = P === "string" && n.binary === !1 && n.base64 === !1;
|
|
1266
|
+
C && C.binary !== void 0 || (n.binary = !B), (b instanceof p && b.uncompressedSize === 0 || n.dir || !b || b.length === 0) && (n.base64 = !1, n.binary = !0, b = "", n.compression = "STORE", P = "string");
|
|
1267
1267
|
var Q;
|
|
1268
1268
|
Q = b instanceof p || b instanceof l ? b : _.isNode && _.isStream(b) ? new y(d, b) : i.prepareContent(d, b, n.binary, n.optimizedBinaryString, n.base64);
|
|
1269
1269
|
var G = new S(d, Q, n);
|
|
@@ -1298,14 +1298,14 @@ function ac() {
|
|
|
1298
1298
|
return !B.dir && x.test(n);
|
|
1299
1299
|
}));
|
|
1300
1300
|
}
|
|
1301
|
-
var
|
|
1302
|
-
return
|
|
1301
|
+
var P = this.files[this.root + d];
|
|
1302
|
+
return P && !P.dir ? P : null;
|
|
1303
1303
|
}
|
|
1304
1304
|
return d = this.root + d, h.call(this, d, b, C), this;
|
|
1305
1305
|
}, folder: function(d) {
|
|
1306
1306
|
if (!d) return this;
|
|
1307
|
-
if (O(d)) return this.filter((function(
|
|
1308
|
-
return n.dir && d.test(
|
|
1307
|
+
if (O(d)) return this.filter((function(P, n) {
|
|
1308
|
+
return n.dir && d.test(P);
|
|
1309
1309
|
}));
|
|
1310
1310
|
var b = this.root + d, C = E.call(this, b), x = this.clone();
|
|
1311
1311
|
return x.root = C.name, x;
|
|
@@ -1313,7 +1313,7 @@ function ac() {
|
|
|
1313
1313
|
d = this.root + d;
|
|
1314
1314
|
var b = this.files[d];
|
|
1315
1315
|
if (b || (d.slice(-1) !== "/" && (d += "/"), b = this.files[d]), b && !b.dir) delete this.files[d];
|
|
1316
|
-
else for (var C = this.filter((function(
|
|
1316
|
+
else for (var C = this.filter((function(P, n) {
|
|
1317
1317
|
return n.name.slice(0, d.length) === d;
|
|
1318
1318
|
})), x = 0; x < C.length; x++) delete this.files[C[x].name];
|
|
1319
1319
|
return this;
|
|
@@ -1326,8 +1326,8 @@ function ac() {
|
|
|
1326
1326
|
i.checkSupport(C.type), C.platform !== "darwin" && C.platform !== "freebsd" && C.platform !== "linux" && C.platform !== "sunos" || (C.platform = "UNIX"), C.platform === "win32" && (C.platform = "DOS");
|
|
1327
1327
|
var x = C.comment || this.comment || "";
|
|
1328
1328
|
b = N.generateWorker(this, C, x);
|
|
1329
|
-
} catch (
|
|
1330
|
-
(b = new l("error")).error(
|
|
1329
|
+
} catch (P) {
|
|
1330
|
+
(b = new l("error")).error(P);
|
|
1331
1331
|
}
|
|
1332
1332
|
return new g(b, C.type || "string", C.mimeType);
|
|
1333
1333
|
}, generateAsync: function(d, b) {
|
|
@@ -1335,10 +1335,10 @@ function ac() {
|
|
|
1335
1335
|
}, generateNodeStream: function(d, b) {
|
|
1336
1336
|
return (d = d || {}).type || (d.type = "nodebuffer"), this.generateInternalStream(d).toNodejsStream(b);
|
|
1337
1337
|
} };
|
|
1338
|
-
|
|
1339
|
-
}, 749: (
|
|
1340
|
-
|
|
1341
|
-
}, 2370: (
|
|
1338
|
+
H.exports = M;
|
|
1339
|
+
}, 749: (H, D, r) => {
|
|
1340
|
+
H.exports = r(2830);
|
|
1341
|
+
}, 2370: (H, D, r) => {
|
|
1342
1342
|
var a = r(8542);
|
|
1343
1343
|
function i(l) {
|
|
1344
1344
|
a.call(this, l);
|
|
@@ -1356,8 +1356,8 @@ function ac() {
|
|
|
1356
1356
|
if (this.checkOffset(l), l === 0) return [];
|
|
1357
1357
|
var g = this.data.slice(this.zero + this.index, this.zero + this.index + l);
|
|
1358
1358
|
return this.index += l, g;
|
|
1359
|
-
},
|
|
1360
|
-
}, 8542: (
|
|
1359
|
+
}, H.exports = i;
|
|
1360
|
+
}, 8542: (H, D, r) => {
|
|
1361
1361
|
var a = r(8910);
|
|
1362
1362
|
function i(l) {
|
|
1363
1363
|
this.data = l, this.length = l.length, this.index = 0, this.zero = 0;
|
|
@@ -1383,8 +1383,8 @@ function ac() {
|
|
|
1383
1383
|
}, readDate: function() {
|
|
1384
1384
|
var l = this.readInt(4);
|
|
1385
1385
|
return new Date(Date.UTC(1980 + (l >> 25 & 127), (l >> 21 & 15) - 1, l >> 16 & 31, l >> 11 & 31, l >> 5 & 63, (31 & l) << 1));
|
|
1386
|
-
} },
|
|
1387
|
-
}, 9583: (
|
|
1386
|
+
} }, H.exports = i;
|
|
1387
|
+
}, 9583: (H, D, r) => {
|
|
1388
1388
|
var a = r(414);
|
|
1389
1389
|
function i(l) {
|
|
1390
1390
|
a.call(this, l);
|
|
@@ -1393,8 +1393,8 @@ function ac() {
|
|
|
1393
1393
|
this.checkOffset(l);
|
|
1394
1394
|
var g = this.data.slice(this.zero + this.index, this.zero + this.index + l);
|
|
1395
1395
|
return this.index += l, g;
|
|
1396
|
-
},
|
|
1397
|
-
}, 9226: (
|
|
1396
|
+
}, H.exports = i;
|
|
1397
|
+
}, 9226: (H, D, r) => {
|
|
1398
1398
|
var a = r(8542);
|
|
1399
1399
|
function i(l) {
|
|
1400
1400
|
a.call(this, l);
|
|
@@ -1409,8 +1409,8 @@ function ac() {
|
|
|
1409
1409
|
this.checkOffset(l);
|
|
1410
1410
|
var g = this.data.slice(this.zero + this.index, this.zero + this.index + l);
|
|
1411
1411
|
return this.index += l, g;
|
|
1412
|
-
},
|
|
1413
|
-
}, 414: (
|
|
1412
|
+
}, H.exports = i;
|
|
1413
|
+
}, 414: (H, D, r) => {
|
|
1414
1414
|
var a = r(2370);
|
|
1415
1415
|
function i(l) {
|
|
1416
1416
|
a.call(this, l);
|
|
@@ -1419,32 +1419,32 @@ function ac() {
|
|
|
1419
1419
|
if (this.checkOffset(l), l === 0) return new Uint8Array(0);
|
|
1420
1420
|
var g = this.data.subarray(this.zero + this.index, this.zero + this.index + l);
|
|
1421
1421
|
return this.index += l, g;
|
|
1422
|
-
},
|
|
1423
|
-
}, 8435: (
|
|
1422
|
+
}, H.exports = i;
|
|
1423
|
+
}, 8435: (H, D, r) => {
|
|
1424
1424
|
var a = r(8910), i = r(3790), l = r(2370), g = r(9226), I = r(9583), p = r(414);
|
|
1425
|
-
|
|
1425
|
+
H.exports = function(S) {
|
|
1426
1426
|
var N = a.getTypeOf(S);
|
|
1427
1427
|
return a.checkSupport(N), N !== "string" || i.uint8array ? N === "nodebuffer" ? new I(S) : i.uint8array ? new p(a.transformTo("uint8array", S)) : new l(a.transformTo("array", S)) : new g(S);
|
|
1428
1428
|
};
|
|
1429
|
-
}, 1141: (
|
|
1430
|
-
|
|
1431
|
-
}, 4293: (
|
|
1429
|
+
}, 1141: (H, D) => {
|
|
1430
|
+
D.LOCAL_FILE_HEADER = "PK", D.CENTRAL_FILE_HEADER = "PK", D.CENTRAL_DIRECTORY_END = "PK", D.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", D.ZIP64_CENTRAL_DIRECTORY_END = "PK", D.DATA_DESCRIPTOR = "PK\x07\b";
|
|
1431
|
+
}, 4293: (H, D, r) => {
|
|
1432
1432
|
var a = r(3718), i = r(8910);
|
|
1433
1433
|
function l(g) {
|
|
1434
1434
|
a.call(this, "ConvertWorker to " + g), this.destType = g;
|
|
1435
1435
|
}
|
|
1436
1436
|
i.inherits(l, a), l.prototype.processChunk = function(g) {
|
|
1437
1437
|
this.push({ data: i.transformTo(this.destType, g.data), meta: g.meta });
|
|
1438
|
-
},
|
|
1439
|
-
}, 2541: (
|
|
1438
|
+
}, H.exports = l;
|
|
1439
|
+
}, 2541: (H, D, r) => {
|
|
1440
1440
|
var a = r(3718), i = r(6988);
|
|
1441
1441
|
function l() {
|
|
1442
1442
|
a.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
1443
1443
|
}
|
|
1444
1444
|
r(8910).inherits(l, a), l.prototype.processChunk = function(g) {
|
|
1445
1445
|
this.streamInfo.crc32 = i(g.data, this.streamInfo.crc32 || 0), this.push(g);
|
|
1446
|
-
},
|
|
1447
|
-
}, 5977: (
|
|
1446
|
+
}, H.exports = l;
|
|
1447
|
+
}, 5977: (H, D, r) => {
|
|
1448
1448
|
var a = r(8910), i = r(3718);
|
|
1449
1449
|
function l(g) {
|
|
1450
1450
|
i.call(this, "DataLengthProbe for " + g), this.propName = g, this.withStreamInfo(g, 0);
|
|
@@ -1455,8 +1455,8 @@ function ac() {
|
|
|
1455
1455
|
this.streamInfo[this.propName] = I + g.data.length;
|
|
1456
1456
|
}
|
|
1457
1457
|
i.prototype.processChunk.call(this, g);
|
|
1458
|
-
},
|
|
1459
|
-
}, 5301: (
|
|
1458
|
+
}, H.exports = l;
|
|
1459
|
+
}, 5301: (H, D, r) => {
|
|
1460
1460
|
var a = r(8910), i = r(3718);
|
|
1461
1461
|
function l(g) {
|
|
1462
1462
|
i.call(this, "DataWorker");
|
|
@@ -1489,12 +1489,12 @@ function ac() {
|
|
|
1489
1489
|
g = this.data.slice(this.index, I);
|
|
1490
1490
|
}
|
|
1491
1491
|
return this.index = I, this.push({ data: g, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
1492
|
-
},
|
|
1493
|
-
}, 3718: (
|
|
1494
|
-
function
|
|
1492
|
+
}, H.exports = l;
|
|
1493
|
+
}, 3718: (H) => {
|
|
1494
|
+
function D(r) {
|
|
1495
1495
|
this.name = r || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
1496
1496
|
}
|
|
1497
|
-
|
|
1497
|
+
D.prototype = { push: function(r) {
|
|
1498
1498
|
this.emit("data", r);
|
|
1499
1499
|
}, end: function() {
|
|
1500
1500
|
if (this.isFinished) return !1;
|
|
@@ -1546,8 +1546,8 @@ function ac() {
|
|
|
1546
1546
|
}, toString: function() {
|
|
1547
1547
|
var r = "Worker " + this.name;
|
|
1548
1548
|
return this.previous ? this.previous + " -> " + r : r;
|
|
1549
|
-
} },
|
|
1550
|
-
}, 1285: (
|
|
1549
|
+
} }, H.exports = D;
|
|
1550
|
+
}, 1285: (H, D, r) => {
|
|
1551
1551
|
var a = r(8910), i = r(4293), l = r(3718), g = r(8458), I = r(3790), p = r(8565), S = null;
|
|
1552
1552
|
if (I.nodestream) try {
|
|
1553
1553
|
S = r(1220);
|
|
@@ -1578,25 +1578,25 @@ function ac() {
|
|
|
1578
1578
|
E = [], m(b);
|
|
1579
1579
|
})).on("end", (function() {
|
|
1580
1580
|
try {
|
|
1581
|
-
var b = (function(C, x,
|
|
1581
|
+
var b = (function(C, x, P) {
|
|
1582
1582
|
switch (C) {
|
|
1583
1583
|
case "blob":
|
|
1584
|
-
return a.newBlob(a.transformTo("arraybuffer", x),
|
|
1584
|
+
return a.newBlob(a.transformTo("arraybuffer", x), P);
|
|
1585
1585
|
case "base64":
|
|
1586
1586
|
return g.encode(x);
|
|
1587
1587
|
default:
|
|
1588
1588
|
return a.transformTo(C, x);
|
|
1589
1589
|
}
|
|
1590
1590
|
})(M, (function(C, x) {
|
|
1591
|
-
var
|
|
1592
|
-
for (
|
|
1591
|
+
var P, n = 0, B = null, Q = 0;
|
|
1592
|
+
for (P = 0; P < x.length; P++) Q += x[P].length;
|
|
1593
1593
|
switch (C) {
|
|
1594
1594
|
case "string":
|
|
1595
1595
|
return x.join("");
|
|
1596
1596
|
case "array":
|
|
1597
1597
|
return Array.prototype.concat.apply([], x);
|
|
1598
1598
|
case "uint8array":
|
|
1599
|
-
for (B = new Uint8Array(Q),
|
|
1599
|
+
for (B = new Uint8Array(Q), P = 0; P < x.length; P++) B.set(x[P], n), n += x[P].length;
|
|
1600
1600
|
return B;
|
|
1601
1601
|
case "nodebuffer":
|
|
1602
1602
|
return Buffer.concat(x);
|
|
@@ -1626,28 +1626,28 @@ function ac() {
|
|
|
1626
1626
|
}, toNodejsStream: function(_) {
|
|
1627
1627
|
if (a.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
|
|
1628
1628
|
return new S(this, { objectMode: this._outputType !== "nodebuffer" }, _);
|
|
1629
|
-
} },
|
|
1630
|
-
}, 3790: (
|
|
1631
|
-
if (
|
|
1629
|
+
} }, H.exports = N;
|
|
1630
|
+
}, 3790: (H, D, r) => {
|
|
1631
|
+
if (D.base64 = !0, D.array = !0, D.string = !0, D.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", D.nodebuffer = typeof Buffer < "u", D.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") D.blob = !1;
|
|
1632
1632
|
else {
|
|
1633
1633
|
var a = new ArrayBuffer(0);
|
|
1634
1634
|
try {
|
|
1635
|
-
|
|
1635
|
+
D.blob = new Blob([a], { type: "application/zip" }).size === 0;
|
|
1636
1636
|
} catch {
|
|
1637
1637
|
try {
|
|
1638
1638
|
var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
1639
|
-
i.append(a),
|
|
1639
|
+
i.append(a), D.blob = i.getBlob("application/zip").size === 0;
|
|
1640
1640
|
} catch {
|
|
1641
|
-
|
|
1641
|
+
D.blob = !1;
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
try {
|
|
1646
|
-
|
|
1646
|
+
D.nodestream = !!r(749).Readable;
|
|
1647
1647
|
} catch {
|
|
1648
|
-
|
|
1648
|
+
D.nodestream = !1;
|
|
1649
1649
|
}
|
|
1650
|
-
}, 3600: (
|
|
1650
|
+
}, 3600: (H, D, r) => {
|
|
1651
1651
|
for (var a = r(8910), i = r(3790), l = r(2182), g = r(3718), I = new Array(256), p = 0; p < 256; p++) I[p] = p >= 252 ? 6 : p >= 248 ? 5 : p >= 240 ? 4 : p >= 224 ? 3 : p >= 192 ? 2 : 1;
|
|
1652
1652
|
function S() {
|
|
1653
1653
|
g.call(this, "utf-8 decode"), this.leftOver = null;
|
|
@@ -1655,14 +1655,14 @@ function ac() {
|
|
|
1655
1655
|
function N() {
|
|
1656
1656
|
g.call(this, "utf-8 encode");
|
|
1657
1657
|
}
|
|
1658
|
-
I[254] = I[254] = 1,
|
|
1658
|
+
I[254] = I[254] = 1, D.utf8encode = function(_) {
|
|
1659
1659
|
return i.nodebuffer ? l.newBufferFrom(_, "utf-8") : (function(y) {
|
|
1660
1660
|
var h, u, m, E, O, M = y.length, d = 0;
|
|
1661
1661
|
for (E = 0; E < M; E++) (64512 & (u = y.charCodeAt(E))) == 55296 && E + 1 < M && (64512 & (m = y.charCodeAt(E + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (m - 56320), E++), d += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
1662
1662
|
for (h = i.uint8array ? new Uint8Array(d) : new Array(d), O = 0, E = 0; O < d; E++) (64512 & (u = y.charCodeAt(E))) == 55296 && E + 1 < M && (64512 & (m = y.charCodeAt(E + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (m - 56320), E++), u < 128 ? h[O++] = u : u < 2048 ? (h[O++] = 192 | u >>> 6, h[O++] = 128 | 63 & u) : u < 65536 ? (h[O++] = 224 | u >>> 12, h[O++] = 128 | u >>> 6 & 63, h[O++] = 128 | 63 & u) : (h[O++] = 240 | u >>> 18, h[O++] = 128 | u >>> 12 & 63, h[O++] = 128 | u >>> 6 & 63, h[O++] = 128 | 63 & u);
|
|
1663
1663
|
return h;
|
|
1664
1664
|
})(_);
|
|
1665
|
-
},
|
|
1665
|
+
}, D.utf8decode = function(_) {
|
|
1666
1666
|
return i.nodebuffer ? a.transformTo("nodebuffer", _).toString("utf-8") : (function(y) {
|
|
1667
1667
|
var h, u, m, E, O = y.length, M = new Array(2 * O);
|
|
1668
1668
|
for (u = 0, h = 0; h < O; ) if ((m = y[h++]) < 128) M[u++] = m;
|
|
@@ -1687,13 +1687,13 @@ function ac() {
|
|
|
1687
1687
|
for ((O = O || E.length) > E.length && (O = E.length), M = O - 1; M >= 0 && (192 & E[M]) == 128; ) M--;
|
|
1688
1688
|
return M < 0 || M === 0 ? O : M + I[E[M]] > O ? M : O;
|
|
1689
1689
|
})(y), m = y;
|
|
1690
|
-
u !== y.length && (i.uint8array ? (m = y.subarray(0, u), this.leftOver = y.subarray(u, y.length)) : (m = y.slice(0, u), this.leftOver = y.slice(u, y.length))), this.push({ data:
|
|
1690
|
+
u !== y.length && (i.uint8array ? (m = y.subarray(0, u), this.leftOver = y.subarray(u, y.length)) : (m = y.slice(0, u), this.leftOver = y.slice(u, y.length))), this.push({ data: D.utf8decode(m), meta: _.meta });
|
|
1691
1691
|
}, S.prototype.flush = function() {
|
|
1692
|
-
this.leftOver && this.leftOver.length && (this.push({ data:
|
|
1693
|
-
},
|
|
1694
|
-
this.push({ data:
|
|
1695
|
-
},
|
|
1696
|
-
}, 8910: (
|
|
1692
|
+
this.leftOver && this.leftOver.length && (this.push({ data: D.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
1693
|
+
}, D.Utf8DecodeWorker = S, a.inherits(N, g), N.prototype.processChunk = function(_) {
|
|
1694
|
+
this.push({ data: D.utf8encode(_.data), meta: _.meta });
|
|
1695
|
+
}, D.Utf8EncodeWorker = N;
|
|
1696
|
+
}, 8910: (H, D, r) => {
|
|
1697
1697
|
var a = r(3790), i = r(8458), l = r(2182), g = r(8565);
|
|
1698
1698
|
function I(h) {
|
|
1699
1699
|
return h;
|
|
@@ -1702,8 +1702,8 @@ function ac() {
|
|
|
1702
1702
|
for (var m = 0; m < h.length; ++m) u[m] = 255 & h.charCodeAt(m);
|
|
1703
1703
|
return u;
|
|
1704
1704
|
}
|
|
1705
|
-
r(4889),
|
|
1706
|
-
|
|
1705
|
+
r(4889), D.newBlob = function(h, u) {
|
|
1706
|
+
D.checkSupport("blob");
|
|
1707
1707
|
try {
|
|
1708
1708
|
return new Blob([h], { type: u });
|
|
1709
1709
|
} catch {
|
|
@@ -1737,7 +1737,7 @@ function ac() {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
})() } };
|
|
1739
1739
|
function N(h) {
|
|
1740
|
-
var u = 65536, m =
|
|
1740
|
+
var u = 65536, m = D.getTypeOf(h), E = !0;
|
|
1741
1741
|
if (m === "uint8array" ? E = S.applyCanBeUsed.uint8array : m === "nodebuffer" && (E = S.applyCanBeUsed.nodebuffer), E) for (; u > 1; ) try {
|
|
1742
1742
|
return S.stringifyByChunk(h, m, u);
|
|
1743
1743
|
} catch {
|
|
@@ -1749,7 +1749,7 @@ function ac() {
|
|
|
1749
1749
|
for (var m = 0; m < h.length; m++) u[m] = h[m];
|
|
1750
1750
|
return u;
|
|
1751
1751
|
}
|
|
1752
|
-
|
|
1752
|
+
D.applyFromCharCode = N;
|
|
1753
1753
|
var y = {};
|
|
1754
1754
|
y.string = { string: I, array: function(h) {
|
|
1755
1755
|
return p(h, new Array(h.length));
|
|
@@ -1785,38 +1785,38 @@ function ac() {
|
|
|
1785
1785
|
return y.nodebuffer.uint8array(h).buffer;
|
|
1786
1786
|
}, uint8array: function(h) {
|
|
1787
1787
|
return _(h, new Uint8Array(h.length));
|
|
1788
|
-
}, nodebuffer: I },
|
|
1788
|
+
}, nodebuffer: I }, D.transformTo = function(h, u) {
|
|
1789
1789
|
if (u || (u = ""), !h) return u;
|
|
1790
|
-
|
|
1791
|
-
var m =
|
|
1790
|
+
D.checkSupport(h);
|
|
1791
|
+
var m = D.getTypeOf(u);
|
|
1792
1792
|
return y[m][h](u);
|
|
1793
|
-
},
|
|
1793
|
+
}, D.resolve = function(h) {
|
|
1794
1794
|
for (var u = h.split("/"), m = [], E = 0; E < u.length; E++) {
|
|
1795
1795
|
var O = u[E];
|
|
1796
1796
|
O === "." || O === "" && E !== 0 && E !== u.length - 1 || (O === ".." ? m.pop() : m.push(O));
|
|
1797
1797
|
}
|
|
1798
1798
|
return m.join("/");
|
|
1799
|
-
},
|
|
1799
|
+
}, D.getTypeOf = function(h) {
|
|
1800
1800
|
return typeof h == "string" ? "string" : Object.prototype.toString.call(h) === "[object Array]" ? "array" : a.nodebuffer && l.isBuffer(h) ? "nodebuffer" : a.uint8array && h instanceof Uint8Array ? "uint8array" : a.arraybuffer && h instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
1801
|
-
},
|
|
1801
|
+
}, D.checkSupport = function(h) {
|
|
1802
1802
|
if (!a[h.toLowerCase()]) throw new Error(h + " is not supported by this platform");
|
|
1803
|
-
},
|
|
1803
|
+
}, D.MAX_VALUE_16BITS = 65535, D.MAX_VALUE_32BITS = -1, D.pretty = function(h) {
|
|
1804
1804
|
var u, m, E = "";
|
|
1805
1805
|
for (m = 0; m < (h || "").length; m++) E += "\\x" + ((u = h.charCodeAt(m)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
|
|
1806
1806
|
return E;
|
|
1807
|
-
},
|
|
1807
|
+
}, D.delay = function(h, u, m) {
|
|
1808
1808
|
setImmediate((function() {
|
|
1809
1809
|
h.apply(m || null, u || []);
|
|
1810
1810
|
}));
|
|
1811
|
-
},
|
|
1811
|
+
}, D.inherits = function(h, u) {
|
|
1812
1812
|
var m = function() {
|
|
1813
1813
|
};
|
|
1814
1814
|
m.prototype = u.prototype, h.prototype = new m();
|
|
1815
|
-
},
|
|
1815
|
+
}, D.extend = function() {
|
|
1816
1816
|
var h, u, m = {};
|
|
1817
1817
|
for (h = 0; h < arguments.length; h++) for (u in arguments[h]) Object.prototype.hasOwnProperty.call(arguments[h], u) && m[u] === void 0 && (m[u] = arguments[h][u]);
|
|
1818
1818
|
return m;
|
|
1819
|
-
},
|
|
1819
|
+
}, D.prepareContent = function(h, u, m, E, O) {
|
|
1820
1820
|
return g.Promise.resolve(u).then((function(M) {
|
|
1821
1821
|
return a.blob && (M instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(M)) !== -1) && typeof FileReader < "u" ? new g.Promise((function(d, b) {
|
|
1822
1822
|
var C = new FileReader();
|
|
@@ -1827,11 +1827,11 @@ function ac() {
|
|
|
1827
1827
|
}, C.readAsArrayBuffer(M);
|
|
1828
1828
|
})) : M;
|
|
1829
1829
|
})).then((function(M) {
|
|
1830
|
-
var d, b =
|
|
1831
|
-
return b ? (b === "arraybuffer" ? M =
|
|
1830
|
+
var d, b = D.getTypeOf(M);
|
|
1831
|
+
return b ? (b === "arraybuffer" ? M = D.transformTo("uint8array", M) : b === "string" && (O ? M = i.decode(M) : m && E !== !0 && (M = p(d = M, a.uint8array ? new Uint8Array(d.length) : new Array(d.length)))), M) : g.Promise.reject(new Error("Can't read the data of '" + h + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
1832
1832
|
}));
|
|
1833
1833
|
};
|
|
1834
|
-
}, 6624: (
|
|
1834
|
+
}, 6624: (H, D, r) => {
|
|
1835
1835
|
var a = r(8435), i = r(8910), l = r(1141), g = r(9392), I = r(3790);
|
|
1836
1836
|
function p(S) {
|
|
1837
1837
|
this.files = [], this.loadOptions = S;
|
|
@@ -1882,8 +1882,8 @@ function ac() {
|
|
|
1882
1882
|
this.reader = a(S);
|
|
1883
1883
|
}, load: function(S) {
|
|
1884
1884
|
this.prepareReader(S), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1885
|
-
} },
|
|
1886
|
-
}, 9392: (
|
|
1885
|
+
} }, H.exports = p;
|
|
1886
|
+
}, 9392: (H, D, r) => {
|
|
1887
1887
|
var a = r(8435), i = r(8910), l = r(7326), g = r(6988), I = r(3600), p = r(1678), S = r(3790);
|
|
1888
1888
|
function N(_, y) {
|
|
1889
1889
|
this.options = _, this.loadOptions = y;
|
|
@@ -1949,8 +1949,8 @@ function ac() {
|
|
|
1949
1949
|
return y.readInt(1) !== 1 || g(this.fileComment) !== y.readInt(4) ? null : I.utf8decode(y.readData(_.length - 5));
|
|
1950
1950
|
}
|
|
1951
1951
|
return null;
|
|
1952
|
-
} },
|
|
1953
|
-
}, 6859: (
|
|
1952
|
+
} }, H.exports = N;
|
|
1953
|
+
}, 6859: (H, D, r) => {
|
|
1954
1954
|
var a = r(1285), i = r(5301), l = r(3600), g = r(7326), I = r(3718), p = function(y, h, u) {
|
|
1955
1955
|
this.name = y, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = h, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
1956
1956
|
};
|
|
@@ -1980,8 +1980,8 @@ function ac() {
|
|
|
1980
1980
|
for (var S = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], N = function() {
|
|
1981
1981
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1982
1982
|
}, _ = 0; _ < S.length; _++) p.prototype[S[_]] = N;
|
|
1983
|
-
|
|
1984
|
-
}, 3389: (
|
|
1983
|
+
H.exports = p;
|
|
1984
|
+
}, 3389: (H, D, r) => {
|
|
1985
1985
|
var a = r(5705);
|
|
1986
1986
|
function i() {
|
|
1987
1987
|
}
|
|
@@ -2032,7 +2032,7 @@ function ac() {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return O;
|
|
2034
2034
|
}
|
|
2035
|
-
|
|
2035
|
+
H.exports = S, S.prototype.finally = function(m) {
|
|
2036
2036
|
if (typeof m != "function") return this;
|
|
2037
2037
|
var E = this.constructor;
|
|
2038
2038
|
return this.then((function(O) {
|
|
@@ -2082,9 +2082,9 @@ function ac() {
|
|
|
2082
2082
|
if (Object.prototype.toString.call(m) !== "[object Array]") return this.reject(new TypeError("must be an array"));
|
|
2083
2083
|
var O = m.length, M = !1;
|
|
2084
2084
|
if (!O) return this.resolve([]);
|
|
2085
|
-
for (var d = new Array(O), b = 0, C = -1, x = new this(i); ++C < O; )
|
|
2085
|
+
for (var d = new Array(O), b = 0, C = -1, x = new this(i); ++C < O; ) P(m[C], C);
|
|
2086
2086
|
return x;
|
|
2087
|
-
function
|
|
2087
|
+
function P(n, B) {
|
|
2088
2088
|
E.resolve(n).then((function(Q) {
|
|
2089
2089
|
d[B] = Q, ++b !== O || M || (M = !0, l.resolve(x, d));
|
|
2090
2090
|
}), (function(Q) {
|
|
@@ -2102,10 +2102,10 @@ function ac() {
|
|
|
2102
2102
|
}));
|
|
2103
2103
|
return b;
|
|
2104
2104
|
};
|
|
2105
|
-
}, 9591: (
|
|
2105
|
+
}, 9591: (H, D, r) => {
|
|
2106
2106
|
var a = {};
|
|
2107
|
-
(0, r(4236).assign)(a, r(4555), r(8843), r(1619)),
|
|
2108
|
-
}, 4555: (
|
|
2107
|
+
(0, r(4236).assign)(a, r(4555), r(8843), r(1619)), H.exports = a;
|
|
2108
|
+
}, 4555: (H, D, r) => {
|
|
2109
2109
|
var a = r(405), i = r(4236), l = r(9373), g = r(8898), I = r(2292), p = Object.prototype.toString;
|
|
2110
2110
|
function S(_) {
|
|
2111
2111
|
if (!(this instanceof S)) return new S(_);
|
|
@@ -2138,12 +2138,12 @@ function ac() {
|
|
|
2138
2138
|
this.chunks.push(_);
|
|
2139
2139
|
}, S.prototype.onEnd = function(_) {
|
|
2140
2140
|
_ === 0 && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = _, this.msg = this.strm.msg;
|
|
2141
|
-
},
|
|
2141
|
+
}, D.Deflate = S, D.deflate = N, D.deflateRaw = function(_, y) {
|
|
2142
2142
|
return (y = y || {}).raw = !0, N(_, y);
|
|
2143
|
-
},
|
|
2143
|
+
}, D.gzip = function(_, y) {
|
|
2144
2144
|
return (y = y || {}).gzip = !0, N(_, y);
|
|
2145
2145
|
};
|
|
2146
|
-
}, 8843: (
|
|
2146
|
+
}, 8843: (H, D, r) => {
|
|
2147
2147
|
var a = r(7948), i = r(4236), l = r(9373), g = r(1619), I = r(8898), p = r(2292), S = r(2401), N = Object.prototype.toString;
|
|
2148
2148
|
function _(h) {
|
|
2149
2149
|
if (!(this instanceof _)) return new _(h);
|
|
@@ -2160,27 +2160,27 @@ function ac() {
|
|
|
2160
2160
|
return m.result;
|
|
2161
2161
|
}
|
|
2162
2162
|
_.prototype.push = function(h, u) {
|
|
2163
|
-
var m, E, O, M, d, b = this.strm, C = this.options.chunkSize, x = this.options.dictionary,
|
|
2163
|
+
var m, E, O, M, d, b = this.strm, C = this.options.chunkSize, x = this.options.dictionary, P = !1;
|
|
2164
2164
|
if (this.ended) return !1;
|
|
2165
2165
|
E = u === ~~u ? u : u === !0 ? g.Z_FINISH : g.Z_NO_FLUSH, typeof h == "string" ? b.input = l.binstring2buf(h) : N.call(h) === "[object ArrayBuffer]" ? b.input = new Uint8Array(h) : b.input = h, b.next_in = 0, b.avail_in = b.input.length;
|
|
2166
2166
|
do {
|
|
2167
|
-
if (b.avail_out === 0 && (b.output = new i.Buf8(C), b.next_out = 0, b.avail_out = C), (m = a.inflate(b, g.Z_NO_FLUSH)) === g.Z_NEED_DICT && x && (m = a.inflateSetDictionary(this.strm, x)), m === g.Z_BUF_ERROR &&
|
|
2168
|
-
b.next_out && (b.avail_out !== 0 && m !== g.Z_STREAM_END && (b.avail_in !== 0 || E !== g.Z_FINISH && E !== g.Z_SYNC_FLUSH) || (this.options.to === "string" ? (O = l.utf8border(b.output, b.next_out), M = b.next_out - O, d = l.buf2string(b.output, O), b.next_out = M, b.avail_out = C - M, M && i.arraySet(b.output, b.output, O, M, 0), this.onData(d)) : this.onData(i.shrinkBuf(b.output, b.next_out)))), b.avail_in === 0 && b.avail_out === 0 && (
|
|
2167
|
+
if (b.avail_out === 0 && (b.output = new i.Buf8(C), b.next_out = 0, b.avail_out = C), (m = a.inflate(b, g.Z_NO_FLUSH)) === g.Z_NEED_DICT && x && (m = a.inflateSetDictionary(this.strm, x)), m === g.Z_BUF_ERROR && P === !0 && (m = g.Z_OK, P = !1), m !== g.Z_STREAM_END && m !== g.Z_OK) return this.onEnd(m), this.ended = !0, !1;
|
|
2168
|
+
b.next_out && (b.avail_out !== 0 && m !== g.Z_STREAM_END && (b.avail_in !== 0 || E !== g.Z_FINISH && E !== g.Z_SYNC_FLUSH) || (this.options.to === "string" ? (O = l.utf8border(b.output, b.next_out), M = b.next_out - O, d = l.buf2string(b.output, O), b.next_out = M, b.avail_out = C - M, M && i.arraySet(b.output, b.output, O, M, 0), this.onData(d)) : this.onData(i.shrinkBuf(b.output, b.next_out)))), b.avail_in === 0 && b.avail_out === 0 && (P = !0);
|
|
2169
2169
|
} while ((b.avail_in > 0 || b.avail_out === 0) && m !== g.Z_STREAM_END);
|
|
2170
2170
|
return m === g.Z_STREAM_END && (E = g.Z_FINISH), E === g.Z_FINISH ? (m = a.inflateEnd(this.strm), this.onEnd(m), this.ended = !0, m === g.Z_OK) : E !== g.Z_SYNC_FLUSH || (this.onEnd(g.Z_OK), b.avail_out = 0, !0);
|
|
2171
2171
|
}, _.prototype.onData = function(h) {
|
|
2172
2172
|
this.chunks.push(h);
|
|
2173
2173
|
}, _.prototype.onEnd = function(h) {
|
|
2174
2174
|
h === g.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = h, this.msg = this.strm.msg;
|
|
2175
|
-
},
|
|
2175
|
+
}, D.Inflate = _, D.inflate = y, D.inflateRaw = function(h, u) {
|
|
2176
2176
|
return (u = u || {}).raw = !0, y(h, u);
|
|
2177
|
-
},
|
|
2178
|
-
}, 4236: (
|
|
2177
|
+
}, D.ungzip = y;
|
|
2178
|
+
}, 4236: (H, D) => {
|
|
2179
2179
|
var r = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
2180
2180
|
function a(g, I) {
|
|
2181
2181
|
return Object.prototype.hasOwnProperty.call(g, I);
|
|
2182
2182
|
}
|
|
2183
|
-
|
|
2183
|
+
D.assign = function(g) {
|
|
2184
2184
|
for (var I = Array.prototype.slice.call(arguments, 1); I.length; ) {
|
|
2185
2185
|
var p = I.shift();
|
|
2186
2186
|
if (p) {
|
|
@@ -2189,7 +2189,7 @@ function ac() {
|
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
return g;
|
|
2192
|
-
},
|
|
2192
|
+
}, D.shrinkBuf = function(g, I) {
|
|
2193
2193
|
return g.length === I ? g : g.subarray ? g.subarray(0, I) : (g.length = I, g);
|
|
2194
2194
|
};
|
|
2195
2195
|
var i = { arraySet: function(g, I, p, S, N) {
|
|
@@ -2205,10 +2205,10 @@ function ac() {
|
|
|
2205
2205
|
}, flattenChunks: function(g) {
|
|
2206
2206
|
return [].concat.apply([], g);
|
|
2207
2207
|
} };
|
|
2208
|
-
|
|
2209
|
-
g ? (
|
|
2210
|
-
},
|
|
2211
|
-
}, 9373: (
|
|
2208
|
+
D.setTyped = function(g) {
|
|
2209
|
+
g ? (D.Buf8 = Uint8Array, D.Buf16 = Uint16Array, D.Buf32 = Int32Array, D.assign(D, i)) : (D.Buf8 = Array, D.Buf16 = Array, D.Buf32 = Array, D.assign(D, l));
|
|
2210
|
+
}, D.setTyped(r);
|
|
2211
|
+
}, 9373: (H, D, r) => {
|
|
2212
2212
|
var a = r(4236), i = !0, l = !0;
|
|
2213
2213
|
try {
|
|
2214
2214
|
String.fromCharCode.apply(null, [0]);
|
|
@@ -2226,17 +2226,17 @@ function ac() {
|
|
|
2226
2226
|
for (var _ = "", y = 0; y < N; y++) _ += String.fromCharCode(S[y]);
|
|
2227
2227
|
return _;
|
|
2228
2228
|
}
|
|
2229
|
-
g[254] = g[254] = 1,
|
|
2229
|
+
g[254] = g[254] = 1, D.string2buf = function(S) {
|
|
2230
2230
|
var N, _, y, h, u, m = S.length, E = 0;
|
|
2231
2231
|
for (h = 0; h < m; h++) (64512 & (_ = S.charCodeAt(h))) == 55296 && h + 1 < m && (64512 & (y = S.charCodeAt(h + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (y - 56320), h++), E += _ < 128 ? 1 : _ < 2048 ? 2 : _ < 65536 ? 3 : 4;
|
|
2232
2232
|
for (N = new a.Buf8(E), u = 0, h = 0; u < E; h++) (64512 & (_ = S.charCodeAt(h))) == 55296 && h + 1 < m && (64512 & (y = S.charCodeAt(h + 1))) == 56320 && (_ = 65536 + (_ - 55296 << 10) + (y - 56320), h++), _ < 128 ? N[u++] = _ : _ < 2048 ? (N[u++] = 192 | _ >>> 6, N[u++] = 128 | 63 & _) : _ < 65536 ? (N[u++] = 224 | _ >>> 12, N[u++] = 128 | _ >>> 6 & 63, N[u++] = 128 | 63 & _) : (N[u++] = 240 | _ >>> 18, N[u++] = 128 | _ >>> 12 & 63, N[u++] = 128 | _ >>> 6 & 63, N[u++] = 128 | 63 & _);
|
|
2233
2233
|
return N;
|
|
2234
|
-
},
|
|
2234
|
+
}, D.buf2binstring = function(S) {
|
|
2235
2235
|
return p(S, S.length);
|
|
2236
|
-
},
|
|
2236
|
+
}, D.binstring2buf = function(S) {
|
|
2237
2237
|
for (var N = new a.Buf8(S.length), _ = 0, y = N.length; _ < y; _++) N[_] = S.charCodeAt(_);
|
|
2238
2238
|
return N;
|
|
2239
|
-
},
|
|
2239
|
+
}, D.buf2string = function(S, N) {
|
|
2240
2240
|
var _, y, h, u, m = N || S.length, E = new Array(2 * m);
|
|
2241
2241
|
for (y = 0, _ = 0; _ < m; ) if ((h = S[_++]) < 128) E[y++] = h;
|
|
2242
2242
|
else if ((u = g[h]) > 4) E[y++] = 65533, _ += u - 1;
|
|
@@ -2245,14 +2245,14 @@ function ac() {
|
|
|
2245
2245
|
u > 1 ? E[y++] = 65533 : h < 65536 ? E[y++] = h : (h -= 65536, E[y++] = 55296 | h >> 10 & 1023, E[y++] = 56320 | 1023 & h);
|
|
2246
2246
|
}
|
|
2247
2247
|
return p(E, y);
|
|
2248
|
-
},
|
|
2248
|
+
}, D.utf8border = function(S, N) {
|
|
2249
2249
|
var _;
|
|
2250
2250
|
for ((N = N || S.length) > S.length && (N = S.length), _ = N - 1; _ >= 0 && (192 & S[_]) == 128; ) _--;
|
|
2251
2251
|
return _ < 0 || _ === 0 ? N : _ + g[S[_]] > N ? _ : N;
|
|
2252
2252
|
};
|
|
2253
|
-
}, 6069: (
|
|
2254
|
-
|
|
2255
|
-
for (var l = 65535 &
|
|
2253
|
+
}, 6069: (H) => {
|
|
2254
|
+
H.exports = function(D, r, a, i) {
|
|
2255
|
+
for (var l = 65535 & D | 0, g = D >>> 16 & 65535 | 0, I = 0; a !== 0; ) {
|
|
2256
2256
|
a -= I = a > 2e3 ? 2e3 : a;
|
|
2257
2257
|
do
|
|
2258
2258
|
g = g + (l = l + r[i++] | 0) | 0;
|
|
@@ -2261,10 +2261,10 @@ function ac() {
|
|
|
2261
2261
|
}
|
|
2262
2262
|
return l | g << 16 | 0;
|
|
2263
2263
|
};
|
|
2264
|
-
}, 1619: (
|
|
2265
|
-
|
|
2266
|
-
}, 2869: (
|
|
2267
|
-
var
|
|
2264
|
+
}, 1619: (H) => {
|
|
2265
|
+
H.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
2266
|
+
}, 2869: (H) => {
|
|
2267
|
+
var D = (function() {
|
|
2268
2268
|
for (var r, a = [], i = 0; i < 256; i++) {
|
|
2269
2269
|
r = i;
|
|
2270
2270
|
for (var l = 0; l < 8; l++) r = 1 & r ? 3988292384 ^ r >>> 1 : r >>> 1;
|
|
@@ -2272,13 +2272,13 @@ function ac() {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
return a;
|
|
2274
2274
|
})();
|
|
2275
|
-
|
|
2276
|
-
var g =
|
|
2275
|
+
H.exports = function(r, a, i, l) {
|
|
2276
|
+
var g = D, I = l + i;
|
|
2277
2277
|
r ^= -1;
|
|
2278
2278
|
for (var p = l; p < I; p++) r = r >>> 8 ^ g[255 & (r ^ a[p])];
|
|
2279
2279
|
return -1 ^ r;
|
|
2280
2280
|
};
|
|
2281
|
-
}, 405: (
|
|
2281
|
+
}, 405: (H, D, r) => {
|
|
2282
2282
|
var a, i = r(4236), l = r(342), g = r(6069), I = r(2869), p = r(8898), S = -2, N = 258, _ = 262, y = 103, h = 113, u = 666;
|
|
2283
2283
|
function m(c, A) {
|
|
2284
2284
|
return c.msg = p[A], A;
|
|
@@ -2319,7 +2319,7 @@ function ac() {
|
|
|
2319
2319
|
while ((A = o[A & T]) > $ && --q != 0);
|
|
2320
2320
|
return W <= c.lookahead ? W : c.lookahead;
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function P(c) {
|
|
2323
2323
|
var A, U, k, q, F, W, V, $, K, T, o = c.w_size;
|
|
2324
2324
|
do {
|
|
2325
2325
|
if (q = c.window_size - c.lookahead - c.strstart, c.strstart >= o + (o - _)) {
|
|
@@ -2340,7 +2340,7 @@ function ac() {
|
|
|
2340
2340
|
function n(c, A) {
|
|
2341
2341
|
for (var U, k; ; ) {
|
|
2342
2342
|
if (c.lookahead < _) {
|
|
2343
|
-
if (
|
|
2343
|
+
if (P(c), c.lookahead < _ && A === 0) return 1;
|
|
2344
2344
|
if (c.lookahead === 0) break;
|
|
2345
2345
|
}
|
|
2346
2346
|
if (U = 0, c.lookahead >= 3 && (c.ins_h = (c.ins_h << c.hash_shift ^ c.window[c.strstart + 3 - 1]) & c.hash_mask, U = c.prev[c.strstart & c.w_mask] = c.head[c.ins_h], c.head[c.ins_h] = c.strstart), U !== 0 && c.strstart - U <= c.w_size - _ && (c.match_length = x(c, U)), c.match_length >= 3) if (k = l._tr_tally(c, c.strstart - c.match_start, c.match_length - 3), c.lookahead -= c.match_length, c.match_length <= c.max_lazy_match && c.lookahead >= 3) {
|
|
@@ -2358,7 +2358,7 @@ function ac() {
|
|
|
2358
2358
|
function B(c, A) {
|
|
2359
2359
|
for (var U, k, q; ; ) {
|
|
2360
2360
|
if (c.lookahead < _) {
|
|
2361
|
-
if (
|
|
2361
|
+
if (P(c), c.lookahead < _ && A === 0) return 1;
|
|
2362
2362
|
if (c.lookahead === 0) break;
|
|
2363
2363
|
}
|
|
2364
2364
|
if (U = 0, c.lookahead >= 3 && (c.ins_h = (c.ins_h << c.hash_shift ^ c.window[c.strstart + 3 - 1]) & c.hash_mask, U = c.prev[c.strstart & c.w_mask] = c.head[c.ins_h], c.head[c.ins_h] = c.strstart), c.prev_length = c.match_length, c.prev_match = c.match_start, c.match_length = 2, U !== 0 && c.prev_length < c.max_lazy_match && c.strstart - U <= c.w_size - _ && (c.match_length = x(c, U), c.match_length <= 5 && (c.strategy === 1 || c.match_length === 3 && c.strstart - c.match_start > 4096) && (c.match_length = 2)), c.prev_length >= 3 && c.match_length <= c.prev_length) {
|
|
@@ -2399,7 +2399,7 @@ function ac() {
|
|
|
2399
2399
|
var U = 65535;
|
|
2400
2400
|
for (U > c.pending_buf_size - 5 && (U = c.pending_buf_size - 5); ; ) {
|
|
2401
2401
|
if (c.lookahead <= 1) {
|
|
2402
|
-
if (
|
|
2402
|
+
if (P(c), c.lookahead === 0 && A === 0) return 1;
|
|
2403
2403
|
if (c.lookahead === 0) break;
|
|
2404
2404
|
}
|
|
2405
2405
|
c.strstart += c.lookahead, c.lookahead = 0;
|
|
@@ -2407,11 +2407,11 @@ function ac() {
|
|
|
2407
2407
|
if ((c.strstart === 0 || c.strstart >= k) && (c.lookahead = c.strstart - k, c.strstart = k, d(c, !1), c.strm.avail_out === 0) || c.strstart - c.block_start >= c.w_size - _ && (d(c, !1), c.strm.avail_out === 0)) return 1;
|
|
2408
2408
|
}
|
|
2409
2409
|
return c.insert = 0, A === 4 ? (d(c, !0), c.strm.avail_out === 0 ? 3 : 4) : (c.strstart > c.block_start && (d(c, !1), c.strm.avail_out), 1);
|
|
2410
|
-
})), new Q(4, 4, 8, 4, n), new Q(4, 5, 16, 8, n), new Q(4, 6, 32, 32, n), new Q(4, 4, 16, 16, B), new Q(8, 16, 32, 32, B), new Q(8, 16, 128, 128, B), new Q(8, 32, 128, 256, B), new Q(32, 128, 258, 1024, B), new Q(32, 258, 258, 4096, B)],
|
|
2410
|
+
})), new Q(4, 4, 8, 4, n), new Q(4, 5, 16, 8, n), new Q(4, 6, 32, 32, n), new Q(4, 4, 16, 16, B), new Q(8, 16, 32, 32, B), new Q(8, 16, 128, 128, B), new Q(8, 32, 128, 256, B), new Q(32, 128, 258, 1024, B), new Q(32, 258, 258, 4096, B)], D.deflateInit = function(c, A) {
|
|
2411
2411
|
return at(c, A, 8, 15, 8, 0);
|
|
2412
|
-
},
|
|
2412
|
+
}, D.deflateInit2 = at, D.deflateReset = rt, D.deflateResetKeep = lt, D.deflateSetHeader = function(c, A) {
|
|
2413
2413
|
return c && c.state ? c.state.wrap !== 2 ? S : (c.state.gzhead = A, 0) : S;
|
|
2414
|
-
},
|
|
2414
|
+
}, D.deflate = function(c, A) {
|
|
2415
2415
|
var U, k, q, F;
|
|
2416
2416
|
if (!c || !c.state || A > 5 || A < 0) return c ? m(c, S) : S;
|
|
2417
2417
|
if (k = c.state, !c.output || !c.input && c.avail_in !== 0 || k.status === u && A !== 4) return m(c, c.avail_out === 0 ? -5 : S);
|
|
@@ -2453,7 +2453,7 @@ function ac() {
|
|
|
2453
2453
|
if (c.avail_in !== 0 || k.lookahead !== 0 || A !== 0 && k.status !== u) {
|
|
2454
2454
|
var V = k.strategy === 2 ? (function($, K) {
|
|
2455
2455
|
for (var T; ; ) {
|
|
2456
|
-
if ($.lookahead === 0 && (
|
|
2456
|
+
if ($.lookahead === 0 && (P($), $.lookahead === 0)) {
|
|
2457
2457
|
if (K === 0) return 1;
|
|
2458
2458
|
break;
|
|
2459
2459
|
}
|
|
@@ -2463,7 +2463,7 @@ function ac() {
|
|
|
2463
2463
|
})(k, A) : k.strategy === 3 ? (function($, K) {
|
|
2464
2464
|
for (var T, o, v, L, Y = $.window; ; ) {
|
|
2465
2465
|
if ($.lookahead <= N) {
|
|
2466
|
-
if (
|
|
2466
|
+
if (P($), $.lookahead <= N && K === 0) return 1;
|
|
2467
2467
|
if ($.lookahead === 0) break;
|
|
2468
2468
|
}
|
|
2469
2469
|
if ($.match_length = 0, $.lookahead >= 3 && $.strstart > 0 && (o = Y[v = $.strstart - 1]) === Y[++v] && o === Y[++v] && o === Y[++v]) {
|
|
@@ -2481,29 +2481,29 @@ function ac() {
|
|
|
2481
2481
|
if (V === 2 && (A === 1 ? l._tr_align(k) : A !== 5 && (l._tr_stored_block(k, 0, 0, !1), A === 3 && (O(k.head), k.lookahead === 0 && (k.strstart = 0, k.block_start = 0, k.insert = 0))), M(c), c.avail_out === 0)) return k.last_flush = -1, 0;
|
|
2482
2482
|
}
|
|
2483
2483
|
return A !== 4 ? 0 : k.wrap <= 0 ? 1 : (k.wrap === 2 ? (b(k, 255 & c.adler), b(k, c.adler >> 8 & 255), b(k, c.adler >> 16 & 255), b(k, c.adler >> 24 & 255), b(k, 255 & c.total_in), b(k, c.total_in >> 8 & 255), b(k, c.total_in >> 16 & 255), b(k, c.total_in >> 24 & 255)) : (C(k, c.adler >>> 16), C(k, 65535 & c.adler)), M(c), k.wrap > 0 && (k.wrap = -k.wrap), k.pending !== 0 ? 0 : 1);
|
|
2484
|
-
},
|
|
2484
|
+
}, D.deflateEnd = function(c) {
|
|
2485
2485
|
var A;
|
|
2486
2486
|
return c && c.state ? (A = c.state.status) !== 42 && A !== 69 && A !== 73 && A !== 91 && A !== y && A !== h && A !== u ? m(c, S) : (c.state = null, A === h ? m(c, -3) : 0) : S;
|
|
2487
|
-
},
|
|
2487
|
+
}, D.deflateSetDictionary = function(c, A) {
|
|
2488
2488
|
var U, k, q, F, W, V, $, K, T = A.length;
|
|
2489
2489
|
if (!c || !c.state || (F = (U = c.state).wrap) === 2 || F === 1 && U.status !== 42 || U.lookahead) return S;
|
|
2490
|
-
for (F === 1 && (c.adler = g(c.adler, A, T, 0)), U.wrap = 0, T >= U.w_size && (F === 0 && (O(U.head), U.strstart = 0, U.block_start = 0, U.insert = 0), K = new i.Buf8(U.w_size), i.arraySet(K, A, T - U.w_size, U.w_size, 0), A = K, T = U.w_size), W = c.avail_in, V = c.next_in, $ = c.input, c.avail_in = T, c.next_in = 0, c.input = A,
|
|
2490
|
+
for (F === 1 && (c.adler = g(c.adler, A, T, 0)), U.wrap = 0, T >= U.w_size && (F === 0 && (O(U.head), U.strstart = 0, U.block_start = 0, U.insert = 0), K = new i.Buf8(U.w_size), i.arraySet(K, A, T - U.w_size, U.w_size, 0), A = K, T = U.w_size), W = c.avail_in, V = c.next_in, $ = c.input, c.avail_in = T, c.next_in = 0, c.input = A, P(U); U.lookahead >= 3; ) {
|
|
2491
2491
|
k = U.strstart, q = U.lookahead - 2;
|
|
2492
2492
|
do
|
|
2493
2493
|
U.ins_h = (U.ins_h << U.hash_shift ^ U.window[k + 3 - 1]) & U.hash_mask, U.prev[k & U.w_mask] = U.head[U.ins_h], U.head[U.ins_h] = k, k++;
|
|
2494
2494
|
while (--q);
|
|
2495
|
-
U.strstart = k, U.lookahead = 2,
|
|
2495
|
+
U.strstart = k, U.lookahead = 2, P(U);
|
|
2496
2496
|
}
|
|
2497
2497
|
return U.strstart += U.lookahead, U.block_start = U.strstart, U.insert = U.lookahead, U.lookahead = 0, U.match_length = U.prev_length = 2, U.match_available = 0, c.next_in = V, c.input = $, c.avail_in = W, U.wrap = F, 0;
|
|
2498
|
-
},
|
|
2499
|
-
}, 2401: (
|
|
2500
|
-
|
|
2498
|
+
}, D.deflateInfo = "pako deflate (from Nodeca project)";
|
|
2499
|
+
}, 2401: (H) => {
|
|
2500
|
+
H.exports = function() {
|
|
2501
2501
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
2502
2502
|
};
|
|
2503
|
-
}, 4264: (
|
|
2504
|
-
|
|
2505
|
-
var a, i, l, g, I, p, S, N, _, y, h, u, m, E, O, M, d, b, C, x,
|
|
2506
|
-
a =
|
|
2503
|
+
}, 4264: (H) => {
|
|
2504
|
+
H.exports = function(D, r) {
|
|
2505
|
+
var a, i, l, g, I, p, S, N, _, y, h, u, m, E, O, M, d, b, C, x, P, n, B, Q, G;
|
|
2506
|
+
a = D.state, i = D.next_in, Q = D.input, l = i + (D.avail_in - 5), g = D.next_out, G = D.output, I = g - (r - D.avail_out), p = g + (D.avail_out - 257), S = a.dmax, N = a.wsize, _ = a.whave, y = a.wnext, h = a.window, u = a.hold, m = a.bits, E = a.lencode, O = a.distcode, M = (1 << a.lenbits) - 1, d = (1 << a.distbits) - 1;
|
|
2507
2507
|
t: do {
|
|
2508
2508
|
m < 15 && (u += Q[i++] << m, m += 8, u += Q[i++] << m, m += 8), b = E[u & M];
|
|
2509
2509
|
e: for (; ; ) {
|
|
@@ -2518,7 +2518,7 @@ function ac() {
|
|
|
2518
2518
|
a.mode = 12;
|
|
2519
2519
|
break t;
|
|
2520
2520
|
}
|
|
2521
|
-
|
|
2521
|
+
D.msg = "invalid literal/length code", a.mode = 30;
|
|
2522
2522
|
break t;
|
|
2523
2523
|
}
|
|
2524
2524
|
x = 65535 & b, (C &= 15) && (m < C && (u += Q[i++] << m, m += 8), x += u & (1 << C) - 1, u >>>= C, m -= C), m < 15 && (u += Q[i++] << m, m += 8, u += Q[i++] << m, m += 8), b = O[u & d];
|
|
@@ -2528,16 +2528,16 @@ function ac() {
|
|
|
2528
2528
|
b = O[(65535 & b) + (u & (1 << C) - 1)];
|
|
2529
2529
|
continue r;
|
|
2530
2530
|
}
|
|
2531
|
-
|
|
2531
|
+
D.msg = "invalid distance code", a.mode = 30;
|
|
2532
2532
|
break t;
|
|
2533
2533
|
}
|
|
2534
|
-
if (
|
|
2535
|
-
|
|
2534
|
+
if (P = 65535 & b, m < (C &= 15) && (u += Q[i++] << m, (m += 8) < C && (u += Q[i++] << m, m += 8)), (P += u & (1 << C) - 1) > S) {
|
|
2535
|
+
D.msg = "invalid distance too far back", a.mode = 30;
|
|
2536
2536
|
break t;
|
|
2537
2537
|
}
|
|
2538
|
-
if (u >>>= C, m -= C,
|
|
2539
|
-
if ((C =
|
|
2540
|
-
|
|
2538
|
+
if (u >>>= C, m -= C, P > (C = g - I)) {
|
|
2539
|
+
if ((C = P - C) > _ && a.sane) {
|
|
2540
|
+
D.msg = "invalid distance too far back", a.mode = 30;
|
|
2541
2541
|
break t;
|
|
2542
2542
|
}
|
|
2543
2543
|
if (n = 0, B = h, y === 0) {
|
|
@@ -2546,7 +2546,7 @@ function ac() {
|
|
|
2546
2546
|
do
|
|
2547
2547
|
G[g++] = h[n++];
|
|
2548
2548
|
while (--C);
|
|
2549
|
-
n = g -
|
|
2549
|
+
n = g - P, B = G;
|
|
2550
2550
|
}
|
|
2551
2551
|
} else if (y < C) {
|
|
2552
2552
|
if (n += N + y - C, (C -= y) < x) {
|
|
@@ -2559,7 +2559,7 @@ function ac() {
|
|
|
2559
2559
|
do
|
|
2560
2560
|
G[g++] = h[n++];
|
|
2561
2561
|
while (--C);
|
|
2562
|
-
n = g -
|
|
2562
|
+
n = g - P, B = G;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
} else if (n += y - C, C < x) {
|
|
@@ -2567,12 +2567,12 @@ function ac() {
|
|
|
2567
2567
|
do
|
|
2568
2568
|
G[g++] = h[n++];
|
|
2569
2569
|
while (--C);
|
|
2570
|
-
n = g -
|
|
2570
|
+
n = g - P, B = G;
|
|
2571
2571
|
}
|
|
2572
2572
|
for (; x > 2; ) G[g++] = B[n++], G[g++] = B[n++], G[g++] = B[n++], x -= 3;
|
|
2573
2573
|
x && (G[g++] = B[n++], x > 1 && (G[g++] = B[n++]));
|
|
2574
2574
|
} else {
|
|
2575
|
-
n = g -
|
|
2575
|
+
n = g - P;
|
|
2576
2576
|
do
|
|
2577
2577
|
G[g++] = G[n++], G[g++] = G[n++], G[g++] = G[n++], x -= 3;
|
|
2578
2578
|
while (x > 2);
|
|
@@ -2584,9 +2584,9 @@ function ac() {
|
|
|
2584
2584
|
break;
|
|
2585
2585
|
}
|
|
2586
2586
|
} while (i < l && g < p);
|
|
2587
|
-
i -= x = m >> 3, u &= (1 << (m -= x << 3)) - 1,
|
|
2587
|
+
i -= x = m >> 3, u &= (1 << (m -= x << 3)) - 1, D.next_in = i, D.next_out = g, D.avail_in = i < l ? l - i + 5 : 5 - (i - l), D.avail_out = g < p ? p - g + 257 : 257 - (g - p), a.hold = u, a.bits = m;
|
|
2588
2588
|
};
|
|
2589
|
-
}, 7948: (
|
|
2589
|
+
}, 7948: (H, D, r) => {
|
|
2590
2590
|
var a = r(4236), i = r(6069), l = r(2869), g = r(4264), I = r(9241), p = -2, S = 12, N = 30;
|
|
2591
2591
|
function _(x) {
|
|
2592
2592
|
return (x >>> 24 & 255) + (x >>> 8 & 65280) + ((65280 & x) << 8) + ((255 & x) << 24);
|
|
@@ -2595,41 +2595,41 @@ function ac() {
|
|
|
2595
2595
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new a.Buf16(320), this.work = new a.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
2596
2596
|
}
|
|
2597
2597
|
function h(x) {
|
|
2598
|
-
var
|
|
2599
|
-
return x && x.state ? (
|
|
2598
|
+
var P;
|
|
2599
|
+
return x && x.state ? (P = x.state, x.total_in = x.total_out = P.total = 0, x.msg = "", P.wrap && (x.adler = 1 & P.wrap), P.mode = 1, P.last = 0, P.havedict = 0, P.dmax = 32768, P.head = null, P.hold = 0, P.bits = 0, P.lencode = P.lendyn = new a.Buf32(852), P.distcode = P.distdyn = new a.Buf32(592), P.sane = 1, P.back = -1, 0) : p;
|
|
2600
2600
|
}
|
|
2601
2601
|
function u(x) {
|
|
2602
|
-
var
|
|
2603
|
-
return x && x.state ? ((
|
|
2602
|
+
var P;
|
|
2603
|
+
return x && x.state ? ((P = x.state).wsize = 0, P.whave = 0, P.wnext = 0, h(x)) : p;
|
|
2604
2604
|
}
|
|
2605
|
-
function m(x,
|
|
2605
|
+
function m(x, P) {
|
|
2606
2606
|
var n, B;
|
|
2607
|
-
return x && x.state ? (B = x.state,
|
|
2607
|
+
return x && x.state ? (B = x.state, P < 0 ? (n = 0, P = -P) : (n = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || P > 15) ? p : (B.window !== null && B.wbits !== P && (B.window = null), B.wrap = n, B.wbits = P, u(x))) : p;
|
|
2608
2608
|
}
|
|
2609
|
-
function E(x,
|
|
2609
|
+
function E(x, P) {
|
|
2610
2610
|
var n, B;
|
|
2611
|
-
return x ? (B = new y(), x.state = B, B.window = null, (n = m(x,
|
|
2611
|
+
return x ? (B = new y(), x.state = B, B.window = null, (n = m(x, P)) !== 0 && (x.state = null), n) : p;
|
|
2612
2612
|
}
|
|
2613
2613
|
var O, M, d = !0;
|
|
2614
2614
|
function b(x) {
|
|
2615
2615
|
if (d) {
|
|
2616
|
-
var
|
|
2617
|
-
for (O = new a.Buf32(512), M = new a.Buf32(32),
|
|
2618
|
-
for (;
|
|
2619
|
-
for (;
|
|
2620
|
-
for (;
|
|
2621
|
-
for (I(1, x.lens, 0, 288, O, 0, x.work, { bits: 9 }),
|
|
2616
|
+
var P;
|
|
2617
|
+
for (O = new a.Buf32(512), M = new a.Buf32(32), P = 0; P < 144; ) x.lens[P++] = 8;
|
|
2618
|
+
for (; P < 256; ) x.lens[P++] = 9;
|
|
2619
|
+
for (; P < 280; ) x.lens[P++] = 7;
|
|
2620
|
+
for (; P < 288; ) x.lens[P++] = 8;
|
|
2621
|
+
for (I(1, x.lens, 0, 288, O, 0, x.work, { bits: 9 }), P = 0; P < 32; ) x.lens[P++] = 5;
|
|
2622
2622
|
I(2, x.lens, 0, 32, M, 0, x.work, { bits: 5 }), d = !1;
|
|
2623
2623
|
}
|
|
2624
2624
|
x.lencode = O, x.lenbits = 9, x.distcode = M, x.distbits = 5;
|
|
2625
2625
|
}
|
|
2626
|
-
function C(x,
|
|
2626
|
+
function C(x, P, n, B) {
|
|
2627
2627
|
var Q, G = x.state;
|
|
2628
|
-
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new a.Buf8(G.wsize)), B >= G.wsize ? (a.arraySet(G.window,
|
|
2628
|
+
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new a.Buf8(G.wsize)), B >= G.wsize ? (a.arraySet(G.window, P, n - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : ((Q = G.wsize - G.wnext) > B && (Q = B), a.arraySet(G.window, P, n - B, Q, G.wnext), (B -= Q) ? (a.arraySet(G.window, P, n - B, B, 0), G.wnext = B, G.whave = G.wsize) : (G.wnext += Q, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += Q))), 0;
|
|
2629
2629
|
}
|
|
2630
|
-
|
|
2630
|
+
D.inflateReset = u, D.inflateReset2 = m, D.inflateResetKeep = h, D.inflateInit = function(x) {
|
|
2631
2631
|
return E(x, 15);
|
|
2632
|
-
},
|
|
2632
|
+
}, D.inflateInit2 = E, D.inflate = function(x, P) {
|
|
2633
2633
|
var n, B, Q, G, lt, rt, at, c, A, U, k, q, F, W, V, $, K, T, o, v, L, Y, st, ht, nt = 0, it = new a.Buf8(4), wt = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
2634
2634
|
if (!x || !x.state || !x.output || !x.input && x.avail_in !== 0) return p;
|
|
2635
2635
|
(n = x.state).mode === S && (n.mode = 13), lt = x.next_out, Q = x.output, at = x.avail_out, G = x.next_in, B = x.input, rt = x.avail_in, c = n.hold, A = n.bits, U = rt, k = at, Y = 0;
|
|
@@ -2744,7 +2744,7 @@ function ac() {
|
|
|
2744
2744
|
if (n.havedict === 0) return x.next_out = lt, x.avail_out = at, x.next_in = G, x.avail_in = rt, n.hold = c, n.bits = A, 2;
|
|
2745
2745
|
x.adler = n.check = 1, n.mode = S;
|
|
2746
2746
|
case S:
|
|
2747
|
-
if (
|
|
2747
|
+
if (P === 5 || P === 6) break t;
|
|
2748
2748
|
case 13:
|
|
2749
2749
|
if (n.last) {
|
|
2750
2750
|
c >>>= 7 & A, A -= 7 & A, n.mode = 27;
|
|
@@ -2759,7 +2759,7 @@ function ac() {
|
|
|
2759
2759
|
n.mode = 14;
|
|
2760
2760
|
break;
|
|
2761
2761
|
case 1:
|
|
2762
|
-
if (b(n), n.mode = 20,
|
|
2762
|
+
if (b(n), n.mode = 20, P === 6) {
|
|
2763
2763
|
c >>>= 2, A -= 2;
|
|
2764
2764
|
break t;
|
|
2765
2765
|
}
|
|
@@ -2781,7 +2781,7 @@ function ac() {
|
|
|
2781
2781
|
x.msg = "invalid stored block lengths", n.mode = N;
|
|
2782
2782
|
break;
|
|
2783
2783
|
}
|
|
2784
|
-
if (n.length = 65535 & c, c = 0, A = 0, n.mode = 15,
|
|
2784
|
+
if (n.length = 65535 & c, c = 0, A = 0, n.mode = 15, P === 6) break t;
|
|
2785
2785
|
case 15:
|
|
2786
2786
|
n.mode = 16;
|
|
2787
2787
|
case 16:
|
|
@@ -2867,7 +2867,7 @@ function ac() {
|
|
|
2867
2867
|
x.msg = "invalid distances set", n.mode = N;
|
|
2868
2868
|
break;
|
|
2869
2869
|
}
|
|
2870
|
-
if (n.mode = 20,
|
|
2870
|
+
if (n.mode = 20, P === 6) break t;
|
|
2871
2871
|
case 20:
|
|
2872
2872
|
n.mode = 21;
|
|
2873
2873
|
case 21:
|
|
@@ -2994,22 +2994,22 @@ function ac() {
|
|
|
2994
2994
|
default:
|
|
2995
2995
|
return p;
|
|
2996
2996
|
}
|
|
2997
|
-
return x.next_out = lt, x.avail_out = at, x.next_in = G, x.avail_in = rt, n.hold = c, n.bits = A, (n.wsize || k !== x.avail_out && n.mode < N && (n.mode < 27 ||
|
|
2998
|
-
},
|
|
2997
|
+
return x.next_out = lt, x.avail_out = at, x.next_in = G, x.avail_in = rt, n.hold = c, n.bits = A, (n.wsize || k !== x.avail_out && n.mode < N && (n.mode < 27 || P !== 4)) && C(x, x.output, x.next_out, k - x.avail_out) ? (n.mode = 31, -4) : (U -= x.avail_in, k -= x.avail_out, x.total_in += U, x.total_out += k, n.total += k, n.wrap && k && (x.adler = n.check = n.flags ? l(n.check, Q, k, x.next_out - k) : i(n.check, Q, k, x.next_out - k)), x.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === S ? 128 : 0) + (n.mode === 20 || n.mode === 15 ? 256 : 0), (U === 0 && k === 0 || P === 4) && Y === 0 && (Y = -5), Y);
|
|
2998
|
+
}, D.inflateEnd = function(x) {
|
|
2999
2999
|
if (!x || !x.state) return p;
|
|
3000
|
-
var
|
|
3001
|
-
return
|
|
3002
|
-
},
|
|
3000
|
+
var P = x.state;
|
|
3001
|
+
return P.window && (P.window = null), x.state = null, 0;
|
|
3002
|
+
}, D.inflateGetHeader = function(x, P) {
|
|
3003
3003
|
var n;
|
|
3004
|
-
return x && x.state ? (2 & (n = x.state).wrap) == 0 ? p : (n.head =
|
|
3005
|
-
},
|
|
3006
|
-
var n, B =
|
|
3007
|
-
return x && x.state ? (n = x.state).wrap !== 0 && n.mode !== 11 ? p : n.mode === 11 && i(1,
|
|
3008
|
-
},
|
|
3009
|
-
}, 9241: (
|
|
3004
|
+
return x && x.state ? (2 & (n = x.state).wrap) == 0 ? p : (n.head = P, P.done = !1, 0) : p;
|
|
3005
|
+
}, D.inflateSetDictionary = function(x, P) {
|
|
3006
|
+
var n, B = P.length;
|
|
3007
|
+
return x && x.state ? (n = x.state).wrap !== 0 && n.mode !== 11 ? p : n.mode === 11 && i(1, P, B, 0) !== n.check ? -3 : C(x, P, B, B) ? (n.mode = 31, -4) : (n.havedict = 1, 0) : p;
|
|
3008
|
+
}, D.inflateInfo = "pako inflate (from Nodeca project)";
|
|
3009
|
+
}, 9241: (H, D, r) => {
|
|
3010
3010
|
var a = r(4236), i = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], l = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], g = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], I = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
3011
|
-
|
|
3012
|
-
var E, O, M, d, b, C, x,
|
|
3011
|
+
H.exports = function(p, S, N, _, y, h, u, m) {
|
|
3012
|
+
var E, O, M, d, b, C, x, P, n, B = m.bits, Q = 0, G = 0, lt = 0, rt = 0, at = 0, c = 0, A = 0, U = 0, k = 0, q = 0, F = null, W = 0, V = new a.Buf16(16), $ = new a.Buf16(16), K = null, T = 0;
|
|
3013
3013
|
for (Q = 0; Q <= 15; Q++) V[Q] = 0;
|
|
3014
3014
|
for (G = 0; G < _; G++) V[S[N + G]]++;
|
|
3015
3015
|
for (at = B, rt = 15; rt >= 1 && V[rt] === 0; rt--) ;
|
|
@@ -3021,9 +3021,9 @@ function ac() {
|
|
|
3021
3021
|
for (G = 0; G < _; G++) S[N + G] !== 0 && (u[$[S[N + G]]++] = G);
|
|
3022
3022
|
if (p === 0 ? (F = K = u, C = 19) : p === 1 ? (F = i, W -= 257, K = l, T -= 257, C = 256) : (F = g, K = I, C = -1), q = 0, G = 0, Q = lt, b = h, c = at, A = 0, M = -1, d = (k = 1 << at) - 1, p === 1 && k > 852 || p === 2 && k > 592) return 1;
|
|
3023
3023
|
for (; ; ) {
|
|
3024
|
-
x = Q - A, u[G] < C ? (
|
|
3024
|
+
x = Q - A, u[G] < C ? (P = 0, n = u[G]) : u[G] > C ? (P = K[T + u[G]], n = F[W + u[G]]) : (P = 96, n = 0), E = 1 << Q - A, lt = O = 1 << c;
|
|
3025
3025
|
do
|
|
3026
|
-
y[b + (q >> A) + (O -= E)] = x << 24 |
|
|
3026
|
+
y[b + (q >> A) + (O -= E)] = x << 24 | P << 16 | n | 0;
|
|
3027
3027
|
while (O !== 0);
|
|
3028
3028
|
for (E = 1 << Q - 1; q & E; ) E >>= 1;
|
|
3029
3029
|
if (E !== 0 ? (q &= E - 1, q += E) : q = 0, G++, --V[Q] == 0) {
|
|
@@ -3038,9 +3038,9 @@ function ac() {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
return q !== 0 && (y[b + q] = Q - A << 24 | 4194304 | 0), m.bits = at, 0;
|
|
3040
3040
|
};
|
|
3041
|
-
}, 8898: (
|
|
3042
|
-
|
|
3043
|
-
}, 342: (
|
|
3041
|
+
}, 8898: (H) => {
|
|
3042
|
+
H.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
3043
|
+
}, 342: (H, D, r) => {
|
|
3044
3044
|
var a = r(4236);
|
|
3045
3045
|
function i(F) {
|
|
3046
3046
|
for (var W = F.length; --W >= 0; ) F[W] = 0;
|
|
@@ -3071,7 +3071,7 @@ function ac() {
|
|
|
3071
3071
|
function x(F, W, V) {
|
|
3072
3072
|
F.bi_valid > 16 - V ? (F.bi_buf |= W << F.bi_valid & 65535, C(F, F.bi_buf), F.bi_buf = W >> 16 - F.bi_valid, F.bi_valid += V - 16) : (F.bi_buf |= W << F.bi_valid & 65535, F.bi_valid += V);
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3074
|
+
function P(F, W, V) {
|
|
3075
3075
|
x(F, V[2 * W], V[2 * W + 1]);
|
|
3076
3076
|
}
|
|
3077
3077
|
function n(F, W) {
|
|
@@ -3110,9 +3110,9 @@ function ac() {
|
|
|
3110
3110
|
function at(F, W, V) {
|
|
3111
3111
|
var $, K, T, o, v = 0;
|
|
3112
3112
|
if (F.last_lit !== 0) do
|
|
3113
|
-
$ = F.pending_buf[F.d_buf + 2 * v] << 8 | F.pending_buf[F.d_buf + 2 * v + 1], K = F.pending_buf[F.l_buf + v], v++, $ === 0 ?
|
|
3113
|
+
$ = F.pending_buf[F.d_buf + 2 * v] << 8 | F.pending_buf[F.d_buf + 2 * v + 1], K = F.pending_buf[F.l_buf + v], v++, $ === 0 ? P(F, K, W) : (P(F, (T = y[K]) + 256 + 1, W), (o = l[T]) !== 0 && x(F, K -= h[T], o), P(F, T = b(--$), V), (o = g[T]) !== 0 && x(F, $ -= O[T], o));
|
|
3114
3114
|
while (v < F.last_lit);
|
|
3115
|
-
|
|
3115
|
+
P(F, 256, W);
|
|
3116
3116
|
}
|
|
3117
3117
|
function c(F, W) {
|
|
3118
3118
|
var V, $, K, T = W.dyn_tree, o = W.stat_desc.static_tree, v = W.stat_desc.has_stree, L = W.stat_desc.elems, Y = -1;
|
|
@@ -3124,15 +3124,15 @@ function ac() {
|
|
|
3124
3124
|
V = F.heap[1], F.heap[1] = F.heap[F.heap_len--], rt(F, T, 1), $ = F.heap[1], F.heap[--F.heap_max] = V, F.heap[--F.heap_max] = $, T[2 * K] = T[2 * V] + T[2 * $], F.depth[K] = (F.depth[V] >= F.depth[$] ? F.depth[V] : F.depth[$]) + 1, T[2 * V + 1] = T[2 * $ + 1] = K, F.heap[1] = K++, rt(F, T, 1);
|
|
3125
3125
|
while (F.heap_len >= 2);
|
|
3126
3126
|
F.heap[--F.heap_max] = F.heap[1], (function(st, ht) {
|
|
3127
|
-
var nt, it, wt,
|
|
3128
|
-
for (
|
|
3129
|
-
for (s[2 * st.heap[st.heap_max] + 1] = 0, nt = st.heap_max + 1; nt < 573; nt++) (
|
|
3127
|
+
var nt, it, wt, mt, Tt, Ft, s = ht.dyn_tree, w = ht.max_code, R = ht.stat_desc.static_tree, j = ht.stat_desc.has_stree, X = ht.stat_desc.extra_bits, Z = ht.stat_desc.extra_base, et = ht.stat_desc.max_length, yt = 0;
|
|
3128
|
+
for (mt = 0; mt <= 15; mt++) st.bl_count[mt] = 0;
|
|
3129
|
+
for (s[2 * st.heap[st.heap_max] + 1] = 0, nt = st.heap_max + 1; nt < 573; nt++) (mt = s[2 * s[2 * (it = st.heap[nt]) + 1] + 1] + 1) > et && (mt = et, yt++), s[2 * it + 1] = mt, it > w || (st.bl_count[mt]++, Tt = 0, it >= Z && (Tt = X[it - Z]), Ft = s[2 * it], st.opt_len += Ft * (mt + Tt), j && (st.static_len += Ft * (R[2 * it + 1] + Tt)));
|
|
3130
3130
|
if (yt !== 0) {
|
|
3131
3131
|
do {
|
|
3132
|
-
for (
|
|
3133
|
-
st.bl_count[
|
|
3132
|
+
for (mt = et - 1; st.bl_count[mt] === 0; ) mt--;
|
|
3133
|
+
st.bl_count[mt]--, st.bl_count[mt + 1] += 2, st.bl_count[et]--, yt -= 2;
|
|
3134
3134
|
} while (yt > 0);
|
|
3135
|
-
for (
|
|
3135
|
+
for (mt = et; mt !== 0; mt--) for (it = st.bl_count[mt]; it !== 0; ) (wt = st.heap[--nt]) > w || (s[2 * wt + 1] !== mt && (st.opt_len += (mt - s[2 * wt + 1]) * s[2 * wt], s[2 * wt + 1] = mt), it--);
|
|
3136
3136
|
}
|
|
3137
3137
|
})(F, W), B(T, Y, F.bl_count);
|
|
3138
3138
|
}
|
|
@@ -3144,9 +3144,9 @@ function ac() {
|
|
|
3144
3144
|
var $, K, T = -1, o = W[1], v = 0, L = 7, Y = 4;
|
|
3145
3145
|
for (o === 0 && (L = 138, Y = 3), $ = 0; $ <= V; $++) if (K = o, o = W[2 * ($ + 1) + 1], !(++v < L && K === o)) {
|
|
3146
3146
|
if (v < Y) do
|
|
3147
|
-
|
|
3147
|
+
P(F, K, F.bl_tree);
|
|
3148
3148
|
while (--v != 0);
|
|
3149
|
-
else K !== 0 ? (K !== T && (
|
|
3149
|
+
else K !== 0 ? (K !== T && (P(F, K, F.bl_tree), v--), P(F, 16, F.bl_tree), x(F, v - 3, 2)) : v <= 10 ? (P(F, 17, F.bl_tree), x(F, v - 3, 3)) : (P(F, 18, F.bl_tree), x(F, v - 11, 7));
|
|
3150
3150
|
v = 0, T = K, o === 0 ? (L = 138, Y = 3) : K === o ? (L = 6, Y = 3) : (L = 7, Y = 4);
|
|
3151
3151
|
}
|
|
3152
3152
|
}
|
|
@@ -3157,7 +3157,7 @@ function ac() {
|
|
|
3157
3157
|
G(K), C(K, o), C(K, ~o), a.arraySet(K.pending_buf, K.window, T, o, K.pending), K.pending += o;
|
|
3158
3158
|
})(F, W, V);
|
|
3159
3159
|
}
|
|
3160
|
-
|
|
3160
|
+
D._tr_init = function(F) {
|
|
3161
3161
|
k || ((function() {
|
|
3162
3162
|
var W, V, $, K, T, o = new Array(16);
|
|
3163
3163
|
for ($ = 0, K = 0; K < 28; K++) for (h[K] = $, W = 0; W < 1 << l[K]; W++) y[$++] = K;
|
|
@@ -3171,7 +3171,7 @@ function ac() {
|
|
|
3171
3171
|
for (B(S, 287, o), W = 0; W < 30; W++) N[2 * W + 1] = 5, N[2 * W] = n(W, 5);
|
|
3172
3172
|
u = new M(S, l, 257, 286, 15), m = new M(N, g, 0, 30, 15), E = new M(new Array(0), I, 0, 19, 7);
|
|
3173
3173
|
})(), k = !0), F.l_desc = new d(F.dyn_ltree, u), F.d_desc = new d(F.dyn_dtree, m), F.bl_desc = new d(F.bl_tree, E), F.bi_buf = 0, F.bi_valid = 0, Q(F);
|
|
3174
|
-
},
|
|
3174
|
+
}, D._tr_stored_block = q, D._tr_flush_block = function(F, W, V, $) {
|
|
3175
3175
|
var K, T, o = 0;
|
|
3176
3176
|
F.level > 0 ? (F.strm.data_type === 2 && (F.strm.data_type = (function(v) {
|
|
3177
3177
|
var L, Y = 4093624447;
|
|
@@ -3188,19 +3188,19 @@ function ac() {
|
|
|
3188
3188
|
for (x(v, L - 257, 5), x(v, Y - 1, 5), x(v, st - 4, 4), ht = 0; ht < st; ht++) x(v, v.bl_tree[2 * p[ht] + 1], 3);
|
|
3189
3189
|
U(v, v.dyn_ltree, L - 1), U(v, v.dyn_dtree, Y - 1);
|
|
3190
3190
|
})(F, F.l_desc.max_code + 1, F.d_desc.max_code + 1, o + 1), at(F, F.dyn_ltree, F.dyn_dtree)), Q(F), $ && G(F);
|
|
3191
|
-
},
|
|
3191
|
+
}, D._tr_tally = function(F, W, V) {
|
|
3192
3192
|
return F.pending_buf[F.d_buf + 2 * F.last_lit] = W >>> 8 & 255, F.pending_buf[F.d_buf + 2 * F.last_lit + 1] = 255 & W, F.pending_buf[F.l_buf + F.last_lit] = 255 & V, F.last_lit++, W === 0 ? F.dyn_ltree[2 * V]++ : (F.matches++, W--, F.dyn_ltree[2 * (y[V] + 256 + 1)]++, F.dyn_dtree[2 * b(W)]++), F.last_lit === F.lit_bufsize - 1;
|
|
3193
|
-
},
|
|
3194
|
-
x(F, 2, 3),
|
|
3193
|
+
}, D._tr_align = function(F) {
|
|
3194
|
+
x(F, 2, 3), P(F, 256, S), (function(W) {
|
|
3195
3195
|
W.bi_valid === 16 ? (C(W, W.bi_buf), W.bi_buf = 0, W.bi_valid = 0) : W.bi_valid >= 8 && (W.pending_buf[W.pending++] = 255 & W.bi_buf, W.bi_buf >>= 8, W.bi_valid -= 8);
|
|
3196
3196
|
})(F);
|
|
3197
3197
|
};
|
|
3198
|
-
}, 2292: (
|
|
3199
|
-
|
|
3198
|
+
}, 2292: (H) => {
|
|
3199
|
+
H.exports = function() {
|
|
3200
3200
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
3201
3201
|
};
|
|
3202
|
-
}, 4155: (
|
|
3203
|
-
var
|
|
3202
|
+
}, 4155: (H) => {
|
|
3203
|
+
var D, r, a = H.exports = {};
|
|
3204
3204
|
function i() {
|
|
3205
3205
|
throw new Error("setTimeout has not been defined");
|
|
3206
3206
|
}
|
|
@@ -3208,23 +3208,23 @@ function ac() {
|
|
|
3208
3208
|
throw new Error("clearTimeout has not been defined");
|
|
3209
3209
|
}
|
|
3210
3210
|
function g(m) {
|
|
3211
|
-
if (
|
|
3212
|
-
if ((
|
|
3211
|
+
if (D === setTimeout) return setTimeout(m, 0);
|
|
3212
|
+
if ((D === i || !D) && setTimeout) return D = setTimeout, setTimeout(m, 0);
|
|
3213
3213
|
try {
|
|
3214
|
-
return
|
|
3214
|
+
return D(m, 0);
|
|
3215
3215
|
} catch {
|
|
3216
3216
|
try {
|
|
3217
|
-
return
|
|
3217
|
+
return D.call(null, m, 0);
|
|
3218
3218
|
} catch {
|
|
3219
|
-
return
|
|
3219
|
+
return D.call(this, m, 0);
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
(function() {
|
|
3224
3224
|
try {
|
|
3225
|
-
|
|
3225
|
+
D = typeof setTimeout == "function" ? setTimeout : i;
|
|
3226
3226
|
} catch {
|
|
3227
|
-
|
|
3227
|
+
D = i;
|
|
3228
3228
|
}
|
|
3229
3229
|
try {
|
|
3230
3230
|
r = typeof clearTimeout == "function" ? clearTimeout : l;
|
|
@@ -3281,7 +3281,7 @@ function ac() {
|
|
|
3281
3281
|
}, a.umask = function() {
|
|
3282
3282
|
return 0;
|
|
3283
3283
|
};
|
|
3284
|
-
}, 9509: (
|
|
3284
|
+
}, 9509: (H, D, r) => {
|
|
3285
3285
|
var a = r(8764), i = a.Buffer;
|
|
3286
3286
|
function l(I, p) {
|
|
3287
3287
|
for (var S in I) p[S] = I[S];
|
|
@@ -3289,7 +3289,7 @@ function ac() {
|
|
|
3289
3289
|
function g(I, p, S) {
|
|
3290
3290
|
return i(I, p, S);
|
|
3291
3291
|
}
|
|
3292
|
-
i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ?
|
|
3292
|
+
i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? H.exports = a : (l(a, D), D.Buffer = g), l(i, g), g.from = function(I, p, S) {
|
|
3293
3293
|
if (typeof I == "number") throw new TypeError("Argument must not be a number");
|
|
3294
3294
|
return i(I, p, S);
|
|
3295
3295
|
}, g.alloc = function(I, p, S) {
|
|
@@ -3303,7 +3303,7 @@ function ac() {
|
|
|
3303
3303
|
if (typeof I != "number") throw new TypeError("Argument must be a number");
|
|
3304
3304
|
return a.SlowBuffer(I);
|
|
3305
3305
|
};
|
|
3306
|
-
}, 6099: (
|
|
3306
|
+
}, 6099: (H, D, r) => {
|
|
3307
3307
|
(function(a) {
|
|
3308
3308
|
a.parser = function(T, o) {
|
|
3309
3309
|
return new g(T, o);
|
|
@@ -3488,7 +3488,7 @@ function ac() {
|
|
|
3488
3488
|
throw new Error(o, "Unknown state: " + o.state);
|
|
3489
3489
|
}
|
|
3490
3490
|
return o.position >= o.bufferCheckPosition && (function(it) {
|
|
3491
|
-
for (var wt = Math.max(a.MAX_BUFFER_LENGTH, 10),
|
|
3491
|
+
for (var wt = Math.max(a.MAX_BUFFER_LENGTH, 10), mt = 0, Tt = 0, Ft = l.length; Tt < Ft; Tt++) {
|
|
3492
3492
|
var s = it[l[Tt]].length;
|
|
3493
3493
|
if (s > wt) switch (l[Tt]) {
|
|
3494
3494
|
case "textNode":
|
|
@@ -3503,9 +3503,9 @@ function ac() {
|
|
|
3503
3503
|
default:
|
|
3504
3504
|
at(it, "Max buffer length exceeded: " + l[Tt]);
|
|
3505
3505
|
}
|
|
3506
|
-
|
|
3506
|
+
mt = Math.max(mt, s);
|
|
3507
3507
|
}
|
|
3508
|
-
var w = a.MAX_BUFFER_LENGTH -
|
|
3508
|
+
var w = a.MAX_BUFFER_LENGTH - mt;
|
|
3509
3509
|
it.bufferCheckPosition = w + it.position;
|
|
3510
3510
|
})(o), o;
|
|
3511
3511
|
}, resume: function() {
|
|
@@ -3577,7 +3577,7 @@ function ac() {
|
|
|
3577
3577
|
function b(T, o) {
|
|
3578
3578
|
return !d(T, o);
|
|
3579
3579
|
}
|
|
3580
|
-
var C, x,
|
|
3580
|
+
var C, x, P, n = 0;
|
|
3581
3581
|
for (var B in a.STATE = { BEGIN: n++, BEGIN_WHITESPACE: n++, TEXT: n++, TEXT_ENTITY: n++, OPEN_WAKA: n++, SGML_DECL: n++, SGML_DECL_QUOTED: n++, DOCTYPE: n++, DOCTYPE_QUOTED: n++, DOCTYPE_DTD: n++, DOCTYPE_DTD_QUOTED: n++, COMMENT_STARTING: n++, COMMENT: n++, COMMENT_ENDING: n++, COMMENT_ENDED: n++, CDATA: n++, CDATA_ENDING: n++, CDATA_ENDING_2: n++, PROC_INST: n++, PROC_INST_BODY: n++, PROC_INST_ENDING: n++, OPEN_TAG: n++, OPEN_TAG_SLASH: n++, ATTRIB: n++, ATTRIB_NAME: n++, ATTRIB_NAME_SAW_WHITE: n++, ATTRIB_VALUE: n++, ATTRIB_VALUE_QUOTED: n++, ATTRIB_VALUE_CLOSED: n++, ATTRIB_VALUE_UNQUOTED: n++, ATTRIB_VALUE_ENTITY_Q: n++, ATTRIB_VALUE_ENTITY_U: n++, CLOSE_TAG: n++, CLOSE_TAG_SAW_WHITE: n++, SCRIPT: n++, SCRIPT_ENDING: n++ }, a.XML_ENTITIES = { amp: "&", gt: ">", lt: "<", quot: '"', apos: "'" }, a.ENTITIES = { amp: "&", gt: ">", lt: "<", quot: '"', apos: "'", AElig: 198, Aacute: 193, Acirc: 194, Agrave: 192, Aring: 197, Atilde: 195, Auml: 196, Ccedil: 199, ETH: 208, Eacute: 201, Ecirc: 202, Egrave: 200, Euml: 203, Iacute: 205, Icirc: 206, Igrave: 204, Iuml: 207, Ntilde: 209, Oacute: 211, Ocirc: 212, Ograve: 210, Oslash: 216, Otilde: 213, Ouml: 214, THORN: 222, Uacute: 218, Ucirc: 219, Ugrave: 217, Uuml: 220, Yacute: 221, aacute: 225, acirc: 226, aelig: 230, agrave: 224, aring: 229, atilde: 227, auml: 228, ccedil: 231, eacute: 233, ecirc: 234, egrave: 232, eth: 240, euml: 235, iacute: 237, icirc: 238, igrave: 236, iuml: 239, ntilde: 241, oacute: 243, ocirc: 244, ograve: 242, oslash: 248, otilde: 245, ouml: 246, szlig: 223, thorn: 254, uacute: 250, ucirc: 251, ugrave: 249, uuml: 252, yacute: 253, yuml: 255, copy: 169, reg: 174, nbsp: 160, iexcl: 161, cent: 162, pound: 163, curren: 164, yen: 165, brvbar: 166, sect: 167, uml: 168, ordf: 170, laquo: 171, not: 172, shy: 173, macr: 175, deg: 176, plusmn: 177, sup1: 185, sup2: 178, sup3: 179, acute: 180, micro: 181, para: 182, middot: 183, cedil: 184, ordm: 186, raquo: 187, frac14: 188, frac12: 189, frac34: 190, iquest: 191, times: 215, divide: 247, OElig: 338, oelig: 339, Scaron: 352, scaron: 353, Yuml: 376, fnof: 402, circ: 710, tilde: 732, Alpha: 913, Beta: 914, Gamma: 915, Delta: 916, Epsilon: 917, Zeta: 918, Eta: 919, Theta: 920, Iota: 921, Kappa: 922, Lambda: 923, Mu: 924, Nu: 925, Xi: 926, Omicron: 927, Pi: 928, Rho: 929, Sigma: 931, Tau: 932, Upsilon: 933, Phi: 934, Chi: 935, Psi: 936, Omega: 937, alpha: 945, beta: 946, gamma: 947, delta: 948, epsilon: 949, zeta: 950, eta: 951, theta: 952, iota: 953, kappa: 954, lambda: 955, mu: 956, nu: 957, xi: 958, omicron: 959, pi: 960, rho: 961, sigmaf: 962, sigma: 963, tau: 964, upsilon: 965, phi: 966, chi: 967, psi: 968, omega: 969, thetasym: 977, upsih: 978, piv: 982, ensp: 8194, emsp: 8195, thinsp: 8201, zwnj: 8204, zwj: 8205, lrm: 8206, rlm: 8207, ndash: 8211, mdash: 8212, lsquo: 8216, rsquo: 8217, sbquo: 8218, ldquo: 8220, rdquo: 8221, bdquo: 8222, dagger: 8224, Dagger: 8225, bull: 8226, hellip: 8230, permil: 8240, prime: 8242, Prime: 8243, lsaquo: 8249, rsaquo: 8250, oline: 8254, frasl: 8260, euro: 8364, image: 8465, weierp: 8472, real: 8476, trade: 8482, alefsym: 8501, larr: 8592, uarr: 8593, rarr: 8594, darr: 8595, harr: 8596, crarr: 8629, lArr: 8656, uArr: 8657, rArr: 8658, dArr: 8659, hArr: 8660, forall: 8704, part: 8706, exist: 8707, empty: 8709, nabla: 8711, isin: 8712, notin: 8713, ni: 8715, prod: 8719, sum: 8721, minus: 8722, lowast: 8727, radic: 8730, prop: 8733, infin: 8734, ang: 8736, and: 8743, or: 8744, cap: 8745, cup: 8746, int: 8747, there4: 8756, sim: 8764, cong: 8773, asymp: 8776, ne: 8800, equiv: 8801, le: 8804, ge: 8805, sub: 8834, sup: 8835, nsub: 8836, sube: 8838, supe: 8839, oplus: 8853, otimes: 8855, perp: 8869, sdot: 8901, lceil: 8968, rceil: 8969, lfloor: 8970, rfloor: 8971, lang: 9001, rang: 9002, loz: 9674, spades: 9824, clubs: 9827, hearts: 9829, diams: 9830 }, Object.keys(a.ENTITIES).forEach((function(T) {
|
|
3582
3582
|
var o = a.ENTITIES[T], v = typeof o == "number" ? String.fromCharCode(o) : o;
|
|
3583
3583
|
a.ENTITIES[T] = v;
|
|
@@ -3643,7 +3643,7 @@ Actual: ` + T.attribValue);
|
|
|
3643
3643
|
G(T, "onopennamespace", { prefix: R, uri: v.ns[R] });
|
|
3644
3644
|
}));
|
|
3645
3645
|
for (var st = 0, ht = T.attribList.length; st < ht; st++) {
|
|
3646
|
-
var nt = T.attribList[st], it = nt[0], wt = nt[1],
|
|
3646
|
+
var nt = T.attribList[st], it = nt[0], wt = nt[1], mt = k(it, !0), Tt = mt.prefix, Ft = mt.local, s = Tt === "" ? "" : v.ns[Tt] || "", w = { name: it, value: wt, prefix: Tt, local: Ft, uri: s };
|
|
3647
3647
|
Tt && Tt !== "xmlns" && !s && (A(T, "Unbound namespace prefix: " + JSON.stringify(Tt)), w.uri = Tt), T.tag.attributes[it] = w, G(T, "onattribute", w);
|
|
3648
3648
|
}
|
|
3649
3649
|
T.attribList.length = 0;
|
|
@@ -3668,8 +3668,8 @@ Actual: ` + T.attribValue);
|
|
|
3668
3668
|
for (var nt in st.ns) ht[nt] = st.ns[nt];
|
|
3669
3669
|
var it = T.tags[T.tags.length - 1] || T;
|
|
3670
3670
|
T.opt.xmlns && st.ns !== it.ns && Object.keys(st.ns).forEach((function(wt) {
|
|
3671
|
-
var
|
|
3672
|
-
G(T, "onclosenamespace", { prefix: wt, uri:
|
|
3671
|
+
var mt = st.ns[wt];
|
|
3672
|
+
G(T, "onclosenamespace", { prefix: wt, uri: mt });
|
|
3673
3673
|
}));
|
|
3674
3674
|
}
|
|
3675
3675
|
o === 0 && (T.closedRoot = !0), T.tagName = T.attribValue = T.attribName = "", T.attribList.length = 0, T.state = n.TEXT;
|
|
@@ -3685,7 +3685,7 @@ Actual: ` + T.attribValue);
|
|
|
3685
3685
|
var v = "";
|
|
3686
3686
|
return o < T.length && (v = T.charAt(o)), v;
|
|
3687
3687
|
}
|
|
3688
|
-
n = a.STATE, String.fromCodePoint || (C = String.fromCharCode, x = Math.floor,
|
|
3688
|
+
n = a.STATE, String.fromCodePoint || (C = String.fromCharCode, x = Math.floor, P = function() {
|
|
3689
3689
|
var T, o, v = 16384, L = [], Y = -1, st = arguments.length;
|
|
3690
3690
|
if (!st) return "";
|
|
3691
3691
|
for (var ht = ""; ++Y < st; ) {
|
|
@@ -3694,9 +3694,9 @@ Actual: ` + T.attribValue);
|
|
|
3694
3694
|
nt <= 65535 ? L.push(nt) : (T = 55296 + ((nt -= 65536) >> 10), o = nt % 1024 + 56320, L.push(T, o)), (Y + 1 === st || L.length > v) && (ht += C.apply(null, L), L.length = 0);
|
|
3695
3695
|
}
|
|
3696
3696
|
return ht;
|
|
3697
|
-
}, Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", { value:
|
|
3698
|
-
})(
|
|
3699
|
-
}, 4889: function(
|
|
3697
|
+
}, Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", { value: P, configurable: !0, writable: !0 }) : String.fromCodePoint = P);
|
|
3698
|
+
})(D);
|
|
3699
|
+
}, 4889: function(H, D, r) {
|
|
3700
3700
|
var a = r(4155);
|
|
3701
3701
|
(function(i, l) {
|
|
3702
3702
|
if (!i.setImmediate) {
|
|
@@ -3770,8 +3770,8 @@ Actual: ` + T.attribValue);
|
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
})(typeof self > "u" ? r.g === void 0 ? this : r.g : self);
|
|
3773
|
-
}, 2830: (
|
|
3774
|
-
|
|
3773
|
+
}, 2830: (H, D, r) => {
|
|
3774
|
+
H.exports = i;
|
|
3775
3775
|
var a = r(7187).EventEmitter;
|
|
3776
3776
|
function i() {
|
|
3777
3777
|
a.call(this);
|
|
@@ -3800,8 +3800,8 @@ Actual: ` + T.attribValue);
|
|
|
3800
3800
|
}
|
|
3801
3801
|
return I.on("error", h), l.on("error", h), I.on("end", u), I.on("close", u), l.on("close", u), l.emit("pipe", I), l;
|
|
3802
3802
|
};
|
|
3803
|
-
}, 8106: (
|
|
3804
|
-
var
|
|
3803
|
+
}, 8106: (H) => {
|
|
3804
|
+
var D = {};
|
|
3805
3805
|
function r(i, l, g) {
|
|
3806
3806
|
g || (g = Error);
|
|
3807
3807
|
var I = (function(p) {
|
|
@@ -3813,7 +3813,7 @@ Actual: ` + T.attribValue);
|
|
|
3813
3813
|
}
|
|
3814
3814
|
return N = p, (S = _).prototype = Object.create(N.prototype), S.prototype.constructor = S, S.__proto__ = N, _;
|
|
3815
3815
|
})(g);
|
|
3816
|
-
I.prototype.name = g.name, I.prototype.code = i,
|
|
3816
|
+
I.prototype.name = g.name, I.prototype.code = i, D[i] = I;
|
|
3817
3817
|
}
|
|
3818
3818
|
function a(i, l) {
|
|
3819
3819
|
if (Array.isArray(i)) {
|
|
@@ -3842,14 +3842,14 @@ Actual: ` + T.attribValue);
|
|
|
3842
3842
|
return "Cannot call " + i + " after a stream was destroyed";
|
|
3843
3843
|
})), r("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), r("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), r("ERR_STREAM_WRITE_AFTER_END", "write after end"), r("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), r("ERR_UNKNOWN_ENCODING", (function(i) {
|
|
3844
3844
|
return "Unknown encoding: " + i;
|
|
3845
|
-
}), TypeError), r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"),
|
|
3846
|
-
}, 8656: (
|
|
3845
|
+
}), TypeError), r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), H.exports.q = D;
|
|
3846
|
+
}, 8656: (H, D, r) => {
|
|
3847
3847
|
var a = r(4155), i = Object.keys || function(h) {
|
|
3848
3848
|
var u = [];
|
|
3849
3849
|
for (var m in h) u.push(m);
|
|
3850
3850
|
return u;
|
|
3851
3851
|
};
|
|
3852
|
-
|
|
3852
|
+
H.exports = N;
|
|
3853
3853
|
var l = r(6577), g = r(323);
|
|
3854
3854
|
r(5717)(N, l);
|
|
3855
3855
|
for (var I = i(g.prototype), p = 0; p < I.length; p++) {
|
|
@@ -3877,8 +3877,8 @@ Actual: ` + T.attribValue);
|
|
|
3877
3877
|
}, set: function(h) {
|
|
3878
3878
|
this._readableState !== void 0 && this._writableState !== void 0 && (this._readableState.destroyed = h, this._writableState.destroyed = h);
|
|
3879
3879
|
} });
|
|
3880
|
-
}, 2366: (
|
|
3881
|
-
|
|
3880
|
+
}, 2366: (H, D, r) => {
|
|
3881
|
+
H.exports = i;
|
|
3882
3882
|
var a = r(4473);
|
|
3883
3883
|
function i(l) {
|
|
3884
3884
|
if (!(this instanceof i)) return new i(l);
|
|
@@ -3887,9 +3887,9 @@ Actual: ` + T.attribValue);
|
|
|
3887
3887
|
r(5717)(i, a), i.prototype._transform = function(l, g, I) {
|
|
3888
3888
|
I(null, l);
|
|
3889
3889
|
};
|
|
3890
|
-
}, 6577: (
|
|
3890
|
+
}, 6577: (H, D, r) => {
|
|
3891
3891
|
var a, i = r(4155);
|
|
3892
|
-
|
|
3892
|
+
H.exports = B, B.ReadableState = n, r(7187).EventEmitter;
|
|
3893
3893
|
var l, g = function(o, v) {
|
|
3894
3894
|
return o.listeners(v).length;
|
|
3895
3895
|
}, I = r(3194), p = r(8764).Buffer, S = r.g.Uint8Array || function() {
|
|
@@ -3898,7 +3898,7 @@ Actual: ` + T.attribValue);
|
|
|
3898
3898
|
};
|
|
3899
3899
|
var _, y, h, u = r(9686), m = r(1029), E = r(94).getHighWaterMark, O = r(8106).q, M = O.ERR_INVALID_ARG_TYPE, d = O.ERR_STREAM_PUSH_AFTER_EOF, b = O.ERR_METHOD_NOT_IMPLEMENTED, C = O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
3900
3900
|
r(5717)(B, I);
|
|
3901
|
-
var x = m.errorOrDestroy,
|
|
3901
|
+
var x = m.errorOrDestroy, P = ["error", "close", "destroy", "pause", "resume"];
|
|
3902
3902
|
function n(o, v, L) {
|
|
3903
3903
|
a = a || r(8656), o = o || {}, typeof L != "boolean" && (L = v instanceof a), this.objectMode = !!o.objectMode, L && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark = E(this, o, "readableHighWaterMark", L), this.buffer = new u(), 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 = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.destroyed = !1, this.defaultEncoding = o.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, o.encoding && (_ || (_ = r(2553).s), this.decoder = new _(o.encoding), this.encoding = o.encoding);
|
|
3904
3904
|
}
|
|
@@ -3913,15 +3913,15 @@ Actual: ` + T.attribValue);
|
|
|
3913
3913
|
if (v === null) nt.reading = !1, (function(it, wt) {
|
|
3914
3914
|
if (l("onEofChunk"), !wt.ended) {
|
|
3915
3915
|
if (wt.decoder) {
|
|
3916
|
-
var
|
|
3917
|
-
|
|
3916
|
+
var mt = wt.decoder.end();
|
|
3917
|
+
mt && mt.length && (wt.buffer.push(mt), wt.length += wt.objectMode ? 1 : mt.length);
|
|
3918
3918
|
}
|
|
3919
3919
|
wt.ended = !0, wt.sync ? at(it) : (wt.needReadable = !1, wt.emittedReadable || (wt.emittedReadable = !0, c(it)));
|
|
3920
3920
|
}
|
|
3921
3921
|
})(o, nt);
|
|
3922
3922
|
else if (st || (ht = (function(it, wt) {
|
|
3923
|
-
var
|
|
3924
|
-
return Tt = wt, p.isBuffer(Tt) || Tt instanceof S || typeof wt == "string" || wt === void 0 || it.objectMode || (
|
|
3923
|
+
var mt, Tt;
|
|
3924
|
+
return Tt = wt, p.isBuffer(Tt) || Tt instanceof S || typeof wt == "string" || wt === void 0 || it.objectMode || (mt = new M("chunk", ["string", "Buffer", "Uint8Array"], wt)), mt;
|
|
3925
3925
|
})(nt, v)), ht) x(o, ht);
|
|
3926
3926
|
else if (nt.objectMode || v && v.length > 0) if (typeof v == "string" || nt.objectMode || Object.getPrototypeOf(v) === p.prototype || (v = (function(it) {
|
|
3927
3927
|
return p.from(it);
|
|
@@ -4040,7 +4040,7 @@ Actual: ` + T.attribValue);
|
|
|
4040
4040
|
l("onend"), o.end();
|
|
4041
4041
|
}
|
|
4042
4042
|
Y.endEmitted ? i.nextTick(st) : L.once("end", st), o.on("unpipe", (function w(R, j) {
|
|
4043
|
-
l("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, l("cleanup"), o.removeListener("close", Tt), o.removeListener("finish", Ft), o.removeListener("drain", nt), o.removeListener("error",
|
|
4043
|
+
l("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, l("cleanup"), o.removeListener("close", Tt), o.removeListener("finish", Ft), o.removeListener("drain", nt), o.removeListener("error", mt), o.removeListener("unpipe", w), L.removeListener("end", ht), L.removeListener("end", s), L.removeListener("data", wt), it = !0, !Y.awaitDrain || o._writableState && !o._writableState.needDrain || nt());
|
|
4044
4044
|
}));
|
|
4045
4045
|
var nt = /* @__PURE__ */ (function(w) {
|
|
4046
4046
|
return function() {
|
|
@@ -4055,8 +4055,8 @@ Actual: ` + T.attribValue);
|
|
|
4055
4055
|
var R = o.write(w);
|
|
4056
4056
|
l("dest.write", R), R === !1 && ((Y.pipesCount === 1 && Y.pipes === o || Y.pipesCount > 1 && T(Y.pipes, o) !== -1) && !it && (l("false write response, pause", Y.awaitDrain), Y.awaitDrain++), L.pause());
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4059
|
-
l("onerror", w), s(), o.removeListener("error",
|
|
4058
|
+
function mt(w) {
|
|
4059
|
+
l("onerror", w), s(), o.removeListener("error", mt), g(o, "error") === 0 && x(o, w);
|
|
4060
4060
|
}
|
|
4061
4061
|
function Tt() {
|
|
4062
4062
|
o.removeListener("finish", Ft), s();
|
|
@@ -4070,7 +4070,7 @@ Actual: ` + T.attribValue);
|
|
|
4070
4070
|
return L.on("data", wt), (function(w, R, j) {
|
|
4071
4071
|
if (typeof w.prependListener == "function") return w.prependListener(R, j);
|
|
4072
4072
|
w._events && w._events.error ? Array.isArray(w._events.error) ? w._events.error.unshift(j) : w._events.error = [j, w._events.error] : w.on(R, j);
|
|
4073
|
-
})(o, "error",
|
|
4073
|
+
})(o, "error", mt), o.once("close", Tt), o.once("finish", Ft), o.emit("pipe", L), Y.flowing || (l("pipe resume"), L.resume()), o;
|
|
4074
4074
|
}, B.prototype.unpipe = function(o) {
|
|
4075
4075
|
var v = this._readableState, L = { hasUnpiped: !1 };
|
|
4076
4076
|
if (v.pipesCount === 0) return this;
|
|
@@ -4114,7 +4114,7 @@ Actual: ` + T.attribValue);
|
|
|
4114
4114
|
return o[nt].apply(o, arguments);
|
|
4115
4115
|
};
|
|
4116
4116
|
})(st));
|
|
4117
|
-
for (var ht = 0; ht <
|
|
4117
|
+
for (var ht = 0; ht < P.length; ht++) o.on(P[ht], this.emit.bind(this, P[ht]));
|
|
4118
4118
|
return this._read = function(nt) {
|
|
4119
4119
|
l("wrapped _read", nt), Y && (Y = !1, o.resume());
|
|
4120
4120
|
}, this;
|
|
@@ -4133,8 +4133,8 @@ Actual: ` + T.attribValue);
|
|
|
4133
4133
|
} }), typeof Symbol == "function" && (B.from = function(o, v) {
|
|
4134
4134
|
return h === void 0 && (h = r(1265)), h(B, o, v);
|
|
4135
4135
|
});
|
|
4136
|
-
}, 4473: (
|
|
4137
|
-
|
|
4136
|
+
}, 4473: (H, D, r) => {
|
|
4137
|
+
H.exports = N;
|
|
4138
4138
|
var a = r(8106).q, i = a.ERR_METHOD_NOT_IMPLEMENTED, l = a.ERR_MULTIPLE_CALLBACK, g = a.ERR_TRANSFORM_ALREADY_TRANSFORMING, I = a.ERR_TRANSFORM_WITH_LENGTH_0, p = r(8656);
|
|
4139
4139
|
function S(h, u) {
|
|
4140
4140
|
var m = this._transformState;
|
|
@@ -4179,7 +4179,7 @@ Actual: ` + T.attribValue);
|
|
|
4179
4179
|
u(m);
|
|
4180
4180
|
}));
|
|
4181
4181
|
};
|
|
4182
|
-
}, 323: (
|
|
4182
|
+
}, 323: (H, D, r) => {
|
|
4183
4183
|
var a, i = r(4155);
|
|
4184
4184
|
function l(A) {
|
|
4185
4185
|
var U = this;
|
|
@@ -4194,10 +4194,10 @@ Actual: ` + T.attribValue);
|
|
|
4194
4194
|
})(U, A);
|
|
4195
4195
|
};
|
|
4196
4196
|
}
|
|
4197
|
-
|
|
4197
|
+
H.exports = B, B.WritableState = n;
|
|
4198
4198
|
var g, I = { deprecate: r(4927) }, p = r(3194), S = r(8764).Buffer, N = r.g.Uint8Array || function() {
|
|
4199
4199
|
}, _ = r(1029), y = r(94).getHighWaterMark, h = r(8106).q, u = h.ERR_INVALID_ARG_TYPE, m = h.ERR_METHOD_NOT_IMPLEMENTED, E = h.ERR_MULTIPLE_CALLBACK, O = h.ERR_STREAM_CANNOT_PIPE, M = h.ERR_STREAM_DESTROYED, d = h.ERR_STREAM_NULL_VALUES, b = h.ERR_STREAM_WRITE_AFTER_END, C = h.ERR_UNKNOWN_ENCODING, x = _.errorOrDestroy;
|
|
4200
|
-
function
|
|
4200
|
+
function P() {
|
|
4201
4201
|
}
|
|
4202
4202
|
function n(A, U, k) {
|
|
4203
4203
|
a = a || r(8656), A = A || {}, typeof k != "boolean" && (k = U instanceof a), this.objectMode = !!A.objectMode, k && (this.objectMode = this.objectMode || !!A.writableObjectMode), this.highWaterMark = y(this, A, "writableHighWaterMark", k), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
@@ -4286,7 +4286,7 @@ Actual: ` + T.attribValue);
|
|
|
4286
4286
|
var q, F = this._writableState, W = !1, V = !F.objectMode && (q = A, S.isBuffer(q) || q instanceof N);
|
|
4287
4287
|
return V && !S.isBuffer(A) && (A = (function($) {
|
|
4288
4288
|
return S.from($);
|
|
4289
|
-
})(A)), typeof U == "function" && (k = U, U = null), V ? U = "buffer" : U || (U = F.defaultEncoding), typeof k != "function" && (k =
|
|
4289
|
+
})(A)), typeof U == "function" && (k = U, U = null), V ? U = "buffer" : U || (U = F.defaultEncoding), typeof k != "function" && (k = P), F.ending ? (function($, K) {
|
|
4290
4290
|
var T = new b();
|
|
4291
4291
|
x($, T), i.nextTick(K, T);
|
|
4292
4292
|
})(this, k) : (V || (function($, K, T, o) {
|
|
@@ -4294,8 +4294,8 @@ Actual: ` + T.attribValue);
|
|
|
4294
4294
|
return T === null ? v = new d() : typeof T == "string" || K.objectMode || (v = new u("chunk", ["string", "Buffer"], T)), !v || (x($, v), i.nextTick(o, v), !1);
|
|
4295
4295
|
})(this, F, A, k)) && (F.pendingcb++, W = (function($, K, T, o, v, L) {
|
|
4296
4296
|
if (!T) {
|
|
4297
|
-
var Y = (function(it, wt,
|
|
4298
|
-
return it.objectMode || it.decodeStrings === !1 || typeof wt != "string" || (wt = S.from(wt,
|
|
4297
|
+
var Y = (function(it, wt, mt) {
|
|
4298
|
+
return it.objectMode || it.decodeStrings === !1 || typeof wt != "string" || (wt = S.from(wt, mt)), wt;
|
|
4299
4299
|
})(K, o, v);
|
|
4300
4300
|
o !== Y && (T = !0, v = "buffer", o = Y);
|
|
4301
4301
|
}
|
|
@@ -4336,7 +4336,7 @@ Actual: ` + T.attribValue);
|
|
|
4336
4336
|
} }), B.prototype.destroy = _.destroy, B.prototype._undestroy = _.undestroy, B.prototype._destroy = function(A, U) {
|
|
4337
4337
|
U(A);
|
|
4338
4338
|
};
|
|
4339
|
-
}, 828: (
|
|
4339
|
+
}, 828: (H, D, r) => {
|
|
4340
4340
|
var a, i = r(4155);
|
|
4341
4341
|
function l(d, b, C) {
|
|
4342
4342
|
return b in d ? Object.defineProperty(d, b, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : d[b] = C, d;
|
|
@@ -4376,8 +4376,8 @@ Actual: ` + T.attribValue);
|
|
|
4376
4376
|
};
|
|
4377
4377
|
})(x, this));
|
|
4378
4378
|
else {
|
|
4379
|
-
var
|
|
4380
|
-
if (
|
|
4379
|
+
var P = this[h].read();
|
|
4380
|
+
if (P !== null) return Promise.resolve(u(P, !1));
|
|
4381
4381
|
C = new Promise(this[y]);
|
|
4382
4382
|
}
|
|
4383
4383
|
return this[_] = C, C;
|
|
@@ -4391,21 +4391,21 @@ Actual: ` + T.attribValue);
|
|
|
4391
4391
|
}));
|
|
4392
4392
|
}));
|
|
4393
4393
|
})), a), O);
|
|
4394
|
-
|
|
4395
|
-
var b, C = Object.create(M, (l(b = {}, h, { value: d, writable: !0 }), l(b, I, { value: null, writable: !0 }), l(b, p, { value: null, writable: !0 }), l(b, S, { value: null, writable: !0 }), l(b, N, { value: d._readableState.endEmitted, writable: !0 }), l(b, y, { value: function(x,
|
|
4394
|
+
H.exports = function(d) {
|
|
4395
|
+
var b, C = Object.create(M, (l(b = {}, h, { value: d, writable: !0 }), l(b, I, { value: null, writable: !0 }), l(b, p, { value: null, writable: !0 }), l(b, S, { value: null, writable: !0 }), l(b, N, { value: d._readableState.endEmitted, writable: !0 }), l(b, y, { value: function(x, P) {
|
|
4396
4396
|
var n = C[h].read();
|
|
4397
|
-
n ? (C[_] = null, C[I] = null, C[p] = null, x(u(n, !1))) : (C[I] = x, C[p] =
|
|
4397
|
+
n ? (C[_] = null, C[I] = null, C[p] = null, x(u(n, !1))) : (C[I] = x, C[p] = P);
|
|
4398
4398
|
}, writable: !0 }), b));
|
|
4399
4399
|
return C[_] = null, g(d, (function(x) {
|
|
4400
4400
|
if (x && x.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
4401
|
-
var
|
|
4402
|
-
return
|
|
4401
|
+
var P = C[p];
|
|
4402
|
+
return P !== null && (C[_] = null, C[I] = null, C[p] = null, P(x)), void (C[S] = x);
|
|
4403
4403
|
}
|
|
4404
4404
|
var n = C[I];
|
|
4405
4405
|
n !== null && (C[_] = null, C[I] = null, C[p] = null, n(u(void 0, !0))), C[N] = !0;
|
|
4406
4406
|
})), d.on("readable", E.bind(null, C)), C;
|
|
4407
4407
|
};
|
|
4408
|
-
}, 9686: (
|
|
4408
|
+
}, 9686: (H, D, r) => {
|
|
4409
4409
|
function a(S, N) {
|
|
4410
4410
|
var _ = Object.keys(S);
|
|
4411
4411
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4426,7 +4426,7 @@ Actual: ` + T.attribValue);
|
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
4428
|
var g = r(8764).Buffer, I = r(5575).inspect, p = I && I.custom || "inspect";
|
|
4429
|
-
|
|
4429
|
+
H.exports = (function() {
|
|
4430
4430
|
function S() {
|
|
4431
4431
|
(function(y, h) {
|
|
4432
4432
|
if (!(y instanceof h)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -4495,7 +4495,7 @@ Actual: ` + T.attribValue);
|
|
|
4495
4495
|
})({}, h, { depth: 0, customInspect: !1 }));
|
|
4496
4496
|
} }], _ && l(N.prototype, _), S;
|
|
4497
4497
|
})();
|
|
4498
|
-
}, 1029: (
|
|
4498
|
+
}, 1029: (H, D, r) => {
|
|
4499
4499
|
var a = r(4155);
|
|
4500
4500
|
function i(I, p) {
|
|
4501
4501
|
g(I, p), l(I);
|
|
@@ -4506,7 +4506,7 @@ Actual: ` + T.attribValue);
|
|
|
4506
4506
|
function g(I, p) {
|
|
4507
4507
|
I.emit("error", p);
|
|
4508
4508
|
}
|
|
4509
|
-
|
|
4509
|
+
H.exports = { destroy: function(I, p) {
|
|
4510
4510
|
var S = this, N = this._readableState && this._readableState.destroyed, _ = this._writableState && this._writableState.destroyed;
|
|
4511
4511
|
return N || _ ? (p ? p(I) : I && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, a.nextTick(g, this, I)) : a.nextTick(g, this, I)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(I || null, (function(y) {
|
|
4512
4512
|
!p && y ? S._writableState ? S._writableState.errorEmitted ? a.nextTick(l, S) : (S._writableState.errorEmitted = !0, a.nextTick(i, S, y)) : a.nextTick(i, S, y) : p ? (a.nextTick(l, S), p(y)) : a.nextTick(l, S);
|
|
@@ -4517,18 +4517,18 @@ Actual: ` + T.attribValue);
|
|
|
4517
4517
|
var S = I._readableState, N = I._writableState;
|
|
4518
4518
|
S && S.autoDestroy || N && N.autoDestroy ? I.destroy(p) : I.emit("error", p);
|
|
4519
4519
|
} };
|
|
4520
|
-
}, 1086: (
|
|
4520
|
+
}, 1086: (H, D, r) => {
|
|
4521
4521
|
var a = r(8106).q.ERR_STREAM_PREMATURE_CLOSE;
|
|
4522
4522
|
function i() {
|
|
4523
4523
|
}
|
|
4524
|
-
|
|
4524
|
+
H.exports = function l(g, I, p) {
|
|
4525
4525
|
if (typeof I == "function") return l(g, null, I);
|
|
4526
4526
|
I || (I = {}), p = /* @__PURE__ */ (function(d) {
|
|
4527
4527
|
var b = !1;
|
|
4528
4528
|
return function() {
|
|
4529
4529
|
if (!b) {
|
|
4530
4530
|
b = !0;
|
|
4531
|
-
for (var C = arguments.length, x = new Array(C),
|
|
4531
|
+
for (var C = arguments.length, x = new Array(C), P = 0; P < C; P++) x[P] = arguments[P];
|
|
4532
4532
|
d.apply(this, x);
|
|
4533
4533
|
}
|
|
4534
4534
|
};
|
|
@@ -4553,11 +4553,11 @@ Actual: ` + T.attribValue);
|
|
|
4553
4553
|
g.removeListener("complete", h), g.removeListener("abort", O), g.removeListener("request", M), g.req && g.req.removeListener("finish", h), g.removeListener("end", _), g.removeListener("close", _), g.removeListener("finish", h), g.removeListener("end", m), g.removeListener("error", E), g.removeListener("close", O);
|
|
4554
4554
|
};
|
|
4555
4555
|
};
|
|
4556
|
-
}, 1265: (
|
|
4557
|
-
|
|
4556
|
+
}, 1265: (H) => {
|
|
4557
|
+
H.exports = function() {
|
|
4558
4558
|
throw new Error("Readable.from is not available in the browser");
|
|
4559
4559
|
};
|
|
4560
|
-
}, 6472: (
|
|
4560
|
+
}, 6472: (H, D, r) => {
|
|
4561
4561
|
var a, i = r(8106).q, l = i.ERR_MISSING_ARGS, g = i.ERR_STREAM_DESTROYED;
|
|
4562
4562
|
function I(y) {
|
|
4563
4563
|
if (y) throw y;
|
|
@@ -4592,7 +4592,7 @@ Actual: ` + T.attribValue);
|
|
|
4592
4592
|
function _(y) {
|
|
4593
4593
|
return y.length ? typeof y[y.length - 1] != "function" ? I : y.pop() : I;
|
|
4594
4594
|
}
|
|
4595
|
-
|
|
4595
|
+
H.exports = function() {
|
|
4596
4596
|
for (var y = arguments.length, h = new Array(y), u = 0; u < y; u++) h[u] = arguments[u];
|
|
4597
4597
|
var m, E = _(h);
|
|
4598
4598
|
if (Array.isArray(h[0]) && (h = h[0]), h.length < 2) throw new l("streams");
|
|
@@ -4604,9 +4604,9 @@ Actual: ` + T.attribValue);
|
|
|
4604
4604
|
}));
|
|
4605
4605
|
return h.reduce(N);
|
|
4606
4606
|
};
|
|
4607
|
-
}, 94: (
|
|
4607
|
+
}, 94: (H, D, r) => {
|
|
4608
4608
|
var a = r(8106).q.ERR_INVALID_OPT_VALUE;
|
|
4609
|
-
|
|
4609
|
+
H.exports = { getHighWaterMark: function(i, l, g, I) {
|
|
4610
4610
|
var p = (function(S, N, _) {
|
|
4611
4611
|
return S.highWaterMark != null ? S.highWaterMark : N ? S[_] : null;
|
|
4612
4612
|
})(l, I, g);
|
|
@@ -4616,9 +4616,9 @@ Actual: ` + T.attribValue);
|
|
|
4616
4616
|
}
|
|
4617
4617
|
return i.objectMode ? 16 : 16384;
|
|
4618
4618
|
} };
|
|
4619
|
-
}, 3194: (
|
|
4620
|
-
|
|
4621
|
-
}, 2553: (
|
|
4619
|
+
}, 3194: (H, D, r) => {
|
|
4620
|
+
H.exports = r(7187).EventEmitter;
|
|
4621
|
+
}, 2553: (H, D, r) => {
|
|
4622
4622
|
var a = r(9509).Buffer, i = a.isEncoding || function(u) {
|
|
4623
4623
|
switch ((u = "" + u) && u.toLowerCase()) {
|
|
4624
4624
|
case "hex":
|
|
@@ -4726,7 +4726,7 @@ Actual: ` + T.attribValue);
|
|
|
4726
4726
|
function h(u) {
|
|
4727
4727
|
return u && u.length ? this.write(u) : "";
|
|
4728
4728
|
}
|
|
4729
|
-
|
|
4729
|
+
D.s = l, l.prototype.write = function(u) {
|
|
4730
4730
|
if (u.length === 0) return "";
|
|
4731
4731
|
var m, E;
|
|
4732
4732
|
if (this.lastNeed) {
|
|
@@ -4752,51 +4752,51 @@ Actual: ` + T.attribValue);
|
|
|
4752
4752
|
if (this.lastNeed <= u.length) return u.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
4753
4753
|
u.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, u.length), this.lastNeed -= u.length;
|
|
4754
4754
|
};
|
|
4755
|
-
}, 5457: (
|
|
4756
|
-
r.d(
|
|
4755
|
+
}, 5457: (H, D, r) => {
|
|
4756
|
+
r.d(D, { vw: () => l, rq: () => i, EL: () => I, NY: () => g });
|
|
4757
4757
|
let a = 0;
|
|
4758
4758
|
const i = (p) => Math.floor(p / 25.4 * 72 * 20), l = (p) => Math.floor(72 * p * 20), g = () => ++a, I = () => ((p = 21) => {
|
|
4759
4759
|
let S = "", N = p;
|
|
4760
4760
|
for (; N--; ) S += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
|
|
4761
4761
|
return S;
|
|
4762
4762
|
})().toLowerCase();
|
|
4763
|
-
}, 5575: (
|
|
4764
|
-
r.r(
|
|
4763
|
+
}, 5575: (H, D, r) => {
|
|
4764
|
+
r.r(D), r.d(D, { convertInchesToTwip: () => a.vw, convertMillimetersToTwip: () => a.rq, dateTimeValue: () => i.sF, decimalNumber: () => i.vH, eighthPointMeasureValue: () => i.LV, hexColorValue: () => i.dg, hpsMeasureValue: () => i.KR, longHexNumber: () => i.mA, measurementOrPercentValue: () => i.aB, percentageValue: () => i.wp, pointMeasureValue: () => i.gg, positiveUniversalMeasureValue: () => i._p, shortHexNumber: () => i.G0, signedHpsMeasureValue: () => i.Rg, signedTwipsMeasureValue: () => i.xb, twipsMeasureValue: () => i.Jd, uCharHexNumber: () => i.xD, uniqueId: () => a.EL, uniqueNumericId: () => a.NY, universalMeasureValue: () => i.KC, unsignedDecimalNumber: () => i.f$ });
|
|
4765
4765
|
var a = r(5457), i = r(6595);
|
|
4766
|
-
}, 6595: (
|
|
4767
|
-
r.d(
|
|
4766
|
+
}, 6595: (H, D, r) => {
|
|
4767
|
+
r.d(D, { G0: () => I, Jd: () => E, KC: () => S, KR: () => u, LV: () => d, Rg: () => m, _p: () => _, aB: () => M, dg: () => y, f$: () => i, gg: () => b, mA: () => g, sF: () => C, vH: () => a, wp: () => O, xD: () => p, xb: () => h });
|
|
4768
4768
|
const a = (x) => {
|
|
4769
4769
|
if (isNaN(x)) throw new Error(`Invalid value '${x}' specified. Must be an integer.`);
|
|
4770
4770
|
return Math.floor(x);
|
|
4771
4771
|
}, i = (x) => {
|
|
4772
|
-
const
|
|
4773
|
-
if (
|
|
4774
|
-
return
|
|
4775
|
-
}, l = (x,
|
|
4776
|
-
const n = 2 *
|
|
4772
|
+
const P = a(x);
|
|
4773
|
+
if (P < 0) throw new Error(`Invalid value '${x}' specified. Must be a positive integer.`);
|
|
4774
|
+
return P;
|
|
4775
|
+
}, l = (x, P) => {
|
|
4776
|
+
const n = 2 * P;
|
|
4777
4777
|
if (x.length !== n || isNaN(+`0x${x}`)) throw new Error(`Invalid hex value '${x}'. Expected ${n} digit hex value`);
|
|
4778
4778
|
return x;
|
|
4779
4779
|
}, g = (x) => l(x, 4), I = (x) => l(x, 2), p = (x) => l(x, 1), S = (x) => {
|
|
4780
|
-
const
|
|
4781
|
-
if (!N.includes(
|
|
4780
|
+
const P = x.slice(-2);
|
|
4781
|
+
if (!N.includes(P)) throw new Error(`Invalid unit '${P}' specified. Valid units are ${N.join(", ")}`);
|
|
4782
4782
|
const n = x.substring(0, x.length - 2);
|
|
4783
4783
|
if (isNaN(Number(n))) throw new Error(`Invalid value '${n}' specified. Expected a valid number.`);
|
|
4784
|
-
return `${Number(n)}${
|
|
4784
|
+
return `${Number(n)}${P}`;
|
|
4785
4785
|
}, N = ["mm", "cm", "in", "pt", "pc", "pi"], _ = (x) => {
|
|
4786
|
-
const
|
|
4787
|
-
if (parseFloat(
|
|
4788
|
-
return
|
|
4786
|
+
const P = S(x);
|
|
4787
|
+
if (parseFloat(P) < 0) throw new Error(`Invalid value '${P}' specified. Expected a positive number.`);
|
|
4788
|
+
return P;
|
|
4789
4789
|
}, y = (x) => {
|
|
4790
4790
|
if (x === "auto") return x;
|
|
4791
|
-
const
|
|
4792
|
-
return l(
|
|
4791
|
+
const P = x.charAt(0) === "#" ? x.substring(1) : x;
|
|
4792
|
+
return l(P, 3);
|
|
4793
4793
|
}, h = (x) => typeof x == "string" ? S(x) : a(x), u = (x) => typeof x == "string" ? _(x) : i(x), m = (x) => typeof x == "string" ? S(x) : a(x), E = (x) => typeof x == "string" ? _(x) : i(x), O = (x) => {
|
|
4794
4794
|
if (x.slice(-1) !== "%") throw new Error(`Invalid value '${x}'. Expected percentage value (eg '55%')`);
|
|
4795
|
-
const
|
|
4796
|
-
if (isNaN(Number(
|
|
4797
|
-
return `${Number(
|
|
4795
|
+
const P = x.substring(0, x.length - 1);
|
|
4796
|
+
if (isNaN(Number(P))) throw new Error(`Invalid value '${P}' specified. Expected a valid number.`);
|
|
4797
|
+
return `${Number(P)}%`;
|
|
4798
4798
|
}, M = (x) => typeof x == "number" ? a(x) : x.slice(-1) === "%" ? O(x) : S(x), d = i, b = i, C = (x) => x.toISOString();
|
|
4799
|
-
}, 4927: (
|
|
4799
|
+
}, 4927: (H, D, r) => {
|
|
4800
4800
|
function a(i) {
|
|
4801
4801
|
try {
|
|
4802
4802
|
if (!r.g.localStorage) return !1;
|
|
@@ -4806,7 +4806,7 @@ Actual: ` + T.attribValue);
|
|
|
4806
4806
|
var l = r.g.localStorage[i];
|
|
4807
4807
|
return l != null && String(l).toLowerCase() === "true";
|
|
4808
4808
|
}
|
|
4809
|
-
|
|
4809
|
+
H.exports = function(i, l) {
|
|
4810
4810
|
if (a("noDeprecation")) return i;
|
|
4811
4811
|
var g = !1;
|
|
4812
4812
|
return function() {
|
|
@@ -4817,14 +4817,14 @@ Actual: ` + T.attribValue);
|
|
|
4817
4817
|
return i.apply(this, arguments);
|
|
4818
4818
|
};
|
|
4819
4819
|
};
|
|
4820
|
-
}, 9881: (
|
|
4821
|
-
|
|
4822
|
-
return Array.isArray ? Array.isArray(
|
|
4820
|
+
}, 9881: (H) => {
|
|
4821
|
+
H.exports = { isArray: function(D) {
|
|
4822
|
+
return Array.isArray ? Array.isArray(D) : Object.prototype.toString.call(D) === "[object Array]";
|
|
4823
4823
|
} };
|
|
4824
|
-
}, 7888: (
|
|
4824
|
+
}, 7888: (H, D, r) => {
|
|
4825
4825
|
var a = r(1229), i = r(1388), l = r(6501), g = r(4673);
|
|
4826
|
-
|
|
4827
|
-
}, 6501: (
|
|
4826
|
+
H.exports = { xml2js: a, xml2json: i, js2xml: l, json2xml: g };
|
|
4827
|
+
}, 6501: (H, D, r) => {
|
|
4828
4828
|
var a, i, l = r(4740), g = r(9881).isArray;
|
|
4829
4829
|
function I(d, b, C) {
|
|
4830
4830
|
return (!C && d.spaces ? `
|
|
@@ -4833,8 +4833,8 @@ Actual: ` + T.attribValue);
|
|
|
4833
4833
|
function p(d, b, C) {
|
|
4834
4834
|
if (b.ignoreAttributes) return "";
|
|
4835
4835
|
"attributesFn" in b && (d = b.attributesFn(d, i, a));
|
|
4836
|
-
var x,
|
|
4837
|
-
for (x in d) d.hasOwnProperty(x) && d[x] !== null && d[x] !== void 0 && (B = b.noQuotesForNativeAttributes && typeof d[x] != "string" ? "" : '"',
|
|
4836
|
+
var x, P, n, B, Q = [];
|
|
4837
|
+
for (x in d) d.hasOwnProperty(x) && d[x] !== null && d[x] !== void 0 && (B = b.noQuotesForNativeAttributes && typeof d[x] != "string" ? "" : '"', P = (P = "" + d[x]).replace(/"/g, """), n = "attributeNameFn" in b ? b.attributeNameFn(x, P, i, a) : x, Q.push(b.spaces && b.indentAttributes ? I(b, C + 1, !1) : " "), Q.push(n + "=" + B + ("attributeValueFn" in b ? b.attributeValueFn(P, x, i, a) : P) + B));
|
|
4838
4838
|
return d && Object.keys(d).length && b.spaces && b.indentAttributes && Q.push(I(b, C, !1)), Q.join("");
|
|
4839
4839
|
}
|
|
4840
4840
|
function S(d, b, C) {
|
|
@@ -4844,10 +4844,10 @@ Actual: ` + T.attribValue);
|
|
|
4844
4844
|
if (b.ignoreInstruction) return "";
|
|
4845
4845
|
var x;
|
|
4846
4846
|
for (x in d) if (d.hasOwnProperty(x)) break;
|
|
4847
|
-
var
|
|
4848
|
-
if (typeof d[x] == "object") return a = d, i =
|
|
4847
|
+
var P = "instructionNameFn" in b ? b.instructionNameFn(x, d[x], i, a) : x;
|
|
4848
|
+
if (typeof d[x] == "object") return a = d, i = P, "<?" + P + p(d[x][b.attributesKey], b, C) + "?>";
|
|
4849
4849
|
var n = d[x] ? d[x] : "";
|
|
4850
|
-
return "instructionFn" in b && (n = b.instructionFn(n, x, i, a)), "<?" +
|
|
4850
|
+
return "instructionFn" in b && (n = b.instructionFn(n, x, i, a)), "<?" + P + (n ? " " + n : "") + "?>";
|
|
4851
4851
|
}
|
|
4852
4852
|
function _(d, b) {
|
|
4853
4853
|
return b.ignoreComment ? "" : "<!--" + ("commentFn" in b ? b.commentFn(d, i, a) : d) + "-->";
|
|
@@ -4862,11 +4862,11 @@ Actual: ` + T.attribValue);
|
|
|
4862
4862
|
return b.ignoreText ? "" : (d = (d = (d = "" + d).replace(/&/g, "&")).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), "textFn" in b ? b.textFn(d, i, a) : d);
|
|
4863
4863
|
}
|
|
4864
4864
|
function m(d, b, C, x) {
|
|
4865
|
-
return d.reduce((function(
|
|
4866
|
-
var B = I(b, C, x && !
|
|
4865
|
+
return d.reduce((function(P, n) {
|
|
4866
|
+
var B = I(b, C, x && !P);
|
|
4867
4867
|
switch (n.type) {
|
|
4868
4868
|
case "element":
|
|
4869
|
-
return
|
|
4869
|
+
return P + B + (function(G, lt, rt) {
|
|
4870
4870
|
a = G, i = G.name;
|
|
4871
4871
|
var at = [], c = "elementNameFn" in lt ? lt.elementNameFn(G.name, G) : G.name;
|
|
4872
4872
|
at.push("<" + c), G[lt.attributesKey] && at.push(p(G[lt.attributesKey], lt, rt));
|
|
@@ -4891,16 +4891,16 @@ Actual: ` + T.attribValue);
|
|
|
4891
4891
|
` + Array(rt + 1).join(lt.spaces) : ""), at.push("</" + c + ">")) : at.push("/>"), at.join("");
|
|
4892
4892
|
})(n, b, C);
|
|
4893
4893
|
case "comment":
|
|
4894
|
-
return
|
|
4894
|
+
return P + B + _(n[b.commentKey], b);
|
|
4895
4895
|
case "doctype":
|
|
4896
|
-
return
|
|
4896
|
+
return P + B + h(n[b.doctypeKey], b);
|
|
4897
4897
|
case "cdata":
|
|
4898
|
-
return
|
|
4898
|
+
return P + (b.indentCdata ? B : "") + y(n[b.cdataKey], b);
|
|
4899
4899
|
case "text":
|
|
4900
|
-
return
|
|
4900
|
+
return P + (b.indentText ? B : "") + u(n[b.textKey], b);
|
|
4901
4901
|
case "instruction":
|
|
4902
4902
|
var Q = {};
|
|
4903
|
-
return Q[n[b.nameKey]] = n[b.attributesKey] ? n : n[b.instructionKey],
|
|
4903
|
+
return Q[n[b.nameKey]] = n[b.attributesKey] ? n : n[b.instructionKey], P + (b.indentInstruction ? B : "") + N(Q, b, C);
|
|
4904
4904
|
}
|
|
4905
4905
|
}), "");
|
|
4906
4906
|
}
|
|
@@ -4926,7 +4926,7 @@ Actual: ` + T.attribValue);
|
|
|
4926
4926
|
}
|
|
4927
4927
|
return !1;
|
|
4928
4928
|
}
|
|
4929
|
-
function O(d, b, C, x,
|
|
4929
|
+
function O(d, b, C, x, P) {
|
|
4930
4930
|
a = d, i = b;
|
|
4931
4931
|
var n = "elementNameFn" in C ? C.elementNameFn(b, d) : b;
|
|
4932
4932
|
if (d == null || d === "") return "fullTagEmptyElementFn" in C && C.fullTagEmptyElementFn(b, d) || C.fullTagEmptyElement ? "<" + n + "></" + n + ">" : "<" + n + "/>";
|
|
@@ -4938,51 +4938,51 @@ Actual: ` + T.attribValue);
|
|
|
4938
4938
|
if (Q || (Q = "fullTagEmptyElementFn" in C ? C.fullTagEmptyElementFn(b, d) : C.fullTagEmptyElement), !Q) return B.push("/>"), B.join("");
|
|
4939
4939
|
B.push(">");
|
|
4940
4940
|
}
|
|
4941
|
-
return B.push(M(d, C, x + 1, !1)), a = d, i = b, b && B.push((
|
|
4941
|
+
return B.push(M(d, C, x + 1, !1)), a = d, i = b, b && B.push((P ? I(C, x, !1) : "") + "</" + n + ">"), B.join("");
|
|
4942
4942
|
}
|
|
4943
4943
|
function M(d, b, C, x) {
|
|
4944
|
-
var
|
|
4945
|
-
for (n in d) if (d.hasOwnProperty(n)) for (B = g(d[n]) ? d[n] : [d[n]],
|
|
4944
|
+
var P, n, B, Q = [];
|
|
4945
|
+
for (n in d) if (d.hasOwnProperty(n)) for (B = g(d[n]) ? d[n] : [d[n]], P = 0; P < B.length; ++P) {
|
|
4946
4946
|
switch (n) {
|
|
4947
4947
|
case b.declarationKey:
|
|
4948
|
-
Q.push(S(B[
|
|
4948
|
+
Q.push(S(B[P], b, C));
|
|
4949
4949
|
break;
|
|
4950
4950
|
case b.instructionKey:
|
|
4951
|
-
Q.push((b.indentInstruction ? I(b, C, x) : "") + N(B[
|
|
4951
|
+
Q.push((b.indentInstruction ? I(b, C, x) : "") + N(B[P], b, C));
|
|
4952
4952
|
break;
|
|
4953
4953
|
case b.attributesKey:
|
|
4954
4954
|
case b.parentKey:
|
|
4955
4955
|
break;
|
|
4956
4956
|
case b.textKey:
|
|
4957
|
-
Q.push((b.indentText ? I(b, C, x) : "") + u(B[
|
|
4957
|
+
Q.push((b.indentText ? I(b, C, x) : "") + u(B[P], b));
|
|
4958
4958
|
break;
|
|
4959
4959
|
case b.cdataKey:
|
|
4960
|
-
Q.push((b.indentCdata ? I(b, C, x) : "") + y(B[
|
|
4960
|
+
Q.push((b.indentCdata ? I(b, C, x) : "") + y(B[P], b));
|
|
4961
4961
|
break;
|
|
4962
4962
|
case b.doctypeKey:
|
|
4963
|
-
Q.push(I(b, C, x) + h(B[
|
|
4963
|
+
Q.push(I(b, C, x) + h(B[P], b));
|
|
4964
4964
|
break;
|
|
4965
4965
|
case b.commentKey:
|
|
4966
|
-
Q.push(I(b, C, x) + _(B[
|
|
4966
|
+
Q.push(I(b, C, x) + _(B[P], b));
|
|
4967
4967
|
break;
|
|
4968
4968
|
default:
|
|
4969
|
-
Q.push(I(b, C, x) + O(B[
|
|
4969
|
+
Q.push(I(b, C, x) + O(B[P], n, b, C, E(B[P], b)));
|
|
4970
4970
|
}
|
|
4971
4971
|
x = x && !Q.length;
|
|
4972
4972
|
}
|
|
4973
4973
|
return Q.join("");
|
|
4974
4974
|
}
|
|
4975
|
-
|
|
4975
|
+
H.exports = function(d, b) {
|
|
4976
4976
|
b = (function(x) {
|
|
4977
|
-
var
|
|
4978
|
-
return l.ensureFlagExists("ignoreDeclaration",
|
|
4977
|
+
var P = l.copyOptions(x);
|
|
4978
|
+
return l.ensureFlagExists("ignoreDeclaration", P), l.ensureFlagExists("ignoreInstruction", P), l.ensureFlagExists("ignoreAttributes", P), l.ensureFlagExists("ignoreText", P), l.ensureFlagExists("ignoreComment", P), l.ensureFlagExists("ignoreCdata", P), l.ensureFlagExists("ignoreDoctype", P), l.ensureFlagExists("compact", P), l.ensureFlagExists("indentText", P), l.ensureFlagExists("indentCdata", P), l.ensureFlagExists("indentAttributes", P), l.ensureFlagExists("indentInstruction", P), l.ensureFlagExists("fullTagEmptyElement", P), l.ensureFlagExists("noQuotesForNativeAttributes", P), l.ensureSpacesExists(P), typeof P.spaces == "number" && (P.spaces = Array(P.spaces + 1).join(" ")), l.ensureKeyExists("declaration", P), l.ensureKeyExists("instruction", P), l.ensureKeyExists("attributes", P), l.ensureKeyExists("text", P), l.ensureKeyExists("comment", P), l.ensureKeyExists("cdata", P), l.ensureKeyExists("doctype", P), l.ensureKeyExists("type", P), l.ensureKeyExists("name", P), l.ensureKeyExists("elements", P), l.checkFnExists("doctype", P), l.checkFnExists("instruction", P), l.checkFnExists("cdata", P), l.checkFnExists("comment", P), l.checkFnExists("text", P), l.checkFnExists("instructionName", P), l.checkFnExists("elementName", P), l.checkFnExists("attributeName", P), l.checkFnExists("attributeValue", P), l.checkFnExists("attributes", P), l.checkFnExists("fullTagEmptyElement", P), P;
|
|
4979
4979
|
})(b);
|
|
4980
4980
|
var C = [];
|
|
4981
4981
|
return a = d, i = "_root_", b.compact ? C.push(M(d, b, 0, !0)) : (d[b.declarationKey] && C.push(S(d[b.declarationKey], b, 0)), d[b.elementsKey] && d[b.elementsKey].length && C.push(m(d[b.elementsKey], b, 0, !C.length))), C.join("");
|
|
4982
4982
|
};
|
|
4983
|
-
}, 4673: (
|
|
4983
|
+
}, 4673: (H, D, r) => {
|
|
4984
4984
|
var a = r(6501);
|
|
4985
|
-
|
|
4985
|
+
H.exports = function(i, l) {
|
|
4986
4986
|
i instanceof Buffer && (i = i.toString());
|
|
4987
4987
|
var g = null;
|
|
4988
4988
|
if (typeof i == "string") try {
|
|
@@ -4993,9 +4993,9 @@ Actual: ` + T.attribValue);
|
|
|
4993
4993
|
else g = i;
|
|
4994
4994
|
return a(g, l);
|
|
4995
4995
|
};
|
|
4996
|
-
}, 4740: (
|
|
4996
|
+
}, 4740: (H, D, r) => {
|
|
4997
4997
|
var a = r(9881).isArray;
|
|
4998
|
-
|
|
4998
|
+
H.exports = { copyOptions: function(i) {
|
|
4999
4999
|
var l, g = {};
|
|
5000
5000
|
for (l in i) i.hasOwnProperty(l) && (g[l] = i[l]);
|
|
5001
5001
|
return g;
|
|
@@ -5010,7 +5010,7 @@ Actual: ` + T.attribValue);
|
|
|
5010
5010
|
}, checkFnExists: function(i, l) {
|
|
5011
5011
|
return i + "Fn" in l;
|
|
5012
5012
|
} };
|
|
5013
|
-
}, 1229: (
|
|
5013
|
+
}, 1229: (H, D, r) => {
|
|
5014
5014
|
var a, i, l = r(6099), g = r(4740), I = r(9881).isArray;
|
|
5015
5015
|
function p(d) {
|
|
5016
5016
|
var b = Number(d);
|
|
@@ -5031,12 +5031,12 @@ Actual: ` + T.attribValue);
|
|
|
5031
5031
|
I(i[a[d + "Key"]]) ? i[a[d + "Key"]].push(b) : i[a[d + "Key"]] = b;
|
|
5032
5032
|
} else {
|
|
5033
5033
|
i[a.elementsKey] || (i[a.elementsKey] = []);
|
|
5034
|
-
var
|
|
5035
|
-
if (
|
|
5034
|
+
var P = {};
|
|
5035
|
+
if (P[a.typeKey] = d, d === "instruction") {
|
|
5036
5036
|
for (C in b) if (b.hasOwnProperty(C)) break;
|
|
5037
|
-
|
|
5038
|
-
} else d + "Fn" in a && (b = a[d + "Fn"](b, i)),
|
|
5039
|
-
a.addParent && (
|
|
5037
|
+
P[a.nameKey] = "instructionNameFn" in a ? a.instructionNameFn(C, b, i) : C, a.instructionHasAttributes ? (P[a.attributesKey] = b[C][a.attributesKey], "instructionFn" in a && (P[a.attributesKey] = a.instructionFn(P[a.attributesKey], C, i))) : ("instructionFn" in a && (b[C] = a.instructionFn(b[C], C, i)), P[a.instructionKey] = b[C]);
|
|
5038
|
+
} else d + "Fn" in a && (b = a[d + "Fn"](b, i)), P[a[d + "Key"]] = b;
|
|
5039
|
+
a.addParent && (P[a.parentKey] = i), i[a.elementsKey].push(P);
|
|
5040
5040
|
}
|
|
5041
5041
|
}
|
|
5042
5042
|
function N(d) {
|
|
@@ -5061,8 +5061,8 @@ Actual: ` + T.attribValue);
|
|
|
5061
5061
|
} else {
|
|
5062
5062
|
if (a.ignoreInstruction) return;
|
|
5063
5063
|
a.trim && (d.body = d.body.trim());
|
|
5064
|
-
var
|
|
5065
|
-
a.instructionHasAttributes && Object.keys(b).length ? (
|
|
5064
|
+
var P = {};
|
|
5065
|
+
a.instructionHasAttributes && Object.keys(b).length ? (P[d.name] = {}, P[d.name][a.attributesKey] = b) : P[d.name] = d.body, S("instruction", P);
|
|
5066
5066
|
}
|
|
5067
5067
|
}
|
|
5068
5068
|
function y(d, b) {
|
|
@@ -5093,19 +5093,19 @@ Actual: ` + T.attribValue);
|
|
|
5093
5093
|
function M(d) {
|
|
5094
5094
|
d.note = d;
|
|
5095
5095
|
}
|
|
5096
|
-
|
|
5096
|
+
H.exports = function(d, b) {
|
|
5097
5097
|
var C = l.parser(!0, {}), x = {};
|
|
5098
5098
|
if (i = x, a = (function(n) {
|
|
5099
5099
|
return a = g.copyOptions(n), g.ensureFlagExists("ignoreDeclaration", a), g.ensureFlagExists("ignoreInstruction", a), g.ensureFlagExists("ignoreAttributes", a), g.ensureFlagExists("ignoreText", a), g.ensureFlagExists("ignoreComment", a), g.ensureFlagExists("ignoreCdata", a), g.ensureFlagExists("ignoreDoctype", a), g.ensureFlagExists("compact", a), g.ensureFlagExists("alwaysChildren", a), g.ensureFlagExists("addParent", a), g.ensureFlagExists("trim", a), g.ensureFlagExists("nativeType", a), g.ensureFlagExists("nativeTypeAttributes", a), g.ensureFlagExists("sanitize", a), g.ensureFlagExists("instructionHasAttributes", a), g.ensureFlagExists("captureSpacesBetweenElements", a), g.ensureAlwaysArrayExists(a), g.ensureKeyExists("declaration", a), g.ensureKeyExists("instruction", a), g.ensureKeyExists("attributes", a), g.ensureKeyExists("text", a), g.ensureKeyExists("comment", a), g.ensureKeyExists("cdata", a), g.ensureKeyExists("doctype", a), g.ensureKeyExists("type", a), g.ensureKeyExists("name", a), g.ensureKeyExists("elements", a), g.ensureKeyExists("parent", a), g.checkFnExists("doctype", a), g.checkFnExists("instruction", a), g.checkFnExists("cdata", a), g.checkFnExists("comment", a), g.checkFnExists("text", a), g.checkFnExists("instructionName", a), g.checkFnExists("elementName", a), g.checkFnExists("attributeName", a), g.checkFnExists("attributeValue", a), g.checkFnExists("attributes", a), a;
|
|
5100
5100
|
})(b), C.opt = { strictEntities: !0 }, C.onopentag = y, C.ontext = h, C.oncomment = u, C.onclosetag = m, C.onerror = M, C.oncdata = E, C.ondoctype = O, C.onprocessinginstruction = _, C.write(d).close(), x[a.elementsKey]) {
|
|
5101
|
-
var
|
|
5102
|
-
delete x[a.elementsKey], x[a.elementsKey] =
|
|
5101
|
+
var P = x[a.elementsKey];
|
|
5102
|
+
delete x[a.elementsKey], x[a.elementsKey] = P, delete x.text;
|
|
5103
5103
|
}
|
|
5104
5104
|
return x;
|
|
5105
5105
|
};
|
|
5106
|
-
}, 1388: (
|
|
5106
|
+
}, 1388: (H, D, r) => {
|
|
5107
5107
|
var a = r(4740), i = r(1229);
|
|
5108
|
-
|
|
5108
|
+
H.exports = function(l, g) {
|
|
5109
5109
|
var I, p, S;
|
|
5110
5110
|
return I = (function(N) {
|
|
5111
5111
|
var _ = a.copyOptions(N);
|
|
@@ -5114,14 +5114,14 @@ Actual: ` + T.attribValue);
|
|
|
5114
5114
|
return N === S ? "_" : _;
|
|
5115
5115
|
}), I.spaces) : JSON.stringify(p, null, I.spaces)).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
5116
5116
|
};
|
|
5117
|
-
}, 255: (
|
|
5118
|
-
var
|
|
5119
|
-
|
|
5117
|
+
}, 255: (H) => {
|
|
5118
|
+
var D = { "&": "&", '"': """, "'": "'", "<": "<", ">": ">" };
|
|
5119
|
+
H.exports = function(r) {
|
|
5120
5120
|
return r && r.replace ? r.replace(/([&"<>'])/g, (function(a, i) {
|
|
5121
|
-
return
|
|
5121
|
+
return D[i];
|
|
5122
5122
|
})) : r;
|
|
5123
5123
|
};
|
|
5124
|
-
}, 3479: (
|
|
5124
|
+
}, 3479: (H, D, r) => {
|
|
5125
5125
|
var a = r(4155), i = r(255), l = r(2830).Stream;
|
|
5126
5126
|
function g(p, S, N) {
|
|
5127
5127
|
N = N || 0;
|
|
@@ -5169,7 +5169,7 @@ Actual: ` + T.attribValue);
|
|
|
5169
5169
|
` : "");
|
|
5170
5170
|
h(S) || y();
|
|
5171
5171
|
}
|
|
5172
|
-
|
|
5172
|
+
H.exports = function(p, S) {
|
|
5173
5173
|
typeof S != "object" && (S = { indent: S });
|
|
5174
5174
|
var N, _, y = S.stream ? new l() : null, h = "", u = !1, m = S.indent ? S.indent === !0 ? " " : S.indent : "", E = !0;
|
|
5175
5175
|
function O(C) {
|
|
@@ -5177,9 +5177,9 @@ Actual: ` + T.attribValue);
|
|
|
5177
5177
|
}
|
|
5178
5178
|
function M(C, x) {
|
|
5179
5179
|
if (x !== void 0 && (h += x), C && !u && (y = y || new l(), u = !0), C && u) {
|
|
5180
|
-
var
|
|
5180
|
+
var P = h;
|
|
5181
5181
|
O((function() {
|
|
5182
|
-
y.emit("data",
|
|
5182
|
+
y.emit("data", P);
|
|
5183
5183
|
})), h = "";
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
@@ -5197,10 +5197,10 @@ Actual: ` + T.attribValue);
|
|
|
5197
5197
|
return O((function() {
|
|
5198
5198
|
E = !1;
|
|
5199
5199
|
})), S.declaration && (_ = { version: "1.0", encoding: (N = S.declaration).encoding || "UTF-8" }, N.standalone && (_.standalone = N.standalone), d({ "?xml": { _attr: _ } }), h = h.replace("/>", "?>")), p && p.forEach ? p.forEach((function(C, x) {
|
|
5200
|
-
var
|
|
5201
|
-
x + 1 === p.length && (
|
|
5200
|
+
var P;
|
|
5201
|
+
x + 1 === p.length && (P = b), d(C, P);
|
|
5202
5202
|
})) : d(p, b), y ? (y.readable = !0, y) : h;
|
|
5203
|
-
},
|
|
5203
|
+
}, H.exports.element = H.exports.Element = function() {
|
|
5204
5204
|
var p = Array.prototype.slice.call(arguments), S = { _elem: g(p), push: function(N) {
|
|
5205
5205
|
if (!this.append) throw new Error("not assigned to a parent!");
|
|
5206
5206
|
var _ = this, y = this._elem.indent;
|
|
@@ -5212,42 +5212,42 @@ Actual: ` + T.attribValue);
|
|
|
5212
5212
|
} };
|
|
5213
5213
|
return S;
|
|
5214
5214
|
};
|
|
5215
|
-
} },
|
|
5216
|
-
function
|
|
5217
|
-
var
|
|
5218
|
-
if (
|
|
5219
|
-
var r =
|
|
5220
|
-
return ot[
|
|
5215
|
+
} }, ft = {};
|
|
5216
|
+
function ut(H) {
|
|
5217
|
+
var D = ft[H];
|
|
5218
|
+
if (D !== void 0) return D.exports;
|
|
5219
|
+
var r = ft[H] = { exports: {} };
|
|
5220
|
+
return ot[H].call(r.exports, r, r.exports, ut), r.exports;
|
|
5221
5221
|
}
|
|
5222
|
-
|
|
5223
|
-
for (var r in
|
|
5224
|
-
},
|
|
5222
|
+
ut.d = (H, D) => {
|
|
5223
|
+
for (var r in D) ut.o(D, r) && !ut.o(H, r) && Object.defineProperty(H, r, { enumerable: !0, get: D[r] });
|
|
5224
|
+
}, ut.g = (function() {
|
|
5225
5225
|
if (typeof globalThis == "object") return globalThis;
|
|
5226
5226
|
try {
|
|
5227
5227
|
return this || new Function("return this")();
|
|
5228
5228
|
} catch {
|
|
5229
5229
|
if (typeof window == "object") return window;
|
|
5230
5230
|
}
|
|
5231
|
-
})(),
|
|
5232
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5231
|
+
})(), ut.o = (H, D) => Object.prototype.hasOwnProperty.call(H, D), ut.r = (H) => {
|
|
5232
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(H, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(H, "__esModule", { value: !0 });
|
|
5233
5233
|
};
|
|
5234
5234
|
var xt = {};
|
|
5235
5235
|
return (() => {
|
|
5236
|
-
|
|
5237
|
-
class
|
|
5236
|
+
ut.r(xt), ut.d(xt, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => l, BaseEmphasisMark: () => mt, BaseXmlComponent: () => H, Body: () => gn, Bookmark: () => Vr, BookmarkEnd: () => Xr, BookmarkStart: () => $r, Border: () => q, BorderElement: () => U, BorderStyle: () => u, Column: () => Mo, ColumnAttributes: () => wn, ColumnBreak: () => To, Columns: () => Jr, ColumnsAttributes: () => Yr, Comment: () => Br, CommentRangeEnd: () => vo, CommentRangeStart: () => xo, CommentReference: () => _o, Comments: () => Mr, ConcreteHyperlink: () => Ge, ConcreteNumbering: () => fr, DeletedTextRun: () => qa, DocGridAttributes: () => Qr, Document: () => ss, DocumentAttributes: () => Qt, DocumentBackground: () => bn, DocumentBackgroundAttributes: () => yn, DocumentDefaults: () => es, DocumentGrid: () => tn, DocumentGridType: () => De, DotEmphasisMark: () => Ft, Drawing: () => Pr, DropCapType: () => $e, EMPTY_OBJECT: () => D, EmphasisMark: () => Tt, EmphasisMarkType: () => C, ExternalHyperlink: () => Gr, File: () => ss, FootNoteReferenceRunAttributes: () => os, FootNotes: () => $n, Footer: () => ja, FooterWrapper: () => ar, FootnoteReference: () => is, FootnoteReferenceRun: () => Ka, FrameAnchorType: () => Xe, FrameProperties: () => _n, FramePropertiesAttributes: () => vn, FrameWrap: () => qe, GridSpan: () => Bn, Header: () => Wa, HeaderFooterReference: () => xe, HeaderFooterReferenceType: () => Wt, HeaderFooterType: () => ae, HeaderWrapper: () => ur, HeadingLevel: () => Ne, HeightRule: () => ir, HorizontalPosition: () => Ar, HorizontalPositionAlign: () => E, HorizontalPositionRelativeFrom: () => me, HpsMeasureElement: () => Q, HyperlinkType: () => ke, IgnoreIfEmptyXmlComponent: () => a, ImageRun: () => ho, ImportDotx: () => ec, ImportedRootElementAttributes: () => N, ImportedXmlComponent: () => S, Indent: () => V, InitializableXmlComponent: () => y, InsertedTextRun: () => Ga, InternalHyperlink: () => Oo, LeaderType: () => Ce, Level: () => Xn, LevelBase: () => pr, LevelForOverride: () => aa, LevelFormat: () => Ut, LevelOverride: () => qn, LevelSuffix: () => hr, LineNumberAttributes: () => en, LineNumberRestartFormat: () => Pe, LineNumberType: () => rn, LineRuleType: () => Jt, Math: () => jo, MathAccentCharacter: () => An, MathAngledBrackets: () => wi, MathBase: () => Mt, MathCurlyBrackets: () => gi, MathDegree: () => On, MathDenominator: () => En, MathFraction: () => Vo, MathFunction: () => ui, MathFunctionName: () => Ln, MathFunctionProperties: () => Dn, MathIntegral: () => ti, MathLimitLocation: () => Sn, MathNAryProperties: () => Ze, MathNumerator: () => Tn, MathPreSubSuperScript: () => si, MathPreSubSuperScriptProperties: () => Cn, MathRadical: () => ci, MathRadicalProperties: () => kn, MathRoundBrackets: () => fi, MathRun: () => Go, MathSquareBrackets: () => mi, MathSubScript: () => ri, MathSubScriptElement: () => te, MathSubScriptProperties: () => Rn, MathSubSuperScript: () => ni, MathSubSuperScriptProperties: () => Nn, MathSum: () => Qo, MathSuperScript: () => ei, MathSuperScriptElement: () => ee, MathSuperScriptProperties: () => In, Media: () => lr, NumberFormat: () => M, NumberProperties: () => Ke, NumberValueElement: () => lt, Numbering: () => Zn, OnOffElement: () => B, OutlineLevel: () => qr, OverlapType: () => sr, Packer: () => cs, PageBorderDisplay: () => Fe, PageBorderOffsetFrom: () => Be, PageBorderZOrder: () => Me, PageBorders: () => sn, PageBreak: () => Eo, PageBreakBefore: () => Hr, PageMargin: () => an, PageMarginAttributes: () => on, PageNumber: () => P, PageNumberSeparator: () => Ue, PageNumberType: () => un, PageNumberTypeAttributes: () => cn, PageOrientation: () => ce, PageReference: () => Po, PageSize: () => hn, PageSizeAttributes: () => ln, PageTextDirection: () => pn, PageTextDirectionType: () => He, Paragraph: () => jt, ParagraphProperties: () => qt, ParagraphPropertiesDefaults: () => Qn, PrettifyType: () => gr, RelativeHorizontalPosition: () => rr, RelativeVerticalPosition: () => nr, Run: () => Bt, RunFonts: () => Z, RunProperties: () => Et, RunPropertiesChange: () => Rt, RunPropertiesDefaults: () => ts, SectionProperties: () => mn, SectionType: () => ze, SectionTypeAttributes: () => dn, SequentialIdentifier: () => fo, Shading: () => it, ShadingType: () => b, SimpleField: () => Fr, SimpleMailMergeField: () => wo, SimplePos: () => _r, SpaceType: () => d, Spacing: () => zr, StringContainer: () => at, StringEnumValueElement: () => rt, StringValueElement: () => G, Style: () => ue, StyleForCharacter: () => de, StyleForParagraph: () => pe, StyleLevel: () => za, Styles: () => Ae, SymbolRun: () => vs, TDirection: () => Mn, Tab: () => mo, TabAttributes: () => jr, TabStop: () => Wr, TabStopItem: () => Kr, TabStopPosition: () => Oe, TabStopType: () => ie, Table: () => Ii, TableAnchorType: () => er, TableBorders: () => tr, TableCell: () => Qe, TableCellBorders: () => Fn, TableFloatOptionsAttributes: () => Un, TableFloatProperties: () => Hn, TableLayout: () => zn, TableLayoutType: () => or, TableOfContents: () => Ha, TableProperties: () => Wn, TableRow: () => Ri, TableRowHeight: () => Kn, TableRowHeightAttributes: () => jn, TableRowProperties: () => Gn, TableWidthElement: () => Vt, TextDirection: () => Ye, TextRun: () => Yt, TextWrappingSide: () => we, TextWrappingType: () => Xt, ThematicBreak: () => F, Type: () => fn, Underline: () => It, UnderlineType: () => x, VerticalAlign: () => Le, VerticalAlignAttributes: () => Zr, VerticalAlignElement: () => Ve, VerticalMerge: () => Je, VerticalMergeType: () => he, VerticalPosition: () => Sr, VerticalPositionAlign: () => O, VerticalPositionRelativeFrom: () => ge, WORKAROUND: () => Fa, WORKAROUND2: () => ta, WORKAROUND3: () => _, WORKAROUND4: () => oi, WidthType: () => re, WrapNone: () => We, WrapSquare: () => Rr, WrapTight: () => Nr, WrapTopAndBottom: () => Cr, XmlAttributeComponent: () => i, XmlComponent: () => r, convertInchesToTwip: () => Ct.convertInchesToTwip, convertMillimetersToTwip: () => Ct.convertMillimetersToTwip, convertToXmlComponent: () => I, dateTimeValue: () => Ct.dateTimeValue, decimalNumber: () => Ct.decimalNumber, eighthPointMeasureValue: () => Ct.eighthPointMeasureValue, hexColorValue: () => Ct.hexColorValue, hpsMeasureValue: () => Ct.hpsMeasureValue, longHexNumber: () => Ct.longHexNumber, measurementOrPercentValue: () => Ct.measurementOrPercentValue, percentageValue: () => Ct.percentageValue, pointMeasureValue: () => Ct.pointMeasureValue, positiveUniversalMeasureValue: () => Ct.positiveUniversalMeasureValue, sectionMarginDefaults: () => Gt, sectionPageSizeDefaults: () => ve, shortHexNumber: () => Ct.shortHexNumber, signedHpsMeasureValue: () => Ct.signedHpsMeasureValue, signedTwipsMeasureValue: () => Ct.signedTwipsMeasureValue, twipsMeasureValue: () => Ct.twipsMeasureValue, uCharHexNumber: () => Ct.uCharHexNumber, uniqueId: () => Ct.uniqueId, uniqueNumericId: () => Ct.uniqueNumericId, universalMeasureValue: () => Ct.universalMeasureValue, unsignedDecimalNumber: () => Ct.unsignedDecimalNumber });
|
|
5237
|
+
class H {
|
|
5238
5238
|
constructor(t) {
|
|
5239
5239
|
this.rootKey = t;
|
|
5240
5240
|
}
|
|
5241
5241
|
}
|
|
5242
|
-
const
|
|
5243
|
-
class r extends
|
|
5242
|
+
const D = Object.seal({});
|
|
5243
|
+
class r extends H {
|
|
5244
5244
|
constructor(t) {
|
|
5245
5245
|
super(t), this.root = new Array();
|
|
5246
5246
|
}
|
|
5247
5247
|
prepForXml(t) {
|
|
5248
5248
|
var f;
|
|
5249
|
-
const
|
|
5250
|
-
return { [this.rootKey]:
|
|
5249
|
+
const z = this.root.map(((J) => J instanceof H ? J.prepForXml(t) : J)).filter(((J) => J !== void 0));
|
|
5250
|
+
return { [this.rootKey]: z.length ? z.length === 1 && (!((f = z[0]) === null || f === void 0) && f._attr) ? z[0] : z : D };
|
|
5251
5251
|
}
|
|
5252
5252
|
addChildElement(t) {
|
|
5253
5253
|
return this.root.push(t), this;
|
|
@@ -5259,16 +5259,16 @@ Actual: ` + T.attribValue);
|
|
|
5259
5259
|
if (f && (typeof f[this.rootKey] != "object" || Object.keys(f[this.rootKey]).length)) return f;
|
|
5260
5260
|
}
|
|
5261
5261
|
}
|
|
5262
|
-
class i extends
|
|
5262
|
+
class i extends H {
|
|
5263
5263
|
constructor(t) {
|
|
5264
5264
|
super("_attr"), this.root = t;
|
|
5265
5265
|
}
|
|
5266
5266
|
prepForXml(t) {
|
|
5267
5267
|
const f = {};
|
|
5268
|
-
return Object.keys(this.root).forEach(((
|
|
5269
|
-
const J = this.root[
|
|
5268
|
+
return Object.keys(this.root).forEach(((z) => {
|
|
5269
|
+
const J = this.root[z];
|
|
5270
5270
|
if (J !== void 0) {
|
|
5271
|
-
const tt = this.xmlKeys && this.xmlKeys[
|
|
5271
|
+
const tt = this.xmlKeys && this.xmlKeys[z] || z;
|
|
5272
5272
|
f[tt] = J;
|
|
5273
5273
|
}
|
|
5274
5274
|
})), { _attr: f };
|
|
@@ -5279,14 +5279,14 @@ Actual: ` + T.attribValue);
|
|
|
5279
5279
|
super(...arguments), this.xmlKeys = { val: "w:val", color: "w:color", fill: "w:fill", space: "w:space", sz: "w:sz", type: "w:type", rsidR: "w:rsidR", rsidRPr: "w:rsidRPr", rsidSect: "w:rsidSect", w: "w:w", h: "w:h", top: "w:top", right: "w:right", bottom: "w:bottom", left: "w:left", header: "w:header", footer: "w:footer", gutter: "w:gutter", linePitch: "w:linePitch", pos: "w:pos" };
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
5282
|
-
var g =
|
|
5282
|
+
var g = ut(7888);
|
|
5283
5283
|
const I = (e) => {
|
|
5284
5284
|
switch (e.type) {
|
|
5285
5285
|
case void 0:
|
|
5286
5286
|
case "element":
|
|
5287
5287
|
const t = new S(e.name, e.attributes), f = e.elements || [];
|
|
5288
|
-
for (const
|
|
5289
|
-
const J = I(
|
|
5288
|
+
for (const z of f) {
|
|
5289
|
+
const J = I(z);
|
|
5290
5290
|
J !== void 0 && t.push(J);
|
|
5291
5291
|
}
|
|
5292
5292
|
return t;
|
|
@@ -5324,7 +5324,7 @@ Actual: ` + T.attribValue);
|
|
|
5324
5324
|
super(t), f && (this.root = f.root);
|
|
5325
5325
|
}
|
|
5326
5326
|
}
|
|
5327
|
-
var h, u, m, E, O, M, d, b, C, x,
|
|
5327
|
+
var h, u, m, E, O, M, d, b, C, x, P, n = ut(6595);
|
|
5328
5328
|
class B extends r {
|
|
5329
5329
|
constructor(t, f = !0) {
|
|
5330
5330
|
super(t), f !== !0 && this.root.push(new l({ val: f }));
|
|
@@ -5369,8 +5369,8 @@ Actual: ` + T.attribValue);
|
|
|
5369
5369
|
}
|
|
5370
5370
|
}
|
|
5371
5371
|
class U extends r {
|
|
5372
|
-
constructor(t, { color: f, size:
|
|
5373
|
-
super(t), this.root.push(new k({ style: tt, color: f === void 0 ? void 0 : (0, n.dg)(f), size:
|
|
5372
|
+
constructor(t, { color: f, size: z, space: J, style: tt }) {
|
|
5373
|
+
super(t), this.root.push(new k({ style: tt, color: f === void 0 ? void 0 : (0, n.dg)(f), size: z === void 0 ? void 0 : (0, n.LV)(z), space: J === void 0 ? void 0 : (0, n.gg)(J) }));
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
5376
5376
|
class k extends i {
|
|
@@ -5399,8 +5399,8 @@ Actual: ` + T.attribValue);
|
|
|
5399
5399
|
}
|
|
5400
5400
|
}
|
|
5401
5401
|
class V extends r {
|
|
5402
|
-
constructor({ start: t, end: f, left:
|
|
5403
|
-
super("w:ind"), this.root.push(new W({ start: t === void 0 ? void 0 : (0, n.xb)(t), end: f === void 0 ? void 0 : (0, n.xb)(f), left:
|
|
5402
|
+
constructor({ start: t, end: f, left: z, right: J, hanging: tt, firstLine: ct }) {
|
|
5403
|
+
super("w:ind"), this.root.push(new W({ start: t === void 0 ? void 0 : (0, n.xb)(t), end: f === void 0 ? void 0 : (0, n.xb)(f), left: z === void 0 ? void 0 : (0, n.xb)(z), right: J === void 0 ? void 0 : (0, n.xb)(J), hanging: tt === void 0 ? void 0 : (0, n.Jd)(tt), firstLine: ct === void 0 ? void 0 : (0, n.Jd)(ct) }));
|
|
5404
5404
|
}
|
|
5405
5405
|
}
|
|
5406
5406
|
class $ extends r {
|
|
@@ -5466,8 +5466,8 @@ Actual: ` + T.attribValue);
|
|
|
5466
5466
|
}
|
|
5467
5467
|
}
|
|
5468
5468
|
class it extends r {
|
|
5469
|
-
constructor({ fill: t, color: f, type:
|
|
5470
|
-
super("w:shd"), this.root.push(new nt({ fill: t === void 0 ? void 0 : (0, n.dg)(t), color: f === void 0 ? void 0 : (0, n.dg)(f), type:
|
|
5469
|
+
constructor({ fill: t, color: f, type: z }) {
|
|
5470
|
+
super("w:shd"), this.root.push(new nt({ fill: t === void 0 ? void 0 : (0, n.dg)(t), color: f === void 0 ? void 0 : (0, n.dg)(f), type: z }));
|
|
5471
5471
|
}
|
|
5472
5472
|
}
|
|
5473
5473
|
(function(e) {
|
|
@@ -5481,17 +5481,17 @@ Actual: ` + T.attribValue);
|
|
|
5481
5481
|
(function(e) {
|
|
5482
5482
|
e.DOT = "dot";
|
|
5483
5483
|
})(C || (C = {}));
|
|
5484
|
-
class
|
|
5484
|
+
class mt extends r {
|
|
5485
5485
|
constructor(t) {
|
|
5486
5486
|
super("w:em"), this.root.push(new l({ val: t }));
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
|
-
class Tt extends
|
|
5489
|
+
class Tt extends mt {
|
|
5490
5490
|
constructor(t = C.DOT) {
|
|
5491
5491
|
super(t);
|
|
5492
5492
|
}
|
|
5493
5493
|
}
|
|
5494
|
-
class Ft extends
|
|
5494
|
+
class Ft extends mt {
|
|
5495
5495
|
constructor() {
|
|
5496
5496
|
super(C.DOT);
|
|
5497
5497
|
}
|
|
@@ -5524,11 +5524,11 @@ Actual: ` + T.attribValue);
|
|
|
5524
5524
|
class Z extends r {
|
|
5525
5525
|
constructor(t, f) {
|
|
5526
5526
|
if (super("w:rFonts"), typeof t == "string") {
|
|
5527
|
-
const
|
|
5528
|
-
this.root.push(new X({ ascii:
|
|
5527
|
+
const z = t;
|
|
5528
|
+
this.root.push(new X({ ascii: z, cs: z, eastAsia: z, hAnsi: z, hint: f }));
|
|
5529
5529
|
} else {
|
|
5530
|
-
const
|
|
5531
|
-
this.root.push(new X(
|
|
5530
|
+
const z = t;
|
|
5531
|
+
this.root.push(new X(z));
|
|
5532
5532
|
}
|
|
5533
5533
|
}
|
|
5534
5534
|
}
|
|
@@ -5557,9 +5557,9 @@ Actual: ` + T.attribValue);
|
|
|
5557
5557
|
}
|
|
5558
5558
|
class Et extends a {
|
|
5559
5559
|
constructor(t) {
|
|
5560
|
-
var f,
|
|
5560
|
+
var f, z;
|
|
5561
5561
|
if (super("w:rPr"), !t) return;
|
|
5562
|
-
t.bold !== void 0 && this.push(new B("w:b", t.bold)), (t.boldComplexScript === void 0 && t.bold !== void 0 || t.boldComplexScript) && this.push(new B("w:bCs", (f = t.boldComplexScript) !== null && f !== void 0 ? f : t.bold)), t.italics !== void 0 && this.push(new B("w:i", t.italics)), (t.italicsComplexScript === void 0 && t.italics !== void 0 || t.italicsComplexScript) && this.push(new B("w:iCs", (
|
|
5562
|
+
t.bold !== void 0 && this.push(new B("w:b", t.bold)), (t.boldComplexScript === void 0 && t.bold !== void 0 || t.boldComplexScript) && this.push(new B("w:bCs", (f = t.boldComplexScript) !== null && f !== void 0 ? f : t.bold)), t.italics !== void 0 && this.push(new B("w:i", t.italics)), (t.italicsComplexScript === void 0 && t.italics !== void 0 || t.italicsComplexScript) && this.push(new B("w:iCs", (z = t.italicsComplexScript) !== null && z !== void 0 ? z : t.italics)), t.underline && this.push(new It(t.underline.type, t.underline.color)), t.emphasisMark && this.push(new Tt(t.emphasisMark.type)), t.color && this.push(new w(t.color)), t.size !== void 0 && this.push(new Q("w:sz", t.size));
|
|
5563
5563
|
const J = t.sizeComplexScript === void 0 || t.sizeComplexScript === !0 ? t.size : t.sizeComplexScript;
|
|
5564
5564
|
J && this.push(new Q("w:szCs", J)), t.rightToLeft !== void 0 && this.push(new B("w:rtl", t.rightToLeft)), t.smallCaps !== void 0 ? this.push(new B("w:smallCaps", t.smallCaps)) : t.allCaps !== void 0 && this.push(new B("w:caps", t.allCaps)), t.strike !== void 0 && this.push(new B("w:strike", t.strike)), t.doubleStrike !== void 0 && this.push(new B("w:dstrike", t.doubleStrike)), t.subScript && this.push(new At()), t.superScript && this.push(new yt()), t.style && this.push(new G("w:rStyle", t.style)), t.font && (typeof t.font == "string" ? this.push(new Z(t.font)) : "name" in t.font ? this.push(new Z(t.font.name, t.font.hint)) : this.push(new Z(t.font))), t.highlight && this.push(new R(t.highlight));
|
|
5565
5565
|
const tt = t.highlightComplexScript === void 0 || t.highlightComplexScript === !0 ? t.highlight : t.highlightComplexScript;
|
|
@@ -5582,19 +5582,19 @@ Actual: ` + T.attribValue);
|
|
|
5582
5582
|
}
|
|
5583
5583
|
(function(e) {
|
|
5584
5584
|
e.CURRENT = "CURRENT", e.TOTAL_PAGES = "TOTAL_PAGES", e.TOTAL_PAGES_IN_SECTION = "TOTAL_PAGES_IN_SECTION";
|
|
5585
|
-
})(
|
|
5585
|
+
})(P || (P = {}));
|
|
5586
5586
|
class Bt extends r {
|
|
5587
5587
|
constructor(t) {
|
|
5588
5588
|
if (super("w:r"), this.properties = new Et(t), this.root.push(this.properties), t.break) for (let f = 0; f < t.break; f++) this.root.push(new $());
|
|
5589
5589
|
if (t.children) for (const f of t.children) if (typeof f != "string") this.root.push(f);
|
|
5590
5590
|
else switch (f) {
|
|
5591
|
-
case
|
|
5591
|
+
case P.CURRENT:
|
|
5592
5592
|
this.root.push(new T()), this.root.push(new Y()), this.root.push(new o()), this.root.push(new v());
|
|
5593
5593
|
break;
|
|
5594
|
-
case
|
|
5594
|
+
case P.TOTAL_PAGES:
|
|
5595
5595
|
this.root.push(new T()), this.root.push(new st()), this.root.push(new o()), this.root.push(new v());
|
|
5596
5596
|
break;
|
|
5597
|
-
case
|
|
5597
|
+
case P.TOTAL_PAGES_IN_SECTION:
|
|
5598
5598
|
this.root.push(new T()), this.root.push(new ht()), this.root.push(new o()), this.root.push(new v());
|
|
5599
5599
|
break;
|
|
5600
5600
|
default:
|
|
@@ -5625,7 +5625,7 @@ Actual: ` + T.attribValue);
|
|
|
5625
5625
|
super(t), this.root.push(new vr(t.char, t.symbolfont));
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
5628
|
-
var me, ge, Xt, we, ye, Jt, Ne, ie, Ce, Oe, be, ke, Le, Wt, ae, De, Pe, Fe, Be, Me, Ue, ce, He, ze, Ot =
|
|
5628
|
+
var me, ge, Xt, we, ye, Jt, Ne, ie, Ce, Oe, be, ke, Le, Wt, ae, De, Pe, Fe, Be, Me, Ue, ce, He, ze, Ot = ut(5457);
|
|
5629
5629
|
(function(e) {
|
|
5630
5630
|
e.CHARACTER = "character", e.COLUMN = "column", e.INSIDE_MARGIN = "insideMargin", e.LEFT_MARGIN = "leftMargin", e.MARGIN = "margin", e.OUTSIDE_MARGIN = "outsideMargin", e.PAGE = "page", e.RIGHT_MARGIN = "rightMargin";
|
|
5631
5631
|
})(me || (me = {})), (function(e) {
|
|
@@ -5776,8 +5776,8 @@ Actual: ` + T.attribValue);
|
|
|
5776
5776
|
}
|
|
5777
5777
|
class Ks extends r {
|
|
5778
5778
|
constructor(t) {
|
|
5779
|
-
var f,
|
|
5780
|
-
super("a:xfrm"), this.root.push(new js({ flipVertical: (f = t.flip) === null || f === void 0 ? void 0 : f.vertical, flipHorizontal: (
|
|
5779
|
+
var f, z;
|
|
5780
|
+
super("a:xfrm"), this.root.push(new js({ flipVertical: (f = t.flip) === null || f === void 0 ? void 0 : f.vertical, flipHorizontal: (z = t.flip) === null || z === void 0 ? void 0 : z.horizontal, rotation: t.rotation })), this.extents = new Hs(t.emus.x, t.emus.y), this.root.push(new Ws()), this.root.push(this.extents);
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
class Gs extends r {
|
|
@@ -5871,8 +5871,8 @@ Actual: ` + T.attribValue);
|
|
|
5871
5871
|
}
|
|
5872
5872
|
}
|
|
5873
5873
|
class Or extends r {
|
|
5874
|
-
constructor({ name: t, description: f, title:
|
|
5875
|
-
super("wp:docPr"), this.root.push(new ro({ id: (0, Ot.NY)(), name: t, description: f, title:
|
|
5874
|
+
constructor({ name: t, description: f, title: z } = { name: "", description: "", title: "" }) {
|
|
5875
|
+
super("wp:docPr"), this.root.push(new ro({ id: (0, Ot.NY)(), name: t, description: f, title: z }));
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
5878
|
class no extends i {
|
|
@@ -5916,25 +5916,25 @@ Actual: ` + T.attribValue);
|
|
|
5916
5916
|
}
|
|
5917
5917
|
}
|
|
5918
5918
|
class co extends r {
|
|
5919
|
-
constructor(t, f,
|
|
5919
|
+
constructor(t, f, z) {
|
|
5920
5920
|
super("wp:anchor");
|
|
5921
|
-
const J = Object.assign({ allowOverlap: !0, behindDocument: !1, lockAnchor: !1, layoutInCell: !0, verticalPosition: {}, horizontalPosition: {} },
|
|
5922
|
-
if (this.root.push(new ao({ distT: J.margins && J.margins.top || 0, distB: J.margins && J.margins.bottom || 0, distL: J.margins && J.margins.left || 0, distR: J.margins && J.margins.right || 0, simplePos: "0", allowOverlap: J.allowOverlap === !0 ? "1" : "0", behindDoc: J.behindDocument === !0 ? "1" : "0", locked: J.lockAnchor === !0 ? "1" : "0", layoutInCell: J.layoutInCell === !0 ? "1" : "0", relativeHeight: J.zIndex ? J.zIndex : f.emus.y })), this.root.push(new _r()), this.root.push(new Ar(J.horizontalPosition)), this.root.push(new Sr(J.verticalPosition)), this.root.push(new Lr(f.emus.x, f.emus.y)), this.root.push(new kr()),
|
|
5921
|
+
const J = Object.assign({ allowOverlap: !0, behindDocument: !1, lockAnchor: !1, layoutInCell: !0, verticalPosition: {}, horizontalPosition: {} }, z.floating);
|
|
5922
|
+
if (this.root.push(new ao({ distT: J.margins && J.margins.top || 0, distB: J.margins && J.margins.bottom || 0, distL: J.margins && J.margins.left || 0, distR: J.margins && J.margins.right || 0, simplePos: "0", allowOverlap: J.allowOverlap === !0 ? "1" : "0", behindDoc: J.behindDocument === !0 ? "1" : "0", locked: J.lockAnchor === !0 ? "1" : "0", layoutInCell: J.layoutInCell === !0 ? "1" : "0", relativeHeight: J.zIndex ? J.zIndex : f.emus.y })), this.root.push(new _r()), this.root.push(new Ar(J.horizontalPosition)), this.root.push(new Sr(J.verticalPosition)), this.root.push(new Lr(f.emus.x, f.emus.y)), this.root.push(new kr()), z.floating !== void 0 && z.floating.wrap !== void 0) switch (z.floating.wrap.type) {
|
|
5923
5923
|
case Xt.SQUARE:
|
|
5924
|
-
this.root.push(new Rr(
|
|
5924
|
+
this.root.push(new Rr(z.floating.wrap, z.floating.margins));
|
|
5925
5925
|
break;
|
|
5926
5926
|
case Xt.TIGHT:
|
|
5927
|
-
this.root.push(new Nr(
|
|
5927
|
+
this.root.push(new Nr(z.floating.margins));
|
|
5928
5928
|
break;
|
|
5929
5929
|
case Xt.TOP_AND_BOTTOM:
|
|
5930
|
-
this.root.push(new Cr(
|
|
5930
|
+
this.root.push(new Cr(z.floating.margins));
|
|
5931
5931
|
break;
|
|
5932
5932
|
case Xt.NONE:
|
|
5933
5933
|
default:
|
|
5934
5934
|
this.root.push(new We());
|
|
5935
5935
|
}
|
|
5936
5936
|
else this.root.push(new We());
|
|
5937
|
-
this.root.push(new Or(
|
|
5937
|
+
this.root.push(new Or(z.docProperties)), this.root.push(new Dr()), this.root.push(new Ir(t, f));
|
|
5938
5938
|
}
|
|
5939
5939
|
}
|
|
5940
5940
|
class uo extends i {
|
|
@@ -5943,8 +5943,8 @@ Actual: ` + T.attribValue);
|
|
|
5943
5943
|
}
|
|
5944
5944
|
}
|
|
5945
5945
|
class lo extends r {
|
|
5946
|
-
constructor({ mediaData: t, transform: f, docProperties:
|
|
5947
|
-
super("wp:inline"), this.root.push(new uo({ distT: 0, distB: 0, distL: 0, distR: 0 })), this.extent = new Lr(f.emus.x, f.emus.y), this.graphic = new Ir(t, f), this.root.push(this.extent), this.root.push(new kr()), this.root.push(new Or(
|
|
5946
|
+
constructor({ mediaData: t, transform: f, docProperties: z }) {
|
|
5947
|
+
super("wp:inline"), this.root.push(new uo({ distT: 0, distB: 0, distL: 0, distR: 0 })), this.extent = new Lr(f.emus.x, f.emus.y), this.graphic = new Ir(t, f), this.root.push(this.extent), this.root.push(new kr()), this.root.push(new Or(z)), this.root.push(new Dr()), this.root.push(this.graphic);
|
|
5948
5948
|
}
|
|
5949
5949
|
}
|
|
5950
5950
|
class Pr extends r {
|
|
@@ -5957,18 +5957,18 @@ Actual: ` + T.attribValue);
|
|
|
5957
5957
|
super({}), this.key = `${(0, Ot.EL)()}.png`;
|
|
5958
5958
|
const f = typeof t.data == "string" ? this.convertDataURIToBinary(t.data) : t.data;
|
|
5959
5959
|
this.imageData = { stream: f, fileName: this.key, transformation: { pixels: { x: Math.round(t.transformation.width), y: Math.round(t.transformation.height) }, emus: { x: Math.round(9525 * t.transformation.width), y: Math.round(9525 * t.transformation.height) }, flip: t.transformation.flip, rotation: t.transformation.rotation ? 6e4 * t.transformation.rotation : void 0 } };
|
|
5960
|
-
const
|
|
5961
|
-
this.root.push(
|
|
5960
|
+
const z = new Pr(this.imageData, { floating: t.floating, docProperties: t.altText });
|
|
5961
|
+
this.root.push(z);
|
|
5962
5962
|
}
|
|
5963
5963
|
prepForXml(t) {
|
|
5964
5964
|
return t.file.Media.addImage(this.key, this.imageData), super.prepForXml(t);
|
|
5965
5965
|
}
|
|
5966
5966
|
convertDataURIToBinary(t) {
|
|
5967
5967
|
if (typeof atob == "function") {
|
|
5968
|
-
const f = ";base64,",
|
|
5968
|
+
const f = ";base64,", z = t.indexOf(f), J = z === -1 ? 0 : z + f.length;
|
|
5969
5969
|
return new Uint8Array(atob(t.substring(J)).split("").map(((tt) => tt.charCodeAt(0))));
|
|
5970
5970
|
}
|
|
5971
|
-
return new (
|
|
5971
|
+
return new (ut(8764)).Buffer(t, "base64");
|
|
5972
5972
|
}
|
|
5973
5973
|
}
|
|
5974
5974
|
class po extends r {
|
|
@@ -6032,8 +6032,8 @@ Actual: ` + T.attribValue);
|
|
|
6032
6032
|
}
|
|
6033
6033
|
}
|
|
6034
6034
|
class Br extends r {
|
|
6035
|
-
constructor({ id: t, initials: f, author:
|
|
6036
|
-
super("w:comment"), this.root.push(new yo({ id: t, initials: f, author:
|
|
6035
|
+
constructor({ id: t, initials: f, author: z, date: J = /* @__PURE__ */ new Date(), text: tt }) {
|
|
6036
|
+
super("w:comment"), this.root.push(new yo({ id: t, initials: f, author: z, date: J.toISOString() })), this.root.push(new jt({ children: [new Yt(tt)] }));
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
6039
|
class Mr extends r {
|
|
@@ -6105,8 +6105,8 @@ Actual: ` + T.attribValue);
|
|
|
6105
6105
|
}
|
|
6106
6106
|
}
|
|
6107
6107
|
class Kr extends r {
|
|
6108
|
-
constructor({ type: t, position: f, leader:
|
|
6109
|
-
super("w:tab"), this.root.push(new jr({ val: t, pos: f, leader:
|
|
6108
|
+
constructor({ type: t, position: f, leader: z }) {
|
|
6109
|
+
super("w:tab"), this.root.push(new jr({ val: t, pos: f, leader: z }));
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
6112
|
class Ke extends r {
|
|
@@ -6134,8 +6134,8 @@ Actual: ` + T.attribValue);
|
|
|
6134
6134
|
e.EXTERNAL = "External";
|
|
6135
6135
|
})(be || (be = {}));
|
|
6136
6136
|
class No extends r {
|
|
6137
|
-
constructor(t, f,
|
|
6138
|
-
super("Relationship"), this.root.push(new Ro({ id: t, type: f, target:
|
|
6137
|
+
constructor(t, f, z, J) {
|
|
6138
|
+
super("Relationship"), this.root.push(new Ro({ id: t, type: f, target: z, targetMode: J }));
|
|
6139
6139
|
}
|
|
6140
6140
|
}
|
|
6141
6141
|
class Co extends i {
|
|
@@ -6147,11 +6147,11 @@ Actual: ` + T.attribValue);
|
|
|
6147
6147
|
e.INTERNAL = "INTERNAL", e.EXTERNAL = "EXTERNAL";
|
|
6148
6148
|
})(ke || (ke = {}));
|
|
6149
6149
|
class Ge extends r {
|
|
6150
|
-
constructor(t, f,
|
|
6150
|
+
constructor(t, f, z) {
|
|
6151
6151
|
super("w:hyperlink"), this.linkId = f;
|
|
6152
|
-
const J = { history: 1, anchor:
|
|
6153
|
-
this.root.push(tt), t.forEach(((
|
|
6154
|
-
this.root.push(
|
|
6152
|
+
const J = { history: 1, anchor: z || void 0, id: z ? void 0 : `rId${this.linkId}` }, tt = new Co(J);
|
|
6153
|
+
this.root.push(tt), t.forEach(((ct) => {
|
|
6154
|
+
this.root.push(ct);
|
|
6155
6155
|
}));
|
|
6156
6156
|
}
|
|
6157
6157
|
}
|
|
@@ -6184,8 +6184,8 @@ Actual: ` + T.attribValue);
|
|
|
6184
6184
|
class $r extends r {
|
|
6185
6185
|
constructor(t, f) {
|
|
6186
6186
|
super("w:bookmarkStart");
|
|
6187
|
-
const
|
|
6188
|
-
this.root.push(
|
|
6187
|
+
const z = new ko({ name: t, id: f });
|
|
6188
|
+
this.root.push(z);
|
|
6189
6189
|
}
|
|
6190
6190
|
}
|
|
6191
6191
|
class Xr extends r {
|
|
@@ -6203,8 +6203,8 @@ Actual: ` + T.attribValue);
|
|
|
6203
6203
|
class Do extends r {
|
|
6204
6204
|
constructor(t, f = {}) {
|
|
6205
6205
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE }));
|
|
6206
|
-
let
|
|
6207
|
-
f.hyperlink && (
|
|
6206
|
+
let z = `PAGEREF ${t}`;
|
|
6207
|
+
f.hyperlink && (z = `${z} \\h`), f.useRelativePosition && (z = `${z} \\p`), this.root.push(z);
|
|
6208
6208
|
}
|
|
6209
6209
|
}
|
|
6210
6210
|
class Po extends Bt {
|
|
@@ -6247,8 +6247,8 @@ Actual: ` + T.attribValue);
|
|
|
6247
6247
|
}
|
|
6248
6248
|
}
|
|
6249
6249
|
class Jr extends r {
|
|
6250
|
-
constructor({ space: t, count: f, separate:
|
|
6251
|
-
super("w:cols"), this.root.push(new Yr({ space: t === void 0 ? void 0 : (0, n.Jd)(t), count: f === void 0 ? void 0 : (0, n.vH)(f), separate:
|
|
6250
|
+
constructor({ space: t, count: f, separate: z, equalWidth: J, children: tt }) {
|
|
6251
|
+
super("w:cols"), this.root.push(new Yr({ space: t === void 0 ? void 0 : (0, n.Jd)(t), count: f === void 0 ? void 0 : (0, n.vH)(f), separate: z, equalWidth: J })), !J && tt && tt.forEach(((ct) => this.addChildElement(ct)));
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
6254
|
(function(e) {
|
|
@@ -6260,8 +6260,8 @@ Actual: ` + T.attribValue);
|
|
|
6260
6260
|
}
|
|
6261
6261
|
}
|
|
6262
6262
|
class tn extends r {
|
|
6263
|
-
constructor(t, f,
|
|
6264
|
-
super("w:docGrid"), this.root.push(new Qr({ type:
|
|
6263
|
+
constructor(t, f, z) {
|
|
6264
|
+
super("w:docGrid"), this.root.push(new Qr({ type: z, linePitch: (0, n.vH)(t), charSpace: f ? (0, n.vH)(f) : void 0 }));
|
|
6265
6265
|
}
|
|
6266
6266
|
}
|
|
6267
6267
|
(function(e) {
|
|
@@ -6273,8 +6273,8 @@ Actual: ` + T.attribValue);
|
|
|
6273
6273
|
}
|
|
6274
6274
|
}
|
|
6275
6275
|
class rn extends r {
|
|
6276
|
-
constructor({ countBy: t, start: f, restart:
|
|
6277
|
-
super("w:lnNumType"), this.root.push(new en({ countBy: t === void 0 ? void 0 : (0, n.vH)(t), start: f === void 0 ? void 0 : (0, n.vH)(f), restart:
|
|
6276
|
+
constructor({ countBy: t, start: f, restart: z, distance: J }) {
|
|
6277
|
+
super("w:lnNumType"), this.root.push(new en({ countBy: t === void 0 ? void 0 : (0, n.vH)(t), start: f === void 0 ? void 0 : (0, n.vH)(f), restart: z, distance: J === void 0 ? void 0 : (0, n.Jd)(J) }));
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
6280
|
(function(e) {
|
|
@@ -6301,8 +6301,8 @@ Actual: ` + T.attribValue);
|
|
|
6301
6301
|
}
|
|
6302
6302
|
}
|
|
6303
6303
|
class an extends r {
|
|
6304
|
-
constructor(t, f,
|
|
6305
|
-
super("w:pgMar"), this.root.push(new on({ top: (0, n.xb)(t), right: (0, n.Jd)(f), bottom: (0, n.xb)(
|
|
6304
|
+
constructor(t, f, z, J, tt, ct, dt) {
|
|
6305
|
+
super("w:pgMar"), this.root.push(new on({ top: (0, n.xb)(t), right: (0, n.Jd)(f), bottom: (0, n.xb)(z), left: (0, n.Jd)(J), header: (0, n.Jd)(tt), footer: (0, n.Jd)(ct), gutter: (0, n.Jd)(dt) }));
|
|
6306
6306
|
}
|
|
6307
6307
|
}
|
|
6308
6308
|
(function(e) {
|
|
@@ -6314,8 +6314,8 @@ Actual: ` + T.attribValue);
|
|
|
6314
6314
|
}
|
|
6315
6315
|
}
|
|
6316
6316
|
class un extends r {
|
|
6317
|
-
constructor({ start: t, formatType: f, separator:
|
|
6318
|
-
super("w:pgNumType"), this.root.push(new cn({ start: t === void 0 ? void 0 : (0, n.vH)(t), formatType: f, separator:
|
|
6317
|
+
constructor({ start: t, formatType: f, separator: z }) {
|
|
6318
|
+
super("w:pgNumType"), this.root.push(new cn({ start: t === void 0 ? void 0 : (0, n.vH)(t), formatType: f, separator: z }));
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
6321
|
(function(e) {
|
|
@@ -6327,10 +6327,10 @@ Actual: ` + T.attribValue);
|
|
|
6327
6327
|
}
|
|
6328
6328
|
}
|
|
6329
6329
|
class hn extends r {
|
|
6330
|
-
constructor(t, f,
|
|
6330
|
+
constructor(t, f, z) {
|
|
6331
6331
|
super("w:pgSz");
|
|
6332
|
-
const J =
|
|
6333
|
-
this.root.push(new ln({ width: J ?
|
|
6332
|
+
const J = z === ce.LANDSCAPE, tt = (0, n.Jd)(t), ct = (0, n.Jd)(f);
|
|
6333
|
+
this.root.push(new ln({ width: J ? ct : tt, height: J ? tt : ct, orientation: z }));
|
|
6334
6334
|
}
|
|
6335
6335
|
}
|
|
6336
6336
|
(function(e) {
|
|
@@ -6361,8 +6361,8 @@ Actual: ` + T.attribValue);
|
|
|
6361
6361
|
}
|
|
6362
6362
|
const Gt = { TOP: "1in", RIGHT: "1in", BOTTOM: "1in", LEFT: "1in", HEADER: 708, FOOTER: 708, GUTTER: 0 }, ve = { WIDTH: 11906, HEIGHT: 16838, ORIENTATION: ce.PORTRAIT };
|
|
6363
6363
|
class mn extends r {
|
|
6364
|
-
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation:
|
|
6365
|
-
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER, rc), this.addHeaderFooterGroup(ae.FOOTER, nc), ds && this.root.push(new fn(ds)), this.root.push(new hn(t, f,
|
|
6364
|
+
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: z = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ct = Gt.BOTTOM, left: dt = Gt.LEFT, header: vt = Gt.HEADER, footer: pt = Gt.FOOTER, gutter: gt = Gt.GUTTER } = {}, pageNumbers: Lt = {}, borders: St, textDirection: Dt } = {}, grid: { linePitch: zt = 360, charSpace: Pt, type: Kt } = {}, headerWrapperGroup: rc = {}, footerWrapperGroup: nc = {}, lineNumbers: us, titlePage: ls, verticalAlign: hs, column: ps, type: ds } = {}) {
|
|
6365
|
+
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER, rc), this.addHeaderFooterGroup(ae.FOOTER, nc), ds && this.root.push(new fn(ds)), this.root.push(new hn(t, f, z)), this.root.push(new an(J, tt, ct, dt, vt, pt, gt)), St && this.root.push(new sn(St)), us && this.root.push(new rn(us)), this.root.push(new un(Lt)), ps && this.root.push(new Jr(ps)), hs && this.root.push(new Ve(hs)), ls !== void 0 && this.root.push(new B("w:titlePg", ls)), Dt && this.root.push(new pn(Dt)), this.root.push(new tn(zt, Pt, Kt));
|
|
6366
6366
|
}
|
|
6367
6367
|
addHeaderFooterGroup(t, f) {
|
|
6368
6368
|
f.default && this.root.push(new xe(t, { type: Wt.DEFAULT, id: f.default.View.ReferenceId })), f.first && this.root.push(new xe(t, { type: Wt.FIRST, id: f.first.View.ReferenceId })), f.even && this.root.push(new xe(t, { type: Wt.EVEN, id: f.even.View.ReferenceId }));
|
|
@@ -6383,8 +6383,8 @@ Actual: ` + T.attribValue);
|
|
|
6383
6383
|
this.root.push(t);
|
|
6384
6384
|
}
|
|
6385
6385
|
createSectionParagraph(t) {
|
|
6386
|
-
const f = new jt({}),
|
|
6387
|
-
return
|
|
6386
|
+
const f = new jt({}), z = new qt({});
|
|
6387
|
+
return z.push(t), f.addChildElement(z), f;
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
6390
|
class wn extends i {
|
|
@@ -6435,8 +6435,8 @@ Actual: ` + T.attribValue);
|
|
|
6435
6435
|
addRelationship(t) {
|
|
6436
6436
|
this.root.push(t);
|
|
6437
6437
|
}
|
|
6438
|
-
createRelationship(t, f,
|
|
6439
|
-
const tt = new No(`rId${t}`, f,
|
|
6438
|
+
createRelationship(t, f, z, J) {
|
|
6439
|
+
const tt = new No(`rId${t}`, f, z, J);
|
|
6440
6440
|
return this.addRelationship(tt), tt;
|
|
6441
6441
|
}
|
|
6442
6442
|
get RelationshipCount() {
|
|
@@ -6479,15 +6479,15 @@ Actual: ` + T.attribValue);
|
|
|
6479
6479
|
}
|
|
6480
6480
|
class _n extends r {
|
|
6481
6481
|
constructor(t) {
|
|
6482
|
-
var f,
|
|
6483
|
-
super("w:framePr"), this.root.push(new vn({ anchorLock: t.anchorLock, dropCap: t.dropCap, width: t.width, height: t.height, x: t.position ? t.position.x : void 0, y: t.position ? t.position.y : void 0, anchorHorizontal: t.anchor.horizontal, anchorVertical: t.anchor.vertical, spaceHorizontal: (f = t.space) === null || f === void 0 ? void 0 : f.horizontal, spaceVertical: (
|
|
6482
|
+
var f, z;
|
|
6483
|
+
super("w:framePr"), this.root.push(new vn({ anchorLock: t.anchorLock, dropCap: t.dropCap, width: t.width, height: t.height, x: t.position ? t.position.x : void 0, y: t.position ? t.position.y : void 0, anchorHorizontal: t.anchor.horizontal, anchorVertical: t.anchor.vertical, spaceHorizontal: (f = t.space) === null || f === void 0 ? void 0 : f.horizontal, spaceVertical: (z = t.space) === null || z === void 0 ? void 0 : z.vertical, rule: t.rule, alignmentX: t.alignment ? t.alignment.x : void 0, alignmentY: t.alignment ? t.alignment.y : void 0, lines: t.lines, wrap: t.wrap }));
|
|
6484
6484
|
}
|
|
6485
6485
|
}
|
|
6486
6486
|
class qt extends a {
|
|
6487
6487
|
constructor(t) {
|
|
6488
|
-
var f,
|
|
6488
|
+
var f, z;
|
|
6489
6489
|
if (super("w:pPr"), this.numberingReferences = [], !t) return this;
|
|
6490
|
-
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new Hr()), t.frame && this.push(new _n(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(
|
|
6490
|
+
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new Hr()), t.frame && this.push(new _n(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(z = t.numbering.instance) !== null && z !== void 0 ? z : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new F()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new Wo());
|
|
6491
6491
|
const J = [...t.rightTabStop ? [{ type: ie.RIGHT, position: t.rightTabStop }] : [], ...t.tabStops ? t.tabStops : [], ...t.leftTabStop ? [{ type: ie.LEFT, position: t.leftTabStop }] : []];
|
|
6492
6492
|
J.length > 0 && this.push(new Wr(J)), t.bidirectional !== void 0 && this.push(new B("w:bidi", t.bidirectional)), t.spacing && this.push(new zr(t.spacing)), t.indent && this.push(new V(t.indent)), t.contextualSpacing !== void 0 && this.push(new B("w:contextualSpacing", t.contextualSpacing)), t.alignment && this.push(new A(t.alignment)), t.outlineLevel !== void 0 && this.push(new qr(t.outlineLevel)), t.suppressLineNumbers !== void 0 && this.push(new B("w:suppressLineNumbers", t.suppressLineNumbers));
|
|
6493
6493
|
}
|
|
@@ -6504,14 +6504,14 @@ Actual: ` + T.attribValue);
|
|
|
6504
6504
|
if (super("w:p"), typeof t == "string") return this.properties = new qt({}), this.root.push(this.properties), this.root.push(new Yt(t)), this;
|
|
6505
6505
|
if (this.properties = new qt(t), this.root.push(this.properties), t.text && this.root.push(new Yt(t.text)), t.children) for (const f of t.children) if (f instanceof Vr) {
|
|
6506
6506
|
this.root.push(f.start);
|
|
6507
|
-
for (const
|
|
6507
|
+
for (const z of f.children) this.root.push(z);
|
|
6508
6508
|
this.root.push(f.end);
|
|
6509
6509
|
} else this.root.push(f);
|
|
6510
6510
|
}
|
|
6511
6511
|
prepForXml(t) {
|
|
6512
6512
|
for (const f of this.root) if (f instanceof Gr) {
|
|
6513
|
-
const
|
|
6514
|
-
t.viewWrapper.Relationships.createRelationship(J.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", f.options.link, be.EXTERNAL), this.root[
|
|
6513
|
+
const z = this.root.indexOf(f), J = new Ge(f.options.children, (0, Ot.EL)());
|
|
6514
|
+
t.viewWrapper.Relationships.createRelationship(J.linkId, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", f.options.link, be.EXTERNAL), this.root[z] = J;
|
|
6515
6515
|
}
|
|
6516
6516
|
return super.prepForXml(t);
|
|
6517
6517
|
}
|
|
@@ -6599,8 +6599,8 @@ Actual: ` + T.attribValue);
|
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
6601
|
class Ze extends r {
|
|
6602
|
-
constructor(t, f,
|
|
6603
|
-
super("m:naryPr"), t && this.root.push(new An(t)), this.root.push(new Sn()), f || this.root.push(new Jo()),
|
|
6602
|
+
constructor(t, f, z) {
|
|
6603
|
+
super("m:naryPr"), t && this.root.push(new An(t)), this.root.push(new Sn()), f || this.root.push(new Jo()), z || this.root.push(new Zo());
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
6606
|
class te extends r {
|
|
@@ -6778,18 +6778,18 @@ Actual: ` + T.attribValue);
|
|
|
6778
6778
|
}
|
|
6779
6779
|
}
|
|
6780
6780
|
class Vt extends r {
|
|
6781
|
-
constructor(t, { type: f = re.AUTO, size:
|
|
6781
|
+
constructor(t, { type: f = re.AUTO, size: z }) {
|
|
6782
6782
|
super(t);
|
|
6783
|
-
let J =
|
|
6784
|
-
f === re.PERCENTAGE && typeof
|
|
6783
|
+
let J = z;
|
|
6784
|
+
f === re.PERCENTAGE && typeof z == "number" && (J = `${z}%`), this.root.push(new vi({ type: f, size: (0, n.aB)(J) }));
|
|
6785
6785
|
}
|
|
6786
6786
|
}
|
|
6787
6787
|
(function(e) {
|
|
6788
6788
|
e.TABLE = "w:tblCellMar", e.TABLE_CELL = "w:tcMar";
|
|
6789
6789
|
})(Ee || (Ee = {}));
|
|
6790
6790
|
class Pn extends a {
|
|
6791
|
-
constructor(t, { marginUnitType: f = re.DXA, top:
|
|
6792
|
-
super(t),
|
|
6791
|
+
constructor(t, { marginUnitType: f = re.DXA, top: z, left: J, bottom: tt, right: ct }) {
|
|
6792
|
+
super(t), z !== void 0 && this.root.push(new Vt("w:top", { type: f, size: z })), J !== void 0 && this.root.push(new Vt("w:left", { type: f, size: J })), tt !== void 0 && this.root.push(new Vt("w:bottom", { type: f, size: tt })), ct !== void 0 && this.root.push(new Vt("w:right", { type: f, size: ct }));
|
|
6793
6793
|
}
|
|
6794
6794
|
}
|
|
6795
6795
|
class Fn extends a {
|
|
@@ -6871,7 +6871,7 @@ Actual: ` + T.attribValue);
|
|
|
6871
6871
|
}
|
|
6872
6872
|
class Hn extends r {
|
|
6873
6873
|
constructor(t) {
|
|
6874
|
-
var { leftFromText: f, rightFromText:
|
|
6874
|
+
var { leftFromText: f, rightFromText: z, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ct, absoluteVerticalPosition: dt } = t, vt = (function(pt, gt) {
|
|
6875
6875
|
var Lt = {};
|
|
6876
6876
|
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) && gt.indexOf(St) < 0 && (Lt[St] = pt[St]);
|
|
6877
6877
|
if (pt != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
@@ -6880,7 +6880,7 @@ Actual: ` + T.attribValue);
|
|
|
6880
6880
|
}
|
|
6881
6881
|
return Lt;
|
|
6882
6882
|
})(t, ["leftFromText", "rightFromText", "topFromText", "bottomFromText", "absoluteHorizontalPosition", "absoluteVerticalPosition"]);
|
|
6883
|
-
super("w:tblpPr"), this.root.push(new Un(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText:
|
|
6883
|
+
super("w:tblpPr"), this.root.push(new Un(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText: z === void 0 ? void 0 : (0, n.Jd)(z), topFromText: J === void 0 ? void 0 : (0, n.Jd)(J), bottomFromText: tt === void 0 ? void 0 : (0, n.Jd)(tt), absoluteHorizontalPosition: ct === void 0 ? void 0 : (0, n.xb)(ct), absoluteVerticalPosition: dt === void 0 ? void 0 : (0, n.xb)(dt) }, vt))), vt.overlap && this.root.push(new rt("w:tblOverlap", vt.overlap));
|
|
6884
6884
|
}
|
|
6885
6885
|
}
|
|
6886
6886
|
(function(e) {
|
|
@@ -6902,8 +6902,8 @@ Actual: ` + T.attribValue);
|
|
|
6902
6902
|
}
|
|
6903
6903
|
}
|
|
6904
6904
|
class Ii extends r {
|
|
6905
|
-
constructor({ rows: t, width: f, columnWidths:
|
|
6906
|
-
super("w:tbl"), this.root.push(new Wn({ borders: pt ?? {}, width: f ?? { size: 100 }, indent: tt, float:
|
|
6905
|
+
constructor({ rows: t, width: f, columnWidths: z = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ct, layout: dt, style: vt, borders: pt, alignment: gt, visuallyRightToLeft: Lt }) {
|
|
6906
|
+
super("w:tbl"), this.root.push(new Wn({ borders: pt ?? {}, width: f ?? { size: 100 }, indent: tt, float: ct, layout: dt, style: vt, alignment: gt, cellMargin: J, visuallyRightToLeft: Lt })), this.root.push(new yi(z));
|
|
6907
6907
|
for (const St of t) this.root.push(St);
|
|
6908
6908
|
t.forEach(((St, Dt) => {
|
|
6909
6909
|
if (Dt === t.length - 1) return;
|
|
@@ -6951,25 +6951,25 @@ Actual: ` + T.attribValue);
|
|
|
6951
6951
|
this.root.splice(f + 1, 0, t);
|
|
6952
6952
|
}
|
|
6953
6953
|
addCellToColumnIndex(t, f) {
|
|
6954
|
-
const
|
|
6955
|
-
this.addCellToIndex(t,
|
|
6954
|
+
const z = this.columnIndexToRootIndex(f, !0);
|
|
6955
|
+
this.addCellToIndex(t, z - 1);
|
|
6956
6956
|
}
|
|
6957
6957
|
rootIndexToColumnIndex(t) {
|
|
6958
6958
|
if (t < 1 || t >= this.root.length) throw new Error("cell 'rootIndex' should between 1 to " + (this.root.length - 1));
|
|
6959
6959
|
let f = 0;
|
|
6960
|
-
for (let
|
|
6960
|
+
for (let z = 1; z < t; z++) f += this.root[z].options.columnSpan || 1;
|
|
6961
6961
|
return f;
|
|
6962
6962
|
}
|
|
6963
6963
|
columnIndexToRootIndex(t, f = !1) {
|
|
6964
6964
|
if (t < 0) throw new Error("cell 'columnIndex' should not less than zero");
|
|
6965
|
-
let
|
|
6966
|
-
for (;
|
|
6965
|
+
let z = 0, J = 1;
|
|
6966
|
+
for (; z <= t; ) {
|
|
6967
6967
|
if (J >= this.root.length) {
|
|
6968
6968
|
if (f) return this.root.length;
|
|
6969
|
-
throw new Error("cell 'columnIndex' should not great than " + (
|
|
6969
|
+
throw new Error("cell 'columnIndex' should not great than " + (z - 1));
|
|
6970
6970
|
}
|
|
6971
6971
|
const tt = this.root[J];
|
|
6972
|
-
J += 1,
|
|
6972
|
+
J += 1, z += tt && tt.options.columnSpan || 1;
|
|
6973
6973
|
}
|
|
6974
6974
|
return J - 1;
|
|
6975
6975
|
}
|
|
@@ -7079,8 +7079,8 @@ Actual: ` + T.attribValue);
|
|
|
7079
7079
|
}
|
|
7080
7080
|
}
|
|
7081
7081
|
class ar {
|
|
7082
|
-
constructor(t, f,
|
|
7083
|
-
this.media = t, this.footer = new Wi(f,
|
|
7082
|
+
constructor(t, f, z) {
|
|
7083
|
+
this.media = t, this.footer = new Wi(f, z), this.relationships = new le();
|
|
7084
7084
|
}
|
|
7085
7085
|
add(t) {
|
|
7086
7086
|
this.footer.add(t);
|
|
@@ -7120,8 +7120,8 @@ Actual: ` + T.attribValue);
|
|
|
7120
7120
|
constructor(t) {
|
|
7121
7121
|
super("w:footnote"), this.root.push(new ji({ type: t.type, id: t.id }));
|
|
7122
7122
|
for (let f = 0; f < t.children.length; f++) {
|
|
7123
|
-
const
|
|
7124
|
-
f === 0 &&
|
|
7123
|
+
const z = t.children[f];
|
|
7124
|
+
f === 0 && z.addRunToFront(new Gi()), this.root.push(z);
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
@@ -7159,8 +7159,8 @@ Actual: ` + T.attribValue);
|
|
|
7159
7159
|
this.root.push(f);
|
|
7160
7160
|
}
|
|
7161
7161
|
createFootNote(t, f) {
|
|
7162
|
-
const
|
|
7163
|
-
this.root.push(
|
|
7162
|
+
const z = new cr({ id: t, children: f });
|
|
7163
|
+
this.root.push(z);
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
7166
7166
|
class Yi {
|
|
@@ -7191,8 +7191,8 @@ Actual: ` + T.attribValue);
|
|
|
7191
7191
|
}
|
|
7192
7192
|
}
|
|
7193
7193
|
class ur {
|
|
7194
|
-
constructor(t, f,
|
|
7195
|
-
this.media = t, this.header = new Qi(f,
|
|
7194
|
+
constructor(t, f, z) {
|
|
7195
|
+
this.media = t, this.header = new Qi(f, z), this.relationships = new le();
|
|
7196
7196
|
}
|
|
7197
7197
|
add(t) {
|
|
7198
7198
|
return this.header.add(t), this;
|
|
@@ -7215,8 +7215,8 @@ Actual: ` + T.attribValue);
|
|
|
7215
7215
|
this.map = /* @__PURE__ */ new Map();
|
|
7216
7216
|
}
|
|
7217
7217
|
addMedia(t, f) {
|
|
7218
|
-
const
|
|
7219
|
-
return this.map.set(
|
|
7218
|
+
const z = `${(0, Ot.EL)()}.png`, J = { stream: typeof t == "string" ? this.convertDataURIToBinary(t) : t, fileName: z, transformation: { pixels: { x: Math.round(f.width), y: Math.round(f.height) }, emus: { x: Math.round(9525 * f.width), y: Math.round(9525 * f.height) }, flip: f.flip, rotation: f.rotation ? 6e4 * f.rotation : void 0 } };
|
|
7219
|
+
return this.map.set(z, J), J;
|
|
7220
7220
|
}
|
|
7221
7221
|
addImage(t, f) {
|
|
7222
7222
|
this.map.set(t, f);
|
|
@@ -7225,8 +7225,8 @@ Actual: ` + T.attribValue);
|
|
|
7225
7225
|
return Array.from(this.map.values());
|
|
7226
7226
|
}
|
|
7227
7227
|
convertDataURIToBinary(t) {
|
|
7228
|
-
const f = ";base64,",
|
|
7229
|
-
return typeof atob == "function" ? new Uint8Array(atob(t.substring(
|
|
7228
|
+
const f = ";base64,", z = t.indexOf(f) + f.length;
|
|
7229
|
+
return typeof atob == "function" ? new Uint8Array(atob(t.substring(z)).split("").map(((J) => J.charCodeAt(0)))) : new (ut(8764)).Buffer(t, "base64");
|
|
7230
7230
|
}
|
|
7231
7231
|
}
|
|
7232
7232
|
const ta = "";
|
|
@@ -7268,8 +7268,8 @@ Actual: ` + T.attribValue);
|
|
|
7268
7268
|
}
|
|
7269
7269
|
}
|
|
7270
7270
|
class pr extends r {
|
|
7271
|
-
constructor({ level: t, format: f, text:
|
|
7272
|
-
if (super("w:lvl"), this.root.push(new lt("w:start", (0, n.vH)(tt))), f && this.root.push(new ra(f)), dt && this.root.push(new oa(dt)), vt && this.root.push(new ia()),
|
|
7271
|
+
constructor({ level: t, format: f, text: z, alignment: J = h.START, start: tt = 1, style: ct, suffix: dt, isLegalNumberingStyle: vt }) {
|
|
7272
|
+
if (super("w:lvl"), this.root.push(new lt("w:start", (0, n.vH)(tt))), f && this.root.push(new ra(f)), dt && this.root.push(new oa(dt)), vt && this.root.push(new ia()), z && this.root.push(new na(z)), this.root.push(new sa(J)), this.paragraphProperties = new qt(ct && ct.paragraph), this.runProperties = new Et(ct && ct.run), this.root.push(this.paragraphProperties), this.root.push(this.runProperties), t > 9) throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");
|
|
7273
7273
|
this.root.push(new ea({ ilvl: (0, n.vH)(t), tentative: 1 }));
|
|
7274
7274
|
}
|
|
7275
7275
|
}
|
|
@@ -7290,7 +7290,7 @@ Actual: ` + T.attribValue);
|
|
|
7290
7290
|
class dr extends r {
|
|
7291
7291
|
constructor(t, f) {
|
|
7292
7292
|
super("w:abstractNum"), this.root.push(new ua({ abstractNumId: (0, n.vH)(t), restartNumberingAfterBreak: 0 })), this.root.push(new ca("hybridMultilevel")), this.id = t;
|
|
7293
|
-
for (const
|
|
7293
|
+
for (const z of f) this.root.push(new Xn(z));
|
|
7294
7294
|
}
|
|
7295
7295
|
}
|
|
7296
7296
|
class la extends r {
|
|
@@ -7333,7 +7333,7 @@ Actual: ` + T.attribValue);
|
|
|
7333
7333
|
super("w:numbering"), this.abstractNumberingMap = /* @__PURE__ */ new Map(), this.concreteNumberingMap = /* @__PURE__ */ new Map(), this.referenceConfigMap = /* @__PURE__ */ new Map(), this.root.push(new Qt({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" }));
|
|
7334
7334
|
const f = new dr((0, Ot.NY)(), [{ level: 0, format: Ut.BULLET, text: "●", alignment: h.LEFT, style: { paragraph: { indent: { left: (0, Ot.vw)(0.5), hanging: (0, Ot.vw)(0.25) } } } }, { level: 1, format: Ut.BULLET, text: "○", alignment: h.LEFT, style: { paragraph: { indent: { left: (0, Ot.vw)(1), hanging: (0, Ot.vw)(0.25) } } } }, { level: 2, format: Ut.BULLET, text: "■", alignment: h.LEFT, style: { paragraph: { indent: { left: 2160, hanging: (0, Ot.vw)(0.25) } } } }, { level: 3, format: Ut.BULLET, text: "●", alignment: h.LEFT, style: { paragraph: { indent: { left: 2880, hanging: (0, Ot.vw)(0.25) } } } }, { level: 4, format: Ut.BULLET, text: "○", alignment: h.LEFT, style: { paragraph: { indent: { left: 3600, hanging: (0, Ot.vw)(0.25) } } } }, { level: 5, format: Ut.BULLET, text: "■", alignment: h.LEFT, style: { paragraph: { indent: { left: 4320, hanging: (0, Ot.vw)(0.25) } } } }, { level: 6, format: Ut.BULLET, text: "●", alignment: h.LEFT, style: { paragraph: { indent: { left: 5040, hanging: (0, Ot.vw)(0.25) } } } }, { level: 7, format: Ut.BULLET, text: "●", alignment: h.LEFT, style: { paragraph: { indent: { left: 5760, hanging: (0, Ot.vw)(0.25) } } } }, { level: 8, format: Ut.BULLET, text: "●", alignment: h.LEFT, style: { paragraph: { indent: { left: 6480, hanging: (0, Ot.vw)(0.25) } } } }]);
|
|
7335
7335
|
this.concreteNumberingMap.set("default-bullet-numbering", new fr({ numId: 1, abstractNumId: f.id, reference: "default-bullet-numbering", instance: 0, overrideLevel: { num: 0, start: 1 } })), this.abstractNumberingMap.set("default-bullet-numbering", f);
|
|
7336
|
-
for (const
|
|
7336
|
+
for (const z of t.config) this.abstractNumberingMap.set(z.reference, new dr((0, Ot.NY)(), z.levels)), this.referenceConfigMap.set(z.reference, z.levels);
|
|
7337
7337
|
}
|
|
7338
7338
|
prepForXml(t) {
|
|
7339
7339
|
for (const f of this.abstractNumberingMap.values()) this.root.push(f);
|
|
@@ -7341,11 +7341,11 @@ Actual: ` + T.attribValue);
|
|
|
7341
7341
|
return super.prepForXml(t);
|
|
7342
7342
|
}
|
|
7343
7343
|
createConcreteNumberingInstance(t, f) {
|
|
7344
|
-
const
|
|
7345
|
-
if (!
|
|
7344
|
+
const z = this.abstractNumberingMap.get(t);
|
|
7345
|
+
if (!z) return;
|
|
7346
7346
|
const J = `${t}-${f}`;
|
|
7347
7347
|
if (this.concreteNumberingMap.has(J)) return;
|
|
7348
|
-
const tt = this.referenceConfigMap.get(t),
|
|
7348
|
+
const tt = this.referenceConfigMap.get(t), ct = tt && tt[0].start, dt = { numId: (0, Ot.NY)(), abstractNumId: z.id, reference: t, instance: f, overrideLevel: ct && Number.isInteger(ct) ? { num: 0, start: ct } : { num: 0, start: 1 } };
|
|
7349
7349
|
this.concreteNumberingMap.set(J, new fr(dt));
|
|
7350
7350
|
}
|
|
7351
7351
|
get ConcreteNumbering() {
|
|
@@ -7377,8 +7377,8 @@ Actual: ` + T.attribValue);
|
|
|
7377
7377
|
}
|
|
7378
7378
|
class ba extends r {
|
|
7379
7379
|
constructor(t) {
|
|
7380
|
-
var f,
|
|
7381
|
-
super("w:settings"), this.root.push(new ya({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" })), this.root.push(new B("w:displayBackgroundShape", !0)), t.trackRevisions !== void 0 && this.root.push(new B("w:trackRevisions", t.trackRevisions)), t.evenAndOddHeaders !== void 0 && this.root.push(new B("w:evenAndOddHeaders", t.evenAndOddHeaders)), t.updateFields !== void 0 && this.root.push(new B("w:updateFields", t.updateFields)), this.root.push(new wa(Object.assign(Object.assign({}, (f = t.compatibility) !== null && f !== void 0 ? f : {}), { version: (tt = (J = (
|
|
7380
|
+
var f, z, J, tt;
|
|
7381
|
+
super("w:settings"), this.root.push(new ya({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" })), this.root.push(new B("w:displayBackgroundShape", !0)), t.trackRevisions !== void 0 && this.root.push(new B("w:trackRevisions", t.trackRevisions)), t.evenAndOddHeaders !== void 0 && this.root.push(new B("w:evenAndOddHeaders", t.evenAndOddHeaders)), t.updateFields !== void 0 && this.root.push(new B("w:updateFields", t.updateFields)), this.root.push(new wa(Object.assign(Object.assign({}, (f = t.compatibility) !== null && f !== void 0 ? f : {}), { version: (tt = (J = (z = t.compatibility) === null || z === void 0 ? void 0 : z.version) !== null && J !== void 0 ? J : t.compatibilityModeVersion) !== null && tt !== void 0 ? tt : 15 })));
|
|
7382
7382
|
}
|
|
7383
7383
|
}
|
|
7384
7384
|
class Yn extends i {
|
|
@@ -7511,11 +7511,11 @@ Actual: ` + T.attribValue);
|
|
|
7511
7511
|
class rs {
|
|
7512
7512
|
newInstance(t) {
|
|
7513
7513
|
const f = (0, g.xml2js)(t, { compact: !1 });
|
|
7514
|
-
let
|
|
7515
|
-
for (const tt of f.elements || []) tt.name === "w:styles" && (
|
|
7516
|
-
if (
|
|
7517
|
-
const J =
|
|
7518
|
-
return new Ae({ initialStyles: new N(
|
|
7514
|
+
let z;
|
|
7515
|
+
for (const tt of f.elements || []) tt.name === "w:styles" && (z = tt);
|
|
7516
|
+
if (z === void 0) throw new Error("can not find styles element");
|
|
7517
|
+
const J = z.elements || [];
|
|
7518
|
+
return new Ae({ initialStyles: new N(z.attributes), importedStyles: J.map(((tt) => I(tt))) });
|
|
7519
7519
|
}
|
|
7520
7520
|
}
|
|
7521
7521
|
class ns {
|
|
@@ -7526,8 +7526,8 @@ Actual: ` + T.attribValue);
|
|
|
7526
7526
|
}
|
|
7527
7527
|
class ss {
|
|
7528
7528
|
constructor(t, f = {}) {
|
|
7529
|
-
var
|
|
7530
|
-
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new Pi(Object.assign(Object.assign({}, t), { creator: (
|
|
7529
|
+
var z, J, tt, ct, dt, vt, pt;
|
|
7530
|
+
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new Pi(Object.assign(Object.assign({}, t), { creator: (z = t.creator) !== null && z !== void 0 ? z : "Un-named", revision: (J = t.revision) !== null && J !== void 0 ? J : 1, lastModifiedBy: (tt = t.lastModifiedBy) !== null && tt !== void 0 ? tt : "Un-named" })), this.numbering = new Zn(t.numbering ? t.numbering : { config: [] }), this.comments = new Mr((ct = t.comments) !== null && ct !== void 0 ? ct : { children: [] }), this.fileRelationships = new le(), this.customProperties = new Hi((dt = t.customProperties) !== null && dt !== void 0 ? dt : []), this.appProperties = new Ci(), this.footnotesWrapper = new Yi(), this.contentTypes = new Di(), this.documentWrapper = new xn({ background: t.background }), this.settings = new ba({ compatibilityModeVersion: t.compatabilityModeVersion, compatibility: t.compatibility, evenAndOddHeaders: !!t.evenAndOddHeaderAndFooters, trackRevisions: (vt = t.features) === null || vt === void 0 ? void 0 : vt.trackRevisions, updateFields: (pt = t.features) === null || pt === void 0 ? void 0 : pt.updateFields }), this.media = f.template && f.template.media ? f.template.media : new lr(), f.template && (this.currentRelationshipId = f.template.currentRelationshipId + 1), f.template && t.externalStyles) throw Error("can not use both template and external styles");
|
|
7531
7531
|
if (f.template && f.template.styles) {
|
|
7532
7532
|
const gt = new rs();
|
|
7533
7533
|
this.styles = gt.newInstance(f.template.styles);
|
|
@@ -7546,18 +7546,18 @@ Actual: ` + T.attribValue);
|
|
|
7546
7546
|
for (const gt of t.sections) this.addSection(gt);
|
|
7547
7547
|
if (t.footnotes) for (const gt in t.footnotes) this.footnotesWrapper.View.createFootNote(parseFloat(gt), t.footnotes[gt].children);
|
|
7548
7548
|
}
|
|
7549
|
-
addSection({ headers: t = {}, footers: f = {}, children:
|
|
7549
|
+
addSection({ headers: t = {}, footers: f = {}, children: z, properties: J }) {
|
|
7550
7550
|
this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({}, J), { headerWrapperGroup: { default: t.default ? this.createHeader(t.default) : void 0, first: t.first ? this.createHeader(t.first) : void 0, even: t.even ? this.createHeader(t.even) : void 0 }, footerWrapperGroup: { default: f.default ? this.createFooter(f.default) : void 0, first: f.first ? this.createFooter(f.first) : void 0, even: f.even ? this.createFooter(f.even) : void 0 } }));
|
|
7551
|
-
for (const tt of
|
|
7551
|
+
for (const tt of z) this.documentWrapper.View.add(tt);
|
|
7552
7552
|
}
|
|
7553
7553
|
createHeader(t) {
|
|
7554
7554
|
const f = new ur(this.media, this.currentRelationshipId++);
|
|
7555
|
-
for (const
|
|
7555
|
+
for (const z of t.options.children) f.add(z);
|
|
7556
7556
|
return this.addHeaderToDocument(f), f;
|
|
7557
7557
|
}
|
|
7558
7558
|
createFooter(t) {
|
|
7559
7559
|
const f = new ar(this.media, this.currentRelationshipId++);
|
|
7560
|
-
for (const
|
|
7560
|
+
for (const z of t.options.children) f.add(z);
|
|
7561
7561
|
return this.addFooterToDocument(f), f;
|
|
7562
7562
|
}
|
|
7563
7563
|
addHeaderToDocument(t, f = Wt.DEFAULT) {
|
|
@@ -7617,7 +7617,7 @@ Actual: ` + T.attribValue);
|
|
|
7617
7617
|
constructor(t = {}) {
|
|
7618
7618
|
super("w:instrText"), this.properties = t, this.root.push(new L({ space: d.PRESERVE }));
|
|
7619
7619
|
let f = "TOC";
|
|
7620
|
-
this.properties.captionLabel && (f = `${f} \\a "${this.properties.captionLabel}"`), this.properties.entriesFromBookmark && (f = `${f} \\b "${this.properties.entriesFromBookmark}"`), this.properties.captionLabelIncludingNumbers && (f = `${f} \\c "${this.properties.captionLabelIncludingNumbers}"`), this.properties.sequenceAndPageNumbersSeparator && (f = `${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`), this.properties.tcFieldIdentifier && (f = `${f} \\f "${this.properties.tcFieldIdentifier}"`), this.properties.hyperlink && (f = `${f} \\h`), this.properties.tcFieldLevelRange && (f = `${f} \\l "${this.properties.tcFieldLevelRange}"`), this.properties.pageNumbersEntryLevelsRange && (f = `${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`), this.properties.headingStyleRange && (f = `${f} \\o "${this.properties.headingStyleRange}"`), this.properties.entryAndPageNumberSeparator && (f = `${f} \\p "${this.properties.entryAndPageNumberSeparator}"`), this.properties.seqFieldIdentifierForPrefix && (f = `${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`), this.properties.stylesWithLevels && this.properties.stylesWithLevels.length && (f = `${f} \\t "${this.properties.stylesWithLevels.map(((
|
|
7620
|
+
this.properties.captionLabel && (f = `${f} \\a "${this.properties.captionLabel}"`), this.properties.entriesFromBookmark && (f = `${f} \\b "${this.properties.entriesFromBookmark}"`), this.properties.captionLabelIncludingNumbers && (f = `${f} \\c "${this.properties.captionLabelIncludingNumbers}"`), this.properties.sequenceAndPageNumbersSeparator && (f = `${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`), this.properties.tcFieldIdentifier && (f = `${f} \\f "${this.properties.tcFieldIdentifier}"`), this.properties.hyperlink && (f = `${f} \\h`), this.properties.tcFieldLevelRange && (f = `${f} \\l "${this.properties.tcFieldLevelRange}"`), this.properties.pageNumbersEntryLevelsRange && (f = `${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`), this.properties.headingStyleRange && (f = `${f} \\o "${this.properties.headingStyleRange}"`), this.properties.entryAndPageNumberSeparator && (f = `${f} \\p "${this.properties.entryAndPageNumberSeparator}"`), this.properties.seqFieldIdentifierForPrefix && (f = `${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`), this.properties.stylesWithLevels && this.properties.stylesWithLevels.length && (f = `${f} \\t "${this.properties.stylesWithLevels.map(((z) => `${z.styleName},${z.level}`)).join(",")}"`), this.properties.useAppliedParagraphOutlineLevel && (f = `${f} \\u`), this.properties.preserveTabInEntries && (f = `${f} \\w`), this.properties.preserveNewLineInEntries && (f = `${f} \\x`), this.properties.hideTabAndPageNumbersInWebView && (f = `${f} \\z`), this.root.push(f);
|
|
7621
7621
|
}
|
|
7622
7622
|
}
|
|
7623
7623
|
class Ma extends r {
|
|
@@ -7633,10 +7633,10 @@ Actual: ` + T.attribValue);
|
|
|
7633
7633
|
class Ha extends r {
|
|
7634
7634
|
constructor(t = "Table of Contents", f) {
|
|
7635
7635
|
super("w:sdt"), this.root.push(new Ua(t));
|
|
7636
|
-
const
|
|
7637
|
-
|
|
7636
|
+
const z = new Ma(), J = new jt({ children: [new Bt({ children: [new T(!0), new Ba(f), new o()] })] });
|
|
7637
|
+
z.addChildElement(J);
|
|
7638
7638
|
const tt = new jt({ children: [new Bt({ children: [new v()] })] });
|
|
7639
|
-
|
|
7639
|
+
z.addChildElement(tt), this.root.push(z);
|
|
7640
7640
|
}
|
|
7641
7641
|
}
|
|
7642
7642
|
class za {
|
|
@@ -7703,13 +7703,13 @@ Actual: ` + T.attribValue);
|
|
|
7703
7703
|
constructor(t) {
|
|
7704
7704
|
if (super("w:r"), this.root.push(new Et(t)), t.children) for (const f of t.children) if (typeof f != "string") this.root.push(f);
|
|
7705
7705
|
else switch (f) {
|
|
7706
|
-
case
|
|
7706
|
+
case P.CURRENT:
|
|
7707
7707
|
this.root.push(new T()), this.root.push(new Va()), this.root.push(new o()), this.root.push(new v());
|
|
7708
7708
|
break;
|
|
7709
|
-
case
|
|
7709
|
+
case P.TOTAL_PAGES:
|
|
7710
7710
|
this.root.push(new T()), this.root.push(new $a()), this.root.push(new o()), this.root.push(new v());
|
|
7711
7711
|
break;
|
|
7712
|
-
case
|
|
7712
|
+
case P.TOTAL_PAGES_IN_SECTION:
|
|
7713
7713
|
this.root.push(new T()), this.root.push(new Xa()), this.root.push(new o()), this.root.push(new v());
|
|
7714
7714
|
break;
|
|
7715
7715
|
default:
|
|
@@ -7719,44 +7719,44 @@ Actual: ` + T.attribValue);
|
|
|
7719
7719
|
if (t.break) for (let f = 0; f < t.break; f++) this.root.splice(1, 0, new $());
|
|
7720
7720
|
}
|
|
7721
7721
|
}
|
|
7722
|
-
var mr =
|
|
7722
|
+
var mr = ut(6085), kt = ut(3479);
|
|
7723
7723
|
class Ya {
|
|
7724
7724
|
format(t, f = {}) {
|
|
7725
|
-
const
|
|
7726
|
-
if (
|
|
7725
|
+
const z = t.prepForXml(f);
|
|
7726
|
+
if (z) return z;
|
|
7727
7727
|
throw Error("XMLComponent did not format correctly");
|
|
7728
7728
|
}
|
|
7729
7729
|
}
|
|
7730
7730
|
class Ja {
|
|
7731
|
-
replace(t, f,
|
|
7731
|
+
replace(t, f, z) {
|
|
7732
7732
|
let J = t;
|
|
7733
|
-
return f.forEach(((tt,
|
|
7734
|
-
J = J.replace(new RegExp(`{${tt.fileName}}`, "g"), (
|
|
7733
|
+
return f.forEach(((tt, ct) => {
|
|
7734
|
+
J = J.replace(new RegExp(`{${tt.fileName}}`, "g"), (z + ct).toString());
|
|
7735
7735
|
})), J;
|
|
7736
7736
|
}
|
|
7737
7737
|
getMediaData(t, f) {
|
|
7738
|
-
return f.Array.filter(((
|
|
7738
|
+
return f.Array.filter(((z) => t.search(`{${z.fileName}}`) > 0));
|
|
7739
7739
|
}
|
|
7740
7740
|
}
|
|
7741
7741
|
class Qa {
|
|
7742
7742
|
replace(t, f) {
|
|
7743
|
-
let
|
|
7744
|
-
for (const J of f)
|
|
7745
|
-
return
|
|
7743
|
+
let z = t;
|
|
7744
|
+
for (const J of f) z = z.replace(new RegExp(`{${J.reference}-${J.instance}}`, "g"), J.numId.toString());
|
|
7745
|
+
return z;
|
|
7746
7746
|
}
|
|
7747
7747
|
}
|
|
7748
|
-
var gr, Se = function(e, t, f,
|
|
7748
|
+
var gr, Se = function(e, t, f, z) {
|
|
7749
7749
|
return new (f || (f = Promise))((function(J, tt) {
|
|
7750
|
-
function
|
|
7750
|
+
function ct(pt) {
|
|
7751
7751
|
try {
|
|
7752
|
-
vt(
|
|
7752
|
+
vt(z.next(pt));
|
|
7753
7753
|
} catch (gt) {
|
|
7754
7754
|
tt(gt);
|
|
7755
7755
|
}
|
|
7756
7756
|
}
|
|
7757
7757
|
function dt(pt) {
|
|
7758
7758
|
try {
|
|
7759
|
-
vt(
|
|
7759
|
+
vt(z.throw(pt));
|
|
7760
7760
|
} catch (gt) {
|
|
7761
7761
|
tt(gt);
|
|
7762
7762
|
}
|
|
@@ -7765,9 +7765,9 @@ Actual: ` + T.attribValue);
|
|
|
7765
7765
|
var gt;
|
|
7766
7766
|
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7767
7767
|
Lt(gt);
|
|
7768
|
-
}))).then(
|
|
7768
|
+
}))).then(ct, dt);
|
|
7769
7769
|
}
|
|
7770
|
-
vt((
|
|
7770
|
+
vt((z = z.apply(e, [])).next());
|
|
7771
7771
|
}));
|
|
7772
7772
|
};
|
|
7773
7773
|
(function(e) {
|
|
@@ -7803,56 +7803,56 @@ Actual: ` + T.attribValue);
|
|
|
7803
7803
|
this.formatter = new Ya(), this.imageReplacer = new Ja(), this.numberingReplacer = new Qa();
|
|
7804
7804
|
}
|
|
7805
7805
|
compile(e, t) {
|
|
7806
|
-
const f = new mr(),
|
|
7807
|
-
for (const [, tt] of J) if (Array.isArray(tt)) for (const
|
|
7806
|
+
const f = new mr(), z = this.xmlifyFile(e, t), J = new Map(Object.entries(z));
|
|
7807
|
+
for (const [, tt] of J) if (Array.isArray(tt)) for (const ct of tt) f.file(ct.path, ct.data);
|
|
7808
7808
|
else f.file(tt.path, tt.data);
|
|
7809
7809
|
for (const tt of e.Media.Array) {
|
|
7810
|
-
const
|
|
7811
|
-
f.file(`word/media/${tt.fileName}`,
|
|
7810
|
+
const ct = tt.stream;
|
|
7811
|
+
f.file(`word/media/${tt.fileName}`, ct);
|
|
7812
7812
|
}
|
|
7813
7813
|
return f;
|
|
7814
7814
|
}
|
|
7815
7815
|
xmlifyFile(e, t) {
|
|
7816
|
-
const f = e.Document.Relationships.RelationshipCount + 1,
|
|
7817
|
-
return { Relationships: { data: (J.forEach(((tt,
|
|
7818
|
-
e.Document.Relationships.createRelationship(f +
|
|
7816
|
+
const f = e.Document.Relationships.RelationshipCount + 1, z = kt(this.formatter.format(e.Document.View, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), J = this.imageReplacer.getMediaData(z, e.Media);
|
|
7817
|
+
return { Relationships: { data: (J.forEach(((tt, ct) => {
|
|
7818
|
+
e.Document.Relationships.createRelationship(f + ct, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${tt.fileName}`);
|
|
7819
7819
|
})), kt(this.formatter.format(e.Document.Relationships, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } })), path: "word/_rels/document.xml.rels" }, Document: { data: (() => {
|
|
7820
|
-
const tt = this.imageReplacer.replace(
|
|
7820
|
+
const tt = this.imageReplacer.replace(z, J, f);
|
|
7821
7821
|
return this.numberingReplacer.replace(tt, e.Numbering.ConcreteNumbering);
|
|
7822
7822
|
})(), path: "word/document.xml" }, Styles: { data: (() => {
|
|
7823
7823
|
const tt = kt(this.formatter.format(e.Styles, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } });
|
|
7824
7824
|
return this.numberingReplacer.replace(tt, e.Numbering.ConcreteNumbering);
|
|
7825
|
-
})(), path: "word/styles.xml" }, Properties: { data: kt(this.formatter.format(e.CoreProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/core.xml" }, Numbering: { data: kt(this.formatter.format(e.Numbering, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/numbering.xml" }, FileRelationships: { data: kt(this.formatter.format(e.FileRelationships, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "_rels/.rels" }, HeaderRelationships: e.Headers.map(((tt,
|
|
7825
|
+
})(), path: "word/styles.xml" }, Properties: { data: kt(this.formatter.format(e.CoreProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/core.xml" }, Numbering: { data: kt(this.formatter.format(e.Numbering, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/numbering.xml" }, FileRelationships: { data: kt(this.formatter.format(e.FileRelationships, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "_rels/.rels" }, HeaderRelationships: e.Headers.map(((tt, ct) => {
|
|
7826
7826
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7827
7827
|
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7828
7828
|
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7829
|
-
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/header${
|
|
7830
|
-
})), FooterRelationships: e.Footers.map(((tt,
|
|
7829
|
+
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/header${ct + 1}.xml.rels` };
|
|
7830
|
+
})), FooterRelationships: e.Footers.map(((tt, ct) => {
|
|
7831
7831
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7832
7832
|
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7833
7833
|
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7834
|
-
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/footer${
|
|
7835
|
-
})), Headers: e.Headers.map(((tt,
|
|
7834
|
+
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/footer${ct + 1}.xml.rels` };
|
|
7835
|
+
})), Headers: e.Headers.map(((tt, ct) => {
|
|
7836
7836
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), vt = this.imageReplacer.getMediaData(dt, e.Media), pt = this.imageReplacer.replace(dt, vt, 0);
|
|
7837
|
-
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/header${
|
|
7838
|
-
})), Footers: e.Footers.map(((tt,
|
|
7837
|
+
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/header${ct + 1}.xml` };
|
|
7838
|
+
})), Footers: e.Footers.map(((tt, ct) => {
|
|
7839
7839
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), vt = this.imageReplacer.getMediaData(dt, e.Media), pt = this.imageReplacer.replace(dt, vt, 0);
|
|
7840
|
-
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/footer${
|
|
7840
|
+
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/footer${ct + 1}.xml` };
|
|
7841
7841
|
})), ContentTypes: { data: kt(this.formatter.format(e.ContentTypes, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "[Content_Types].xml" }, CustomProperties: { data: kt(this.formatter.format(e.CustomProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/custom.xml" }, AppProperties: { data: kt(this.formatter.format(e.AppProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/app.xml" }, FootNotes: { data: kt(this.formatter.format(e.FootNotes.View, { viewWrapper: e.FootNotes, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "word/footnotes.xml" }, FootNotesRelationships: { data: kt(this.formatter.format(e.FootNotes.Relationships, { viewWrapper: e.FootNotes, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "word/_rels/footnotes.xml.rels" }, Settings: { data: kt(this.formatter.format(e.Settings, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/settings.xml" }, Comments: { data: kt(this.formatter.format(e.Comments, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/comments.xml" } };
|
|
7842
7842
|
}
|
|
7843
7843
|
}();
|
|
7844
|
-
var oe = function(e, t, f,
|
|
7844
|
+
var oe = function(e, t, f, z) {
|
|
7845
7845
|
return new (f || (f = Promise))((function(J, tt) {
|
|
7846
|
-
function
|
|
7846
|
+
function ct(pt) {
|
|
7847
7847
|
try {
|
|
7848
|
-
vt(
|
|
7848
|
+
vt(z.next(pt));
|
|
7849
7849
|
} catch (gt) {
|
|
7850
7850
|
tt(gt);
|
|
7851
7851
|
}
|
|
7852
7852
|
}
|
|
7853
7853
|
function dt(pt) {
|
|
7854
7854
|
try {
|
|
7855
|
-
vt(
|
|
7855
|
+
vt(z.throw(pt));
|
|
7856
7856
|
} catch (gt) {
|
|
7857
7857
|
tt(gt);
|
|
7858
7858
|
}
|
|
@@ -7861,9 +7861,9 @@ Actual: ` + T.attribValue);
|
|
|
7861
7861
|
var gt;
|
|
7862
7862
|
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7863
7863
|
Lt(gt);
|
|
7864
|
-
}))).then(
|
|
7864
|
+
}))).then(ct, dt);
|
|
7865
7865
|
}
|
|
7866
|
-
vt((
|
|
7866
|
+
vt((z = z.apply(e, [])).next());
|
|
7867
7867
|
}));
|
|
7868
7868
|
};
|
|
7869
7869
|
const tc = { "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header": "header", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer": "footer", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image": "image", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink": "hyperlink" };
|
|
@@ -7874,65 +7874,65 @@ Actual: ` + T.attribValue);
|
|
|
7874
7874
|
class ec {
|
|
7875
7875
|
extract(t) {
|
|
7876
7876
|
return oe(this, void 0, void 0, (function* () {
|
|
7877
|
-
const f = yield mr.loadAsync(t),
|
|
7878
|
-
return { headers: yield this.createHeaders(f, tt,
|
|
7877
|
+
const f = yield mr.loadAsync(t), z = yield f.files["word/document.xml"].async("text"), J = yield f.files["word/_rels/document.xml.rels"].async("text"), tt = this.extractDocumentRefs(z), ct = this.findReferenceFiles(J), dt = new lr();
|
|
7878
|
+
return { headers: yield this.createHeaders(f, tt, ct, dt, 0), footers: yield this.createFooters(f, tt, ct, dt, tt.headers.length), currentRelationshipId: tt.footers.length + tt.headers.length, styles: yield f.files["word/styles.xml"].async("text"), titlePageIsDefined: this.checkIfTitlePageIsDefined(z), media: dt };
|
|
7879
7879
|
}));
|
|
7880
7880
|
}
|
|
7881
|
-
createFooters(t, f,
|
|
7881
|
+
createFooters(t, f, z, J, tt) {
|
|
7882
7882
|
return oe(this, void 0, void 0, (function* () {
|
|
7883
|
-
const
|
|
7884
|
-
const pt =
|
|
7883
|
+
const ct = f.footers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7884
|
+
const pt = z.find(((Pt) => Pt.id === dt.id));
|
|
7885
7885
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7886
7886
|
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, g.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7887
7887
|
if (!Lt.elements) return;
|
|
7888
7888
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:ftr" ? Kt : Pt)), Dt = I(St), zt = new ar(J, tt + vt, Dt);
|
|
7889
7889
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, footer: zt };
|
|
7890
7890
|
})))).filter(((dt) => !!dt));
|
|
7891
|
-
return Promise.all(
|
|
7891
|
+
return Promise.all(ct);
|
|
7892
7892
|
}));
|
|
7893
7893
|
}
|
|
7894
|
-
createHeaders(t, f,
|
|
7894
|
+
createHeaders(t, f, z, J, tt) {
|
|
7895
7895
|
return oe(this, void 0, void 0, (function* () {
|
|
7896
|
-
const
|
|
7897
|
-
const pt =
|
|
7896
|
+
const ct = f.headers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7897
|
+
const pt = z.find(((Pt) => Pt.id === dt.id));
|
|
7898
7898
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7899
7899
|
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, g.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7900
7900
|
if (!Lt.elements) return;
|
|
7901
7901
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:hdr" ? Kt : Pt)), Dt = I(St), zt = new ur(J, tt + vt, Dt);
|
|
7902
7902
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, header: zt };
|
|
7903
7903
|
})))).filter(((dt) => !!dt));
|
|
7904
|
-
return Promise.all(
|
|
7904
|
+
return Promise.all(ct);
|
|
7905
7905
|
}));
|
|
7906
7906
|
}
|
|
7907
|
-
addRelationshipToWrapper(t, f,
|
|
7907
|
+
addRelationshipToWrapper(t, f, z, J) {
|
|
7908
7908
|
return oe(this, void 0, void 0, (function* () {
|
|
7909
7909
|
const tt = f.files[`word/_rels/${t.target}.rels`];
|
|
7910
7910
|
if (!tt) return;
|
|
7911
|
-
const
|
|
7911
|
+
const ct = yield tt.async("text"), dt = this.findReferenceFiles(ct).filter(((pt) => pt.type === Ie.IMAGE)), vt = this.findReferenceFiles(ct).filter(((pt) => pt.type === Ie.HYPERLINK));
|
|
7912
7912
|
for (const pt of dt) {
|
|
7913
7913
|
const gt = mr.support.arraybuffer ? "arraybuffer" : "nodebuffer", Lt = yield f.files[`word/${pt.target}`].async(gt), St = J.addMedia(Lt, { width: 100, height: 100 });
|
|
7914
|
-
|
|
7914
|
+
z.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${St.fileName}`);
|
|
7915
7915
|
}
|
|
7916
|
-
for (const pt of vt)
|
|
7916
|
+
for (const pt of vt) z.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", pt.target, be.EXTERNAL);
|
|
7917
7917
|
}));
|
|
7918
7918
|
}
|
|
7919
7919
|
findReferenceFiles(t) {
|
|
7920
7920
|
const f = (0, g.xml2js)(t, { compact: !0 });
|
|
7921
|
-
return (Array.isArray(f.Relationships.Relationship) ? f.Relationships.Relationship : [f.Relationships.Relationship]).map(((
|
|
7922
|
-
if (
|
|
7923
|
-
return { id: this.parseRefId(
|
|
7924
|
-
})).filter(((
|
|
7921
|
+
return (Array.isArray(f.Relationships.Relationship) ? f.Relationships.Relationship : [f.Relationships.Relationship]).map(((z) => {
|
|
7922
|
+
if (z._attributes === void 0) throw Error("relationship element has no attributes");
|
|
7923
|
+
return { id: this.parseRefId(z._attributes.Id), type: tc[z._attributes.Type], target: z._attributes.Target };
|
|
7924
|
+
})).filter(((z) => z.type !== null));
|
|
7925
7925
|
}
|
|
7926
7926
|
extractDocumentRefs(t) {
|
|
7927
|
-
const f = (0, g.xml2js)(t, { compact: !0 })["w:document"]["w:body"]["w:sectPr"],
|
|
7927
|
+
const f = (0, g.xml2js)(t, { compact: !0 })["w:document"]["w:body"]["w:sectPr"], z = f["w:headerReference"];
|
|
7928
7928
|
let J;
|
|
7929
|
-
J =
|
|
7929
|
+
J = z === void 0 ? [] : Array.isArray(z) ? z : [z];
|
|
7930
7930
|
const tt = J.map(((vt) => {
|
|
7931
7931
|
if (vt._attributes === void 0) throw Error("header reference element has no attributes");
|
|
7932
7932
|
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7933
|
-
})),
|
|
7933
|
+
})), ct = f["w:footerReference"];
|
|
7934
7934
|
let dt;
|
|
7935
|
-
return dt =
|
|
7935
|
+
return dt = ct === void 0 ? [] : Array.isArray(ct) ? ct : [ct], { headers: tt, footers: dt.map(((vt) => {
|
|
7936
7936
|
if (vt._attributes === void 0) throw Error("footer reference element has no attributes");
|
|
7937
7937
|
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7938
7938
|
})) };
|
|
@@ -7946,7 +7946,7 @@ Actual: ` + T.attribValue);
|
|
|
7946
7946
|
return parseInt(f[1], 10);
|
|
7947
7947
|
}
|
|
7948
7948
|
}
|
|
7949
|
-
var Ct =
|
|
7949
|
+
var Ct = ut(5575);
|
|
7950
7950
|
})(), xt;
|
|
7951
7951
|
})()));
|
|
7952
7952
|
})(wr)), wr.exports;
|
|
@@ -7964,58 +7964,70 @@ async function lc() {
|
|
|
7964
7964
|
}
|
|
7965
7965
|
async function _c(bt) {
|
|
7966
7966
|
const _t = await cc();
|
|
7967
|
-
return new Promise((ot,
|
|
7968
|
-
const
|
|
7969
|
-
|
|
7967
|
+
return new Promise((ot, ft) => {
|
|
7968
|
+
const ut = new FileReader();
|
|
7969
|
+
ut.onload = async (xt) => {
|
|
7970
7970
|
try {
|
|
7971
|
-
const
|
|
7972
|
-
ot(
|
|
7973
|
-
} catch (
|
|
7974
|
-
|
|
7971
|
+
const H = xt.target?.result, D = await _t.convertToHtml({ arrayBuffer: H });
|
|
7972
|
+
ot(D.value);
|
|
7973
|
+
} catch (H) {
|
|
7974
|
+
ft(new Error(`Failed to import Word document: ${H}`));
|
|
7975
7975
|
}
|
|
7976
|
-
},
|
|
7976
|
+
}, ut.onerror = () => ft(new Error("Failed to read file")), ut.readAsArrayBuffer(bt);
|
|
7977
7977
|
});
|
|
7978
7978
|
}
|
|
7979
7979
|
async function Ec(bt, _t = "document.docx") {
|
|
7980
|
-
const
|
|
7980
|
+
const ft = sc().useClientSideFallback ?? !0, ut = async () => {
|
|
7981
|
+
const H = hc(bt), D = await Nt.Packer.toBlob(H);
|
|
7982
|
+
ws(D, _t);
|
|
7983
|
+
}, xt = oc("exportWord");
|
|
7984
|
+
if (!xt) {
|
|
7985
|
+
if (!ft)
|
|
7986
|
+
throw new Error("Failed to export to Word: no API is configured (set apiUrl) and client-side export is turned off");
|
|
7987
|
+
try {
|
|
7988
|
+
await ut();
|
|
7989
|
+
} catch (H) {
|
|
7990
|
+
throw new Error(`Failed to export to Word: ${H}`);
|
|
7991
|
+
}
|
|
7992
|
+
return;
|
|
7993
|
+
}
|
|
7981
7994
|
try {
|
|
7982
|
-
const
|
|
7995
|
+
const H = ic(), D = await fetch(xt, {
|
|
7983
7996
|
method: "POST",
|
|
7984
7997
|
headers: {
|
|
7985
7998
|
"Content-Type": "application/json",
|
|
7986
|
-
...
|
|
7999
|
+
...H
|
|
7987
8000
|
},
|
|
7988
8001
|
body: JSON.stringify({
|
|
7989
8002
|
htmlContent: bt,
|
|
7990
8003
|
filename: _t
|
|
7991
8004
|
})
|
|
7992
8005
|
});
|
|
7993
|
-
if (!
|
|
7994
|
-
const
|
|
7995
|
-
throw new Error(
|
|
8006
|
+
if (!D.ok) {
|
|
8007
|
+
const a = await D.json().catch(() => ({ error: "Unknown error" }));
|
|
8008
|
+
throw new Error(a.error || "Failed to export document");
|
|
7996
8009
|
}
|
|
7997
|
-
const
|
|
7998
|
-
ws(
|
|
7999
|
-
} catch (
|
|
8000
|
-
if (
|
|
8001
|
-
console.warn("API export failed, falling back to client-side generation:",
|
|
8010
|
+
const r = await D.blob();
|
|
8011
|
+
ws(r, _t);
|
|
8012
|
+
} catch (H) {
|
|
8013
|
+
if (ft) {
|
|
8014
|
+
console.warn("API export failed, falling back to client-side generation:", H);
|
|
8002
8015
|
try {
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
throw new Error(`Failed to export to Word (both API and client-side): ${xt}`);
|
|
8016
|
+
await ut(), console.info("✅ Document exported successfully using client-side generation");
|
|
8017
|
+
} catch (D) {
|
|
8018
|
+
throw new Error(`Failed to export to Word (both API and client-side): ${D}`);
|
|
8007
8019
|
}
|
|
8008
8020
|
} else
|
|
8009
|
-
throw new Error(`Failed to export to Word via API: ${
|
|
8021
|
+
throw new Error(`Failed to export to Word via API: ${H}`);
|
|
8010
8022
|
}
|
|
8011
8023
|
}
|
|
8012
8024
|
async function Tc(bt, _t = "document.pdf", ot) {
|
|
8013
8025
|
try {
|
|
8014
|
-
const
|
|
8026
|
+
const ut = (await uc()).default, xt = new ut({
|
|
8015
8027
|
orientation: "portrait",
|
|
8016
8028
|
unit: "mm",
|
|
8017
8029
|
format: "a4"
|
|
8018
|
-
}),
|
|
8030
|
+
}), H = 20, D = xt.internal.pageSize.getWidth(), r = xt.internal.pageSize.getHeight(), a = D - 2 * H, i = r - 2 * H;
|
|
8019
8031
|
if (ot) {
|
|
8020
8032
|
const l = ot.style.position, g = ot.style.overflow, I = ot.style.height, p = ot.style.maxHeight;
|
|
8021
8033
|
ot.style.position = "relative", ot.style.overflow = "visible", ot.style.height = "auto", ot.style.maxHeight = "none", ot.offsetHeight;
|
|
@@ -8036,27 +8048,27 @@ async function Tc(bt, _t = "document.pdf", ot) {
|
|
|
8036
8048
|
ot.style.position = l, ot.style.overflow = g, ot.style.height = I, ot.style.maxHeight = p;
|
|
8037
8049
|
const y = _.toDataURL("image/png"), h = a, u = _.height * h / _.width;
|
|
8038
8050
|
if (u <= i)
|
|
8039
|
-
xt.addImage(y, "PNG",
|
|
8051
|
+
xt.addImage(y, "PNG", H, H, h, u);
|
|
8040
8052
|
else {
|
|
8041
8053
|
const m = _.height / u, E = m * i, O = Math.ceil(_.height / E);
|
|
8042
8054
|
for (let M = 0; M < O; M++) {
|
|
8043
8055
|
M > 0 && xt.addPage();
|
|
8044
8056
|
const d = document.createElement("canvas"), b = d.getContext("2d");
|
|
8045
8057
|
d.width = _.width;
|
|
8046
|
-
const C = M * E, x = _.height - C,
|
|
8047
|
-
d.height =
|
|
8058
|
+
const C = M * E, x = _.height - C, P = Math.min(E, x);
|
|
8059
|
+
d.height = P, b.drawImage(
|
|
8048
8060
|
_,
|
|
8049
8061
|
0,
|
|
8050
8062
|
C,
|
|
8051
8063
|
_.width,
|
|
8052
|
-
|
|
8064
|
+
P,
|
|
8053
8065
|
0,
|
|
8054
8066
|
0,
|
|
8055
8067
|
_.width,
|
|
8056
|
-
|
|
8068
|
+
P
|
|
8057
8069
|
);
|
|
8058
|
-
const n = d.toDataURL("image/png"), B =
|
|
8059
|
-
xt.addImage(n, "PNG",
|
|
8070
|
+
const n = d.toDataURL("image/png"), B = P / m;
|
|
8071
|
+
xt.addImage(n, "PNG", H, H, h, Math.min(B, i));
|
|
8060
8072
|
}
|
|
8061
8073
|
}
|
|
8062
8074
|
} catch (S) {
|
|
@@ -8065,21 +8077,21 @@ async function Tc(bt, _t = "document.pdf", ot) {
|
|
|
8065
8077
|
} else {
|
|
8066
8078
|
const l = bc(bt).split(`
|
|
8067
8079
|
`);
|
|
8068
|
-
let g =
|
|
8080
|
+
let g = H;
|
|
8069
8081
|
l.forEach((I) => {
|
|
8070
|
-
g > r -
|
|
8082
|
+
g > r - H && (xt.addPage(), g = H), xt.text(I, H, g), g += 7;
|
|
8071
8083
|
});
|
|
8072
8084
|
}
|
|
8073
8085
|
xt.save(_t);
|
|
8074
|
-
} catch (
|
|
8075
|
-
throw new Error(`Failed to export to PDF: ${
|
|
8086
|
+
} catch (ft) {
|
|
8087
|
+
throw new Error(`Failed to export to PDF: ${ft}`);
|
|
8076
8088
|
}
|
|
8077
8089
|
}
|
|
8078
8090
|
function hc(bt) {
|
|
8079
8091
|
const _t = ys(bt), ot = [];
|
|
8080
|
-
return Array.from(_t.children).forEach((
|
|
8081
|
-
const
|
|
8082
|
-
|
|
8092
|
+
return Array.from(_t.children).forEach((ft) => {
|
|
8093
|
+
const ut = ft.tagName;
|
|
8094
|
+
ut.match(/^H[1-6]$/) ? ot.push(pc(ft)) : ut === "P" ? ot.push(ms(ft)) : ut === "TABLE" ? ot.push(wc(ft)) : ut === "UL" || ut === "OL" ? ot.push(...yc(ft, ut === "OL")) : ut === "BLOCKQUOTE" ? ot.push(dc(ft)) : ut === "PRE" || ut === "CODE" ? ot.push(fc(ft)) : ut === "HR" ? ot.push(mc()) : ft.textContent?.trim() && ot.push(ms(ft));
|
|
8083
8095
|
}), ot.length === 0 && ot.push(new Nt.Paragraph({ children: [new Nt.TextRun({ text: "" })] })), new Nt.Document({
|
|
8084
8096
|
sections: [{
|
|
8085
8097
|
properties: {},
|
|
@@ -8088,7 +8100,7 @@ function hc(bt) {
|
|
|
8088
8100
|
});
|
|
8089
8101
|
}
|
|
8090
8102
|
function pc(bt) {
|
|
8091
|
-
const _t = parseInt(bt.tagName.charAt(1)), ot = fe(bt),
|
|
8103
|
+
const _t = parseInt(bt.tagName.charAt(1)), ot = fe(bt), ft = bs(bt), ut = {
|
|
8092
8104
|
1: 32,
|
|
8093
8105
|
// 16pt
|
|
8094
8106
|
2: 28,
|
|
@@ -8104,45 +8116,45 @@ function pc(bt) {
|
|
|
8104
8116
|
};
|
|
8105
8117
|
return new Nt.Paragraph({
|
|
8106
8118
|
children: ot.map((xt) => {
|
|
8107
|
-
const
|
|
8119
|
+
const H = new Nt.TextRun({
|
|
8108
8120
|
text: xt.text,
|
|
8109
8121
|
bold: xt.bold || _t <= 3,
|
|
8110
8122
|
// H1-H3 are bold by default
|
|
8111
8123
|
italics: xt.italic,
|
|
8112
8124
|
underline: xt.underline ? {} : void 0,
|
|
8113
8125
|
color: xt.color,
|
|
8114
|
-
size:
|
|
8126
|
+
size: ut[_t],
|
|
8115
8127
|
font: xt.font
|
|
8116
8128
|
});
|
|
8117
8129
|
return xt.link ? new Nt.TextRun({
|
|
8118
|
-
...
|
|
8130
|
+
...H,
|
|
8119
8131
|
style: "Hyperlink"
|
|
8120
|
-
}) :
|
|
8132
|
+
}) : H;
|
|
8121
8133
|
}),
|
|
8122
8134
|
heading: `Heading${_t}`,
|
|
8123
|
-
alignment:
|
|
8135
|
+
alignment: ft,
|
|
8124
8136
|
spacing: { before: 240, after: 120 }
|
|
8125
8137
|
});
|
|
8126
8138
|
}
|
|
8127
8139
|
function ms(bt) {
|
|
8128
|
-
const _t = fe(bt), ot = bs(bt),
|
|
8140
|
+
const _t = fe(bt), ot = bs(bt), ft = gc(bt);
|
|
8129
8141
|
return new Nt.Paragraph({
|
|
8130
|
-
children: _t.map((
|
|
8142
|
+
children: _t.map((ut) => {
|
|
8131
8143
|
const xt = {
|
|
8132
|
-
text:
|
|
8133
|
-
bold:
|
|
8134
|
-
italics:
|
|
8135
|
-
underline:
|
|
8136
|
-
strike:
|
|
8137
|
-
color:
|
|
8138
|
-
size:
|
|
8139
|
-
font:
|
|
8140
|
-
highlight:
|
|
8144
|
+
text: ut.text,
|
|
8145
|
+
bold: ut.bold,
|
|
8146
|
+
italics: ut.italic,
|
|
8147
|
+
underline: ut.underline ? {} : void 0,
|
|
8148
|
+
strike: ut.strike,
|
|
8149
|
+
color: ut.color,
|
|
8150
|
+
size: ut.size,
|
|
8151
|
+
font: ut.font,
|
|
8152
|
+
highlight: ut.highlight
|
|
8141
8153
|
};
|
|
8142
|
-
return
|
|
8154
|
+
return ut.link && (xt.style = "Hyperlink"), new Nt.TextRun(xt);
|
|
8143
8155
|
}),
|
|
8144
8156
|
alignment: ot,
|
|
8145
|
-
indent:
|
|
8157
|
+
indent: ft
|
|
8146
8158
|
});
|
|
8147
8159
|
}
|
|
8148
8160
|
function dc(bt) {
|
|
@@ -8206,34 +8218,34 @@ function mc() {
|
|
|
8206
8218
|
}
|
|
8207
8219
|
function fe(bt) {
|
|
8208
8220
|
const _t = [];
|
|
8209
|
-
function ot(
|
|
8210
|
-
if (
|
|
8211
|
-
const xt =
|
|
8221
|
+
function ot(ft, ut = {}) {
|
|
8222
|
+
if (ft.nodeType === Node.TEXT_NODE) {
|
|
8223
|
+
const xt = ft.textContent || "";
|
|
8212
8224
|
(xt.trim() || xt.includes(" ")) && _t.push({
|
|
8213
8225
|
text: xt,
|
|
8214
|
-
...
|
|
8226
|
+
...ut
|
|
8215
8227
|
});
|
|
8216
|
-
} else if (
|
|
8217
|
-
const xt =
|
|
8218
|
-
if ((
|
|
8228
|
+
} else if (ft.nodeType === Node.ELEMENT_NODE) {
|
|
8229
|
+
const xt = ft, H = { ...ut }, D = xt.tagName;
|
|
8230
|
+
if ((D === "STRONG" || D === "B") && (H.bold = !0), (D === "EM" || D === "I") && (H.italic = !0), D === "U" && (H.underline = !0), (D === "S" || D === "STRIKE" || D === "DEL") && (H.strike = !0), D === "A") {
|
|
8219
8231
|
const a = xt.href;
|
|
8220
|
-
a && (
|
|
8232
|
+
a && (H.link = a, H.color = "0563C1", H.underline = !0);
|
|
8221
8233
|
}
|
|
8222
|
-
if (
|
|
8234
|
+
if (D === "BR") {
|
|
8223
8235
|
_t.push({ text: `
|
|
8224
|
-
`, ...
|
|
8236
|
+
`, ...ut });
|
|
8225
8237
|
return;
|
|
8226
8238
|
}
|
|
8227
|
-
|
|
8239
|
+
D === "CODE" && (H.font = "Courier New", xt.closest("pre") || (H.highlight = "F5F5F5")), D === "MARK" && (H.highlight = "FFFF00"), (D === "SUB" || D === "SUP") && (H.size = (H.size || 24) * 0.7);
|
|
8228
8240
|
const r = xt.style;
|
|
8229
|
-
if ((r.fontWeight === "bold" || parseInt(r.fontWeight) >= 600) && (
|
|
8241
|
+
if ((r.fontWeight === "bold" || parseInt(r.fontWeight) >= 600) && (H.bold = !0), r.fontStyle === "italic" && (H.italic = !0), r.textDecoration?.includes("underline") && (H.underline = !0), r.textDecoration?.includes("line-through") && (H.strike = !0), r.color && (H.color = gs(r.color)), r.backgroundColor && (H.highlight = gs(r.backgroundColor)), r.fontSize) {
|
|
8230
8242
|
const a = parseInt(r.fontSize);
|
|
8231
|
-
isNaN(a) || (
|
|
8243
|
+
isNaN(a) || (H.size = Math.round(a * 1.33));
|
|
8232
8244
|
}
|
|
8233
|
-
r.fontFamily && (
|
|
8245
|
+
r.fontFamily && (H.font = r.fontFamily.replace(/['"]/g, "").split(",")[0].trim()), Array.from(xt.childNodes).forEach((a) => ot(a, H));
|
|
8234
8246
|
}
|
|
8235
8247
|
}
|
|
8236
|
-
return Array.from(bt.childNodes).forEach((
|
|
8248
|
+
return Array.from(bt.childNodes).forEach((ft) => ot(ft)), _t.length === 0 && bt.textContent?.trim() && _t.push({ text: bt.textContent.trim() }), _t;
|
|
8237
8249
|
}
|
|
8238
8250
|
function bs(bt) {
|
|
8239
8251
|
const ot = bt.style.textAlign;
|
|
@@ -8243,24 +8255,24 @@ function bs(bt) {
|
|
|
8243
8255
|
if (ot === "left") return "left";
|
|
8244
8256
|
}
|
|
8245
8257
|
function gc(bt) {
|
|
8246
|
-
const ot = bt.style,
|
|
8258
|
+
const ot = bt.style, ft = {};
|
|
8247
8259
|
if (ot.marginLeft || ot.paddingLeft) {
|
|
8248
|
-
const
|
|
8249
|
-
!isNaN(
|
|
8260
|
+
const ut = parseInt(ot.marginLeft || ot.paddingLeft);
|
|
8261
|
+
!isNaN(ut) && ut > 0 && (ft.left = Math.round(ut * 14.4));
|
|
8250
8262
|
}
|
|
8251
8263
|
if (ot.marginRight || ot.paddingRight) {
|
|
8252
|
-
const
|
|
8253
|
-
!isNaN(
|
|
8264
|
+
const ut = parseInt(ot.marginRight || ot.paddingRight);
|
|
8265
|
+
!isNaN(ut) && ut > 0 && (ft.right = Math.round(ut * 14.4));
|
|
8254
8266
|
}
|
|
8255
|
-
return Object.keys(
|
|
8267
|
+
return Object.keys(ft).length > 0 ? ft : void 0;
|
|
8256
8268
|
}
|
|
8257
8269
|
function gs(bt) {
|
|
8258
8270
|
if (bt.startsWith("#"))
|
|
8259
8271
|
return bt.substring(1).toUpperCase();
|
|
8260
8272
|
const _t = bt.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
8261
8273
|
if (_t) {
|
|
8262
|
-
const
|
|
8263
|
-
return (
|
|
8274
|
+
const ft = parseInt(_t[1]), ut = parseInt(_t[2]), xt = parseInt(_t[3]);
|
|
8275
|
+
return (ft << 16 | ut << 8 | xt).toString(16).padStart(6, "0").toUpperCase();
|
|
8264
8276
|
}
|
|
8265
8277
|
return {
|
|
8266
8278
|
black: "000000",
|
|
@@ -8277,15 +8289,15 @@ function gs(bt) {
|
|
|
8277
8289
|
}
|
|
8278
8290
|
function wc(bt) {
|
|
8279
8291
|
const _t = [];
|
|
8280
|
-
return bt.querySelectorAll("tr").forEach((
|
|
8281
|
-
const
|
|
8282
|
-
|
|
8283
|
-
const
|
|
8284
|
-
|
|
8292
|
+
return bt.querySelectorAll("tr").forEach((ft) => {
|
|
8293
|
+
const ut = [];
|
|
8294
|
+
ft.querySelectorAll("td, th").forEach((H) => {
|
|
8295
|
+
const D = fe(H), r = H.tagName === "TH";
|
|
8296
|
+
ut.push(
|
|
8285
8297
|
new Nt.TableCell({
|
|
8286
8298
|
children: [
|
|
8287
8299
|
new Nt.Paragraph({
|
|
8288
|
-
children:
|
|
8300
|
+
children: D.map((a) => {
|
|
8289
8301
|
const i = {
|
|
8290
8302
|
text: a.text,
|
|
8291
8303
|
bold: a.bold || r,
|
|
@@ -8309,7 +8321,7 @@ function wc(bt) {
|
|
|
8309
8321
|
} : void 0
|
|
8310
8322
|
})
|
|
8311
8323
|
);
|
|
8312
|
-
}), _t.push(new Nt.TableRow({ children:
|
|
8324
|
+
}), _t.push(new Nt.TableRow({ children: ut }));
|
|
8313
8325
|
}), new Nt.Table({
|
|
8314
8326
|
rows: _t,
|
|
8315
8327
|
width: {
|
|
@@ -8321,16 +8333,16 @@ function wc(bt) {
|
|
|
8321
8333
|
}
|
|
8322
8334
|
function yc(bt, _t = !1) {
|
|
8323
8335
|
const ot = [];
|
|
8324
|
-
return bt.querySelectorAll("li").forEach((
|
|
8325
|
-
const
|
|
8336
|
+
return bt.querySelectorAll("li").forEach((ut, xt) => {
|
|
8337
|
+
const H = fe(ut), D = _t ? `${xt + 1}.` : "•";
|
|
8326
8338
|
ot.push(
|
|
8327
8339
|
new Nt.Paragraph({
|
|
8328
8340
|
children: [
|
|
8329
8341
|
new Nt.TextRun({
|
|
8330
|
-
text: `${
|
|
8342
|
+
text: `${D} `,
|
|
8331
8343
|
bold: !1
|
|
8332
8344
|
}),
|
|
8333
|
-
...
|
|
8345
|
+
...H.map((r) => {
|
|
8334
8346
|
const a = {
|
|
8335
8347
|
text: r.text,
|
|
8336
8348
|
bold: r.bold,
|
|
@@ -8356,8 +8368,8 @@ function bc(bt) {
|
|
|
8356
8368
|
return ys(bt).textContent || "";
|
|
8357
8369
|
}
|
|
8358
8370
|
function ws(bt, _t) {
|
|
8359
|
-
const ot = URL.createObjectURL(bt),
|
|
8360
|
-
|
|
8371
|
+
const ot = URL.createObjectURL(bt), ft = document.createElement("a");
|
|
8372
|
+
ft.href = ot, ft.download = _t, document.body.appendChild(ft), ft.click(), document.body.removeChild(ft), URL.revokeObjectURL(ot);
|
|
8361
8373
|
}
|
|
8362
8374
|
export {
|
|
8363
8375
|
Tc as exportToPdf,
|