@editora/core 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodePlugin.native-BRBEIqY7.mjs → CodePlugin.native-CRpX2G93.mjs} +2 -2
- package/dist/{DocumentManagerPlugin.native-tZqIa9o5.mjs → DocumentManagerPlugin.native-CaBqCH-p.mjs} +4 -4
- package/dist/MediaManagerPlugin.native-0YFHZfsb.mjs +4823 -0
- package/dist/MediaManagerPlugin.native-mXWWARRX.mjs +4908 -0
- package/dist/confirmDialog-CNqPHT5x.mjs +92 -0
- package/dist/{documentManager-8gnG-uG_.mjs → documentManager-DHLCoWzw.mjs} +490 -509
- package/dist/editora.min.js +2 -2
- package/dist/editora.umd.js +2 -2
- package/dist/index-DHPPVQwx.js +12 -0
- package/dist/{index-BICrB5kg.mjs → index-gI4djib2.mjs} +11 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/plugin-loader.js +2 -2
- package/dist/shared-config-DuA34Iii.mjs +26 -0
- package/dist/webcomponent-core.js +10 -1
- package/dist/webcomponent-core.min.css +1 -1
- package/dist/webcomponent-core.min.js +2 -2
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +1 -1
- package/dist/webcomponent.js +81 -72
- package/dist/webcomponent.min.css +1 -1
- package/dist/webcomponent.min.js +2480 -1262
- package/package.json +1 -1
- package/dist/MediaManagerPlugin.native-BjrEarV6.mjs +0 -1161
- package/dist/MediaManagerPlugin.native-CRi24Mrb.mjs +0 -1057
- package/dist/confirmDialog-BP8hZPpX.mjs +0 -112
- package/dist/index--wO0CZVN.js +0 -12
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { b as oc, a as ic, g as ac } from "./shared-config-DuA34Iii.mjs";
|
|
1
2
|
import { p as bs } from "./sanitizeHtml-DA0ajC6k.mjs";
|
|
2
3
|
var wr = { exports: {} };
|
|
3
4
|
var ms;
|
|
4
|
-
function
|
|
5
|
-
return ms || (ms = 1, (function(
|
|
6
|
-
(function(st,
|
|
7
|
-
|
|
5
|
+
function cc() {
|
|
6
|
+
return ms || (ms = 1, (function(ft, xt) {
|
|
7
|
+
(function(st, wt) {
|
|
8
|
+
ft.exports = wt();
|
|
8
9
|
})(globalThis, (() => (() => {
|
|
9
10
|
var st = { 9742: (W, F) => {
|
|
10
11
|
F.byteLength = function(N) {
|
|
@@ -434,7 +435,7 @@ function ic() {
|
|
|
434
435
|
const j = o.length;
|
|
435
436
|
(!w || w < 0) && (w = 0), (!R || R < 0 || R > j) && (R = j);
|
|
436
437
|
let X = "";
|
|
437
|
-
for (let Z = w; Z < R; ++Z) X +=
|
|
438
|
+
for (let Z = w; Z < R; ++Z) X += mt[o[Z]];
|
|
438
439
|
return X;
|
|
439
440
|
}
|
|
440
441
|
function c(o, w, R) {
|
|
@@ -757,7 +758,7 @@ function ic() {
|
|
|
757
758
|
function yt(o) {
|
|
758
759
|
return o != o;
|
|
759
760
|
}
|
|
760
|
-
const
|
|
761
|
+
const mt = (function() {
|
|
761
762
|
const o = "0123456789abcdef", w = new Array(256);
|
|
762
763
|
for (let R = 0; R < 16; ++R) {
|
|
763
764
|
const j = 16 * R;
|
|
@@ -3123,15 +3124,15 @@ function ic() {
|
|
|
3123
3124
|
V = P.heap[1], P.heap[1] = P.heap[P.heap_len--], rt(P, T, 1), $ = P.heap[1], P.heap[--P.heap_max] = V, P.heap[--P.heap_max] = $, T[2 * K] = T[2 * V] + T[2 * $], P.depth[K] = (P.depth[V] >= P.depth[$] ? P.depth[V] : P.depth[$]) + 1, T[2 * V + 1] = T[2 * $ + 1] = K, P.heap[1] = K++, rt(P, T, 1);
|
|
3124
3125
|
while (P.heap_len >= 2);
|
|
3125
3126
|
P.heap[--P.heap_max] = P.heap[1], (function(ot, ht) {
|
|
3126
|
-
var nt, it, yt,
|
|
3127
|
-
for (
|
|
3128
|
-
for (o[2 * ot.heap[ot.heap_max] + 1] = 0, nt = ot.heap_max + 1; nt < 573; nt++) (
|
|
3127
|
+
var nt, it, yt, mt, Tt, Ft, o = 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, bt = 0;
|
|
3128
|
+
for (mt = 0; mt <= 15; mt++) ot.bl_count[mt] = 0;
|
|
3129
|
+
for (o[2 * ot.heap[ot.heap_max] + 1] = 0, nt = ot.heap_max + 1; nt < 573; nt++) (mt = o[2 * o[2 * (it = ot.heap[nt]) + 1] + 1] + 1) > et && (mt = et, bt++), o[2 * it + 1] = mt, it > w || (ot.bl_count[mt]++, Tt = 0, it >= Z && (Tt = X[it - Z]), Ft = o[2 * it], ot.opt_len += Ft * (mt + Tt), j && (ot.static_len += Ft * (R[2 * it + 1] + Tt)));
|
|
3129
3130
|
if (bt !== 0) {
|
|
3130
3131
|
do {
|
|
3131
|
-
for (
|
|
3132
|
-
ot.bl_count[
|
|
3132
|
+
for (mt = et - 1; ot.bl_count[mt] === 0; ) mt--;
|
|
3133
|
+
ot.bl_count[mt]--, ot.bl_count[mt + 1] += 2, ot.bl_count[et]--, bt -= 2;
|
|
3133
3134
|
} while (bt > 0);
|
|
3134
|
-
for (
|
|
3135
|
+
for (mt = et; mt !== 0; mt--) for (it = ot.bl_count[mt]; it !== 0; ) (yt = ot.heap[--nt]) > w || (o[2 * yt + 1] !== mt && (ot.opt_len += (mt - o[2 * yt + 1]) * o[2 * yt], o[2 * yt + 1] = mt), it--);
|
|
3135
3136
|
}
|
|
3136
3137
|
})(P, z), B(T, Y, P.bl_count);
|
|
3137
3138
|
}
|
|
@@ -3487,7 +3488,7 @@ function ic() {
|
|
|
3487
3488
|
throw new Error(i, "Unknown state: " + i.state);
|
|
3488
3489
|
}
|
|
3489
3490
|
return i.position >= i.bufferCheckPosition && (function(it) {
|
|
3490
|
-
for (var yt = Math.max(a.MAX_BUFFER_LENGTH, 10),
|
|
3491
|
+
for (var yt = Math.max(a.MAX_BUFFER_LENGTH, 10), mt = 0, Tt = 0, Ft = u.length; Tt < Ft; Tt++) {
|
|
3491
3492
|
var o = it[u[Tt]].length;
|
|
3492
3493
|
if (o > yt) switch (u[Tt]) {
|
|
3493
3494
|
case "textNode":
|
|
@@ -3502,9 +3503,9 @@ function ic() {
|
|
|
3502
3503
|
default:
|
|
3503
3504
|
ct(it, "Max buffer length exceeded: " + u[Tt]);
|
|
3504
3505
|
}
|
|
3505
|
-
|
|
3506
|
+
mt = Math.max(mt, o);
|
|
3506
3507
|
}
|
|
3507
|
-
var w = a.MAX_BUFFER_LENGTH -
|
|
3508
|
+
var w = a.MAX_BUFFER_LENGTH - mt;
|
|
3508
3509
|
it.bufferCheckPosition = w + it.position;
|
|
3509
3510
|
})(i), i;
|
|
3510
3511
|
}, resume: function() {
|
|
@@ -3642,7 +3643,7 @@ Actual: ` + T.attribValue);
|
|
|
3642
3643
|
G(T, "onopennamespace", { prefix: R, uri: v.ns[R] });
|
|
3643
3644
|
}));
|
|
3644
3645
|
for (var ot = 0, ht = T.attribList.length; ot < ht; ot++) {
|
|
3645
|
-
var nt = T.attribList[ot], it = nt[0], yt = nt[1],
|
|
3646
|
+
var nt = T.attribList[ot], it = nt[0], yt = nt[1], mt = k(it, !0), Tt = mt.prefix, Ft = mt.local, o = Tt === "" ? "" : v.ns[Tt] || "", w = { name: it, value: yt, prefix: Tt, local: Ft, uri: o };
|
|
3646
3647
|
Tt && Tt !== "xmlns" && !o && (A(T, "Unbound namespace prefix: " + JSON.stringify(Tt)), w.uri = Tt), T.tag.attributes[it] = w, G(T, "onattribute", w);
|
|
3647
3648
|
}
|
|
3648
3649
|
T.attribList.length = 0;
|
|
@@ -3667,8 +3668,8 @@ Actual: ` + T.attribValue);
|
|
|
3667
3668
|
for (var nt in ot.ns) ht[nt] = ot.ns[nt];
|
|
3668
3669
|
var it = T.tags[T.tags.length - 1] || T;
|
|
3669
3670
|
T.opt.xmlns && ot.ns !== it.ns && Object.keys(ot.ns).forEach((function(yt) {
|
|
3670
|
-
var
|
|
3671
|
-
G(T, "onclosenamespace", { prefix: yt, uri:
|
|
3671
|
+
var mt = ot.ns[yt];
|
|
3672
|
+
G(T, "onclosenamespace", { prefix: yt, uri: mt });
|
|
3672
3673
|
}));
|
|
3673
3674
|
}
|
|
3674
3675
|
i === 0 && (T.closedRoot = !0), T.tagName = T.attribValue = T.attribName = "", T.attribList.length = 0, T.state = n.TEXT;
|
|
@@ -3912,15 +3913,15 @@ Actual: ` + T.attribValue);
|
|
|
3912
3913
|
if (v === null) nt.reading = !1, (function(it, yt) {
|
|
3913
3914
|
if (u("onEofChunk"), !yt.ended) {
|
|
3914
3915
|
if (yt.decoder) {
|
|
3915
|
-
var
|
|
3916
|
-
|
|
3916
|
+
var mt = yt.decoder.end();
|
|
3917
|
+
mt && mt.length && (yt.buffer.push(mt), yt.length += yt.objectMode ? 1 : mt.length);
|
|
3917
3918
|
}
|
|
3918
3919
|
yt.ended = !0, yt.sync ? ct(it) : (yt.needReadable = !1, yt.emittedReadable || (yt.emittedReadable = !0, c(it)));
|
|
3919
3920
|
}
|
|
3920
3921
|
})(i, nt);
|
|
3921
3922
|
else if (ot || (ht = (function(it, yt) {
|
|
3922
|
-
var
|
|
3923
|
-
return Tt = yt, p.isBuffer(Tt) || Tt instanceof S || typeof yt == "string" || yt === void 0 || it.objectMode || (
|
|
3923
|
+
var mt, Tt;
|
|
3924
|
+
return Tt = yt, p.isBuffer(Tt) || Tt instanceof S || typeof yt == "string" || yt === void 0 || it.objectMode || (mt = new M("chunk", ["string", "Buffer", "Uint8Array"], yt)), mt;
|
|
3924
3925
|
})(nt, v)), ht) x(i, ht);
|
|
3925
3926
|
else if (nt.objectMode || v && v.length > 0) if (typeof v == "string" || nt.objectMode || Object.getPrototypeOf(v) === p.prototype || (v = (function(it) {
|
|
3926
3927
|
return p.from(it);
|
|
@@ -4039,7 +4040,7 @@ Actual: ` + T.attribValue);
|
|
|
4039
4040
|
u("onend"), i.end();
|
|
4040
4041
|
}
|
|
4041
4042
|
Y.endEmitted ? s.nextTick(ot) : L.once("end", ot), i.on("unpipe", (function w(R, j) {
|
|
4042
|
-
u("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, u("cleanup"), i.removeListener("close", Tt), i.removeListener("finish", Ft), i.removeListener("drain", nt), i.removeListener("error",
|
|
4043
|
+
u("onunpipe"), R === L && j && j.hasUnpiped === !1 && (j.hasUnpiped = !0, u("cleanup"), i.removeListener("close", Tt), i.removeListener("finish", Ft), i.removeListener("drain", nt), i.removeListener("error", mt), i.removeListener("unpipe", w), L.removeListener("end", ht), L.removeListener("end", o), L.removeListener("data", yt), it = !0, !Y.awaitDrain || i._writableState && !i._writableState.needDrain || nt());
|
|
4043
4044
|
}));
|
|
4044
4045
|
var nt = /* @__PURE__ */ (function(w) {
|
|
4045
4046
|
return function() {
|
|
@@ -4054,8 +4055,8 @@ Actual: ` + T.attribValue);
|
|
|
4054
4055
|
var R = i.write(w);
|
|
4055
4056
|
u("dest.write", R), R === !1 && ((Y.pipesCount === 1 && Y.pipes === i || Y.pipesCount > 1 && T(Y.pipes, i) !== -1) && !it && (u("false write response, pause", Y.awaitDrain), Y.awaitDrain++), L.pause());
|
|
4056
4057
|
}
|
|
4057
|
-
function
|
|
4058
|
-
u("onerror", w), o(), i.removeListener("error",
|
|
4058
|
+
function mt(w) {
|
|
4059
|
+
u("onerror", w), o(), i.removeListener("error", mt), m(i, "error") === 0 && x(i, w);
|
|
4059
4060
|
}
|
|
4060
4061
|
function Tt() {
|
|
4061
4062
|
i.removeListener("finish", Ft), o();
|
|
@@ -4069,7 +4070,7 @@ Actual: ` + T.attribValue);
|
|
|
4069
4070
|
return L.on("data", yt), (function(w, R, j) {
|
|
4070
4071
|
if (typeof w.prependListener == "function") return w.prependListener(R, j);
|
|
4071
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);
|
|
4072
|
-
})(i, "error",
|
|
4073
|
+
})(i, "error", mt), i.once("close", Tt), i.once("finish", Ft), i.emit("pipe", L), Y.flowing || (u("pipe resume"), L.resume()), i;
|
|
4073
4074
|
}, B.prototype.unpipe = function(i) {
|
|
4074
4075
|
var v = this._readableState, L = { hasUnpiped: !1 };
|
|
4075
4076
|
if (v.pipesCount === 0) return this;
|
|
@@ -4293,8 +4294,8 @@ Actual: ` + T.attribValue);
|
|
|
4293
4294
|
return T === null ? v = new d() : typeof T == "string" || K.objectMode || (v = new l("chunk", ["string", "Buffer"], T)), !v || (x($, v), s.nextTick(i, v), !1);
|
|
4294
4295
|
})(this, P, A, k)) && (P.pendingcb++, z = (function($, K, T, i, v, L) {
|
|
4295
4296
|
if (!T) {
|
|
4296
|
-
var Y = (function(it, yt,
|
|
4297
|
-
return it.objectMode || it.decodeStrings === !1 || typeof yt != "string" || (yt = S.from(yt,
|
|
4297
|
+
var Y = (function(it, yt, mt) {
|
|
4298
|
+
return it.objectMode || it.decodeStrings === !1 || typeof yt != "string" || (yt = S.from(yt, mt)), yt;
|
|
4298
4299
|
})(K, i, v);
|
|
4299
4300
|
i !== Y && (T = !0, v = "buffer", i = Y);
|
|
4300
4301
|
}
|
|
@@ -5211,11 +5212,11 @@ Actual: ` + T.attribValue);
|
|
|
5211
5212
|
} };
|
|
5212
5213
|
return S;
|
|
5213
5214
|
};
|
|
5214
|
-
} },
|
|
5215
|
+
} }, wt = {};
|
|
5215
5216
|
function at(W) {
|
|
5216
|
-
var F =
|
|
5217
|
+
var F = wt[W];
|
|
5217
5218
|
if (F !== void 0) return F.exports;
|
|
5218
|
-
var r =
|
|
5219
|
+
var r = wt[W] = { exports: {} };
|
|
5219
5220
|
return st[W].call(r.exports, r, r.exports, at), r.exports;
|
|
5220
5221
|
}
|
|
5221
5222
|
at.d = (W, F) => {
|
|
@@ -5232,7 +5233,7 @@ Actual: ` + T.attribValue);
|
|
|
5232
5233
|
};
|
|
5233
5234
|
var _t = {};
|
|
5234
5235
|
return (() => {
|
|
5235
|
-
at.r(_t), at.d(_t, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => u, BaseEmphasisMark: () =>
|
|
5236
|
+
at.r(_t), at.d(_t, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => u, BaseEmphasisMark: () => mt, BaseXmlComponent: () => W, Body: () => wn, Bookmark: () => $r, BookmarkEnd: () => qr, BookmarkStart: () => Xr, Border: () => q, BorderElement: () => U, BorderStyle: () => l, Column: () => Uo, ColumnAttributes: () => yn, ColumnBreak: () => Ao, Columns: () => Qr, ColumnsAttributes: () => Jr, Comment: () => Mr, CommentRangeEnd: () => _o, CommentRangeStart: () => vo, CommentReference: () => Eo, Comments: () => Ur, ConcreteHyperlink: () => Ge, ConcreteNumbering: () => fr, DeletedTextRun: () => Za, DocGridAttributes: () => tn, Document: () => os, DocumentAttributes: () => Qt, DocumentBackground: () => xn, DocumentBackgroundAttributes: () => bn, DocumentDefaults: () => rs, DocumentGrid: () => en, DocumentGridType: () => De, DotEmphasisMark: () => Ft, Drawing: () => Fr, DropCapType: () => $e, EMPTY_OBJECT: () => F, EmphasisMark: () => Tt, EmphasisMarkType: () => C, ExternalHyperlink: () => Vr, File: () => os, FootNoteReferenceRunAttributes: () => is, FootNotes: () => Xn, Footer: () => Ka, FooterWrapper: () => ar, FootnoteReference: () => as, FootnoteReferenceRun: () => Ga, FrameAnchorType: () => Xe, FrameProperties: () => En, FramePropertiesAttributes: () => _n, FrameWrap: () => qe, GridSpan: () => Mn, Header: () => ja, HeaderFooterReference: () => xe, HeaderFooterReferenceType: () => Wt, HeaderFooterType: () => ae, HeaderWrapper: () => ur, HeadingLevel: () => Ne, HeightRule: () => ir, HorizontalPosition: () => Sr, HorizontalPositionAlign: () => E, HorizontalPositionRelativeFrom: () => me, HpsMeasureElement: () => Q, HyperlinkType: () => ke, IgnoreIfEmptyXmlComponent: () => a, ImageRun: () => po, ImportDotx: () => rc, ImportedRootElementAttributes: () => N, ImportedXmlComponent: () => S, Indent: () => V, InitializableXmlComponent: () => y, InsertedTextRun: () => Va, InternalHyperlink: () => ko, LeaderType: () => Ce, Level: () => qn, LevelBase: () => pr, LevelForOverride: () => ca, LevelFormat: () => Ut, LevelOverride: () => Zn, LevelSuffix: () => hr, LineNumberAttributes: () => rn, LineNumberRestartFormat: () => Pe, LineNumberType: () => nn, LineRuleType: () => Jt, Math: () => Ko, MathAccentCharacter: () => Sn, MathAngledBrackets: () => yi, MathBase: () => Mt, MathCurlyBrackets: () => wi, MathDegree: () => kn, MathDenominator: () => Tn, MathFraction: () => $o, MathFunction: () => li, MathFunctionName: () => Dn, MathFunctionProperties: () => Pn, MathIntegral: () => ei, MathLimitLocation: () => In, MathNAryProperties: () => Ze, MathNumerator: () => An, MathPreSubSuperScript: () => oi, MathPreSubSuperScriptProperties: () => On, MathRadical: () => ui, MathRadicalProperties: () => Ln, MathRoundBrackets: () => mi, MathRun: () => Vo, MathSquareBrackets: () => gi, MathSubScript: () => ni, MathSubScriptElement: () => te, MathSubScriptProperties: () => Nn, MathSubSuperScript: () => si, MathSubSuperScriptProperties: () => Cn, MathSum: () => ti, MathSuperScript: () => ri, MathSuperScriptElement: () => ee, MathSuperScriptProperties: () => Rn, Media: () => lr, NumberFormat: () => M, NumberProperties: () => Ke, NumberValueElement: () => lt, Numbering: () => Yn, OnOffElement: () => B, OutlineLevel: () => Zr, OverlapType: () => sr, Packer: () => us, PageBorderDisplay: () => Fe, PageBorderOffsetFrom: () => Be, PageBorderZOrder: () => Me, PageBorders: () => on, PageBreak: () => To, PageBreakBefore: () => zr, PageMargin: () => cn, PageMarginAttributes: () => an, PageNumber: () => D, PageNumberSeparator: () => Ue, PageNumberType: () => ln, PageNumberTypeAttributes: () => un, PageOrientation: () => ce, PageReference: () => Fo, PageSize: () => pn, PageSizeAttributes: () => hn, PageTextDirection: () => dn, PageTextDirectionType: () => He, Paragraph: () => jt, ParagraphProperties: () => qt, ParagraphPropertiesDefaults: () => ts, PrettifyType: () => gr, RelativeHorizontalPosition: () => rr, RelativeVerticalPosition: () => nr, Run: () => Bt, RunFonts: () => Z, RunProperties: () => Et, RunPropertiesChange: () => Rt, RunPropertiesDefaults: () => es, SectionProperties: () => gn, SectionType: () => ze, SectionTypeAttributes: () => fn, SequentialIdentifier: () => mo, Shading: () => it, ShadingType: () => b, SimpleField: () => Br, SimpleMailMergeField: () => yo, SimplePos: () => Er, SpaceType: () => d, Spacing: () => Wr, StringContainer: () => ct, StringEnumValueElement: () => rt, StringValueElement: () => G, Style: () => ue, StyleForCharacter: () => de, StyleForParagraph: () => pe, StyleLevel: () => Wa, Styles: () => Ae, SymbolRun: () => _s, TDirection: () => Un, Tab: () => go, TabAttributes: () => Kr, TabStop: () => jr, TabStopItem: () => Gr, TabStopPosition: () => Oe, TabStopType: () => ie, Table: () => Ri, TableAnchorType: () => er, TableBorders: () => tr, TableCell: () => Qe, TableCellBorders: () => Bn, TableFloatOptionsAttributes: () => Hn, TableFloatProperties: () => zn, TableLayout: () => Wn, TableLayoutType: () => or, TableOfContents: () => za, TableProperties: () => jn, TableRow: () => Ni, TableRowHeight: () => Gn, TableRowHeightAttributes: () => Kn, TableRowProperties: () => Vn, TableWidthElement: () => Vt, TextDirection: () => Ye, TextRun: () => Yt, TextWrappingSide: () => we, TextWrappingType: () => Xt, ThematicBreak: () => P, Type: () => mn, Underline: () => It, UnderlineType: () => x, VerticalAlign: () => Le, VerticalAlignAttributes: () => Yr, VerticalAlignElement: () => Ve, VerticalMerge: () => Je, VerticalMergeType: () => he, VerticalPosition: () => Ir, VerticalPositionAlign: () => O, VerticalPositionRelativeFrom: () => ge, WORKAROUND: () => Ba, WORKAROUND2: () => ea, WORKAROUND3: () => _, WORKAROUND4: () => ii, WidthType: () => re, WrapNone: () => We, WrapSquare: () => Nr, WrapTight: () => Cr, WrapTopAndBottom: () => Or, XmlAttributeComponent: () => s, 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 });
|
|
5236
5237
|
class W {
|
|
5237
5238
|
constructor(t) {
|
|
5238
5239
|
this.rootKey = t;
|
|
@@ -5480,17 +5481,17 @@ Actual: ` + T.attribValue);
|
|
|
5480
5481
|
(function(e) {
|
|
5481
5482
|
e.DOT = "dot";
|
|
5482
5483
|
})(C || (C = {}));
|
|
5483
|
-
class
|
|
5484
|
+
class mt extends r {
|
|
5484
5485
|
constructor(t) {
|
|
5485
5486
|
super("w:em"), this.root.push(new u({ val: t }));
|
|
5486
5487
|
}
|
|
5487
5488
|
}
|
|
5488
|
-
class Tt extends
|
|
5489
|
+
class Tt extends mt {
|
|
5489
5490
|
constructor(t = C.DOT) {
|
|
5490
5491
|
super(t);
|
|
5491
5492
|
}
|
|
5492
5493
|
}
|
|
5493
|
-
class Ft extends
|
|
5494
|
+
class Ft extends mt {
|
|
5494
5495
|
constructor() {
|
|
5495
5496
|
super(C.DOT);
|
|
5496
5497
|
}
|
|
@@ -5608,17 +5609,17 @@ Actual: ` + T.attribValue);
|
|
|
5608
5609
|
super(t);
|
|
5609
5610
|
}
|
|
5610
5611
|
}
|
|
5611
|
-
class
|
|
5612
|
+
class vs extends s {
|
|
5612
5613
|
constructor() {
|
|
5613
5614
|
super(...arguments), this.xmlKeys = { char: "w:char", symbolfont: "w:font" };
|
|
5614
5615
|
}
|
|
5615
5616
|
}
|
|
5616
5617
|
class _r extends r {
|
|
5617
5618
|
constructor(t = "", f = "Wingdings") {
|
|
5618
|
-
super("w:sym"), this.root.push(new
|
|
5619
|
+
super("w:sym"), this.root.push(new vs({ char: t, symbolfont: f }));
|
|
5619
5620
|
}
|
|
5620
5621
|
}
|
|
5621
|
-
class
|
|
5622
|
+
class _s extends Bt {
|
|
5622
5623
|
constructor(t) {
|
|
5623
5624
|
if (typeof t == "string") return super({}), this.root.push(new _r(t)), this;
|
|
5624
5625
|
super(t), this.root.push(new _r(t.char, t.symbolfont));
|
|
@@ -5630,14 +5631,14 @@ Actual: ` + T.attribValue);
|
|
|
5630
5631
|
})(me || (me = {})), (function(e) {
|
|
5631
5632
|
e.BOTTOM_MARGIN = "bottomMargin", e.INSIDE_MARGIN = "insideMargin", e.LINE = "line", e.MARGIN = "margin", e.OUTSIDE_MARGIN = "outsideMargin", e.PAGE = "page", e.PARAGRAPH = "paragraph", e.TOP_MARGIN = "topMargin";
|
|
5632
5633
|
})(ge || (ge = {}));
|
|
5633
|
-
class
|
|
5634
|
+
class Es extends s {
|
|
5634
5635
|
constructor() {
|
|
5635
5636
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5636
5637
|
}
|
|
5637
5638
|
}
|
|
5638
5639
|
class Er extends r {
|
|
5639
5640
|
constructor() {
|
|
5640
|
-
super("wp:simplePos"), this.root.push(new
|
|
5641
|
+
super("wp:simplePos"), this.root.push(new Es({ x: 0, y: 0 }));
|
|
5641
5642
|
}
|
|
5642
5643
|
}
|
|
5643
5644
|
class Tr extends r {
|
|
@@ -5650,178 +5651,178 @@ Actual: ` + T.attribValue);
|
|
|
5650
5651
|
super("wp:posOffset"), this.root.push(t.toString());
|
|
5651
5652
|
}
|
|
5652
5653
|
}
|
|
5653
|
-
class
|
|
5654
|
+
class Ts extends s {
|
|
5654
5655
|
constructor() {
|
|
5655
5656
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5656
5657
|
}
|
|
5657
5658
|
}
|
|
5658
5659
|
class Sr extends r {
|
|
5659
5660
|
constructor(t) {
|
|
5660
|
-
if (super("wp:positionH"), this.root.push(new
|
|
5661
|
+
if (super("wp:positionH"), this.root.push(new Ts({ relativeFrom: t.relative || me.PAGE })), t.align) this.root.push(new Tr(t.align));
|
|
5661
5662
|
else {
|
|
5662
5663
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5663
5664
|
this.root.push(new Ar(t.offset));
|
|
5664
5665
|
}
|
|
5665
5666
|
}
|
|
5666
5667
|
}
|
|
5667
|
-
class
|
|
5668
|
+
class As extends s {
|
|
5668
5669
|
constructor() {
|
|
5669
5670
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5670
5671
|
}
|
|
5671
5672
|
}
|
|
5672
5673
|
class Ir extends r {
|
|
5673
5674
|
constructor(t) {
|
|
5674
|
-
if (super("wp:positionV"), this.root.push(new
|
|
5675
|
+
if (super("wp:positionV"), this.root.push(new As({ relativeFrom: t.relative || ge.PAGE })), t.align) this.root.push(new Tr(t.align));
|
|
5675
5676
|
else {
|
|
5676
5677
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5677
5678
|
this.root.push(new Ar(t.offset));
|
|
5678
5679
|
}
|
|
5679
5680
|
}
|
|
5680
5681
|
}
|
|
5681
|
-
class
|
|
5682
|
+
class Ss extends s {
|
|
5682
5683
|
constructor() {
|
|
5683
5684
|
super(...arguments), this.xmlKeys = { uri: "uri" };
|
|
5684
5685
|
}
|
|
5685
5686
|
}
|
|
5686
|
-
class
|
|
5687
|
+
class Is extends s {
|
|
5687
5688
|
constructor() {
|
|
5688
5689
|
super(...arguments), this.xmlKeys = { embed: "r:embed", cstate: "cstate" };
|
|
5689
5690
|
}
|
|
5690
5691
|
}
|
|
5691
|
-
class
|
|
5692
|
+
class Rs extends r {
|
|
5692
5693
|
constructor(t) {
|
|
5693
|
-
super("a:blip"), this.root.push(new
|
|
5694
|
+
super("a:blip"), this.root.push(new Is({ embed: `rId{${t.fileName}}`, cstate: "none" }));
|
|
5694
5695
|
}
|
|
5695
5696
|
}
|
|
5696
|
-
class
|
|
5697
|
+
class Ns extends r {
|
|
5697
5698
|
constructor() {
|
|
5698
5699
|
super("a:srcRect");
|
|
5699
5700
|
}
|
|
5700
5701
|
}
|
|
5701
|
-
class
|
|
5702
|
+
class Cs extends r {
|
|
5702
5703
|
constructor() {
|
|
5703
5704
|
super("a:fillRect");
|
|
5704
5705
|
}
|
|
5705
5706
|
}
|
|
5706
|
-
class
|
|
5707
|
+
class Os extends r {
|
|
5707
5708
|
constructor() {
|
|
5708
|
-
super("a:stretch"), this.root.push(new
|
|
5709
|
+
super("a:stretch"), this.root.push(new Cs());
|
|
5709
5710
|
}
|
|
5710
5711
|
}
|
|
5711
|
-
class
|
|
5712
|
+
class ks extends r {
|
|
5712
5713
|
constructor(t) {
|
|
5713
|
-
super("pic:blipFill"), this.root.push(new
|
|
5714
|
+
super("pic:blipFill"), this.root.push(new Rs(t)), this.root.push(new Ns()), this.root.push(new Os());
|
|
5714
5715
|
}
|
|
5715
5716
|
}
|
|
5716
|
-
class
|
|
5717
|
+
class Ls extends s {
|
|
5717
5718
|
constructor() {
|
|
5718
5719
|
super(...arguments), this.xmlKeys = { noChangeAspect: "noChangeAspect", noChangeArrowheads: "noChangeArrowheads" };
|
|
5719
5720
|
}
|
|
5720
5721
|
}
|
|
5721
|
-
class
|
|
5722
|
+
class Ds extends r {
|
|
5722
5723
|
constructor() {
|
|
5723
|
-
super("a:picLocks"), this.root.push(new
|
|
5724
|
+
super("a:picLocks"), this.root.push(new Ls({ noChangeAspect: 1, noChangeArrowheads: 1 }));
|
|
5724
5725
|
}
|
|
5725
5726
|
}
|
|
5726
|
-
class
|
|
5727
|
+
class Ps extends r {
|
|
5727
5728
|
constructor() {
|
|
5728
|
-
super("pic:cNvPicPr"), this.root.push(new
|
|
5729
|
+
super("pic:cNvPicPr"), this.root.push(new Ds());
|
|
5729
5730
|
}
|
|
5730
5731
|
}
|
|
5731
|
-
class
|
|
5732
|
+
class Fs extends s {
|
|
5732
5733
|
constructor() {
|
|
5733
5734
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", descr: "descr" };
|
|
5734
5735
|
}
|
|
5735
5736
|
}
|
|
5736
|
-
class
|
|
5737
|
+
class Bs extends r {
|
|
5737
5738
|
constructor() {
|
|
5738
|
-
super("pic:cNvPr"), this.root.push(new
|
|
5739
|
+
super("pic:cNvPr"), this.root.push(new Fs({ id: 0, name: "", descr: "" }));
|
|
5739
5740
|
}
|
|
5740
5741
|
}
|
|
5741
|
-
class
|
|
5742
|
+
class Ms extends r {
|
|
5742
5743
|
constructor() {
|
|
5743
|
-
super("pic:nvPicPr"), this.root.push(new
|
|
5744
|
+
super("pic:nvPicPr"), this.root.push(new Bs()), this.root.push(new Ps());
|
|
5744
5745
|
}
|
|
5745
5746
|
}
|
|
5746
|
-
class
|
|
5747
|
+
class Us extends s {
|
|
5747
5748
|
constructor() {
|
|
5748
5749
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:pic" };
|
|
5749
5750
|
}
|
|
5750
5751
|
}
|
|
5751
|
-
class
|
|
5752
|
+
class Hs extends s {
|
|
5752
5753
|
constructor() {
|
|
5753
5754
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5754
5755
|
}
|
|
5755
5756
|
}
|
|
5756
|
-
class
|
|
5757
|
+
class zs extends r {
|
|
5757
5758
|
constructor(t, f) {
|
|
5758
|
-
super("a:ext"), this.attributes = new
|
|
5759
|
+
super("a:ext"), this.attributes = new Hs({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5759
5760
|
}
|
|
5760
5761
|
}
|
|
5761
|
-
class
|
|
5762
|
+
class Ws extends s {
|
|
5762
5763
|
constructor() {
|
|
5763
5764
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5764
5765
|
}
|
|
5765
5766
|
}
|
|
5766
|
-
class
|
|
5767
|
+
class js extends r {
|
|
5767
5768
|
constructor() {
|
|
5768
|
-
super("a:off"), this.root.push(new
|
|
5769
|
+
super("a:off"), this.root.push(new Ws({ x: 0, y: 0 }));
|
|
5769
5770
|
}
|
|
5770
5771
|
}
|
|
5771
|
-
class
|
|
5772
|
+
class Ks extends s {
|
|
5772
5773
|
constructor() {
|
|
5773
5774
|
super(...arguments), this.xmlKeys = { flipVertical: "flipV", flipHorizontal: "flipH", rotation: "rot" };
|
|
5774
5775
|
}
|
|
5775
5776
|
}
|
|
5776
|
-
class
|
|
5777
|
+
class Gs extends r {
|
|
5777
5778
|
constructor(t) {
|
|
5778
5779
|
var f, H;
|
|
5779
|
-
super("a:xfrm"), this.root.push(new
|
|
5780
|
+
super("a:xfrm"), this.root.push(new Ks({ flipVertical: (f = t.flip) === null || f === void 0 ? void 0 : f.vertical, flipHorizontal: (H = t.flip) === null || H === void 0 ? void 0 : H.horizontal, rotation: t.rotation })), this.extents = new zs(t.emus.x, t.emus.y), this.root.push(new js()), this.root.push(this.extents);
|
|
5780
5781
|
}
|
|
5781
5782
|
}
|
|
5782
|
-
class
|
|
5783
|
+
class Vs extends r {
|
|
5783
5784
|
constructor() {
|
|
5784
5785
|
super("a:avLst");
|
|
5785
5786
|
}
|
|
5786
5787
|
}
|
|
5787
|
-
class
|
|
5788
|
+
class $s extends s {
|
|
5788
5789
|
constructor() {
|
|
5789
5790
|
super(...arguments), this.xmlKeys = { prst: "prst" };
|
|
5790
5791
|
}
|
|
5791
5792
|
}
|
|
5792
|
-
class
|
|
5793
|
+
class Xs extends r {
|
|
5793
5794
|
constructor() {
|
|
5794
|
-
super("a:prstGeom"), this.root.push(new
|
|
5795
|
+
super("a:prstGeom"), this.root.push(new $s({ prst: "rect" })), this.root.push(new Vs());
|
|
5795
5796
|
}
|
|
5796
5797
|
}
|
|
5797
|
-
class
|
|
5798
|
+
class qs extends s {
|
|
5798
5799
|
constructor() {
|
|
5799
5800
|
super(...arguments), this.xmlKeys = { bwMode: "bwMode" };
|
|
5800
5801
|
}
|
|
5801
5802
|
}
|
|
5802
|
-
class
|
|
5803
|
+
class Zs extends r {
|
|
5803
5804
|
constructor(t) {
|
|
5804
|
-
super("pic:spPr"), this.root.push(new
|
|
5805
|
+
super("pic:spPr"), this.root.push(new qs({ bwMode: "auto" })), this.form = new Gs(t), this.root.push(this.form), this.root.push(new Xs());
|
|
5805
5806
|
}
|
|
5806
5807
|
}
|
|
5807
|
-
class
|
|
5808
|
+
class Ys extends r {
|
|
5808
5809
|
constructor(t, f) {
|
|
5809
|
-
super("pic:pic"), this.root.push(new
|
|
5810
|
+
super("pic:pic"), this.root.push(new Us({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.root.push(new Ms()), this.root.push(new ks(t)), this.root.push(new Zs(f));
|
|
5810
5811
|
}
|
|
5811
5812
|
}
|
|
5812
|
-
class
|
|
5813
|
+
class Js extends r {
|
|
5813
5814
|
constructor(t, f) {
|
|
5814
|
-
super("a:graphicData"), this.root.push(new
|
|
5815
|
+
super("a:graphicData"), this.root.push(new Ss({ uri: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.pic = new Ys(t, f), this.root.push(this.pic);
|
|
5815
5816
|
}
|
|
5816
5817
|
}
|
|
5817
|
-
class
|
|
5818
|
+
class Qs extends s {
|
|
5818
5819
|
constructor() {
|
|
5819
5820
|
super(...arguments), this.xmlKeys = { a: "xmlns:a" };
|
|
5820
5821
|
}
|
|
5821
5822
|
}
|
|
5822
5823
|
class Rr extends r {
|
|
5823
5824
|
constructor(t, f) {
|
|
5824
|
-
super("a:graphic"), this.root.push(new
|
|
5825
|
+
super("a:graphic"), this.root.push(new Qs({ a: "http://schemas.openxmlformats.org/drawingml/2006/main" })), this.data = new Js(t, f), this.root.push(this.data);
|
|
5825
5826
|
}
|
|
5826
5827
|
}
|
|
5827
5828
|
(function(e) {
|
|
@@ -5834,91 +5835,91 @@ Actual: ` + T.attribValue);
|
|
|
5834
5835
|
super("wp:wrapNone");
|
|
5835
5836
|
}
|
|
5836
5837
|
}
|
|
5837
|
-
class
|
|
5838
|
+
class to extends s {
|
|
5838
5839
|
constructor() {
|
|
5839
5840
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", wrapText: "wrapText" };
|
|
5840
5841
|
}
|
|
5841
5842
|
}
|
|
5842
5843
|
class Nr extends r {
|
|
5843
5844
|
constructor(t, f = { top: 0, bottom: 0, left: 0, right: 0 }) {
|
|
5844
|
-
super("wp:wrapSquare"), this.root.push(new
|
|
5845
|
+
super("wp:wrapSquare"), this.root.push(new to({ wrapText: t.side || we.BOTH_SIDES, distT: f.top, distB: f.bottom, distL: f.left, distR: f.right }));
|
|
5845
5846
|
}
|
|
5846
5847
|
}
|
|
5847
|
-
class
|
|
5848
|
+
class eo extends s {
|
|
5848
5849
|
constructor() {
|
|
5849
5850
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5850
5851
|
}
|
|
5851
5852
|
}
|
|
5852
5853
|
class Cr extends r {
|
|
5853
5854
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5854
|
-
super("wp:wrapTight"), this.root.push(new
|
|
5855
|
+
super("wp:wrapTight"), this.root.push(new eo({ distT: t.top, distB: t.bottom }));
|
|
5855
5856
|
}
|
|
5856
5857
|
}
|
|
5857
|
-
class
|
|
5858
|
+
class ro extends s {
|
|
5858
5859
|
constructor() {
|
|
5859
5860
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5860
5861
|
}
|
|
5861
5862
|
}
|
|
5862
5863
|
class Or extends r {
|
|
5863
5864
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5864
|
-
super("wp:wrapTopAndBottom"), this.root.push(new
|
|
5865
|
+
super("wp:wrapTopAndBottom"), this.root.push(new ro({ distT: t.top, distB: t.bottom }));
|
|
5865
5866
|
}
|
|
5866
5867
|
}
|
|
5867
|
-
class
|
|
5868
|
+
class no extends s {
|
|
5868
5869
|
constructor() {
|
|
5869
5870
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", description: "descr", title: "title" };
|
|
5870
5871
|
}
|
|
5871
5872
|
}
|
|
5872
5873
|
class kr extends r {
|
|
5873
5874
|
constructor({ name: t, description: f, title: H } = { name: "", description: "", title: "" }) {
|
|
5874
|
-
super("wp:docPr"), this.root.push(new
|
|
5875
|
+
super("wp:docPr"), this.root.push(new no({ id: (0, Ot.NY)(), name: t, description: f, title: H }));
|
|
5875
5876
|
}
|
|
5876
5877
|
}
|
|
5877
|
-
class
|
|
5878
|
+
class so extends s {
|
|
5878
5879
|
constructor() {
|
|
5879
5880
|
super(...arguments), this.xmlKeys = { b: "b", l: "l", r: "r", t: "t" };
|
|
5880
5881
|
}
|
|
5881
5882
|
}
|
|
5882
5883
|
class Lr extends r {
|
|
5883
5884
|
constructor() {
|
|
5884
|
-
super("wp:effectExtent"), this.root.push(new
|
|
5885
|
+
super("wp:effectExtent"), this.root.push(new so({ b: 0, l: 0, r: 0, t: 0 }));
|
|
5885
5886
|
}
|
|
5886
5887
|
}
|
|
5887
|
-
class
|
|
5888
|
+
class oo extends s {
|
|
5888
5889
|
constructor() {
|
|
5889
5890
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5890
5891
|
}
|
|
5891
5892
|
}
|
|
5892
5893
|
class Dr extends r {
|
|
5893
5894
|
constructor(t, f) {
|
|
5894
|
-
super("wp:extent"), this.attributes = new
|
|
5895
|
+
super("wp:extent"), this.attributes = new oo({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5895
5896
|
}
|
|
5896
5897
|
}
|
|
5897
|
-
class
|
|
5898
|
+
class io extends s {
|
|
5898
5899
|
constructor() {
|
|
5899
5900
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:a", noChangeAspect: "noChangeAspect" };
|
|
5900
5901
|
}
|
|
5901
5902
|
}
|
|
5902
|
-
class
|
|
5903
|
+
class ao extends r {
|
|
5903
5904
|
constructor() {
|
|
5904
|
-
super("a:graphicFrameLocks"), this.root.push(new
|
|
5905
|
+
super("a:graphicFrameLocks"), this.root.push(new io({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/main", noChangeAspect: 1 }));
|
|
5905
5906
|
}
|
|
5906
5907
|
}
|
|
5907
5908
|
class Pr extends r {
|
|
5908
5909
|
constructor() {
|
|
5909
|
-
super("wp:cNvGraphicFramePr"), this.root.push(new
|
|
5910
|
+
super("wp:cNvGraphicFramePr"), this.root.push(new ao());
|
|
5910
5911
|
}
|
|
5911
5912
|
}
|
|
5912
|
-
class
|
|
5913
|
+
class co extends s {
|
|
5913
5914
|
constructor() {
|
|
5914
5915
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", allowOverlap: "allowOverlap", behindDoc: "behindDoc", layoutInCell: "layoutInCell", locked: "locked", relativeHeight: "relativeHeight", simplePos: "simplePos" };
|
|
5915
5916
|
}
|
|
5916
5917
|
}
|
|
5917
|
-
class
|
|
5918
|
+
class uo extends r {
|
|
5918
5919
|
constructor(t, f, H) {
|
|
5919
5920
|
super("wp:anchor");
|
|
5920
5921
|
const J = Object.assign({ allowOverlap: !0, behindDocument: !1, lockAnchor: !1, layoutInCell: !0, verticalPosition: {}, horizontalPosition: {} }, H.floating);
|
|
5921
|
-
if (this.root.push(new
|
|
5922
|
+
if (this.root.push(new co({ 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 Er()), this.root.push(new Sr(J.horizontalPosition)), this.root.push(new Ir(J.verticalPosition)), this.root.push(new Dr(f.emus.x, f.emus.y)), this.root.push(new Lr()), H.floating !== void 0 && H.floating.wrap !== void 0) switch (H.floating.wrap.type) {
|
|
5922
5923
|
case Xt.SQUARE:
|
|
5923
5924
|
this.root.push(new Nr(H.floating.wrap, H.floating.margins));
|
|
5924
5925
|
break;
|
|
@@ -5936,22 +5937,22 @@ Actual: ` + T.attribValue);
|
|
|
5936
5937
|
this.root.push(new kr(H.docProperties)), this.root.push(new Pr()), this.root.push(new Rr(t, f));
|
|
5937
5938
|
}
|
|
5938
5939
|
}
|
|
5939
|
-
class
|
|
5940
|
+
class lo extends s {
|
|
5940
5941
|
constructor() {
|
|
5941
5942
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR" };
|
|
5942
5943
|
}
|
|
5943
5944
|
}
|
|
5944
|
-
class
|
|
5945
|
+
class ho extends r {
|
|
5945
5946
|
constructor({ mediaData: t, transform: f, docProperties: H }) {
|
|
5946
|
-
super("wp:inline"), this.root.push(new
|
|
5947
|
+
super("wp:inline"), this.root.push(new lo({ distT: 0, distB: 0, distL: 0, distR: 0 })), this.extent = new Dr(f.emus.x, f.emus.y), this.graphic = new Rr(t, f), this.root.push(this.extent), this.root.push(new Lr()), this.root.push(new kr(H)), this.root.push(new Pr()), this.root.push(this.graphic);
|
|
5947
5948
|
}
|
|
5948
5949
|
}
|
|
5949
5950
|
class Fr extends r {
|
|
5950
5951
|
constructor(t, f = {}) {
|
|
5951
|
-
super("w:drawing"), f.floating ? this.root.push(new
|
|
5952
|
+
super("w:drawing"), f.floating ? this.root.push(new uo(t, t.transformation, f)) : (this.inline = new ho({ mediaData: t, transform: t.transformation, docProperties: f.docProperties }), this.root.push(this.inline));
|
|
5952
5953
|
}
|
|
5953
5954
|
}
|
|
5954
|
-
class
|
|
5955
|
+
class po extends Bt {
|
|
5955
5956
|
constructor(t) {
|
|
5956
5957
|
super({}), this.key = `${(0, Ot.EL)()}.png`;
|
|
5957
5958
|
const f = typeof t.data == "string" ? this.convertDataURIToBinary(t.data) : t.data;
|
|
@@ -5970,37 +5971,37 @@ Actual: ` + T.attribValue);
|
|
|
5970
5971
|
return new (at(8764)).Buffer(t, "base64");
|
|
5971
5972
|
}
|
|
5972
5973
|
}
|
|
5973
|
-
class
|
|
5974
|
+
class fo extends r {
|
|
5974
5975
|
constructor(t) {
|
|
5975
5976
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(`SEQ ${t}`);
|
|
5976
5977
|
}
|
|
5977
5978
|
}
|
|
5978
|
-
class
|
|
5979
|
+
class mo extends Bt {
|
|
5979
5980
|
constructor(t) {
|
|
5980
|
-
super({}), this.root.push(new T(!0)), this.root.push(new
|
|
5981
|
+
super({}), this.root.push(new T(!0)), this.root.push(new fo(t)), this.root.push(new i()), this.root.push(new v());
|
|
5981
5982
|
}
|
|
5982
5983
|
}
|
|
5983
|
-
class
|
|
5984
|
+
class go extends r {
|
|
5984
5985
|
constructor() {
|
|
5985
5986
|
super("w:tab");
|
|
5986
5987
|
}
|
|
5987
5988
|
}
|
|
5988
|
-
class
|
|
5989
|
+
class wo extends s {
|
|
5989
5990
|
constructor() {
|
|
5990
5991
|
super(...arguments), this.xmlKeys = { instr: "w:instr" };
|
|
5991
5992
|
}
|
|
5992
5993
|
}
|
|
5993
5994
|
class Br extends r {
|
|
5994
5995
|
constructor(t, f) {
|
|
5995
|
-
super("w:fldSimple"), this.root.push(new
|
|
5996
|
+
super("w:fldSimple"), this.root.push(new wo({ instr: t })), f !== void 0 && this.root.push(new Yt(f));
|
|
5996
5997
|
}
|
|
5997
5998
|
}
|
|
5998
|
-
class
|
|
5999
|
+
class yo extends Br {
|
|
5999
6000
|
constructor(t) {
|
|
6000
6001
|
super(` MERGEFIELD ${t} `, `«${t}»`);
|
|
6001
6002
|
}
|
|
6002
6003
|
}
|
|
6003
|
-
class
|
|
6004
|
+
class bo extends s {
|
|
6004
6005
|
constructor() {
|
|
6005
6006
|
super(...arguments), this.xmlKeys = { id: "w:id", initials: "w:initials", author: "w:author", date: "w:date" };
|
|
6006
6007
|
}
|
|
@@ -6010,34 +6011,34 @@ Actual: ` + T.attribValue);
|
|
|
6010
6011
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6011
6012
|
}
|
|
6012
6013
|
}
|
|
6013
|
-
class
|
|
6014
|
+
class xo extends s {
|
|
6014
6015
|
constructor() {
|
|
6015
6016
|
super(...arguments), this.xmlKeys = { "xmlns:cx": "xmlns:cx", "xmlns:cx1": "xmlns:cx1", "xmlns:cx2": "xmlns:cx2", "xmlns:cx3": "xmlns:cx3", "xmlns:cx4": "xmlns:cx4", "xmlns:cx5": "xmlns:cx5", "xmlns:cx6": "xmlns:cx6", "xmlns:cx7": "xmlns:cx7", "xmlns:cx8": "xmlns:cx8", "xmlns:mc": "xmlns:mc", "xmlns:aink": "xmlns:aink", "xmlns:am3d": "xmlns:am3d", "xmlns:o": "xmlns:o", "xmlns:r": "xmlns:r", "xmlns:m": "xmlns:m", "xmlns:v": "xmlns:v", "xmlns:wp14": "xmlns:wp14", "xmlns:wp": "xmlns:wp", "xmlns:w10": "xmlns:w10", "xmlns:w": "xmlns:w", "xmlns:w14": "xmlns:w14", "xmlns:w15": "xmlns:w15", "xmlns:w16cex": "xmlns:w16cex", "xmlns:w16cid": "xmlns:w16cid", "xmlns:w16": "xmlns:w16", "xmlns:w16sdtdh": "xmlns:w16sdtdh", "xmlns:w16se": "xmlns:w16se", "xmlns:wpg": "xmlns:wpg", "xmlns:wpi": "xmlns:wpi", "xmlns:wne": "xmlns:wne", "xmlns:wps": "xmlns:wps" };
|
|
6016
6017
|
}
|
|
6017
6018
|
}
|
|
6018
|
-
class
|
|
6019
|
+
class vo extends r {
|
|
6019
6020
|
constructor(t) {
|
|
6020
6021
|
super("w:commentRangeStart"), this.root.push(new je({ id: t }));
|
|
6021
6022
|
}
|
|
6022
6023
|
}
|
|
6023
|
-
class
|
|
6024
|
+
class _o extends r {
|
|
6024
6025
|
constructor(t) {
|
|
6025
6026
|
super("w:commentRangeEnd"), this.root.push(new je({ id: t }));
|
|
6026
6027
|
}
|
|
6027
6028
|
}
|
|
6028
|
-
class
|
|
6029
|
+
class Eo extends r {
|
|
6029
6030
|
constructor(t) {
|
|
6030
6031
|
super("w:commentReference"), this.root.push(new je({ id: t }));
|
|
6031
6032
|
}
|
|
6032
6033
|
}
|
|
6033
6034
|
class Mr extends r {
|
|
6034
6035
|
constructor({ id: t, initials: f, author: H, date: J = /* @__PURE__ */ new Date(), text: tt }) {
|
|
6035
|
-
super("w:comment"), this.root.push(new
|
|
6036
|
+
super("w:comment"), this.root.push(new bo({ id: t, initials: f, author: H, date: J.toISOString() })), this.root.push(new jt({ children: [new Yt(tt)] }));
|
|
6036
6037
|
}
|
|
6037
6038
|
}
|
|
6038
6039
|
class Ur extends r {
|
|
6039
6040
|
constructor({ children: t }) {
|
|
6040
|
-
super("w:comments"), this.root.push(new
|
|
6041
|
+
super("w:comments"), this.root.push(new xo({ "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex", "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", "xmlns:cx2": "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", "xmlns:cx3": "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", "xmlns:cx4": "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", "xmlns:cx5": "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", "xmlns:cx6": "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", "xmlns:cx7": "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", "xmlns:cx8": "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", "xmlns:aink": "http://schemas.microsoft.com/office/drawing/2016/ink", "xmlns:am3d": "http://schemas.microsoft.com/office/drawing/2017/model3d", "xmlns:o": "urn:schemas-microsoft-com:office:office", "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", "xmlns:m": "http://schemas.openxmlformats.org/officeDocument/2006/math", "xmlns:v": "urn:schemas-microsoft-com:vml", "xmlns:wp14": "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", "xmlns:wp": "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "xmlns:w10": "urn:schemas-microsoft-com:office:word", "xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "xmlns:w14": "http://schemas.microsoft.com/office/word/2010/wordml", "xmlns:w15": "http://schemas.microsoft.com/office/word/2012/wordml", "xmlns:w16cex": "http://schemas.microsoft.com/office/word/2018/wordml/cex", "xmlns:w16cid": "http://schemas.microsoft.com/office/word/2016/wordml/cid", "xmlns:w16": "http://schemas.microsoft.com/office/word/2018/wordml", "xmlns:w16sdtdh": "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", "xmlns:w16se": "http://schemas.microsoft.com/office/word/2015/wordml/symex", "xmlns:wpg": "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", "xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml", "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }));
|
|
6041
6042
|
for (const f of t) this.root.push(new Mr(f));
|
|
6042
6043
|
}
|
|
6043
6044
|
}
|
|
@@ -6049,12 +6050,12 @@ Actual: ` + T.attribValue);
|
|
|
6049
6050
|
super("w:br"), this.root.push(new u({ type: t }));
|
|
6050
6051
|
}
|
|
6051
6052
|
}
|
|
6052
|
-
class
|
|
6053
|
+
class To extends Bt {
|
|
6053
6054
|
constructor() {
|
|
6054
6055
|
super({}), this.root.push(new Hr(ye.PAGE));
|
|
6055
6056
|
}
|
|
6056
6057
|
}
|
|
6057
|
-
class
|
|
6058
|
+
class Ao extends Bt {
|
|
6058
6059
|
constructor() {
|
|
6059
6060
|
super({}), this.root.push(new Hr(ye.COLUMN));
|
|
6060
6061
|
}
|
|
@@ -6067,14 +6068,14 @@ Actual: ` + T.attribValue);
|
|
|
6067
6068
|
(function(e) {
|
|
6068
6069
|
e.AT_LEAST = "atLeast", e.EXACTLY = "exactly", e.EXACT = "exact", e.AUTO = "auto";
|
|
6069
6070
|
})(Jt || (Jt = {}));
|
|
6070
|
-
class
|
|
6071
|
+
class So extends s {
|
|
6071
6072
|
constructor() {
|
|
6072
6073
|
super(...arguments), this.xmlKeys = { after: "w:after", before: "w:before", line: "w:line", lineRule: "w:lineRule" };
|
|
6073
6074
|
}
|
|
6074
6075
|
}
|
|
6075
6076
|
class Wr extends r {
|
|
6076
6077
|
constructor(t) {
|
|
6077
|
-
super("w:spacing"), this.root.push(new
|
|
6078
|
+
super("w:spacing"), this.root.push(new So(t));
|
|
6078
6079
|
}
|
|
6079
6080
|
}
|
|
6080
6081
|
(function(e) {
|
|
@@ -6110,21 +6111,21 @@ Actual: ` + T.attribValue);
|
|
|
6110
6111
|
}
|
|
6111
6112
|
class Ke extends r {
|
|
6112
6113
|
constructor(t, f) {
|
|
6113
|
-
super("w:numPr"), this.root.push(new
|
|
6114
|
+
super("w:numPr"), this.root.push(new Io(f)), this.root.push(new Ro(t));
|
|
6114
6115
|
}
|
|
6115
6116
|
}
|
|
6116
|
-
class
|
|
6117
|
+
class Io extends r {
|
|
6117
6118
|
constructor(t) {
|
|
6118
6119
|
if (super("w:ilvl"), 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");
|
|
6119
6120
|
this.root.push(new u({ val: t }));
|
|
6120
6121
|
}
|
|
6121
6122
|
}
|
|
6122
|
-
class
|
|
6123
|
+
class Ro extends r {
|
|
6123
6124
|
constructor(t) {
|
|
6124
6125
|
super("w:numId"), this.root.push(new u({ val: typeof t == "string" ? `{${t}}` : t }));
|
|
6125
6126
|
}
|
|
6126
6127
|
}
|
|
6127
|
-
class
|
|
6128
|
+
class No extends s {
|
|
6128
6129
|
constructor() {
|
|
6129
6130
|
super(...arguments), this.xmlKeys = { id: "Id", type: "Type", target: "Target", targetMode: "TargetMode" };
|
|
6130
6131
|
}
|
|
@@ -6132,12 +6133,12 @@ Actual: ` + T.attribValue);
|
|
|
6132
6133
|
(function(e) {
|
|
6133
6134
|
e.EXTERNAL = "External";
|
|
6134
6135
|
})(be || (be = {}));
|
|
6135
|
-
class
|
|
6136
|
+
class Co extends r {
|
|
6136
6137
|
constructor(t, f, H, J) {
|
|
6137
|
-
super("Relationship"), this.root.push(new
|
|
6138
|
+
super("Relationship"), this.root.push(new No({ id: t, type: f, target: H, targetMode: J }));
|
|
6138
6139
|
}
|
|
6139
6140
|
}
|
|
6140
|
-
class
|
|
6141
|
+
class Oo extends s {
|
|
6141
6142
|
constructor() {
|
|
6142
6143
|
super(...arguments), this.xmlKeys = { id: "r:id", history: "w:history", anchor: "w:anchor" };
|
|
6143
6144
|
}
|
|
@@ -6148,13 +6149,13 @@ Actual: ` + T.attribValue);
|
|
|
6148
6149
|
class Ge extends r {
|
|
6149
6150
|
constructor(t, f, H) {
|
|
6150
6151
|
super("w:hyperlink"), this.linkId = f;
|
|
6151
|
-
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new
|
|
6152
|
+
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new Oo(J);
|
|
6152
6153
|
this.root.push(tt), t.forEach(((ut) => {
|
|
6153
6154
|
this.root.push(ut);
|
|
6154
6155
|
}));
|
|
6155
6156
|
}
|
|
6156
6157
|
}
|
|
6157
|
-
class
|
|
6158
|
+
class ko extends Ge {
|
|
6158
6159
|
constructor(t) {
|
|
6159
6160
|
super(t.children, (0, Ot.EL)(), t.anchor);
|
|
6160
6161
|
}
|
|
@@ -6164,12 +6165,12 @@ Actual: ` + T.attribValue);
|
|
|
6164
6165
|
super("w:externalHyperlink"), this.options = t;
|
|
6165
6166
|
}
|
|
6166
6167
|
}
|
|
6167
|
-
class
|
|
6168
|
+
class Lo extends s {
|
|
6168
6169
|
constructor() {
|
|
6169
6170
|
super(...arguments), this.xmlKeys = { id: "w:id", name: "w:name" };
|
|
6170
6171
|
}
|
|
6171
6172
|
}
|
|
6172
|
-
class
|
|
6173
|
+
class Do extends s {
|
|
6173
6174
|
constructor() {
|
|
6174
6175
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6175
6176
|
}
|
|
@@ -6183,14 +6184,14 @@ Actual: ` + T.attribValue);
|
|
|
6183
6184
|
class Xr extends r {
|
|
6184
6185
|
constructor(t, f) {
|
|
6185
6186
|
super("w:bookmarkStart");
|
|
6186
|
-
const H = new
|
|
6187
|
+
const H = new Lo({ name: t, id: f });
|
|
6187
6188
|
this.root.push(H);
|
|
6188
6189
|
}
|
|
6189
6190
|
}
|
|
6190
6191
|
class qr extends r {
|
|
6191
6192
|
constructor(t) {
|
|
6192
6193
|
super("w:bookmarkEnd");
|
|
6193
|
-
const f = new
|
|
6194
|
+
const f = new Do({ id: t });
|
|
6194
6195
|
this.root.push(f);
|
|
6195
6196
|
}
|
|
6196
6197
|
}
|
|
@@ -6199,16 +6200,16 @@ Actual: ` + T.attribValue);
|
|
|
6199
6200
|
super("w:outlineLvl"), this.level = t, this.root.push(new u({ val: t }));
|
|
6200
6201
|
}
|
|
6201
6202
|
}
|
|
6202
|
-
class
|
|
6203
|
+
class Po extends r {
|
|
6203
6204
|
constructor(t, f = {}) {
|
|
6204
6205
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE }));
|
|
6205
6206
|
let H = `PAGEREF ${t}`;
|
|
6206
6207
|
f.hyperlink && (H = `${H} \\h`), f.useRelativePosition && (H = `${H} \\p`), this.root.push(H);
|
|
6207
6208
|
}
|
|
6208
6209
|
}
|
|
6209
|
-
class
|
|
6210
|
+
class Fo extends Bt {
|
|
6210
6211
|
constructor(t, f = {}) {
|
|
6211
|
-
super({ children: [new T(!0), new
|
|
6212
|
+
super({ children: [new T(!0), new Po(t, f), new v()] });
|
|
6212
6213
|
}
|
|
6213
6214
|
}
|
|
6214
6215
|
(function(e) {
|
|
@@ -6227,7 +6228,7 @@ Actual: ` + T.attribValue);
|
|
|
6227
6228
|
(function(e) {
|
|
6228
6229
|
e.DEFAULT = "default", e.FIRST = "first", e.EVEN = "even";
|
|
6229
6230
|
})(Wt || (Wt = {}));
|
|
6230
|
-
class
|
|
6231
|
+
class Bo extends s {
|
|
6231
6232
|
constructor() {
|
|
6232
6233
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "r:id" };
|
|
6233
6234
|
}
|
|
@@ -6237,7 +6238,7 @@ Actual: ` + T.attribValue);
|
|
|
6237
6238
|
})(ae || (ae = {}));
|
|
6238
6239
|
class xe extends r {
|
|
6239
6240
|
constructor(t, f) {
|
|
6240
|
-
super(t), this.root.push(new
|
|
6241
|
+
super(t), this.root.push(new Bo({ type: f.type || Wt.DEFAULT, id: `rId${f.id}` }));
|
|
6241
6242
|
}
|
|
6242
6243
|
}
|
|
6243
6244
|
class Jr extends s {
|
|
@@ -6300,8 +6301,8 @@ Actual: ` + T.attribValue);
|
|
|
6300
6301
|
}
|
|
6301
6302
|
}
|
|
6302
6303
|
class cn extends r {
|
|
6303
|
-
constructor(t, f, H, J, tt, ut,
|
|
6304
|
-
super("w:pgMar"), this.root.push(new an({ top: (0, n.xb)(t), right: (0, n.Jd)(f), bottom: (0, n.xb)(H), left: (0, n.Jd)(J), header: (0, n.Jd)(tt), footer: (0, n.Jd)(ut), gutter: (0, n.Jd)(
|
|
6304
|
+
constructor(t, f, H, J, tt, ut, dt) {
|
|
6305
|
+
super("w:pgMar"), this.root.push(new an({ top: (0, n.xb)(t), right: (0, n.Jd)(f), bottom: (0, n.xb)(H), left: (0, n.Jd)(J), header: (0, n.Jd)(tt), footer: (0, n.Jd)(ut), gutter: (0, n.Jd)(dt) }));
|
|
6305
6306
|
}
|
|
6306
6307
|
}
|
|
6307
6308
|
(function(e) {
|
|
@@ -6335,14 +6336,14 @@ Actual: ` + T.attribValue);
|
|
|
6335
6336
|
(function(e) {
|
|
6336
6337
|
e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6337
6338
|
})(He || (He = {}));
|
|
6338
|
-
class
|
|
6339
|
+
class Mo extends s {
|
|
6339
6340
|
constructor() {
|
|
6340
6341
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6341
6342
|
}
|
|
6342
6343
|
}
|
|
6343
6344
|
class dn extends r {
|
|
6344
6345
|
constructor(t) {
|
|
6345
|
-
super("w:textDirection"), this.root.push(new
|
|
6346
|
+
super("w:textDirection"), this.root.push(new Mo({ val: t }));
|
|
6346
6347
|
}
|
|
6347
6348
|
}
|
|
6348
6349
|
(function(e) {
|
|
@@ -6360,8 +6361,8 @@ Actual: ` + T.attribValue);
|
|
|
6360
6361
|
}
|
|
6361
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 };
|
|
6362
6363
|
class gn extends r {
|
|
6363
|
-
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = Gt.BOTTOM, left:
|
|
6364
|
-
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER,
|
|
6364
|
+
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = 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: nc = {}, footerWrapperGroup: sc = {}, lineNumbers: ls, titlePage: hs, verticalAlign: ps, column: ds, type: fs } = {}) {
|
|
6365
|
+
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER, nc), this.addHeaderFooterGroup(ae.FOOTER, sc), fs && this.root.push(new mn(fs)), this.root.push(new pn(t, f, H)), this.root.push(new cn(J, tt, ut, dt, vt, pt, gt)), St && this.root.push(new on(St)), ls && this.root.push(new nn(ls)), this.root.push(new ln(Lt)), ds && this.root.push(new Qr(ds)), ps && this.root.push(new Ve(ps)), hs !== void 0 && this.root.push(new B("w:titlePg", hs)), Dt && this.root.push(new dn(Dt)), this.root.push(new en(zt, Pt, Kt));
|
|
6365
6366
|
}
|
|
6366
6367
|
addHeaderFooterGroup(t, f) {
|
|
6367
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 }));
|
|
@@ -6391,7 +6392,7 @@ Actual: ` + T.attribValue);
|
|
|
6391
6392
|
super(...arguments), this.xmlKeys = { width: "w:w", space: "w:space" };
|
|
6392
6393
|
}
|
|
6393
6394
|
}
|
|
6394
|
-
class
|
|
6395
|
+
class Uo extends r {
|
|
6395
6396
|
constructor({ width: t, space: f }) {
|
|
6396
6397
|
super("w:col"), this.root.push(new yn({ width: (0, n.Jd)(t), space: f === void 0 ? void 0 : (0, n.Jd)(f) }));
|
|
6397
6398
|
}
|
|
@@ -6411,7 +6412,7 @@ Actual: ` + T.attribValue);
|
|
|
6411
6412
|
super("w:background"), this.root.push(new bn({ color: t.color === void 0 ? void 0 : (0, n.dg)(t.color), themeColor: t.themeColor, themeShade: t.themeShade === void 0 ? void 0 : (0, n.xD)(t.themeShade), themeTint: t.themeTint === void 0 ? void 0 : (0, n.xD)(t.themeTint) }));
|
|
6412
6413
|
}
|
|
6413
6414
|
}
|
|
6414
|
-
class
|
|
6415
|
+
class Ho extends r {
|
|
6415
6416
|
constructor(t) {
|
|
6416
6417
|
super("w:document"), 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", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", aink: "http://schemas.microsoft.com/office/drawing/2016/ink", am3d: "http://schemas.microsoft.com/office/drawing/2017/model3d", w16cex: "http://schemas.microsoft.com/office/word/2018/wordml/cex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16: "http://schemas.microsoft.com/office/word/2018/wordml", w16sdtdh: "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex", Ignorable: "w14 w15 wp14" })), this.body = new wn(), t.background && this.root.push(new xn(t.background)), this.root.push(this.body);
|
|
6417
6418
|
}
|
|
@@ -6422,20 +6423,20 @@ Actual: ` + T.attribValue);
|
|
|
6422
6423
|
return this.body;
|
|
6423
6424
|
}
|
|
6424
6425
|
}
|
|
6425
|
-
class
|
|
6426
|
+
class zo extends s {
|
|
6426
6427
|
constructor() {
|
|
6427
6428
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6428
6429
|
}
|
|
6429
6430
|
}
|
|
6430
6431
|
class le extends r {
|
|
6431
6432
|
constructor() {
|
|
6432
|
-
super("Relationships"), this.root.push(new
|
|
6433
|
+
super("Relationships"), this.root.push(new zo({ xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" }));
|
|
6433
6434
|
}
|
|
6434
6435
|
addRelationship(t) {
|
|
6435
6436
|
this.root.push(t);
|
|
6436
6437
|
}
|
|
6437
6438
|
createRelationship(t, f, H, J) {
|
|
6438
|
-
const tt = new
|
|
6439
|
+
const tt = new Co(`rId${t}`, f, H, J);
|
|
6439
6440
|
return this.addRelationship(tt), tt;
|
|
6440
6441
|
}
|
|
6441
6442
|
get RelationshipCount() {
|
|
@@ -6444,7 +6445,7 @@ Actual: ` + T.attribValue);
|
|
|
6444
6445
|
}
|
|
6445
6446
|
class vn {
|
|
6446
6447
|
constructor(t) {
|
|
6447
|
-
this.document = new
|
|
6448
|
+
this.document = new Ho(t), this.relationships = new le();
|
|
6448
6449
|
}
|
|
6449
6450
|
get View() {
|
|
6450
6451
|
return this.document;
|
|
@@ -6453,14 +6454,14 @@ Actual: ` + T.attribValue);
|
|
|
6453
6454
|
return this.relationships;
|
|
6454
6455
|
}
|
|
6455
6456
|
}
|
|
6456
|
-
class
|
|
6457
|
+
class Wo extends s {
|
|
6457
6458
|
constructor() {
|
|
6458
6459
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6459
6460
|
}
|
|
6460
6461
|
}
|
|
6461
|
-
class
|
|
6462
|
+
class jo extends r {
|
|
6462
6463
|
constructor() {
|
|
6463
|
-
super("w:wordWrap"), this.root.push(new
|
|
6464
|
+
super("w:wordWrap"), this.root.push(new Wo({ val: 0 }));
|
|
6464
6465
|
}
|
|
6465
6466
|
}
|
|
6466
6467
|
var $e, Xe, qe;
|
|
@@ -6486,7 +6487,7 @@ Actual: ` + T.attribValue);
|
|
|
6486
6487
|
constructor(t) {
|
|
6487
6488
|
var f, H;
|
|
6488
6489
|
if (super("w:pPr"), this.numberingReferences = [], !t) return this;
|
|
6489
|
-
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 zr()), t.frame && this.push(new En(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}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new P()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new
|
|
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 zr()), t.frame && this.push(new En(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}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new P()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new jo());
|
|
6490
6491
|
const J = [...t.rightTabStop ? [{ type: ie.RIGHT, position: t.rightTabStop }] : [], ...t.tabStops ? t.tabStops : [], ...t.leftTabStop ? [{ type: ie.LEFT, position: t.leftTabStop }] : []];
|
|
6491
6492
|
J.length > 0 && this.push(new jr(J)), t.bidirectional !== void 0 && this.push(new B("w:bidi", t.bidirectional)), t.spacing && this.push(new Wr(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 Zr(t.outlineLevel)), t.suppressLineNumbers !== void 0 && this.push(new B("w:suppressLineNumbers", t.suppressLineNumbers));
|
|
6492
6493
|
}
|
|
@@ -6518,20 +6519,20 @@ Actual: ` + T.attribValue);
|
|
|
6518
6519
|
return this.root.splice(1, 0, t), this;
|
|
6519
6520
|
}
|
|
6520
6521
|
}
|
|
6521
|
-
class
|
|
6522
|
+
class Ko extends r {
|
|
6522
6523
|
constructor(t) {
|
|
6523
6524
|
super("m:oMath");
|
|
6524
6525
|
for (const f of t.children) this.root.push(f);
|
|
6525
6526
|
}
|
|
6526
6527
|
}
|
|
6527
|
-
class
|
|
6528
|
+
class Go extends r {
|
|
6528
6529
|
constructor(t) {
|
|
6529
6530
|
super("m:t"), this.root.push(t);
|
|
6530
6531
|
}
|
|
6531
6532
|
}
|
|
6532
|
-
class
|
|
6533
|
+
class Vo extends r {
|
|
6533
6534
|
constructor(t) {
|
|
6534
|
-
super("m:r"), this.root.push(new
|
|
6535
|
+
super("m:r"), this.root.push(new Go(t));
|
|
6535
6536
|
}
|
|
6536
6537
|
}
|
|
6537
6538
|
class Tn extends r {
|
|
@@ -6546,19 +6547,19 @@ Actual: ` + T.attribValue);
|
|
|
6546
6547
|
for (const f of t) this.root.push(f);
|
|
6547
6548
|
}
|
|
6548
6549
|
}
|
|
6549
|
-
class
|
|
6550
|
+
class $o extends r {
|
|
6550
6551
|
constructor(t) {
|
|
6551
6552
|
super("m:f"), this.root.push(new An(t.numerator)), this.root.push(new Tn(t.denominator));
|
|
6552
6553
|
}
|
|
6553
6554
|
}
|
|
6554
|
-
class
|
|
6555
|
+
class Xo extends s {
|
|
6555
6556
|
constructor() {
|
|
6556
6557
|
super(...arguments), this.xmlKeys = { accent: "m:val" };
|
|
6557
6558
|
}
|
|
6558
6559
|
}
|
|
6559
6560
|
class Sn extends r {
|
|
6560
6561
|
constructor(t) {
|
|
6561
|
-
super("m:chr"), this.root.push(new
|
|
6562
|
+
super("m:chr"), this.root.push(new Xo({ accent: t }));
|
|
6562
6563
|
}
|
|
6563
6564
|
}
|
|
6564
6565
|
class Mt extends r {
|
|
@@ -6567,39 +6568,39 @@ Actual: ` + T.attribValue);
|
|
|
6567
6568
|
for (const f of t) this.root.push(f);
|
|
6568
6569
|
}
|
|
6569
6570
|
}
|
|
6570
|
-
class
|
|
6571
|
+
class qo extends s {
|
|
6571
6572
|
constructor() {
|
|
6572
6573
|
super(...arguments), this.xmlKeys = { value: "m:val" };
|
|
6573
6574
|
}
|
|
6574
6575
|
}
|
|
6575
6576
|
class In extends r {
|
|
6576
6577
|
constructor() {
|
|
6577
|
-
super("m:limLoc"), this.root.push(new
|
|
6578
|
+
super("m:limLoc"), this.root.push(new qo({ value: "undOvr" }));
|
|
6578
6579
|
}
|
|
6579
6580
|
}
|
|
6580
|
-
class
|
|
6581
|
+
class Zo extends s {
|
|
6581
6582
|
constructor() {
|
|
6582
6583
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6583
6584
|
}
|
|
6584
6585
|
}
|
|
6585
|
-
class
|
|
6586
|
+
class Yo extends r {
|
|
6586
6587
|
constructor() {
|
|
6587
|
-
super("m:subHide"), this.root.push(new
|
|
6588
|
+
super("m:subHide"), this.root.push(new Zo({ hide: 1 }));
|
|
6588
6589
|
}
|
|
6589
6590
|
}
|
|
6590
|
-
class
|
|
6591
|
+
class Jo extends s {
|
|
6591
6592
|
constructor() {
|
|
6592
6593
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6593
6594
|
}
|
|
6594
6595
|
}
|
|
6595
|
-
class
|
|
6596
|
+
class Qo extends r {
|
|
6596
6597
|
constructor() {
|
|
6597
|
-
super("m:supHide"), this.root.push(new
|
|
6598
|
+
super("m:supHide"), this.root.push(new Jo({ hide: 1 }));
|
|
6598
6599
|
}
|
|
6599
6600
|
}
|
|
6600
6601
|
class Ze extends r {
|
|
6601
6602
|
constructor(t, f, H) {
|
|
6602
|
-
super("m:naryPr"), t && this.root.push(new Sn(t)), this.root.push(new In()), f || this.root.push(new
|
|
6603
|
+
super("m:naryPr"), t && this.root.push(new Sn(t)), this.root.push(new In()), f || this.root.push(new Qo()), H || this.root.push(new Yo());
|
|
6603
6604
|
}
|
|
6604
6605
|
}
|
|
6605
6606
|
class te extends r {
|
|
@@ -6614,12 +6615,12 @@ Actual: ` + T.attribValue);
|
|
|
6614
6615
|
for (const f of t) this.root.push(f);
|
|
6615
6616
|
}
|
|
6616
6617
|
}
|
|
6617
|
-
class
|
|
6618
|
+
class ti extends r {
|
|
6618
6619
|
constructor(t) {
|
|
6619
6620
|
super("m:nary"), this.root.push(new Ze("∑", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6620
6621
|
}
|
|
6621
6622
|
}
|
|
6622
|
-
class
|
|
6623
|
+
class ei extends r {
|
|
6623
6624
|
constructor(t) {
|
|
6624
6625
|
super("m:nary"), this.root.push(new Ze("", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6625
6626
|
}
|
|
@@ -6629,7 +6630,7 @@ Actual: ` + T.attribValue);
|
|
|
6629
6630
|
super("m:sSupPr");
|
|
6630
6631
|
}
|
|
6631
6632
|
}
|
|
6632
|
-
class
|
|
6633
|
+
class ri extends r {
|
|
6633
6634
|
constructor(t) {
|
|
6634
6635
|
super("m:sSup"), this.root.push(new Rn()), this.root.push(new Mt(t.children)), this.root.push(new ee(t.superScript));
|
|
6635
6636
|
}
|
|
@@ -6639,7 +6640,7 @@ Actual: ` + T.attribValue);
|
|
|
6639
6640
|
super("m:sSubPr");
|
|
6640
6641
|
}
|
|
6641
6642
|
}
|
|
6642
|
-
class
|
|
6643
|
+
class ni extends r {
|
|
6643
6644
|
constructor(t) {
|
|
6644
6645
|
super("m:sSub"), this.root.push(new Nn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript));
|
|
6645
6646
|
}
|
|
@@ -6649,7 +6650,7 @@ Actual: ` + T.attribValue);
|
|
|
6649
6650
|
super("m:sSubSupPr");
|
|
6650
6651
|
}
|
|
6651
6652
|
}
|
|
6652
|
-
class
|
|
6653
|
+
class si extends r {
|
|
6653
6654
|
constructor(t) {
|
|
6654
6655
|
super("m:sSubSup"), this.root.push(new Cn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6655
6656
|
}
|
|
@@ -6659,33 +6660,33 @@ Actual: ` + T.attribValue);
|
|
|
6659
6660
|
super("m:sPrePr");
|
|
6660
6661
|
}
|
|
6661
6662
|
}
|
|
6662
|
-
class
|
|
6663
|
+
class oi extends r {
|
|
6663
6664
|
constructor(t) {
|
|
6664
6665
|
super("m:sPre"), this.root.push(new On()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6665
6666
|
}
|
|
6666
6667
|
}
|
|
6667
|
-
const
|
|
6668
|
+
const ii = "";
|
|
6668
6669
|
class kn extends r {
|
|
6669
6670
|
constructor(t) {
|
|
6670
6671
|
if (super("m:deg"), t) for (const f of t) this.root.push(f);
|
|
6671
6672
|
}
|
|
6672
6673
|
}
|
|
6673
|
-
class
|
|
6674
|
+
class ai extends s {
|
|
6674
6675
|
constructor() {
|
|
6675
6676
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6676
6677
|
}
|
|
6677
6678
|
}
|
|
6678
|
-
class
|
|
6679
|
+
class ci extends r {
|
|
6679
6680
|
constructor() {
|
|
6680
|
-
super("m:degHide"), this.root.push(new
|
|
6681
|
+
super("m:degHide"), this.root.push(new ai({ hide: 1 }));
|
|
6681
6682
|
}
|
|
6682
6683
|
}
|
|
6683
6684
|
class Ln extends r {
|
|
6684
6685
|
constructor(t) {
|
|
6685
|
-
super("m:radPr"), t || this.root.push(new
|
|
6686
|
+
super("m:radPr"), t || this.root.push(new ci());
|
|
6686
6687
|
}
|
|
6687
6688
|
}
|
|
6688
|
-
class
|
|
6689
|
+
class ui extends r {
|
|
6689
6690
|
constructor(t) {
|
|
6690
6691
|
super("m:rad"), this.root.push(new Ln(!!t.degree)), this.root.push(new kn(t.degree)), this.root.push(new Mt(t.children));
|
|
6691
6692
|
}
|
|
@@ -6701,77 +6702,77 @@ Actual: ` + T.attribValue);
|
|
|
6701
6702
|
super("m:funcPr");
|
|
6702
6703
|
}
|
|
6703
6704
|
}
|
|
6704
|
-
class
|
|
6705
|
+
class li extends r {
|
|
6705
6706
|
constructor(t) {
|
|
6706
6707
|
super("m:func"), this.root.push(new Pn()), this.root.push(new Dn(t.name)), this.root.push(new Mt(t.children));
|
|
6707
6708
|
}
|
|
6708
6709
|
}
|
|
6709
|
-
class
|
|
6710
|
+
class hi extends s {
|
|
6710
6711
|
constructor() {
|
|
6711
6712
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6712
6713
|
}
|
|
6713
6714
|
}
|
|
6714
|
-
class
|
|
6715
|
+
class pi extends r {
|
|
6715
6716
|
constructor(t) {
|
|
6716
|
-
super("m:begChr"), this.root.push(new
|
|
6717
|
+
super("m:begChr"), this.root.push(new hi({ character: t }));
|
|
6717
6718
|
}
|
|
6718
6719
|
}
|
|
6719
|
-
class
|
|
6720
|
+
class di extends s {
|
|
6720
6721
|
constructor() {
|
|
6721
6722
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6722
6723
|
}
|
|
6723
6724
|
}
|
|
6724
|
-
class
|
|
6725
|
+
class fi extends r {
|
|
6725
6726
|
constructor(t) {
|
|
6726
|
-
super("m:endChr"), this.root.push(new
|
|
6727
|
+
super("m:endChr"), this.root.push(new di({ character: t }));
|
|
6727
6728
|
}
|
|
6728
6729
|
}
|
|
6729
6730
|
class _e extends r {
|
|
6730
6731
|
constructor(t) {
|
|
6731
|
-
super("m:dPr"), t && (this.root.push(new
|
|
6732
|
+
super("m:dPr"), t && (this.root.push(new pi(t.beginningCharacter)), this.root.push(new fi(t.endingCharacter)));
|
|
6732
6733
|
}
|
|
6733
6734
|
}
|
|
6734
|
-
class
|
|
6735
|
+
class mi extends r {
|
|
6735
6736
|
constructor(t) {
|
|
6736
6737
|
super("m:d"), this.root.push(new _e()), this.root.push(new Mt(t.children));
|
|
6737
6738
|
}
|
|
6738
6739
|
}
|
|
6739
|
-
class
|
|
6740
|
+
class gi extends r {
|
|
6740
6741
|
constructor(t) {
|
|
6741
6742
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "[", endingCharacter: "]" })), this.root.push(new Mt(t.children));
|
|
6742
6743
|
}
|
|
6743
6744
|
}
|
|
6744
|
-
class
|
|
6745
|
+
class wi extends r {
|
|
6745
6746
|
constructor(t) {
|
|
6746
6747
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "{", endingCharacter: "}" })), this.root.push(new Mt(t.children));
|
|
6747
6748
|
}
|
|
6748
6749
|
}
|
|
6749
|
-
class
|
|
6750
|
+
class yi extends r {
|
|
6750
6751
|
constructor(t) {
|
|
6751
6752
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "〈", endingCharacter: "〉" })), this.root.push(new Mt(t.children));
|
|
6752
6753
|
}
|
|
6753
6754
|
}
|
|
6754
|
-
class
|
|
6755
|
+
class bi extends r {
|
|
6755
6756
|
constructor(t) {
|
|
6756
6757
|
super("w:tblGrid");
|
|
6757
|
-
for (const f of t) this.root.push(new
|
|
6758
|
+
for (const f of t) this.root.push(new vi(f));
|
|
6758
6759
|
}
|
|
6759
6760
|
}
|
|
6760
|
-
class
|
|
6761
|
+
class xi extends s {
|
|
6761
6762
|
constructor() {
|
|
6762
6763
|
super(...arguments), this.xmlKeys = { w: "w:w" };
|
|
6763
6764
|
}
|
|
6764
6765
|
}
|
|
6765
|
-
class
|
|
6766
|
+
class vi extends r {
|
|
6766
6767
|
constructor(t) {
|
|
6767
|
-
super("w:gridCol"), t !== void 0 && this.root.push(new
|
|
6768
|
+
super("w:gridCol"), t !== void 0 && this.root.push(new xi({ w: (0, n.Jd)(t) }));
|
|
6768
6769
|
}
|
|
6769
6770
|
}
|
|
6770
6771
|
var re, Ee, he, Ye;
|
|
6771
6772
|
(function(e) {
|
|
6772
6773
|
e.AUTO = "auto", e.DXA = "dxa", e.NIL = "nil", e.PERCENTAGE = "pct";
|
|
6773
6774
|
})(re || (re = {}));
|
|
6774
|
-
class
|
|
6775
|
+
class _i extends s {
|
|
6775
6776
|
constructor() {
|
|
6776
6777
|
super(...arguments), this.xmlKeys = { type: "w:type", size: "w:w" };
|
|
6777
6778
|
}
|
|
@@ -6780,7 +6781,7 @@ Actual: ` + T.attribValue);
|
|
|
6780
6781
|
constructor(t, { type: f = re.AUTO, size: H }) {
|
|
6781
6782
|
super(t);
|
|
6782
6783
|
let J = H;
|
|
6783
|
-
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new
|
|
6784
|
+
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new _i({ type: f, size: (0, n.aB)(J) }));
|
|
6784
6785
|
}
|
|
6785
6786
|
}
|
|
6786
6787
|
(function(e) {
|
|
@@ -6796,50 +6797,50 @@ Actual: ` + T.attribValue);
|
|
|
6796
6797
|
super("w:tcBorders"), t.top && this.root.push(new U("w:top", t.top)), t.start && this.root.push(new U("w:start", t.start)), t.left && this.root.push(new U("w:left", t.left)), t.bottom && this.root.push(new U("w:bottom", t.bottom)), t.end && this.root.push(new U("w:end", t.end)), t.right && this.root.push(new U("w:right", t.right));
|
|
6797
6798
|
}
|
|
6798
6799
|
}
|
|
6799
|
-
class
|
|
6800
|
+
class Ei extends s {
|
|
6800
6801
|
constructor() {
|
|
6801
6802
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6802
6803
|
}
|
|
6803
6804
|
}
|
|
6804
6805
|
class Mn extends r {
|
|
6805
6806
|
constructor(t) {
|
|
6806
|
-
super("w:gridSpan"), this.root.push(new
|
|
6807
|
+
super("w:gridSpan"), this.root.push(new Ei({ val: (0, n.vH)(t) }));
|
|
6807
6808
|
}
|
|
6808
6809
|
}
|
|
6809
6810
|
(function(e) {
|
|
6810
6811
|
e.CONTINUE = "continue", e.RESTART = "restart";
|
|
6811
6812
|
})(he || (he = {}));
|
|
6812
|
-
class
|
|
6813
|
+
class Ti extends s {
|
|
6813
6814
|
constructor() {
|
|
6814
6815
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6815
6816
|
}
|
|
6816
6817
|
}
|
|
6817
6818
|
class Je extends r {
|
|
6818
6819
|
constructor(t) {
|
|
6819
|
-
super("w:vMerge"), this.root.push(new
|
|
6820
|
+
super("w:vMerge"), this.root.push(new Ti({ val: t }));
|
|
6820
6821
|
}
|
|
6821
6822
|
}
|
|
6822
6823
|
(function(e) {
|
|
6823
6824
|
e.BOTTOM_TO_TOP_LEFT_TO_RIGHT = "btLr", e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6824
6825
|
})(Ye || (Ye = {}));
|
|
6825
|
-
class
|
|
6826
|
+
class Ai extends s {
|
|
6826
6827
|
constructor() {
|
|
6827
6828
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6828
6829
|
}
|
|
6829
6830
|
}
|
|
6830
6831
|
class Un extends r {
|
|
6831
6832
|
constructor(t) {
|
|
6832
|
-
super("w:textDirection"), this.root.push(new
|
|
6833
|
+
super("w:textDirection"), this.root.push(new Ai({ val: t }));
|
|
6833
6834
|
}
|
|
6834
6835
|
}
|
|
6835
|
-
class
|
|
6836
|
+
class Si extends a {
|
|
6836
6837
|
constructor(t) {
|
|
6837
6838
|
super("w:tcPr"), t.width && this.root.push(new Vt("w:tcW", t.width)), t.columnSpan && this.root.push(new Mn(t.columnSpan)), t.verticalMerge ? this.root.push(new Je(t.verticalMerge)) : t.rowSpan && t.rowSpan > 1 && this.root.push(new Je(he.RESTART)), t.borders && this.root.push(new Bn(t.borders)), t.shading && this.root.push(new it(t.shading)), t.margins && this.root.push(new Fn(Ee.TABLE_CELL, t.margins)), t.textDirection && this.root.push(new Un(t.textDirection)), t.verticalAlign && this.root.push(new Ve(t.verticalAlign));
|
|
6838
6839
|
}
|
|
6839
6840
|
}
|
|
6840
6841
|
class Qe extends r {
|
|
6841
6842
|
constructor(t) {
|
|
6842
|
-
super("w:tc"), this.options = t, this.root.push(new
|
|
6843
|
+
super("w:tc"), this.options = t, this.root.push(new Si(t));
|
|
6843
6844
|
for (const f of t.children) this.root.push(f);
|
|
6844
6845
|
}
|
|
6845
6846
|
prepForXml(t) {
|
|
@@ -6870,29 +6871,29 @@ Actual: ` + T.attribValue);
|
|
|
6870
6871
|
}
|
|
6871
6872
|
class zn extends r {
|
|
6872
6873
|
constructor(t) {
|
|
6873
|
-
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition:
|
|
6874
|
+
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition: dt } = t, vt = (function(pt, gt) {
|
|
6874
6875
|
var Lt = {};
|
|
6875
|
-
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) &&
|
|
6876
|
+
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) && gt.indexOf(St) < 0 && (Lt[St] = pt[St]);
|
|
6876
6877
|
if (pt != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
6877
6878
|
var Dt = 0;
|
|
6878
|
-
for (St = Object.getOwnPropertySymbols(pt); Dt < St.length; Dt++)
|
|
6879
|
+
for (St = Object.getOwnPropertySymbols(pt); Dt < St.length; Dt++) gt.indexOf(St[Dt]) < 0 && Object.prototype.propertyIsEnumerable.call(pt, St[Dt]) && (Lt[St[Dt]] = pt[St[Dt]]);
|
|
6879
6880
|
}
|
|
6880
6881
|
return Lt;
|
|
6881
6882
|
})(t, ["leftFromText", "rightFromText", "topFromText", "bottomFromText", "absoluteHorizontalPosition", "absoluteVerticalPosition"]);
|
|
6882
|
-
super("w:tblpPr"), this.root.push(new Hn(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText: H === void 0 ? void 0 : (0, n.Jd)(H), topFromText: J === void 0 ? void 0 : (0, n.Jd)(J), bottomFromText: tt === void 0 ? void 0 : (0, n.Jd)(tt), absoluteHorizontalPosition: ut === void 0 ? void 0 : (0, n.xb)(ut), absoluteVerticalPosition:
|
|
6883
|
+
super("w:tblpPr"), this.root.push(new Hn(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText: H === void 0 ? void 0 : (0, n.Jd)(H), topFromText: J === void 0 ? void 0 : (0, n.Jd)(J), bottomFromText: tt === void 0 ? void 0 : (0, n.Jd)(tt), absoluteHorizontalPosition: ut === void 0 ? void 0 : (0, n.xb)(ut), absoluteVerticalPosition: dt === void 0 ? void 0 : (0, n.xb)(dt) }, vt))), vt.overlap && this.root.push(new rt("w:tblOverlap", vt.overlap));
|
|
6883
6884
|
}
|
|
6884
6885
|
}
|
|
6885
6886
|
(function(e) {
|
|
6886
6887
|
e.AUTOFIT = "autofit", e.FIXED = "fixed";
|
|
6887
6888
|
})(or || (or = {}));
|
|
6888
|
-
class
|
|
6889
|
+
class Ii extends s {
|
|
6889
6890
|
constructor() {
|
|
6890
6891
|
super(...arguments), this.xmlKeys = { type: "w:type" };
|
|
6891
6892
|
}
|
|
6892
6893
|
}
|
|
6893
6894
|
class Wn extends r {
|
|
6894
6895
|
constructor(t) {
|
|
6895
|
-
super("w:tblLayout"), this.root.push(new
|
|
6896
|
+
super("w:tblLayout"), this.root.push(new Ii({ type: t }));
|
|
6896
6897
|
}
|
|
6897
6898
|
}
|
|
6898
6899
|
class jn extends a {
|
|
@@ -6900,9 +6901,9 @@ Actual: ` + T.attribValue);
|
|
|
6900
6901
|
super("w:tblPr"), t.style && this.root.push(new G("w:tblStyle", t.style)), t.float && this.root.push(new zn(t.float)), t.visuallyRightToLeft !== void 0 && this.root.push(new B("w:bidiVisual", t.visuallyRightToLeft)), t.width && this.root.push(new Vt("w:tblW", t.width)), t.alignment && this.root.push(new A(t.alignment)), t.indent && this.root.push(new Vt("w:tblInd", t.indent)), t.borders && this.root.push(new tr(t.borders)), t.shading && this.root.push(new it(t.shading)), t.layout && this.root.push(new Wn(t.layout)), t.cellMargin && this.root.push(new Fn(Ee.TABLE, t.cellMargin));
|
|
6901
6902
|
}
|
|
6902
6903
|
}
|
|
6903
|
-
class
|
|
6904
|
-
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout:
|
|
6905
|
-
super("w:tbl"), this.root.push(new jn({ borders: pt != null ? pt : {}, width: f != null ? f : { size: 100 }, indent: tt, float: ut, layout:
|
|
6904
|
+
class Ri extends r {
|
|
6905
|
+
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout: dt, style: vt, borders: pt, alignment: gt, visuallyRightToLeft: Lt }) {
|
|
6906
|
+
super("w:tbl"), this.root.push(new jn({ borders: pt != null ? pt : {}, width: f != null ? f : { size: 100 }, indent: tt, float: ut, layout: dt, style: vt, alignment: gt, cellMargin: J, visuallyRightToLeft: Lt })), this.root.push(new bi(H));
|
|
6906
6907
|
for (const St of t) this.root.push(St);
|
|
6907
6908
|
t.forEach(((St, Dt) => {
|
|
6908
6909
|
if (Dt === t.length - 1) return;
|
|
@@ -6935,7 +6936,7 @@ Actual: ` + T.attribValue);
|
|
|
6935
6936
|
super("w:trPr"), t.cantSplit !== void 0 && this.root.push(new B("w:cantSplit", t.cantSplit)), t.tableHeader !== void 0 && this.root.push(new B("w:tblHeader", t.tableHeader)), t.height && this.root.push(new Gn(t.height.value, t.height.rule));
|
|
6936
6937
|
}
|
|
6937
6938
|
}
|
|
6938
|
-
class
|
|
6939
|
+
class Ni extends r {
|
|
6939
6940
|
constructor(t) {
|
|
6940
6941
|
super("w:tr"), this.options = t, this.root.push(new Vn(t));
|
|
6941
6942
|
for (const f of t.children) this.root.push(f);
|
|
@@ -6973,44 +6974,44 @@ Actual: ` + T.attribValue);
|
|
|
6973
6974
|
return J - 1;
|
|
6974
6975
|
}
|
|
6975
6976
|
}
|
|
6976
|
-
class
|
|
6977
|
+
class Ci extends s {
|
|
6977
6978
|
constructor() {
|
|
6978
6979
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
6979
6980
|
}
|
|
6980
6981
|
}
|
|
6981
|
-
class
|
|
6982
|
+
class Oi extends r {
|
|
6982
6983
|
constructor() {
|
|
6983
|
-
super("Properties"), this.root.push(new
|
|
6984
|
+
super("Properties"), this.root.push(new Ci({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" }));
|
|
6984
6985
|
}
|
|
6985
6986
|
}
|
|
6986
|
-
class
|
|
6987
|
+
class ki extends s {
|
|
6987
6988
|
constructor() {
|
|
6988
6989
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6989
6990
|
}
|
|
6990
6991
|
}
|
|
6991
|
-
class
|
|
6992
|
+
class Li extends s {
|
|
6992
6993
|
constructor() {
|
|
6993
6994
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", extension: "Extension" };
|
|
6994
6995
|
}
|
|
6995
6996
|
}
|
|
6996
6997
|
class Zt extends r {
|
|
6997
6998
|
constructor(t, f) {
|
|
6998
|
-
super("Default"), this.root.push(new
|
|
6999
|
+
super("Default"), this.root.push(new Li({ contentType: t, extension: f }));
|
|
6999
7000
|
}
|
|
7000
7001
|
}
|
|
7001
|
-
class
|
|
7002
|
+
class Di extends s {
|
|
7002
7003
|
constructor() {
|
|
7003
7004
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", partName: "PartName" };
|
|
7004
7005
|
}
|
|
7005
7006
|
}
|
|
7006
7007
|
class Ht extends r {
|
|
7007
7008
|
constructor(t, f) {
|
|
7008
|
-
super("Override"), this.root.push(new
|
|
7009
|
+
super("Override"), this.root.push(new Di({ contentType: t, partName: f }));
|
|
7009
7010
|
}
|
|
7010
7011
|
}
|
|
7011
|
-
class
|
|
7012
|
+
class Pi extends r {
|
|
7012
7013
|
constructor() {
|
|
7013
|
-
super("Types"), this.root.push(new
|
|
7014
|
+
super("Types"), this.root.push(new ki({ xmlns: "http://schemas.openxmlformats.org/package/2006/content-types" })), this.root.push(new Zt("image/png", "png")), this.root.push(new Zt("image/jpeg", "jpeg")), this.root.push(new Zt("image/jpeg", "jpg")), this.root.push(new Zt("image/bmp", "bmp")), this.root.push(new Zt("image/gif", "gif")), this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml", "rels")), this.root.push(new Zt("application/xml", "xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml", "/word/document.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", "/word/styles.xml")), this.root.push(new Ht("application/vnd.openxmlformats-package.core-properties+xml", "/docProps/core.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.custom-properties+xml", "/docProps/custom.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.extended-properties+xml", "/docProps/app.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml", "/word/numbering.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", "/word/footnotes.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "/word/settings.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml", "/word/comments.xml"));
|
|
7014
7015
|
}
|
|
7015
7016
|
addFooter(t) {
|
|
7016
7017
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", `/word/footer${t}.xml`));
|
|
@@ -7019,7 +7020,7 @@ Actual: ` + T.attribValue);
|
|
|
7019
7020
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", `/word/header${t}.xml`));
|
|
7020
7021
|
}
|
|
7021
7022
|
}
|
|
7022
|
-
class
|
|
7023
|
+
class Fi extends r {
|
|
7023
7024
|
constructor(t) {
|
|
7024
7025
|
super("cp:coreProperties"), this.root.push(new Qt({ cp: "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", dc: "http://purl.org/dc/elements/1.1/", dcterms: "http://purl.org/dc/terms/", dcmitype: "http://purl.org/dc/dcmitype/", xsi: "http://www.w3.org/2001/XMLSchema-instance" })), t.title && this.root.push(new ct("dc:title", t.title)), t.subject && this.root.push(new ct("dc:subject", t.subject)), t.creator && this.root.push(new ct("dc:creator", t.creator)), t.keywords && this.root.push(new ct("cp:keywords", t.keywords)), t.description && this.root.push(new ct("dc:description", t.description)), t.lastModifiedBy && this.root.push(new ct("cp:lastModifiedBy", t.lastModifiedBy)), t.revision && this.root.push(new ct("cp:revision", String(t.revision))), this.root.push(new $n("dcterms:created")), this.root.push(new $n("dcterms:modified"));
|
|
7025
7026
|
}
|
|
@@ -7029,46 +7030,46 @@ Actual: ` + T.attribValue);
|
|
|
7029
7030
|
super(t), this.root.push(new Qt({ type: "dcterms:W3CDTF" })), this.root.push((0, n.sF)(/* @__PURE__ */ new Date()));
|
|
7030
7031
|
}
|
|
7031
7032
|
}
|
|
7032
|
-
class
|
|
7033
|
+
class Bi extends s {
|
|
7033
7034
|
constructor() {
|
|
7034
7035
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
7035
7036
|
}
|
|
7036
7037
|
}
|
|
7037
|
-
class
|
|
7038
|
+
class Mi extends s {
|
|
7038
7039
|
constructor() {
|
|
7039
7040
|
super(...arguments), this.xmlKeys = { fmtid: "fmtid", pid: "pid", name: "name" };
|
|
7040
7041
|
}
|
|
7041
7042
|
}
|
|
7042
|
-
class
|
|
7043
|
+
class Ui extends r {
|
|
7043
7044
|
constructor(t, f) {
|
|
7044
|
-
super("property"), this.root.push(new
|
|
7045
|
+
super("property"), this.root.push(new Mi({ fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", pid: t.toString(), name: f.name })), this.root.push(new Hi(f.value));
|
|
7045
7046
|
}
|
|
7046
7047
|
}
|
|
7047
|
-
class
|
|
7048
|
+
class Hi extends r {
|
|
7048
7049
|
constructor(t) {
|
|
7049
7050
|
super("vt:lpwstr"), this.root.push(t);
|
|
7050
7051
|
}
|
|
7051
7052
|
}
|
|
7052
|
-
class
|
|
7053
|
+
class zi extends r {
|
|
7053
7054
|
constructor(t) {
|
|
7054
|
-
super("Properties"), this.properties = [], this.root.push(new
|
|
7055
|
+
super("Properties"), this.properties = [], this.root.push(new Bi({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" })), this.nextId = 2;
|
|
7055
7056
|
for (const f of t) this.addCustomProperty(f);
|
|
7056
7057
|
}
|
|
7057
7058
|
prepForXml(t) {
|
|
7058
7059
|
return this.properties.forEach(((f) => this.root.push(f))), super.prepForXml(t);
|
|
7059
7060
|
}
|
|
7060
7061
|
addCustomProperty(t) {
|
|
7061
|
-
this.properties.push(new
|
|
7062
|
+
this.properties.push(new Ui(this.nextId++, t));
|
|
7062
7063
|
}
|
|
7063
7064
|
}
|
|
7064
|
-
class
|
|
7065
|
+
class Wi extends s {
|
|
7065
7066
|
constructor() {
|
|
7066
7067
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type" };
|
|
7067
7068
|
}
|
|
7068
7069
|
}
|
|
7069
|
-
class
|
|
7070
|
+
class ji extends y {
|
|
7070
7071
|
constructor(t, f) {
|
|
7071
|
-
super("w:ftr", f), this.refId = t, f || this.root.push(new
|
|
7072
|
+
super("w:ftr", f), this.refId = t, f || this.root.push(new Wi({ 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" }));
|
|
7072
7073
|
}
|
|
7073
7074
|
get ReferenceId() {
|
|
7074
7075
|
return this.refId;
|
|
@@ -7079,7 +7080,7 @@ Actual: ` + T.attribValue);
|
|
|
7079
7080
|
}
|
|
7080
7081
|
class ar {
|
|
7081
7082
|
constructor(t, f, H) {
|
|
7082
|
-
this.media = t, this.footer = new
|
|
7083
|
+
this.media = t, this.footer = new ji(f, H), this.relationships = new le();
|
|
7083
7084
|
}
|
|
7084
7085
|
add(t) {
|
|
7085
7086
|
this.footer.add(t);
|
|
@@ -7097,19 +7098,19 @@ Actual: ` + T.attribValue);
|
|
|
7097
7098
|
return this.media;
|
|
7098
7099
|
}
|
|
7099
7100
|
}
|
|
7100
|
-
class
|
|
7101
|
+
class Ki extends s {
|
|
7101
7102
|
constructor() {
|
|
7102
7103
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "w:id" };
|
|
7103
7104
|
}
|
|
7104
7105
|
}
|
|
7105
|
-
class
|
|
7106
|
+
class Gi extends r {
|
|
7106
7107
|
constructor() {
|
|
7107
7108
|
super("w:footnoteRef");
|
|
7108
7109
|
}
|
|
7109
7110
|
}
|
|
7110
|
-
class
|
|
7111
|
+
class Vi extends Bt {
|
|
7111
7112
|
constructor() {
|
|
7112
|
-
super({ style: "FootnoteReference" }), this.root.push(new
|
|
7113
|
+
super({ style: "FootnoteReference" }), this.root.push(new Gi());
|
|
7113
7114
|
}
|
|
7114
7115
|
}
|
|
7115
7116
|
(function(e) {
|
|
@@ -7117,44 +7118,44 @@ Actual: ` + T.attribValue);
|
|
|
7117
7118
|
})(Te || (Te = {}));
|
|
7118
7119
|
class cr extends r {
|
|
7119
7120
|
constructor(t) {
|
|
7120
|
-
super("w:footnote"), this.root.push(new
|
|
7121
|
+
super("w:footnote"), this.root.push(new Ki({ type: t.type, id: t.id }));
|
|
7121
7122
|
for (let f = 0; f < t.children.length; f++) {
|
|
7122
7123
|
const H = t.children[f];
|
|
7123
|
-
f === 0 && H.addRunToFront(new
|
|
7124
|
+
f === 0 && H.addRunToFront(new Vi()), this.root.push(H);
|
|
7124
7125
|
}
|
|
7125
7126
|
}
|
|
7126
7127
|
}
|
|
7127
|
-
class
|
|
7128
|
+
class $i extends r {
|
|
7128
7129
|
constructor() {
|
|
7129
7130
|
super("w:continuationSeparator");
|
|
7130
7131
|
}
|
|
7131
7132
|
}
|
|
7132
|
-
class
|
|
7133
|
+
class Xi extends Bt {
|
|
7133
7134
|
constructor() {
|
|
7134
|
-
super({}), this.root.push(new
|
|
7135
|
+
super({}), this.root.push(new $i());
|
|
7135
7136
|
}
|
|
7136
7137
|
}
|
|
7137
|
-
class
|
|
7138
|
+
class qi extends r {
|
|
7138
7139
|
constructor() {
|
|
7139
7140
|
super("w:separator");
|
|
7140
7141
|
}
|
|
7141
7142
|
}
|
|
7142
|
-
class
|
|
7143
|
+
class Zi extends Bt {
|
|
7143
7144
|
constructor() {
|
|
7144
|
-
super({}), this.root.push(new
|
|
7145
|
+
super({}), this.root.push(new qi());
|
|
7145
7146
|
}
|
|
7146
7147
|
}
|
|
7147
|
-
class
|
|
7148
|
+
class Yi extends s {
|
|
7148
7149
|
constructor() {
|
|
7149
7150
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7150
7151
|
}
|
|
7151
7152
|
}
|
|
7152
7153
|
class Xn extends r {
|
|
7153
7154
|
constructor() {
|
|
7154
|
-
super("w:footnotes"), this.root.push(new
|
|
7155
|
-
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7155
|
+
super("w:footnotes"), this.root.push(new Yi({ 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" }));
|
|
7156
|
+
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new Zi()] })] });
|
|
7156
7157
|
this.root.push(t);
|
|
7157
|
-
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7158
|
+
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new Xi()] })] });
|
|
7158
7159
|
this.root.push(f);
|
|
7159
7160
|
}
|
|
7160
7161
|
createFootNote(t, f) {
|
|
@@ -7162,7 +7163,7 @@ Actual: ` + T.attribValue);
|
|
|
7162
7163
|
this.root.push(H);
|
|
7163
7164
|
}
|
|
7164
7165
|
}
|
|
7165
|
-
class
|
|
7166
|
+
class Ji {
|
|
7166
7167
|
constructor() {
|
|
7167
7168
|
this.footnotess = new Xn(), this.relationships = new le();
|
|
7168
7169
|
}
|
|
@@ -7173,14 +7174,14 @@ Actual: ` + T.attribValue);
|
|
|
7173
7174
|
return this.relationships;
|
|
7174
7175
|
}
|
|
7175
7176
|
}
|
|
7176
|
-
class
|
|
7177
|
+
class Qi extends s {
|
|
7177
7178
|
constructor() {
|
|
7178
7179
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type", cx: "xmlns:cx", cx1: "xmlns:cx1", cx2: "xmlns:cx2", cx3: "xmlns:cx3", cx4: "xmlns:cx4", cx5: "xmlns:cx5", cx6: "xmlns:cx6", cx7: "xmlns:cx7", cx8: "xmlns:cx8", w16cid: "xmlns:w16cid", w16se: "xmlns:w16se" };
|
|
7179
7180
|
}
|
|
7180
7181
|
}
|
|
7181
|
-
class
|
|
7182
|
+
class ta extends y {
|
|
7182
7183
|
constructor(t, f) {
|
|
7183
|
-
super("w:hdr", f), this.refId = t, f || this.root.push(new
|
|
7184
|
+
super("w:hdr", f), this.refId = t, f || this.root.push(new Qi({ 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", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex" }));
|
|
7184
7185
|
}
|
|
7185
7186
|
get ReferenceId() {
|
|
7186
7187
|
return this.refId;
|
|
@@ -7191,7 +7192,7 @@ Actual: ` + T.attribValue);
|
|
|
7191
7192
|
}
|
|
7192
7193
|
class ur {
|
|
7193
7194
|
constructor(t, f, H) {
|
|
7194
|
-
this.media = t, this.header = new
|
|
7195
|
+
this.media = t, this.header = new ta(f, H), this.relationships = new le();
|
|
7195
7196
|
}
|
|
7196
7197
|
add(t) {
|
|
7197
7198
|
return this.header.add(t), this;
|
|
@@ -7228,27 +7229,27 @@ Actual: ` + T.attribValue);
|
|
|
7228
7229
|
return typeof atob == "function" ? new Uint8Array(atob(t.substring(H)).split("").map(((J) => J.charCodeAt(0)))) : new (at(8764)).Buffer(t, "base64");
|
|
7229
7230
|
}
|
|
7230
7231
|
}
|
|
7231
|
-
const
|
|
7232
|
+
const ea = "";
|
|
7232
7233
|
var Ut, hr;
|
|
7233
7234
|
(function(e) {
|
|
7234
7235
|
e.DECIMAL = "decimal", e.UPPER_ROMAN = "upperRoman", e.LOWER_ROMAN = "lowerRoman", e.UPPER_LETTER = "upperLetter", e.LOWER_LETTER = "lowerLetter", e.ORDINAL = "ordinal", e.CARDINAL_TEXT = "cardinalText", e.ORDINAL_TEXT = "ordinalText", e.HEX = "hex", e.CHICAGO = "chicago", e.IDEOGRAPH__DIGITAL = "ideographDigital", e.JAPANESE_COUNTING = "japaneseCounting", e.AIUEO = "aiueo", e.IROHA = "iroha", e.DECIMAL_FULL_WIDTH = "decimalFullWidth", e.DECIMAL_HALF_WIDTH = "decimalHalfWidth", e.JAPANESE_LEGAL = "japaneseLegal", e.JAPANESE_DIGITAL_TEN_THOUSAND = "japaneseDigitalTenThousand", e.DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle", e.DECIMAL_FULL_WIDTH2 = "decimalFullWidth2", e.AIUEO_FULL_WIDTH = "aiueoFullWidth", e.IROHA_FULL_WIDTH = "irohaFullWidth", e.DECIMAL_ZERO = "decimalZero", e.BULLET = "bullet", e.GANADA = "ganada", e.CHOSUNG = "chosung", e.DECIMAL_ENCLOSED_FULLSTOP = "decimalEnclosedFullstop", e.DECIMAL_ENCLOSED_PARENTHESES = "decimalEnclosedParen", e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = "decimalEnclosedCircleChinese", e.IDEOGRAPH_ENCLOSED_CIRCLE = "ideographEnclosedCircle", e.IDEOGRAPH_TRADITIONAL = "ideographTraditional", e.IDEOGRAPH_ZODIAC = "ideographZodiac", e.IDEOGRAPH_ZODIAC_TRADITIONAL = "ideographZodiacTraditional", e.TAIWANESE_COUNTING = "taiwaneseCounting", e.IDEOGRAPH_LEGAL_TRADITIONAL = "ideographLegalTraditional", e.TAIWANESE_COUNTING_THOUSAND = "taiwaneseCountingThousand", e.TAIWANESE_DIGITAL = "taiwaneseDigital", e.CHINESE_COUNTING = "chineseCounting", e.CHINESE_LEGAL_SIMPLIFIED = "chineseLegalSimplified", e.CHINESE_COUNTING_THOUSAND = "chineseCountingThousand", e.KOREAN_DIGITAL = "koreanDigital", e.KOREAN_COUNTING = "koreanCounting", e.KOREAN_LEGAL = "koreanLegal", e.KOREAN_DIGITAL2 = "koreanDigital2", e.VIETNAMESE_COUNTING = "vietnameseCounting", e.RUSSIAN_LOWER = "russianLower", e.RUSSIAN_UPPER = "russianUpper", e.NONE = "none", e.NUMBER_IN_DASH = "numberInDash", e.HEBREW1 = "hebrew1", e.HEBREW2 = "hebrew2", e.ARABIC_ALPHA = "arabicAlpha", e.ARABIC_ABJAD = "arabicAbjad", e.HINDI_VOWELS = "hindiVowels", e.HINDI_CONSONANTS = "hindiConsonants", e.HINDI_NUMBERS = "hindiNumbers", e.HINDI_COUNTING = "hindiCounting", e.THAI_LETTERS = "thaiLetters", e.THAI_NUMBERS = "thaiNumbers", e.THAI_COUNTING = "thaiCounting", e.BAHT_TEXT = "bahtText", e.DOLLAR_TEXT = "dollarText", e.CUSTOM = "custom";
|
|
7235
7236
|
})(Ut || (Ut = {}));
|
|
7236
|
-
class
|
|
7237
|
+
class ra extends s {
|
|
7237
7238
|
constructor() {
|
|
7238
7239
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl", tentative: "w15:tentative" };
|
|
7239
7240
|
}
|
|
7240
7241
|
}
|
|
7241
|
-
class
|
|
7242
|
+
class na extends r {
|
|
7242
7243
|
constructor(t) {
|
|
7243
7244
|
super("w:numFmt"), this.root.push(new u({ val: t }));
|
|
7244
7245
|
}
|
|
7245
7246
|
}
|
|
7246
|
-
class
|
|
7247
|
+
class sa extends r {
|
|
7247
7248
|
constructor(t) {
|
|
7248
7249
|
super("w:lvlText"), this.root.push(new u({ val: t }));
|
|
7249
7250
|
}
|
|
7250
7251
|
}
|
|
7251
|
-
class
|
|
7252
|
+
class oa extends r {
|
|
7252
7253
|
constructor(t) {
|
|
7253
7254
|
super("w:lvlJc"), this.root.push(new u({ val: t }));
|
|
7254
7255
|
}
|
|
@@ -7256,75 +7257,75 @@ Actual: ` + T.attribValue);
|
|
|
7256
7257
|
(function(e) {
|
|
7257
7258
|
e.NOTHING = "nothing", e.SPACE = "space", e.TAB = "tab";
|
|
7258
7259
|
})(hr || (hr = {}));
|
|
7259
|
-
class
|
|
7260
|
+
class ia extends r {
|
|
7260
7261
|
constructor(t) {
|
|
7261
7262
|
super("w:suff"), this.root.push(new u({ val: t }));
|
|
7262
7263
|
}
|
|
7263
7264
|
}
|
|
7264
|
-
class
|
|
7265
|
+
class aa extends r {
|
|
7265
7266
|
constructor() {
|
|
7266
7267
|
super("w:isLgl");
|
|
7267
7268
|
}
|
|
7268
7269
|
}
|
|
7269
7270
|
class pr extends r {
|
|
7270
|
-
constructor({ level: t, format: f, text: H, alignment: J = h.START, start: tt = 1, style: ut, suffix:
|
|
7271
|
-
if (super("w:lvl"), this.root.push(new lt("w:start", (0, n.vH)(tt))), f && this.root.push(new
|
|
7272
|
-
this.root.push(new
|
|
7271
|
+
constructor({ level: t, format: f, text: H, alignment: J = h.START, start: tt = 1, style: ut, 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 na(f)), dt && this.root.push(new ia(dt)), vt && this.root.push(new aa()), H && this.root.push(new sa(H)), this.root.push(new oa(J)), this.paragraphProperties = new qt(ut && ut.paragraph), this.runProperties = new Et(ut && ut.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
|
+
this.root.push(new ra({ ilvl: (0, n.vH)(t), tentative: 1 }));
|
|
7273
7274
|
}
|
|
7274
7275
|
}
|
|
7275
7276
|
class qn extends pr {
|
|
7276
7277
|
}
|
|
7277
|
-
class
|
|
7278
|
+
class ca extends pr {
|
|
7278
7279
|
}
|
|
7279
|
-
class
|
|
7280
|
+
class ua extends r {
|
|
7280
7281
|
constructor(t) {
|
|
7281
7282
|
super("w:multiLevelType"), this.root.push(new u({ val: t }));
|
|
7282
7283
|
}
|
|
7283
7284
|
}
|
|
7284
|
-
class
|
|
7285
|
+
class la extends s {
|
|
7285
7286
|
constructor() {
|
|
7286
7287
|
super(...arguments), this.xmlKeys = { abstractNumId: "w:abstractNumId", restartNumberingAfterBreak: "w15:restartNumberingAfterBreak" };
|
|
7287
7288
|
}
|
|
7288
7289
|
}
|
|
7289
7290
|
class dr extends r {
|
|
7290
7291
|
constructor(t, f) {
|
|
7291
|
-
super("w:abstractNum"), this.root.push(new
|
|
7292
|
+
super("w:abstractNum"), this.root.push(new la({ abstractNumId: (0, n.vH)(t), restartNumberingAfterBreak: 0 })), this.root.push(new ua("hybridMultilevel")), this.id = t;
|
|
7292
7293
|
for (const H of f) this.root.push(new qn(H));
|
|
7293
7294
|
}
|
|
7294
7295
|
}
|
|
7295
|
-
class
|
|
7296
|
+
class ha extends r {
|
|
7296
7297
|
constructor(t) {
|
|
7297
7298
|
super("w:abstractNumId"), this.root.push(new u({ val: t }));
|
|
7298
7299
|
}
|
|
7299
7300
|
}
|
|
7300
|
-
class
|
|
7301
|
+
class pa extends s {
|
|
7301
7302
|
constructor() {
|
|
7302
7303
|
super(...arguments), this.xmlKeys = { numId: "w:numId" };
|
|
7303
7304
|
}
|
|
7304
7305
|
}
|
|
7305
7306
|
class fr extends r {
|
|
7306
7307
|
constructor(t) {
|
|
7307
|
-
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new
|
|
7308
|
+
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new pa({ numId: (0, n.vH)(t.numId) })), this.root.push(new ha((0, n.vH)(t.abstractNumId))), t.overrideLevel && this.root.push(new Zn(t.overrideLevel.num, t.overrideLevel.start));
|
|
7308
7309
|
}
|
|
7309
7310
|
}
|
|
7310
|
-
class
|
|
7311
|
+
class da extends s {
|
|
7311
7312
|
constructor() {
|
|
7312
7313
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl" };
|
|
7313
7314
|
}
|
|
7314
7315
|
}
|
|
7315
7316
|
class Zn extends r {
|
|
7316
7317
|
constructor(t, f) {
|
|
7317
|
-
super("w:lvlOverride"), this.root.push(new
|
|
7318
|
+
super("w:lvlOverride"), this.root.push(new da({ ilvl: t })), f !== void 0 && this.root.push(new ma(f));
|
|
7318
7319
|
}
|
|
7319
7320
|
}
|
|
7320
|
-
class
|
|
7321
|
+
class fa extends s {
|
|
7321
7322
|
constructor() {
|
|
7322
7323
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7323
7324
|
}
|
|
7324
7325
|
}
|
|
7325
|
-
class
|
|
7326
|
+
class ma extends r {
|
|
7326
7327
|
constructor(t) {
|
|
7327
|
-
super("w:startOverride"), this.root.push(new
|
|
7328
|
+
super("w:startOverride"), this.root.push(new fa({ val: t }));
|
|
7328
7329
|
}
|
|
7329
7330
|
}
|
|
7330
7331
|
class Yn extends r {
|
|
@@ -7344,8 +7345,8 @@ Actual: ` + T.attribValue);
|
|
|
7344
7345
|
if (!H) return;
|
|
7345
7346
|
const J = `${t}-${f}`;
|
|
7346
7347
|
if (this.concreteNumberingMap.has(J)) return;
|
|
7347
|
-
const tt = this.referenceConfigMap.get(t), ut = tt && tt[0].start,
|
|
7348
|
-
this.concreteNumberingMap.set(J, new fr(
|
|
7348
|
+
const tt = this.referenceConfigMap.get(t), ut = tt && tt[0].start, dt = { numId: (0, Ot.NY)(), abstractNumId: H.id, reference: t, instance: f, overrideLevel: ut && Number.isInteger(ut) ? { num: 0, start: ut } : { num: 0, start: 1 } };
|
|
7349
|
+
this.concreteNumberingMap.set(J, new fr(dt));
|
|
7349
7350
|
}
|
|
7350
7351
|
get ConcreteNumbering() {
|
|
7351
7352
|
return Array.from(this.concreteNumberingMap.values());
|
|
@@ -7354,30 +7355,30 @@ Actual: ` + T.attribValue);
|
|
|
7354
7355
|
return Array.from(this.referenceConfigMap.values());
|
|
7355
7356
|
}
|
|
7356
7357
|
}
|
|
7357
|
-
class
|
|
7358
|
+
class ga extends s {
|
|
7358
7359
|
constructor() {
|
|
7359
7360
|
super(...arguments), this.xmlKeys = { version: "w:val", name: "w:name", uri: "w:uri" };
|
|
7360
7361
|
}
|
|
7361
7362
|
}
|
|
7362
|
-
class
|
|
7363
|
+
class wa extends r {
|
|
7363
7364
|
constructor(t) {
|
|
7364
|
-
super("w:compatSetting"), this.root.push(new
|
|
7365
|
+
super("w:compatSetting"), this.root.push(new ga({ version: t, uri: "http://schemas.microsoft.com/office/word", name: "compatibilityMode" }));
|
|
7365
7366
|
}
|
|
7366
7367
|
}
|
|
7367
|
-
class
|
|
7368
|
+
class ya extends r {
|
|
7368
7369
|
constructor(t) {
|
|
7369
|
-
super("w:compat"), t.version && this.root.push(new
|
|
7370
|
+
super("w:compat"), t.version && this.root.push(new wa(t.version)), t.useSingleBorderforContiguousCells && this.root.push(new B("w:useSingleBorderforContiguousCells", t.useSingleBorderforContiguousCells)), t.wordPerfectJustification && this.root.push(new B("w:wpJustification", t.wordPerfectJustification)), t.noTabStopForHangingIndent && this.root.push(new B("w:noTabHangInd", t.noTabStopForHangingIndent)), t.noLeading && this.root.push(new B("w:noLeading", t.noLeading)), t.spaceForUnderline && this.root.push(new B("w:spaceForUL", t.spaceForUnderline)), t.noColumnBalance && this.root.push(new B("w:noColumnBalance", t.noColumnBalance)), t.balanceSingleByteDoubleByteWidth && this.root.push(new B("w:balanceSingleByteDoubleByteWidth", t.balanceSingleByteDoubleByteWidth)), t.noExtraLineSpacing && this.root.push(new B("w:noExtraLineSpacing", t.noExtraLineSpacing)), t.doNotLeaveBackslashAlone && this.root.push(new B("w:doNotLeaveBackslashAlone", t.doNotLeaveBackslashAlone)), t.underlineTrailingSpaces && this.root.push(new B("w:ulTrailSpace", t.underlineTrailingSpaces)), t.doNotExpandShiftReturn && this.root.push(new B("w:doNotExpandShiftReturn", t.doNotExpandShiftReturn)), t.spacingInWholePoints && this.root.push(new B("w:spacingInWholePoints", t.spacingInWholePoints)), t.lineWrapLikeWord6 && this.root.push(new B("w:lineWrapLikeWord6", t.lineWrapLikeWord6)), t.printBodyTextBeforeHeader && this.root.push(new B("w:printBodyTextBeforeHeader", t.printBodyTextBeforeHeader)), t.printColorsBlack && this.root.push(new B("w:printColBlack", t.printColorsBlack)), t.spaceWidth && this.root.push(new B("w:wpSpaceWidth", t.spaceWidth)), t.showBreaksInFrames && this.root.push(new B("w:showBreaksInFrames", t.showBreaksInFrames)), t.subFontBySize && this.root.push(new B("w:subFontBySize", t.subFontBySize)), t.suppressBottomSpacing && this.root.push(new B("w:suppressBottomSpacing", t.suppressBottomSpacing)), t.suppressTopSpacing && this.root.push(new B("w:suppressTopSpacing", t.suppressTopSpacing)), t.suppressSpacingAtTopOfPage && this.root.push(new B("w:suppressSpacingAtTopOfPage", t.suppressSpacingAtTopOfPage)), t.suppressTopSpacingWP && this.root.push(new B("w:suppressTopSpacingWP", t.suppressTopSpacingWP)), t.suppressSpBfAfterPgBrk && this.root.push(new B("w:suppressSpBfAfterPgBrk", t.suppressSpBfAfterPgBrk)), t.swapBordersFacingPages && this.root.push(new B("w:swapBordersFacingPages", t.swapBordersFacingPages)), t.convertMailMergeEsc && this.root.push(new B("w:convMailMergeEsc", t.convertMailMergeEsc)), t.truncateFontHeightsLikeWP6 && this.root.push(new B("w:truncateFontHeightsLikeWP6", t.truncateFontHeightsLikeWP6)), t.macWordSmallCaps && this.root.push(new B("w:mwSmallCaps", t.macWordSmallCaps)), t.usePrinterMetrics && this.root.push(new B("w:usePrinterMetrics", t.usePrinterMetrics)), t.doNotSuppressParagraphBorders && this.root.push(new B("w:doNotSuppressParagraphBorders", t.doNotSuppressParagraphBorders)), t.wrapTrailSpaces && this.root.push(new B("w:wrapTrailSpaces", t.wrapTrailSpaces)), t.footnoteLayoutLikeWW8 && this.root.push(new B("w:footnoteLayoutLikeWW8", t.footnoteLayoutLikeWW8)), t.shapeLayoutLikeWW8 && this.root.push(new B("w:shapeLayoutLikeWW8", t.shapeLayoutLikeWW8)), t.alignTablesRowByRow && this.root.push(new B("w:alignTablesRowByRow", t.alignTablesRowByRow)), t.forgetLastTabAlignment && this.root.push(new B("w:forgetLastTabAlignment", t.forgetLastTabAlignment)), t.adjustLineHeightInTable && this.root.push(new B("w:adjustLineHeightInTable", t.adjustLineHeightInTable)), t.autoSpaceLikeWord95 && this.root.push(new B("w:autoSpaceLikeWord95", t.autoSpaceLikeWord95)), t.noSpaceRaiseLower && this.root.push(new B("w:noSpaceRaiseLower", t.noSpaceRaiseLower)), t.doNotUseHTMLParagraphAutoSpacing && this.root.push(new B("w:doNotUseHTMLParagraphAutoSpacing", t.doNotUseHTMLParagraphAutoSpacing)), t.layoutRawTableWidth && this.root.push(new B("w:layoutRawTableWidth", t.layoutRawTableWidth)), t.layoutTableRowsApart && this.root.push(new B("w:layoutTableRowsApart", t.layoutTableRowsApart)), t.useWord97LineBreakRules && this.root.push(new B("w:useWord97LineBreakRules", t.useWord97LineBreakRules)), t.doNotBreakWrappedTables && this.root.push(new B("w:doNotBreakWrappedTables", t.doNotBreakWrappedTables)), t.doNotSnapToGridInCell && this.root.push(new B("w:doNotSnapToGridInCell", t.doNotSnapToGridInCell)), t.selectFieldWithFirstOrLastCharacter && this.root.push(new B("w:selectFldWithFirstOrLastChar", t.selectFieldWithFirstOrLastCharacter)), t.applyBreakingRules && this.root.push(new B("w:applyBreakingRules", t.applyBreakingRules)), t.doNotWrapTextWithPunctuation && this.root.push(new B("w:doNotWrapTextWithPunct", t.doNotWrapTextWithPunctuation)), t.doNotUseEastAsianBreakRules && this.root.push(new B("w:doNotUseEastAsianBreakRules", t.doNotUseEastAsianBreakRules)), t.useWord2002TableStyleRules && this.root.push(new B("w:useWord2002TableStyleRules", t.useWord2002TableStyleRules)), t.growAutofit && this.root.push(new B("w:growAutofit", t.growAutofit)), t.useFELayout && this.root.push(new B("w:useFELayout", t.useFELayout)), t.useNormalStyleForList && this.root.push(new B("w:useNormalStyleForList", t.useNormalStyleForList)), t.doNotUseIndentAsNumberingTabStop && this.root.push(new B("w:doNotUseIndentAsNumberingTabStop", t.doNotUseIndentAsNumberingTabStop)), t.useAlternateEastAsianLineBreakRules && this.root.push(new B("w:useAltKinsokuLineBreakRules", t.useAlternateEastAsianLineBreakRules)), t.allowSpaceOfSameStyleInTable && this.root.push(new B("w:allowSpaceOfSameStyleInTable", t.allowSpaceOfSameStyleInTable)), t.doNotSuppressIndentation && this.root.push(new B("w:doNotSuppressIndentation", t.doNotSuppressIndentation)), t.doNotAutofitConstrainedTables && this.root.push(new B("w:doNotAutofitConstrainedTables", t.doNotAutofitConstrainedTables)), t.autofitToFirstFixedWidthCell && this.root.push(new B("w:autofitToFirstFixedWidthCell", t.autofitToFirstFixedWidthCell)), t.underlineTabInNumberingList && this.root.push(new B("w:underlineTabInNumList", t.underlineTabInNumberingList)), t.displayHangulFixedWidth && this.root.push(new B("w:displayHangulFixedWidth", t.displayHangulFixedWidth)), t.splitPgBreakAndParaMark && this.root.push(new B("w:splitPgBreakAndParaMark", t.splitPgBreakAndParaMark)), t.doNotVerticallyAlignCellWithSp && this.root.push(new B("w:doNotVertAlignCellWithSp", t.doNotVerticallyAlignCellWithSp)), t.doNotBreakConstrainedForcedTable && this.root.push(new B("w:doNotBreakConstrainedForcedTable", t.doNotBreakConstrainedForcedTable)), t.ignoreVerticalAlignmentInTextboxes && this.root.push(new B("w:doNotVertAlignInTxbx", t.ignoreVerticalAlignmentInTextboxes)), t.useAnsiKerningPairs && this.root.push(new B("w:useAnsiKerningPairs", t.useAnsiKerningPairs)), t.cachedColumnBalance && this.root.push(new B("w:cachedColBalance", t.cachedColumnBalance));
|
|
7370
7371
|
}
|
|
7371
7372
|
}
|
|
7372
|
-
class
|
|
7373
|
+
class ba extends s {
|
|
7373
7374
|
constructor() {
|
|
7374
7375
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7375
7376
|
}
|
|
7376
7377
|
}
|
|
7377
|
-
class
|
|
7378
|
+
class xa extends r {
|
|
7378
7379
|
constructor(t) {
|
|
7379
7380
|
var f, H, J, tt;
|
|
7380
|
-
super("w:settings"), this.root.push(new
|
|
7381
|
+
super("w:settings"), this.root.push(new ba({ 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 ya(Object.assign(Object.assign({}, (f = t.compatibility) !== null && f !== void 0 ? f : {}), { version: (tt = (J = (H = t.compatibility) === null || H === void 0 ? void 0 : H.version) !== null && J !== void 0 ? J : t.compatibilityModeVersion) !== null && tt !== void 0 ? tt : 15 })));
|
|
7381
7382
|
}
|
|
7382
7383
|
}
|
|
7383
7384
|
class Jn extends s {
|
|
@@ -7385,24 +7386,24 @@ Actual: ` + T.attribValue);
|
|
|
7385
7386
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7386
7387
|
}
|
|
7387
7388
|
}
|
|
7388
|
-
class
|
|
7389
|
+
class va extends r {
|
|
7389
7390
|
constructor(t) {
|
|
7390
7391
|
super("w:name"), this.root.push(new Jn({ val: t }));
|
|
7391
7392
|
}
|
|
7392
7393
|
}
|
|
7393
|
-
class
|
|
7394
|
+
class _a extends r {
|
|
7394
7395
|
constructor(t) {
|
|
7395
7396
|
super("w:uiPriority"), this.root.push(new Jn({ val: (0, n.vH)(t) }));
|
|
7396
7397
|
}
|
|
7397
7398
|
}
|
|
7398
|
-
class
|
|
7399
|
+
class Ea extends s {
|
|
7399
7400
|
constructor() {
|
|
7400
7401
|
super(...arguments), this.xmlKeys = { type: "w:type", styleId: "w:styleId", default: "w:default", customStyle: "w:customStyle" };
|
|
7401
7402
|
}
|
|
7402
7403
|
}
|
|
7403
7404
|
class Qn extends r {
|
|
7404
7405
|
constructor(t, f) {
|
|
7405
|
-
super("w:style"), this.root.push(new
|
|
7406
|
+
super("w:style"), this.root.push(new Ea(t)), f.name && this.root.push(new va(f.name)), f.basedOn && this.root.push(new G("w:basedOn", f.basedOn)), f.next && this.root.push(new G("w:next", f.next)), f.link && this.root.push(new G("w:link", f.link)), f.uiPriority !== void 0 && this.root.push(new _a(f.uiPriority)), f.semiHidden !== void 0 && this.root.push(new B("w:semiHidden", f.semiHidden)), f.unhideWhenUsed !== void 0 && this.root.push(new B("w:unhideWhenUsed", f.unhideWhenUsed)), f.quickFormat !== void 0 && this.root.push(new B("w:qFormat", f.quickFormat));
|
|
7406
7407
|
}
|
|
7407
7408
|
}
|
|
7408
7409
|
class pe extends Qn {
|
|
@@ -7420,67 +7421,67 @@ Actual: ` + T.attribValue);
|
|
|
7420
7421
|
super(Object.assign(Object.assign({}, t), { basedOn: "Normal", next: "Normal", quickFormat: !0 }));
|
|
7421
7422
|
}
|
|
7422
7423
|
}
|
|
7423
|
-
class
|
|
7424
|
+
class Ta extends $t {
|
|
7424
7425
|
constructor(t) {
|
|
7425
7426
|
super(Object.assign(Object.assign({}, t), { id: "Title", name: "Title" }));
|
|
7426
7427
|
}
|
|
7427
7428
|
}
|
|
7428
|
-
class
|
|
7429
|
+
class Aa extends $t {
|
|
7429
7430
|
constructor(t) {
|
|
7430
7431
|
super(Object.assign(Object.assign({}, t), { id: "Heading1", name: "Heading 1" }));
|
|
7431
7432
|
}
|
|
7432
7433
|
}
|
|
7433
|
-
class
|
|
7434
|
+
class Sa extends $t {
|
|
7434
7435
|
constructor(t) {
|
|
7435
7436
|
super(Object.assign(Object.assign({}, t), { id: "Heading2", name: "Heading 2" }));
|
|
7436
7437
|
}
|
|
7437
7438
|
}
|
|
7438
|
-
class
|
|
7439
|
+
class Ia extends $t {
|
|
7439
7440
|
constructor(t) {
|
|
7440
7441
|
super(Object.assign(Object.assign({}, t), { id: "Heading3", name: "Heading 3" }));
|
|
7441
7442
|
}
|
|
7442
7443
|
}
|
|
7443
|
-
class
|
|
7444
|
+
class Ra extends $t {
|
|
7444
7445
|
constructor(t) {
|
|
7445
7446
|
super(Object.assign(Object.assign({}, t), { id: "Heading4", name: "Heading 4" }));
|
|
7446
7447
|
}
|
|
7447
7448
|
}
|
|
7448
|
-
class
|
|
7449
|
+
class Na extends $t {
|
|
7449
7450
|
constructor(t) {
|
|
7450
7451
|
super(Object.assign(Object.assign({}, t), { id: "Heading5", name: "Heading 5" }));
|
|
7451
7452
|
}
|
|
7452
7453
|
}
|
|
7453
|
-
class
|
|
7454
|
+
class Ca extends $t {
|
|
7454
7455
|
constructor(t) {
|
|
7455
7456
|
super(Object.assign(Object.assign({}, t), { id: "Heading6", name: "Heading 6" }));
|
|
7456
7457
|
}
|
|
7457
7458
|
}
|
|
7458
|
-
class
|
|
7459
|
+
class Oa extends $t {
|
|
7459
7460
|
constructor(t) {
|
|
7460
7461
|
super(Object.assign(Object.assign({}, t), { id: "Strong", name: "Strong" }));
|
|
7461
7462
|
}
|
|
7462
7463
|
}
|
|
7463
|
-
class
|
|
7464
|
+
class ka extends pe {
|
|
7464
7465
|
constructor(t) {
|
|
7465
7466
|
super(Object.assign(Object.assign({}, t), { id: "ListParagraph", name: "List Paragraph", basedOn: "Normal", quickFormat: !0 }));
|
|
7466
7467
|
}
|
|
7467
7468
|
}
|
|
7468
|
-
class
|
|
7469
|
+
class La extends pe {
|
|
7469
7470
|
constructor(t) {
|
|
7470
7471
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteText", name: "footnote text", link: "FootnoteTextChar", basedOn: "Normal", uiPriority: 99, semiHidden: !0, unhideWhenUsed: !0, paragraph: { spacing: { after: 0, line: 240, lineRule: Jt.AUTO } }, run: { size: 20 } }));
|
|
7471
7472
|
}
|
|
7472
7473
|
}
|
|
7473
|
-
class
|
|
7474
|
+
class Da extends de {
|
|
7474
7475
|
constructor(t) {
|
|
7475
7476
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteReference", name: "footnote reference", basedOn: "DefaultParagraphFont", semiHidden: !0, run: { superScript: !0 } }));
|
|
7476
7477
|
}
|
|
7477
7478
|
}
|
|
7478
|
-
class
|
|
7479
|
+
class Pa extends de {
|
|
7479
7480
|
constructor(t) {
|
|
7480
7481
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteTextChar", name: "Footnote Text Char", basedOn: "DefaultParagraphFont", link: "FootnoteText", semiHidden: !0, run: { size: 20 } }));
|
|
7481
7482
|
}
|
|
7482
7483
|
}
|
|
7483
|
-
class
|
|
7484
|
+
class Fa extends de {
|
|
7484
7485
|
constructor(t) {
|
|
7485
7486
|
super(Object.assign(Object.assign({}, t), { id: "Hyperlink", name: "Hyperlink", basedOn: "DefaultParagraphFont", run: { color: "0563C1", underline: { type: x.SINGLE } } }));
|
|
7486
7487
|
}
|
|
@@ -7520,30 +7521,30 @@ Actual: ` + T.attribValue);
|
|
|
7520
7521
|
class ss {
|
|
7521
7522
|
newInstance(t = {}) {
|
|
7522
7523
|
var f;
|
|
7523
|
-
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", 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", Ignorable: "w14 w15" }), importedStyles: [new rs((f = t.document) !== null && f !== void 0 ? f : {}), new
|
|
7524
|
+
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", 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", Ignorable: "w14 w15" }), importedStyles: [new rs((f = t.document) !== null && f !== void 0 ? f : {}), new Ta(Object.assign({ run: { size: 56 } }, t.title)), new Aa(Object.assign({ run: { color: "2E74B5", size: 32 } }, t.heading1)), new Sa(Object.assign({ run: { color: "2E74B5", size: 26 } }, t.heading2)), new Ia(Object.assign({ run: { color: "1F4D78", size: 24 } }, t.heading3)), new Ra(Object.assign({ run: { color: "2E74B5", italics: !0 } }, t.heading4)), new Na(Object.assign({ run: { color: "2E74B5" } }, t.heading5)), new Ca(Object.assign({ run: { color: "1F4D78" } }, t.heading6)), new Oa(Object.assign({ run: { bold: !0 } }, t.strong)), new ka(t.listParagraph || {}), new Fa(t.hyperlink || {}), new Da(t.footnoteReference || {}), new La(t.footnoteText || {}), new Pa(t.footnoteTextChar || {})] };
|
|
7524
7525
|
}
|
|
7525
7526
|
}
|
|
7526
7527
|
class os {
|
|
7527
7528
|
constructor(t, f = {}) {
|
|
7528
|
-
var H, J, tt, ut,
|
|
7529
|
-
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new
|
|
7529
|
+
var H, J, tt, ut, dt, vt, pt;
|
|
7530
|
+
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new Fi(Object.assign(Object.assign({}, t), { creator: (H = t.creator) !== null && H !== void 0 ? H : "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 Yn(t.numbering ? t.numbering : { config: [] }), this.comments = new Ur((ut = t.comments) !== null && ut !== void 0 ? ut : { children: [] }), this.fileRelationships = new le(), this.customProperties = new zi((dt = t.customProperties) !== null && dt !== void 0 ? dt : []), this.appProperties = new Oi(), this.footnotesWrapper = new Ji(), this.contentTypes = new Pi(), this.documentWrapper = new vn({ background: t.background }), this.settings = new xa({ 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");
|
|
7530
7531
|
if (f.template && f.template.styles) {
|
|
7531
|
-
const
|
|
7532
|
-
this.styles =
|
|
7532
|
+
const gt = new ns();
|
|
7533
|
+
this.styles = gt.newInstance(f.template.styles);
|
|
7533
7534
|
} else if (t.externalStyles) {
|
|
7534
|
-
const
|
|
7535
|
-
this.styles =
|
|
7535
|
+
const gt = new ns();
|
|
7536
|
+
this.styles = gt.newInstance(t.externalStyles);
|
|
7536
7537
|
} else if (t.styles) {
|
|
7537
|
-
const
|
|
7538
|
-
this.styles = new Ae(Object.assign(Object.assign({},
|
|
7538
|
+
const gt = new ss().newInstance(t.styles.default);
|
|
7539
|
+
this.styles = new Ae(Object.assign(Object.assign({}, gt), t.styles));
|
|
7539
7540
|
} else {
|
|
7540
|
-
const
|
|
7541
|
-
this.styles = new Ae(
|
|
7541
|
+
const gt = new ss();
|
|
7542
|
+
this.styles = new Ae(gt.newInstance());
|
|
7542
7543
|
}
|
|
7543
|
-
if (this.addDefaultRelationships(), f.template && f.template.headers) for (const
|
|
7544
|
-
if (f.template && f.template.footers) for (const
|
|
7545
|
-
for (const
|
|
7546
|
-
if (t.footnotes) for (const
|
|
7544
|
+
if (this.addDefaultRelationships(), f.template && f.template.headers) for (const gt of f.template.headers) this.addHeaderToDocument(gt.header, gt.type);
|
|
7545
|
+
if (f.template && f.template.footers) for (const gt of f.template.footers) this.addFooterToDocument(gt.footer, gt.type);
|
|
7546
|
+
for (const gt of t.sections) this.addSection(gt);
|
|
7547
|
+
if (t.footnotes) for (const gt in t.footnotes) this.footnotesWrapper.View.createFootNote(parseFloat(gt), t.footnotes[gt].children);
|
|
7547
7548
|
}
|
|
7548
7549
|
addSection({ headers: t = {}, footers: f = {}, children: H, properties: J }) {
|
|
7549
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 } }));
|
|
@@ -7611,44 +7612,44 @@ Actual: ` + T.attribValue);
|
|
|
7611
7612
|
return this.comments;
|
|
7612
7613
|
}
|
|
7613
7614
|
}
|
|
7614
|
-
const
|
|
7615
|
-
class
|
|
7615
|
+
const Ba = "";
|
|
7616
|
+
class Ma extends r {
|
|
7616
7617
|
constructor(t = {}) {
|
|
7617
7618
|
super("w:instrText"), this.properties = t, this.root.push(new L({ space: d.PRESERVE }));
|
|
7618
7619
|
let f = "TOC";
|
|
7619
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(((H) => `${H.styleName},${H.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);
|
|
7620
7621
|
}
|
|
7621
7622
|
}
|
|
7622
|
-
class
|
|
7623
|
+
class Ua extends r {
|
|
7623
7624
|
constructor() {
|
|
7624
7625
|
super("w:sdtContent");
|
|
7625
7626
|
}
|
|
7626
7627
|
}
|
|
7627
|
-
class
|
|
7628
|
+
class Ha extends r {
|
|
7628
7629
|
constructor(t) {
|
|
7629
7630
|
super("w:sdtPr"), this.root.push(new G("w:alias", t));
|
|
7630
7631
|
}
|
|
7631
7632
|
}
|
|
7632
|
-
class
|
|
7633
|
+
class za extends r {
|
|
7633
7634
|
constructor(t = "Table of Contents", f) {
|
|
7634
|
-
super("w:sdt"), this.root.push(new
|
|
7635
|
-
const H = new
|
|
7635
|
+
super("w:sdt"), this.root.push(new Ha(t));
|
|
7636
|
+
const H = new Ua(), J = new jt({ children: [new Bt({ children: [new T(!0), new Ma(f), new i()] })] });
|
|
7636
7637
|
H.addChildElement(J);
|
|
7637
7638
|
const tt = new jt({ children: [new Bt({ children: [new v()] })] });
|
|
7638
7639
|
H.addChildElement(tt), this.root.push(H);
|
|
7639
7640
|
}
|
|
7640
7641
|
}
|
|
7641
|
-
class
|
|
7642
|
+
class Wa {
|
|
7642
7643
|
constructor(t, f) {
|
|
7643
7644
|
this.styleName = t, this.level = f;
|
|
7644
7645
|
}
|
|
7645
7646
|
}
|
|
7646
|
-
class
|
|
7647
|
+
class ja {
|
|
7647
7648
|
constructor(t = { children: [] }) {
|
|
7648
7649
|
this.options = t;
|
|
7649
7650
|
}
|
|
7650
7651
|
}
|
|
7651
|
-
class
|
|
7652
|
+
class Ka {
|
|
7652
7653
|
constructor(t = { children: [] }) {
|
|
7653
7654
|
this.options = t;
|
|
7654
7655
|
}
|
|
@@ -7663,27 +7664,27 @@ Actual: ` + T.attribValue);
|
|
|
7663
7664
|
super("w:footnoteReference"), this.root.push(new is({ id: t }));
|
|
7664
7665
|
}
|
|
7665
7666
|
}
|
|
7666
|
-
class
|
|
7667
|
+
class Ga extends Bt {
|
|
7667
7668
|
constructor(t) {
|
|
7668
7669
|
super({ style: "FootnoteReference" }), this.root.push(new as(t));
|
|
7669
7670
|
}
|
|
7670
7671
|
}
|
|
7671
|
-
class
|
|
7672
|
+
class Va extends r {
|
|
7672
7673
|
constructor(t) {
|
|
7673
7674
|
super("w:ins"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.addChildElement(new Yt(t));
|
|
7674
7675
|
}
|
|
7675
7676
|
}
|
|
7676
|
-
class
|
|
7677
|
+
class $a extends r {
|
|
7677
7678
|
constructor() {
|
|
7678
7679
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("PAGE");
|
|
7679
7680
|
}
|
|
7680
7681
|
}
|
|
7681
|
-
class
|
|
7682
|
+
class Xa extends r {
|
|
7682
7683
|
constructor() {
|
|
7683
7684
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("NUMPAGES");
|
|
7684
7685
|
}
|
|
7685
7686
|
}
|
|
7686
|
-
class
|
|
7687
|
+
class qa extends r {
|
|
7687
7688
|
constructor() {
|
|
7688
7689
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("SECTIONPAGES");
|
|
7689
7690
|
}
|
|
@@ -7693,23 +7694,23 @@ Actual: ` + T.attribValue);
|
|
|
7693
7694
|
super("w:delText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(t);
|
|
7694
7695
|
}
|
|
7695
7696
|
}
|
|
7696
|
-
class
|
|
7697
|
+
class Za extends r {
|
|
7697
7698
|
constructor(t) {
|
|
7698
|
-
super("w:del"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.deletedTextRunWrapper = new
|
|
7699
|
+
super("w:del"), this.root.push(new yt({ id: t.id, author: t.author, date: t.date })), this.deletedTextRunWrapper = new Ya(t), this.addChildElement(this.deletedTextRunWrapper);
|
|
7699
7700
|
}
|
|
7700
7701
|
}
|
|
7701
|
-
class
|
|
7702
|
+
class Ya extends r {
|
|
7702
7703
|
constructor(t) {
|
|
7703
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);
|
|
7704
7705
|
else switch (f) {
|
|
7705
7706
|
case D.CURRENT:
|
|
7706
|
-
this.root.push(new T()), this.root.push(new
|
|
7707
|
+
this.root.push(new T()), this.root.push(new $a()), this.root.push(new i()), this.root.push(new v());
|
|
7707
7708
|
break;
|
|
7708
7709
|
case D.TOTAL_PAGES:
|
|
7709
|
-
this.root.push(new T()), this.root.push(new
|
|
7710
|
+
this.root.push(new T()), this.root.push(new Xa()), this.root.push(new i()), this.root.push(new v());
|
|
7710
7711
|
break;
|
|
7711
7712
|
case D.TOTAL_PAGES_IN_SECTION:
|
|
7712
|
-
this.root.push(new T()), this.root.push(new
|
|
7713
|
+
this.root.push(new T()), this.root.push(new qa()), this.root.push(new i()), this.root.push(new v());
|
|
7713
7714
|
break;
|
|
7714
7715
|
default:
|
|
7715
7716
|
this.root.push(new cs(f));
|
|
@@ -7719,14 +7720,14 @@ Actual: ` + T.attribValue);
|
|
|
7719
7720
|
}
|
|
7720
7721
|
}
|
|
7721
7722
|
var mr = at(6085), kt = at(3479);
|
|
7722
|
-
class
|
|
7723
|
+
class Ja {
|
|
7723
7724
|
format(t, f = {}) {
|
|
7724
7725
|
const H = t.prepForXml(f);
|
|
7725
7726
|
if (H) return H;
|
|
7726
7727
|
throw Error("XMLComponent did not format correctly");
|
|
7727
7728
|
}
|
|
7728
7729
|
}
|
|
7729
|
-
class
|
|
7730
|
+
class Qa {
|
|
7730
7731
|
replace(t, f, H) {
|
|
7731
7732
|
let J = t;
|
|
7732
7733
|
return f.forEach(((tt, ut) => {
|
|
@@ -7737,7 +7738,7 @@ Actual: ` + T.attribValue);
|
|
|
7737
7738
|
return f.Array.filter(((H) => t.search(`{${H.fileName}}`) > 0));
|
|
7738
7739
|
}
|
|
7739
7740
|
}
|
|
7740
|
-
class
|
|
7741
|
+
class tc {
|
|
7741
7742
|
replace(t, f) {
|
|
7742
7743
|
let H = t;
|
|
7743
7744
|
for (const J of f) H = H.replace(new RegExp(`{${J.reference}-${J.instance}}`, "g"), J.numId.toString());
|
|
@@ -7749,22 +7750,22 @@ Actual: ` + T.attribValue);
|
|
|
7749
7750
|
function ut(pt) {
|
|
7750
7751
|
try {
|
|
7751
7752
|
vt(H.next(pt));
|
|
7752
|
-
} catch (
|
|
7753
|
-
tt(
|
|
7753
|
+
} catch (gt) {
|
|
7754
|
+
tt(gt);
|
|
7754
7755
|
}
|
|
7755
7756
|
}
|
|
7756
|
-
function
|
|
7757
|
+
function dt(pt) {
|
|
7757
7758
|
try {
|
|
7758
7759
|
vt(H.throw(pt));
|
|
7759
|
-
} catch (
|
|
7760
|
-
tt(
|
|
7760
|
+
} catch (gt) {
|
|
7761
|
+
tt(gt);
|
|
7761
7762
|
}
|
|
7762
7763
|
}
|
|
7763
7764
|
function vt(pt) {
|
|
7764
|
-
var
|
|
7765
|
-
pt.done ? J(pt.value) : (
|
|
7766
|
-
Lt(
|
|
7767
|
-
}))).then(ut,
|
|
7765
|
+
var gt;
|
|
7766
|
+
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7767
|
+
Lt(gt);
|
|
7768
|
+
}))).then(ut, dt);
|
|
7768
7769
|
}
|
|
7769
7770
|
vt((H = H.apply(e, [])).next());
|
|
7770
7771
|
}));
|
|
@@ -7799,7 +7800,7 @@ Actual: ` + T.attribValue);
|
|
|
7799
7800
|
}
|
|
7800
7801
|
us.compiler = new class {
|
|
7801
7802
|
constructor() {
|
|
7802
|
-
this.formatter = new
|
|
7803
|
+
this.formatter = new Ja(), this.imageReplacer = new Qa(), this.numberingReplacer = new tc();
|
|
7803
7804
|
}
|
|
7804
7805
|
compile(e, t) {
|
|
7805
7806
|
const f = new mr(), H = this.xmlifyFile(e, t), J = new Map(Object.entries(H));
|
|
@@ -7822,20 +7823,20 @@ Actual: ` + T.attribValue);
|
|
|
7822
7823
|
const tt = kt(this.formatter.format(e.Styles, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } });
|
|
7823
7824
|
return this.numberingReplacer.replace(tt, e.Numbering.ConcreteNumbering);
|
|
7824
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, ut) => {
|
|
7825
|
-
const
|
|
7826
|
-
return this.imageReplacer.getMediaData(
|
|
7826
|
+
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7827
|
+
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7827
7828
|
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7828
7829
|
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/header${ut + 1}.xml.rels` };
|
|
7829
7830
|
})), FooterRelationships: e.Footers.map(((tt, ut) => {
|
|
7830
|
-
const
|
|
7831
|
-
return this.imageReplacer.getMediaData(
|
|
7831
|
+
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7832
|
+
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7832
7833
|
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7833
7834
|
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/footer${ut + 1}.xml.rels` };
|
|
7834
7835
|
})), Headers: e.Headers.map(((tt, ut) => {
|
|
7835
|
-
const
|
|
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);
|
|
7836
7837
|
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/header${ut + 1}.xml` };
|
|
7837
7838
|
})), Footers: e.Footers.map(((tt, ut) => {
|
|
7838
|
-
const
|
|
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);
|
|
7839
7840
|
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/footer${ut + 1}.xml` };
|
|
7840
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" } };
|
|
7841
7842
|
}
|
|
@@ -7845,61 +7846,61 @@ Actual: ` + T.attribValue);
|
|
|
7845
7846
|
function ut(pt) {
|
|
7846
7847
|
try {
|
|
7847
7848
|
vt(H.next(pt));
|
|
7848
|
-
} catch (
|
|
7849
|
-
tt(
|
|
7849
|
+
} catch (gt) {
|
|
7850
|
+
tt(gt);
|
|
7850
7851
|
}
|
|
7851
7852
|
}
|
|
7852
|
-
function
|
|
7853
|
+
function dt(pt) {
|
|
7853
7854
|
try {
|
|
7854
7855
|
vt(H.throw(pt));
|
|
7855
|
-
} catch (
|
|
7856
|
-
tt(
|
|
7856
|
+
} catch (gt) {
|
|
7857
|
+
tt(gt);
|
|
7857
7858
|
}
|
|
7858
7859
|
}
|
|
7859
7860
|
function vt(pt) {
|
|
7860
|
-
var
|
|
7861
|
-
pt.done ? J(pt.value) : (
|
|
7862
|
-
Lt(
|
|
7863
|
-
}))).then(ut,
|
|
7861
|
+
var gt;
|
|
7862
|
+
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7863
|
+
Lt(gt);
|
|
7864
|
+
}))).then(ut, dt);
|
|
7864
7865
|
}
|
|
7865
7866
|
vt((H = H.apply(e, [])).next());
|
|
7866
7867
|
}));
|
|
7867
7868
|
};
|
|
7868
|
-
const
|
|
7869
|
+
const ec = { "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" };
|
|
7869
7870
|
var Ie;
|
|
7870
7871
|
(function(e) {
|
|
7871
7872
|
e.HEADER = "header", e.FOOTER = "footer", e.IMAGE = "image", e.HYPERLINK = "hyperlink";
|
|
7872
7873
|
})(Ie || (Ie = {}));
|
|
7873
|
-
class
|
|
7874
|
+
class rc {
|
|
7874
7875
|
extract(t) {
|
|
7875
7876
|
return oe(this, void 0, void 0, (function* () {
|
|
7876
|
-
const f = yield mr.loadAsync(t), H = yield f.files["word/document.xml"].async("text"), J = yield f.files["word/_rels/document.xml.rels"].async("text"), tt = this.extractDocumentRefs(H), ut = this.findReferenceFiles(J),
|
|
7877
|
-
return { headers: yield this.createHeaders(f, tt, ut,
|
|
7877
|
+
const f = yield mr.loadAsync(t), H = yield f.files["word/document.xml"].async("text"), J = yield f.files["word/_rels/document.xml.rels"].async("text"), tt = this.extractDocumentRefs(H), ut = this.findReferenceFiles(J), dt = new lr();
|
|
7878
|
+
return { headers: yield this.createHeaders(f, tt, ut, dt, 0), footers: yield this.createFooters(f, tt, ut, dt, tt.headers.length), currentRelationshipId: tt.footers.length + tt.headers.length, styles: yield f.files["word/styles.xml"].async("text"), titlePageIsDefined: this.checkIfTitlePageIsDefined(H), media: dt };
|
|
7878
7879
|
}));
|
|
7879
7880
|
}
|
|
7880
7881
|
createFooters(t, f, H, J, tt) {
|
|
7881
7882
|
return oe(this, void 0, void 0, (function* () {
|
|
7882
|
-
const ut = f.footers.map(((
|
|
7883
|
-
const pt = H.find(((Pt) => Pt.id ===
|
|
7884
|
-
if (pt === null || !pt) throw new Error(`Can not find target file for id ${
|
|
7885
|
-
const
|
|
7883
|
+
const ut = f.footers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7884
|
+
const pt = H.find(((Pt) => Pt.id === dt.id));
|
|
7885
|
+
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7886
|
+
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, m.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7886
7887
|
if (!Lt.elements) return;
|
|
7887
7888
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:ftr" ? Kt : Pt)), Dt = I(St), zt = new ar(J, tt + vt, Dt);
|
|
7888
|
-
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type:
|
|
7889
|
-
})))).filter(((
|
|
7889
|
+
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, footer: zt };
|
|
7890
|
+
})))).filter(((dt) => !!dt));
|
|
7890
7891
|
return Promise.all(ut);
|
|
7891
7892
|
}));
|
|
7892
7893
|
}
|
|
7893
7894
|
createHeaders(t, f, H, J, tt) {
|
|
7894
7895
|
return oe(this, void 0, void 0, (function* () {
|
|
7895
|
-
const ut = f.headers.map(((
|
|
7896
|
-
const pt = H.find(((Pt) => Pt.id ===
|
|
7897
|
-
if (pt === null || !pt) throw new Error(`Can not find target file for id ${
|
|
7898
|
-
const
|
|
7896
|
+
const ut = f.headers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7897
|
+
const pt = H.find(((Pt) => Pt.id === dt.id));
|
|
7898
|
+
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7899
|
+
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, m.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7899
7900
|
if (!Lt.elements) return;
|
|
7900
7901
|
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:hdr" ? Kt : Pt)), Dt = I(St), zt = new ur(J, tt + vt, Dt);
|
|
7901
|
-
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type:
|
|
7902
|
-
})))).filter(((
|
|
7902
|
+
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, header: zt };
|
|
7903
|
+
})))).filter(((dt) => !!dt));
|
|
7903
7904
|
return Promise.all(ut);
|
|
7904
7905
|
}));
|
|
7905
7906
|
}
|
|
@@ -7907,9 +7908,9 @@ Actual: ` + T.attribValue);
|
|
|
7907
7908
|
return oe(this, void 0, void 0, (function* () {
|
|
7908
7909
|
const tt = f.files[`word/_rels/${t.target}.rels`];
|
|
7909
7910
|
if (!tt) return;
|
|
7910
|
-
const ut = yield tt.async("text"),
|
|
7911
|
-
for (const pt of
|
|
7912
|
-
const
|
|
7911
|
+
const ut = yield tt.async("text"), dt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.IMAGE)), vt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.HYPERLINK));
|
|
7912
|
+
for (const pt of dt) {
|
|
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 });
|
|
7913
7914
|
H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${St.fileName}`);
|
|
7914
7915
|
}
|
|
7915
7916
|
for (const pt of vt) H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", pt.target, be.EXTERNAL);
|
|
@@ -7919,7 +7920,7 @@ Actual: ` + T.attribValue);
|
|
|
7919
7920
|
const f = (0, m.xml2js)(t, { compact: !0 });
|
|
7920
7921
|
return (Array.isArray(f.Relationships.Relationship) ? f.Relationships.Relationship : [f.Relationships.Relationship]).map(((H) => {
|
|
7921
7922
|
if (H._attributes === void 0) throw Error("relationship element has no attributes");
|
|
7922
|
-
return { id: this.parseRefId(H._attributes.Id), type:
|
|
7923
|
+
return { id: this.parseRefId(H._attributes.Id), type: ec[H._attributes.Type], target: H._attributes.Target };
|
|
7923
7924
|
})).filter(((H) => H.type !== null));
|
|
7924
7925
|
}
|
|
7925
7926
|
extractDocumentRefs(t) {
|
|
@@ -7930,8 +7931,8 @@ Actual: ` + T.attribValue);
|
|
|
7930
7931
|
if (vt._attributes === void 0) throw Error("header reference element has no attributes");
|
|
7931
7932
|
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7932
7933
|
})), ut = f["w:footerReference"];
|
|
7933
|
-
let
|
|
7934
|
-
return
|
|
7934
|
+
let dt;
|
|
7935
|
+
return dt = ut === void 0 ? [] : Array.isArray(ut) ? ut : [ut], { headers: tt, footers: dt.map(((vt) => {
|
|
7935
7936
|
if (vt._attributes === void 0) throw Error("footer reference element has no attributes");
|
|
7936
7937
|
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7937
7938
|
})) };
|
|
@@ -7950,28 +7951,8 @@ Actual: ` + T.attribValue);
|
|
|
7950
7951
|
})()));
|
|
7951
7952
|
})(wr)), wr.exports;
|
|
7952
7953
|
}
|
|
7953
|
-
var Nt =
|
|
7954
|
-
const
|
|
7955
|
-
apiUrl: "",
|
|
7956
|
-
headers: {
|
|
7957
|
-
// Add default headers if needed (e.g., API key)
|
|
7958
|
-
// 'Authorization': 'Bearer YOUR_API_KEY',
|
|
7959
|
-
// 'X-API-Key': 'YOUR_API_KEY'
|
|
7960
|
-
}
|
|
7961
|
-
};
|
|
7962
|
-
let cc = { ...ac };
|
|
7963
|
-
function xs() {
|
|
7964
|
-
return { ...cc };
|
|
7965
|
-
}
|
|
7966
|
-
function uc() {
|
|
7967
|
-
return xs().headers || {};
|
|
7968
|
-
}
|
|
7969
|
-
function lc(dt, xt) {
|
|
7970
|
-
if (!dt) return "";
|
|
7971
|
-
const st = dt.replace(/\/$/, ""), mt = xt.replace(/^\//, "");
|
|
7972
|
-
return `${st}/${mt}`;
|
|
7973
|
-
}
|
|
7974
|
-
const hc = {
|
|
7954
|
+
var Nt = cc();
|
|
7955
|
+
const uc = {
|
|
7975
7956
|
apiEndpoints: {
|
|
7976
7957
|
exportWord: "/documents/export-word"
|
|
7977
7958
|
},
|
|
@@ -7983,32 +7964,32 @@ const hc = {
|
|
|
7983
7964
|
useClientSideFallback: !0
|
|
7984
7965
|
// Enable fallback by default
|
|
7985
7966
|
};
|
|
7986
|
-
let
|
|
7967
|
+
let lc = { ...uc };
|
|
7987
7968
|
function vr() {
|
|
7988
|
-
return { ...
|
|
7969
|
+
return { ...lc };
|
|
7989
7970
|
}
|
|
7990
|
-
function
|
|
7971
|
+
function hc(ft) {
|
|
7991
7972
|
var at;
|
|
7992
|
-
const xt = vr(), st =
|
|
7993
|
-
return
|
|
7973
|
+
const xt = vr(), st = ac(), wt = (at = xt.apiUrl) != null ? at : st.apiUrl;
|
|
7974
|
+
return oc(wt, xt.apiEndpoints[ft]);
|
|
7994
7975
|
}
|
|
7995
|
-
function
|
|
7996
|
-
const
|
|
7997
|
-
return { ...
|
|
7976
|
+
function pc() {
|
|
7977
|
+
const ft = ic(), st = vr().headers || {};
|
|
7978
|
+
return { ...ft, ...st };
|
|
7998
7979
|
}
|
|
7999
7980
|
let yr = null, br = null, xr = null;
|
|
8000
|
-
async function
|
|
8001
|
-
return yr || (yr = import("./index-CavM-mEM.mjs").then((
|
|
7981
|
+
async function dc() {
|
|
7982
|
+
return yr || (yr = import("./index-CavM-mEM.mjs").then((ft) => ft.i)), yr;
|
|
8002
7983
|
}
|
|
8003
|
-
async function
|
|
8004
|
-
return br || (br = import("./jspdf.es.min-BsnKYYHL.mjs").then((
|
|
7984
|
+
async function fc() {
|
|
7985
|
+
return br || (br = import("./jspdf.es.min-BsnKYYHL.mjs").then((ft) => ft.j)), br;
|
|
8005
7986
|
}
|
|
8006
|
-
async function
|
|
7987
|
+
async function mc() {
|
|
8007
7988
|
return xr || (xr = import("./html2canvas.esm-AYkPY5LS.mjs")), xr;
|
|
8008
7989
|
}
|
|
8009
|
-
async function
|
|
8010
|
-
const xt = await
|
|
8011
|
-
return new Promise((st,
|
|
7990
|
+
async function Ic(ft) {
|
|
7991
|
+
const xt = await dc();
|
|
7992
|
+
return new Promise((st, wt) => {
|
|
8012
7993
|
const at = new FileReader();
|
|
8013
7994
|
at.onload = async (_t) => {
|
|
8014
7995
|
var W;
|
|
@@ -8016,19 +7997,19 @@ async function Rc(dt) {
|
|
|
8016
7997
|
const F = (W = _t.target) == null ? void 0 : W.result, r = await xt.convertToHtml({ arrayBuffer: F });
|
|
8017
7998
|
st(r.value);
|
|
8018
7999
|
} catch (F) {
|
|
8019
|
-
|
|
8000
|
+
wt(new Error(`Failed to import Word document: ${F}`));
|
|
8020
8001
|
}
|
|
8021
|
-
}, at.onerror = () =>
|
|
8002
|
+
}, at.onerror = () => wt(new Error("Failed to read file")), at.readAsArrayBuffer(ft);
|
|
8022
8003
|
});
|
|
8023
8004
|
}
|
|
8024
|
-
async function
|
|
8005
|
+
async function Rc(ft, xt = "document.docx") {
|
|
8025
8006
|
var W;
|
|
8026
|
-
const
|
|
8027
|
-
const F =
|
|
8007
|
+
const wt = (W = vr().useClientSideFallback) != null ? W : !0, at = async () => {
|
|
8008
|
+
const F = gc(ft), r = await Nt.Packer.toBlob(F);
|
|
8028
8009
|
ys(r, xt);
|
|
8029
|
-
}, _t =
|
|
8010
|
+
}, _t = hc("exportWord");
|
|
8030
8011
|
if (!_t) {
|
|
8031
|
-
if (!
|
|
8012
|
+
if (!wt)
|
|
8032
8013
|
throw new Error("Failed to export to Word: no API is configured (set apiUrl) and client-side export is turned off");
|
|
8033
8014
|
try {
|
|
8034
8015
|
await at();
|
|
@@ -8038,14 +8019,14 @@ async function Nc(dt, xt = "document.docx") {
|
|
|
8038
8019
|
return;
|
|
8039
8020
|
}
|
|
8040
8021
|
try {
|
|
8041
|
-
const F =
|
|
8022
|
+
const F = pc(), r = await fetch(_t, {
|
|
8042
8023
|
method: "POST",
|
|
8043
8024
|
headers: {
|
|
8044
8025
|
"Content-Type": "application/json",
|
|
8045
8026
|
...F
|
|
8046
8027
|
},
|
|
8047
8028
|
body: JSON.stringify({
|
|
8048
|
-
htmlContent:
|
|
8029
|
+
htmlContent: ft,
|
|
8049
8030
|
filename: xt
|
|
8050
8031
|
})
|
|
8051
8032
|
});
|
|
@@ -8056,7 +8037,7 @@ async function Nc(dt, xt = "document.docx") {
|
|
|
8056
8037
|
const a = await r.blob();
|
|
8057
8038
|
ys(a, xt);
|
|
8058
8039
|
} catch (F) {
|
|
8059
|
-
if (
|
|
8040
|
+
if (wt) {
|
|
8060
8041
|
console.warn("API export failed, falling back to client-side generation:", F);
|
|
8061
8042
|
try {
|
|
8062
8043
|
await at(), console.info("✅ Document exported successfully using client-side generation");
|
|
@@ -8067,9 +8048,9 @@ async function Nc(dt, xt = "document.docx") {
|
|
|
8067
8048
|
throw new Error(`Failed to export to Word via API: ${F}`);
|
|
8068
8049
|
}
|
|
8069
8050
|
}
|
|
8070
|
-
async function
|
|
8051
|
+
async function Nc(ft, xt = "document.pdf", st) {
|
|
8071
8052
|
try {
|
|
8072
|
-
const at = (await
|
|
8053
|
+
const at = (await fc()).default, _t = new at({
|
|
8073
8054
|
orientation: "portrait",
|
|
8074
8055
|
unit: "mm",
|
|
8075
8056
|
format: "a4"
|
|
@@ -8078,7 +8059,7 @@ async function Cc(dt, xt = "document.pdf", st) {
|
|
|
8078
8059
|
const u = st.style.position, m = st.style.overflow, I = st.style.height, p = st.style.maxHeight;
|
|
8079
8060
|
st.style.position = "relative", st.style.overflow = "visible", st.style.height = "auto", st.style.maxHeight = "none", st.offsetHeight;
|
|
8080
8061
|
try {
|
|
8081
|
-
const N = (await
|
|
8062
|
+
const N = (await mc()).default, _ = await N(st, {
|
|
8082
8063
|
scale: 2,
|
|
8083
8064
|
// High quality rendering
|
|
8084
8065
|
useCORS: !0,
|
|
@@ -8121,7 +8102,7 @@ async function Cc(dt, xt = "document.pdf", st) {
|
|
|
8121
8102
|
throw st.style.position = u, st.style.overflow = m, st.style.height = I, st.style.maxHeight = p, S;
|
|
8122
8103
|
}
|
|
8123
8104
|
} else {
|
|
8124
|
-
const u =
|
|
8105
|
+
const u = Tc(ft).split(`
|
|
8125
8106
|
`);
|
|
8126
8107
|
let m = W;
|
|
8127
8108
|
u.forEach((I) => {
|
|
@@ -8129,16 +8110,16 @@ async function Cc(dt, xt = "document.pdf", st) {
|
|
|
8129
8110
|
});
|
|
8130
8111
|
}
|
|
8131
8112
|
_t.save(xt);
|
|
8132
|
-
} catch (
|
|
8133
|
-
throw new Error(`Failed to export to PDF: ${
|
|
8113
|
+
} catch (wt) {
|
|
8114
|
+
throw new Error(`Failed to export to PDF: ${wt}`);
|
|
8134
8115
|
}
|
|
8135
8116
|
}
|
|
8136
|
-
function
|
|
8137
|
-
const xt = bs(
|
|
8138
|
-
return Array.from(xt.children).forEach((
|
|
8117
|
+
function gc(ft) {
|
|
8118
|
+
const xt = bs(ft), st = [];
|
|
8119
|
+
return Array.from(xt.children).forEach((wt) => {
|
|
8139
8120
|
var _t;
|
|
8140
|
-
const at =
|
|
8141
|
-
at.match(/^H[1-6]$/) ? st.push(
|
|
8121
|
+
const at = wt.tagName;
|
|
8122
|
+
at.match(/^H[1-6]$/) ? st.push(wc(wt)) : at === "P" ? st.push(gs(wt)) : at === "TABLE" ? st.push(_c(wt)) : at === "UL" || at === "OL" ? st.push(...Ec(wt, at === "OL")) : at === "BLOCKQUOTE" ? st.push(yc(wt)) : at === "PRE" || at === "CODE" ? st.push(bc(wt)) : at === "HR" ? st.push(xc()) : (_t = wt.textContent) != null && _t.trim() && st.push(gs(wt));
|
|
8142
8123
|
}), st.length === 0 && st.push(new Nt.Paragraph({ children: [new Nt.TextRun({ text: "" })] })), new Nt.Document({
|
|
8143
8124
|
sections: [{
|
|
8144
8125
|
properties: {},
|
|
@@ -8146,8 +8127,8 @@ function yc(dt) {
|
|
|
8146
8127
|
}]
|
|
8147
8128
|
});
|
|
8148
8129
|
}
|
|
8149
|
-
function
|
|
8150
|
-
const xt = parseInt(
|
|
8130
|
+
function wc(ft) {
|
|
8131
|
+
const xt = parseInt(ft.tagName.charAt(1)), st = fe(ft), wt = xs(ft), at = {
|
|
8151
8132
|
1: 32,
|
|
8152
8133
|
// 16pt
|
|
8153
8134
|
2: 28,
|
|
@@ -8179,12 +8160,12 @@ function bc(dt) {
|
|
|
8179
8160
|
}) : W;
|
|
8180
8161
|
}),
|
|
8181
8162
|
heading: `Heading${xt}`,
|
|
8182
|
-
alignment:
|
|
8163
|
+
alignment: wt,
|
|
8183
8164
|
spacing: { before: 240, after: 120 }
|
|
8184
8165
|
});
|
|
8185
8166
|
}
|
|
8186
|
-
function gs(
|
|
8187
|
-
const xt = fe(
|
|
8167
|
+
function gs(ft) {
|
|
8168
|
+
const xt = fe(ft), st = xs(ft), wt = vc(ft);
|
|
8188
8169
|
return new Nt.Paragraph({
|
|
8189
8170
|
children: xt.map((at) => {
|
|
8190
8171
|
const _t = {
|
|
@@ -8201,11 +8182,11 @@ function gs(dt) {
|
|
|
8201
8182
|
return at.link && (_t.style = "Hyperlink"), new Nt.TextRun(_t);
|
|
8202
8183
|
}),
|
|
8203
8184
|
alignment: st,
|
|
8204
|
-
indent:
|
|
8185
|
+
indent: wt
|
|
8205
8186
|
});
|
|
8206
8187
|
}
|
|
8207
|
-
function
|
|
8208
|
-
const xt = fe(
|
|
8188
|
+
function yc(ft) {
|
|
8189
|
+
const xt = fe(ft);
|
|
8209
8190
|
return new Nt.Paragraph({
|
|
8210
8191
|
children: xt.map((st) => new Nt.TextRun({
|
|
8211
8192
|
text: st.text,
|
|
@@ -8228,8 +8209,8 @@ function xc(dt) {
|
|
|
8228
8209
|
}
|
|
8229
8210
|
});
|
|
8230
8211
|
}
|
|
8231
|
-
function
|
|
8232
|
-
const xt =
|
|
8212
|
+
function bc(ft) {
|
|
8213
|
+
const xt = ft.textContent || "";
|
|
8233
8214
|
return new Nt.Paragraph({
|
|
8234
8215
|
children: [
|
|
8235
8216
|
new Nt.TextRun({
|
|
@@ -8249,7 +8230,7 @@ function vc(dt) {
|
|
|
8249
8230
|
spacing: { before: 120, after: 120 }
|
|
8250
8231
|
});
|
|
8251
8232
|
}
|
|
8252
|
-
function
|
|
8233
|
+
function xc() {
|
|
8253
8234
|
return new Nt.Paragraph({
|
|
8254
8235
|
children: [new Nt.TextRun({ text: "" })],
|
|
8255
8236
|
border: {
|
|
@@ -8263,8 +8244,8 @@ function _c() {
|
|
|
8263
8244
|
spacing: { before: 120, after: 120 }
|
|
8264
8245
|
});
|
|
8265
8246
|
}
|
|
8266
|
-
function fe(
|
|
8267
|
-
var
|
|
8247
|
+
function fe(ft) {
|
|
8248
|
+
var wt;
|
|
8268
8249
|
const xt = [];
|
|
8269
8250
|
function st(at, _t = {}) {
|
|
8270
8251
|
var W, F;
|
|
@@ -8294,34 +8275,34 @@ function fe(dt) {
|
|
|
8294
8275
|
u.fontFamily && (a.font = u.fontFamily.replace(/['"]/g, "").split(",")[0].trim()), Array.from(r.childNodes).forEach((m) => st(m, a));
|
|
8295
8276
|
}
|
|
8296
8277
|
}
|
|
8297
|
-
return Array.from(
|
|
8278
|
+
return Array.from(ft.childNodes).forEach((at) => st(at)), xt.length === 0 && ((wt = ft.textContent) != null && wt.trim()) && xt.push({ text: ft.textContent.trim() }), xt;
|
|
8298
8279
|
}
|
|
8299
|
-
function
|
|
8300
|
-
const st =
|
|
8280
|
+
function xs(ft) {
|
|
8281
|
+
const st = ft.style.textAlign;
|
|
8301
8282
|
if (st === "center") return "center";
|
|
8302
8283
|
if (st === "right") return "right";
|
|
8303
8284
|
if (st === "justify") return "justify";
|
|
8304
8285
|
if (st === "left") return "left";
|
|
8305
8286
|
}
|
|
8306
|
-
function
|
|
8307
|
-
const st =
|
|
8287
|
+
function vc(ft) {
|
|
8288
|
+
const st = ft.style, wt = {};
|
|
8308
8289
|
if (st.marginLeft || st.paddingLeft) {
|
|
8309
8290
|
const at = parseInt(st.marginLeft || st.paddingLeft);
|
|
8310
|
-
!isNaN(at) && at > 0 && (
|
|
8291
|
+
!isNaN(at) && at > 0 && (wt.left = Math.round(at * 14.4));
|
|
8311
8292
|
}
|
|
8312
8293
|
if (st.marginRight || st.paddingRight) {
|
|
8313
8294
|
const at = parseInt(st.marginRight || st.paddingRight);
|
|
8314
|
-
!isNaN(at) && at > 0 && (
|
|
8295
|
+
!isNaN(at) && at > 0 && (wt.right = Math.round(at * 14.4));
|
|
8315
8296
|
}
|
|
8316
|
-
return Object.keys(
|
|
8297
|
+
return Object.keys(wt).length > 0 ? wt : void 0;
|
|
8317
8298
|
}
|
|
8318
|
-
function ws(
|
|
8319
|
-
if (
|
|
8320
|
-
return
|
|
8321
|
-
const xt =
|
|
8299
|
+
function ws(ft) {
|
|
8300
|
+
if (ft.startsWith("#"))
|
|
8301
|
+
return ft.substring(1).toUpperCase();
|
|
8302
|
+
const xt = ft.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
8322
8303
|
if (xt) {
|
|
8323
|
-
const
|
|
8324
|
-
return (
|
|
8304
|
+
const wt = parseInt(xt[1]), at = parseInt(xt[2]), _t = parseInt(xt[3]);
|
|
8305
|
+
return (wt << 16 | at << 8 | _t).toString(16).padStart(6, "0").toUpperCase();
|
|
8325
8306
|
}
|
|
8326
8307
|
return {
|
|
8327
8308
|
black: "000000",
|
|
@@ -8334,13 +8315,13 @@ function ws(dt) {
|
|
|
8334
8315
|
magenta: "FF00FF",
|
|
8335
8316
|
gray: "808080",
|
|
8336
8317
|
grey: "808080"
|
|
8337
|
-
}[
|
|
8318
|
+
}[ft.toLowerCase()] || "000000";
|
|
8338
8319
|
}
|
|
8339
|
-
function
|
|
8320
|
+
function _c(ft) {
|
|
8340
8321
|
const xt = [];
|
|
8341
|
-
return
|
|
8322
|
+
return ft.querySelectorAll("tr").forEach((wt) => {
|
|
8342
8323
|
const at = [];
|
|
8343
|
-
|
|
8324
|
+
wt.querySelectorAll("td, th").forEach((W) => {
|
|
8344
8325
|
const F = fe(W), r = W.tagName === "TH";
|
|
8345
8326
|
at.push(
|
|
8346
8327
|
new Nt.TableCell({
|
|
@@ -8380,9 +8361,9 @@ function Tc(dt) {
|
|
|
8380
8361
|
}
|
|
8381
8362
|
});
|
|
8382
8363
|
}
|
|
8383
|
-
function
|
|
8364
|
+
function Ec(ft, xt = !1) {
|
|
8384
8365
|
const st = [];
|
|
8385
|
-
return
|
|
8366
|
+
return ft.querySelectorAll("li").forEach((at, _t) => {
|
|
8386
8367
|
const W = fe(at), F = xt ? `${_t + 1}.` : "•";
|
|
8387
8368
|
st.push(
|
|
8388
8369
|
new Nt.Paragraph({
|
|
@@ -8413,17 +8394,17 @@ function Ac(dt, xt = !1) {
|
|
|
8413
8394
|
);
|
|
8414
8395
|
}), st;
|
|
8415
8396
|
}
|
|
8416
|
-
function
|
|
8417
|
-
return bs(
|
|
8397
|
+
function Tc(ft) {
|
|
8398
|
+
return bs(ft).textContent || "";
|
|
8418
8399
|
}
|
|
8419
|
-
function ys(
|
|
8420
|
-
const st = URL.createObjectURL(
|
|
8421
|
-
|
|
8400
|
+
function ys(ft, xt) {
|
|
8401
|
+
const st = URL.createObjectURL(ft), wt = document.createElement("a");
|
|
8402
|
+
wt.href = st, wt.download = xt, document.body.appendChild(wt), wt.click(), document.body.removeChild(wt), URL.revokeObjectURL(st);
|
|
8422
8403
|
}
|
|
8423
8404
|
export {
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8405
|
+
Nc as exportToPdf,
|
|
8406
|
+
Rc as exportToWord,
|
|
8407
|
+
gc as htmlToDocx,
|
|
8408
|
+
Ic as importFromWord
|
|
8428
8409
|
};
|
|
8429
|
-
//# sourceMappingURL=documentManager-
|
|
8410
|
+
//# sourceMappingURL=documentManager-DHLCoWzw.mjs.map
|