@harbour-enterprises/superdoc 0.28.0-next.15 → 0.28.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{PdfViewer-CTJIldpN.cjs → PdfViewer-C-Ze6JeA.cjs} +1 -1
- package/dist/chunks/{PdfViewer-C5N8ds3O.es.js → PdfViewer-CgO84Z8T.es.js} +1 -1
- package/dist/chunks/{index-C2zCd-ai.cjs → index-D1umTiDg.cjs} +2 -2
- package/dist/chunks/{index-BNr0wgOU-Bj1k6CCB.es.js → index-cOCdMICZ-Ci7PU968.es.js} +1 -1
- package/dist/chunks/{index-BNr0wgOU-DGdWV9Iz.cjs → index-cOCdMICZ-DD6pWThu.cjs} +1 -1
- package/dist/chunks/{index-DOIFo7ao.es.js → index-kTCzN97h.es.js} +2 -2
- package/dist/chunks/{super-editor.es-CSyQAFrJ.es.js → super-editor.es-CPgOO-fX.es.js} +1119 -1025
- package/dist/chunks/{super-editor.es-DAO9OQ4k.cjs → super-editor.es-Dc0PuIBh.cjs} +1119 -1025
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-AHcrZseN.js → converter-DxFe92HN.js} +747 -671
- package/dist/super-editor/chunks/{docx-zipper-BAc8o9wi.js → docx-zipper-cuctY57Z.js} +1 -1
- package/dist/super-editor/chunks/{editor-DSQC1des.js → editor-CMem2X8B.js} +25 -7
- package/dist/super-editor/chunks/{index-BNr0wgOU.js → index-cOCdMICZ.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-Dq-rYRTG.js → toolbar-DhuSaHbu.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts +2 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/listImporter.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/numberingCache.d.ts +2 -2
- package/dist/super-editor/super-editor/src/utils/headless-helpers.d.ts +1 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +882 -788
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/images/altText_add.svg +0 -3
- package/dist/images/altText_disclaimer.svg +0 -3
- package/dist/images/altText_done.svg +0 -3
- package/dist/images/altText_spinner.svg +0 -30
- package/dist/images/altText_warning.svg +0 -3
- package/dist/images/annotation-check.svg +0 -11
- package/dist/images/annotation-comment.svg +0 -16
- package/dist/images/annotation-help.svg +0 -26
- package/dist/images/annotation-insert.svg +0 -10
- package/dist/images/annotation-key.svg +0 -11
- package/dist/images/annotation-newparagraph.svg +0 -11
- package/dist/images/annotation-noicon.svg +0 -7
- package/dist/images/annotation-note.svg +0 -42
- package/dist/images/annotation-paperclip.svg +0 -6
- package/dist/images/annotation-paragraph.svg +0 -16
- package/dist/images/annotation-pushpin.svg +0 -7
- package/dist/images/cursor-editorFreeHighlight.svg +0 -6
- package/dist/images/cursor-editorFreeText.svg +0 -3
- package/dist/images/cursor-editorInk.svg +0 -4
- package/dist/images/cursor-editorTextHighlight.svg +0 -8
- package/dist/images/editor-toolbar-delete.svg +0 -5
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +0 -3
- package/dist/images/messageBar_warning.svg +0 -3
- package/dist/images/toolbarButton-editorHighlight.svg +0 -6
- package/dist/images/toolbarButton-menuArrow.svg +0 -3
|
@@ -433,17 +433,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
433
433
|
);
|
|
434
434
|
}
|
|
435
435
|
if (a === b2) return 0;
|
|
436
|
-
let
|
|
436
|
+
let x = a.length;
|
|
437
437
|
let y2 = b2.length;
|
|
438
|
-
for (let i = 0, len = Math.min(
|
|
438
|
+
for (let i = 0, len = Math.min(x, y2); i < len; ++i) {
|
|
439
439
|
if (a[i] !== b2[i]) {
|
|
440
|
-
|
|
440
|
+
x = a[i];
|
|
441
441
|
y2 = b2[i];
|
|
442
442
|
break;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
446
|
-
if (y2 <
|
|
445
|
+
if (x < y2) return -1;
|
|
446
|
+
if (y2 < x) return 1;
|
|
447
447
|
return 0;
|
|
448
448
|
};
|
|
449
449
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -692,20 +692,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
692
692
|
thisStart >>>= 0;
|
|
693
693
|
thisEnd >>>= 0;
|
|
694
694
|
if (this === target) return 0;
|
|
695
|
-
let
|
|
695
|
+
let x = thisEnd - thisStart;
|
|
696
696
|
let y2 = end2 - start2;
|
|
697
|
-
const len = Math.min(
|
|
697
|
+
const len = Math.min(x, y2);
|
|
698
698
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
699
699
|
const targetCopy = target.slice(start2, end2);
|
|
700
700
|
for (let i = 0; i < len; ++i) {
|
|
701
701
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
702
|
-
|
|
702
|
+
x = thisCopy[i];
|
|
703
703
|
y2 = targetCopy[i];
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
if (
|
|
708
|
-
if (y2 <
|
|
707
|
+
if (x < y2) return -1;
|
|
708
|
+
if (y2 < x) return 1;
|
|
709
709
|
return 0;
|
|
710
710
|
};
|
|
711
711
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1795,8 +1795,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1795
1795
|
})(buffer);
|
|
1796
1796
|
const Buffer2 = buffer.Buffer;
|
|
1797
1797
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof vue.global !== "undefined" ? vue.global : typeof self !== "undefined" ? self : {};
|
|
1798
|
-
function getDefaultExportFromCjs$2(
|
|
1799
|
-
return
|
|
1798
|
+
function getDefaultExportFromCjs$2(x) {
|
|
1799
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
1800
1800
|
}
|
|
1801
1801
|
var sax = {};
|
|
1802
1802
|
var events$1 = { exports: {} };
|
|
@@ -1804,13 +1804,13 @@ var hasRequiredEvents;
|
|
|
1804
1804
|
function requireEvents() {
|
|
1805
1805
|
if (hasRequiredEvents) return events$1.exports;
|
|
1806
1806
|
hasRequiredEvents = 1;
|
|
1807
|
-
var
|
|
1808
|
-
var ReflectApply =
|
|
1807
|
+
var R2 = typeof Reflect === "object" ? Reflect : null;
|
|
1808
|
+
var ReflectApply = R2 && typeof R2.apply === "function" ? R2.apply : function ReflectApply2(target, receiver, args) {
|
|
1809
1809
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1810
1810
|
};
|
|
1811
1811
|
var ReflectOwnKeys;
|
|
1812
|
-
if (
|
|
1813
|
-
ReflectOwnKeys =
|
|
1812
|
+
if (R2 && typeof R2.ownKeys === "function") {
|
|
1813
|
+
ReflectOwnKeys = R2.ownKeys;
|
|
1814
1814
|
} else if (Object.getOwnPropertySymbols) {
|
|
1815
1815
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1816
1816
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2200,8 +2200,8 @@ function requireInherits_browser() {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
return inherits_browser.exports;
|
|
2202
2202
|
}
|
|
2203
|
-
function getDefaultExportFromCjs$1(
|
|
2204
|
-
return
|
|
2203
|
+
function getDefaultExportFromCjs$1(x) {
|
|
2204
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
2205
2205
|
}
|
|
2206
2206
|
var browser$1 = { exports: {} };
|
|
2207
2207
|
var process$1 = browser$1.exports = {};
|
|
@@ -2782,17 +2782,17 @@ function requireDist() {
|
|
|
2782
2782
|
);
|
|
2783
2783
|
}
|
|
2784
2784
|
if (a === b2) return 0;
|
|
2785
|
-
let
|
|
2785
|
+
let x = a.length;
|
|
2786
2786
|
let y2 = b2.length;
|
|
2787
|
-
for (let i2 = 0, len2 = Math.min(
|
|
2787
|
+
for (let i2 = 0, len2 = Math.min(x, y2); i2 < len2; ++i2) {
|
|
2788
2788
|
if (a[i2] !== b2[i2]) {
|
|
2789
|
-
|
|
2789
|
+
x = a[i2];
|
|
2790
2790
|
y2 = b2[i2];
|
|
2791
2791
|
break;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
|
-
if (
|
|
2795
|
-
if (y2 <
|
|
2794
|
+
if (x < y2) return -1;
|
|
2795
|
+
if (y2 < x) return 1;
|
|
2796
2796
|
return 0;
|
|
2797
2797
|
};
|
|
2798
2798
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3041,20 +3041,20 @@ function requireDist() {
|
|
|
3041
3041
|
thisStart >>>= 0;
|
|
3042
3042
|
thisEnd >>>= 0;
|
|
3043
3043
|
if (this === target) return 0;
|
|
3044
|
-
let
|
|
3044
|
+
let x = thisEnd - thisStart;
|
|
3045
3045
|
let y2 = end2 - start2;
|
|
3046
|
-
const len2 = Math.min(
|
|
3046
|
+
const len2 = Math.min(x, y2);
|
|
3047
3047
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3048
3048
|
const targetCopy = target.slice(start2, end2);
|
|
3049
3049
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
3050
3050
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
3051
|
-
|
|
3051
|
+
x = thisCopy[i2];
|
|
3052
3052
|
y2 = targetCopy[i2];
|
|
3053
3053
|
break;
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
if (
|
|
3057
|
-
if (y2 <
|
|
3056
|
+
if (x < y2) return -1;
|
|
3057
|
+
if (y2 < x) return 1;
|
|
3058
3058
|
return 0;
|
|
3059
3059
|
};
|
|
3060
3060
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4626,15 +4626,15 @@ function requireGetProto() {
|
|
|
4626
4626
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4627
4627
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4628
4628
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4629
|
-
getProto = reflectGetProto ? function getProto2(
|
|
4630
|
-
return reflectGetProto(
|
|
4631
|
-
} : originalGetProto ? function getProto2(
|
|
4632
|
-
if (!
|
|
4629
|
+
getProto = reflectGetProto ? function getProto2(O2) {
|
|
4630
|
+
return reflectGetProto(O2);
|
|
4631
|
+
} : originalGetProto ? function getProto2(O2) {
|
|
4632
|
+
if (!O2 || typeof O2 !== "object" && typeof O2 !== "function") {
|
|
4633
4633
|
throw new TypeError("getProto: not an object");
|
|
4634
4634
|
}
|
|
4635
|
-
return originalGetProto(
|
|
4636
|
-
} : getDunderProto ? function getProto2(
|
|
4637
|
-
return getDunderProto(
|
|
4635
|
+
return originalGetProto(O2);
|
|
4636
|
+
} : getDunderProto ? function getProto2(O2) {
|
|
4637
|
+
return getDunderProto(O2);
|
|
4638
4638
|
} : null;
|
|
4639
4639
|
return getProto;
|
|
4640
4640
|
}
|
|
@@ -5312,8 +5312,8 @@ function requireForEach() {
|
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
5314
|
};
|
|
5315
|
-
function isArray2(
|
|
5316
|
-
return toStr.call(
|
|
5315
|
+
function isArray2(x) {
|
|
5316
|
+
return toStr.call(x) === "[object Array]";
|
|
5317
5317
|
}
|
|
5318
5318
|
forEach = function forEach22(list, iterator, thisArg) {
|
|
5319
5319
|
if (!isCallable2(iterator)) {
|
|
@@ -5922,10 +5922,10 @@ function requireUtil() {
|
|
|
5922
5922
|
var i = 1;
|
|
5923
5923
|
var args = arguments;
|
|
5924
5924
|
var len = args.length;
|
|
5925
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5926
|
-
if (
|
|
5927
|
-
if (i >= len) return
|
|
5928
|
-
switch (
|
|
5925
|
+
var str = String(f2).replace(formatRegExp, function(x2) {
|
|
5926
|
+
if (x2 === "%%") return "%";
|
|
5927
|
+
if (i >= len) return x2;
|
|
5928
|
+
switch (x2) {
|
|
5929
5929
|
case "%s":
|
|
5930
5930
|
return String(args[i++]);
|
|
5931
5931
|
case "%d":
|
|
@@ -5937,14 +5937,14 @@ function requireUtil() {
|
|
|
5937
5937
|
return "[Circular]";
|
|
5938
5938
|
}
|
|
5939
5939
|
default:
|
|
5940
|
-
return
|
|
5940
|
+
return x2;
|
|
5941
5941
|
}
|
|
5942
5942
|
});
|
|
5943
|
-
for (var
|
|
5944
|
-
if (isNull(
|
|
5945
|
-
str += " " +
|
|
5943
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
5944
|
+
if (isNull(x) || !isObject2(x)) {
|
|
5945
|
+
str += " " + x;
|
|
5946
5946
|
} else {
|
|
5947
|
-
str += " " + inspect(
|
|
5947
|
+
str += " " + inspect(x);
|
|
5948
5948
|
}
|
|
5949
5949
|
}
|
|
5950
5950
|
return str;
|
|
@@ -6157,7 +6157,7 @@ function requireUtil() {
|
|
|
6157
6157
|
}
|
|
6158
6158
|
function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
|
|
6159
6159
|
var output = [];
|
|
6160
|
-
for (var i = 0,
|
|
6160
|
+
for (var i = 0, l3 = value.length; i < l3; ++i) {
|
|
6161
6161
|
if (hasOwnProperty2(value, String(i))) {
|
|
6162
6162
|
output.push(formatProperty(
|
|
6163
6163
|
ctx2,
|
|
@@ -7256,8 +7256,8 @@ function require_stream_writable() {
|
|
|
7256
7256
|
state2.bufferProcessing = true;
|
|
7257
7257
|
var entry = state2.bufferedRequest;
|
|
7258
7258
|
if (stream._writev && entry && entry.next) {
|
|
7259
|
-
var
|
|
7260
|
-
var buffer2 = new Array(
|
|
7259
|
+
var l3 = state2.bufferedRequestCount;
|
|
7260
|
+
var buffer2 = new Array(l3);
|
|
7261
7261
|
var holder = state2.corkedRequestsFree;
|
|
7262
7262
|
holder.entry = entry;
|
|
7263
7263
|
var count = 0;
|
|
@@ -7509,7 +7509,6 @@ function require_stream_duplex() {
|
|
|
7509
7509
|
}
|
|
7510
7510
|
var string_decoder = {};
|
|
7511
7511
|
var safeBuffer = { exports: {} };
|
|
7512
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7513
7512
|
var hasRequiredSafeBuffer;
|
|
7514
7513
|
function requireSafeBuffer() {
|
|
7515
7514
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
@@ -7531,7 +7530,6 @@ function requireSafeBuffer() {
|
|
|
7531
7530
|
function SafeBuffer(arg, encodingOrOffset, length2) {
|
|
7532
7531
|
return Buffer3(arg, encodingOrOffset, length2);
|
|
7533
7532
|
}
|
|
7534
|
-
SafeBuffer.prototype = Object.create(Buffer3.prototype);
|
|
7535
7533
|
copyProps(Buffer3, SafeBuffer);
|
|
7536
7534
|
SafeBuffer.from = function(arg, encodingOrOffset, length2) {
|
|
7537
7535
|
if (typeof arg === "number") {
|
|
@@ -8809,9 +8807,9 @@ function require_stream_readable() {
|
|
|
8809
8807
|
return from2(Readable, iterable, opts);
|
|
8810
8808
|
};
|
|
8811
8809
|
}
|
|
8812
|
-
function indexOf(xs,
|
|
8813
|
-
for (var i = 0,
|
|
8814
|
-
if (xs[i] ===
|
|
8810
|
+
function indexOf(xs, x) {
|
|
8811
|
+
for (var i = 0, l3 = xs.length; i < l3; i++) {
|
|
8812
|
+
if (xs[i] === x) return i;
|
|
8815
8813
|
}
|
|
8816
8814
|
return -1;
|
|
8817
8815
|
}
|
|
@@ -9190,7 +9188,7 @@ function requireSax() {
|
|
|
9190
9188
|
function checkBufferLength(parser) {
|
|
9191
9189
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
9192
9190
|
var maxActual = 0;
|
|
9193
|
-
for (var i = 0,
|
|
9191
|
+
for (var i = 0, l3 = buffers.length; i < l3; i++) {
|
|
9194
9192
|
var len = parser[buffers[i]].length;
|
|
9195
9193
|
if (len > maxAllowed) {
|
|
9196
9194
|
switch (buffers[i]) {
|
|
@@ -9215,7 +9213,7 @@ function requireSax() {
|
|
|
9215
9213
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
9216
9214
|
}
|
|
9217
9215
|
function clearBuffers(parser) {
|
|
9218
|
-
for (var i = 0,
|
|
9216
|
+
for (var i = 0, l3 = buffers.length; i < l3; i++) {
|
|
9219
9217
|
parser[buffers[i]] = "";
|
|
9220
9218
|
}
|
|
9221
9219
|
}
|
|
@@ -9269,27 +9267,27 @@ function requireSax() {
|
|
|
9269
9267
|
this._parser = new SAXParser(strict, opt);
|
|
9270
9268
|
this.writable = true;
|
|
9271
9269
|
this.readable = true;
|
|
9272
|
-
var
|
|
9270
|
+
var me = this;
|
|
9273
9271
|
this._parser.onend = function() {
|
|
9274
|
-
|
|
9272
|
+
me.emit("end");
|
|
9275
9273
|
};
|
|
9276
9274
|
this._parser.onerror = function(er) {
|
|
9277
|
-
|
|
9278
|
-
|
|
9275
|
+
me.emit("error", er);
|
|
9276
|
+
me._parser.error = null;
|
|
9279
9277
|
};
|
|
9280
9278
|
this._decoder = null;
|
|
9281
9279
|
streamWraps.forEach(function(ev) {
|
|
9282
|
-
Object.defineProperty(
|
|
9280
|
+
Object.defineProperty(me, "on" + ev, {
|
|
9283
9281
|
get: function() {
|
|
9284
|
-
return
|
|
9282
|
+
return me._parser["on" + ev];
|
|
9285
9283
|
},
|
|
9286
9284
|
set: function(h2) {
|
|
9287
9285
|
if (!h2) {
|
|
9288
|
-
|
|
9289
|
-
|
|
9286
|
+
me.removeAllListeners(ev);
|
|
9287
|
+
me._parser["on" + ev] = h2;
|
|
9290
9288
|
return h2;
|
|
9291
9289
|
}
|
|
9292
|
-
|
|
9290
|
+
me.on(ev, h2);
|
|
9293
9291
|
},
|
|
9294
9292
|
enumerable: true,
|
|
9295
9293
|
configurable: false
|
|
@@ -9321,15 +9319,15 @@ function requireSax() {
|
|
|
9321
9319
|
return true;
|
|
9322
9320
|
};
|
|
9323
9321
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9324
|
-
var
|
|
9325
|
-
if (!
|
|
9326
|
-
|
|
9322
|
+
var me = this;
|
|
9323
|
+
if (!me._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9324
|
+
me._parser["on" + ev] = function() {
|
|
9327
9325
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9328
9326
|
args.splice(0, 0, ev);
|
|
9329
|
-
|
|
9327
|
+
me.emit.apply(me, args);
|
|
9330
9328
|
};
|
|
9331
9329
|
}
|
|
9332
|
-
return Stream.prototype.on.call(
|
|
9330
|
+
return Stream.prototype.on.call(me, ev, handler2);
|
|
9333
9331
|
};
|
|
9334
9332
|
var CDATA = "[CDATA[";
|
|
9335
9333
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9431,266 +9429,266 @@ function requireSax() {
|
|
|
9431
9429
|
// <script> ... <
|
|
9432
9430
|
};
|
|
9433
9431
|
sax2.XML_ENTITIES = {
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9432
|
+
amp: "&",
|
|
9433
|
+
gt: ">",
|
|
9434
|
+
lt: "<",
|
|
9435
|
+
quot: '"',
|
|
9436
|
+
apos: "'"
|
|
9439
9437
|
};
|
|
9440
9438
|
sax2.ENTITIES = {
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9658
|
-
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9439
|
+
amp: "&",
|
|
9440
|
+
gt: ">",
|
|
9441
|
+
lt: "<",
|
|
9442
|
+
quot: '"',
|
|
9443
|
+
apos: "'",
|
|
9444
|
+
AElig: 198,
|
|
9445
|
+
Aacute: 193,
|
|
9446
|
+
Acirc: 194,
|
|
9447
|
+
Agrave: 192,
|
|
9448
|
+
Aring: 197,
|
|
9449
|
+
Atilde: 195,
|
|
9450
|
+
Auml: 196,
|
|
9451
|
+
Ccedil: 199,
|
|
9452
|
+
ETH: 208,
|
|
9453
|
+
Eacute: 201,
|
|
9454
|
+
Ecirc: 202,
|
|
9455
|
+
Egrave: 200,
|
|
9456
|
+
Euml: 203,
|
|
9457
|
+
Iacute: 205,
|
|
9458
|
+
Icirc: 206,
|
|
9459
|
+
Igrave: 204,
|
|
9460
|
+
Iuml: 207,
|
|
9461
|
+
Ntilde: 209,
|
|
9462
|
+
Oacute: 211,
|
|
9463
|
+
Ocirc: 212,
|
|
9464
|
+
Ograve: 210,
|
|
9465
|
+
Oslash: 216,
|
|
9466
|
+
Otilde: 213,
|
|
9467
|
+
Ouml: 214,
|
|
9468
|
+
THORN: 222,
|
|
9469
|
+
Uacute: 218,
|
|
9470
|
+
Ucirc: 219,
|
|
9471
|
+
Ugrave: 217,
|
|
9472
|
+
Uuml: 220,
|
|
9473
|
+
Yacute: 221,
|
|
9474
|
+
aacute: 225,
|
|
9475
|
+
acirc: 226,
|
|
9476
|
+
aelig: 230,
|
|
9477
|
+
agrave: 224,
|
|
9478
|
+
aring: 229,
|
|
9479
|
+
atilde: 227,
|
|
9480
|
+
auml: 228,
|
|
9481
|
+
ccedil: 231,
|
|
9482
|
+
eacute: 233,
|
|
9483
|
+
ecirc: 234,
|
|
9484
|
+
egrave: 232,
|
|
9485
|
+
eth: 240,
|
|
9486
|
+
euml: 235,
|
|
9487
|
+
iacute: 237,
|
|
9488
|
+
icirc: 238,
|
|
9489
|
+
igrave: 236,
|
|
9490
|
+
iuml: 239,
|
|
9491
|
+
ntilde: 241,
|
|
9492
|
+
oacute: 243,
|
|
9493
|
+
ocirc: 244,
|
|
9494
|
+
ograve: 242,
|
|
9495
|
+
oslash: 248,
|
|
9496
|
+
otilde: 245,
|
|
9497
|
+
ouml: 246,
|
|
9498
|
+
szlig: 223,
|
|
9499
|
+
thorn: 254,
|
|
9500
|
+
uacute: 250,
|
|
9501
|
+
ucirc: 251,
|
|
9502
|
+
ugrave: 249,
|
|
9503
|
+
uuml: 252,
|
|
9504
|
+
yacute: 253,
|
|
9505
|
+
yuml: 255,
|
|
9506
|
+
copy: 169,
|
|
9507
|
+
reg: 174,
|
|
9508
|
+
nbsp: 160,
|
|
9509
|
+
iexcl: 161,
|
|
9510
|
+
cent: 162,
|
|
9511
|
+
pound: 163,
|
|
9512
|
+
curren: 164,
|
|
9513
|
+
yen: 165,
|
|
9514
|
+
brvbar: 166,
|
|
9515
|
+
sect: 167,
|
|
9516
|
+
uml: 168,
|
|
9517
|
+
ordf: 170,
|
|
9518
|
+
laquo: 171,
|
|
9519
|
+
not: 172,
|
|
9520
|
+
shy: 173,
|
|
9521
|
+
macr: 175,
|
|
9522
|
+
deg: 176,
|
|
9523
|
+
plusmn: 177,
|
|
9524
|
+
sup1: 185,
|
|
9525
|
+
sup2: 178,
|
|
9526
|
+
sup3: 179,
|
|
9527
|
+
acute: 180,
|
|
9528
|
+
micro: 181,
|
|
9529
|
+
para: 182,
|
|
9530
|
+
middot: 183,
|
|
9531
|
+
cedil: 184,
|
|
9532
|
+
ordm: 186,
|
|
9533
|
+
raquo: 187,
|
|
9534
|
+
frac14: 188,
|
|
9535
|
+
frac12: 189,
|
|
9536
|
+
frac34: 190,
|
|
9537
|
+
iquest: 191,
|
|
9538
|
+
times: 215,
|
|
9539
|
+
divide: 247,
|
|
9540
|
+
OElig: 338,
|
|
9541
|
+
oelig: 339,
|
|
9542
|
+
Scaron: 352,
|
|
9543
|
+
scaron: 353,
|
|
9544
|
+
Yuml: 376,
|
|
9545
|
+
fnof: 402,
|
|
9546
|
+
circ: 710,
|
|
9547
|
+
tilde: 732,
|
|
9548
|
+
Alpha: 913,
|
|
9549
|
+
Beta: 914,
|
|
9550
|
+
Gamma: 915,
|
|
9551
|
+
Delta: 916,
|
|
9552
|
+
Epsilon: 917,
|
|
9553
|
+
Zeta: 918,
|
|
9554
|
+
Eta: 919,
|
|
9555
|
+
Theta: 920,
|
|
9556
|
+
Iota: 921,
|
|
9557
|
+
Kappa: 922,
|
|
9558
|
+
Lambda: 923,
|
|
9559
|
+
Mu: 924,
|
|
9560
|
+
Nu: 925,
|
|
9561
|
+
Xi: 926,
|
|
9562
|
+
Omicron: 927,
|
|
9563
|
+
Pi: 928,
|
|
9564
|
+
Rho: 929,
|
|
9565
|
+
Sigma: 931,
|
|
9566
|
+
Tau: 932,
|
|
9567
|
+
Upsilon: 933,
|
|
9568
|
+
Phi: 934,
|
|
9569
|
+
Chi: 935,
|
|
9570
|
+
Psi: 936,
|
|
9571
|
+
Omega: 937,
|
|
9572
|
+
alpha: 945,
|
|
9573
|
+
beta: 946,
|
|
9574
|
+
gamma: 947,
|
|
9575
|
+
delta: 948,
|
|
9576
|
+
epsilon: 949,
|
|
9577
|
+
zeta: 950,
|
|
9578
|
+
eta: 951,
|
|
9579
|
+
theta: 952,
|
|
9580
|
+
iota: 953,
|
|
9581
|
+
kappa: 954,
|
|
9582
|
+
lambda: 955,
|
|
9583
|
+
mu: 956,
|
|
9584
|
+
nu: 957,
|
|
9585
|
+
xi: 958,
|
|
9586
|
+
omicron: 959,
|
|
9587
|
+
pi: 960,
|
|
9588
|
+
rho: 961,
|
|
9589
|
+
sigmaf: 962,
|
|
9590
|
+
sigma: 963,
|
|
9591
|
+
tau: 964,
|
|
9592
|
+
upsilon: 965,
|
|
9593
|
+
phi: 966,
|
|
9594
|
+
chi: 967,
|
|
9595
|
+
psi: 968,
|
|
9596
|
+
omega: 969,
|
|
9597
|
+
thetasym: 977,
|
|
9598
|
+
upsih: 978,
|
|
9599
|
+
piv: 982,
|
|
9600
|
+
ensp: 8194,
|
|
9601
|
+
emsp: 8195,
|
|
9602
|
+
thinsp: 8201,
|
|
9603
|
+
zwnj: 8204,
|
|
9604
|
+
zwj: 8205,
|
|
9605
|
+
lrm: 8206,
|
|
9606
|
+
rlm: 8207,
|
|
9607
|
+
ndash: 8211,
|
|
9608
|
+
mdash: 8212,
|
|
9609
|
+
lsquo: 8216,
|
|
9610
|
+
rsquo: 8217,
|
|
9611
|
+
sbquo: 8218,
|
|
9612
|
+
ldquo: 8220,
|
|
9613
|
+
rdquo: 8221,
|
|
9614
|
+
bdquo: 8222,
|
|
9615
|
+
dagger: 8224,
|
|
9616
|
+
Dagger: 8225,
|
|
9617
|
+
bull: 8226,
|
|
9618
|
+
hellip: 8230,
|
|
9619
|
+
permil: 8240,
|
|
9620
|
+
prime: 8242,
|
|
9621
|
+
Prime: 8243,
|
|
9622
|
+
lsaquo: 8249,
|
|
9623
|
+
rsaquo: 8250,
|
|
9624
|
+
oline: 8254,
|
|
9625
|
+
frasl: 8260,
|
|
9626
|
+
euro: 8364,
|
|
9627
|
+
image: 8465,
|
|
9628
|
+
weierp: 8472,
|
|
9629
|
+
real: 8476,
|
|
9630
|
+
trade: 8482,
|
|
9631
|
+
alefsym: 8501,
|
|
9632
|
+
larr: 8592,
|
|
9633
|
+
uarr: 8593,
|
|
9634
|
+
rarr: 8594,
|
|
9635
|
+
darr: 8595,
|
|
9636
|
+
harr: 8596,
|
|
9637
|
+
crarr: 8629,
|
|
9638
|
+
lArr: 8656,
|
|
9639
|
+
uArr: 8657,
|
|
9640
|
+
rArr: 8658,
|
|
9641
|
+
dArr: 8659,
|
|
9642
|
+
hArr: 8660,
|
|
9643
|
+
forall: 8704,
|
|
9644
|
+
part: 8706,
|
|
9645
|
+
exist: 8707,
|
|
9646
|
+
empty: 8709,
|
|
9647
|
+
nabla: 8711,
|
|
9648
|
+
isin: 8712,
|
|
9649
|
+
notin: 8713,
|
|
9650
|
+
ni: 8715,
|
|
9651
|
+
prod: 8719,
|
|
9652
|
+
sum: 8721,
|
|
9653
|
+
minus: 8722,
|
|
9654
|
+
lowast: 8727,
|
|
9655
|
+
radic: 8730,
|
|
9656
|
+
prop: 8733,
|
|
9657
|
+
infin: 8734,
|
|
9658
|
+
ang: 8736,
|
|
9659
|
+
and: 8743,
|
|
9660
|
+
or: 8744,
|
|
9661
|
+
cap: 8745,
|
|
9662
|
+
cup: 8746,
|
|
9663
|
+
int: 8747,
|
|
9664
|
+
there4: 8756,
|
|
9665
|
+
sim: 8764,
|
|
9666
|
+
cong: 8773,
|
|
9667
|
+
asymp: 8776,
|
|
9668
|
+
ne: 8800,
|
|
9669
|
+
equiv: 8801,
|
|
9670
|
+
le: 8804,
|
|
9671
|
+
ge: 8805,
|
|
9672
|
+
sub: 8834,
|
|
9673
|
+
sup: 8835,
|
|
9674
|
+
nsub: 8836,
|
|
9675
|
+
sube: 8838,
|
|
9676
|
+
supe: 8839,
|
|
9677
|
+
oplus: 8853,
|
|
9678
|
+
otimes: 8855,
|
|
9679
|
+
perp: 8869,
|
|
9680
|
+
sdot: 8901,
|
|
9681
|
+
lceil: 8968,
|
|
9682
|
+
rceil: 8969,
|
|
9683
|
+
lfloor: 8970,
|
|
9684
|
+
rfloor: 8971,
|
|
9685
|
+
lang: 9001,
|
|
9686
|
+
rang: 9002,
|
|
9687
|
+
loz: 9674,
|
|
9688
|
+
spades: 9824,
|
|
9689
|
+
clubs: 9827,
|
|
9690
|
+
hearts: 9829,
|
|
9691
|
+
diams: 9830
|
|
9694
9692
|
};
|
|
9695
9693
|
Object.keys(sax2.ENTITIES).forEach(function(key2) {
|
|
9696
9694
|
var e = sax2.ENTITIES[key2];
|
|
@@ -9729,7 +9727,8 @@ function requireSax() {
|
|
|
9729
9727
|
return parser;
|
|
9730
9728
|
}
|
|
9731
9729
|
function end2(parser) {
|
|
9732
|
-
if (parser.sawRoot && !parser.closedRoot)
|
|
9730
|
+
if (parser.sawRoot && !parser.closedRoot)
|
|
9731
|
+
strictFail(parser, "Unclosed root tag");
|
|
9733
9732
|
if (parser.state !== S2.BEGIN && parser.state !== S2.BEGIN_WHITESPACE && parser.state !== S2.TEXT) {
|
|
9734
9733
|
error(parser, "Unexpected end");
|
|
9735
9734
|
}
|
|
@@ -9819,7 +9818,10 @@ function requireSax() {
|
|
|
9819
9818
|
tag.local = qn.local;
|
|
9820
9819
|
tag.uri = tag.ns[qn.prefix] || "";
|
|
9821
9820
|
if (tag.prefix && !tag.uri) {
|
|
9822
|
-
strictFail(
|
|
9821
|
+
strictFail(
|
|
9822
|
+
parser,
|
|
9823
|
+
"Unbound namespace prefix: " + JSON.stringify(parser.tagName)
|
|
9824
|
+
);
|
|
9823
9825
|
tag.uri = qn.prefix;
|
|
9824
9826
|
}
|
|
9825
9827
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
@@ -9831,7 +9833,7 @@ function requireSax() {
|
|
|
9831
9833
|
});
|
|
9832
9834
|
});
|
|
9833
9835
|
}
|
|
9834
|
-
for (var i = 0,
|
|
9836
|
+
for (var i = 0, l3 = parser.attribList.length; i < l3; i++) {
|
|
9835
9837
|
var nv = parser.attribList[i];
|
|
9836
9838
|
var name = nv[0];
|
|
9837
9839
|
var value = nv[1];
|
|
@@ -9847,7 +9849,10 @@ function requireSax() {
|
|
|
9847
9849
|
uri: uri2
|
|
9848
9850
|
};
|
|
9849
9851
|
if (prefix2 && prefix2 !== "xmlns" && !uri2) {
|
|
9850
|
-
strictFail(
|
|
9852
|
+
strictFail(
|
|
9853
|
+
parser,
|
|
9854
|
+
"Unbound namespace prefix: " + JSON.stringify(prefix2)
|
|
9855
|
+
);
|
|
9851
9856
|
a.uri = prefix2;
|
|
9852
9857
|
}
|
|
9853
9858
|
parser.tag.attributes[name] = a;
|
|
@@ -9914,9 +9919,9 @@ function requireSax() {
|
|
|
9914
9919
|
var tag = parser.tag = parser.tags.pop();
|
|
9915
9920
|
parser.tagName = parser.tag.name;
|
|
9916
9921
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9917
|
-
var
|
|
9922
|
+
var x = {};
|
|
9918
9923
|
for (var i in tag.ns) {
|
|
9919
|
-
|
|
9924
|
+
x[i] = tag.ns[i];
|
|
9920
9925
|
}
|
|
9921
9926
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9922
9927
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -9955,7 +9960,7 @@ function requireSax() {
|
|
|
9955
9960
|
}
|
|
9956
9961
|
}
|
|
9957
9962
|
entity = entity.replace(/^0+/, "");
|
|
9958
|
-
if (isNaN(num) || numStr.toLowerCase() !== entity) {
|
|
9963
|
+
if (isNaN(num) || numStr.toLowerCase() !== entity || num < 0 || num > 1114111) {
|
|
9959
9964
|
strictFail(parser, "Invalid character entity");
|
|
9960
9965
|
return "&" + parser.entity + ";";
|
|
9961
9966
|
}
|
|
@@ -10213,10 +10218,22 @@ function requireSax() {
|
|
|
10213
10218
|
}
|
|
10214
10219
|
continue;
|
|
10215
10220
|
case S2.CDATA:
|
|
10221
|
+
var starti = i - 1;
|
|
10222
|
+
while (c2 && c2 !== "]") {
|
|
10223
|
+
c2 = charAt(chunk, i++);
|
|
10224
|
+
if (c2 && parser.trackPosition) {
|
|
10225
|
+
parser.position++;
|
|
10226
|
+
if (c2 === "\n") {
|
|
10227
|
+
parser.line++;
|
|
10228
|
+
parser.column = 0;
|
|
10229
|
+
} else {
|
|
10230
|
+
parser.column++;
|
|
10231
|
+
}
|
|
10232
|
+
}
|
|
10233
|
+
}
|
|
10234
|
+
parser.cdata += chunk.substring(starti, i - 1);
|
|
10216
10235
|
if (c2 === "]") {
|
|
10217
10236
|
parser.state = S2.CDATA_ENDING;
|
|
10218
|
-
} else {
|
|
10219
|
-
parser.cdata += c2;
|
|
10220
10237
|
}
|
|
10221
10238
|
continue;
|
|
10222
10239
|
case S2.CDATA_ENDING:
|
|
@@ -10295,7 +10312,10 @@ function requireSax() {
|
|
|
10295
10312
|
openTag(parser, true);
|
|
10296
10313
|
closeTag(parser);
|
|
10297
10314
|
} else {
|
|
10298
|
-
strictFail(
|
|
10315
|
+
strictFail(
|
|
10316
|
+
parser,
|
|
10317
|
+
"Forward-slash in opening tag not followed by >"
|
|
10318
|
+
);
|
|
10299
10319
|
parser.state = S2.ATTRIB;
|
|
10300
10320
|
}
|
|
10301
10321
|
continue;
|
|
@@ -11381,8 +11401,8 @@ function v4(options, buf, offset2) {
|
|
|
11381
11401
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11382
11402
|
return unsafeStringify(rnds);
|
|
11383
11403
|
}
|
|
11384
|
-
function getDefaultExportFromCjs(
|
|
11385
|
-
return
|
|
11404
|
+
function getDefaultExportFromCjs(x) {
|
|
11405
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
11386
11406
|
}
|
|
11387
11407
|
const CRC_TABLE = new Int32Array([
|
|
11388
11408
|
0,
|
|
@@ -15198,8 +15218,8 @@ function polygonToObj(polygonNode) {
|
|
|
15198
15218
|
const points = [];
|
|
15199
15219
|
polygonNode.elements.forEach((element) => {
|
|
15200
15220
|
if (["wp:start", "wp:lineTo"].includes(element.name)) {
|
|
15201
|
-
const { x
|
|
15202
|
-
points.push([polygonUnitsToPixels(
|
|
15221
|
+
const { x, y: y2 } = element.attributes;
|
|
15222
|
+
points.push([polygonUnitsToPixels(x), polygonUnitsToPixels(y2)]);
|
|
15203
15223
|
}
|
|
15204
15224
|
});
|
|
15205
15225
|
if (points.length > 1) {
|
|
@@ -15222,13 +15242,13 @@ function objToPolygon(points) {
|
|
|
15222
15242
|
elements: []
|
|
15223
15243
|
};
|
|
15224
15244
|
points.forEach((point, index2) => {
|
|
15225
|
-
const [
|
|
15245
|
+
const [x, y2] = point;
|
|
15226
15246
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15227
15247
|
const pointNode = {
|
|
15228
15248
|
name: tagName,
|
|
15229
15249
|
type: tagName,
|
|
15230
15250
|
attributes: {
|
|
15231
|
-
x: pixelsToPolygonUnits(
|
|
15251
|
+
x: pixelsToPolygonUnits(x),
|
|
15232
15252
|
y: pixelsToPolygonUnits(y2)
|
|
15233
15253
|
}
|
|
15234
15254
|
};
|
|
@@ -20588,7 +20608,23 @@ const baseNumbering = {
|
|
|
20588
20608
|
]
|
|
20589
20609
|
};
|
|
20590
20610
|
const docxNumberingCacheStore = /* @__PURE__ */ new WeakMap();
|
|
20611
|
+
const NUMBERING_CACHE_KEY = "numbering-cache";
|
|
20591
20612
|
const LEVELS_MAP_KEY = Symbol("superdoc.numbering.levels");
|
|
20613
|
+
const NUMBERING_CACHE_DOCX_KEY = Symbol("superdoc.numbering.docx");
|
|
20614
|
+
const clearConverterCache = (converter) => {
|
|
20615
|
+
if (!converter) return;
|
|
20616
|
+
delete converter[NUMBERING_CACHE_KEY];
|
|
20617
|
+
delete converter[NUMBERING_CACHE_DOCX_KEY];
|
|
20618
|
+
};
|
|
20619
|
+
const setConverterCache = (converter, cache2, docx) => {
|
|
20620
|
+
if (!converter) return;
|
|
20621
|
+
converter[NUMBERING_CACHE_KEY] = cache2;
|
|
20622
|
+
if (docx && typeof docx === "object") {
|
|
20623
|
+
converter[NUMBERING_CACHE_DOCX_KEY] = docx;
|
|
20624
|
+
} else {
|
|
20625
|
+
delete converter[NUMBERING_CACHE_DOCX_KEY];
|
|
20626
|
+
}
|
|
20627
|
+
};
|
|
20592
20628
|
const createEmptyCache = () => ({
|
|
20593
20629
|
numToAbstractId: /* @__PURE__ */ new Map(),
|
|
20594
20630
|
abstractById: /* @__PURE__ */ new Map(),
|
|
@@ -20660,12 +20696,27 @@ const buildNumberingCache = (docx) => {
|
|
|
20660
20696
|
}
|
|
20661
20697
|
return { numToAbstractId, abstractById, templateById, numToDefinition, numNodesById };
|
|
20662
20698
|
};
|
|
20663
|
-
const ensureNumberingCache = (docx) => {
|
|
20699
|
+
const ensureNumberingCache = (docx, converter) => {
|
|
20700
|
+
if (converter?.[NUMBERING_CACHE_KEY]) {
|
|
20701
|
+
const cachedDocx = converter[NUMBERING_CACHE_DOCX_KEY];
|
|
20702
|
+
if (docx && cachedDocx && cachedDocx !== docx) {
|
|
20703
|
+
clearConverterCache(converter);
|
|
20704
|
+
} else {
|
|
20705
|
+
return converter[NUMBERING_CACHE_KEY];
|
|
20706
|
+
}
|
|
20707
|
+
}
|
|
20664
20708
|
if (!docx || typeof docx !== "object") return createEmptyCache();
|
|
20665
20709
|
const existingCache = docxNumberingCacheStore.get(docx);
|
|
20666
|
-
if (existingCache)
|
|
20710
|
+
if (existingCache) {
|
|
20711
|
+
setConverterCache(converter, existingCache, docx);
|
|
20712
|
+
return existingCache;
|
|
20713
|
+
}
|
|
20667
20714
|
const cache2 = buildNumberingCache(docx);
|
|
20668
|
-
|
|
20715
|
+
if (converter) {
|
|
20716
|
+
setConverterCache(converter, cache2, docx);
|
|
20717
|
+
} else {
|
|
20718
|
+
docxNumberingCacheStore.set(docx, cache2);
|
|
20719
|
+
}
|
|
20669
20720
|
return cache2;
|
|
20670
20721
|
};
|
|
20671
20722
|
const handleListNode = (params2) => {
|
|
@@ -20922,11 +20973,11 @@ const getListNumIdFromStyleRef = (styleId, docx) => {
|
|
|
20922
20973
|
}
|
|
20923
20974
|
return { numId, ilvl };
|
|
20924
20975
|
};
|
|
20925
|
-
const getAbstractDefinition = (numId, docx) => {
|
|
20976
|
+
const getAbstractDefinition = (numId, docx, converter) => {
|
|
20926
20977
|
const numberingXml = docx["word/numbering.xml"];
|
|
20927
20978
|
if (!numberingXml) return {};
|
|
20928
20979
|
if (numId == null) return void 0;
|
|
20929
|
-
const cache2 = ensureNumberingCache(docx);
|
|
20980
|
+
const cache2 = ensureNumberingCache(docx, converter);
|
|
20930
20981
|
const numKey = String(numId);
|
|
20931
20982
|
let listDefinitionForThisNumId = cache2.numToDefinition.get(numKey);
|
|
20932
20983
|
if (!listDefinitionForThisNumId) {
|
|
@@ -22855,7 +22906,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22855
22906
|
const right2 = Math.max(start2.right, end2.right);
|
|
22856
22907
|
const width = right2 - left2;
|
|
22857
22908
|
const height = bottom2 - top2;
|
|
22858
|
-
const
|
|
22909
|
+
const x = left2;
|
|
22859
22910
|
const y2 = top2;
|
|
22860
22911
|
const data = {
|
|
22861
22912
|
top: top2,
|
|
@@ -22864,7 +22915,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22864
22915
|
right: right2,
|
|
22865
22916
|
width,
|
|
22866
22917
|
height,
|
|
22867
|
-
x
|
|
22918
|
+
x,
|
|
22868
22919
|
y: y2
|
|
22869
22920
|
};
|
|
22870
22921
|
return {
|
|
@@ -22953,39 +23004,39 @@ function createDocFromHTML(content, schema, options = {}) {
|
|
|
22953
23004
|
function L() {
|
|
22954
23005
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
22955
23006
|
}
|
|
22956
|
-
var
|
|
22957
|
-
function G(
|
|
22958
|
-
|
|
23007
|
+
var O = L();
|
|
23008
|
+
function G(l3) {
|
|
23009
|
+
O = l3;
|
|
22959
23010
|
}
|
|
22960
|
-
var
|
|
22961
|
-
function h(
|
|
22962
|
-
let t = typeof
|
|
23011
|
+
var E = { exec: () => null };
|
|
23012
|
+
function h(l3, e = "") {
|
|
23013
|
+
let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i) => {
|
|
22963
23014
|
let s2 = typeof i == "string" ? i : i.source;
|
|
22964
23015
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
22965
23016
|
}, getRegex: () => new RegExp(t, e) };
|
|
22966
23017
|
return n;
|
|
22967
23018
|
}
|
|
22968
|
-
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (
|
|
22969
|
-
]`).replace("lheading",
|
|
22970
|
-
var
|
|
22971
|
-
function w(
|
|
23019
|
+
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie$2 = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Te = h(se).replace(/bull/g, j).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K$1 = { blockquote: $e, code: be, def: ye, fences: Re, heading: Oe, hr: C, html: Se, lheading: ie$2, list: Pe, newline: xe, paragraph: oe, table: E, text: we }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = { ...K$1, lheading: Te, table: re, paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Le = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(F).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
23020
|
+
]`).replace("lheading", ie$2).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ze = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$3 = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ue = h("reflink|nolink(?!\\()", "g").replace("reflink", he$3).replace("nolink", de).getRegex(), X = { _backpedal: E, anyPunctuation: Ge, autolink: Ne, blockSkip: Be, br: ae, code: ze, del: E, emStrongLDelim: qe, emStrongRDelimAst: De, emStrongRDelimUnd: Ze, escape: Me, link: Qe, nolink: de, punctuation: Ee, reflink: he$3, reflinkSearch: Ue, tag: Fe, text: Ae, url: E }, Ke = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: He, emStrongLDelim: ve, url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, We = { ...N, br: h(ae).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, I = { normal: K$1, gfm: _e, pedantic: Le }, M$1 = { normal: X, gfm: N, breaks: We, pedantic: Ke };
|
|
23021
|
+
var Xe = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ke = (l3) => Xe[l3];
|
|
23022
|
+
function w(l3, e) {
|
|
22972
23023
|
if (e) {
|
|
22973
|
-
if (m.escapeTest.test(
|
|
22974
|
-
} else if (m.escapeTestNoEncode.test(
|
|
22975
|
-
return
|
|
23024
|
+
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ke);
|
|
23025
|
+
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ke);
|
|
23026
|
+
return l3;
|
|
22976
23027
|
}
|
|
22977
|
-
function J(
|
|
23028
|
+
function J(l3) {
|
|
22978
23029
|
try {
|
|
22979
|
-
|
|
23030
|
+
l3 = encodeURI(l3).replace(m.percentDecode, "%");
|
|
22980
23031
|
} catch {
|
|
22981
23032
|
return null;
|
|
22982
23033
|
}
|
|
22983
|
-
return
|
|
23034
|
+
return l3;
|
|
22984
23035
|
}
|
|
22985
|
-
function V(
|
|
22986
|
-
let t =
|
|
22987
|
-
let a = false,
|
|
22988
|
-
for (; --
|
|
23036
|
+
function V(l3, e) {
|
|
23037
|
+
let t = l3.replace(m.findPipe, (i, s2, o) => {
|
|
23038
|
+
let a = false, u = s2;
|
|
23039
|
+
for (; --u >= 0 && o[u] === "\\"; ) a = !a;
|
|
22989
23040
|
return a ? "|" : " |";
|
|
22990
23041
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
22991
23042
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -22993,33 +23044,33 @@ function V(u3, e) {
|
|
|
22993
23044
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
22994
23045
|
return n;
|
|
22995
23046
|
}
|
|
22996
|
-
function z(
|
|
22997
|
-
let n =
|
|
23047
|
+
function z(l3, e, t) {
|
|
23048
|
+
let n = l3.length;
|
|
22998
23049
|
if (n === 0) return "";
|
|
22999
23050
|
let r2 = 0;
|
|
23000
23051
|
for (; r2 < n; ) {
|
|
23001
|
-
let i =
|
|
23052
|
+
let i = l3.charAt(n - r2 - 1);
|
|
23002
23053
|
if (i === e && true) r2++;
|
|
23003
23054
|
else break;
|
|
23004
23055
|
}
|
|
23005
|
-
return
|
|
23056
|
+
return l3.slice(0, n - r2);
|
|
23006
23057
|
}
|
|
23007
|
-
function
|
|
23008
|
-
if (
|
|
23058
|
+
function ge(l3, e) {
|
|
23059
|
+
if (l3.indexOf(e[1]) === -1) return -1;
|
|
23009
23060
|
let t = 0;
|
|
23010
|
-
for (let n = 0; n <
|
|
23011
|
-
else if (
|
|
23012
|
-
else if (
|
|
23061
|
+
for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
|
|
23062
|
+
else if (l3[n] === e[0]) t++;
|
|
23063
|
+
else if (l3[n] === e[1] && (t--, t < 0)) return n;
|
|
23013
23064
|
return t > 0 ? -2 : -1;
|
|
23014
23065
|
}
|
|
23015
|
-
function
|
|
23016
|
-
let i = e.href, s2 = e.title || null, o =
|
|
23066
|
+
function fe(l3, e, t, n, r2) {
|
|
23067
|
+
let i = e.href, s2 = e.title || null, o = l3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23017
23068
|
n.state.inLink = true;
|
|
23018
|
-
let a = { type:
|
|
23069
|
+
let a = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23019
23070
|
return n.state.inLink = false, a;
|
|
23020
23071
|
}
|
|
23021
|
-
function
|
|
23022
|
-
let n =
|
|
23072
|
+
function Je(l3, e, t) {
|
|
23073
|
+
let n = l3.match(t.other.indentCodeCompensation);
|
|
23023
23074
|
if (n === null) return e;
|
|
23024
23075
|
let r2 = n[1];
|
|
23025
23076
|
return e.split(`
|
|
@@ -23036,7 +23087,7 @@ var y = class {
|
|
|
23036
23087
|
__publicField$2(this, "options");
|
|
23037
23088
|
__publicField$2(this, "rules");
|
|
23038
23089
|
__publicField$2(this, "lexer");
|
|
23039
|
-
this.options = e ||
|
|
23090
|
+
this.options = e || O;
|
|
23040
23091
|
}
|
|
23041
23092
|
space(e) {
|
|
23042
23093
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23053,7 +23104,7 @@ var y = class {
|
|
|
23053
23104
|
fences(e) {
|
|
23054
23105
|
let t = this.rules.block.fences.exec(e);
|
|
23055
23106
|
if (t) {
|
|
23056
|
-
let n = t[0], r2 =
|
|
23107
|
+
let n = t[0], r2 = Je(n, t[3] || "", this.rules);
|
|
23057
23108
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23058
23109
|
}
|
|
23059
23110
|
}
|
|
@@ -23080,32 +23131,32 @@ var y = class {
|
|
|
23080
23131
|
`).split(`
|
|
23081
23132
|
`), r2 = "", i = "", s2 = [];
|
|
23082
23133
|
for (; n.length > 0; ) {
|
|
23083
|
-
let o = false, a = [],
|
|
23084
|
-
for (
|
|
23085
|
-
else if (!o) a.push(n[
|
|
23134
|
+
let o = false, a = [], u;
|
|
23135
|
+
for (u = 0; u < n.length; u++) if (this.rules.other.blockquoteStart.test(n[u])) a.push(n[u]), o = true;
|
|
23136
|
+
else if (!o) a.push(n[u]);
|
|
23086
23137
|
else break;
|
|
23087
|
-
n = n.slice(
|
|
23088
|
-
let
|
|
23089
|
-
`),
|
|
23138
|
+
n = n.slice(u);
|
|
23139
|
+
let p = a.join(`
|
|
23140
|
+
`), c2 = p.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23090
23141
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23091
23142
|
r2 = r2 ? `${r2}
|
|
23092
|
-
${
|
|
23093
|
-
${
|
|
23094
|
-
let
|
|
23095
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
23096
|
-
let
|
|
23097
|
-
if (
|
|
23098
|
-
if (
|
|
23099
|
-
let
|
|
23143
|
+
${p}` : p, i = i ? `${i}
|
|
23144
|
+
${c2}` : c2;
|
|
23145
|
+
let f2 = this.lexer.state.top;
|
|
23146
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = f2, n.length === 0) break;
|
|
23147
|
+
let k2 = s2.at(-1);
|
|
23148
|
+
if (k2?.type === "code") break;
|
|
23149
|
+
if (k2?.type === "blockquote") {
|
|
23150
|
+
let x = k2, g = x.raw + `
|
|
23100
23151
|
` + n.join(`
|
|
23101
|
-
`),
|
|
23102
|
-
s2[s2.length - 1] =
|
|
23152
|
+
`), T = this.blockquote(g);
|
|
23153
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - x.raw.length) + T.raw, i = i.substring(0, i.length - x.text.length) + T.text;
|
|
23103
23154
|
break;
|
|
23104
|
-
} else if (
|
|
23105
|
-
let
|
|
23155
|
+
} else if (k2?.type === "list") {
|
|
23156
|
+
let x = k2, g = x.raw + `
|
|
23106
23157
|
` + n.join(`
|
|
23107
|
-
`),
|
|
23108
|
-
s2[s2.length - 1] =
|
|
23158
|
+
`), T = this.list(g);
|
|
23159
|
+
s2[s2.length - 1] = T, r2 = r2.substring(0, r2.length - k2.raw.length) + T.raw, i = i.substring(0, i.length - x.raw.length) + T.raw, n = g.substring(s2.at(-1).raw.length).split(`
|
|
23109
23160
|
`);
|
|
23110
23161
|
continue;
|
|
23111
23162
|
}
|
|
@@ -23120,43 +23171,43 @@ ${p}` : p;
|
|
|
23120
23171
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23121
23172
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23122
23173
|
for (; e; ) {
|
|
23123
|
-
let
|
|
23174
|
+
let u = false, p = "", c2 = "";
|
|
23124
23175
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23125
|
-
|
|
23126
|
-
let
|
|
23127
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23128
|
-
`, 1)[0],
|
|
23129
|
-
if (this.options.pedantic ? (
|
|
23130
|
-
`, e = e.substring(
|
|
23131
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23176
|
+
p = t[0], e = e.substring(p.length);
|
|
23177
|
+
let f2 = t[2].split(`
|
|
23178
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), k2 = e.split(`
|
|
23179
|
+
`, 1)[0], x = !f2.trim(), g = 0;
|
|
23180
|
+
if (this.options.pedantic ? (g = 2, c2 = f2.trimStart()) : x ? g = t[1].length + 1 : (g = t[2].search(this.rules.other.nonSpaceChar), g = g > 4 ? 1 : g, c2 = f2.slice(g), g += t[1].length), x && this.rules.other.blankLine.test(k2) && (p += k2 + `
|
|
23181
|
+
`, e = e.substring(k2.length + 1), u = true), !u) {
|
|
23182
|
+
let H = this.rules.other.nextBulletRegex(g), ee = this.rules.other.hrRegex(g), te = this.rules.other.fencesBeginRegex(g), ne = this.rules.other.headingBeginRegex(g), me = this.rules.other.htmlBeginRegex(g);
|
|
23132
23183
|
for (; e; ) {
|
|
23133
23184
|
let Z = e.split(`
|
|
23134
23185
|
`, 1)[0], A2;
|
|
23135
|
-
if (
|
|
23136
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23137
|
-
` + A2.slice(
|
|
23186
|
+
if (k2 = Z, this.options.pedantic ? (k2 = k2.replace(this.rules.other.listReplaceNesting, " "), A2 = k2) : A2 = k2.replace(this.rules.other.tabCharGlobal, " "), te.test(k2) || ne.test(k2) || me.test(k2) || H.test(k2) || ee.test(k2)) break;
|
|
23187
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= g || !k2.trim()) c2 += `
|
|
23188
|
+
` + A2.slice(g);
|
|
23138
23189
|
else {
|
|
23139
|
-
if (
|
|
23140
|
-
|
|
23141
|
-
` +
|
|
23190
|
+
if (x || f2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(f2) || ne.test(f2) || ee.test(f2)) break;
|
|
23191
|
+
c2 += `
|
|
23192
|
+
` + k2;
|
|
23142
23193
|
}
|
|
23143
|
-
!
|
|
23144
|
-
`, e = e.substring(Z.length + 1),
|
|
23194
|
+
!x && !k2.trim() && (x = true), p += Z + `
|
|
23195
|
+
`, e = e.substring(Z.length + 1), f2 = A2.slice(g);
|
|
23145
23196
|
}
|
|
23146
23197
|
}
|
|
23147
|
-
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(
|
|
23148
|
-
let
|
|
23149
|
-
this.options.gfm && (
|
|
23198
|
+
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (o = true));
|
|
23199
|
+
let T = null, Y2;
|
|
23200
|
+
this.options.gfm && (T = this.rules.other.listIsTask.exec(c2), T && (Y2 = T[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: p, task: !!T, checked: Y2, loose: false, text: c2, tokens: [] }), i.raw += p;
|
|
23150
23201
|
}
|
|
23151
23202
|
let a = i.items.at(-1);
|
|
23152
23203
|
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
23153
23204
|
else return;
|
|
23154
23205
|
i.raw = i.raw.trimEnd();
|
|
23155
|
-
for (let
|
|
23156
|
-
let
|
|
23157
|
-
i.loose =
|
|
23206
|
+
for (let u = 0; u < i.items.length; u++) if (this.lexer.state.top = false, i.items[u].tokens = this.lexer.blockTokens(i.items[u].text, []), !i.loose) {
|
|
23207
|
+
let p = i.items[u].tokens.filter((f2) => f2.type === "space"), c2 = p.length > 0 && p.some((f2) => this.rules.other.anyLine.test(f2.raw));
|
|
23208
|
+
i.loose = c2;
|
|
23158
23209
|
}
|
|
23159
|
-
if (i.loose) for (let
|
|
23210
|
+
if (i.loose) for (let u = 0; u < i.items.length; u++) i.items[u].loose = true;
|
|
23160
23211
|
return i;
|
|
23161
23212
|
}
|
|
23162
23213
|
}
|
|
@@ -23179,7 +23230,7 @@ ${p}` : p;
|
|
|
23179
23230
|
if (n.length === r2.length) {
|
|
23180
23231
|
for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
|
|
23181
23232
|
for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
|
|
23182
|
-
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a,
|
|
23233
|
+
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, u) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[u] })));
|
|
23183
23234
|
return s2;
|
|
23184
23235
|
}
|
|
23185
23236
|
}
|
|
@@ -23216,7 +23267,7 @@ ${p}` : p;
|
|
|
23216
23267
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23217
23268
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23218
23269
|
} else {
|
|
23219
|
-
let s2 =
|
|
23270
|
+
let s2 = ge(t[2], "()");
|
|
23220
23271
|
if (s2 === -2) return;
|
|
23221
23272
|
if (s2 > -1) {
|
|
23222
23273
|
let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -23228,7 +23279,7 @@ ${p}` : p;
|
|
|
23228
23279
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23229
23280
|
s2 && (r2 = s2[1], i = s2[3]);
|
|
23230
23281
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
23231
|
-
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)),
|
|
23282
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), fe(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
23232
23283
|
}
|
|
23233
23284
|
}
|
|
23234
23285
|
reflink(e, t) {
|
|
@@ -23239,32 +23290,32 @@ ${p}` : p;
|
|
|
23239
23290
|
let s2 = n[0].charAt(0);
|
|
23240
23291
|
return { type: "text", raw: s2, text: s2 };
|
|
23241
23292
|
}
|
|
23242
|
-
return
|
|
23293
|
+
return fe(n, i, n[0], this.lexer, this.rules);
|
|
23243
23294
|
}
|
|
23244
23295
|
}
|
|
23245
23296
|
emStrong(e, t, n = "") {
|
|
23246
23297
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23247
23298
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23248
23299
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23249
|
-
let s2 = [...r2[0]].length - 1, o, a,
|
|
23250
|
-
for (
|
|
23300
|
+
let s2 = [...r2[0]].length - 1, o, a, u = s2, p = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23301
|
+
for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
|
|
23251
23302
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23252
23303
|
if (a = [...o].length, r2[3] || r2[4]) {
|
|
23253
|
-
|
|
23304
|
+
u += a;
|
|
23254
23305
|
continue;
|
|
23255
23306
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
|
|
23256
|
-
|
|
23307
|
+
p += a;
|
|
23257
23308
|
continue;
|
|
23258
23309
|
}
|
|
23259
|
-
if (
|
|
23260
|
-
a = Math.min(a, a +
|
|
23261
|
-
let
|
|
23310
|
+
if (u -= a, u > 0) continue;
|
|
23311
|
+
a = Math.min(a, a + u + p);
|
|
23312
|
+
let f2 = [...r2[0]][0].length, k2 = e.slice(0, s2 + r2.index + f2 + a);
|
|
23262
23313
|
if (Math.min(s2, a) % 2) {
|
|
23263
|
-
let
|
|
23264
|
-
return { type: "em", raw:
|
|
23314
|
+
let g = k2.slice(1, -1);
|
|
23315
|
+
return { type: "em", raw: k2, text: g, tokens: this.lexer.inlineTokens(g) };
|
|
23265
23316
|
}
|
|
23266
|
-
let
|
|
23267
|
-
return { type: "strong", raw:
|
|
23317
|
+
let x = k2.slice(2, -2);
|
|
23318
|
+
return { type: "strong", raw: k2, text: x, tokens: this.lexer.inlineTokens(x) };
|
|
23268
23319
|
}
|
|
23269
23320
|
}
|
|
23270
23321
|
}
|
|
@@ -23313,25 +23364,25 @@ ${p}` : p;
|
|
|
23313
23364
|
}
|
|
23314
23365
|
}
|
|
23315
23366
|
};
|
|
23316
|
-
var
|
|
23367
|
+
var b = class l {
|
|
23317
23368
|
constructor(e) {
|
|
23318
23369
|
__publicField$2(this, "tokens");
|
|
23319
23370
|
__publicField$2(this, "options");
|
|
23320
23371
|
__publicField$2(this, "state");
|
|
23321
23372
|
__publicField$2(this, "tokenizer");
|
|
23322
23373
|
__publicField$2(this, "inlineQueue");
|
|
23323
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23324
|
-
let t = { other: m, block:
|
|
23325
|
-
this.options.pedantic ? (t.block =
|
|
23374
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || O, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
23375
|
+
let t = { other: m, block: I.normal, inline: M$1.normal };
|
|
23376
|
+
this.options.pedantic ? (t.block = I.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = I.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
23326
23377
|
}
|
|
23327
23378
|
static get rules() {
|
|
23328
|
-
return { block:
|
|
23379
|
+
return { block: I, inline: M$1 };
|
|
23329
23380
|
}
|
|
23330
23381
|
static lex(e, t) {
|
|
23331
|
-
return new
|
|
23382
|
+
return new l(t).lex(e);
|
|
23332
23383
|
}
|
|
23333
23384
|
static lexInline(e, t) {
|
|
23334
|
-
return new
|
|
23385
|
+
return new l(t).inlineTokens(e);
|
|
23335
23386
|
}
|
|
23336
23387
|
lex(e) {
|
|
23337
23388
|
e = e.replace(m.carriageReturn, `
|
|
@@ -23406,8 +23457,8 @@ var x = class u {
|
|
|
23406
23457
|
let i = e;
|
|
23407
23458
|
if (this.options.extensions?.startBlock) {
|
|
23408
23459
|
let s2 = 1 / 0, o = e.slice(1), a;
|
|
23409
|
-
this.options.extensions.startBlock.forEach((
|
|
23410
|
-
a =
|
|
23460
|
+
this.options.extensions.startBlock.forEach((u) => {
|
|
23461
|
+
a = u.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
|
|
23411
23462
|
}), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
|
|
23412
23463
|
}
|
|
23413
23464
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
|
|
@@ -23453,7 +23504,7 @@ var x = class u {
|
|
|
23453
23504
|
for (; e; ) {
|
|
23454
23505
|
i || (s2 = ""), i = false;
|
|
23455
23506
|
let o;
|
|
23456
|
-
if (this.options.extensions?.inline?.some((
|
|
23507
|
+
if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
23457
23508
|
if (o = this.tokenizer.escape(e)) {
|
|
23458
23509
|
e = e.substring(o.raw.length), t.push(o);
|
|
23459
23510
|
continue;
|
|
@@ -23468,8 +23519,8 @@ var x = class u {
|
|
|
23468
23519
|
}
|
|
23469
23520
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
23470
23521
|
e = e.substring(o.raw.length);
|
|
23471
|
-
let
|
|
23472
|
-
o.type === "text" &&
|
|
23522
|
+
let u = t.at(-1);
|
|
23523
|
+
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23473
23524
|
continue;
|
|
23474
23525
|
}
|
|
23475
23526
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -23498,23 +23549,23 @@ var x = class u {
|
|
|
23498
23549
|
}
|
|
23499
23550
|
let a = e;
|
|
23500
23551
|
if (this.options.extensions?.startInline) {
|
|
23501
|
-
let
|
|
23502
|
-
this.options.extensions.startInline.forEach((
|
|
23503
|
-
|
|
23504
|
-
}),
|
|
23552
|
+
let u = 1 / 0, p = e.slice(1), c2;
|
|
23553
|
+
this.options.extensions.startInline.forEach((f2) => {
|
|
23554
|
+
c2 = f2.call({ lexer: this }, p), typeof c2 == "number" && c2 >= 0 && (u = Math.min(u, c2));
|
|
23555
|
+
}), u < 1 / 0 && u >= 0 && (a = e.substring(0, u + 1));
|
|
23505
23556
|
}
|
|
23506
23557
|
if (o = this.tokenizer.inlineText(a)) {
|
|
23507
23558
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
|
|
23508
|
-
let
|
|
23509
|
-
|
|
23559
|
+
let u = t.at(-1);
|
|
23560
|
+
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
23510
23561
|
continue;
|
|
23511
23562
|
}
|
|
23512
23563
|
if (e) {
|
|
23513
|
-
let
|
|
23564
|
+
let u = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
23514
23565
|
if (this.options.silent) {
|
|
23515
|
-
console.error(
|
|
23566
|
+
console.error(u);
|
|
23516
23567
|
break;
|
|
23517
|
-
} else throw new Error(
|
|
23568
|
+
} else throw new Error(u);
|
|
23518
23569
|
}
|
|
23519
23570
|
}
|
|
23520
23571
|
return t;
|
|
@@ -23524,7 +23575,7 @@ var P = class {
|
|
|
23524
23575
|
constructor(e) {
|
|
23525
23576
|
__publicField$2(this, "options");
|
|
23526
23577
|
__publicField$2(this, "parser");
|
|
23527
|
-
this.options = e ||
|
|
23578
|
+
this.options = e || O;
|
|
23528
23579
|
}
|
|
23529
23580
|
space(e) {
|
|
23530
23581
|
return "";
|
|
@@ -23672,18 +23723,18 @@ var $ = class {
|
|
|
23672
23723
|
return "";
|
|
23673
23724
|
}
|
|
23674
23725
|
};
|
|
23675
|
-
var
|
|
23726
|
+
var R = class l2 {
|
|
23676
23727
|
constructor(e) {
|
|
23677
23728
|
__publicField$2(this, "options");
|
|
23678
23729
|
__publicField$2(this, "renderer");
|
|
23679
23730
|
__publicField$2(this, "textRenderer");
|
|
23680
|
-
this.options = e ||
|
|
23731
|
+
this.options = e || O, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
23681
23732
|
}
|
|
23682
23733
|
static parse(e, t) {
|
|
23683
|
-
return new
|
|
23734
|
+
return new l2(t).parse(e);
|
|
23684
23735
|
}
|
|
23685
23736
|
static parseInline(e, t) {
|
|
23686
|
-
return new
|
|
23737
|
+
return new l2(t).parseInline(e);
|
|
23687
23738
|
}
|
|
23688
23739
|
parse(e, t = true) {
|
|
23689
23740
|
let n = "";
|
|
@@ -23821,7 +23872,7 @@ var S = (_a = class {
|
|
|
23821
23872
|
constructor(e) {
|
|
23822
23873
|
__publicField$2(this, "options");
|
|
23823
23874
|
__publicField$2(this, "block");
|
|
23824
|
-
this.options = e ||
|
|
23875
|
+
this.options = e || O;
|
|
23825
23876
|
}
|
|
23826
23877
|
preprocess(e) {
|
|
23827
23878
|
return e;
|
|
@@ -23836,10 +23887,10 @@ var S = (_a = class {
|
|
|
23836
23887
|
return e;
|
|
23837
23888
|
}
|
|
23838
23889
|
provideLexer() {
|
|
23839
|
-
return this.block ?
|
|
23890
|
+
return this.block ? b.lex : b.lexInline;
|
|
23840
23891
|
}
|
|
23841
23892
|
provideParser() {
|
|
23842
|
-
return this.block ?
|
|
23893
|
+
return this.block ? R.parse : R.parseInline;
|
|
23843
23894
|
}
|
|
23844
23895
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23845
23896
|
var B = class {
|
|
@@ -23848,10 +23899,10 @@ var B = class {
|
|
|
23848
23899
|
__publicField$2(this, "options", this.setOptions);
|
|
23849
23900
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23850
23901
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23851
|
-
__publicField$2(this, "Parser",
|
|
23902
|
+
__publicField$2(this, "Parser", R);
|
|
23852
23903
|
__publicField$2(this, "Renderer", P);
|
|
23853
23904
|
__publicField$2(this, "TextRenderer", $);
|
|
23854
|
-
__publicField$2(this, "Lexer",
|
|
23905
|
+
__publicField$2(this, "Lexer", b);
|
|
23855
23906
|
__publicField$2(this, "Tokenizer", y);
|
|
23856
23907
|
__publicField$2(this, "Hooks", S);
|
|
23857
23908
|
this.use(...e);
|
|
@@ -23904,10 +23955,10 @@ var B = class {
|
|
|
23904
23955
|
for (let s2 in n.renderer) {
|
|
23905
23956
|
if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23906
23957
|
if (["options", "parser"].includes(s2)) continue;
|
|
23907
|
-
let o = s2, a = n.renderer[o],
|
|
23908
|
-
i[o] = (...
|
|
23909
|
-
let
|
|
23910
|
-
return
|
|
23958
|
+
let o = s2, a = n.renderer[o], u = i[o];
|
|
23959
|
+
i[o] = (...p) => {
|
|
23960
|
+
let c2 = a.apply(i, p);
|
|
23961
|
+
return c2 === false && (c2 = u.apply(i, p)), c2 || "";
|
|
23911
23962
|
};
|
|
23912
23963
|
}
|
|
23913
23964
|
r2.renderer = i;
|
|
@@ -23917,10 +23968,10 @@ var B = class {
|
|
|
23917
23968
|
for (let s2 in n.tokenizer) {
|
|
23918
23969
|
if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23919
23970
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23920
|
-
let o = s2, a = n.tokenizer[o],
|
|
23921
|
-
i[o] = (...
|
|
23922
|
-
let
|
|
23923
|
-
return
|
|
23971
|
+
let o = s2, a = n.tokenizer[o], u = i[o];
|
|
23972
|
+
i[o] = (...p) => {
|
|
23973
|
+
let c2 = a.apply(i, p);
|
|
23974
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
23924
23975
|
};
|
|
23925
23976
|
}
|
|
23926
23977
|
r2.tokenizer = i;
|
|
@@ -23930,21 +23981,14 @@ var B = class {
|
|
|
23930
23981
|
for (let s2 in n.hooks) {
|
|
23931
23982
|
if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
|
|
23932
23983
|
if (["options", "block"].includes(s2)) continue;
|
|
23933
|
-
let o = s2, a = n.hooks[o],
|
|
23934
|
-
S.passThroughHooks.has(s2) ? i[o] = (
|
|
23935
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
let
|
|
23940
|
-
return
|
|
23941
|
-
} : i[o] = (...c2) => {
|
|
23942
|
-
if (this.defaults.async) return (async () => {
|
|
23943
|
-
let g = await a.apply(i, c2);
|
|
23944
|
-
return g === false && (g = await l.apply(i, c2)), g;
|
|
23945
|
-
})();
|
|
23946
|
-
let p = a.apply(i, c2);
|
|
23947
|
-
return p === false && (p = l.apply(i, c2)), p;
|
|
23984
|
+
let o = s2, a = n.hooks[o], u = i[o];
|
|
23985
|
+
S.passThroughHooks.has(s2) ? i[o] = (p) => {
|
|
23986
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return Promise.resolve(a.call(i, p)).then((f2) => u.call(i, f2));
|
|
23987
|
+
let c2 = a.call(i, p);
|
|
23988
|
+
return u.call(i, c2);
|
|
23989
|
+
} : i[o] = (...p) => {
|
|
23990
|
+
let c2 = a.apply(i, p);
|
|
23991
|
+
return c2 === false && (c2 = u.apply(i, p)), c2;
|
|
23948
23992
|
};
|
|
23949
23993
|
}
|
|
23950
23994
|
r2.hooks = i;
|
|
@@ -23963,10 +24007,10 @@ var B = class {
|
|
|
23963
24007
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
23964
24008
|
}
|
|
23965
24009
|
lexer(e, t) {
|
|
23966
|
-
return
|
|
24010
|
+
return b.lex(e, t ?? this.defaults);
|
|
23967
24011
|
}
|
|
23968
24012
|
parser(e, t) {
|
|
23969
|
-
return
|
|
24013
|
+
return R.parse(e, t ?? this.defaults);
|
|
23970
24014
|
}
|
|
23971
24015
|
parseMarkdown(e) {
|
|
23972
24016
|
return (n, r2) => {
|
|
@@ -23974,20 +24018,17 @@ var B = class {
|
|
|
23974
24018
|
if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
23975
24019
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
23976
24020
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
|
|
23981
|
-
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
23982
|
-
})().catch(o);
|
|
24021
|
+
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e);
|
|
24022
|
+
let a = s2.hooks ? s2.hooks.provideLexer() : e ? b.lex : b.lexInline, u = s2.hooks ? s2.hooks.provideParser() : e ? R.parse : R.parseInline;
|
|
24023
|
+
if (s2.async) return Promise.resolve(s2.hooks ? s2.hooks.preprocess(n) : n).then((p) => a(p, s2)).then((p) => s2.hooks ? s2.hooks.processAllTokens(p) : p).then((p) => s2.walkTokens ? Promise.all(this.walkTokens(p, s2.walkTokens)).then(() => p) : p).then((p) => u(p, s2)).then((p) => s2.hooks ? s2.hooks.postprocess(p) : p).catch(o);
|
|
23983
24024
|
try {
|
|
23984
24025
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
23985
|
-
let
|
|
23986
|
-
s2.hooks && (
|
|
23987
|
-
let
|
|
23988
|
-
return s2.hooks && (
|
|
23989
|
-
} catch (
|
|
23990
|
-
return o(
|
|
24026
|
+
let p = a(n, s2);
|
|
24027
|
+
s2.hooks && (p = s2.hooks.processAllTokens(p)), s2.walkTokens && this.walkTokens(p, s2.walkTokens);
|
|
24028
|
+
let c2 = u(p, s2);
|
|
24029
|
+
return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
|
|
24030
|
+
} catch (p) {
|
|
24031
|
+
return o(p);
|
|
23991
24032
|
}
|
|
23992
24033
|
};
|
|
23993
24034
|
}
|
|
@@ -24004,38 +24045,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24004
24045
|
}
|
|
24005
24046
|
};
|
|
24006
24047
|
var _ = new B();
|
|
24007
|
-
function
|
|
24008
|
-
return _.parse(
|
|
24009
|
-
}
|
|
24010
|
-
|
|
24011
|
-
return _.setOptions(
|
|
24012
|
-
};
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
return _.use(...
|
|
24017
|
-
};
|
|
24018
|
-
|
|
24019
|
-
return _.walkTokens(
|
|
24020
|
-
};
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24048
|
+
function d$1(l3, e) {
|
|
24049
|
+
return _.parse(l3, e);
|
|
24050
|
+
}
|
|
24051
|
+
d$1.options = d$1.setOptions = function(l3) {
|
|
24052
|
+
return _.setOptions(l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24053
|
+
};
|
|
24054
|
+
d$1.getDefaults = L;
|
|
24055
|
+
d$1.defaults = O;
|
|
24056
|
+
d$1.use = function(...l3) {
|
|
24057
|
+
return _.use(...l3), d$1.defaults = _.defaults, G(d$1.defaults), d$1;
|
|
24058
|
+
};
|
|
24059
|
+
d$1.walkTokens = function(l3, e) {
|
|
24060
|
+
return _.walkTokens(l3, e);
|
|
24061
|
+
};
|
|
24062
|
+
d$1.parseInline = _.parseInline;
|
|
24063
|
+
d$1.Parser = R;
|
|
24064
|
+
d$1.parser = R.parse;
|
|
24065
|
+
d$1.Renderer = P;
|
|
24066
|
+
d$1.TextRenderer = $;
|
|
24067
|
+
d$1.Lexer = b;
|
|
24068
|
+
d$1.lexer = b.lex;
|
|
24069
|
+
d$1.Tokenizer = y;
|
|
24070
|
+
d$1.Hooks = S;
|
|
24071
|
+
d$1.parse = d$1;
|
|
24072
|
+
d$1.options;
|
|
24073
|
+
d$1.setOptions;
|
|
24074
|
+
d$1.use;
|
|
24075
|
+
d$1.walkTokens;
|
|
24076
|
+
d$1.parseInline;
|
|
24077
|
+
R.parse;
|
|
24078
|
+
b.lex;
|
|
24079
|
+
d$1.use({
|
|
24039
24080
|
breaks: false,
|
|
24040
24081
|
// Use proper paragraphs, not <br> tags
|
|
24041
24082
|
gfm: true
|
|
@@ -24046,7 +24087,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
|
|
|
24046
24087
|
return createDocFromHTML(html, schema, options);
|
|
24047
24088
|
}
|
|
24048
24089
|
function convertMarkdownToHTML(markdown) {
|
|
24049
|
-
let html =
|
|
24090
|
+
let html = d$1.parse(markdown, { async: false });
|
|
24050
24091
|
return html.replace(/<\/p>\n<ul>/g, "</p>\n<p> </p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p> </p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p> </p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p> </p>\n<h");
|
|
24051
24092
|
}
|
|
24052
24093
|
function processContent({ content, type: type2, schema }) {
|
|
@@ -24449,10 +24490,11 @@ const getListItemStyleDefinitions = ({ styleId, numId, level, editor, tries }) =
|
|
|
24449
24490
|
if (typeof numId === "string") numId = Number(numId);
|
|
24450
24491
|
if (typeof level === "string") level = Number(level);
|
|
24451
24492
|
const docx = editor?.converter?.convertedXml;
|
|
24452
|
-
const
|
|
24493
|
+
const converter = editor?.converter;
|
|
24494
|
+
const numbering = converter?.numbering;
|
|
24453
24495
|
const styleDefinition = docx ? getStyleTagFromStyleId(styleId, docx) : null;
|
|
24454
24496
|
const stylePpr = styleDefinition?.elements.find((el) => el.name === "w:pPr");
|
|
24455
|
-
let abstractDefinition = docx ? getAbstractDefinition(numId, docx) : null;
|
|
24497
|
+
let abstractDefinition = docx ? getAbstractDefinition(numId, docx, converter) : null;
|
|
24456
24498
|
if (!abstractDefinition) {
|
|
24457
24499
|
const listDef = numbering?.definitions?.[numId];
|
|
24458
24500
|
const abstractId = listDef?.elements?.find((item) => item.name === "w:abstractNumId")?.attributes?.["w:val"];
|
|
@@ -28793,7 +28835,16 @@ const translateImageNode = (params2) => {
|
|
|
28793
28835
|
const { width: w2, height: h2 } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
|
|
28794
28836
|
if (w2 && h2) size2 = { w: w2, h: h2 };
|
|
28795
28837
|
}
|
|
28796
|
-
if (
|
|
28838
|
+
if (imageId) {
|
|
28839
|
+
const docx = params2.converter?.convertedXml || {};
|
|
28840
|
+
const rels = docx["word/_rels/document.xml.rels"];
|
|
28841
|
+
const relsTag = rels?.elements?.find((el) => el.name === "Relationships");
|
|
28842
|
+
const hasRelation = relsTag?.elements.find((el) => el.attributes.Id === imageId);
|
|
28843
|
+
const path = src?.split("word/")[1];
|
|
28844
|
+
if (!hasRelation) {
|
|
28845
|
+
addImageRelationshipForId(params2, imageId, path);
|
|
28846
|
+
}
|
|
28847
|
+
} else if (params2.node.type === "image" && !imageId) {
|
|
28797
28848
|
const path = src?.split("word/")[1];
|
|
28798
28849
|
imageId = addNewImageRelationship(params2, path);
|
|
28799
28850
|
} else if (params2.node.type === "fieldAnnotation" && !imageId) {
|
|
@@ -29017,6 +29068,18 @@ function addNewImageRelationship(params2, imagePath) {
|
|
|
29017
29068
|
params2.relationships.push(newRel);
|
|
29018
29069
|
return newId;
|
|
29019
29070
|
}
|
|
29071
|
+
function addImageRelationshipForId(params2, id, imagePath) {
|
|
29072
|
+
const newRel = {
|
|
29073
|
+
type: "element",
|
|
29074
|
+
name: "Relationship",
|
|
29075
|
+
attributes: {
|
|
29076
|
+
Id: id,
|
|
29077
|
+
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
|
|
29078
|
+
Target: imagePath
|
|
29079
|
+
}
|
|
29080
|
+
};
|
|
29081
|
+
params2.relationships.push(newRel);
|
|
29082
|
+
}
|
|
29020
29083
|
function translateVectorShape(params2) {
|
|
29021
29084
|
const { node } = params2;
|
|
29022
29085
|
const { drawingContent } = node.attrs;
|
|
@@ -33532,7 +33595,7 @@ const createDocumentJson = (docx, converter, editor) => {
|
|
|
33532
33595
|
comments,
|
|
33533
33596
|
inlineDocumentFonts,
|
|
33534
33597
|
linkedStyles: getStyleDefinitions(docx),
|
|
33535
|
-
numbering: getNumberingDefinitions(docx)
|
|
33598
|
+
numbering: getNumberingDefinitions(docx, converter)
|
|
33536
33599
|
};
|
|
33537
33600
|
}
|
|
33538
33601
|
return null;
|
|
@@ -33931,8 +33994,8 @@ function filterOutRootInlineNodes(content = []) {
|
|
|
33931
33994
|
]);
|
|
33932
33995
|
return content.filter((node) => node && typeof node.type === "string" && !INLINE_TYPES.has(node.type));
|
|
33933
33996
|
}
|
|
33934
|
-
function getNumberingDefinitions(docx) {
|
|
33935
|
-
const cache2 = ensureNumberingCache(docx);
|
|
33997
|
+
function getNumberingDefinitions(docx, converter) {
|
|
33998
|
+
const cache2 = ensureNumberingCache(docx, converter);
|
|
33936
33999
|
const abstractDefinitions = {};
|
|
33937
34000
|
cache2.abstractById.forEach((value, key2) => {
|
|
33938
34001
|
const numericKey = Number(key2);
|
|
@@ -35306,6 +35369,35 @@ const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithPara
|
|
|
35306
35369
|
};
|
|
35307
35370
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
35308
35371
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
35372
|
+
const FOOTER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
|
|
35373
|
+
const REL_ID_NUMERIC_PATTERN = /rId|mi/g;
|
|
35374
|
+
const getLargestRelationshipId = (relationships = []) => {
|
|
35375
|
+
const numericIds = relationships.map((rel) => Number(String(rel?.attributes?.Id ?? "").replace(REL_ID_NUMERIC_PATTERN, ""))).filter((value) => Number.isFinite(value));
|
|
35376
|
+
return numericIds.length ? Math.max(...numericIds) : 0;
|
|
35377
|
+
};
|
|
35378
|
+
const mergeRelationshipElements = (existingRelationships = [], newRelationships = []) => {
|
|
35379
|
+
if (!newRelationships?.length) return existingRelationships;
|
|
35380
|
+
let largestId = getLargestRelationshipId(existingRelationships);
|
|
35381
|
+
const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
|
|
35382
|
+
const additions = [];
|
|
35383
|
+
newRelationships.forEach((rel) => {
|
|
35384
|
+
if (!rel?.attributes) return;
|
|
35385
|
+
const attributes = rel.attributes;
|
|
35386
|
+
const currentId = attributes.Id || "";
|
|
35387
|
+
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
35388
|
+
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
35389
|
+
const isMedia = attributes.Target?.startsWith("media/");
|
|
35390
|
+
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
35391
|
+
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
35392
|
+
const hasSeenId = currentId && seenIds.has(currentId);
|
|
35393
|
+
const shouldSkip = !isNewHyperlink && !isNewHeadFoot && (hasSeenId || existingTarget);
|
|
35394
|
+
if (shouldSkip) return;
|
|
35395
|
+
attributes.Id = currentId.length > 6 || isMedia ? currentId : `rId${++largestId}`;
|
|
35396
|
+
seenIds.add(attributes.Id);
|
|
35397
|
+
additions.push(rel);
|
|
35398
|
+
});
|
|
35399
|
+
return additions.length ? [...existingRelationships, ...additions] : existingRelationships;
|
|
35400
|
+
};
|
|
35309
35401
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
35310
35402
|
swiss: "Arial, sans-serif",
|
|
35311
35403
|
roman: "Times New Roman, serif",
|
|
@@ -35905,7 +35997,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
|
|
|
35905
35997
|
};
|
|
35906
35998
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
35907
35999
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35908
|
-
const relationships = relsData.elements.find((
|
|
36000
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
35909
36001
|
const newDocRels = [];
|
|
35910
36002
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
35911
36003
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -35946,7 +36038,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35946
36038
|
}
|
|
35947
36039
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35948
36040
|
if (params2.relationships.length) {
|
|
35949
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36041
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
35950
36042
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35951
36043
|
declaration: this.initialJSON?.declaration,
|
|
35952
36044
|
elements: [
|
|
@@ -36000,7 +36092,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36000
36092
|
}
|
|
36001
36093
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36002
36094
|
if (params2.relationships.length) {
|
|
36003
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36095
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x) => x.name === "Relationships")?.elements || [];
|
|
36004
36096
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36005
36097
|
declaration: this.initialJSON?.declaration,
|
|
36006
36098
|
elements: [
|
|
@@ -36019,24 +36111,8 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36019
36111
|
};
|
|
36020
36112
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36021
36113
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36022
|
-
const relationships = relsData.elements.find((
|
|
36023
|
-
|
|
36024
|
-
const regex = /rId|mi/g;
|
|
36025
|
-
let largestId = Math.max(...relationships.elements.map((el) => Number(el.attributes.Id.replace(regex, ""))));
|
|
36026
|
-
rels.forEach((rel) => {
|
|
36027
|
-
const existingId = rel.attributes.Id;
|
|
36028
|
-
const existingTarget = relationships.elements.find((el) => el.attributes.Target === rel.attributes.Target);
|
|
36029
|
-
const isNewMedia = rel.attributes.Target?.startsWith("media/") && existingId.length > 6;
|
|
36030
|
-
const isNewHyperlink = rel.attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36031
|
-
const isNewHeadFoot = rel.attributes.Type === HEADER_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36032
|
-
if (existingTarget && !isNewMedia && !isNewHyperlink && !isNewHeadFoot) {
|
|
36033
|
-
return;
|
|
36034
|
-
}
|
|
36035
|
-
rel.attributes.Target = rel.attributes?.Target?.replace(/&/g, "&");
|
|
36036
|
-
rel.attributes.Id = existingId.length > 6 ? existingId : `rId${++largestId}`;
|
|
36037
|
-
newRels.push(rel);
|
|
36038
|
-
});
|
|
36039
|
-
relationships.elements = [...relationships.elements, ...newRels];
|
|
36114
|
+
const relationships = relsData.elements.find((x) => x.name === "Relationships");
|
|
36115
|
+
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36040
36116
|
};
|
|
36041
36117
|
exportProcessMediaFiles_fn = async function(media = {}) {
|
|
36042
36118
|
const processedData = {
|
|
@@ -36120,37 +36196,37 @@ function requireJszip_min() {
|
|
|
36120
36196
|
module2.exports = e();
|
|
36121
36197
|
})(function() {
|
|
36122
36198
|
return (function s2(a, o, h2) {
|
|
36123
|
-
function
|
|
36199
|
+
function u(r2, e2) {
|
|
36124
36200
|
if (!o[r2]) {
|
|
36125
36201
|
if (!a[r2]) {
|
|
36126
36202
|
var t = "function" == typeof commonjsRequire && commonjsRequire;
|
|
36127
36203
|
if (!e2 && t) return t(r2, true);
|
|
36128
|
-
if (
|
|
36204
|
+
if (l3) return l3(r2, true);
|
|
36129
36205
|
var n = new Error("Cannot find module '" + r2 + "'");
|
|
36130
36206
|
throw n.code = "MODULE_NOT_FOUND", n;
|
|
36131
36207
|
}
|
|
36132
36208
|
var i = o[r2] = { exports: {} };
|
|
36133
36209
|
a[r2][0].call(i.exports, function(e3) {
|
|
36134
36210
|
var t2 = a[r2][1][e3];
|
|
36135
|
-
return
|
|
36211
|
+
return u(t2 || e3);
|
|
36136
36212
|
}, i, i.exports, s2, a, o, h2);
|
|
36137
36213
|
}
|
|
36138
36214
|
return o[r2].exports;
|
|
36139
36215
|
}
|
|
36140
|
-
for (var
|
|
36141
|
-
return
|
|
36216
|
+
for (var l3 = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u(h2[e]);
|
|
36217
|
+
return u;
|
|
36142
36218
|
})({ 1: [function(e, t, r2) {
|
|
36143
36219
|
var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
36144
36220
|
r2.encode = function(e2) {
|
|
36145
|
-
for (var t2, r22, n, i, s2, a, o, h2 = [],
|
|
36221
|
+
for (var t2, r22, n, i, s2, a, o, h2 = [], u = 0, l3 = e2.length, f2 = l3, c22 = "string" !== d2.getTypeOf(e2); u < e2.length; ) f2 = l3 - u, n = c22 ? (t2 = e2[u++], r22 = u < l3 ? e2[u++] : 0, u < l3 ? e2[u++] : 0) : (t2 = e2.charCodeAt(u++), r22 = u < l3 ? e2.charCodeAt(u++) : 0, u < l3 ? e2.charCodeAt(u++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
|
|
36146
36222
|
return h2.join("");
|
|
36147
36223
|
}, r2.decode = function(e2) {
|
|
36148
|
-
var t2, r22, n, i, s2, a, o = 0, h2 = 0,
|
|
36149
|
-
if (e2.substr(0,
|
|
36150
|
-
var
|
|
36224
|
+
var t2, r22, n, i, s2, a, o = 0, h2 = 0, u = "data:";
|
|
36225
|
+
if (e2.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
36226
|
+
var l3, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
36151
36227
|
if (e2.charAt(e2.length - 1) === p.charAt(64) && f2--, e2.charAt(e2.length - 2) === p.charAt(64) && f2--, f2 % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
36152
|
-
for (
|
|
36153
|
-
return
|
|
36228
|
+
for (l3 = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l3[h2++] = t2, 64 !== s2 && (l3[h2++] = r22), 64 !== a && (l3[h2++] = n);
|
|
36229
|
+
return l3;
|
|
36154
36230
|
};
|
|
36155
36231
|
}, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
|
|
36156
36232
|
var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
|
|
@@ -36231,10 +36307,10 @@ function requireJszip_min() {
|
|
|
36231
36307
|
return n2;
|
|
36232
36308
|
}
|
|
36233
36309
|
function n(e2, t2, r22, n2, i2, s22) {
|
|
36234
|
-
var a, o, h2 = e2.file,
|
|
36235
|
-
t2 && !r22 || (
|
|
36310
|
+
var a, o, h2 = e2.file, u = e2.compression, l3 = s22 !== O2.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O2.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O2.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36311
|
+
t2 && !r22 || (x.crc32 = e2.crc32, x.compressedSize = e2.compressedSize, x.uncompressedSize = e2.uncompressedSize);
|
|
36236
36312
|
var S2 = 0;
|
|
36237
|
-
t2 && (S2 |= 8),
|
|
36313
|
+
t2 && (S2 |= 8), l3 || !_2 && !g || (S2 |= 2048);
|
|
36238
36314
|
var z2 = 0, C2 = 0;
|
|
36239
36315
|
w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
|
|
36240
36316
|
var r3 = e3;
|
|
@@ -36243,9 +36319,9 @@ function requireJszip_min() {
|
|
|
36243
36319
|
return 63 & (e3 || 0);
|
|
36244
36320
|
})(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36245
36321
|
var E2 = "";
|
|
36246
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 +=
|
|
36322
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x.crc32, 4), E2 += A2(x.compressedSize, 4), E2 += A2(x.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R2.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R2.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
|
|
36247
36323
|
}
|
|
36248
|
-
var I2 = e("../utils"), i = e("../stream/GenericWorker"),
|
|
36324
|
+
var I2 = e("../utils"), i = e("../stream/GenericWorker"), O2 = e("../utf8"), B2 = e("../crc32"), R2 = e("../signature");
|
|
36249
36325
|
function s2(e2, t2, r22, n2) {
|
|
36250
36326
|
i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
36251
36327
|
}
|
|
@@ -36263,7 +36339,7 @@ function requireJszip_min() {
|
|
|
36263
36339
|
this.accumulate = false;
|
|
36264
36340
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36265
36341
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36266
|
-
return
|
|
36342
|
+
return R2.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36267
36343
|
})(e2), meta: { percent: 100 } });
|
|
36268
36344
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36269
36345
|
this.currentFile = null;
|
|
@@ -36271,7 +36347,7 @@ function requireJszip_min() {
|
|
|
36271
36347
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36272
36348
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
|
|
36273
36349
|
var s22 = I2.transformTo("string", i2(n3));
|
|
36274
|
-
return
|
|
36350
|
+
return R2.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36275
36351
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36276
36352
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36277
36353
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -36301,14 +36377,14 @@ function requireJszip_min() {
|
|
|
36301
36377
|
for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
|
|
36302
36378
|
}, t.exports = s2;
|
|
36303
36379
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
|
|
36304
|
-
var
|
|
36380
|
+
var u = e("../compressions"), n = e("./ZipFileWorker");
|
|
36305
36381
|
r2.generateWorker = function(e2, a, t2) {
|
|
36306
36382
|
var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
|
|
36307
36383
|
try {
|
|
36308
36384
|
e2.forEach(function(e3, t3) {
|
|
36309
36385
|
h2++;
|
|
36310
36386
|
var r22 = (function(e4, t4) {
|
|
36311
|
-
var r3 = e4 || t4, n3 =
|
|
36387
|
+
var r3 = e4 || t4, n3 = u[r3];
|
|
36312
36388
|
if (!n3) throw new Error(r3 + " is not a valid compression method !");
|
|
36313
36389
|
return n3;
|
|
36314
36390
|
})(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
|
|
@@ -36333,7 +36409,7 @@ function requireJszip_min() {
|
|
|
36333
36409
|
return new n().loadAsync(e2, t2);
|
|
36334
36410
|
}, n.external = e("./external"), t.exports = n;
|
|
36335
36411
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
|
|
36336
|
-
var
|
|
36412
|
+
var u = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l3 = e("./nodejsUtils");
|
|
36337
36413
|
function f2(n2) {
|
|
36338
36414
|
return new i.Promise(function(e2, t2) {
|
|
36339
36415
|
var r22 = n2.decompressed.getContentWorker().pipe(new a());
|
|
@@ -36346,7 +36422,7 @@ function requireJszip_min() {
|
|
|
36346
36422
|
}
|
|
36347
36423
|
t.exports = function(e2, o) {
|
|
36348
36424
|
var h2 = this;
|
|
36349
|
-
return o =
|
|
36425
|
+
return o = u.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l3.isNode && l3.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
|
|
36350
36426
|
var t2 = new s2(o);
|
|
36351
36427
|
return t2.load(e3), t2;
|
|
36352
36428
|
}).then(function(e3) {
|
|
@@ -36355,7 +36431,7 @@ function requireJszip_min() {
|
|
|
36355
36431
|
return i.Promise.all(t2);
|
|
36356
36432
|
}).then(function(e3) {
|
|
36357
36433
|
for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
|
|
36358
|
-
var i2 = r22[n2], s22 = i2.fileNameStr, a2 =
|
|
36434
|
+
var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u.resolve(i2.fileNameStr);
|
|
36359
36435
|
h2.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h2.file(a2).unsafeOriginalName = s22);
|
|
36360
36436
|
}
|
|
36361
36437
|
return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
|
|
@@ -36412,16 +36488,16 @@ function requireJszip_min() {
|
|
|
36412
36488
|
} };
|
|
36413
36489
|
}, {}], 15: [function(e, t, r2) {
|
|
36414
36490
|
function s2(e2, t2, r22) {
|
|
36415
|
-
var n2, i2 =
|
|
36491
|
+
var n2, i2 = u.getTypeOf(t2), s22 = u.extend(r22 || {}, f2);
|
|
36416
36492
|
s22.date = s22.date || /* @__PURE__ */ new Date(), null !== s22.compression && (s22.compression = s22.compression.toUpperCase()), "string" == typeof s22.unixPermissions && (s22.unixPermissions = parseInt(s22.unixPermissions, 8)), s22.unixPermissions && 16384 & s22.unixPermissions && (s22.dir = true), s22.dosPermissions && 16 & s22.dosPermissions && (s22.dir = true), s22.dir && (e2 = g(e2)), s22.createFolders && (n2 = _2(e2)) && b2.call(this, n2, true);
|
|
36417
36493
|
var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
|
|
36418
36494
|
r22 && void 0 !== r22.binary || (s22.binary = !a2), (t2 instanceof c2 && 0 === t2.uncompressedSize || s22.dir || !t2 || 0 === t2.length) && (s22.base64 = false, s22.binary = true, t2 = "", s22.compression = "STORE", i2 = "string");
|
|
36419
36495
|
var o2 = null;
|
|
36420
|
-
o2 = t2 instanceof c2 || t2 instanceof
|
|
36496
|
+
o2 = t2 instanceof c2 || t2 instanceof l3 ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
|
|
36421
36497
|
var h22 = new d2(e2, o2, s22);
|
|
36422
36498
|
this.files[e2] = h22;
|
|
36423
36499
|
}
|
|
36424
|
-
var i = e("./utf8"),
|
|
36500
|
+
var i = e("./utf8"), u = e("./utils"), l3 = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
|
|
36425
36501
|
"/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
|
|
36426
36502
|
var t2 = e2.lastIndexOf("/");
|
|
36427
36503
|
return 0 < t2 ? e2.substring(0, t2) : "";
|
|
@@ -36473,12 +36549,12 @@ function requireJszip_min() {
|
|
|
36473
36549
|
}, generateInternalStream: function(e2) {
|
|
36474
36550
|
var t2, r22 = {};
|
|
36475
36551
|
try {
|
|
36476
|
-
if ((r22 =
|
|
36477
|
-
|
|
36552
|
+
if ((r22 = u.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
|
|
36553
|
+
u.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
|
|
36478
36554
|
var n2 = r22.comment || this.comment || "";
|
|
36479
36555
|
t2 = o.generateWorker(this, r22, n2);
|
|
36480
36556
|
} catch (e3) {
|
|
36481
|
-
(t2 = new
|
|
36557
|
+
(t2 = new l3("error")).error(e3);
|
|
36482
36558
|
}
|
|
36483
36559
|
return new a(t2, r22.type || "string", r22.mimeType);
|
|
36484
36560
|
}, generateAsync: function(e2, t2) {
|
|
@@ -36698,12 +36774,12 @@ function requireJszip_min() {
|
|
|
36698
36774
|
return this.previous ? this.previous + " -> " + e2 : e2;
|
|
36699
36775
|
} }, t.exports = n;
|
|
36700
36776
|
}, {}], 29: [function(e, t, r2) {
|
|
36701
|
-
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"),
|
|
36777
|
+
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
|
|
36702
36778
|
if (n.nodestream) try {
|
|
36703
36779
|
o = e("../nodejs/NodejsStreamOutputAdapter");
|
|
36704
36780
|
} catch (e2) {
|
|
36705
36781
|
}
|
|
36706
|
-
function
|
|
36782
|
+
function l3(e2, o2) {
|
|
36707
36783
|
return new a.Promise(function(t2, r22) {
|
|
36708
36784
|
var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
|
|
36709
36785
|
e2.on("data", function(e3, t3) {
|
|
@@ -36717,7 +36793,7 @@ function requireJszip_min() {
|
|
|
36717
36793
|
case "blob":
|
|
36718
36794
|
return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
|
|
36719
36795
|
case "base64":
|
|
36720
|
-
return
|
|
36796
|
+
return u.encode(t3);
|
|
36721
36797
|
default:
|
|
36722
36798
|
return h2.transformTo(e4, t3);
|
|
36723
36799
|
}
|
|
@@ -36763,7 +36839,7 @@ function requireJszip_min() {
|
|
|
36763
36839
|
}
|
|
36764
36840
|
}
|
|
36765
36841
|
f2.prototype = { accumulate: function(e2) {
|
|
36766
|
-
return
|
|
36842
|
+
return l3(this, e2);
|
|
36767
36843
|
}, on: function(e2, t2) {
|
|
36768
36844
|
var r22 = this;
|
|
36769
36845
|
return "data" === e2 ? this._worker.on(e2, function(e3) {
|
|
@@ -36800,12 +36876,12 @@ function requireJszip_min() {
|
|
|
36800
36876
|
r2.nodestream = false;
|
|
36801
36877
|
}
|
|
36802
36878
|
}, { "readable-stream": 16 }], 31: [function(e, t, s2) {
|
|
36803
|
-
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"),
|
|
36804
|
-
|
|
36879
|
+
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
|
|
36880
|
+
u[254] = u[254] = 1;
|
|
36805
36881
|
function a() {
|
|
36806
36882
|
n.call(this, "utf-8 decode"), this.leftOver = null;
|
|
36807
36883
|
}
|
|
36808
|
-
function
|
|
36884
|
+
function l3() {
|
|
36809
36885
|
n.call(this, "utf-8 encode");
|
|
36810
36886
|
}
|
|
36811
36887
|
s2.utf8encode = function(e2) {
|
|
@@ -36819,7 +36895,7 @@ function requireJszip_min() {
|
|
|
36819
36895
|
return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
|
|
36820
36896
|
var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
|
|
36821
36897
|
for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
|
|
36822
|
-
else if (4 < (i2 =
|
|
36898
|
+
else if (4 < (i2 = u[n2])) a2[r22++] = 65533, t2 += i2 - 1;
|
|
36823
36899
|
else {
|
|
36824
36900
|
for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
|
|
36825
36901
|
1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
|
|
@@ -36838,20 +36914,20 @@ function requireJszip_min() {
|
|
|
36838
36914
|
var n2 = (function(e3, t3) {
|
|
36839
36915
|
var r3;
|
|
36840
36916
|
for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
|
|
36841
|
-
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 +
|
|
36917
|
+
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u[e3[r3]] > t3 ? r3 : t3;
|
|
36842
36918
|
})(t2), i2 = t2;
|
|
36843
36919
|
n2 !== t2.length && (h2.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
|
|
36844
36920
|
}, a.prototype.flush = function() {
|
|
36845
36921
|
this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
36846
|
-
}, s2.Utf8DecodeWorker = a, o.inherits(
|
|
36922
|
+
}, s2.Utf8DecodeWorker = a, o.inherits(l3, n), l3.prototype.processChunk = function(e2) {
|
|
36847
36923
|
this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
|
|
36848
|
-
}, s2.Utf8EncodeWorker =
|
|
36924
|
+
}, s2.Utf8EncodeWorker = l3;
|
|
36849
36925
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
|
|
36850
|
-
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"),
|
|
36926
|
+
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u = e("./external");
|
|
36851
36927
|
function n(e2) {
|
|
36852
36928
|
return e2;
|
|
36853
36929
|
}
|
|
36854
|
-
function
|
|
36930
|
+
function l3(e2, t2) {
|
|
36855
36931
|
for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
|
|
36856
36932
|
return t2;
|
|
36857
36933
|
}
|
|
@@ -36905,13 +36981,13 @@ function requireJszip_min() {
|
|
|
36905
36981
|
a.applyFromCharCode = s2;
|
|
36906
36982
|
var c2 = {};
|
|
36907
36983
|
c2.string = { string: n, array: function(e2) {
|
|
36908
|
-
return
|
|
36984
|
+
return l3(e2, new Array(e2.length));
|
|
36909
36985
|
}, arraybuffer: function(e2) {
|
|
36910
36986
|
return c2.string.uint8array(e2).buffer;
|
|
36911
36987
|
}, uint8array: function(e2) {
|
|
36912
|
-
return
|
|
36988
|
+
return l3(e2, new Uint8Array(e2.length));
|
|
36913
36989
|
}, nodebuffer: function(e2) {
|
|
36914
|
-
return
|
|
36990
|
+
return l3(e2, r2.allocBuffer(e2.length));
|
|
36915
36991
|
} }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
|
|
36916
36992
|
return new Uint8Array(e2).buffer;
|
|
36917
36993
|
}, uint8array: function(e2) {
|
|
@@ -36970,8 +37046,8 @@ function requireJszip_min() {
|
|
|
36970
37046
|
for (e2 = 0; e2 < arguments.length; e2++) for (t2 in arguments[e2]) Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r22[t2] && (r22[t2] = arguments[e2][t2]);
|
|
36971
37047
|
return r22;
|
|
36972
37048
|
}, a.prepareContent = function(r22, e2, n2, i2, s22) {
|
|
36973
|
-
return
|
|
36974
|
-
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new
|
|
37049
|
+
return u.Promise.resolve(e2).then(function(n3) {
|
|
37050
|
+
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u.Promise(function(t2, r3) {
|
|
36975
37051
|
var e3 = new FileReader();
|
|
36976
37052
|
e3.onload = function(e4) {
|
|
36977
37053
|
t2(e4.target.result);
|
|
@@ -36982,8 +37058,8 @@ function requireJszip_min() {
|
|
|
36982
37058
|
}).then(function(e3) {
|
|
36983
37059
|
var t2 = a.getTypeOf(e3);
|
|
36984
37060
|
return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
|
|
36985
|
-
return
|
|
36986
|
-
})(e3))), e3) :
|
|
37061
|
+
return l3(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
|
|
37062
|
+
})(e3))), e3) : u.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
36987
37063
|
});
|
|
36988
37064
|
};
|
|
36989
37065
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
|
|
@@ -37039,11 +37115,11 @@ function requireJszip_min() {
|
|
|
37039
37115
|
this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
37040
37116
|
} }, t.exports = h2;
|
|
37041
37117
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
|
|
37042
|
-
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"),
|
|
37043
|
-
function
|
|
37118
|
+
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u = e("./support");
|
|
37119
|
+
function l3(e2, t2) {
|
|
37044
37120
|
this.options = e2, this.loadOptions = t2;
|
|
37045
37121
|
}
|
|
37046
|
-
|
|
37122
|
+
l3.prototype = { isEncrypted: function() {
|
|
37047
37123
|
return 1 == (1 & this.bitFlag);
|
|
37048
37124
|
}, useUTF8: function() {
|
|
37049
37125
|
return 2048 == (2048 & this.bitFlag);
|
|
@@ -37074,7 +37150,7 @@ function requireJszip_min() {
|
|
|
37074
37150
|
for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; ) t2 = e2.readInt(2), r22 = e2.readInt(2), n2 = e2.readData(r22), this.extraFields[t2] = { id: t2, length: r22, value: n2 };
|
|
37075
37151
|
e2.setIndex(i2);
|
|
37076
37152
|
}, handleUTF8: function() {
|
|
37077
|
-
var e2 =
|
|
37153
|
+
var e2 = u.uint8array ? "uint8array" : "array";
|
|
37078
37154
|
if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
|
|
37079
37155
|
else {
|
|
37080
37156
|
var t2 = this.findExtraFieldUnicodePath();
|
|
@@ -37104,7 +37180,7 @@ function requireJszip_min() {
|
|
|
37104
37180
|
return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
|
|
37105
37181
|
}
|
|
37106
37182
|
return null;
|
|
37107
|
-
} }, t.exports =
|
|
37183
|
+
} }, t.exports = l3;
|
|
37108
37184
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
|
|
37109
37185
|
function n(e2, t2, r22) {
|
|
37110
37186
|
this.name = e2, this.dir = r22.dir, this.date = r22.date, this.comment = r22.comment, this.unixPermissions = r22.unixPermissions, this.dosPermissions = r22.dosPermissions, this._data = t2, this._dataBinary = r22.binary, this.options = { compression: r22.compression, compressionOptions: r22.compressionOptions };
|
|
@@ -37133,34 +37209,34 @@ function requireJszip_min() {
|
|
|
37133
37209
|
}, _decompressWorker: function() {
|
|
37134
37210
|
return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
|
|
37135
37211
|
} };
|
|
37136
|
-
for (var
|
|
37212
|
+
for (var u = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l3 = function() {
|
|
37137
37213
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
37138
|
-
}, f2 = 0; f2 <
|
|
37214
|
+
}, f2 = 0; f2 < u.length; f2++) n.prototype[u[f2]] = l3;
|
|
37139
37215
|
t.exports = n;
|
|
37140
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e,
|
|
37216
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l3, t) {
|
|
37141
37217
|
(function(t2) {
|
|
37142
37218
|
var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
|
|
37143
37219
|
if (e2) {
|
|
37144
|
-
var i = 0, s2 = new e2(
|
|
37220
|
+
var i = 0, s2 = new e2(u), a = t2.document.createTextNode("");
|
|
37145
37221
|
s2.observe(a, { characterData: true }), r2 = function() {
|
|
37146
37222
|
a.data = i = ++i % 2;
|
|
37147
37223
|
};
|
|
37148
37224
|
} else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
|
|
37149
37225
|
var e3 = t2.document.createElement("script");
|
|
37150
37226
|
e3.onreadystatechange = function() {
|
|
37151
|
-
|
|
37227
|
+
u(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
|
|
37152
37228
|
}, t2.document.documentElement.appendChild(e3);
|
|
37153
37229
|
} : function() {
|
|
37154
|
-
setTimeout(
|
|
37230
|
+
setTimeout(u, 0);
|
|
37155
37231
|
};
|
|
37156
37232
|
else {
|
|
37157
37233
|
var o = new t2.MessageChannel();
|
|
37158
|
-
o.port1.onmessage =
|
|
37234
|
+
o.port1.onmessage = u, r2 = function() {
|
|
37159
37235
|
o.port2.postMessage(0);
|
|
37160
37236
|
};
|
|
37161
37237
|
}
|
|
37162
37238
|
var h2 = [];
|
|
37163
|
-
function
|
|
37239
|
+
function u() {
|
|
37164
37240
|
var e3, t3;
|
|
37165
37241
|
n = true;
|
|
37166
37242
|
for (var r22 = h2.length; r22; ) {
|
|
@@ -37169,18 +37245,18 @@ function requireJszip_min() {
|
|
|
37169
37245
|
}
|
|
37170
37246
|
n = false;
|
|
37171
37247
|
}
|
|
37172
|
-
|
|
37248
|
+
l3.exports = function(e3) {
|
|
37173
37249
|
1 !== h2.push(e3) || n || r2();
|
|
37174
37250
|
};
|
|
37175
37251
|
}).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
|
|
37176
37252
|
}, {}], 37: [function(e, t, r2) {
|
|
37177
37253
|
var i = e("immediate");
|
|
37178
|
-
function
|
|
37254
|
+
function u() {
|
|
37179
37255
|
}
|
|
37180
|
-
var
|
|
37256
|
+
var l3 = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
|
|
37181
37257
|
function o(e2) {
|
|
37182
37258
|
if ("function" != typeof e2) throw new TypeError("resolver must be a function");
|
|
37183
|
-
this.state = n, this.queue = [], this.outcome = void 0, e2 !==
|
|
37259
|
+
this.state = n, this.queue = [], this.outcome = void 0, e2 !== u && d2(this, e2);
|
|
37184
37260
|
}
|
|
37185
37261
|
function h2(e2, t2, r22) {
|
|
37186
37262
|
this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
|
|
@@ -37191,9 +37267,9 @@ function requireJszip_min() {
|
|
|
37191
37267
|
try {
|
|
37192
37268
|
e2 = r22(n2);
|
|
37193
37269
|
} catch (e3) {
|
|
37194
|
-
return
|
|
37270
|
+
return l3.reject(t2, e3);
|
|
37195
37271
|
}
|
|
37196
|
-
e2 === t2 ?
|
|
37272
|
+
e2 === t2 ? l3.reject(t2, new TypeError("Cannot resolve promise with itself")) : l3.resolve(t2, e2);
|
|
37197
37273
|
});
|
|
37198
37274
|
}
|
|
37199
37275
|
function c2(e2) {
|
|
@@ -37205,10 +37281,10 @@ function requireJszip_min() {
|
|
|
37205
37281
|
function d2(t2, e2) {
|
|
37206
37282
|
var r22 = false;
|
|
37207
37283
|
function n2(e3) {
|
|
37208
|
-
r22 || (r22 = true,
|
|
37284
|
+
r22 || (r22 = true, l3.reject(t2, e3));
|
|
37209
37285
|
}
|
|
37210
37286
|
function i2(e3) {
|
|
37211
|
-
r22 || (r22 = true,
|
|
37287
|
+
r22 || (r22 = true, l3.resolve(t2, e3));
|
|
37212
37288
|
}
|
|
37213
37289
|
var s22 = p(function() {
|
|
37214
37290
|
e2(i2, n2);
|
|
@@ -37240,20 +37316,20 @@ function requireJszip_min() {
|
|
|
37240
37316
|
return this.then(null, e2);
|
|
37241
37317
|
}, o.prototype.then = function(e2, t2) {
|
|
37242
37318
|
if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
|
|
37243
|
-
var r22 = new this.constructor(
|
|
37319
|
+
var r22 = new this.constructor(u);
|
|
37244
37320
|
this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
|
|
37245
37321
|
return r22;
|
|
37246
37322
|
}, h2.prototype.callFulfilled = function(e2) {
|
|
37247
|
-
|
|
37323
|
+
l3.resolve(this.promise, e2);
|
|
37248
37324
|
}, h2.prototype.otherCallFulfilled = function(e2) {
|
|
37249
37325
|
f2(this.promise, this.onFulfilled, e2);
|
|
37250
37326
|
}, h2.prototype.callRejected = function(e2) {
|
|
37251
|
-
|
|
37327
|
+
l3.reject(this.promise, e2);
|
|
37252
37328
|
}, h2.prototype.otherCallRejected = function(e2) {
|
|
37253
37329
|
f2(this.promise, this.onRejected, e2);
|
|
37254
|
-
},
|
|
37330
|
+
}, l3.resolve = function(e2, t2) {
|
|
37255
37331
|
var r22 = p(c2, t2);
|
|
37256
|
-
if ("error" === r22.status) return
|
|
37332
|
+
if ("error" === r22.status) return l3.reject(e2, r22.value);
|
|
37257
37333
|
var n2 = r22.value;
|
|
37258
37334
|
if (n2) d2(e2, n2);
|
|
37259
37335
|
else {
|
|
@@ -37261,29 +37337,29 @@ function requireJszip_min() {
|
|
|
37261
37337
|
for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
|
|
37262
37338
|
}
|
|
37263
37339
|
return e2;
|
|
37264
|
-
},
|
|
37340
|
+
}, l3.reject = function(e2, t2) {
|
|
37265
37341
|
e2.state = s2, e2.outcome = t2;
|
|
37266
37342
|
for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
|
|
37267
37343
|
return e2;
|
|
37268
37344
|
}, o.resolve = function(e2) {
|
|
37269
37345
|
if (e2 instanceof this) return e2;
|
|
37270
|
-
return
|
|
37346
|
+
return l3.resolve(new this(u), e2);
|
|
37271
37347
|
}, o.reject = function(e2) {
|
|
37272
|
-
var t2 = new this(
|
|
37273
|
-
return
|
|
37348
|
+
var t2 = new this(u);
|
|
37349
|
+
return l3.reject(t2, e2);
|
|
37274
37350
|
}, o.all = function(e2) {
|
|
37275
37351
|
var r22 = this;
|
|
37276
37352
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37277
37353
|
var n2 = e2.length, i2 = false;
|
|
37278
37354
|
if (!n2) return this.resolve([]);
|
|
37279
|
-
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(
|
|
37355
|
+
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u);
|
|
37280
37356
|
for (; ++t2 < n2; ) h22(e2[t2], t2);
|
|
37281
37357
|
return o2;
|
|
37282
37358
|
function h22(e3, t3) {
|
|
37283
37359
|
r22.resolve(e3).then(function(e4) {
|
|
37284
|
-
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true,
|
|
37360
|
+
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l3.resolve(o2, s22));
|
|
37285
37361
|
}, function(e4) {
|
|
37286
|
-
i2 || (i2 = true,
|
|
37362
|
+
i2 || (i2 = true, l3.reject(o2, e4));
|
|
37287
37363
|
});
|
|
37288
37364
|
}
|
|
37289
37365
|
}, o.race = function(e2) {
|
|
@@ -37291,11 +37367,11 @@ function requireJszip_min() {
|
|
|
37291
37367
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37292
37368
|
var r22 = e2.length, n2 = false;
|
|
37293
37369
|
if (!r22) return this.resolve([]);
|
|
37294
|
-
var i2 = -1, s22 = new this(
|
|
37370
|
+
var i2 = -1, s22 = new this(u);
|
|
37295
37371
|
for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
|
|
37296
|
-
n2 || (n2 = true,
|
|
37372
|
+
n2 || (n2 = true, l3.resolve(s22, e3));
|
|
37297
37373
|
}, function(e3) {
|
|
37298
|
-
n2 || (n2 = true,
|
|
37374
|
+
n2 || (n2 = true, l3.reject(s22, e3));
|
|
37299
37375
|
});
|
|
37300
37376
|
var a2;
|
|
37301
37377
|
return s22;
|
|
@@ -37304,17 +37380,17 @@ function requireJszip_min() {
|
|
|
37304
37380
|
var n = {};
|
|
37305
37381
|
(0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
|
|
37306
37382
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
|
|
37307
|
-
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"),
|
|
37383
|
+
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u = Object.prototype.toString, l3 = 0, f2 = -1, c2 = 0, d2 = 8;
|
|
37308
37384
|
function p(e2) {
|
|
37309
37385
|
if (!(this instanceof p)) return new p(e2);
|
|
37310
37386
|
this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
|
|
37311
37387
|
var t2 = this.options;
|
|
37312
37388
|
t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s2(), this.strm.avail_out = 0;
|
|
37313
37389
|
var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
|
|
37314
|
-
if (r22 !==
|
|
37390
|
+
if (r22 !== l3) throw new Error(i[r22]);
|
|
37315
37391
|
if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
|
|
37316
37392
|
var n2;
|
|
37317
|
-
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" ===
|
|
37393
|
+
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l3) throw new Error(i[r22]);
|
|
37318
37394
|
this._dict_set = true;
|
|
37319
37395
|
}
|
|
37320
37396
|
}
|
|
@@ -37326,16 +37402,16 @@ function requireJszip_min() {
|
|
|
37326
37402
|
p.prototype.push = function(e2, t2) {
|
|
37327
37403
|
var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
|
|
37328
37404
|
if (this.ended) return false;
|
|
37329
|
-
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" ===
|
|
37405
|
+
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
|
|
37330
37406
|
do {
|
|
37331
|
-
if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !==
|
|
37407
|
+
if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l3) return this.onEnd(r22), !(this.ended = true);
|
|
37332
37408
|
0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h2.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
|
|
37333
37409
|
} while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
|
|
37334
|
-
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 ===
|
|
37410
|
+
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l3) : 2 !== n2 || (this.onEnd(l3), !(i2.avail_out = 0));
|
|
37335
37411
|
}, p.prototype.onData = function(e2) {
|
|
37336
37412
|
this.chunks.push(e2);
|
|
37337
37413
|
}, p.prototype.onEnd = function(e2) {
|
|
37338
|
-
e2 ===
|
|
37414
|
+
e2 === l3 && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
|
|
37339
37415
|
}, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
|
|
37340
37416
|
return (t2 = t2 || {}).raw = true, n(e2, t2);
|
|
37341
37417
|
}, r2.gzip = function(e2, t2) {
|
|
@@ -37358,12 +37434,12 @@ function requireJszip_min() {
|
|
|
37358
37434
|
return r22.result;
|
|
37359
37435
|
}
|
|
37360
37436
|
a.prototype.push = function(e2, t2) {
|
|
37361
|
-
var r22, n2, i2, s22, a2, o2, h2 = this.strm,
|
|
37437
|
+
var r22, n2, i2, s22, a2, o2, h2 = this.strm, u = this.options.chunkSize, l3 = this.options.dictionary, f2 = false;
|
|
37362
37438
|
if (this.ended) return false;
|
|
37363
37439
|
n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h2.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h2.input = new Uint8Array(e2) : h2.input = e2, h2.next_in = 0, h2.avail_in = h2.input.length;
|
|
37364
37440
|
do {
|
|
37365
|
-
if (0 === h2.avail_out && (h2.output = new d2.Buf8(
|
|
37366
|
-
h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out =
|
|
37441
|
+
if (0 === h2.avail_out && (h2.output = new d2.Buf8(u), h2.next_out = 0, h2.avail_out = u), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l3 && (o2 = "string" == typeof l3 ? p.string2buf(l3) : "[object ArrayBuffer]" === _2.call(l3) ? new Uint8Array(l3) : l3, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
|
|
37442
|
+
h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
|
|
37367
37443
|
} while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
|
|
37368
37444
|
return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h2.avail_out = 0));
|
|
37369
37445
|
}, a.prototype.onData = function(e2) {
|
|
@@ -37415,35 +37491,35 @@ function requireJszip_min() {
|
|
|
37415
37491
|
} catch (e2) {
|
|
37416
37492
|
s2 = false;
|
|
37417
37493
|
}
|
|
37418
|
-
for (var
|
|
37419
|
-
function
|
|
37494
|
+
for (var u = new h2.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
|
|
37495
|
+
function l3(e2, t2) {
|
|
37420
37496
|
if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
|
|
37421
37497
|
for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
|
|
37422
37498
|
return r22;
|
|
37423
37499
|
}
|
|
37424
|
-
|
|
37500
|
+
u[254] = u[254] = 1, r2.string2buf = function(e2) {
|
|
37425
37501
|
var t2, r22, n2, i2, s22, a = e2.length, o = 0;
|
|
37426
37502
|
for (i2 = 0; i2 < a; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
|
|
37427
37503
|
for (t2 = new h2.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
|
|
37428
37504
|
return t2;
|
|
37429
37505
|
}, r2.buf2binstring = function(e2) {
|
|
37430
|
-
return
|
|
37506
|
+
return l3(e2, e2.length);
|
|
37431
37507
|
}, r2.binstring2buf = function(e2) {
|
|
37432
37508
|
for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
|
|
37433
37509
|
return t2;
|
|
37434
37510
|
}, r2.buf2string = function(e2, t2) {
|
|
37435
37511
|
var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
|
|
37436
37512
|
for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
|
|
37437
|
-
else if (4 < (s22 =
|
|
37513
|
+
else if (4 < (s22 = u[i2])) o[n2++] = 65533, r22 += s22 - 1;
|
|
37438
37514
|
else {
|
|
37439
37515
|
for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
|
|
37440
37516
|
1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
|
|
37441
37517
|
}
|
|
37442
|
-
return
|
|
37518
|
+
return l3(o, n2);
|
|
37443
37519
|
}, r2.utf8border = function(e2, t2) {
|
|
37444
37520
|
var r22;
|
|
37445
37521
|
for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
|
|
37446
|
-
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 +
|
|
37522
|
+
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u[e2[r22]] > t2 ? r22 : t2;
|
|
37447
37523
|
};
|
|
37448
37524
|
}, { "./common": 41 }], 43: [function(e, t, r2) {
|
|
37449
37525
|
t.exports = function(e2, t2, r22, n) {
|
|
@@ -37471,11 +37547,11 @@ function requireJszip_min() {
|
|
|
37471
37547
|
return -1 ^ e2;
|
|
37472
37548
|
};
|
|
37473
37549
|
}, {}], 46: [function(e, t, r2) {
|
|
37474
|
-
var h2, c2 = e("../utils/common"),
|
|
37475
|
-
function
|
|
37550
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l3 = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x = 3, S2 = 258, z2 = S2 + x + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O2 = 3, B2 = 4;
|
|
37551
|
+
function R2(e2, t2) {
|
|
37476
37552
|
return e2.msg = n[t2], t2;
|
|
37477
37553
|
}
|
|
37478
|
-
function
|
|
37554
|
+
function T(e2) {
|
|
37479
37555
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37480
37556
|
}
|
|
37481
37557
|
function D2(e2) {
|
|
@@ -37486,7 +37562,7 @@ function requireJszip_min() {
|
|
|
37486
37562
|
r22 > e2.avail_out && (r22 = e2.avail_out), 0 !== r22 && (c2.arraySet(e2.output, t2.pending_buf, t2.pending_out, r22, e2.next_out), e2.next_out += r22, t2.pending_out += r22, e2.total_out += r22, e2.avail_out -= r22, t2.pending -= r22, 0 === t2.pending && (t2.pending_out = 0));
|
|
37487
37563
|
}
|
|
37488
37564
|
function N2(e2, t2) {
|
|
37489
|
-
|
|
37565
|
+
u._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
|
|
37490
37566
|
}
|
|
37491
37567
|
function U2(e2, t2) {
|
|
37492
37568
|
e2.pending_buf[e2.pending++] = t2;
|
|
@@ -37495,23 +37571,23 @@ function requireJszip_min() {
|
|
|
37495
37571
|
e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
|
|
37496
37572
|
}
|
|
37497
37573
|
function L2(e2, t2) {
|
|
37498
|
-
var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0,
|
|
37574
|
+
var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u2 = e2.window, l22 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
|
|
37499
37575
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
37500
37576
|
do {
|
|
37501
|
-
if (
|
|
37577
|
+
if (u2[(r22 = t2) + a2] === p2 && u2[r22 + a2 - 1] === d22 && u2[r22] === u2[s22] && u2[++r22] === u2[s22 + 1]) {
|
|
37502
37578
|
s22 += 2, r22++;
|
|
37503
37579
|
do {
|
|
37504
|
-
} while (
|
|
37580
|
+
} while (u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && u2[++s22] === u2[++r22] && s22 < c22);
|
|
37505
37581
|
if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
|
|
37506
37582
|
if (e2.match_start = t2, o2 <= (a2 = n2)) break;
|
|
37507
|
-
d22 =
|
|
37583
|
+
d22 = u2[s22 + a2 - 1], p2 = u2[s22 + a2];
|
|
37508
37584
|
}
|
|
37509
37585
|
}
|
|
37510
|
-
} while ((t2 = f22[t2 &
|
|
37586
|
+
} while ((t2 = f22[t2 & l22]) > h22 && 0 != --i2);
|
|
37511
37587
|
return a2 <= e2.lookahead ? a2 : e2.lookahead;
|
|
37512
37588
|
}
|
|
37513
37589
|
function j2(e2) {
|
|
37514
|
-
var t2, r22, n2, i2, s22, a2, o2, h22,
|
|
37590
|
+
var t2, r22, n2, i2, s22, a2, o2, h22, u2, l22, f22 = e2.w_size;
|
|
37515
37591
|
do {
|
|
37516
37592
|
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
|
|
37517
37593
|
for (c2.arraySet(e2.window, e2.window, f22, f22, 0), e2.match_start -= f22, e2.strstart -= f22, e2.block_start -= f22, t2 = r22 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f22 <= n2 ? n2 - f22 : 0, --r22; ) ;
|
|
@@ -37519,38 +37595,38 @@ function requireJszip_min() {
|
|
|
37519
37595
|
i2 += f22;
|
|
37520
37596
|
}
|
|
37521
37597
|
if (0 === e2.strm.avail_in) break;
|
|
37522
|
-
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead,
|
|
37598
|
+
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i2, l22 = void 0, l22 = a2.avail_in, u2 < l22 && (l22 = u2), r22 = 0 === l22 ? 0 : (a2.avail_in -= l22, c2.arraySet(o2, a2.input, a2.next_in, l22, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l22, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l22, h22)), a2.next_in += l22, a2.total_in += l22, l22), e2.lookahead += r22, e2.lookahead + e2.insert >= x) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x)); ) ;
|
|
37523
37599
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37524
37600
|
}
|
|
37525
37601
|
function Z(e2, t2) {
|
|
37526
37602
|
for (var r22, n2; ; ) {
|
|
37527
37603
|
if (e2.lookahead < z2) {
|
|
37528
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37604
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37529
37605
|
if (0 === e2.lookahead) break;
|
|
37530
37606
|
}
|
|
37531
|
-
if (r22 = 0, e2.lookahead >=
|
|
37532
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37607
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x) {
|
|
37608
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37533
37609
|
e2.strstart++;
|
|
37534
37610
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
37535
|
-
else n2 =
|
|
37611
|
+
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37536
37612
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37537
37613
|
}
|
|
37538
|
-
return e2.insert = e2.strstart <
|
|
37614
|
+
return e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37539
37615
|
}
|
|
37540
37616
|
function W2(e2, t2) {
|
|
37541
37617
|
for (var r22, n2, i2; ; ) {
|
|
37542
37618
|
if (e2.lookahead < z2) {
|
|
37543
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37619
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l3) return A2;
|
|
37544
37620
|
if (0 === e2.lookahead) break;
|
|
37545
37621
|
}
|
|
37546
|
-
if (r22 = 0, e2.lookahead >=
|
|
37547
|
-
for (i2 = e2.strstart + e2.lookahead -
|
|
37548
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37622
|
+
if (r22 = 0, e2.lookahead >= x && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x - 1)), e2.prev_length >= x && e2.match_length <= e2.prev_length) {
|
|
37623
|
+
for (i2 = e2.strstart + e2.lookahead - x, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37624
|
+
if (e2.match_available = 0, e2.match_length = x - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37549
37625
|
} else if (e2.match_available) {
|
|
37550
|
-
if ((n2 =
|
|
37626
|
+
if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37551
37627
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37552
37628
|
}
|
|
37553
|
-
return e2.match_available && (n2 =
|
|
37629
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x - 1 ? e2.strstart : x - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37554
37630
|
}
|
|
37555
37631
|
function M2(e2, t2, r22, n2, i2) {
|
|
37556
37632
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
@@ -37560,27 +37636,27 @@ function requireJszip_min() {
|
|
|
37560
37636
|
}
|
|
37561
37637
|
function G2(e2) {
|
|
37562
37638
|
var t2;
|
|
37563
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush =
|
|
37639
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l3, u._tr_init(t2), m2) : R2(e2, _2);
|
|
37564
37640
|
}
|
|
37565
37641
|
function K2(e2) {
|
|
37566
37642
|
var t2 = G2(e2);
|
|
37567
37643
|
return t2 === m2 && (function(e3) {
|
|
37568
|
-
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length =
|
|
37644
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37569
37645
|
})(e2.state), t2;
|
|
37570
37646
|
}
|
|
37571
37647
|
function Y2(e2, t2, r22, n2, i2, s22) {
|
|
37572
37648
|
if (!e2) return _2;
|
|
37573
37649
|
var a2 = 1;
|
|
37574
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37650
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R2(e2, _2);
|
|
37575
37651
|
8 === n2 && (n2 = 9);
|
|
37576
37652
|
var o2 = new H();
|
|
37577
|
-
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37653
|
+
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x - 1) / x), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37578
37654
|
}
|
|
37579
37655
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37580
37656
|
var r22 = 65535;
|
|
37581
37657
|
for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
|
|
37582
37658
|
if (e2.lookahead <= 1) {
|
|
37583
|
-
if (j2(e2), 0 === e2.lookahead && t2 ===
|
|
37659
|
+
if (j2(e2), 0 === e2.lookahead && t2 === l3) return A2;
|
|
37584
37660
|
if (0 === e2.lookahead) break;
|
|
37585
37661
|
}
|
|
37586
37662
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
@@ -37588,15 +37664,15 @@ function requireJszip_min() {
|
|
|
37588
37664
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37589
37665
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37590
37666
|
}
|
|
37591
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37667
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O2 : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37592
37668
|
}), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
|
|
37593
37669
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37594
37670
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37595
37671
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37596
37672
|
}, r2.deflate = function(e2, t2) {
|
|
37597
37673
|
var r22, n2, i2, s22;
|
|
37598
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37599
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37674
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R2(e2, _2) : _2;
|
|
37675
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R2(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37600
37676
|
if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
|
|
37601
37677
|
else {
|
|
37602
37678
|
var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37630,50 +37706,50 @@ function requireJszip_min() {
|
|
|
37630
37706
|
} else n2.status = 103;
|
|
37631
37707
|
if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
|
|
37632
37708
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37633
|
-
} else if (0 === e2.avail_in &&
|
|
37634
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37635
|
-
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !==
|
|
37709
|
+
} else if (0 === e2.avail_in && T(t2) <= T(r22) && t2 !== f2) return R2(e2, -5);
|
|
37710
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R2(e2, -5);
|
|
37711
|
+
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l3 && 666 !== n2.status) {
|
|
37636
37712
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37637
37713
|
for (var r3; ; ) {
|
|
37638
37714
|
if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
|
|
37639
|
-
if (t3 ===
|
|
37715
|
+
if (t3 === l3) return A2;
|
|
37640
37716
|
break;
|
|
37641
37717
|
}
|
|
37642
|
-
if (e3.match_length = 0, r3 =
|
|
37718
|
+
if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37643
37719
|
}
|
|
37644
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37720
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37645
37721
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37646
37722
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37647
37723
|
if (e3.lookahead <= S2) {
|
|
37648
|
-
if (j2(e3), e3.lookahead <= S2 && t3 ===
|
|
37724
|
+
if (j2(e3), e3.lookahead <= S2 && t3 === l3) return A2;
|
|
37649
37725
|
if (0 === e3.lookahead) break;
|
|
37650
37726
|
}
|
|
37651
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37727
|
+
if (e3.match_length = 0, e3.lookahead >= x && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37652
37728
|
s3 = e3.strstart + S2;
|
|
37653
37729
|
do {
|
|
37654
37730
|
} while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
|
|
37655
37731
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37656
37732
|
}
|
|
37657
|
-
if (e3.match_length >=
|
|
37733
|
+
if (e3.match_length >= x ? (r3 = u._tr_tally(e3, 1, e3.match_length - x), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37658
37734
|
}
|
|
37659
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37735
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O2 : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37660
37736
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37661
|
-
if (o2 !==
|
|
37662
|
-
if (o2 === I2 && (1 === t2 ?
|
|
37737
|
+
if (o2 !== O2 && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O2) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37738
|
+
if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
|
|
37663
37739
|
}
|
|
37664
37740
|
return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
|
|
37665
37741
|
}, r2.deflateEnd = function(e2) {
|
|
37666
37742
|
var t2;
|
|
37667
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37743
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R2(e2, _2) : (e2.state = null, t2 === E2 ? R2(e2, -3) : m2) : _2;
|
|
37668
37744
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37669
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37745
|
+
var r22, n2, i2, s22, a2, o2, h22, u2, l22 = t2.length;
|
|
37670
37746
|
if (!e2 || !e2.state) return _2;
|
|
37671
37747
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37672
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2,
|
|
37673
|
-
for (n2 = r22.strstart, i2 = r22.lookahead - (
|
|
37674
|
-
r22.strstart = n2, r22.lookahead =
|
|
37748
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l22, 0)), r22.wrap = 0, l22 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l22 - r22.w_size, r22.w_size, 0), t2 = u2, l22 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l22, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x; ) {
|
|
37749
|
+
for (n2 = r22.strstart, i2 = r22.lookahead - (x - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
|
|
37750
|
+
r22.strstart = n2, r22.lookahead = x - 1, j2(r22);
|
|
37675
37751
|
}
|
|
37676
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37752
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
|
|
37677
37753
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37678
37754
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37679
37755
|
t.exports = function() {
|
|
@@ -37681,8 +37757,8 @@ function requireJszip_min() {
|
|
|
37681
37757
|
};
|
|
37682
37758
|
}, {}], 48: [function(e, t, r2) {
|
|
37683
37759
|
t.exports = function(e2, t2) {
|
|
37684
|
-
var r22, n, i, s2, a, o, h2,
|
|
37685
|
-
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax,
|
|
37760
|
+
var r22, n, i, s2, a, o, h2, u, l3, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2;
|
|
37761
|
+
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l3 = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
37686
37762
|
e: do {
|
|
37687
37763
|
p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
|
|
37688
37764
|
t: for (; ; ) {
|
|
@@ -37715,32 +37791,32 @@ function requireJszip_min() {
|
|
|
37715
37791
|
break e;
|
|
37716
37792
|
}
|
|
37717
37793
|
if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
|
|
37718
|
-
if (
|
|
37794
|
+
if (l3 < (y2 = k2 - y2) && r22.sane) {
|
|
37719
37795
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37720
37796
|
break e;
|
|
37721
37797
|
}
|
|
37722
|
-
if (S2 = c2, (
|
|
37723
|
-
if (
|
|
37724
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37725
|
-
|
|
37798
|
+
if (S2 = c2, (x = 0) === f2) {
|
|
37799
|
+
if (x += u - y2, y2 < w2) {
|
|
37800
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37801
|
+
x = s2 - k2, S2 = C2;
|
|
37726
37802
|
}
|
|
37727
37803
|
} else if (f2 < y2) {
|
|
37728
|
-
if (
|
|
37729
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37730
|
-
if (
|
|
37731
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37732
|
-
|
|
37804
|
+
if (x += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37805
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37806
|
+
if (x = 0, f2 < w2) {
|
|
37807
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37808
|
+
x = s2 - k2, S2 = C2;
|
|
37733
37809
|
}
|
|
37734
37810
|
}
|
|
37735
|
-
} else if (
|
|
37736
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37737
|
-
|
|
37811
|
+
} else if (x += f2 - y2, y2 < w2) {
|
|
37812
|
+
for (w2 -= y2; C2[s2++] = c2[x++], --y2; ) ;
|
|
37813
|
+
x = s2 - k2, S2 = C2;
|
|
37738
37814
|
}
|
|
37739
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37740
|
-
w2 && (C2[s2++] = S2[
|
|
37815
|
+
for (; 2 < w2; ) C2[s2++] = S2[x++], C2[s2++] = S2[x++], C2[s2++] = S2[x++], w2 -= 3;
|
|
37816
|
+
w2 && (C2[s2++] = S2[x++], 1 < w2 && (C2[s2++] = S2[x++]));
|
|
37741
37817
|
} else {
|
|
37742
|
-
for (
|
|
37743
|
-
w2 && (C2[s2++] = C2[
|
|
37818
|
+
for (x = s2 - k2; C2[s2++] = C2[x++], C2[s2++] = C2[x++], C2[s2++] = C2[x++], 2 < (w2 -= 3); ) ;
|
|
37819
|
+
w2 && (C2[s2++] = C2[x++], 1 < w2 && (C2[s2++] = C2[x++]));
|
|
37744
37820
|
}
|
|
37745
37821
|
break;
|
|
37746
37822
|
}
|
|
@@ -37751,7 +37827,7 @@ function requireJszip_min() {
|
|
|
37751
37827
|
n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
|
|
37752
37828
|
};
|
|
37753
37829
|
}, {}], 49: [function(e, t, r2) {
|
|
37754
|
-
var I2 = e("../utils/common"),
|
|
37830
|
+
var I2 = e("../utils/common"), O2 = e("./adler32"), B2 = e("./crc32"), R2 = e("./inffast"), T = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
|
|
37755
37831
|
function L2(e2) {
|
|
37756
37832
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37757
37833
|
}
|
|
@@ -37770,68 +37846,68 @@ function requireJszip_min() {
|
|
|
37770
37846
|
var r22, n2;
|
|
37771
37847
|
return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r22 = 0, t2 = -t2) : (r22 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U2 : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r22, n2.wbits = t2, o(e2))) : U2;
|
|
37772
37848
|
}
|
|
37773
|
-
function
|
|
37849
|
+
function u(e2, t2) {
|
|
37774
37850
|
var r22, n2;
|
|
37775
37851
|
return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
|
|
37776
37852
|
}
|
|
37777
|
-
var
|
|
37853
|
+
var l3, f2, c2 = true;
|
|
37778
37854
|
function j2(e2) {
|
|
37779
37855
|
if (c2) {
|
|
37780
37856
|
var t2;
|
|
37781
|
-
for (
|
|
37857
|
+
for (l3 = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
|
|
37782
37858
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37783
37859
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37784
37860
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37785
|
-
for (
|
|
37786
|
-
|
|
37861
|
+
for (T(D2, e2.lens, 0, 288, l3, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
37862
|
+
T(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37787
37863
|
}
|
|
37788
|
-
e2.lencode =
|
|
37864
|
+
e2.lencode = l3, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37789
37865
|
}
|
|
37790
37866
|
function Z(e2, t2, r22, n2) {
|
|
37791
37867
|
var i2, s22 = e2.state;
|
|
37792
37868
|
return null === s22.window && (s22.wsize = 1 << s22.wbits, s22.wnext = 0, s22.whave = 0, s22.window = new I2.Buf8(s22.wsize)), n2 >= s22.wsize ? (I2.arraySet(s22.window, t2, r22 - s22.wsize, s22.wsize, 0), s22.wnext = 0, s22.whave = s22.wsize) : (n2 < (i2 = s22.wsize - s22.wnext) && (i2 = n2), I2.arraySet(s22.window, t2, r22 - n2, i2, s22.wnext), (n2 -= i2) ? (I2.arraySet(s22.window, t2, r22 - n2, n2, 0), s22.wnext = n2, s22.whave = s22.wsize) : (s22.wnext += i2, s22.wnext === s22.wsize && (s22.wnext = 0), s22.whave < s22.wsize && (s22.whave += i2))), 0;
|
|
37793
37869
|
}
|
|
37794
37870
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
|
|
37795
|
-
return
|
|
37796
|
-
}, r2.inflateInit2 =
|
|
37797
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37871
|
+
return u(e2, 15);
|
|
37872
|
+
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
37873
|
+
var r22, n2, i2, s22, a2, o2, h22, u2, l22, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
37798
37874
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37799
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in,
|
|
37875
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, f22 = o2, c22 = h22, x = N2;
|
|
37800
37876
|
e: for (; ; ) switch (r22.mode) {
|
|
37801
37877
|
case P2:
|
|
37802
37878
|
if (0 === r22.wrap) {
|
|
37803
37879
|
r22.mode = 13;
|
|
37804
37880
|
break;
|
|
37805
37881
|
}
|
|
37806
|
-
for (;
|
|
37882
|
+
for (; l22 < 16; ) {
|
|
37807
37883
|
if (0 === o2) break e;
|
|
37808
|
-
o2--,
|
|
37884
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37809
37885
|
}
|
|
37810
|
-
if (2 & r22.wrap && 35615 ===
|
|
37811
|
-
E2[r22.check = 0] = 255 &
|
|
37886
|
+
if (2 & r22.wrap && 35615 === u2) {
|
|
37887
|
+
E2[r22.check = 0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l22 = u2 = 0, r22.mode = 2;
|
|
37812
37888
|
break;
|
|
37813
37889
|
}
|
|
37814
|
-
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 &
|
|
37890
|
+
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u2) << 8) + (u2 >> 8)) % 31) {
|
|
37815
37891
|
e2.msg = "incorrect header check", r22.mode = 30;
|
|
37816
37892
|
break;
|
|
37817
37893
|
}
|
|
37818
|
-
if (8 != (15 &
|
|
37894
|
+
if (8 != (15 & u2)) {
|
|
37819
37895
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37820
37896
|
break;
|
|
37821
37897
|
}
|
|
37822
|
-
if (
|
|
37898
|
+
if (l22 -= 4, k2 = 8 + (15 & (u2 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
|
|
37823
37899
|
else if (k2 > r22.wbits) {
|
|
37824
37900
|
e2.msg = "invalid window size", r22.mode = 30;
|
|
37825
37901
|
break;
|
|
37826
37902
|
}
|
|
37827
|
-
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 &
|
|
37903
|
+
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u2 ? 10 : 12, l22 = u2 = 0;
|
|
37828
37904
|
break;
|
|
37829
37905
|
case 2:
|
|
37830
|
-
for (;
|
|
37906
|
+
for (; l22 < 16; ) {
|
|
37831
37907
|
if (0 === o2) break e;
|
|
37832
|
-
o2--,
|
|
37908
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37833
37909
|
}
|
|
37834
|
-
if (r22.flags =
|
|
37910
|
+
if (r22.flags = u2, 8 != (255 & r22.flags)) {
|
|
37835
37911
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37836
37912
|
break;
|
|
37837
37913
|
}
|
|
@@ -37839,26 +37915,26 @@ function requireJszip_min() {
|
|
|
37839
37915
|
e2.msg = "unknown header flags set", r22.mode = 30;
|
|
37840
37916
|
break;
|
|
37841
37917
|
}
|
|
37842
|
-
r22.head && (r22.head.text =
|
|
37918
|
+
r22.head && (r22.head.text = u2 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 3;
|
|
37843
37919
|
case 3:
|
|
37844
|
-
for (;
|
|
37920
|
+
for (; l22 < 32; ) {
|
|
37845
37921
|
if (0 === o2) break e;
|
|
37846
|
-
o2--,
|
|
37922
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37847
37923
|
}
|
|
37848
|
-
r22.head && (r22.head.time =
|
|
37924
|
+
r22.head && (r22.head.time = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, E2[2] = u2 >>> 16 & 255, E2[3] = u2 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l22 = u2 = 0, r22.mode = 4;
|
|
37849
37925
|
case 4:
|
|
37850
|
-
for (;
|
|
37926
|
+
for (; l22 < 16; ) {
|
|
37851
37927
|
if (0 === o2) break e;
|
|
37852
|
-
o2--,
|
|
37928
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37853
37929
|
}
|
|
37854
|
-
r22.head && (r22.head.xflags = 255 &
|
|
37930
|
+
r22.head && (r22.head.xflags = 255 & u2, r22.head.os = u2 >> 8), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0, r22.mode = 5;
|
|
37855
37931
|
case 5:
|
|
37856
37932
|
if (1024 & r22.flags) {
|
|
37857
|
-
for (;
|
|
37933
|
+
for (; l22 < 16; ) {
|
|
37858
37934
|
if (0 === o2) break e;
|
|
37859
|
-
o2--,
|
|
37935
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37860
37936
|
}
|
|
37861
|
-
r22.length =
|
|
37937
|
+
r22.length = u2, r22.head && (r22.head.extra_len = u2), 512 & r22.flags && (E2[0] = 255 & u2, E2[1] = u2 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l22 = u2 = 0;
|
|
37862
37938
|
} else r22.head && (r22.head.extra = null);
|
|
37863
37939
|
r22.mode = 6;
|
|
37864
37940
|
case 6:
|
|
@@ -37880,45 +37956,45 @@ function requireJszip_min() {
|
|
|
37880
37956
|
r22.mode = 9;
|
|
37881
37957
|
case 9:
|
|
37882
37958
|
if (512 & r22.flags) {
|
|
37883
|
-
for (;
|
|
37959
|
+
for (; l22 < 16; ) {
|
|
37884
37960
|
if (0 === o2) break e;
|
|
37885
|
-
o2--,
|
|
37961
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37886
37962
|
}
|
|
37887
|
-
if (
|
|
37963
|
+
if (u2 !== (65535 & r22.check)) {
|
|
37888
37964
|
e2.msg = "header crc mismatch", r22.mode = 30;
|
|
37889
37965
|
break;
|
|
37890
37966
|
}
|
|
37891
|
-
|
|
37967
|
+
l22 = u2 = 0;
|
|
37892
37968
|
}
|
|
37893
37969
|
r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
|
|
37894
37970
|
break;
|
|
37895
37971
|
case 10:
|
|
37896
|
-
for (;
|
|
37972
|
+
for (; l22 < 32; ) {
|
|
37897
37973
|
if (0 === o2) break e;
|
|
37898
|
-
o2--,
|
|
37974
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37899
37975
|
}
|
|
37900
|
-
e2.adler = r22.check = L2(
|
|
37976
|
+
e2.adler = r22.check = L2(u2), l22 = u2 = 0, r22.mode = 11;
|
|
37901
37977
|
case 11:
|
|
37902
|
-
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37978
|
+
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, 2;
|
|
37903
37979
|
e2.adler = r22.check = 1, r22.mode = 12;
|
|
37904
37980
|
case 12:
|
|
37905
37981
|
if (5 === t2 || 6 === t2) break e;
|
|
37906
37982
|
case 13:
|
|
37907
37983
|
if (r22.last) {
|
|
37908
|
-
|
|
37984
|
+
u2 >>>= 7 & l22, l22 -= 7 & l22, r22.mode = 27;
|
|
37909
37985
|
break;
|
|
37910
37986
|
}
|
|
37911
|
-
for (;
|
|
37987
|
+
for (; l22 < 3; ) {
|
|
37912
37988
|
if (0 === o2) break e;
|
|
37913
|
-
o2--,
|
|
37989
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37914
37990
|
}
|
|
37915
|
-
switch (r22.last = 1 &
|
|
37991
|
+
switch (r22.last = 1 & u2, l22 -= 1, 3 & (u2 >>>= 1)) {
|
|
37916
37992
|
case 0:
|
|
37917
37993
|
r22.mode = 14;
|
|
37918
37994
|
break;
|
|
37919
37995
|
case 1:
|
|
37920
37996
|
if (j2(r22), r22.mode = 20, 6 !== t2) break;
|
|
37921
|
-
|
|
37997
|
+
u2 >>>= 2, l22 -= 2;
|
|
37922
37998
|
break e;
|
|
37923
37999
|
case 2:
|
|
37924
38000
|
r22.mode = 17;
|
|
@@ -37926,18 +38002,18 @@ function requireJszip_min() {
|
|
|
37926
38002
|
case 3:
|
|
37927
38003
|
e2.msg = "invalid block type", r22.mode = 30;
|
|
37928
38004
|
}
|
|
37929
|
-
|
|
38005
|
+
u2 >>>= 2, l22 -= 2;
|
|
37930
38006
|
break;
|
|
37931
38007
|
case 14:
|
|
37932
|
-
for (
|
|
38008
|
+
for (u2 >>>= 7 & l22, l22 -= 7 & l22; l22 < 32; ) {
|
|
37933
38009
|
if (0 === o2) break e;
|
|
37934
|
-
o2--,
|
|
38010
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37935
38011
|
}
|
|
37936
|
-
if ((65535 &
|
|
38012
|
+
if ((65535 & u2) != (u2 >>> 16 ^ 65535)) {
|
|
37937
38013
|
e2.msg = "invalid stored block lengths", r22.mode = 30;
|
|
37938
38014
|
break;
|
|
37939
38015
|
}
|
|
37940
|
-
if (r22.length = 65535 &
|
|
38016
|
+
if (r22.length = 65535 & u2, l22 = u2 = 0, r22.mode = 15, 6 === t2) break e;
|
|
37941
38017
|
case 15:
|
|
37942
38018
|
r22.mode = 16;
|
|
37943
38019
|
case 16:
|
|
@@ -37949,59 +38025,59 @@ function requireJszip_min() {
|
|
|
37949
38025
|
r22.mode = 12;
|
|
37950
38026
|
break;
|
|
37951
38027
|
case 17:
|
|
37952
|
-
for (;
|
|
38028
|
+
for (; l22 < 14; ) {
|
|
37953
38029
|
if (0 === o2) break e;
|
|
37954
|
-
o2--,
|
|
38030
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37955
38031
|
}
|
|
37956
|
-
if (r22.nlen = 257 + (31 &
|
|
38032
|
+
if (r22.nlen = 257 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ndist = 1 + (31 & u2), u2 >>>= 5, l22 -= 5, r22.ncode = 4 + (15 & u2), u2 >>>= 4, l22 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
|
|
37957
38033
|
e2.msg = "too many length or distance symbols", r22.mode = 30;
|
|
37958
38034
|
break;
|
|
37959
38035
|
}
|
|
37960
38036
|
r22.have = 0, r22.mode = 18;
|
|
37961
38037
|
case 18:
|
|
37962
38038
|
for (; r22.have < r22.ncode; ) {
|
|
37963
|
-
for (;
|
|
38039
|
+
for (; l22 < 3; ) {
|
|
37964
38040
|
if (0 === o2) break e;
|
|
37965
|
-
o2--,
|
|
38041
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37966
38042
|
}
|
|
37967
|
-
r22.lens[A2[r22.have++]] = 7 &
|
|
38043
|
+
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l22 -= 3;
|
|
37968
38044
|
}
|
|
37969
38045
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
37970
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38046
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x = T(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
37971
38047
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
37972
38048
|
break;
|
|
37973
38049
|
}
|
|
37974
38050
|
r22.have = 0, r22.mode = 19;
|
|
37975
38051
|
case 19:
|
|
37976
38052
|
for (; r22.have < r22.nlen + r22.ndist; ) {
|
|
37977
|
-
for (; g = (C2 = r22.lencode[
|
|
38053
|
+
for (; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
37978
38054
|
if (0 === o2) break e;
|
|
37979
|
-
o2--,
|
|
38055
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37980
38056
|
}
|
|
37981
|
-
if (b2 < 16)
|
|
38057
|
+
if (b2 < 16) u2 >>>= _2, l22 -= _2, r22.lens[r22.have++] = b2;
|
|
37982
38058
|
else {
|
|
37983
38059
|
if (16 === b2) {
|
|
37984
|
-
for (z2 = _2 + 2;
|
|
38060
|
+
for (z2 = _2 + 2; l22 < z2; ) {
|
|
37985
38061
|
if (0 === o2) break e;
|
|
37986
|
-
o2--,
|
|
38062
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37987
38063
|
}
|
|
37988
|
-
if (
|
|
38064
|
+
if (u2 >>>= _2, l22 -= _2, 0 === r22.have) {
|
|
37989
38065
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
37990
38066
|
break;
|
|
37991
38067
|
}
|
|
37992
|
-
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 &
|
|
38068
|
+
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u2), u2 >>>= 2, l22 -= 2;
|
|
37993
38069
|
} else if (17 === b2) {
|
|
37994
|
-
for (z2 = _2 + 3;
|
|
38070
|
+
for (z2 = _2 + 3; l22 < z2; ) {
|
|
37995
38071
|
if (0 === o2) break e;
|
|
37996
|
-
o2--,
|
|
38072
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
37997
38073
|
}
|
|
37998
|
-
|
|
38074
|
+
l22 -= _2, k2 = 0, d2 = 3 + (7 & (u2 >>>= _2)), u2 >>>= 3, l22 -= 3;
|
|
37999
38075
|
} else {
|
|
38000
|
-
for (z2 = _2 + 7;
|
|
38076
|
+
for (z2 = _2 + 7; l22 < z2; ) {
|
|
38001
38077
|
if (0 === o2) break e;
|
|
38002
|
-
o2--,
|
|
38078
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38003
38079
|
}
|
|
38004
|
-
|
|
38080
|
+
l22 -= _2, k2 = 0, d2 = 11 + (127 & (u2 >>>= _2)), u2 >>>= 7, l22 -= 7;
|
|
38005
38081
|
}
|
|
38006
38082
|
if (r22.have + d2 > r22.nlen + r22.ndist) {
|
|
38007
38083
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
@@ -38015,11 +38091,11 @@ function requireJszip_min() {
|
|
|
38015
38091
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38016
38092
|
break;
|
|
38017
38093
|
}
|
|
38018
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38094
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x = T(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x) {
|
|
38019
38095
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38020
38096
|
break;
|
|
38021
38097
|
}
|
|
38022
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38098
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x = T(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x) {
|
|
38023
38099
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38024
38100
|
break;
|
|
38025
38101
|
}
|
|
@@ -38028,21 +38104,21 @@ function requireJszip_min() {
|
|
|
38028
38104
|
r22.mode = 21;
|
|
38029
38105
|
case 21:
|
|
38030
38106
|
if (6 <= o2 && 258 <= h22) {
|
|
38031
|
-
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38107
|
+
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, R2(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l22 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38032
38108
|
break;
|
|
38033
38109
|
}
|
|
38034
|
-
for (r22.back = 0; g = (C2 = r22.lencode[
|
|
38110
|
+
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
38035
38111
|
if (0 === o2) break e;
|
|
38036
|
-
o2--,
|
|
38112
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38037
38113
|
}
|
|
38038
38114
|
if (g && 0 == (240 & g)) {
|
|
38039
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((
|
|
38115
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
|
|
38040
38116
|
if (0 === o2) break e;
|
|
38041
|
-
o2--,
|
|
38117
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38042
38118
|
}
|
|
38043
|
-
|
|
38119
|
+
u2 >>>= v2, l22 -= v2, r22.back += v2;
|
|
38044
38120
|
}
|
|
38045
|
-
if (
|
|
38121
|
+
if (u2 >>>= _2, l22 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
|
|
38046
38122
|
r22.mode = 26;
|
|
38047
38123
|
break;
|
|
38048
38124
|
}
|
|
@@ -38057,37 +38133,37 @@ function requireJszip_min() {
|
|
|
38057
38133
|
r22.extra = 15 & g, r22.mode = 22;
|
|
38058
38134
|
case 22:
|
|
38059
38135
|
if (r22.extra) {
|
|
38060
|
-
for (z2 = r22.extra;
|
|
38136
|
+
for (z2 = r22.extra; l22 < z2; ) {
|
|
38061
38137
|
if (0 === o2) break e;
|
|
38062
|
-
o2--,
|
|
38138
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38063
38139
|
}
|
|
38064
|
-
r22.length +=
|
|
38140
|
+
r22.length += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
|
|
38065
38141
|
}
|
|
38066
38142
|
r22.was = r22.length, r22.mode = 23;
|
|
38067
38143
|
case 23:
|
|
38068
|
-
for (; g = (C2 = r22.distcode[
|
|
38144
|
+
for (; g = (C2 = r22.distcode[u2 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l22); ) {
|
|
38069
38145
|
if (0 === o2) break e;
|
|
38070
|
-
o2--,
|
|
38146
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38071
38147
|
}
|
|
38072
38148
|
if (0 == (240 & g)) {
|
|
38073
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((
|
|
38149
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u2 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l22); ) {
|
|
38074
38150
|
if (0 === o2) break e;
|
|
38075
|
-
o2--,
|
|
38151
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38076
38152
|
}
|
|
38077
|
-
|
|
38153
|
+
u2 >>>= v2, l22 -= v2, r22.back += v2;
|
|
38078
38154
|
}
|
|
38079
|
-
if (
|
|
38155
|
+
if (u2 >>>= _2, l22 -= _2, r22.back += _2, 64 & g) {
|
|
38080
38156
|
e2.msg = "invalid distance code", r22.mode = 30;
|
|
38081
38157
|
break;
|
|
38082
38158
|
}
|
|
38083
38159
|
r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
|
|
38084
38160
|
case 24:
|
|
38085
38161
|
if (r22.extra) {
|
|
38086
|
-
for (z2 = r22.extra;
|
|
38162
|
+
for (z2 = r22.extra; l22 < z2; ) {
|
|
38087
38163
|
if (0 === o2) break e;
|
|
38088
|
-
o2--,
|
|
38164
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38089
38165
|
}
|
|
38090
|
-
r22.offset +=
|
|
38166
|
+
r22.offset += u2 & (1 << r22.extra) - 1, u2 >>>= r22.extra, l22 -= r22.extra, r22.back += r22.extra;
|
|
38091
38167
|
}
|
|
38092
38168
|
if (r22.offset > r22.dmax) {
|
|
38093
38169
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
@@ -38112,35 +38188,35 @@ function requireJszip_min() {
|
|
|
38112
38188
|
break;
|
|
38113
38189
|
case 27:
|
|
38114
38190
|
if (r22.wrap) {
|
|
38115
|
-
for (;
|
|
38191
|
+
for (; l22 < 32; ) {
|
|
38116
38192
|
if (0 === o2) break e;
|
|
38117
|
-
o2--,
|
|
38193
|
+
o2--, u2 |= n2[s22++] << l22, l22 += 8;
|
|
38118
38194
|
}
|
|
38119
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) :
|
|
38195
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O2(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
38120
38196
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38121
38197
|
break;
|
|
38122
38198
|
}
|
|
38123
|
-
|
|
38199
|
+
l22 = u2 = 0;
|
|
38124
38200
|
}
|
|
38125
38201
|
r22.mode = 28;
|
|
38126
38202
|
case 28:
|
|
38127
38203
|
if (r22.wrap && r22.flags) {
|
|
38128
|
-
for (;
|
|
38204
|
+
for (; l22 < 32; ) {
|
|
38129
38205
|
if (0 === o2) break e;
|
|
38130
|
-
o2--,
|
|
38206
|
+
o2--, u2 += n2[s22++] << l22, l22 += 8;
|
|
38131
38207
|
}
|
|
38132
|
-
if (
|
|
38208
|
+
if (u2 !== (4294967295 & r22.total)) {
|
|
38133
38209
|
e2.msg = "incorrect length check", r22.mode = 30;
|
|
38134
38210
|
break;
|
|
38135
38211
|
}
|
|
38136
|
-
|
|
38212
|
+
l22 = u2 = 0;
|
|
38137
38213
|
}
|
|
38138
38214
|
r22.mode = 29;
|
|
38139
38215
|
case 29:
|
|
38140
|
-
|
|
38216
|
+
x = 1;
|
|
38141
38217
|
break e;
|
|
38142
38218
|
case 30:
|
|
38143
|
-
|
|
38219
|
+
x = -3;
|
|
38144
38220
|
break e;
|
|
38145
38221
|
case 31:
|
|
38146
38222
|
return -4;
|
|
@@ -38148,7 +38224,7 @@ function requireJszip_min() {
|
|
|
38148
38224
|
default:
|
|
38149
38225
|
return U2;
|
|
38150
38226
|
}
|
|
38151
|
-
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38227
|
+
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l22, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O2(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x === N2 && (x = -5), x);
|
|
38152
38228
|
}, r2.inflateEnd = function(e2) {
|
|
38153
38229
|
if (!e2 || !e2.state) return U2;
|
|
38154
38230
|
var t2 = e2.state;
|
|
@@ -38158,33 +38234,33 @@ function requireJszip_min() {
|
|
|
38158
38234
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38159
38235
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38160
38236
|
var r22, n2 = t2.length;
|
|
38161
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38237
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O2(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
38162
38238
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38163
38239
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38164
38240
|
var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
38165
38241
|
t.exports = function(e2, t2, r22, n, i, s2, a, o) {
|
|
38166
|
-
var h2,
|
|
38167
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38168
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38169
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38242
|
+
var h2, u, l3, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O2 = new D2.Buf16(16), B2 = new D2.Buf16(16), R2 = null, T = 0;
|
|
38243
|
+
for (b2 = 0; b2 <= 15; b2++) O2[b2] = 0;
|
|
38244
|
+
for (v2 = 0; v2 < n; v2++) O2[t2[r22 + v2]]++;
|
|
38245
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O2[w2]; w2--) ;
|
|
38170
38246
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
|
|
38171
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38172
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38247
|
+
for (y2 = 1; y2 < w2 && 0 === O2[y2]; y2++) ;
|
|
38248
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O2[b2]) < 0) return -1;
|
|
38173
38249
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38174
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38250
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O2[b2];
|
|
38175
38251
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
|
|
38176
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38252
|
+
if (d2 = 0 === e2 ? (A2 = R2 = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R2 = N2, T -= 257, 256) : (A2 = U2, R2 = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l3 = -1, f2 = (C2 = 1 << (x = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38177
38253
|
for (; ; ) {
|
|
38178
|
-
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 =
|
|
38254
|
+
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R2[T + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x; i[c2 + (E2 >> S2) + (u -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
38179
38255
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38180
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38256
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O2[b2]) {
|
|
38181
38257
|
if (b2 === w2) break;
|
|
38182
38258
|
b2 = t2[r22 + a[v2]];
|
|
38183
38259
|
}
|
|
38184
|
-
if (k2 < b2 && (E2 & f2) !==
|
|
38185
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38186
|
-
if (C2 += 1 <<
|
|
38187
|
-
i[
|
|
38260
|
+
if (k2 < b2 && (E2 & f2) !== l3) {
|
|
38261
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x = b2 - S2); x + S2 < w2 && !((z2 -= O2[x + S2]) <= 0); ) x++, z2 <<= 1;
|
|
38262
|
+
if (C2 += 1 << x, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38263
|
+
i[l3 = E2 & f2] = k2 << 24 | x << 16 | c2 - s2 | 0;
|
|
38188
38264
|
}
|
|
38189
38265
|
}
|
|
38190
38266
|
return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38196,7 +38272,7 @@ function requireJszip_min() {
|
|
|
38196
38272
|
function n(e2) {
|
|
38197
38273
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38198
38274
|
}
|
|
38199
|
-
var s2 = 0, a = 29,
|
|
38275
|
+
var s2 = 0, a = 29, u = 256, l3 = u + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l3 + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l3 + 2));
|
|
38200
38276
|
n(z2);
|
|
38201
38277
|
var C2 = new Array(2 * f2);
|
|
38202
38278
|
n(C2);
|
|
@@ -38206,7 +38282,7 @@ function requireJszip_min() {
|
|
|
38206
38282
|
n(A2);
|
|
38207
38283
|
var I2 = new Array(a);
|
|
38208
38284
|
n(I2);
|
|
38209
|
-
var
|
|
38285
|
+
var O2, B2, R2, T = new Array(f2);
|
|
38210
38286
|
function D2(e2, t2, r22, n2, i2) {
|
|
38211
38287
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
|
|
38212
38288
|
}
|
|
@@ -38239,7 +38315,7 @@ function requireJszip_min() {
|
|
|
38239
38315
|
}
|
|
38240
38316
|
function W2(e2) {
|
|
38241
38317
|
var t2;
|
|
38242
|
-
for (t2 = 0; t2 <
|
|
38318
|
+
for (t2 = 0; t2 < l3; t2++) e2.dyn_ltree[2 * t2] = 0;
|
|
38243
38319
|
for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
|
|
38244
38320
|
for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
|
|
38245
38321
|
e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
|
|
@@ -38257,41 +38333,41 @@ function requireJszip_min() {
|
|
|
38257
38333
|
}
|
|
38258
38334
|
function K2(e2, t2, r22) {
|
|
38259
38335
|
var n2, i2, s22, a2, o2 = 0;
|
|
38260
|
-
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) +
|
|
38336
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T[s22], a2)), o2 < e2.last_lit; ) ;
|
|
38261
38337
|
L2(e2, m2, t2);
|
|
38262
38338
|
}
|
|
38263
38339
|
function Y2(e2, t2) {
|
|
38264
|
-
var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems,
|
|
38265
|
-
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] =
|
|
38266
|
-
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] =
|
|
38267
|
-
for (t2.max_code =
|
|
38340
|
+
var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u2 = -1;
|
|
38341
|
+
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u2 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
|
|
38342
|
+
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
|
|
38343
|
+
for (t2.max_code = u2, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
|
|
38268
38344
|
for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
|
|
38269
38345
|
e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
|
|
38270
|
-
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree,
|
|
38346
|
+
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u3 = t3.max_code, l22 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
|
|
38271
38347
|
for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
|
|
38272
|
-
for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3,
|
|
38348
|
+
for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u3 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l22[2 * n3 + 1] + a3)));
|
|
38273
38349
|
if (0 !== m22) {
|
|
38274
38350
|
do {
|
|
38275
38351
|
for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
|
|
38276
38352
|
e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
|
|
38277
38353
|
} while (0 < m22);
|
|
38278
|
-
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; )
|
|
38354
|
+
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u3 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
|
|
38279
38355
|
}
|
|
38280
|
-
})(e2, t2), Z(s22,
|
|
38356
|
+
})(e2, t2), Z(s22, u2, e2.bl_count);
|
|
38281
38357
|
}
|
|
38282
38358
|
function X2(e2, t2, r22) {
|
|
38283
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38284
|
-
for (0 === a2 && (h22 = 138,
|
|
38359
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
|
|
38360
|
+
for (0 === a2 && (h22 = 138, u2 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u2 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
|
|
38285
38361
|
}
|
|
38286
38362
|
function V2(e2, t2, r22) {
|
|
38287
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38288
|
-
for (0 === a2 && (h22 = 138,
|
|
38289
|
-
if (o2 <
|
|
38363
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u2 = 4;
|
|
38364
|
+
for (0 === a2 && (h22 = 138, u2 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
|
|
38365
|
+
if (o2 < u2) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
|
|
38290
38366
|
else 0 !== i2 ? (i2 !== s22 && (L2(e2, i2, e2.bl_tree), o2--), L2(e2, b2, e2.bl_tree), P2(e2, o2 - 3, 2)) : o2 <= 10 ? (L2(e2, v2, e2.bl_tree), P2(e2, o2 - 3, 3)) : (L2(e2, y2, e2.bl_tree), P2(e2, o2 - 11, 7));
|
|
38291
|
-
s22 = i2,
|
|
38367
|
+
s22 = i2, u2 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38292
38368
|
}
|
|
38293
38369
|
}
|
|
38294
|
-
n(
|
|
38370
|
+
n(T);
|
|
38295
38371
|
var q2 = false;
|
|
38296
38372
|
function J2(e2, t2, r22, n2) {
|
|
38297
38373
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38302,23 +38378,23 @@ function requireJszip_min() {
|
|
|
38302
38378
|
q2 || ((function() {
|
|
38303
38379
|
var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
|
|
38304
38380
|
for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38305
|
-
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (
|
|
38306
|
-
for (i2 >>= 7; n2 < f2; n2++) for (
|
|
38381
|
+
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
|
|
38382
|
+
for (i2 >>= 7; n2 < f2; n2++) for (T[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
|
|
38307
38383
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38308
38384
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38309
38385
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38310
38386
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38311
38387
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38312
|
-
for (Z(z2,
|
|
38313
|
-
|
|
38314
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38388
|
+
for (Z(z2, l3 + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38389
|
+
O2 = new D2(z2, w2, u + 1, l3, g), B2 = new D2(C2, k2, 0, f2, g), R2 = new D2(new Array(0), x, 0, c2, p);
|
|
38390
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O2), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R2), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38315
38391
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38316
38392
|
var i2, s22, a2 = 0;
|
|
38317
38393
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
38318
38394
|
var t3, r3 = 4093624447;
|
|
38319
38395
|
for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
|
|
38320
38396
|
if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
|
|
38321
|
-
for (t3 = 32; t3 <
|
|
38397
|
+
for (t3 = 32; t3 < u; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
|
|
38322
38398
|
return o;
|
|
38323
38399
|
})(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
|
|
38324
38400
|
var t3;
|
|
@@ -38330,7 +38406,7 @@ function requireJszip_min() {
|
|
|
38330
38406
|
V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
|
|
38331
38407
|
})(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K2(e2, e2.dyn_ltree, e2.dyn_dtree)), W2(e2), n2 && M2(e2);
|
|
38332
38408
|
}, r2._tr_tally = function(e2, t2, r22) {
|
|
38333
|
-
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] +
|
|
38409
|
+
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
38334
38410
|
}, r2._tr_align = function(e2) {
|
|
38335
38411
|
P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
|
|
38336
38412
|
16 === e3.bi_valid ? (U2(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
|
|
@@ -38344,7 +38420,7 @@ function requireJszip_min() {
|
|
|
38344
38420
|
(function(e2) {
|
|
38345
38421
|
!(function(r22, n) {
|
|
38346
38422
|
if (!r22.setImmediate) {
|
|
38347
|
-
var i, s2, t2, a, o = 1, h2 = {},
|
|
38423
|
+
var i, s2, t2, a, o = 1, h2 = {}, u = false, l3 = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
|
|
38348
38424
|
e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
|
|
38349
38425
|
process$1$1.nextTick(function() {
|
|
38350
38426
|
c2(e4);
|
|
@@ -38362,8 +38438,8 @@ function requireJszip_min() {
|
|
|
38362
38438
|
c2(e4.data);
|
|
38363
38439
|
}, function(e4) {
|
|
38364
38440
|
t2.port2.postMessage(e4);
|
|
38365
|
-
}) :
|
|
38366
|
-
var t3 =
|
|
38441
|
+
}) : l3 && "onreadystatechange" in l3.createElement("script") ? (s2 = l3.documentElement, function(e4) {
|
|
38442
|
+
var t3 = l3.createElement("script");
|
|
38367
38443
|
t3.onreadystatechange = function() {
|
|
38368
38444
|
c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
|
|
38369
38445
|
}, s2.appendChild(t3);
|
|
@@ -38380,11 +38456,11 @@ function requireJszip_min() {
|
|
|
38380
38456
|
delete h2[e4];
|
|
38381
38457
|
}
|
|
38382
38458
|
function c2(e4) {
|
|
38383
|
-
if (
|
|
38459
|
+
if (u) setTimeout(c2, 0, e4);
|
|
38384
38460
|
else {
|
|
38385
38461
|
var t3 = h2[e4];
|
|
38386
38462
|
if (t3) {
|
|
38387
|
-
|
|
38463
|
+
u = true;
|
|
38388
38464
|
try {
|
|
38389
38465
|
!(function(e5) {
|
|
38390
38466
|
var t4 = e5.callback, r3 = e5.args;
|
|
@@ -38406,7 +38482,7 @@ function requireJszip_min() {
|
|
|
38406
38482
|
}
|
|
38407
38483
|
})(t3);
|
|
38408
38484
|
} finally {
|
|
38409
|
-
f2(e4),
|
|
38485
|
+
f2(e4), u = false;
|
|
38410
38486
|
}
|
|
38411
38487
|
}
|
|
38412
38488
|
}
|
|
@@ -39387,17 +39463,17 @@ function deepActiveElement(doc2) {
|
|
|
39387
39463
|
elt = elt.shadowRoot.activeElement;
|
|
39388
39464
|
return elt;
|
|
39389
39465
|
}
|
|
39390
|
-
function caretFromPoint(doc2,
|
|
39466
|
+
function caretFromPoint(doc2, x, y2) {
|
|
39391
39467
|
if (doc2.caretPositionFromPoint) {
|
|
39392
39468
|
try {
|
|
39393
|
-
let pos = doc2.caretPositionFromPoint(
|
|
39469
|
+
let pos = doc2.caretPositionFromPoint(x, y2);
|
|
39394
39470
|
if (pos)
|
|
39395
39471
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
39396
39472
|
} catch (_2) {
|
|
39397
39473
|
}
|
|
39398
39474
|
}
|
|
39399
39475
|
if (doc2.caretRangeFromPoint) {
|
|
39400
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
39476
|
+
let range2 = doc2.caretRangeFromPoint(x, y2);
|
|
39401
39477
|
if (range2)
|
|
39402
39478
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
39403
39479
|
}
|
|
@@ -39496,8 +39572,8 @@ function scrollRectIntoView(view, rect, startDOM) {
|
|
|
39496
39572
|
function storeScrollPos(view) {
|
|
39497
39573
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
39498
39574
|
let refDOM, refTop;
|
|
39499
|
-
for (let
|
|
39500
|
-
let dom = view.root.elementFromPoint(
|
|
39575
|
+
for (let x = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
39576
|
+
let dom = view.root.elementFromPoint(x, y2);
|
|
39501
39577
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
39502
39578
|
continue;
|
|
39503
39579
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -39793,8 +39869,8 @@ function coordsAtPos(view, pos, side) {
|
|
|
39793
39869
|
function flattenV(rect, left2) {
|
|
39794
39870
|
if (rect.width == 0)
|
|
39795
39871
|
return rect;
|
|
39796
|
-
let
|
|
39797
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
39872
|
+
let x = left2 ? rect.left : rect.right;
|
|
39873
|
+
return { top: rect.top, bottom: rect.bottom, left: x, right: x };
|
|
39798
39874
|
}
|
|
39799
39875
|
function flattenH(rect, top2) {
|
|
39800
39876
|
if (rect.height == 0)
|
|
@@ -44801,10 +44877,10 @@ const createTimeoutClass = (clearFunction) => class TT {
|
|
|
44801
44877
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
44802
44878
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
44803
44879
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
44804
|
-
const sum0to256 = (
|
|
44805
|
-
const sum1to256 = (
|
|
44806
|
-
const sigma0to256 = (
|
|
44807
|
-
const sigma1to256 = (
|
|
44880
|
+
const sum0to256 = (x) => rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
|
|
44881
|
+
const sum1to256 = (x) => rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
|
|
44882
|
+
const sigma0to256 = (x) => rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
|
|
44883
|
+
const sigma1to256 = (x) => rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
|
|
44808
44884
|
const K = new Uint32Array([
|
|
44809
44885
|
1116352408,
|
|
44810
44886
|
1899447441,
|
|
@@ -45633,9 +45709,9 @@ const equalAttrs = (pattrs, yattrs) => {
|
|
|
45633
45709
|
let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
|
|
45634
45710
|
for (let i = 0; i < keys2.length && eq2; i++) {
|
|
45635
45711
|
const key2 = keys2[i];
|
|
45636
|
-
const
|
|
45712
|
+
const l3 = pattrs[key2];
|
|
45637
45713
|
const r2 = yattrs[key2];
|
|
45638
|
-
eq2 = key2 === "ychange" ||
|
|
45714
|
+
eq2 = key2 === "ychange" || l3 === r2 || isObject$1(l3) && isObject$1(r2) && equalAttrs(l3, r2);
|
|
45639
45715
|
}
|
|
45640
45716
|
return eq2;
|
|
45641
45717
|
};
|
|
@@ -49720,10 +49796,12 @@ const _ExtensionService = class _ExtensionService2 {
|
|
|
49720
49796
|
type: getNodeType(extension.name, this.schema)
|
|
49721
49797
|
};
|
|
49722
49798
|
const addNodeView = getExtensionConfigField(extension, "addNodeView", context);
|
|
49723
|
-
if (!addNodeView) return
|
|
49799
|
+
if (!addNodeView) return null;
|
|
49800
|
+
const nodeViewFunction = addNodeView();
|
|
49801
|
+
if (!nodeViewFunction) return null;
|
|
49724
49802
|
const nodeview = (node, _view, getPos, decorations) => {
|
|
49725
49803
|
const htmlAttributes = Attribute2.getAttributesToRender(node, extensionAttrs);
|
|
49726
|
-
return
|
|
49804
|
+
return nodeViewFunction({
|
|
49727
49805
|
editor,
|
|
49728
49806
|
node,
|
|
49729
49807
|
getPos,
|
|
@@ -49733,7 +49811,7 @@ const _ExtensionService = class _ExtensionService2 {
|
|
|
49733
49811
|
});
|
|
49734
49812
|
};
|
|
49735
49813
|
return [extension.name, nodeview];
|
|
49736
|
-
});
|
|
49814
|
+
}).filter(Boolean);
|
|
49737
49815
|
return Object.fromEntries(entries);
|
|
49738
49816
|
}
|
|
49739
49817
|
};
|
|
@@ -50356,6 +50434,7 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
|
|
|
50356
50434
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
50357
50435
|
ydoc = ydoc || editor.options.ydoc;
|
|
50358
50436
|
if (!ydoc) return;
|
|
50437
|
+
if (!editor || editor.isDestroyed) return;
|
|
50359
50438
|
const metaMap = ydoc.getMap("meta");
|
|
50360
50439
|
const docxValue = metaMap.get("docx");
|
|
50361
50440
|
let docx = [];
|
|
@@ -51839,6 +51918,16 @@ const Collaboration = Extension.create({
|
|
|
51839
51918
|
});
|
|
51840
51919
|
});
|
|
51841
51920
|
return [syncPlugin];
|
|
51921
|
+
},
|
|
51922
|
+
addCommands() {
|
|
51923
|
+
return {
|
|
51924
|
+
addImageToCollaboration: ({ mediaPath, fileData }) => () => {
|
|
51925
|
+
if (!this.options.ydoc || !mediaPath || !fileData) return false;
|
|
51926
|
+
const mediaMap = this.options.ydoc.getMap("media");
|
|
51927
|
+
mediaMap.set(mediaPath, fileData);
|
|
51928
|
+
return true;
|
|
51929
|
+
}
|
|
51930
|
+
};
|
|
51842
51931
|
}
|
|
51843
51932
|
});
|
|
51844
51933
|
const createSyncPlugin = (ydoc, editor) => {
|
|
@@ -53691,7 +53780,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53691
53780
|
{ default: remarkStringify },
|
|
53692
53781
|
{ default: remarkGfm }
|
|
53693
53782
|
] = await Promise.all([
|
|
53694
|
-
Promise.resolve().then(() => require("./index-
|
|
53783
|
+
Promise.resolve().then(() => require("./index-cOCdMICZ-DD6pWThu.cjs")),
|
|
53695
53784
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
53696
53785
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
53697
53786
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -55778,16 +55867,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
|
|
|
55778
55867
|
const { state: state2, dom } = view;
|
|
55779
55868
|
const { selection } = state2;
|
|
55780
55869
|
const containerRect = dom.getBoundingClientRect();
|
|
55781
|
-
let
|
|
55870
|
+
let x, y2;
|
|
55782
55871
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
55783
|
-
|
|
55872
|
+
x = eventLocation.clientX - containerRect.left;
|
|
55784
55873
|
y2 = eventLocation.clientY - containerRect.top;
|
|
55785
55874
|
} else {
|
|
55786
55875
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
55787
|
-
|
|
55876
|
+
x = cursorCoords.left - containerRect.left;
|
|
55788
55877
|
y2 = cursorCoords.top - containerRect.top;
|
|
55789
55878
|
}
|
|
55790
|
-
return { left:
|
|
55879
|
+
return { left: x, top: y2 };
|
|
55791
55880
|
}
|
|
55792
55881
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
55793
55882
|
const SlashMenu = Extension.create({
|
|
@@ -56066,17 +56155,17 @@ class StructuredContentViewBase {
|
|
|
56066
56155
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
56067
56156
|
return;
|
|
56068
56157
|
}
|
|
56069
|
-
let
|
|
56158
|
+
let x = 0;
|
|
56070
56159
|
let y2 = 0;
|
|
56071
56160
|
if (this.dom !== dragHandle) {
|
|
56072
56161
|
const domBox = this.dom.getBoundingClientRect();
|
|
56073
56162
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
56074
56163
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
56075
56164
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
56076
|
-
|
|
56165
|
+
x = handleBox.x - domBox.x + offsetX;
|
|
56077
56166
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
56078
56167
|
}
|
|
56079
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
56168
|
+
event.dataTransfer?.setDragImage(this.dom, x, y2);
|
|
56080
56169
|
const pos = this.getPos();
|
|
56081
56170
|
if (typeof pos !== "number") {
|
|
56082
56171
|
return;
|
|
@@ -58983,6 +59072,9 @@ function orderedListSync(editor) {
|
|
|
58983
59072
|
}
|
|
58984
59073
|
});
|
|
58985
59074
|
}
|
|
59075
|
+
const shouldSkipNodeView = (editor) => {
|
|
59076
|
+
return editor.options.isHeadless;
|
|
59077
|
+
};
|
|
58986
59078
|
const ListItem = Node$1.create({
|
|
58987
59079
|
name: "listItem",
|
|
58988
59080
|
content: "paragraph* block*",
|
|
@@ -59009,9 +59101,11 @@ const ListItem = Node$1.create({
|
|
|
59009
59101
|
},
|
|
59010
59102
|
/**
|
|
59011
59103
|
* Important: The listItem node uses a custom node view.
|
|
59012
|
-
*
|
|
59104
|
+
* Skip node view in headless mode for performance.
|
|
59105
|
+
* @returns {import('@core/NodeView.js').NodeView|null}
|
|
59013
59106
|
*/
|
|
59014
59107
|
addNodeView() {
|
|
59108
|
+
if (shouldSkipNodeView(this.editor)) return null;
|
|
59015
59109
|
return ({ node, editor, getPos, decorations }) => {
|
|
59016
59110
|
return new ListItemNodeView(node, getPos, decorations, editor);
|
|
59017
59111
|
};
|
|
@@ -64162,24 +64256,24 @@ function parseToRgba(color) {
|
|
|
64162
64256
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
64163
64257
|
if (reducedHexMatch) {
|
|
64164
64258
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
64165
|
-
return [...arr.slice(0, 3).map((
|
|
64259
|
+
return [...arr.slice(0, 3).map((x) => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
64166
64260
|
}
|
|
64167
64261
|
const hexMatch = hexRegex$1.exec(normalizedColor);
|
|
64168
64262
|
if (hexMatch) {
|
|
64169
64263
|
const arr = Array.from(hexMatch).slice(1);
|
|
64170
|
-
return [...arr.slice(0, 3).map((
|
|
64264
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
64171
64265
|
}
|
|
64172
64266
|
const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
|
|
64173
64267
|
if (rgbaMatch) {
|
|
64174
64268
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
64175
|
-
return [...arr.slice(0, 3).map((
|
|
64269
|
+
return [...arr.slice(0, 3).map((x) => parseInt(x, 10)), parseFloat(arr[3] || "1")];
|
|
64176
64270
|
}
|
|
64177
64271
|
const hslaMatch = hslaRegex$1.exec(normalizedColor);
|
|
64178
64272
|
if (hslaMatch) {
|
|
64179
|
-
const [h2, s2,
|
|
64273
|
+
const [h2, s2, l3, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
64180
64274
|
if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
|
|
64181
|
-
if (guard(0, 100,
|
|
64182
|
-
return [...hslToRgb(h2, s2,
|
|
64275
|
+
if (guard(0, 100, l3) !== l3) throw new ColorError$1(color);
|
|
64276
|
+
return [...hslToRgb(h2, s2, l3), Number.isNaN(a) ? 1 : a];
|
|
64183
64277
|
}
|
|
64184
64278
|
throw new ColorError$1(color);
|
|
64185
64279
|
}
|
|
@@ -64191,7 +64285,7 @@ function hash$2(str) {
|
|
|
64191
64285
|
}
|
|
64192
64286
|
return (hash2 >>> 0) % 2341;
|
|
64193
64287
|
}
|
|
64194
|
-
const colorToInt = (
|
|
64288
|
+
const colorToInt = (x) => parseInt(x.replace(/_/g, ""), 36);
|
|
64195
64289
|
const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
|
|
64196
64290
|
const key2 = colorToInt(next.substring(0, 3));
|
|
64197
64291
|
const hex2 = colorToInt(next.substring(3)).toString(16);
|
|
@@ -64218,12 +64312,12 @@ const roundColor = (color) => {
|
|
|
64218
64312
|
return Math.round(color * 255);
|
|
64219
64313
|
};
|
|
64220
64314
|
const hslToRgb = (hue, saturation, lightness) => {
|
|
64221
|
-
let
|
|
64315
|
+
let l3 = lightness / 100;
|
|
64222
64316
|
if (saturation === 0) {
|
|
64223
|
-
return [
|
|
64317
|
+
return [l3, l3, l3].map(roundColor);
|
|
64224
64318
|
}
|
|
64225
64319
|
const huePrime = (hue % 360 + 360) % 360 / 60;
|
|
64226
|
-
const chroma = (1 - Math.abs(2 *
|
|
64320
|
+
const chroma = (1 - Math.abs(2 * l3 - 1)) * (saturation / 100);
|
|
64227
64321
|
const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
64228
64322
|
let red = 0;
|
|
64229
64323
|
let green = 0;
|
|
@@ -64247,7 +64341,7 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64247
64341
|
red = chroma;
|
|
64248
64342
|
blue = secondComponent;
|
|
64249
64343
|
}
|
|
64250
|
-
const lightnessModification =
|
|
64344
|
+
const lightnessModification = l3 - chroma / 2;
|
|
64251
64345
|
const finalRed = red + lightnessModification;
|
|
64252
64346
|
const finalGreen = green + lightnessModification;
|
|
64253
64347
|
const finalBlue = blue + lightnessModification;
|
|
@@ -64255,8 +64349,8 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64255
64349
|
};
|
|
64256
64350
|
function toHex(color) {
|
|
64257
64351
|
const [r2, g, b2, a] = parseToRgba(color);
|
|
64258
|
-
let hex2 = (
|
|
64259
|
-
const h2 = guard(0, 255,
|
|
64352
|
+
let hex2 = (x) => {
|
|
64353
|
+
const h2 = guard(0, 255, x).toString(16);
|
|
64260
64354
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
64261
64355
|
};
|
|
64262
64356
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
|
|
@@ -66360,10 +66454,10 @@ const Image = Node$1.create({
|
|
|
66360
66454
|
let minX = 0;
|
|
66361
66455
|
let minY = 0;
|
|
66362
66456
|
let maxY = 0;
|
|
66363
|
-
attrs.polygon.forEach(([
|
|
66364
|
-
if (floatRight &&
|
|
66365
|
-
if (
|
|
66366
|
-
if (
|
|
66457
|
+
attrs.polygon.forEach(([x, y2]) => {
|
|
66458
|
+
if (floatRight && x < horizontalOffset) horizontalOffset = x;
|
|
66459
|
+
if (x > maxX) maxX = x;
|
|
66460
|
+
if (x < minX) minX = x;
|
|
66367
66461
|
if (y2 > maxY) maxY = y2;
|
|
66368
66462
|
if (y2 < minY) minY = y2;
|
|
66369
66463
|
});
|
|
@@ -66372,7 +66466,7 @@ const Image = Node$1.create({
|
|
|
66372
66466
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
66373
66467
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
66374
66468
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
66375
|
-
const points = attrs.polygon.map(([
|
|
66469
|
+
const points = attrs.polygon.map(([x, y2]) => `${horizontalOffset + x * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
66376
66470
|
style2 += `shape-outside: polygon(${points});`;
|
|
66377
66471
|
}
|
|
66378
66472
|
break;
|
|
@@ -69737,42 +69831,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
|
|
|
69737
69831
|
function r(t) {
|
|
69738
69832
|
if (!t) return null;
|
|
69739
69833
|
let e = {};
|
|
69740
|
-
return M.forEach((
|
|
69741
|
-
let L2 = t[
|
|
69834
|
+
return M.forEach((l3) => {
|
|
69835
|
+
let L2 = t[l3];
|
|
69742
69836
|
if (L2 !== void 0)
|
|
69743
|
-
if (
|
|
69837
|
+
if (l3 === "strokeWidth") {
|
|
69744
69838
|
if (typeof L2 == "number") e.strokeWidth = L2;
|
|
69745
69839
|
else if (typeof L2 == "string") {
|
|
69746
69840
|
let o = Number(L2);
|
|
69747
69841
|
Number.isFinite(o) && (e.strokeWidth = o);
|
|
69748
69842
|
}
|
|
69749
|
-
} else typeof L2 == "string" && (e[
|
|
69843
|
+
} else typeof L2 == "string" && (e[l3] = L2);
|
|
69750
69844
|
}), Object.keys(e).length ? e : null;
|
|
69751
69845
|
}
|
|
69752
69846
|
function A(t, e) {
|
|
69753
|
-
let
|
|
69754
|
-
if (!e) return
|
|
69847
|
+
let l3 = t.map((o) => ({ ...o }));
|
|
69848
|
+
if (!e) return l3;
|
|
69755
69849
|
let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
|
|
69756
|
-
return
|
|
69850
|
+
return l3.map((o, i) => {
|
|
69757
69851
|
let n = L2(o, i);
|
|
69758
69852
|
return n ? { ...o, ...n } : o;
|
|
69759
69853
|
});
|
|
69760
69854
|
}
|
|
69761
69855
|
function f(t) {
|
|
69762
|
-
let { preset: e, styleOverrides:
|
|
69856
|
+
let { preset: e, styleOverrides: l3 } = t;
|
|
69763
69857
|
if (!e) throw new Error("createPresetShape requires a preset name.");
|
|
69764
69858
|
let L2 = d[e];
|
|
69765
69859
|
if (!L2) throw new Error(`Unknown preset shape: ${e}`);
|
|
69766
|
-
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths,
|
|
69860
|
+
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l3) };
|
|
69767
69861
|
}
|
|
69768
69862
|
function k(t) {
|
|
69769
|
-
let e = f(t),
|
|
69863
|
+
let e = f(t), l3 = e.paths.map((L2) => {
|
|
69770
69864
|
let o = [`d="${L2.d}"`];
|
|
69771
69865
|
return L2.fill !== void 0 && o.push(`fill="${L2.fill}"`), L2.stroke !== void 0 && o.push(`stroke="${L2.stroke}"`), L2.strokeWidth !== void 0 && o.push(`stroke-width="${L2.strokeWidth}"`), L2.fillRule !== void 0 && o.push(`fill-rule="${L2.fillRule}"`), L2.clipRule !== void 0 && o.push(`clip-rule="${L2.clipRule}"`), ` <path ${o.join(" ")} />`;
|
|
69772
69866
|
}).join(`
|
|
69773
69867
|
`);
|
|
69774
69868
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
|
|
69775
|
-
${
|
|
69869
|
+
${l3}
|
|
69776
69870
|
</svg>`;
|
|
69777
69871
|
}
|
|
69778
69872
|
class VectorShapeView {
|
|
@@ -71506,7 +71600,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71506
71600
|
}
|
|
71507
71601
|
var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
|
|
71508
71602
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
71509
|
-
var
|
|
71603
|
+
var x = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
71510
71604
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
71511
71605
|
var width = clientRect2.width / scaleX;
|
|
71512
71606
|
var height = clientRect2.height / scaleY;
|
|
@@ -71514,10 +71608,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71514
71608
|
width,
|
|
71515
71609
|
height,
|
|
71516
71610
|
top: y2,
|
|
71517
|
-
right:
|
|
71611
|
+
right: x + width,
|
|
71518
71612
|
bottom: y2 + height,
|
|
71519
|
-
left:
|
|
71520
|
-
x
|
|
71613
|
+
left: x,
|
|
71614
|
+
x,
|
|
71521
71615
|
y: y2
|
|
71522
71616
|
};
|
|
71523
71617
|
}
|
|
@@ -71718,25 +71812,25 @@ var unsetSides = {
|
|
|
71718
71812
|
left: "auto"
|
|
71719
71813
|
};
|
|
71720
71814
|
function roundOffsetsByDPR(_ref, win) {
|
|
71721
|
-
var
|
|
71815
|
+
var x = _ref.x, y2 = _ref.y;
|
|
71722
71816
|
var dpr = win.devicePixelRatio || 1;
|
|
71723
71817
|
return {
|
|
71724
|
-
x: round$1(
|
|
71818
|
+
x: round$1(x * dpr) / dpr || 0,
|
|
71725
71819
|
y: round$1(y2 * dpr) / dpr || 0
|
|
71726
71820
|
};
|
|
71727
71821
|
}
|
|
71728
71822
|
function mapToStyles(_ref2) {
|
|
71729
71823
|
var _Object$assign2;
|
|
71730
71824
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
71731
|
-
var _offsets$x = offsets.x,
|
|
71825
|
+
var _offsets$x = offsets.x, x = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
71732
71826
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
71733
|
-
x
|
|
71827
|
+
x,
|
|
71734
71828
|
y: y2
|
|
71735
71829
|
}) : {
|
|
71736
|
-
x
|
|
71830
|
+
x,
|
|
71737
71831
|
y: y2
|
|
71738
71832
|
};
|
|
71739
|
-
|
|
71833
|
+
x = _ref3.x;
|
|
71740
71834
|
y2 = _ref3.y;
|
|
71741
71835
|
var hasX = offsets.hasOwnProperty("x");
|
|
71742
71836
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -71770,27 +71864,27 @@ function mapToStyles(_ref2) {
|
|
|
71770
71864
|
// $FlowFixMe[prop-missing]
|
|
71771
71865
|
offsetParent[widthProp]
|
|
71772
71866
|
);
|
|
71773
|
-
|
|
71774
|
-
|
|
71867
|
+
x -= offsetX - popperRect.width;
|
|
71868
|
+
x *= gpuAcceleration ? 1 : -1;
|
|
71775
71869
|
}
|
|
71776
71870
|
}
|
|
71777
71871
|
var commonStyles = Object.assign({
|
|
71778
71872
|
position
|
|
71779
71873
|
}, adaptive && unsetSides);
|
|
71780
71874
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
71781
|
-
x
|
|
71875
|
+
x,
|
|
71782
71876
|
y: y2
|
|
71783
71877
|
}, getWindow$1(popper2)) : {
|
|
71784
|
-
x
|
|
71878
|
+
x,
|
|
71785
71879
|
y: y2
|
|
71786
71880
|
};
|
|
71787
|
-
|
|
71881
|
+
x = _ref4.x;
|
|
71788
71882
|
y2 = _ref4.y;
|
|
71789
71883
|
if (gpuAcceleration) {
|
|
71790
71884
|
var _Object$assign;
|
|
71791
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
71885
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y2 + "px)" : "translate3d(" + x + "px, " + y2 + "px, 0)", _Object$assign));
|
|
71792
71886
|
}
|
|
71793
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
71887
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
71794
71888
|
}
|
|
71795
71889
|
function computeStyles(_ref5) {
|
|
71796
71890
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -71904,21 +71998,21 @@ function getViewportRect$1(element, strategy) {
|
|
|
71904
71998
|
var visualViewport = win.visualViewport;
|
|
71905
71999
|
var width = html.clientWidth;
|
|
71906
72000
|
var height = html.clientHeight;
|
|
71907
|
-
var
|
|
72001
|
+
var x = 0;
|
|
71908
72002
|
var y2 = 0;
|
|
71909
72003
|
if (visualViewport) {
|
|
71910
72004
|
width = visualViewport.width;
|
|
71911
72005
|
height = visualViewport.height;
|
|
71912
72006
|
var layoutViewport = isLayoutViewport();
|
|
71913
72007
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
71914
|
-
|
|
72008
|
+
x = visualViewport.offsetLeft;
|
|
71915
72009
|
y2 = visualViewport.offsetTop;
|
|
71916
72010
|
}
|
|
71917
72011
|
}
|
|
71918
72012
|
return {
|
|
71919
72013
|
width,
|
|
71920
72014
|
height,
|
|
71921
|
-
x:
|
|
72015
|
+
x: x + getWindowScrollBarX$1(element),
|
|
71922
72016
|
y: y2
|
|
71923
72017
|
};
|
|
71924
72018
|
}
|
|
@@ -71929,15 +72023,15 @@ function getDocumentRect$1(element) {
|
|
|
71929
72023
|
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
71930
72024
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
71931
72025
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
71932
|
-
var
|
|
72026
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
71933
72027
|
var y2 = -winScroll.scrollTop;
|
|
71934
72028
|
if (getComputedStyle$2(body || html).direction === "rtl") {
|
|
71935
|
-
|
|
72029
|
+
x += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
71936
72030
|
}
|
|
71937
72031
|
return {
|
|
71938
72032
|
width,
|
|
71939
72033
|
height,
|
|
71940
|
-
x
|
|
72034
|
+
x,
|
|
71941
72035
|
y: y2
|
|
71942
72036
|
};
|
|
71943
72037
|
}
|
|
@@ -72314,9 +72408,9 @@ function offset(_ref2) {
|
|
|
72314
72408
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
72315
72409
|
return acc;
|
|
72316
72410
|
}, {});
|
|
72317
|
-
var _data$state$placement = data[state2.placement],
|
|
72411
|
+
var _data$state$placement = data[state2.placement], x = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
72318
72412
|
if (state2.modifiersData.popperOffsets != null) {
|
|
72319
|
-
state2.modifiersData.popperOffsets.x +=
|
|
72413
|
+
state2.modifiersData.popperOffsets.x += x;
|
|
72320
72414
|
state2.modifiersData.popperOffsets.y += y2;
|
|
72321
72415
|
}
|
|
72322
72416
|
state2.modifiersData[name] = data;
|
|
@@ -74266,7 +74360,7 @@ function getPaddingObject(padding) {
|
|
|
74266
74360
|
}
|
|
74267
74361
|
function rectToClientRect(rect) {
|
|
74268
74362
|
const {
|
|
74269
|
-
x
|
|
74363
|
+
x,
|
|
74270
74364
|
y: y2,
|
|
74271
74365
|
width,
|
|
74272
74366
|
height
|
|
@@ -74275,10 +74369,10 @@ function rectToClientRect(rect) {
|
|
|
74275
74369
|
width,
|
|
74276
74370
|
height,
|
|
74277
74371
|
top: y2,
|
|
74278
|
-
left:
|
|
74279
|
-
right:
|
|
74372
|
+
left: x,
|
|
74373
|
+
right: x + width,
|
|
74280
74374
|
bottom: y2 + height,
|
|
74281
|
-
x
|
|
74375
|
+
x,
|
|
74282
74376
|
y: y2
|
|
74283
74377
|
};
|
|
74284
74378
|
}
|
|
@@ -74352,7 +74446,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74352
74446
|
strategy
|
|
74353
74447
|
});
|
|
74354
74448
|
let {
|
|
74355
|
-
x
|
|
74449
|
+
x,
|
|
74356
74450
|
y: y2
|
|
74357
74451
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
74358
74452
|
let statefulPlacement = placement;
|
|
@@ -74369,7 +74463,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74369
74463
|
data,
|
|
74370
74464
|
reset
|
|
74371
74465
|
} = await fn2({
|
|
74372
|
-
x
|
|
74466
|
+
x,
|
|
74373
74467
|
y: y2,
|
|
74374
74468
|
initialPlacement: placement,
|
|
74375
74469
|
placement: statefulPlacement,
|
|
@@ -74382,7 +74476,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74382
74476
|
floating
|
|
74383
74477
|
}
|
|
74384
74478
|
});
|
|
74385
|
-
|
|
74479
|
+
x = nextX != null ? nextX : x;
|
|
74386
74480
|
y2 = nextY != null ? nextY : y2;
|
|
74387
74481
|
middlewareData = {
|
|
74388
74482
|
...middlewareData,
|
|
@@ -74405,7 +74499,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74405
74499
|
}) : reset.rects;
|
|
74406
74500
|
}
|
|
74407
74501
|
({
|
|
74408
|
-
x
|
|
74502
|
+
x,
|
|
74409
74503
|
y: y2
|
|
74410
74504
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
74411
74505
|
}
|
|
@@ -74413,7 +74507,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74413
74507
|
}
|
|
74414
74508
|
}
|
|
74415
74509
|
return {
|
|
74416
|
-
x
|
|
74510
|
+
x,
|
|
74417
74511
|
y: y2,
|
|
74418
74512
|
placement: statefulPlacement,
|
|
74419
74513
|
strategy,
|
|
@@ -74426,7 +74520,7 @@ async function detectOverflow(state2, options) {
|
|
|
74426
74520
|
options = {};
|
|
74427
74521
|
}
|
|
74428
74522
|
const {
|
|
74429
|
-
x
|
|
74523
|
+
x,
|
|
74430
74524
|
y: y2,
|
|
74431
74525
|
platform: platform2,
|
|
74432
74526
|
rects,
|
|
@@ -74450,7 +74544,7 @@ async function detectOverflow(state2, options) {
|
|
|
74450
74544
|
strategy
|
|
74451
74545
|
}));
|
|
74452
74546
|
const rect = elementContext === "floating" ? {
|
|
74453
|
-
x
|
|
74547
|
+
x,
|
|
74454
74548
|
y: y2,
|
|
74455
74549
|
width: rects.floating.width,
|
|
74456
74550
|
height: rects.floating.height
|
|
@@ -74719,16 +74813,16 @@ function getScale(element) {
|
|
|
74719
74813
|
height,
|
|
74720
74814
|
$: $2
|
|
74721
74815
|
} = getCssDimensions(domElement);
|
|
74722
|
-
let
|
|
74816
|
+
let x = ($2 ? round(rect.width) : rect.width) / width;
|
|
74723
74817
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
74724
|
-
if (!
|
|
74725
|
-
|
|
74818
|
+
if (!x || !Number.isFinite(x)) {
|
|
74819
|
+
x = 1;
|
|
74726
74820
|
}
|
|
74727
74821
|
if (!y2 || !Number.isFinite(y2)) {
|
|
74728
74822
|
y2 = 1;
|
|
74729
74823
|
}
|
|
74730
74824
|
return {
|
|
74731
|
-
x
|
|
74825
|
+
x,
|
|
74732
74826
|
y: y2
|
|
74733
74827
|
};
|
|
74734
74828
|
}
|
|
@@ -74772,7 +74866,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74772
74866
|
}
|
|
74773
74867
|
}
|
|
74774
74868
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
74775
|
-
let
|
|
74869
|
+
let x = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
74776
74870
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
74777
74871
|
let width = clientRect2.width / scale.x;
|
|
74778
74872
|
let height = clientRect2.height / scale.y;
|
|
@@ -74787,11 +74881,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74787
74881
|
const css = getComputedStyle$1(currentIFrame);
|
|
74788
74882
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
74789
74883
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
74790
|
-
|
|
74884
|
+
x *= iframeScale.x;
|
|
74791
74885
|
y2 *= iframeScale.y;
|
|
74792
74886
|
width *= iframeScale.x;
|
|
74793
74887
|
height *= iframeScale.y;
|
|
74794
|
-
|
|
74888
|
+
x += left2;
|
|
74795
74889
|
y2 += top2;
|
|
74796
74890
|
currentWin = getWindow(currentIFrame);
|
|
74797
74891
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -74800,7 +74894,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74800
74894
|
return rectToClientRect({
|
|
74801
74895
|
width,
|
|
74802
74896
|
height,
|
|
74803
|
-
x
|
|
74897
|
+
x,
|
|
74804
74898
|
y: y2
|
|
74805
74899
|
});
|
|
74806
74900
|
}
|
|
@@ -74813,10 +74907,10 @@ function getWindowScrollBarX(element, rect) {
|
|
|
74813
74907
|
}
|
|
74814
74908
|
function getHTMLOffset(documentElement, scroll) {
|
|
74815
74909
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
74816
|
-
const
|
|
74910
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
74817
74911
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
74818
74912
|
return {
|
|
74819
|
-
x
|
|
74913
|
+
x,
|
|
74820
74914
|
y: y2
|
|
74821
74915
|
};
|
|
74822
74916
|
}
|
|
@@ -74868,15 +74962,15 @@ function getDocumentRect(element) {
|
|
|
74868
74962
|
const body = element.ownerDocument.body;
|
|
74869
74963
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
74870
74964
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
74871
|
-
let
|
|
74965
|
+
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
74872
74966
|
const y2 = -scroll.scrollTop;
|
|
74873
74967
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
74874
|
-
|
|
74968
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
74875
74969
|
}
|
|
74876
74970
|
return {
|
|
74877
74971
|
width,
|
|
74878
74972
|
height,
|
|
74879
|
-
x
|
|
74973
|
+
x,
|
|
74880
74974
|
y: y2
|
|
74881
74975
|
};
|
|
74882
74976
|
}
|
|
@@ -74887,14 +74981,14 @@ function getViewportRect(element, strategy) {
|
|
|
74887
74981
|
const visualViewport = win.visualViewport;
|
|
74888
74982
|
let width = html.clientWidth;
|
|
74889
74983
|
let height = html.clientHeight;
|
|
74890
|
-
let
|
|
74984
|
+
let x = 0;
|
|
74891
74985
|
let y2 = 0;
|
|
74892
74986
|
if (visualViewport) {
|
|
74893
74987
|
width = visualViewport.width;
|
|
74894
74988
|
height = visualViewport.height;
|
|
74895
74989
|
const visualViewportBased = isWebKit();
|
|
74896
74990
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
74897
|
-
|
|
74991
|
+
x = visualViewport.offsetLeft;
|
|
74898
74992
|
y2 = visualViewport.offsetTop;
|
|
74899
74993
|
}
|
|
74900
74994
|
}
|
|
@@ -74914,7 +75008,7 @@ function getViewportRect(element, strategy) {
|
|
|
74914
75008
|
return {
|
|
74915
75009
|
width,
|
|
74916
75010
|
height,
|
|
74917
|
-
x
|
|
75011
|
+
x,
|
|
74918
75012
|
y: y2
|
|
74919
75013
|
};
|
|
74920
75014
|
}
|
|
@@ -74926,12 +75020,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
74926
75020
|
const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
|
|
74927
75021
|
const width = element.clientWidth * scale.x;
|
|
74928
75022
|
const height = element.clientHeight * scale.y;
|
|
74929
|
-
const
|
|
75023
|
+
const x = left2 * scale.x;
|
|
74930
75024
|
const y2 = top2 * scale.y;
|
|
74931
75025
|
return {
|
|
74932
75026
|
width,
|
|
74933
75027
|
height,
|
|
74934
|
-
x
|
|
75028
|
+
x,
|
|
74935
75029
|
y: y2
|
|
74936
75030
|
};
|
|
74937
75031
|
}
|
|
@@ -75051,10 +75145,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
75051
75145
|
setLeftRTLScrollbarOffset();
|
|
75052
75146
|
}
|
|
75053
75147
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
75054
|
-
const
|
|
75148
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
75055
75149
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
75056
75150
|
return {
|
|
75057
|
-
x
|
|
75151
|
+
x,
|
|
75058
75152
|
y: y2,
|
|
75059
75153
|
width: rect.width,
|
|
75060
75154
|
height: rect.height
|
|
@@ -75916,22 +76010,22 @@ function createFloatingSeparator(separator, editor) {
|
|
|
75916
76010
|
const rect = elements.reference.getBoundingClientRect();
|
|
75917
76011
|
const containerRect = editorElement.getBoundingClientRect();
|
|
75918
76012
|
const scaleFactor = getScaleFactor(editorElement);
|
|
75919
|
-
const
|
|
76013
|
+
const x = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
75920
76014
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
75921
76015
|
const width = Math.round(rect.width / scaleFactor);
|
|
75922
76016
|
const height = Math.round(rect.height / scaleFactor);
|
|
75923
76017
|
return {
|
|
75924
|
-
x
|
|
76018
|
+
x,
|
|
75925
76019
|
y: y2,
|
|
75926
76020
|
data: { width, height }
|
|
75927
76021
|
};
|
|
75928
76022
|
}
|
|
75929
76023
|
}
|
|
75930
76024
|
]
|
|
75931
|
-
}).then(({ x
|
|
76025
|
+
}).then(({ x, y: y2, middlewareData }) => {
|
|
75932
76026
|
Object.assign(floatingSeparator.style, {
|
|
75933
76027
|
top: `${y2}px`,
|
|
75934
|
-
left: `${
|
|
76028
|
+
left: `${x}px`,
|
|
75935
76029
|
width: `${middlewareData.copy.width}px`,
|
|
75936
76030
|
height: `${middlewareData.copy.height}px`,
|
|
75937
76031
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -78024,11 +78118,11 @@ function hsv2rgb(h2, s2, v2) {
|
|
|
78024
78118
|
let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
|
|
78025
78119
|
return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
|
|
78026
78120
|
}
|
|
78027
|
-
function hsl2rgb(h2, s2,
|
|
78121
|
+
function hsl2rgb(h2, s2, l3) {
|
|
78028
78122
|
s2 /= 100;
|
|
78029
|
-
|
|
78030
|
-
let a = s2 * Math.min(
|
|
78031
|
-
let f2 = (n, k2 = (n + h2 / 30) % 12) =>
|
|
78123
|
+
l3 /= 100;
|
|
78124
|
+
let a = s2 * Math.min(l3, 1 - l3);
|
|
78125
|
+
let f2 = (n, k2 = (n + h2 / 30) % 12) => l3 - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
|
|
78032
78126
|
return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
|
|
78033
78127
|
}
|
|
78034
78128
|
const prefix = "^\\s*";
|
|
@@ -78124,8 +78218,8 @@ function rgba(color) {
|
|
|
78124
78218
|
} else if (color in colors) {
|
|
78125
78219
|
return rgba(colors[color]);
|
|
78126
78220
|
} else if (hslRegex.test(color) || hslaRegex.test(color)) {
|
|
78127
|
-
const [h2, s2,
|
|
78128
|
-
return [...hsl2rgb(h2, s2,
|
|
78221
|
+
const [h2, s2, l3, a] = hsla(color);
|
|
78222
|
+
return [...hsl2rgb(h2, s2, l3), a];
|
|
78129
78223
|
} else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
|
|
78130
78224
|
const [h2, s2, v2, a] = hsva(color);
|
|
78131
78225
|
return [...hsv2rgb(h2, s2, v2), a];
|
|
@@ -78924,14 +79018,14 @@ function ensureViewBoundingRect() {
|
|
|
78924
79018
|
}
|
|
78925
79019
|
return viewMeasurer.getBoundingClientRect();
|
|
78926
79020
|
}
|
|
78927
|
-
function getPointRect(
|
|
79021
|
+
function getPointRect(x, y2) {
|
|
78928
79022
|
const viewRect = ensureViewBoundingRect();
|
|
78929
79023
|
return {
|
|
78930
79024
|
top: y2,
|
|
78931
|
-
left:
|
|
79025
|
+
left: x,
|
|
78932
79026
|
height: 0,
|
|
78933
79027
|
width: 0,
|
|
78934
|
-
right: viewRect.width -
|
|
79028
|
+
right: viewRect.width - x,
|
|
78935
79029
|
bottom: viewRect.height - y2
|
|
78936
79030
|
};
|
|
78937
79031
|
}
|
|
@@ -79769,8 +79863,8 @@ const VFollower = vue.defineComponent({
|
|
|
79769
79863
|
if (follower === null)
|
|
79770
79864
|
return;
|
|
79771
79865
|
const target = VBinder.targetRef;
|
|
79772
|
-
const { x
|
|
79773
|
-
const targetRect =
|
|
79866
|
+
const { x, y: y2, overlap } = props;
|
|
79867
|
+
const targetRect = x !== void 0 && y2 !== void 0 ? getPointRect(x, y2) : getRect(target);
|
|
79774
79868
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
79775
79869
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
79776
79870
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -79940,8 +80034,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
|
|
|
79940
80034
|
return ResizeObserverSize2;
|
|
79941
80035
|
})();
|
|
79942
80036
|
var DOMRectReadOnly = (function() {
|
|
79943
|
-
function DOMRectReadOnly2(
|
|
79944
|
-
this.x =
|
|
80037
|
+
function DOMRectReadOnly2(x, y2, width, height) {
|
|
80038
|
+
this.x = x;
|
|
79945
80039
|
this.y = y2;
|
|
79946
80040
|
this.width = width;
|
|
79947
80041
|
this.height = height;
|
|
@@ -79952,8 +80046,8 @@ var DOMRectReadOnly = (function() {
|
|
|
79952
80046
|
return freeze(this);
|
|
79953
80047
|
}
|
|
79954
80048
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
79955
|
-
var _a2 = this,
|
|
79956
|
-
return { x
|
|
80049
|
+
var _a2 = this, x = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
80050
|
+
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
79957
80051
|
};
|
|
79958
80052
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
79959
80053
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -83787,10 +83881,10 @@ function getFirstAvailableNode(nodes) {
|
|
|
83787
83881
|
}
|
|
83788
83882
|
function rawGetNext(node, loop) {
|
|
83789
83883
|
const sibs = node.siblings;
|
|
83790
|
-
const
|
|
83884
|
+
const l3 = sibs.length;
|
|
83791
83885
|
const { index: index2 } = node;
|
|
83792
83886
|
if (loop) {
|
|
83793
|
-
return sibs[(index2 + 1) %
|
|
83887
|
+
return sibs[(index2 + 1) % l3];
|
|
83794
83888
|
} else {
|
|
83795
83889
|
if (index2 === sibs.length - 1)
|
|
83796
83890
|
return null;
|
|
@@ -83846,10 +83940,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
|
|
|
83846
83940
|
}
|
|
83847
83941
|
function rawGetPrev(node, loop) {
|
|
83848
83942
|
const sibs = node.siblings;
|
|
83849
|
-
const
|
|
83943
|
+
const l3 = sibs.length;
|
|
83850
83944
|
const { index: index2 } = node;
|
|
83851
83945
|
if (loop) {
|
|
83852
|
-
return sibs[(index2 - 1 +
|
|
83946
|
+
return sibs[(index2 - 1 + l3) % l3];
|
|
83853
83947
|
} else {
|
|
83854
83948
|
if (index2 === 0)
|
|
83855
83949
|
return null;
|
|
@@ -87573,7 +87667,7 @@ function requireEventemitter3() {
|
|
|
87573
87667
|
var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
|
|
87574
87668
|
if (!handlers2) return [];
|
|
87575
87669
|
if (handlers2.fn) return [handlers2.fn];
|
|
87576
|
-
for (var i2 = 0,
|
|
87670
|
+
for (var i2 = 0, l3 = handlers2.length, ee = new Array(l3); i2 < l3; i2++) {
|
|
87577
87671
|
ee[i2] = handlers2[i2].fn;
|
|
87578
87672
|
}
|
|
87579
87673
|
return ee;
|