docx 8.1.0 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/build/export/formatter.spec.d.ts +1 -0
- package/build/export/packer/image-replacer.spec.d.ts +1 -0
- package/build/export/packer/next-compiler.spec.d.ts +1 -0
- package/build/export/packer/packer.spec.d.ts +1 -0
- package/build/file/border/border.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox-symbol.d.ts +4 -0
- package/build/file/checkbox/checkbox-util.d.ts +17 -0
- package/build/file/checkbox/checkbox-util.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox.d.ts +8 -0
- package/build/file/checkbox/checkbox.spec.d.ts +1 -0
- package/build/file/checkbox/index.d.ts +3 -0
- package/build/file/content-types/content-types.spec.d.ts +1 -0
- package/build/file/core-properties/properties.spec.d.ts +1 -0
- package/build/file/custom-properties/custom-properties.spec.d.ts +1 -0
- package/build/file/document/body/body.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/columns.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/doc-grid.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-borders.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-size.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/section-type.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/section-properties.spec.d.ts +1 -0
- package/build/file/document/document-background/document-background.spec.d.ts +1 -0
- package/build/file/document/document.spec.d.ts +1 -0
- package/build/file/document-wrapper.spec.d.ts +1 -0
- package/build/file/drawing/anchor/anchor.spec.d.ts +1 -0
- package/build/file/drawing/doc-properties/doc-properties-children.spec.d.ts +1 -0
- package/build/file/drawing/drawing.spec.d.ts +1 -0
- package/build/file/drawing/floating/align.spec.d.ts +1 -0
- package/build/file/drawing/floating/horizontal-position.spec.d.ts +1 -0
- package/build/file/drawing/floating/position-offset.spec.d.ts +1 -0
- package/build/file/drawing/floating/simple-pos.spec.d.ts +1 -0
- package/build/file/drawing/floating/vertical-position.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +1 -0
- package/build/file/file.spec.d.ts +1 -0
- package/build/file/footer/footer.spec.d.ts +1 -0
- package/build/file/footer/index.d.ts +1 -0
- package/build/file/footer-wrapper.spec.d.ts +1 -0
- package/build/file/footnotes/footnote/footnote.spec.d.ts +1 -0
- package/build/file/footnotes-wrapper.spec.d.ts +1 -0
- package/build/file/header/header.spec.d.ts +1 -0
- package/build/file/header/index.d.ts +1 -0
- package/build/file/header-wrapper.spec.d.ts +1 -0
- package/build/file/index.d.ts +1 -0
- package/build/file/media/media.spec.d.ts +1 -0
- package/build/file/numbering/abstract-numbering.spec.d.ts +1 -0
- package/build/file/numbering/concrete-numbering.spec.d.ts +1 -0
- package/build/file/numbering/level.spec.d.ts +1 -0
- package/build/file/numbering/numbering.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/alignment.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/border.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/break.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/indent.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/spacing.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/style.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/tab-stop.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/unordered-list.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/width.d.ts +0 -0
- package/build/file/paragraph/formatting/word-wrap.spec.d.ts +1 -0
- package/build/file/paragraph/frame/frame-properties.spec.d.ts +1 -0
- package/build/file/paragraph/links/bookmark.spec.d.ts +1 -0
- package/build/file/paragraph/links/hyperlink.spec.d.ts +1 -0
- package/build/file/paragraph/links/outline-level.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref-field-instruction.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-ending-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-denominator.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-fraction.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-numerator.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-name.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-run.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-text.spec.d.ts +1 -0
- package/build/file/paragraph/math/math.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-base.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-integral.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sum.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/paragraph.d.ts +2 -1
- package/build/file/paragraph/paragraph.spec.d.ts +1 -0
- package/build/file/paragraph/properties.spec.d.ts +1 -0
- package/build/file/paragraph/run/break.spec.d.ts +1 -0
- package/build/file/paragraph/run/comment-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/emphasis-mark.spec.d.ts +1 -0
- package/build/file/paragraph/run/empty-children.spec.d.ts +1 -0
- package/build/file/paragraph/run/formatting.spec.d.ts +1 -0
- package/build/file/paragraph/run/image-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/language.spec.d.ts +1 -0
- package/build/file/paragraph/run/page-number.spec.d.ts +1 -0
- package/build/file/paragraph/run/positional-tab.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/symbol.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/text.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-fonts.spec.d.ts +1 -0
- package/build/file/paragraph/run/run.spec.d.ts +1 -0
- package/build/file/paragraph/run/script.spec.d.ts +1 -0
- package/build/file/paragraph/run/sequential-identifier.spec.d.ts +1 -0
- package/build/file/paragraph/run/simple-field.spec.d.ts +1 -0
- package/build/file/paragraph/run/symbol-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/text-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/underline.spec.d.ts +1 -0
- package/build/file/relationships/relationships.spec.d.ts +1 -0
- package/build/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +1 -0
- package/build/file/settings/compatibility.spec.d.ts +1 -0
- package/build/file/settings/settings.spec.d.ts +1 -0
- package/build/file/shading/shading.spec.d.ts +1 -0
- package/build/file/styles/defaults/document-defaults.spec.d.ts +1 -0
- package/build/file/styles/external-styles-factory.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/exceptions.d.ts +20 -0
- package/build/file/styles/latent-styles/exceptions.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/index.d.ts +1 -0
- package/build/file/styles/latent-styles/latent-styles.d.ts +5 -0
- package/build/file/styles/latent-styles/latent-styles.spec.d.ts +1 -0
- package/build/file/styles/sample/default-style.d.ts +1 -0
- package/build/file/styles/sample/default-style.spec.d.ts +1 -0
- package/build/file/styles/sample/index.d.ts +1 -0
- package/build/file/styles/style/character-style.spec.d.ts +1 -0
- package/build/file/styles/style/components.spec.d.ts +1 -0
- package/build/file/styles/style/default-styles.spec.d.ts +1 -0
- package/build/file/styles/style/paragraph-style.spec.d.ts +1 -0
- package/build/file/styles/style/style.spec.d.ts +1 -0
- package/build/file/styles/styles.spec.d.ts +1 -0
- package/build/file/table/grid.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell-properties.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-borders.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-cell-margin.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-float-properties.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row.spec.d.ts +1 -0
- package/build/file/table/table.spec.d.ts +1 -0
- package/build/file/table-of-contents/sdt-properties.d.ts +1 -1
- package/build/file/table-of-contents/table-of-contents.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +1 -0
- package/build/file/xml-components/attribute.spec.d.ts +1 -0
- package/build/file/xml-components/imported-xml-component.spec.d.ts +1 -0
- package/build/file/xml-components/simple-elements.spec.d.ts +1 -0
- package/build/file/xml-components/xml-component.spec.d.ts +1 -0
- package/build/index.cjs +662 -577
- package/build/index.iife.js +662 -577
- package/build/index.js +662 -577
- package/build/index.spec.d.ts +1 -0
- package/build/{index.umd.cjs → index.umd.js} +662 -577
- package/build/patcher/content-types-manager.spec.d.ts +1 -0
- package/build/patcher/from-docx.d.ts +1 -1
- package/build/patcher/from-docx.spec.d.ts +1 -0
- package/build/patcher/paragraph-split-inject.spec.d.ts +1 -0
- package/build/patcher/paragraph-token-replacer.spec.d.ts +1 -0
- package/build/patcher/relationship-manager.spec.d.ts +1 -0
- package/build/patcher/replacer.spec.d.ts +1 -0
- package/build/patcher/run-renderer.spec.d.ts +1 -0
- package/build/patcher/traverser.spec.d.ts +1 -0
- package/build/patcher/util.spec.d.ts +1 -0
- package/build/tests/utility.d.ts +3 -0
- package/build/util/convenience-functions.spec.d.ts +1 -0
- package/build/util/values.spec.d.ts +1 -0
- package/package.json +8 -9
|
@@ -114,6 +114,401 @@ var __publicField = (obj, key, value) => {
|
|
|
114
114
|
function getDefaultExportFromCjs(x) {
|
|
115
115
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
116
116
|
}
|
|
117
|
+
var sax$1 = {};
|
|
118
|
+
var events = { exports: {} };
|
|
119
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
120
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
121
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
122
|
+
};
|
|
123
|
+
var ReflectOwnKeys;
|
|
124
|
+
if (R && typeof R.ownKeys === "function") {
|
|
125
|
+
ReflectOwnKeys = R.ownKeys;
|
|
126
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
127
|
+
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
128
|
+
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
129
|
+
};
|
|
130
|
+
} else {
|
|
131
|
+
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
132
|
+
return Object.getOwnPropertyNames(target);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function ProcessEmitWarning(warning) {
|
|
136
|
+
if (console && console.warn)
|
|
137
|
+
console.warn(warning);
|
|
138
|
+
}
|
|
139
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
140
|
+
return value !== value;
|
|
141
|
+
};
|
|
142
|
+
function EventEmitter() {
|
|
143
|
+
EventEmitter.init.call(this);
|
|
144
|
+
}
|
|
145
|
+
events.exports = EventEmitter;
|
|
146
|
+
events.exports.once = once;
|
|
147
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
148
|
+
EventEmitter.prototype._events = void 0;
|
|
149
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
150
|
+
EventEmitter.prototype._maxListeners = void 0;
|
|
151
|
+
var defaultMaxListeners = 10;
|
|
152
|
+
function checkListener(listener) {
|
|
153
|
+
if (typeof listener !== "function") {
|
|
154
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function() {
|
|
160
|
+
return defaultMaxListeners;
|
|
161
|
+
},
|
|
162
|
+
set: function(arg) {
|
|
163
|
+
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
164
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
165
|
+
}
|
|
166
|
+
defaultMaxListeners = arg;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
EventEmitter.init = function() {
|
|
170
|
+
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
171
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
172
|
+
this._eventsCount = 0;
|
|
173
|
+
}
|
|
174
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
175
|
+
};
|
|
176
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
177
|
+
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
|
|
178
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
|
179
|
+
}
|
|
180
|
+
this._maxListeners = n;
|
|
181
|
+
return this;
|
|
182
|
+
};
|
|
183
|
+
function _getMaxListeners(that) {
|
|
184
|
+
if (that._maxListeners === void 0)
|
|
185
|
+
return EventEmitter.defaultMaxListeners;
|
|
186
|
+
return that._maxListeners;
|
|
187
|
+
}
|
|
188
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
189
|
+
return _getMaxListeners(this);
|
|
190
|
+
};
|
|
191
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
192
|
+
var args = [];
|
|
193
|
+
for (var i = 1; i < arguments.length; i++)
|
|
194
|
+
args.push(arguments[i]);
|
|
195
|
+
var doError = type === "error";
|
|
196
|
+
var events2 = this._events;
|
|
197
|
+
if (events2 !== void 0)
|
|
198
|
+
doError = doError && events2.error === void 0;
|
|
199
|
+
else if (!doError)
|
|
200
|
+
return false;
|
|
201
|
+
if (doError) {
|
|
202
|
+
var er;
|
|
203
|
+
if (args.length > 0)
|
|
204
|
+
er = args[0];
|
|
205
|
+
if (er instanceof Error) {
|
|
206
|
+
throw er;
|
|
207
|
+
}
|
|
208
|
+
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
209
|
+
err.context = er;
|
|
210
|
+
throw err;
|
|
211
|
+
}
|
|
212
|
+
var handler = events2[type];
|
|
213
|
+
if (handler === void 0)
|
|
214
|
+
return false;
|
|
215
|
+
if (typeof handler === "function") {
|
|
216
|
+
ReflectApply(handler, this, args);
|
|
217
|
+
} else {
|
|
218
|
+
var len = handler.length;
|
|
219
|
+
var listeners = arrayClone(handler, len);
|
|
220
|
+
for (var i = 0; i < len; ++i)
|
|
221
|
+
ReflectApply(listeners[i], this, args);
|
|
222
|
+
}
|
|
223
|
+
return true;
|
|
224
|
+
};
|
|
225
|
+
function _addListener(target, type, listener, prepend) {
|
|
226
|
+
var m;
|
|
227
|
+
var events2;
|
|
228
|
+
var existing;
|
|
229
|
+
checkListener(listener);
|
|
230
|
+
events2 = target._events;
|
|
231
|
+
if (events2 === void 0) {
|
|
232
|
+
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
233
|
+
target._eventsCount = 0;
|
|
234
|
+
} else {
|
|
235
|
+
if (events2.newListener !== void 0) {
|
|
236
|
+
target.emit(
|
|
237
|
+
"newListener",
|
|
238
|
+
type,
|
|
239
|
+
listener.listener ? listener.listener : listener
|
|
240
|
+
);
|
|
241
|
+
events2 = target._events;
|
|
242
|
+
}
|
|
243
|
+
existing = events2[type];
|
|
244
|
+
}
|
|
245
|
+
if (existing === void 0) {
|
|
246
|
+
existing = events2[type] = listener;
|
|
247
|
+
++target._eventsCount;
|
|
248
|
+
} else {
|
|
249
|
+
if (typeof existing === "function") {
|
|
250
|
+
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
|
251
|
+
} else if (prepend) {
|
|
252
|
+
existing.unshift(listener);
|
|
253
|
+
} else {
|
|
254
|
+
existing.push(listener);
|
|
255
|
+
}
|
|
256
|
+
m = _getMaxListeners(target);
|
|
257
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
|
258
|
+
existing.warned = true;
|
|
259
|
+
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
260
|
+
w.name = "MaxListenersExceededWarning";
|
|
261
|
+
w.emitter = target;
|
|
262
|
+
w.type = type;
|
|
263
|
+
w.count = existing.length;
|
|
264
|
+
ProcessEmitWarning(w);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return target;
|
|
268
|
+
}
|
|
269
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
270
|
+
return _addListener(this, type, listener, false);
|
|
271
|
+
};
|
|
272
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
273
|
+
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
|
|
274
|
+
return _addListener(this, type, listener, true);
|
|
275
|
+
};
|
|
276
|
+
function onceWrapper() {
|
|
277
|
+
if (!this.fired) {
|
|
278
|
+
this.target.removeListener(this.type, this.wrapFn);
|
|
279
|
+
this.fired = true;
|
|
280
|
+
if (arguments.length === 0)
|
|
281
|
+
return this.listener.call(this.target);
|
|
282
|
+
return this.listener.apply(this.target, arguments);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function _onceWrap(target, type, listener) {
|
|
286
|
+
var state2 = { fired: false, wrapFn: void 0, target, type, listener };
|
|
287
|
+
var wrapped = onceWrapper.bind(state2);
|
|
288
|
+
wrapped.listener = listener;
|
|
289
|
+
state2.wrapFn = wrapped;
|
|
290
|
+
return wrapped;
|
|
291
|
+
}
|
|
292
|
+
EventEmitter.prototype.once = function once2(type, listener) {
|
|
293
|
+
checkListener(listener);
|
|
294
|
+
this.on(type, _onceWrap(this, type, listener));
|
|
295
|
+
return this;
|
|
296
|
+
};
|
|
297
|
+
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
|
298
|
+
checkListener(listener);
|
|
299
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
|
300
|
+
return this;
|
|
301
|
+
};
|
|
302
|
+
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
303
|
+
var list, events2, position, i, originalListener;
|
|
304
|
+
checkListener(listener);
|
|
305
|
+
events2 = this._events;
|
|
306
|
+
if (events2 === void 0)
|
|
307
|
+
return this;
|
|
308
|
+
list = events2[type];
|
|
309
|
+
if (list === void 0)
|
|
310
|
+
return this;
|
|
311
|
+
if (list === listener || list.listener === listener) {
|
|
312
|
+
if (--this._eventsCount === 0)
|
|
313
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
314
|
+
else {
|
|
315
|
+
delete events2[type];
|
|
316
|
+
if (events2.removeListener)
|
|
317
|
+
this.emit("removeListener", type, list.listener || listener);
|
|
318
|
+
}
|
|
319
|
+
} else if (typeof list !== "function") {
|
|
320
|
+
position = -1;
|
|
321
|
+
for (i = list.length - 1; i >= 0; i--) {
|
|
322
|
+
if (list[i] === listener || list[i].listener === listener) {
|
|
323
|
+
originalListener = list[i].listener;
|
|
324
|
+
position = i;
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (position < 0)
|
|
329
|
+
return this;
|
|
330
|
+
if (position === 0)
|
|
331
|
+
list.shift();
|
|
332
|
+
else {
|
|
333
|
+
spliceOne(list, position);
|
|
334
|
+
}
|
|
335
|
+
if (list.length === 1)
|
|
336
|
+
events2[type] = list[0];
|
|
337
|
+
if (events2.removeListener !== void 0)
|
|
338
|
+
this.emit("removeListener", type, originalListener || listener);
|
|
339
|
+
}
|
|
340
|
+
return this;
|
|
341
|
+
};
|
|
342
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
343
|
+
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
|
|
344
|
+
var listeners, events2, i;
|
|
345
|
+
events2 = this._events;
|
|
346
|
+
if (events2 === void 0)
|
|
347
|
+
return this;
|
|
348
|
+
if (events2.removeListener === void 0) {
|
|
349
|
+
if (arguments.length === 0) {
|
|
350
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
351
|
+
this._eventsCount = 0;
|
|
352
|
+
} else if (events2[type] !== void 0) {
|
|
353
|
+
if (--this._eventsCount === 0)
|
|
354
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
355
|
+
else
|
|
356
|
+
delete events2[type];
|
|
357
|
+
}
|
|
358
|
+
return this;
|
|
359
|
+
}
|
|
360
|
+
if (arguments.length === 0) {
|
|
361
|
+
var keys = Object.keys(events2);
|
|
362
|
+
var key;
|
|
363
|
+
for (i = 0; i < keys.length; ++i) {
|
|
364
|
+
key = keys[i];
|
|
365
|
+
if (key === "removeListener")
|
|
366
|
+
continue;
|
|
367
|
+
this.removeAllListeners(key);
|
|
368
|
+
}
|
|
369
|
+
this.removeAllListeners("removeListener");
|
|
370
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
371
|
+
this._eventsCount = 0;
|
|
372
|
+
return this;
|
|
373
|
+
}
|
|
374
|
+
listeners = events2[type];
|
|
375
|
+
if (typeof listeners === "function") {
|
|
376
|
+
this.removeListener(type, listeners);
|
|
377
|
+
} else if (listeners !== void 0) {
|
|
378
|
+
for (i = listeners.length - 1; i >= 0; i--) {
|
|
379
|
+
this.removeListener(type, listeners[i]);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return this;
|
|
383
|
+
};
|
|
384
|
+
function _listeners(target, type, unwrap) {
|
|
385
|
+
var events2 = target._events;
|
|
386
|
+
if (events2 === void 0)
|
|
387
|
+
return [];
|
|
388
|
+
var evlistener = events2[type];
|
|
389
|
+
if (evlistener === void 0)
|
|
390
|
+
return [];
|
|
391
|
+
if (typeof evlistener === "function")
|
|
392
|
+
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
393
|
+
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
394
|
+
}
|
|
395
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
|
396
|
+
return _listeners(this, type, true);
|
|
397
|
+
};
|
|
398
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
399
|
+
return _listeners(this, type, false);
|
|
400
|
+
};
|
|
401
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
|
402
|
+
if (typeof emitter.listenerCount === "function") {
|
|
403
|
+
return emitter.listenerCount(type);
|
|
404
|
+
} else {
|
|
405
|
+
return listenerCount.call(emitter, type);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
|
409
|
+
function listenerCount(type) {
|
|
410
|
+
var events2 = this._events;
|
|
411
|
+
if (events2 !== void 0) {
|
|
412
|
+
var evlistener = events2[type];
|
|
413
|
+
if (typeof evlistener === "function") {
|
|
414
|
+
return 1;
|
|
415
|
+
} else if (evlistener !== void 0) {
|
|
416
|
+
return evlistener.length;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
return 0;
|
|
420
|
+
}
|
|
421
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
422
|
+
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
423
|
+
};
|
|
424
|
+
function arrayClone(arr, n) {
|
|
425
|
+
var copy = new Array(n);
|
|
426
|
+
for (var i = 0; i < n; ++i)
|
|
427
|
+
copy[i] = arr[i];
|
|
428
|
+
return copy;
|
|
429
|
+
}
|
|
430
|
+
function spliceOne(list, index) {
|
|
431
|
+
for (; index + 1 < list.length; index++)
|
|
432
|
+
list[index] = list[index + 1];
|
|
433
|
+
list.pop();
|
|
434
|
+
}
|
|
435
|
+
function unwrapListeners(arr) {
|
|
436
|
+
var ret = new Array(arr.length);
|
|
437
|
+
for (var i = 0; i < ret.length; ++i) {
|
|
438
|
+
ret[i] = arr[i].listener || arr[i];
|
|
439
|
+
}
|
|
440
|
+
return ret;
|
|
441
|
+
}
|
|
442
|
+
function once(emitter, name) {
|
|
443
|
+
return new Promise(function(resolve2, reject) {
|
|
444
|
+
function errorListener(err) {
|
|
445
|
+
emitter.removeListener(name, resolver);
|
|
446
|
+
reject(err);
|
|
447
|
+
}
|
|
448
|
+
function resolver() {
|
|
449
|
+
if (typeof emitter.removeListener === "function") {
|
|
450
|
+
emitter.removeListener("error", errorListener);
|
|
451
|
+
}
|
|
452
|
+
resolve2([].slice.call(arguments));
|
|
453
|
+
}
|
|
454
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
455
|
+
if (name !== "error") {
|
|
456
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
461
|
+
if (typeof emitter.on === "function") {
|
|
462
|
+
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
466
|
+
if (typeof emitter.on === "function") {
|
|
467
|
+
if (flags.once) {
|
|
468
|
+
emitter.once(name, listener);
|
|
469
|
+
} else {
|
|
470
|
+
emitter.on(name, listener);
|
|
471
|
+
}
|
|
472
|
+
} else if (typeof emitter.addEventListener === "function") {
|
|
473
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
474
|
+
if (flags.once) {
|
|
475
|
+
emitter.removeEventListener(name, wrapListener);
|
|
476
|
+
}
|
|
477
|
+
listener(arg);
|
|
478
|
+
});
|
|
479
|
+
} else {
|
|
480
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
var eventsExports = events.exports;
|
|
484
|
+
var inherits_browser = { exports: {} };
|
|
485
|
+
if (typeof Object.create === "function") {
|
|
486
|
+
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
487
|
+
if (superCtor) {
|
|
488
|
+
ctor.super_ = superCtor;
|
|
489
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
490
|
+
constructor: {
|
|
491
|
+
value: ctor,
|
|
492
|
+
enumerable: false,
|
|
493
|
+
writable: true,
|
|
494
|
+
configurable: true
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
} else {
|
|
500
|
+
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
501
|
+
if (superCtor) {
|
|
502
|
+
ctor.super_ = superCtor;
|
|
503
|
+
var TempCtor = function() {
|
|
504
|
+
};
|
|
505
|
+
TempCtor.prototype = superCtor.prototype;
|
|
506
|
+
ctor.prototype = new TempCtor();
|
|
507
|
+
ctor.prototype.constructor = ctor;
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
var inherits_browserExports = inherits_browser.exports;
|
|
117
512
|
var buffer = {};
|
|
118
513
|
var base64Js = {};
|
|
119
514
|
var hasRequiredBase64Js;
|
|
@@ -1783,7 +2178,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1783
2178
|
})(buffer);
|
|
1784
2179
|
return buffer;
|
|
1785
2180
|
}
|
|
1786
|
-
|
|
2181
|
+
requireBuffer();
|
|
1787
2182
|
var browser$1 = { exports: {} };
|
|
1788
2183
|
var process = browser$1.exports = {};
|
|
1789
2184
|
var cachedSetTimeout;
|
|
@@ -1794,570 +2189,175 @@ var __publicField = (obj, key, value) => {
|
|
|
1794
2189
|
function defaultClearTimeout() {
|
|
1795
2190
|
throw new Error("clearTimeout has not been defined");
|
|
1796
2191
|
}
|
|
1797
|
-
(function() {
|
|
1798
|
-
try {
|
|
1799
|
-
if (typeof setTimeout === "function") {
|
|
1800
|
-
cachedSetTimeout = setTimeout;
|
|
1801
|
-
} else {
|
|
1802
|
-
cachedSetTimeout = defaultSetTimout;
|
|
1803
|
-
}
|
|
1804
|
-
} catch (e) {
|
|
1805
|
-
cachedSetTimeout = defaultSetTimout;
|
|
1806
|
-
}
|
|
1807
|
-
try {
|
|
1808
|
-
if (typeof clearTimeout === "function") {
|
|
1809
|
-
cachedClearTimeout = clearTimeout;
|
|
1810
|
-
} else {
|
|
1811
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
1812
|
-
}
|
|
1813
|
-
} catch (e) {
|
|
1814
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
1815
|
-
}
|
|
1816
|
-
})();
|
|
1817
|
-
function runTimeout(fun) {
|
|
1818
|
-
if (cachedSetTimeout === setTimeout) {
|
|
1819
|
-
return setTimeout(fun, 0);
|
|
1820
|
-
}
|
|
1821
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
1822
|
-
cachedSetTimeout = setTimeout;
|
|
1823
|
-
return setTimeout(fun, 0);
|
|
1824
|
-
}
|
|
1825
|
-
try {
|
|
1826
|
-
return cachedSetTimeout(fun, 0);
|
|
1827
|
-
} catch (e) {
|
|
1828
|
-
try {
|
|
1829
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
1830
|
-
} catch (e2) {
|
|
1831
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
function runClearTimeout(marker) {
|
|
1836
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
1837
|
-
return clearTimeout(marker);
|
|
1838
|
-
}
|
|
1839
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
1840
|
-
cachedClearTimeout = clearTimeout;
|
|
1841
|
-
return clearTimeout(marker);
|
|
1842
|
-
}
|
|
1843
|
-
try {
|
|
1844
|
-
return cachedClearTimeout(marker);
|
|
1845
|
-
} catch (e) {
|
|
1846
|
-
try {
|
|
1847
|
-
return cachedClearTimeout.call(null, marker);
|
|
1848
|
-
} catch (e2) {
|
|
1849
|
-
return cachedClearTimeout.call(this, marker);
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
var queue = [];
|
|
1854
|
-
var draining = false;
|
|
1855
|
-
var currentQueue;
|
|
1856
|
-
var queueIndex = -1;
|
|
1857
|
-
function cleanUpNextTick() {
|
|
1858
|
-
if (!draining || !currentQueue) {
|
|
1859
|
-
return;
|
|
1860
|
-
}
|
|
1861
|
-
draining = false;
|
|
1862
|
-
if (currentQueue.length) {
|
|
1863
|
-
queue = currentQueue.concat(queue);
|
|
1864
|
-
} else {
|
|
1865
|
-
queueIndex = -1;
|
|
1866
|
-
}
|
|
1867
|
-
if (queue.length) {
|
|
1868
|
-
drainQueue();
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
function drainQueue() {
|
|
1872
|
-
if (draining) {
|
|
1873
|
-
return;
|
|
1874
|
-
}
|
|
1875
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
1876
|
-
draining = true;
|
|
1877
|
-
var len = queue.length;
|
|
1878
|
-
while (len) {
|
|
1879
|
-
currentQueue = queue;
|
|
1880
|
-
queue = [];
|
|
1881
|
-
while (++queueIndex < len) {
|
|
1882
|
-
if (currentQueue) {
|
|
1883
|
-
currentQueue[queueIndex].run();
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
queueIndex = -1;
|
|
1887
|
-
len = queue.length;
|
|
1888
|
-
}
|
|
1889
|
-
currentQueue = null;
|
|
1890
|
-
draining = false;
|
|
1891
|
-
runClearTimeout(timeout);
|
|
1892
|
-
}
|
|
1893
|
-
process.nextTick = function(fun) {
|
|
1894
|
-
var args = new Array(arguments.length - 1);
|
|
1895
|
-
if (arguments.length > 1) {
|
|
1896
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1897
|
-
args[i - 1] = arguments[i];
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
queue.push(new Item(fun, args));
|
|
1901
|
-
if (queue.length === 1 && !draining) {
|
|
1902
|
-
runTimeout(drainQueue);
|
|
1903
|
-
}
|
|
1904
|
-
};
|
|
1905
|
-
function Item(fun, array) {
|
|
1906
|
-
this.fun = fun;
|
|
1907
|
-
this.array = array;
|
|
1908
|
-
}
|
|
1909
|
-
Item.prototype.run = function() {
|
|
1910
|
-
this.fun.apply(null, this.array);
|
|
1911
|
-
};
|
|
1912
|
-
process.title = "browser";
|
|
1913
|
-
process.browser = true;
|
|
1914
|
-
process.env = {};
|
|
1915
|
-
process.argv = [];
|
|
1916
|
-
process.version = "";
|
|
1917
|
-
process.versions = {};
|
|
1918
|
-
function noop() {
|
|
1919
|
-
}
|
|
1920
|
-
process.on = noop;
|
|
1921
|
-
process.addListener = noop;
|
|
1922
|
-
process.once = noop;
|
|
1923
|
-
process.off = noop;
|
|
1924
|
-
process.removeListener = noop;
|
|
1925
|
-
process.removeAllListeners = noop;
|
|
1926
|
-
process.emit = noop;
|
|
1927
|
-
process.prependListener = noop;
|
|
1928
|
-
process.prependOnceListener = noop;
|
|
1929
|
-
process.listeners = function(name) {
|
|
1930
|
-
return [];
|
|
1931
|
-
};
|
|
1932
|
-
process.binding = function(name) {
|
|
1933
|
-
throw new Error("process.binding is not supported");
|
|
1934
|
-
};
|
|
1935
|
-
process.cwd = function() {
|
|
1936
|
-
return "/";
|
|
1937
|
-
};
|
|
1938
|
-
process.chdir = function(dir) {
|
|
1939
|
-
throw new Error("process.chdir is not supported");
|
|
1940
|
-
};
|
|
1941
|
-
process.umask = function() {
|
|
1942
|
-
return 0;
|
|
1943
|
-
};
|
|
1944
|
-
var browserExports = browser$1.exports;
|
|
1945
|
-
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
1946
|
-
(function(Object2) {
|
|
1947
|
-
function get() {
|
|
1948
|
-
var _global2 = this || self;
|
|
1949
|
-
delete Object2.prototype.__magic__;
|
|
1950
|
-
return _global2;
|
|
1951
|
-
}
|
|
1952
|
-
if (typeof globalThis === "object") {
|
|
1953
|
-
return globalThis;
|
|
1954
|
-
}
|
|
1955
|
-
if (this) {
|
|
1956
|
-
return get();
|
|
1957
|
-
} else {
|
|
1958
|
-
Object2.defineProperty(Object2.prototype, "__magic__", {
|
|
1959
|
-
configurable: true,
|
|
1960
|
-
get
|
|
1961
|
-
});
|
|
1962
|
-
var _global = __magic__;
|
|
1963
|
-
return _global;
|
|
1964
|
-
}
|
|
1965
|
-
})(Object);
|
|
1966
|
-
var sax$1 = {};
|
|
1967
|
-
var events = { exports: {} };
|
|
1968
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
1969
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
1970
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
1971
|
-
};
|
|
1972
|
-
var ReflectOwnKeys;
|
|
1973
|
-
if (R && typeof R.ownKeys === "function") {
|
|
1974
|
-
ReflectOwnKeys = R.ownKeys;
|
|
1975
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
1976
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1977
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
1978
|
-
};
|
|
1979
|
-
} else {
|
|
1980
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1981
|
-
return Object.getOwnPropertyNames(target);
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
function ProcessEmitWarning(warning) {
|
|
1985
|
-
if (console && console.warn)
|
|
1986
|
-
console.warn(warning);
|
|
1987
|
-
}
|
|
1988
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
1989
|
-
return value !== value;
|
|
1990
|
-
};
|
|
1991
|
-
function EventEmitter() {
|
|
1992
|
-
EventEmitter.init.call(this);
|
|
1993
|
-
}
|
|
1994
|
-
events.exports = EventEmitter;
|
|
1995
|
-
events.exports.once = once;
|
|
1996
|
-
EventEmitter.EventEmitter = EventEmitter;
|
|
1997
|
-
EventEmitter.prototype._events = void 0;
|
|
1998
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
1999
|
-
EventEmitter.prototype._maxListeners = void 0;
|
|
2000
|
-
var defaultMaxListeners = 10;
|
|
2001
|
-
function checkListener(listener) {
|
|
2002
|
-
if (typeof listener !== "function") {
|
|
2003
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
2007
|
-
enumerable: true,
|
|
2008
|
-
get: function() {
|
|
2009
|
-
return defaultMaxListeners;
|
|
2010
|
-
},
|
|
2011
|
-
set: function(arg) {
|
|
2012
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
2013
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
2192
|
+
(function() {
|
|
2193
|
+
try {
|
|
2194
|
+
if (typeof setTimeout === "function") {
|
|
2195
|
+
cachedSetTimeout = setTimeout;
|
|
2196
|
+
} else {
|
|
2197
|
+
cachedSetTimeout = defaultSetTimout;
|
|
2014
2198
|
}
|
|
2015
|
-
|
|
2199
|
+
} catch (e) {
|
|
2200
|
+
cachedSetTimeout = defaultSetTimout;
|
|
2016
2201
|
}
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2202
|
+
try {
|
|
2203
|
+
if (typeof clearTimeout === "function") {
|
|
2204
|
+
cachedClearTimeout = clearTimeout;
|
|
2205
|
+
} else {
|
|
2206
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
2207
|
+
}
|
|
2208
|
+
} catch (e) {
|
|
2209
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
2022
2210
|
}
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
|
2211
|
+
})();
|
|
2212
|
+
function runTimeout(fun) {
|
|
2213
|
+
if (cachedSetTimeout === setTimeout) {
|
|
2214
|
+
return setTimeout(fun, 0);
|
|
2028
2215
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
return
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
EventEmitter.prototype.emit = function emit(type) {
|
|
2041
|
-
var args = [];
|
|
2042
|
-
for (var i = 1; i < arguments.length; i++)
|
|
2043
|
-
args.push(arguments[i]);
|
|
2044
|
-
var doError = type === "error";
|
|
2045
|
-
var events2 = this._events;
|
|
2046
|
-
if (events2 !== void 0)
|
|
2047
|
-
doError = doError && events2.error === void 0;
|
|
2048
|
-
else if (!doError)
|
|
2049
|
-
return false;
|
|
2050
|
-
if (doError) {
|
|
2051
|
-
var er;
|
|
2052
|
-
if (args.length > 0)
|
|
2053
|
-
er = args[0];
|
|
2054
|
-
if (er instanceof Error) {
|
|
2055
|
-
throw er;
|
|
2216
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
2217
|
+
cachedSetTimeout = setTimeout;
|
|
2218
|
+
return setTimeout(fun, 0);
|
|
2219
|
+
}
|
|
2220
|
+
try {
|
|
2221
|
+
return cachedSetTimeout(fun, 0);
|
|
2222
|
+
} catch (e) {
|
|
2223
|
+
try {
|
|
2224
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
2225
|
+
} catch (e2) {
|
|
2226
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
2056
2227
|
}
|
|
2057
|
-
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
2058
|
-
err.context = er;
|
|
2059
|
-
throw err;
|
|
2060
2228
|
}
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
ReflectApply(handler, this, args);
|
|
2066
|
-
} else {
|
|
2067
|
-
var len = handler.length;
|
|
2068
|
-
var listeners = arrayClone(handler, len);
|
|
2069
|
-
for (var i = 0; i < len; ++i)
|
|
2070
|
-
ReflectApply(listeners[i], this, args);
|
|
2229
|
+
}
|
|
2230
|
+
function runClearTimeout(marker) {
|
|
2231
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
2232
|
+
return clearTimeout(marker);
|
|
2071
2233
|
}
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
var m;
|
|
2076
|
-
var events2;
|
|
2077
|
-
var existing;
|
|
2078
|
-
checkListener(listener);
|
|
2079
|
-
events2 = target._events;
|
|
2080
|
-
if (events2 === void 0) {
|
|
2081
|
-
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
2082
|
-
target._eventsCount = 0;
|
|
2083
|
-
} else {
|
|
2084
|
-
if (events2.newListener !== void 0) {
|
|
2085
|
-
target.emit(
|
|
2086
|
-
"newListener",
|
|
2087
|
-
type,
|
|
2088
|
-
listener.listener ? listener.listener : listener
|
|
2089
|
-
);
|
|
2090
|
-
events2 = target._events;
|
|
2091
|
-
}
|
|
2092
|
-
existing = events2[type];
|
|
2234
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
2235
|
+
cachedClearTimeout = clearTimeout;
|
|
2236
|
+
return clearTimeout(marker);
|
|
2093
2237
|
}
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
existing.unshift(listener);
|
|
2102
|
-
} else {
|
|
2103
|
-
existing.push(listener);
|
|
2104
|
-
}
|
|
2105
|
-
m = _getMaxListeners(target);
|
|
2106
|
-
if (m > 0 && existing.length > m && !existing.warned) {
|
|
2107
|
-
existing.warned = true;
|
|
2108
|
-
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2109
|
-
w.name = "MaxListenersExceededWarning";
|
|
2110
|
-
w.emitter = target;
|
|
2111
|
-
w.type = type;
|
|
2112
|
-
w.count = existing.length;
|
|
2113
|
-
ProcessEmitWarning(w);
|
|
2238
|
+
try {
|
|
2239
|
+
return cachedClearTimeout(marker);
|
|
2240
|
+
} catch (e) {
|
|
2241
|
+
try {
|
|
2242
|
+
return cachedClearTimeout.call(null, marker);
|
|
2243
|
+
} catch (e2) {
|
|
2244
|
+
return cachedClearTimeout.call(this, marker);
|
|
2114
2245
|
}
|
|
2115
2246
|
}
|
|
2116
|
-
return target;
|
|
2117
2247
|
}
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2248
|
+
var queue = [];
|
|
2249
|
+
var draining = false;
|
|
2250
|
+
var currentQueue;
|
|
2251
|
+
var queueIndex = -1;
|
|
2252
|
+
function cleanUpNextTick() {
|
|
2253
|
+
if (!draining || !currentQueue) {
|
|
2254
|
+
return;
|
|
2255
|
+
}
|
|
2256
|
+
draining = false;
|
|
2257
|
+
if (currentQueue.length) {
|
|
2258
|
+
queue = currentQueue.concat(queue);
|
|
2259
|
+
} else {
|
|
2260
|
+
queueIndex = -1;
|
|
2261
|
+
}
|
|
2262
|
+
if (queue.length) {
|
|
2263
|
+
drainQueue();
|
|
2132
2264
|
}
|
|
2133
2265
|
}
|
|
2134
|
-
function
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
wrapped.listener = listener;
|
|
2138
|
-
state2.wrapFn = wrapped;
|
|
2139
|
-
return wrapped;
|
|
2140
|
-
}
|
|
2141
|
-
EventEmitter.prototype.once = function once2(type, listener) {
|
|
2142
|
-
checkListener(listener);
|
|
2143
|
-
this.on(type, _onceWrap(this, type, listener));
|
|
2144
|
-
return this;
|
|
2145
|
-
};
|
|
2146
|
-
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
|
2147
|
-
checkListener(listener);
|
|
2148
|
-
this.prependListener(type, _onceWrap(this, type, listener));
|
|
2149
|
-
return this;
|
|
2150
|
-
};
|
|
2151
|
-
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
2152
|
-
var list, events2, position, i, originalListener;
|
|
2153
|
-
checkListener(listener);
|
|
2154
|
-
events2 = this._events;
|
|
2155
|
-
if (events2 === void 0)
|
|
2156
|
-
return this;
|
|
2157
|
-
list = events2[type];
|
|
2158
|
-
if (list === void 0)
|
|
2159
|
-
return this;
|
|
2160
|
-
if (list === listener || list.listener === listener) {
|
|
2161
|
-
if (--this._eventsCount === 0)
|
|
2162
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2163
|
-
else {
|
|
2164
|
-
delete events2[type];
|
|
2165
|
-
if (events2.removeListener)
|
|
2166
|
-
this.emit("removeListener", type, list.listener || listener);
|
|
2167
|
-
}
|
|
2168
|
-
} else if (typeof list !== "function") {
|
|
2169
|
-
position = -1;
|
|
2170
|
-
for (i = list.length - 1; i >= 0; i--) {
|
|
2171
|
-
if (list[i] === listener || list[i].listener === listener) {
|
|
2172
|
-
originalListener = list[i].listener;
|
|
2173
|
-
position = i;
|
|
2174
|
-
break;
|
|
2175
|
-
}
|
|
2176
|
-
}
|
|
2177
|
-
if (position < 0)
|
|
2178
|
-
return this;
|
|
2179
|
-
if (position === 0)
|
|
2180
|
-
list.shift();
|
|
2181
|
-
else {
|
|
2182
|
-
spliceOne(list, position);
|
|
2183
|
-
}
|
|
2184
|
-
if (list.length === 1)
|
|
2185
|
-
events2[type] = list[0];
|
|
2186
|
-
if (events2.removeListener !== void 0)
|
|
2187
|
-
this.emit("removeListener", type, originalListener || listener);
|
|
2266
|
+
function drainQueue() {
|
|
2267
|
+
if (draining) {
|
|
2268
|
+
return;
|
|
2188
2269
|
}
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2200
|
-
this._eventsCount = 0;
|
|
2201
|
-
} else if (events2[type] !== void 0) {
|
|
2202
|
-
if (--this._eventsCount === 0)
|
|
2203
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2204
|
-
else
|
|
2205
|
-
delete events2[type];
|
|
2270
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
2271
|
+
draining = true;
|
|
2272
|
+
var len = queue.length;
|
|
2273
|
+
while (len) {
|
|
2274
|
+
currentQueue = queue;
|
|
2275
|
+
queue = [];
|
|
2276
|
+
while (++queueIndex < len) {
|
|
2277
|
+
if (currentQueue) {
|
|
2278
|
+
currentQueue[queueIndex].run();
|
|
2279
|
+
}
|
|
2206
2280
|
}
|
|
2207
|
-
|
|
2281
|
+
queueIndex = -1;
|
|
2282
|
+
len = queue.length;
|
|
2208
2283
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2284
|
+
currentQueue = null;
|
|
2285
|
+
draining = false;
|
|
2286
|
+
runClearTimeout(timeout);
|
|
2287
|
+
}
|
|
2288
|
+
process.nextTick = function(fun) {
|
|
2289
|
+
var args = new Array(arguments.length - 1);
|
|
2290
|
+
if (arguments.length > 1) {
|
|
2291
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2292
|
+
args[i - 1] = arguments[i];
|
|
2217
2293
|
}
|
|
2218
|
-
this.removeAllListeners("removeListener");
|
|
2219
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2220
|
-
this._eventsCount = 0;
|
|
2221
|
-
return this;
|
|
2222
2294
|
}
|
|
2223
|
-
|
|
2224
|
-
if (
|
|
2225
|
-
|
|
2226
|
-
} else if (listeners !== void 0) {
|
|
2227
|
-
for (i = listeners.length - 1; i >= 0; i--) {
|
|
2228
|
-
this.removeListener(type, listeners[i]);
|
|
2229
|
-
}
|
|
2295
|
+
queue.push(new Item(fun, args));
|
|
2296
|
+
if (queue.length === 1 && !draining) {
|
|
2297
|
+
runTimeout(drainQueue);
|
|
2230
2298
|
}
|
|
2231
|
-
return this;
|
|
2232
2299
|
};
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
return [];
|
|
2237
|
-
var evlistener = events2[type];
|
|
2238
|
-
if (evlistener === void 0)
|
|
2239
|
-
return [];
|
|
2240
|
-
if (typeof evlistener === "function")
|
|
2241
|
-
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
2242
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
2300
|
+
function Item(fun, array) {
|
|
2301
|
+
this.fun = fun;
|
|
2302
|
+
this.array = array;
|
|
2243
2303
|
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2304
|
+
Item.prototype.run = function() {
|
|
2305
|
+
this.fun.apply(null, this.array);
|
|
2246
2306
|
};
|
|
2247
|
-
|
|
2248
|
-
|
|
2307
|
+
process.title = "browser";
|
|
2308
|
+
process.browser = true;
|
|
2309
|
+
process.env = {};
|
|
2310
|
+
process.argv = [];
|
|
2311
|
+
process.version = "";
|
|
2312
|
+
process.versions = {};
|
|
2313
|
+
function noop() {
|
|
2314
|
+
}
|
|
2315
|
+
process.on = noop;
|
|
2316
|
+
process.addListener = noop;
|
|
2317
|
+
process.once = noop;
|
|
2318
|
+
process.off = noop;
|
|
2319
|
+
process.removeListener = noop;
|
|
2320
|
+
process.removeAllListeners = noop;
|
|
2321
|
+
process.emit = noop;
|
|
2322
|
+
process.prependListener = noop;
|
|
2323
|
+
process.prependOnceListener = noop;
|
|
2324
|
+
process.listeners = function(name) {
|
|
2325
|
+
return [];
|
|
2249
2326
|
};
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
return emitter.listenerCount(type);
|
|
2253
|
-
} else {
|
|
2254
|
-
return listenerCount.call(emitter, type);
|
|
2255
|
-
}
|
|
2327
|
+
process.binding = function(name) {
|
|
2328
|
+
throw new Error("process.binding is not supported");
|
|
2256
2329
|
};
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
} else if (evlistener !== void 0) {
|
|
2265
|
-
return evlistener.length;
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2330
|
+
process.cwd = function() {
|
|
2331
|
+
return "/";
|
|
2332
|
+
};
|
|
2333
|
+
process.chdir = function(dir) {
|
|
2334
|
+
throw new Error("process.chdir is not supported");
|
|
2335
|
+
};
|
|
2336
|
+
process.umask = function() {
|
|
2268
2337
|
return 0;
|
|
2269
|
-
}
|
|
2270
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
2271
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
2272
2338
|
};
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
for (; index + 1 < list.length; index++)
|
|
2281
|
-
list[index] = list[index + 1];
|
|
2282
|
-
list.pop();
|
|
2283
|
-
}
|
|
2284
|
-
function unwrapListeners(arr) {
|
|
2285
|
-
var ret = new Array(arr.length);
|
|
2286
|
-
for (var i = 0; i < ret.length; ++i) {
|
|
2287
|
-
ret[i] = arr[i].listener || arr[i];
|
|
2339
|
+
var browserExports = browser$1.exports;
|
|
2340
|
+
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
2341
|
+
(function(Object2) {
|
|
2342
|
+
function get() {
|
|
2343
|
+
var _global2 = this || self;
|
|
2344
|
+
delete Object2.prototype.__magic__;
|
|
2345
|
+
return _global2;
|
|
2288
2346
|
}
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
function once(emitter, name) {
|
|
2292
|
-
return new Promise(function(resolve2, reject) {
|
|
2293
|
-
function errorListener(err) {
|
|
2294
|
-
emitter.removeListener(name, resolver);
|
|
2295
|
-
reject(err);
|
|
2296
|
-
}
|
|
2297
|
-
function resolver() {
|
|
2298
|
-
if (typeof emitter.removeListener === "function") {
|
|
2299
|
-
emitter.removeListener("error", errorListener);
|
|
2300
|
-
}
|
|
2301
|
-
resolve2([].slice.call(arguments));
|
|
2302
|
-
}
|
|
2303
|
-
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
2304
|
-
if (name !== "error") {
|
|
2305
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
2306
|
-
}
|
|
2307
|
-
});
|
|
2308
|
-
}
|
|
2309
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
2310
|
-
if (typeof emitter.on === "function") {
|
|
2311
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
2347
|
+
if (typeof globalThis === "object") {
|
|
2348
|
+
return globalThis;
|
|
2312
2349
|
}
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
if (typeof emitter.on === "function") {
|
|
2316
|
-
if (flags.once) {
|
|
2317
|
-
emitter.once(name, listener);
|
|
2318
|
-
} else {
|
|
2319
|
-
emitter.on(name, listener);
|
|
2320
|
-
}
|
|
2321
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
2322
|
-
emitter.addEventListener(name, function wrapListener(arg) {
|
|
2323
|
-
if (flags.once) {
|
|
2324
|
-
emitter.removeEventListener(name, wrapListener);
|
|
2325
|
-
}
|
|
2326
|
-
listener(arg);
|
|
2327
|
-
});
|
|
2350
|
+
if (this) {
|
|
2351
|
+
return get();
|
|
2328
2352
|
} else {
|
|
2329
|
-
|
|
2353
|
+
Object2.defineProperty(Object2.prototype, "__magic__", {
|
|
2354
|
+
configurable: true,
|
|
2355
|
+
get
|
|
2356
|
+
});
|
|
2357
|
+
var _global = __magic__;
|
|
2358
|
+
return _global;
|
|
2330
2359
|
}
|
|
2331
|
-
}
|
|
2332
|
-
var eventsExports = events.exports;
|
|
2333
|
-
var inherits_browser = { exports: {} };
|
|
2334
|
-
if (typeof Object.create === "function") {
|
|
2335
|
-
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
2336
|
-
if (superCtor) {
|
|
2337
|
-
ctor.super_ = superCtor;
|
|
2338
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
2339
|
-
constructor: {
|
|
2340
|
-
value: ctor,
|
|
2341
|
-
enumerable: false,
|
|
2342
|
-
writable: true,
|
|
2343
|
-
configurable: true
|
|
2344
|
-
}
|
|
2345
|
-
});
|
|
2346
|
-
}
|
|
2347
|
-
};
|
|
2348
|
-
} else {
|
|
2349
|
-
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
2350
|
-
if (superCtor) {
|
|
2351
|
-
ctor.super_ = superCtor;
|
|
2352
|
-
var TempCtor = function() {
|
|
2353
|
-
};
|
|
2354
|
-
TempCtor.prototype = superCtor.prototype;
|
|
2355
|
-
ctor.prototype = new TempCtor();
|
|
2356
|
-
ctor.prototype.constructor = ctor;
|
|
2357
|
-
}
|
|
2358
|
-
};
|
|
2359
|
-
}
|
|
2360
|
-
var inherits_browserExports = inherits_browser.exports;
|
|
2360
|
+
})(Object);
|
|
2361
2361
|
var streamBrowser;
|
|
2362
2362
|
var hasRequiredStreamBrowser;
|
|
2363
2363
|
function requireStreamBrowser() {
|
|
@@ -7135,7 +7135,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7135
7135
|
}
|
|
7136
7136
|
});
|
|
7137
7137
|
SAXStream.prototype.write = function(data) {
|
|
7138
|
-
if (typeof
|
|
7138
|
+
if (typeof Buffer === "function" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) {
|
|
7139
7139
|
if (!this._decoder) {
|
|
7140
7140
|
var SD = requireString_decoder().StringDecoder;
|
|
7141
7141
|
this._decoder = new SD("utf8");
|
|
@@ -9084,7 +9084,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9084
9084
|
};
|
|
9085
9085
|
var js2xml$1 = js2xml$2;
|
|
9086
9086
|
var json2xml$1 = function(json, options2) {
|
|
9087
|
-
if (json instanceof
|
|
9087
|
+
if (json instanceof Buffer) {
|
|
9088
9088
|
json = json.toString();
|
|
9089
9089
|
}
|
|
9090
9090
|
var js = null;
|
|
@@ -14619,100 +14619,99 @@ var __publicField = (obj, key, value) => {
|
|
|
14619
14619
|
class HeadingStyle extends StyleForParagraph {
|
|
14620
14620
|
constructor(options2) {
|
|
14621
14621
|
super({
|
|
14622
|
-
...options2,
|
|
14623
14622
|
basedOn: "Normal",
|
|
14624
14623
|
next: "Normal",
|
|
14625
|
-
quickFormat: true
|
|
14624
|
+
quickFormat: true,
|
|
14625
|
+
...options2
|
|
14626
14626
|
});
|
|
14627
14627
|
}
|
|
14628
14628
|
}
|
|
14629
14629
|
class TitleStyle extends HeadingStyle {
|
|
14630
14630
|
constructor(options2) {
|
|
14631
14631
|
super({
|
|
14632
|
-
...options2,
|
|
14633
14632
|
id: "Title",
|
|
14634
|
-
name: "Title"
|
|
14633
|
+
name: "Title",
|
|
14634
|
+
...options2
|
|
14635
14635
|
});
|
|
14636
14636
|
}
|
|
14637
14637
|
}
|
|
14638
14638
|
class Heading1Style extends HeadingStyle {
|
|
14639
14639
|
constructor(options2) {
|
|
14640
14640
|
super({
|
|
14641
|
-
...options2,
|
|
14642
14641
|
id: "Heading1",
|
|
14643
|
-
name: "Heading 1"
|
|
14642
|
+
name: "Heading 1",
|
|
14643
|
+
...options2
|
|
14644
14644
|
});
|
|
14645
14645
|
}
|
|
14646
14646
|
}
|
|
14647
14647
|
class Heading2Style extends HeadingStyle {
|
|
14648
14648
|
constructor(options2) {
|
|
14649
14649
|
super({
|
|
14650
|
-
...options2,
|
|
14651
14650
|
id: "Heading2",
|
|
14652
|
-
name: "Heading 2"
|
|
14651
|
+
name: "Heading 2",
|
|
14652
|
+
...options2
|
|
14653
14653
|
});
|
|
14654
14654
|
}
|
|
14655
14655
|
}
|
|
14656
14656
|
class Heading3Style extends HeadingStyle {
|
|
14657
14657
|
constructor(options2) {
|
|
14658
14658
|
super({
|
|
14659
|
-
...options2,
|
|
14660
14659
|
id: "Heading3",
|
|
14661
|
-
name: "Heading 3"
|
|
14660
|
+
name: "Heading 3",
|
|
14661
|
+
...options2
|
|
14662
14662
|
});
|
|
14663
14663
|
}
|
|
14664
14664
|
}
|
|
14665
14665
|
class Heading4Style extends HeadingStyle {
|
|
14666
14666
|
constructor(options2) {
|
|
14667
14667
|
super({
|
|
14668
|
-
...options2,
|
|
14669
14668
|
id: "Heading4",
|
|
14670
|
-
name: "Heading 4"
|
|
14669
|
+
name: "Heading 4",
|
|
14670
|
+
...options2
|
|
14671
14671
|
});
|
|
14672
14672
|
}
|
|
14673
14673
|
}
|
|
14674
14674
|
class Heading5Style extends HeadingStyle {
|
|
14675
14675
|
constructor(options2) {
|
|
14676
14676
|
super({
|
|
14677
|
-
...options2,
|
|
14678
14677
|
id: "Heading5",
|
|
14679
|
-
name: "Heading 5"
|
|
14678
|
+
name: "Heading 5",
|
|
14679
|
+
...options2
|
|
14680
14680
|
});
|
|
14681
14681
|
}
|
|
14682
14682
|
}
|
|
14683
14683
|
class Heading6Style extends HeadingStyle {
|
|
14684
14684
|
constructor(options2) {
|
|
14685
14685
|
super({
|
|
14686
|
-
...options2,
|
|
14687
14686
|
id: "Heading6",
|
|
14688
|
-
name: "Heading 6"
|
|
14687
|
+
name: "Heading 6",
|
|
14688
|
+
...options2
|
|
14689
14689
|
});
|
|
14690
14690
|
}
|
|
14691
14691
|
}
|
|
14692
14692
|
class StrongStyle extends HeadingStyle {
|
|
14693
14693
|
constructor(options2) {
|
|
14694
14694
|
super({
|
|
14695
|
-
...options2,
|
|
14696
14695
|
id: "Strong",
|
|
14697
|
-
name: "Strong"
|
|
14696
|
+
name: "Strong",
|
|
14697
|
+
...options2
|
|
14698
14698
|
});
|
|
14699
14699
|
}
|
|
14700
14700
|
}
|
|
14701
14701
|
class ListParagraph extends StyleForParagraph {
|
|
14702
14702
|
constructor(options2) {
|
|
14703
14703
|
super({
|
|
14704
|
-
...options2,
|
|
14705
14704
|
id: "ListParagraph",
|
|
14706
14705
|
name: "List Paragraph",
|
|
14707
14706
|
basedOn: "Normal",
|
|
14708
|
-
quickFormat: true
|
|
14707
|
+
quickFormat: true,
|
|
14708
|
+
...options2
|
|
14709
14709
|
});
|
|
14710
14710
|
}
|
|
14711
14711
|
}
|
|
14712
14712
|
class FootnoteText extends StyleForParagraph {
|
|
14713
14713
|
constructor(options2) {
|
|
14714
14714
|
super({
|
|
14715
|
-
...options2,
|
|
14716
14715
|
id: "FootnoteText",
|
|
14717
14716
|
name: "footnote text",
|
|
14718
14717
|
link: "FootnoteTextChar",
|
|
@@ -14729,28 +14728,28 @@ var __publicField = (obj, key, value) => {
|
|
|
14729
14728
|
},
|
|
14730
14729
|
run: {
|
|
14731
14730
|
size: 20
|
|
14732
|
-
}
|
|
14731
|
+
},
|
|
14732
|
+
...options2
|
|
14733
14733
|
});
|
|
14734
14734
|
}
|
|
14735
14735
|
}
|
|
14736
14736
|
class FootnoteReferenceStyle extends StyleForCharacter {
|
|
14737
14737
|
constructor(options2) {
|
|
14738
14738
|
super({
|
|
14739
|
-
...options2,
|
|
14740
14739
|
id: "FootnoteReference",
|
|
14741
14740
|
name: "footnote reference",
|
|
14742
14741
|
basedOn: "DefaultParagraphFont",
|
|
14743
14742
|
semiHidden: true,
|
|
14744
14743
|
run: {
|
|
14745
14744
|
superScript: true
|
|
14746
|
-
}
|
|
14745
|
+
},
|
|
14746
|
+
...options2
|
|
14747
14747
|
});
|
|
14748
14748
|
}
|
|
14749
14749
|
}
|
|
14750
14750
|
class FootnoteTextChar extends StyleForCharacter {
|
|
14751
14751
|
constructor(options2) {
|
|
14752
14752
|
super({
|
|
14753
|
-
...options2,
|
|
14754
14753
|
id: "FootnoteTextChar",
|
|
14755
14754
|
name: "Footnote Text Char",
|
|
14756
14755
|
basedOn: "DefaultParagraphFont",
|
|
@@ -14758,14 +14757,14 @@ var __publicField = (obj, key, value) => {
|
|
|
14758
14757
|
semiHidden: true,
|
|
14759
14758
|
run: {
|
|
14760
14759
|
size: 20
|
|
14761
|
-
}
|
|
14760
|
+
},
|
|
14761
|
+
...options2
|
|
14762
14762
|
});
|
|
14763
14763
|
}
|
|
14764
14764
|
}
|
|
14765
14765
|
class HyperlinkStyle extends StyleForCharacter {
|
|
14766
14766
|
constructor(options2) {
|
|
14767
14767
|
super({
|
|
14768
|
-
...options2,
|
|
14769
14768
|
id: "Hyperlink",
|
|
14770
14769
|
name: "Hyperlink",
|
|
14771
14770
|
basedOn: "DefaultParagraphFont",
|
|
@@ -14774,7 +14773,8 @@ var __publicField = (obj, key, value) => {
|
|
|
14774
14773
|
underline: {
|
|
14775
14774
|
type: UnderlineType.SINGLE
|
|
14776
14775
|
}
|
|
14777
|
-
}
|
|
14776
|
+
},
|
|
14777
|
+
...options2
|
|
14778
14778
|
});
|
|
14779
14779
|
}
|
|
14780
14780
|
}
|
|
@@ -15223,7 +15223,9 @@ var __publicField = (obj, key, value) => {
|
|
|
15223
15223
|
class StructuredDocumentTagProperties extends XmlComponent {
|
|
15224
15224
|
constructor(alias) {
|
|
15225
15225
|
super("w:sdtPr");
|
|
15226
|
-
|
|
15226
|
+
if (alias) {
|
|
15227
|
+
this.root.push(new StringValueElement("w:alias", alias));
|
|
15228
|
+
}
|
|
15227
15229
|
}
|
|
15228
15230
|
}
|
|
15229
15231
|
class TableOfContents extends FileChild {
|
|
@@ -15394,6 +15396,77 @@ var __publicField = (obj, key, value) => {
|
|
|
15394
15396
|
}
|
|
15395
15397
|
}
|
|
15396
15398
|
}
|
|
15399
|
+
class CheckboxSymbolAttributes extends XmlAttributeComponent {
|
|
15400
|
+
constructor() {
|
|
15401
|
+
super(...arguments);
|
|
15402
|
+
__publicField(this, "xmlKeys", {
|
|
15403
|
+
val: "w14:val",
|
|
15404
|
+
symbolfont: "w14:font"
|
|
15405
|
+
});
|
|
15406
|
+
}
|
|
15407
|
+
}
|
|
15408
|
+
class CheckBoxSymbolElement extends XmlComponent {
|
|
15409
|
+
constructor(name, val, font) {
|
|
15410
|
+
super(name);
|
|
15411
|
+
if (font) {
|
|
15412
|
+
this.root.push(new CheckboxSymbolAttributes({ val: shortHexNumber(val), symbolfont: font }));
|
|
15413
|
+
} else {
|
|
15414
|
+
this.root.push(new CheckboxSymbolAttributes({ val }));
|
|
15415
|
+
}
|
|
15416
|
+
}
|
|
15417
|
+
}
|
|
15418
|
+
class CheckBoxUtil extends XmlComponent {
|
|
15419
|
+
constructor(options2) {
|
|
15420
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
15421
|
+
super("w14:checkbox");
|
|
15422
|
+
__publicField(this, "DEFAULT_UNCHECKED_SYMBOL", "2610");
|
|
15423
|
+
__publicField(this, "DEFAULT_CHECKED_SYMBOL", "2612");
|
|
15424
|
+
__publicField(this, "DEFAULT_FONT", "MS Gothic");
|
|
15425
|
+
const value = (options2 == null ? void 0 : options2.checked) ? "1" : "0";
|
|
15426
|
+
let symbol;
|
|
15427
|
+
let font;
|
|
15428
|
+
this.root.push(new CheckBoxSymbolElement("w14:checked", value));
|
|
15429
|
+
symbol = ((_a = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _a.value) ? (_b = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _b.value : this.DEFAULT_CHECKED_SYMBOL;
|
|
15430
|
+
font = ((_c = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _c.font) ? (_d = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _d.font : this.DEFAULT_FONT;
|
|
15431
|
+
this.root.push(new CheckBoxSymbolElement("w14:checkedState", symbol, font));
|
|
15432
|
+
symbol = ((_e = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _e.value) ? (_f = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _f.value : this.DEFAULT_UNCHECKED_SYMBOL;
|
|
15433
|
+
font = ((_g = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _g.font) ? (_h = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _h.font : this.DEFAULT_FONT;
|
|
15434
|
+
this.root.push(new CheckBoxSymbolElement("w14:uncheckedState", symbol, font));
|
|
15435
|
+
}
|
|
15436
|
+
}
|
|
15437
|
+
class CheckBox extends XmlComponent {
|
|
15438
|
+
constructor(options2) {
|
|
15439
|
+
var _a, _b, _c, _d;
|
|
15440
|
+
super("w:sdt");
|
|
15441
|
+
// default values per Microsoft
|
|
15442
|
+
__publicField(this, "DEFAULT_UNCHECKED_SYMBOL", "2610");
|
|
15443
|
+
__publicField(this, "DEFAULT_CHECKED_SYMBOL", "2612");
|
|
15444
|
+
__publicField(this, "DEFAULT_FONT", "MS Gothic");
|
|
15445
|
+
const properties = new StructuredDocumentTagProperties(options2 == null ? void 0 : options2.alias);
|
|
15446
|
+
properties.addChildElement(new CheckBoxUtil(options2));
|
|
15447
|
+
this.root.push(properties);
|
|
15448
|
+
const content = new StructuredDocumentTagContent();
|
|
15449
|
+
const checkedFont = (_a = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _a.font;
|
|
15450
|
+
const checkedText = (_b = options2 == null ? void 0 : options2.checkedState) == null ? void 0 : _b.value;
|
|
15451
|
+
const uncheckedFont = (_c = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _c.font;
|
|
15452
|
+
const uncheckedText = (_d = options2 == null ? void 0 : options2.uncheckedState) == null ? void 0 : _d.value;
|
|
15453
|
+
let symbolFont;
|
|
15454
|
+
let char;
|
|
15455
|
+
if (options2 == null ? void 0 : options2.checked) {
|
|
15456
|
+
symbolFont = checkedFont ? checkedFont : this.DEFAULT_FONT;
|
|
15457
|
+
char = checkedText ? checkedText : this.DEFAULT_CHECKED_SYMBOL;
|
|
15458
|
+
} else {
|
|
15459
|
+
symbolFont = uncheckedFont ? uncheckedFont : this.DEFAULT_FONT;
|
|
15460
|
+
char = uncheckedText ? uncheckedText : this.DEFAULT_UNCHECKED_SYMBOL;
|
|
15461
|
+
}
|
|
15462
|
+
const initialRenderedChar = new SymbolRun({
|
|
15463
|
+
char,
|
|
15464
|
+
symbolfont: symbolFont
|
|
15465
|
+
});
|
|
15466
|
+
content.addChildElement(initialRenderedChar);
|
|
15467
|
+
this.root.push(content);
|
|
15468
|
+
}
|
|
15469
|
+
}
|
|
15397
15470
|
function commonjsRequire(path) {
|
|
15398
15471
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
15399
15472
|
}
|
|
@@ -15706,19 +15779,19 @@ var __publicField = (obj, key, value) => {
|
|
|
15706
15779
|
this._helper.resume();
|
|
15707
15780
|
}, t.exports = n;
|
|
15708
15781
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, t, r) {
|
|
15709
|
-
t.exports = { isNode: "undefined" != typeof
|
|
15710
|
-
if (
|
|
15711
|
-
return
|
|
15782
|
+
t.exports = { isNode: "undefined" != typeof Buffer, newBufferFrom: function(e2, t2) {
|
|
15783
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
15784
|
+
return Buffer.from(e2, t2);
|
|
15712
15785
|
if ("number" == typeof e2)
|
|
15713
15786
|
throw new Error('The "data" argument must not be a number');
|
|
15714
|
-
return new
|
|
15787
|
+
return new Buffer(e2, t2);
|
|
15715
15788
|
}, allocBuffer: function(e2) {
|
|
15716
|
-
if (
|
|
15717
|
-
return
|
|
15718
|
-
var t2 = new
|
|
15789
|
+
if (Buffer.alloc)
|
|
15790
|
+
return Buffer.alloc(e2);
|
|
15791
|
+
var t2 = new Buffer(e2);
|
|
15719
15792
|
return t2.fill(0), t2;
|
|
15720
15793
|
}, isBuffer: function(e2) {
|
|
15721
|
-
return
|
|
15794
|
+
return Buffer.isBuffer(e2);
|
|
15722
15795
|
}, isStream: function(e2) {
|
|
15723
15796
|
return e2 && "function" == typeof e2.on && "function" == typeof e2.pause && "function" == typeof e2.resume;
|
|
15724
15797
|
} };
|
|
@@ -16072,7 +16145,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16072
16145
|
i3.set(t3[r3], n3), n3 += t3[r3].length;
|
|
16073
16146
|
return i3;
|
|
16074
16147
|
case "nodebuffer":
|
|
16075
|
-
return
|
|
16148
|
+
return Buffer.concat(t3);
|
|
16076
16149
|
default:
|
|
16077
16150
|
throw new Error("concat : unsupported type '" + e4 + "'");
|
|
16078
16151
|
}
|
|
@@ -16120,7 +16193,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16120
16193
|
return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e2);
|
|
16121
16194
|
} }, t.exports = f;
|
|
16122
16195
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, t, r) {
|
|
16123
|
-
if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof
|
|
16196
|
+
if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof Buffer, r.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer)
|
|
16124
16197
|
r.blob = false;
|
|
16125
16198
|
else {
|
|
16126
16199
|
var n = new ArrayBuffer(0);
|
|
@@ -19038,6 +19111,15 @@ var __publicField = (obj, key, value) => {
|
|
|
19038
19111
|
};
|
|
19039
19112
|
const appendContentType = (element2, contentType, extension) => {
|
|
19040
19113
|
const relationshipElements = getFirstLevelElements(element2, "Types");
|
|
19114
|
+
const exist = relationshipElements.some(
|
|
19115
|
+
(el) => {
|
|
19116
|
+
var _a, _b;
|
|
19117
|
+
return el.type === "element" && el.name === "Default" && ((_a = el == null ? void 0 : el.attributes) == null ? void 0 : _a.ContentType) === contentType && ((_b = el == null ? void 0 : el.attributes) == null ? void 0 : _b.Extension) === extension;
|
|
19118
|
+
}
|
|
19119
|
+
);
|
|
19120
|
+
if (exist) {
|
|
19121
|
+
return;
|
|
19122
|
+
}
|
|
19041
19123
|
relationshipElements.push({
|
|
19042
19124
|
attributes: {
|
|
19043
19125
|
ContentType: contentType,
|
|
@@ -19181,7 +19263,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19181
19263
|
zip.file(`word/media/${fileName}`, stream);
|
|
19182
19264
|
}
|
|
19183
19265
|
return zip.generateAsync({
|
|
19184
|
-
type: "
|
|
19266
|
+
type: "uint8array",
|
|
19185
19267
|
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19186
19268
|
compression: "DEFLATE"
|
|
19187
19269
|
});
|
|
@@ -19226,6 +19308,9 @@ var __publicField = (obj, key, value) => {
|
|
|
19226
19308
|
exports2.BorderStyle = BorderStyle;
|
|
19227
19309
|
exports2.BuilderElement = BuilderElement;
|
|
19228
19310
|
exports2.CarriageReturn = CarriageReturn;
|
|
19311
|
+
exports2.CheckBox = CheckBox;
|
|
19312
|
+
exports2.CheckBoxSymbolElement = CheckBoxSymbolElement;
|
|
19313
|
+
exports2.CheckBoxUtil = CheckBoxUtil;
|
|
19229
19314
|
exports2.Column = Column;
|
|
19230
19315
|
exports2.ColumnBreak = ColumnBreak;
|
|
19231
19316
|
exports2.Columns = Columns;
|