@harbour-enterprises/superdoc 0.28.3 → 0.28.4
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-QTV3RJM1.cjs → PdfViewer-CfUwzBbx.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DUpLlOgk.es.js → PdfViewer-FhoWTpo9.es.js} +1 -1
- package/dist/chunks/{index-CuXB3dyN.cjs → index-C3gwy96O.cjs} +3 -3
- package/dist/chunks/{index-B3rVM2bJ-B62R9mgx.es.js → index-CEL3ujoV-BXzhXCnT.es.js} +1 -1
- package/dist/chunks/{index-B3rVM2bJ-BgYPFhrh.cjs → index-CEL3ujoV-C85AsK84.cjs} +1 -1
- package/dist/chunks/{index-DKtyoTAq.es.js → index-CQbyD7vC.es.js} +3 -3
- package/dist/chunks/{super-editor.es-BKCxu5-_.cjs → super-editor.es-BQCukgDh.cjs} +791 -736
- package/dist/chunks/{super-editor.es-BjTZa-cJ.es.js → super-editor.es-rFPLjn7D.es.js} +791 -736
- 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-CMtyH2w0.js → converter-BkMCDOKg.js} +429 -385
- package/dist/super-editor/chunks/{docx-zipper-Pgf9i5kI.js → docx-zipper-CPrVIeS5.js} +1 -1
- package/dist/super-editor/chunks/{editor-C3KgN3zx.js → editor-D2rTPB17.js} +15 -4
- package/dist/super-editor/chunks/{index-B3rVM2bJ.js → index-CEL3ujoV.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-TXkIPPvk.js → toolbar-EGiGMLTV.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.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 +555 -500
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -5
|
@@ -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 x2 = a.length;
|
|
437
437
|
let y2 = b2.length;
|
|
438
|
-
for (let i = 0, len = Math.min(
|
|
438
|
+
for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
|
|
439
439
|
if (a[i] !== b2[i]) {
|
|
440
|
-
|
|
440
|
+
x2 = a[i];
|
|
441
441
|
y2 = b2[i];
|
|
442
442
|
break;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
if (
|
|
446
|
-
if (y2 <
|
|
445
|
+
if (x2 < y2) return -1;
|
|
446
|
+
if (y2 < x2) 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 x2 = thisEnd - thisStart;
|
|
696
696
|
let y2 = end2 - start2;
|
|
697
|
-
const len = Math.min(
|
|
697
|
+
const len = Math.min(x2, 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
|
+
x2 = thisCopy[i];
|
|
703
703
|
y2 = targetCopy[i];
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
if (
|
|
708
|
-
if (y2 <
|
|
707
|
+
if (x2 < y2) return -1;
|
|
708
|
+
if (y2 < x2) 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(x2) {
|
|
1799
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
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 R = typeof Reflect === "object" ? Reflect : null;
|
|
1808
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.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 (R && typeof R.ownKeys === "function") {
|
|
1813
|
+
ReflectOwnKeys = R.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(x2) {
|
|
2204
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
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 x2 = a.length;
|
|
2786
2786
|
let y2 = b2.length;
|
|
2787
|
-
for (let i2 = 0, len2 = Math.min(
|
|
2787
|
+
for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
|
|
2788
2788
|
if (a[i2] !== b2[i2]) {
|
|
2789
|
-
|
|
2789
|
+
x2 = a[i2];
|
|
2790
2790
|
y2 = b2[i2];
|
|
2791
2791
|
break;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
|
-
if (
|
|
2795
|
-
if (y2 <
|
|
2794
|
+
if (x2 < y2) return -1;
|
|
2795
|
+
if (y2 < x2) 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 x2 = thisEnd - thisStart;
|
|
3045
3045
|
let y2 = end2 - start2;
|
|
3046
|
-
const len2 = Math.min(
|
|
3046
|
+
const len2 = Math.min(x2, 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
|
+
x2 = thisCopy[i2];
|
|
3052
3052
|
y2 = targetCopy[i2];
|
|
3053
3053
|
break;
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
if (
|
|
3057
|
-
if (y2 <
|
|
3056
|
+
if (x2 < y2) return -1;
|
|
3057
|
+
if (y2 < x2) 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(O) {
|
|
4630
|
+
return reflectGetProto(O);
|
|
4631
|
+
} : originalGetProto ? function getProto2(O) {
|
|
4632
|
+
if (!O || typeof O !== "object" && typeof O !== "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(O);
|
|
4636
|
+
} : getDunderProto ? function getProto2(O) {
|
|
4637
|
+
return getDunderProto(O);
|
|
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(x2) {
|
|
5316
|
+
return toStr.call(x2) === "[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(x3) {
|
|
5926
|
+
if (x3 === "%%") return "%";
|
|
5927
|
+
if (i >= len) return x3;
|
|
5928
|
+
switch (x3) {
|
|
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 x3;
|
|
5941
5941
|
}
|
|
5942
5942
|
});
|
|
5943
|
-
for (var
|
|
5944
|
-
if (isNull(
|
|
5945
|
-
str += " " +
|
|
5943
|
+
for (var x2 = args[i]; i < len; x2 = args[++i]) {
|
|
5944
|
+
if (isNull(x2) || !isObject2(x2)) {
|
|
5945
|
+
str += " " + x2;
|
|
5946
5946
|
} else {
|
|
5947
|
-
str += " " + inspect(
|
|
5947
|
+
str += " " + inspect(x2);
|
|
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, l = value.length; i < l; ++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 l = state2.bufferedRequestCount;
|
|
7260
|
+
var buffer2 = new Array(l);
|
|
7261
7261
|
var holder = state2.corkedRequestsFree;
|
|
7262
7262
|
holder.entry = entry;
|
|
7263
7263
|
var count = 0;
|
|
@@ -8807,9 +8807,9 @@ function require_stream_readable() {
|
|
|
8807
8807
|
return from2(Readable, iterable, opts);
|
|
8808
8808
|
};
|
|
8809
8809
|
}
|
|
8810
|
-
function indexOf(xs,
|
|
8811
|
-
for (var i = 0,
|
|
8812
|
-
if (xs[i] ===
|
|
8810
|
+
function indexOf(xs, x2) {
|
|
8811
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
8812
|
+
if (xs[i] === x2) return i;
|
|
8813
8813
|
}
|
|
8814
8814
|
return -1;
|
|
8815
8815
|
}
|
|
@@ -9188,7 +9188,7 @@ function requireSax() {
|
|
|
9188
9188
|
function checkBufferLength(parser) {
|
|
9189
9189
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
9190
9190
|
var maxActual = 0;
|
|
9191
|
-
for (var i = 0,
|
|
9191
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
9192
9192
|
var len = parser[buffers[i]].length;
|
|
9193
9193
|
if (len > maxAllowed) {
|
|
9194
9194
|
switch (buffers[i]) {
|
|
@@ -9213,7 +9213,7 @@ function requireSax() {
|
|
|
9213
9213
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
9214
9214
|
}
|
|
9215
9215
|
function clearBuffers(parser) {
|
|
9216
|
-
for (var i = 0,
|
|
9216
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
9217
9217
|
parser[buffers[i]] = "";
|
|
9218
9218
|
}
|
|
9219
9219
|
}
|
|
@@ -9267,27 +9267,27 @@ function requireSax() {
|
|
|
9267
9267
|
this._parser = new SAXParser(strict, opt);
|
|
9268
9268
|
this.writable = true;
|
|
9269
9269
|
this.readable = true;
|
|
9270
|
-
var
|
|
9270
|
+
var me2 = this;
|
|
9271
9271
|
this._parser.onend = function() {
|
|
9272
|
-
|
|
9272
|
+
me2.emit("end");
|
|
9273
9273
|
};
|
|
9274
9274
|
this._parser.onerror = function(er) {
|
|
9275
|
-
|
|
9276
|
-
|
|
9275
|
+
me2.emit("error", er);
|
|
9276
|
+
me2._parser.error = null;
|
|
9277
9277
|
};
|
|
9278
9278
|
this._decoder = null;
|
|
9279
9279
|
streamWraps.forEach(function(ev) {
|
|
9280
|
-
Object.defineProperty(
|
|
9280
|
+
Object.defineProperty(me2, "on" + ev, {
|
|
9281
9281
|
get: function() {
|
|
9282
|
-
return
|
|
9282
|
+
return me2._parser["on" + ev];
|
|
9283
9283
|
},
|
|
9284
9284
|
set: function(h2) {
|
|
9285
9285
|
if (!h2) {
|
|
9286
|
-
|
|
9287
|
-
|
|
9286
|
+
me2.removeAllListeners(ev);
|
|
9287
|
+
me2._parser["on" + ev] = h2;
|
|
9288
9288
|
return h2;
|
|
9289
9289
|
}
|
|
9290
|
-
|
|
9290
|
+
me2.on(ev, h2);
|
|
9291
9291
|
},
|
|
9292
9292
|
enumerable: true,
|
|
9293
9293
|
configurable: false
|
|
@@ -9319,15 +9319,15 @@ function requireSax() {
|
|
|
9319
9319
|
return true;
|
|
9320
9320
|
};
|
|
9321
9321
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9322
|
-
var
|
|
9323
|
-
if (!
|
|
9324
|
-
|
|
9322
|
+
var me2 = this;
|
|
9323
|
+
if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9324
|
+
me2._parser["on" + ev] = function() {
|
|
9325
9325
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9326
9326
|
args.splice(0, 0, ev);
|
|
9327
|
-
|
|
9327
|
+
me2.emit.apply(me2, args);
|
|
9328
9328
|
};
|
|
9329
9329
|
}
|
|
9330
|
-
return Stream.prototype.on.call(
|
|
9330
|
+
return Stream.prototype.on.call(me2, ev, handler2);
|
|
9331
9331
|
};
|
|
9332
9332
|
var CDATA = "[CDATA[";
|
|
9333
9333
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9833,7 +9833,7 @@ function requireSax() {
|
|
|
9833
9833
|
});
|
|
9834
9834
|
});
|
|
9835
9835
|
}
|
|
9836
|
-
for (var i = 0,
|
|
9836
|
+
for (var i = 0, l = parser.attribList.length; i < l; i++) {
|
|
9837
9837
|
var nv = parser.attribList[i];
|
|
9838
9838
|
var name = nv[0];
|
|
9839
9839
|
var value = nv[1];
|
|
@@ -9919,9 +9919,9 @@ function requireSax() {
|
|
|
9919
9919
|
var tag = parser.tag = parser.tags.pop();
|
|
9920
9920
|
parser.tagName = parser.tag.name;
|
|
9921
9921
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9922
|
-
var
|
|
9922
|
+
var x2 = {};
|
|
9923
9923
|
for (var i in tag.ns) {
|
|
9924
|
-
|
|
9924
|
+
x2[i] = tag.ns[i];
|
|
9925
9925
|
}
|
|
9926
9926
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9927
9927
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11401,8 +11401,8 @@ function v4(options, buf, offset2) {
|
|
|
11401
11401
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11402
11402
|
return unsafeStringify(rnds);
|
|
11403
11403
|
}
|
|
11404
|
-
function getDefaultExportFromCjs(
|
|
11405
|
-
return
|
|
11404
|
+
function getDefaultExportFromCjs(x2) {
|
|
11405
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
11406
11406
|
}
|
|
11407
11407
|
const CRC_TABLE = new Int32Array([
|
|
11408
11408
|
0,
|
|
@@ -15218,8 +15218,8 @@ function polygonToObj(polygonNode) {
|
|
|
15218
15218
|
const points = [];
|
|
15219
15219
|
polygonNode.elements.forEach((element) => {
|
|
15220
15220
|
if (["wp:start", "wp:lineTo"].includes(element.name)) {
|
|
15221
|
-
const { x, y: y2 } = element.attributes;
|
|
15222
|
-
points.push([polygonUnitsToPixels(
|
|
15221
|
+
const { x: x2, y: y2 } = element.attributes;
|
|
15222
|
+
points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
|
|
15223
15223
|
}
|
|
15224
15224
|
});
|
|
15225
15225
|
if (points.length > 1) {
|
|
@@ -15242,13 +15242,13 @@ function objToPolygon(points) {
|
|
|
15242
15242
|
elements: []
|
|
15243
15243
|
};
|
|
15244
15244
|
points.forEach((point, index2) => {
|
|
15245
|
-
const [
|
|
15245
|
+
const [x2, y2] = point;
|
|
15246
15246
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15247
15247
|
const pointNode = {
|
|
15248
15248
|
name: tagName,
|
|
15249
15249
|
type: tagName,
|
|
15250
15250
|
attributes: {
|
|
15251
|
-
x: pixelsToPolygonUnits(
|
|
15251
|
+
x: pixelsToPolygonUnits(x2),
|
|
15252
15252
|
y: pixelsToPolygonUnits(y2)
|
|
15253
15253
|
}
|
|
15254
15254
|
};
|
|
@@ -22875,7 +22875,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22875
22875
|
const right2 = Math.max(start2.right, end2.right);
|
|
22876
22876
|
const width = right2 - left2;
|
|
22877
22877
|
const height = bottom2 - top2;
|
|
22878
|
-
const
|
|
22878
|
+
const x2 = left2;
|
|
22879
22879
|
const y2 = top2;
|
|
22880
22880
|
const data = {
|
|
22881
22881
|
top: top2,
|
|
@@ -22884,7 +22884,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22884
22884
|
right: right2,
|
|
22885
22885
|
width,
|
|
22886
22886
|
height,
|
|
22887
|
-
x,
|
|
22887
|
+
x: x2,
|
|
22888
22888
|
y: y2
|
|
22889
22889
|
};
|
|
22890
22890
|
return {
|
|
@@ -22973,39 +22973,39 @@ function createDocFromHTML(content, schema, options = {}) {
|
|
|
22973
22973
|
function L() {
|
|
22974
22974
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
22975
22975
|
}
|
|
22976
|
-
var
|
|
22977
|
-
function G(
|
|
22978
|
-
|
|
22976
|
+
var T = L();
|
|
22977
|
+
function G(u3) {
|
|
22978
|
+
T = u3;
|
|
22979
22979
|
}
|
|
22980
|
-
var
|
|
22981
|
-
function h(
|
|
22982
|
-
let t = typeof
|
|
22980
|
+
var I = { exec: () => null };
|
|
22981
|
+
function h(u3, e = "") {
|
|
22982
|
+
let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i) => {
|
|
22983
22983
|
let s2 = typeof i == "string" ? i : i.source;
|
|
22984
22984
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
22985
22985
|
}, getRegex: () => new RegExp(t, e) };
|
|
22986
22986
|
return n;
|
|
22987
22987
|
}
|
|
22988
|
-
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: (
|
|
22989
|
-
]`).replace("lheading",
|
|
22990
|
-
var
|
|
22991
|
-
function w(
|
|
22988
|
+
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: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie$2).replace(/bull/g, F).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(), we = h(ie$2).replace(/bull/g, F).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).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]*?(?:-->|$))/, $e = 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(), ae = h(j).replace("hr", E).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", ae).getRegex(), K$1 = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).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(), Le = { ...K$1, lheading: we, table: re, paragraph: h(j).replace("hr", E).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() }, Me = { ...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: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
|
|
22989
|
+
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = 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(), Qe = 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]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).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: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Le, pedantic: Me }, M$1 = { normal: X, gfm: N, breaks: Xe, pedantic: We };
|
|
22990
|
+
var Je = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (u3) => Je[u3];
|
|
22991
|
+
function w(u3, e) {
|
|
22992
22992
|
if (e) {
|
|
22993
|
-
if (m.escapeTest.test(
|
|
22994
|
-
} else if (m.escapeTestNoEncode.test(
|
|
22995
|
-
return
|
|
22993
|
+
if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
|
|
22994
|
+
} else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
|
|
22995
|
+
return u3;
|
|
22996
22996
|
}
|
|
22997
|
-
function J(
|
|
22997
|
+
function J(u3) {
|
|
22998
22998
|
try {
|
|
22999
|
-
|
|
22999
|
+
u3 = encodeURI(u3).replace(m.percentDecode, "%");
|
|
23000
23000
|
} catch {
|
|
23001
23001
|
return null;
|
|
23002
23002
|
}
|
|
23003
|
-
return
|
|
23003
|
+
return u3;
|
|
23004
23004
|
}
|
|
23005
|
-
function V(
|
|
23006
|
-
let t =
|
|
23007
|
-
let a = false,
|
|
23008
|
-
for (; --
|
|
23005
|
+
function V(u3, e) {
|
|
23006
|
+
let t = u3.replace(m.findPipe, (i, s2, o) => {
|
|
23007
|
+
let a = false, l = s2;
|
|
23008
|
+
for (; --l >= 0 && o[l] === "\\"; ) a = !a;
|
|
23009
23009
|
return a ? "|" : " |";
|
|
23010
23010
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
23011
23011
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -23013,33 +23013,33 @@ function V(l3, e) {
|
|
|
23013
23013
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
23014
23014
|
return n;
|
|
23015
23015
|
}
|
|
23016
|
-
function z(
|
|
23017
|
-
let n =
|
|
23016
|
+
function z(u3, e, t) {
|
|
23017
|
+
let n = u3.length;
|
|
23018
23018
|
if (n === 0) return "";
|
|
23019
23019
|
let r2 = 0;
|
|
23020
23020
|
for (; r2 < n; ) {
|
|
23021
|
-
let i =
|
|
23021
|
+
let i = u3.charAt(n - r2 - 1);
|
|
23022
23022
|
if (i === e && true) r2++;
|
|
23023
23023
|
else break;
|
|
23024
23024
|
}
|
|
23025
|
-
return
|
|
23025
|
+
return u3.slice(0, n - r2);
|
|
23026
23026
|
}
|
|
23027
|
-
function
|
|
23028
|
-
if (
|
|
23027
|
+
function fe(u3, e) {
|
|
23028
|
+
if (u3.indexOf(e[1]) === -1) return -1;
|
|
23029
23029
|
let t = 0;
|
|
23030
|
-
for (let n = 0; n <
|
|
23031
|
-
else if (
|
|
23032
|
-
else if (
|
|
23030
|
+
for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
|
|
23031
|
+
else if (u3[n] === e[0]) t++;
|
|
23032
|
+
else if (u3[n] === e[1] && (t--, t < 0)) return n;
|
|
23033
23033
|
return t > 0 ? -2 : -1;
|
|
23034
23034
|
}
|
|
23035
|
-
function
|
|
23036
|
-
let i = e.href, s2 = e.title || null, o =
|
|
23035
|
+
function me(u3, e, t, n, r2) {
|
|
23036
|
+
let i = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23037
23037
|
n.state.inLink = true;
|
|
23038
|
-
let a = { type:
|
|
23038
|
+
let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23039
23039
|
return n.state.inLink = false, a;
|
|
23040
23040
|
}
|
|
23041
|
-
function
|
|
23042
|
-
let n =
|
|
23041
|
+
function Ve(u3, e, t) {
|
|
23042
|
+
let n = u3.match(t.other.indentCodeCompensation);
|
|
23043
23043
|
if (n === null) return e;
|
|
23044
23044
|
let r2 = n[1];
|
|
23045
23045
|
return e.split(`
|
|
@@ -23056,7 +23056,7 @@ var y = class {
|
|
|
23056
23056
|
__publicField$2(this, "options");
|
|
23057
23057
|
__publicField$2(this, "rules");
|
|
23058
23058
|
__publicField$2(this, "lexer");
|
|
23059
|
-
this.options = e ||
|
|
23059
|
+
this.options = e || T;
|
|
23060
23060
|
}
|
|
23061
23061
|
space(e) {
|
|
23062
23062
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23073,7 +23073,7 @@ var y = class {
|
|
|
23073
23073
|
fences(e) {
|
|
23074
23074
|
let t = this.rules.block.fences.exec(e);
|
|
23075
23075
|
if (t) {
|
|
23076
|
-
let n = t[0], r2 =
|
|
23076
|
+
let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
|
|
23077
23077
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23078
23078
|
}
|
|
23079
23079
|
}
|
|
@@ -23100,32 +23100,32 @@ var y = class {
|
|
|
23100
23100
|
`).split(`
|
|
23101
23101
|
`), r2 = "", i = "", s2 = [];
|
|
23102
23102
|
for (; n.length > 0; ) {
|
|
23103
|
-
let o = false, a = [],
|
|
23104
|
-
for (
|
|
23105
|
-
else if (!o) a.push(n[
|
|
23103
|
+
let o = false, a = [], l;
|
|
23104
|
+
for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
|
|
23105
|
+
else if (!o) a.push(n[l]);
|
|
23106
23106
|
else break;
|
|
23107
|
-
n = n.slice(
|
|
23108
|
-
let
|
|
23109
|
-
`),
|
|
23107
|
+
n = n.slice(l);
|
|
23108
|
+
let c2 = a.join(`
|
|
23109
|
+
`), p = c2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23110
23110
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23111
23111
|
r2 = r2 ? `${r2}
|
|
23112
|
-
${
|
|
23113
|
-
${
|
|
23114
|
-
let
|
|
23115
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
23116
|
-
let
|
|
23117
|
-
if (
|
|
23118
|
-
if (
|
|
23119
|
-
let
|
|
23112
|
+
${c2}` : c2, i = i ? `${i}
|
|
23113
|
+
${p}` : p;
|
|
23114
|
+
let g = this.lexer.state.top;
|
|
23115
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(p, s2, true), this.lexer.state.top = g, n.length === 0) break;
|
|
23116
|
+
let d2 = s2.at(-1);
|
|
23117
|
+
if (d2?.type === "code") break;
|
|
23118
|
+
if (d2?.type === "blockquote") {
|
|
23119
|
+
let R = d2, f2 = R.raw + `
|
|
23120
23120
|
` + n.join(`
|
|
23121
|
-
`),
|
|
23122
|
-
s2[s2.length - 1] =
|
|
23121
|
+
`), O = this.blockquote(f2);
|
|
23122
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
|
|
23123
23123
|
break;
|
|
23124
|
-
} else if (
|
|
23125
|
-
let
|
|
23124
|
+
} else if (d2?.type === "list") {
|
|
23125
|
+
let R = d2, f2 = R.raw + `
|
|
23126
23126
|
` + n.join(`
|
|
23127
|
-
`),
|
|
23128
|
-
s2[s2.length - 1] =
|
|
23127
|
+
`), O = this.list(f2);
|
|
23128
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
|
|
23129
23129
|
`);
|
|
23130
23130
|
continue;
|
|
23131
23131
|
}
|
|
@@ -23140,43 +23140,43 @@ ${c2}` : c2;
|
|
|
23140
23140
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23141
23141
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23142
23142
|
for (; e; ) {
|
|
23143
|
-
let
|
|
23143
|
+
let l = false, c2 = "", p = "";
|
|
23144
23144
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23145
|
-
|
|
23146
|
-
let
|
|
23147
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23148
|
-
`, 1)[0],
|
|
23149
|
-
if (this.options.pedantic ? (
|
|
23150
|
-
`, e = e.substring(
|
|
23151
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23145
|
+
c2 = t[0], e = e.substring(c2.length);
|
|
23146
|
+
let g = t[2].split(`
|
|
23147
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
|
|
23148
|
+
`, 1)[0], R = !g.trim(), f2 = 0;
|
|
23149
|
+
if (this.options.pedantic ? (f2 = 2, p = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
|
|
23150
|
+
`, e = e.substring(d2.length + 1), l = true), !l) {
|
|
23151
|
+
let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
|
|
23152
23152
|
for (; e; ) {
|
|
23153
23153
|
let Z = e.split(`
|
|
23154
23154
|
`, 1)[0], A2;
|
|
23155
|
-
if (
|
|
23156
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23157
|
-
` + A2.slice(
|
|
23155
|
+
if (d2 = Z, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), A2 = d2) : A2 = d2.replace(this.rules.other.tabCharGlobal, " "), te.test(d2) || ne.test(d2) || xe.test(d2) || H.test(d2) || ee.test(d2)) break;
|
|
23156
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p += `
|
|
23157
|
+
` + A2.slice(f2);
|
|
23158
23158
|
else {
|
|
23159
|
-
if (
|
|
23160
|
-
|
|
23161
|
-
` +
|
|
23159
|
+
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
23160
|
+
p += `
|
|
23161
|
+
` + d2;
|
|
23162
23162
|
}
|
|
23163
|
-
!
|
|
23164
|
-
`, e = e.substring(Z.length + 1),
|
|
23163
|
+
!R && !d2.trim() && (R = true), c2 += Z + `
|
|
23164
|
+
`, e = e.substring(Z.length + 1), g = A2.slice(f2);
|
|
23165
23165
|
}
|
|
23166
23166
|
}
|
|
23167
|
-
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(
|
|
23168
|
-
let
|
|
23169
|
-
this.options.gfm && (
|
|
23167
|
+
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
|
|
23168
|
+
let O = null, Y2;
|
|
23169
|
+
this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y2 = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p, tokens: [] }), i.raw += c2;
|
|
23170
23170
|
}
|
|
23171
23171
|
let a = i.items.at(-1);
|
|
23172
23172
|
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
23173
23173
|
else return;
|
|
23174
23174
|
i.raw = i.raw.trimEnd();
|
|
23175
|
-
for (let
|
|
23176
|
-
let
|
|
23177
|
-
i.loose =
|
|
23175
|
+
for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
|
|
23176
|
+
let c2 = i.items[l].tokens.filter((g) => g.type === "space"), p = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
23177
|
+
i.loose = p;
|
|
23178
23178
|
}
|
|
23179
|
-
if (i.loose) for (let
|
|
23179
|
+
if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
|
|
23180
23180
|
return i;
|
|
23181
23181
|
}
|
|
23182
23182
|
}
|
|
@@ -23199,7 +23199,7 @@ ${c2}` : c2;
|
|
|
23199
23199
|
if (n.length === r2.length) {
|
|
23200
23200
|
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);
|
|
23201
23201
|
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] });
|
|
23202
|
-
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a,
|
|
23202
|
+
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[l] })));
|
|
23203
23203
|
return s2;
|
|
23204
23204
|
}
|
|
23205
23205
|
}
|
|
@@ -23236,7 +23236,7 @@ ${c2}` : c2;
|
|
|
23236
23236
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23237
23237
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23238
23238
|
} else {
|
|
23239
|
-
let s2 =
|
|
23239
|
+
let s2 = fe(t[2], "()");
|
|
23240
23240
|
if (s2 === -2) return;
|
|
23241
23241
|
if (s2 > -1) {
|
|
23242
23242
|
let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -23248,7 +23248,7 @@ ${c2}` : c2;
|
|
|
23248
23248
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23249
23249
|
s2 && (r2 = s2[1], i = s2[3]);
|
|
23250
23250
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
23251
|
-
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)),
|
|
23251
|
+
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)), me(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);
|
|
23252
23252
|
}
|
|
23253
23253
|
}
|
|
23254
23254
|
reflink(e, t) {
|
|
@@ -23259,32 +23259,32 @@ ${c2}` : c2;
|
|
|
23259
23259
|
let s2 = n[0].charAt(0);
|
|
23260
23260
|
return { type: "text", raw: s2, text: s2 };
|
|
23261
23261
|
}
|
|
23262
|
-
return
|
|
23262
|
+
return me(n, i, n[0], this.lexer, this.rules);
|
|
23263
23263
|
}
|
|
23264
23264
|
}
|
|
23265
23265
|
emStrong(e, t, n = "") {
|
|
23266
23266
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23267
23267
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23268
23268
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23269
|
-
let s2 = [...r2[0]].length - 1, o, a,
|
|
23270
|
-
for (
|
|
23269
|
+
let s2 = [...r2[0]].length - 1, o, a, l = s2, c2 = 0, p = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23270
|
+
for (p.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p.exec(t)) != null; ) {
|
|
23271
23271
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23272
23272
|
if (a = [...o].length, r2[3] || r2[4]) {
|
|
23273
|
-
|
|
23273
|
+
l += a;
|
|
23274
23274
|
continue;
|
|
23275
23275
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
|
|
23276
|
-
|
|
23276
|
+
c2 += a;
|
|
23277
23277
|
continue;
|
|
23278
23278
|
}
|
|
23279
|
-
if (
|
|
23280
|
-
a = Math.min(a, a +
|
|
23281
|
-
let
|
|
23279
|
+
if (l -= a, l > 0) continue;
|
|
23280
|
+
a = Math.min(a, a + l + c2);
|
|
23281
|
+
let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a);
|
|
23282
23282
|
if (Math.min(s2, a) % 2) {
|
|
23283
|
-
let
|
|
23284
|
-
return { type: "em", raw:
|
|
23283
|
+
let f2 = d2.slice(1, -1);
|
|
23284
|
+
return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
|
|
23285
23285
|
}
|
|
23286
|
-
let
|
|
23287
|
-
return { type: "strong", raw:
|
|
23286
|
+
let R = d2.slice(2, -2);
|
|
23287
|
+
return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
|
|
23288
23288
|
}
|
|
23289
23289
|
}
|
|
23290
23290
|
}
|
|
@@ -23333,25 +23333,25 @@ ${c2}` : c2;
|
|
|
23333
23333
|
}
|
|
23334
23334
|
}
|
|
23335
23335
|
};
|
|
23336
|
-
var
|
|
23336
|
+
var x = class u {
|
|
23337
23337
|
constructor(e) {
|
|
23338
23338
|
__publicField$2(this, "tokens");
|
|
23339
23339
|
__publicField$2(this, "options");
|
|
23340
23340
|
__publicField$2(this, "state");
|
|
23341
23341
|
__publicField$2(this, "tokenizer");
|
|
23342
23342
|
__publicField$2(this, "inlineQueue");
|
|
23343
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23344
|
-
let t = { other: m, block:
|
|
23345
|
-
this.options.pedantic ? (t.block =
|
|
23343
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, 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 };
|
|
23344
|
+
let t = { other: m, block: C.normal, inline: M$1.normal };
|
|
23345
|
+
this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
23346
23346
|
}
|
|
23347
23347
|
static get rules() {
|
|
23348
|
-
return { block:
|
|
23348
|
+
return { block: C, inline: M$1 };
|
|
23349
23349
|
}
|
|
23350
23350
|
static lex(e, t) {
|
|
23351
|
-
return new
|
|
23351
|
+
return new u(t).lex(e);
|
|
23352
23352
|
}
|
|
23353
23353
|
static lexInline(e, t) {
|
|
23354
|
-
return new
|
|
23354
|
+
return new u(t).inlineTokens(e);
|
|
23355
23355
|
}
|
|
23356
23356
|
lex(e) {
|
|
23357
23357
|
e = e.replace(m.carriageReturn, `
|
|
@@ -23426,8 +23426,8 @@ var b = class l {
|
|
|
23426
23426
|
let i = e;
|
|
23427
23427
|
if (this.options.extensions?.startBlock) {
|
|
23428
23428
|
let s2 = 1 / 0, o = e.slice(1), a;
|
|
23429
|
-
this.options.extensions.startBlock.forEach((
|
|
23430
|
-
a =
|
|
23429
|
+
this.options.extensions.startBlock.forEach((l) => {
|
|
23430
|
+
a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
|
|
23431
23431
|
}), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
|
|
23432
23432
|
}
|
|
23433
23433
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
|
|
@@ -23473,7 +23473,7 @@ var b = class l {
|
|
|
23473
23473
|
for (; e; ) {
|
|
23474
23474
|
i || (s2 = ""), i = false;
|
|
23475
23475
|
let o;
|
|
23476
|
-
if (this.options.extensions?.inline?.some((
|
|
23476
|
+
if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
23477
23477
|
if (o = this.tokenizer.escape(e)) {
|
|
23478
23478
|
e = e.substring(o.raw.length), t.push(o);
|
|
23479
23479
|
continue;
|
|
@@ -23488,8 +23488,8 @@ var b = class l {
|
|
|
23488
23488
|
}
|
|
23489
23489
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
23490
23490
|
e = e.substring(o.raw.length);
|
|
23491
|
-
let
|
|
23492
|
-
o.type === "text" &&
|
|
23491
|
+
let l = t.at(-1);
|
|
23492
|
+
o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23493
23493
|
continue;
|
|
23494
23494
|
}
|
|
23495
23495
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -23518,23 +23518,23 @@ var b = class l {
|
|
|
23518
23518
|
}
|
|
23519
23519
|
let a = e;
|
|
23520
23520
|
if (this.options.extensions?.startInline) {
|
|
23521
|
-
let
|
|
23522
|
-
this.options.extensions.startInline.forEach((
|
|
23523
|
-
|
|
23524
|
-
}),
|
|
23521
|
+
let l = 1 / 0, c2 = e.slice(1), p;
|
|
23522
|
+
this.options.extensions.startInline.forEach((g) => {
|
|
23523
|
+
p = g.call({ lexer: this }, c2), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
|
|
23524
|
+
}), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
|
|
23525
23525
|
}
|
|
23526
23526
|
if (o = this.tokenizer.inlineText(a)) {
|
|
23527
23527
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
|
|
23528
|
-
let
|
|
23529
|
-
|
|
23528
|
+
let l = t.at(-1);
|
|
23529
|
+
l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23530
23530
|
continue;
|
|
23531
23531
|
}
|
|
23532
23532
|
if (e) {
|
|
23533
|
-
let
|
|
23533
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
23534
23534
|
if (this.options.silent) {
|
|
23535
|
-
console.error(
|
|
23535
|
+
console.error(l);
|
|
23536
23536
|
break;
|
|
23537
|
-
} else throw new Error(
|
|
23537
|
+
} else throw new Error(l);
|
|
23538
23538
|
}
|
|
23539
23539
|
}
|
|
23540
23540
|
return t;
|
|
@@ -23544,7 +23544,7 @@ var P = class {
|
|
|
23544
23544
|
constructor(e) {
|
|
23545
23545
|
__publicField$2(this, "options");
|
|
23546
23546
|
__publicField$2(this, "parser");
|
|
23547
|
-
this.options = e ||
|
|
23547
|
+
this.options = e || T;
|
|
23548
23548
|
}
|
|
23549
23549
|
space(e) {
|
|
23550
23550
|
return "";
|
|
@@ -23692,18 +23692,18 @@ var $ = class {
|
|
|
23692
23692
|
return "";
|
|
23693
23693
|
}
|
|
23694
23694
|
};
|
|
23695
|
-
var
|
|
23695
|
+
var b = class u2 {
|
|
23696
23696
|
constructor(e) {
|
|
23697
23697
|
__publicField$2(this, "options");
|
|
23698
23698
|
__publicField$2(this, "renderer");
|
|
23699
23699
|
__publicField$2(this, "textRenderer");
|
|
23700
|
-
this.options = e ||
|
|
23700
|
+
this.options = e || T, 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 $();
|
|
23701
23701
|
}
|
|
23702
23702
|
static parse(e, t) {
|
|
23703
|
-
return new
|
|
23703
|
+
return new u2(t).parse(e);
|
|
23704
23704
|
}
|
|
23705
23705
|
static parseInline(e, t) {
|
|
23706
|
-
return new
|
|
23706
|
+
return new u2(t).parseInline(e);
|
|
23707
23707
|
}
|
|
23708
23708
|
parse(e, t = true) {
|
|
23709
23709
|
let n = "";
|
|
@@ -23841,7 +23841,7 @@ var S = (_a = class {
|
|
|
23841
23841
|
constructor(e) {
|
|
23842
23842
|
__publicField$2(this, "options");
|
|
23843
23843
|
__publicField$2(this, "block");
|
|
23844
|
-
this.options = e ||
|
|
23844
|
+
this.options = e || T;
|
|
23845
23845
|
}
|
|
23846
23846
|
preprocess(e) {
|
|
23847
23847
|
return e;
|
|
@@ -23856,10 +23856,10 @@ var S = (_a = class {
|
|
|
23856
23856
|
return e;
|
|
23857
23857
|
}
|
|
23858
23858
|
provideLexer() {
|
|
23859
|
-
return this.block ?
|
|
23859
|
+
return this.block ? x.lex : x.lexInline;
|
|
23860
23860
|
}
|
|
23861
23861
|
provideParser() {
|
|
23862
|
-
return this.block ?
|
|
23862
|
+
return this.block ? b.parse : b.parseInline;
|
|
23863
23863
|
}
|
|
23864
23864
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23865
23865
|
var B = class {
|
|
@@ -23868,10 +23868,10 @@ var B = class {
|
|
|
23868
23868
|
__publicField$2(this, "options", this.setOptions);
|
|
23869
23869
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23870
23870
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23871
|
-
__publicField$2(this, "Parser",
|
|
23871
|
+
__publicField$2(this, "Parser", b);
|
|
23872
23872
|
__publicField$2(this, "Renderer", P);
|
|
23873
23873
|
__publicField$2(this, "TextRenderer", $);
|
|
23874
|
-
__publicField$2(this, "Lexer",
|
|
23874
|
+
__publicField$2(this, "Lexer", x);
|
|
23875
23875
|
__publicField$2(this, "Tokenizer", y);
|
|
23876
23876
|
__publicField$2(this, "Hooks", S);
|
|
23877
23877
|
this.use(...e);
|
|
@@ -23924,10 +23924,10 @@ var B = class {
|
|
|
23924
23924
|
for (let s2 in n.renderer) {
|
|
23925
23925
|
if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23926
23926
|
if (["options", "parser"].includes(s2)) continue;
|
|
23927
|
-
let o = s2, a = n.renderer[o],
|
|
23928
|
-
i[o] = (...
|
|
23929
|
-
let
|
|
23930
|
-
return
|
|
23927
|
+
let o = s2, a = n.renderer[o], l = i[o];
|
|
23928
|
+
i[o] = (...c2) => {
|
|
23929
|
+
let p = a.apply(i, c2);
|
|
23930
|
+
return p === false && (p = l.apply(i, c2)), p || "";
|
|
23931
23931
|
};
|
|
23932
23932
|
}
|
|
23933
23933
|
r2.renderer = i;
|
|
@@ -23937,10 +23937,10 @@ var B = class {
|
|
|
23937
23937
|
for (let s2 in n.tokenizer) {
|
|
23938
23938
|
if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23939
23939
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23940
|
-
let o = s2, a = n.tokenizer[o],
|
|
23941
|
-
i[o] = (...
|
|
23942
|
-
let
|
|
23943
|
-
return
|
|
23940
|
+
let o = s2, a = n.tokenizer[o], l = i[o];
|
|
23941
|
+
i[o] = (...c2) => {
|
|
23942
|
+
let p = a.apply(i, c2);
|
|
23943
|
+
return p === false && (p = l.apply(i, c2)), p;
|
|
23944
23944
|
};
|
|
23945
23945
|
}
|
|
23946
23946
|
r2.tokenizer = i;
|
|
@@ -23950,14 +23950,21 @@ var B = class {
|
|
|
23950
23950
|
for (let s2 in n.hooks) {
|
|
23951
23951
|
if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
|
|
23952
23952
|
if (["options", "block"].includes(s2)) continue;
|
|
23953
|
-
let o = s2, a = n.hooks[o],
|
|
23954
|
-
S.passThroughHooks.has(s2) ? i[o] = (
|
|
23955
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return
|
|
23956
|
-
|
|
23957
|
-
|
|
23958
|
-
|
|
23959
|
-
let
|
|
23960
|
-
return
|
|
23953
|
+
let o = s2, a = n.hooks[o], l = i[o];
|
|
23954
|
+
S.passThroughHooks.has(s2) ? i[o] = (c2) => {
|
|
23955
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
|
|
23956
|
+
let g = await a.call(i, c2);
|
|
23957
|
+
return l.call(i, g);
|
|
23958
|
+
})();
|
|
23959
|
+
let p = a.call(i, c2);
|
|
23960
|
+
return l.call(i, p);
|
|
23961
|
+
} : i[o] = (...c2) => {
|
|
23962
|
+
if (this.defaults.async) return (async () => {
|
|
23963
|
+
let g = await a.apply(i, c2);
|
|
23964
|
+
return g === false && (g = await l.apply(i, c2)), g;
|
|
23965
|
+
})();
|
|
23966
|
+
let p = a.apply(i, c2);
|
|
23967
|
+
return p === false && (p = l.apply(i, c2)), p;
|
|
23961
23968
|
};
|
|
23962
23969
|
}
|
|
23963
23970
|
r2.hooks = i;
|
|
@@ -23976,10 +23983,10 @@ var B = class {
|
|
|
23976
23983
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
23977
23984
|
}
|
|
23978
23985
|
lexer(e, t) {
|
|
23979
|
-
return
|
|
23986
|
+
return x.lex(e, t ?? this.defaults);
|
|
23980
23987
|
}
|
|
23981
23988
|
parser(e, t) {
|
|
23982
|
-
return
|
|
23989
|
+
return b.parse(e, t ?? this.defaults);
|
|
23983
23990
|
}
|
|
23984
23991
|
parseMarkdown(e) {
|
|
23985
23992
|
return (n, r2) => {
|
|
@@ -23987,17 +23994,20 @@ var B = class {
|
|
|
23987
23994
|
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."));
|
|
23988
23995
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
23989
23996
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
23990
|
-
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e)
|
|
23991
|
-
|
|
23992
|
-
|
|
23997
|
+
if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
|
|
23998
|
+
let a = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s2), p = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
|
|
23999
|
+
s2.walkTokens && await Promise.all(this.walkTokens(p, s2.walkTokens));
|
|
24000
|
+
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
|
|
24001
|
+
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
24002
|
+
})().catch(o);
|
|
23993
24003
|
try {
|
|
23994
24004
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
23995
|
-
let
|
|
23996
|
-
s2.hooks && (
|
|
23997
|
-
let
|
|
23998
|
-
return s2.hooks && (
|
|
23999
|
-
} catch (
|
|
24000
|
-
return o(
|
|
24005
|
+
let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
|
|
24006
|
+
s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
|
|
24007
|
+
let p = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
|
|
24008
|
+
return s2.hooks && (p = s2.hooks.postprocess(p)), p;
|
|
24009
|
+
} catch (a) {
|
|
24010
|
+
return o(a);
|
|
24001
24011
|
}
|
|
24002
24012
|
};
|
|
24003
24013
|
}
|
|
@@ -24014,38 +24024,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
24014
24024
|
}
|
|
24015
24025
|
};
|
|
24016
24026
|
var _ = new B();
|
|
24017
|
-
function
|
|
24018
|
-
return _.parse(
|
|
24019
|
-
}
|
|
24020
|
-
|
|
24021
|
-
return _.setOptions(
|
|
24022
|
-
};
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
return _.use(...
|
|
24027
|
-
};
|
|
24028
|
-
|
|
24029
|
-
return _.walkTokens(
|
|
24030
|
-
};
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24041
|
-
|
|
24042
|
-
|
|
24043
|
-
|
|
24044
|
-
|
|
24045
|
-
|
|
24046
|
-
|
|
24047
|
-
|
|
24048
|
-
|
|
24027
|
+
function k$1(u3, e) {
|
|
24028
|
+
return _.parse(u3, e);
|
|
24029
|
+
}
|
|
24030
|
+
k$1.options = k$1.setOptions = function(u3) {
|
|
24031
|
+
return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24032
|
+
};
|
|
24033
|
+
k$1.getDefaults = L;
|
|
24034
|
+
k$1.defaults = T;
|
|
24035
|
+
k$1.use = function(...u3) {
|
|
24036
|
+
return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24037
|
+
};
|
|
24038
|
+
k$1.walkTokens = function(u3, e) {
|
|
24039
|
+
return _.walkTokens(u3, e);
|
|
24040
|
+
};
|
|
24041
|
+
k$1.parseInline = _.parseInline;
|
|
24042
|
+
k$1.Parser = b;
|
|
24043
|
+
k$1.parser = b.parse;
|
|
24044
|
+
k$1.Renderer = P;
|
|
24045
|
+
k$1.TextRenderer = $;
|
|
24046
|
+
k$1.Lexer = x;
|
|
24047
|
+
k$1.lexer = x.lex;
|
|
24048
|
+
k$1.Tokenizer = y;
|
|
24049
|
+
k$1.Hooks = S;
|
|
24050
|
+
k$1.parse = k$1;
|
|
24051
|
+
k$1.options;
|
|
24052
|
+
k$1.setOptions;
|
|
24053
|
+
k$1.use;
|
|
24054
|
+
k$1.walkTokens;
|
|
24055
|
+
k$1.parseInline;
|
|
24056
|
+
b.parse;
|
|
24057
|
+
x.lex;
|
|
24058
|
+
k$1.use({
|
|
24049
24059
|
breaks: false,
|
|
24050
24060
|
// Use proper paragraphs, not <br> tags
|
|
24051
24061
|
gfm: true
|
|
@@ -24056,7 +24066,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
|
|
|
24056
24066
|
return createDocFromHTML(html, schema, options);
|
|
24057
24067
|
}
|
|
24058
24068
|
function convertMarkdownToHTML(markdown) {
|
|
24059
|
-
let html =
|
|
24069
|
+
let html = k$1.parse(markdown, { async: false });
|
|
24060
24070
|
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");
|
|
24061
24071
|
}
|
|
24062
24072
|
function processContent({ content, type: type2, schema }) {
|
|
@@ -28803,7 +28813,16 @@ const translateImageNode = (params2) => {
|
|
|
28803
28813
|
const { width: w2, height: h2 } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
|
|
28804
28814
|
if (w2 && h2) size2 = { w: w2, h: h2 };
|
|
28805
28815
|
}
|
|
28806
|
-
if (
|
|
28816
|
+
if (imageId) {
|
|
28817
|
+
const docx = params2.converter?.convertedXml || {};
|
|
28818
|
+
const rels = docx["word/_rels/document.xml.rels"];
|
|
28819
|
+
const relsTag = rels?.elements?.find((el) => el.name === "Relationships");
|
|
28820
|
+
const hasRelation = relsTag?.elements.find((el) => el.attributes.Id === imageId);
|
|
28821
|
+
const path = src?.split("word/")[1];
|
|
28822
|
+
if (!hasRelation) {
|
|
28823
|
+
addImageRelationshipForId(params2, imageId, path);
|
|
28824
|
+
}
|
|
28825
|
+
} else if (params2.node.type === "image" && !imageId) {
|
|
28807
28826
|
const path = src?.split("word/")[1];
|
|
28808
28827
|
imageId = addNewImageRelationship(params2, path);
|
|
28809
28828
|
} else if (params2.node.type === "fieldAnnotation" && !imageId) {
|
|
@@ -29027,6 +29046,18 @@ function addNewImageRelationship(params2, imagePath) {
|
|
|
29027
29046
|
params2.relationships.push(newRel);
|
|
29028
29047
|
return newId;
|
|
29029
29048
|
}
|
|
29049
|
+
function addImageRelationshipForId(params2, id, imagePath) {
|
|
29050
|
+
const newRel = {
|
|
29051
|
+
type: "element",
|
|
29052
|
+
name: "Relationship",
|
|
29053
|
+
attributes: {
|
|
29054
|
+
Id: id,
|
|
29055
|
+
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
|
|
29056
|
+
Target: imagePath
|
|
29057
|
+
}
|
|
29058
|
+
};
|
|
29059
|
+
params2.relationships.push(newRel);
|
|
29060
|
+
}
|
|
29030
29061
|
function translateVectorShape(params2) {
|
|
29031
29062
|
const { node } = params2;
|
|
29032
29063
|
const { drawingContent } = node.attrs;
|
|
@@ -35316,6 +35347,35 @@ const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithPara
|
|
|
35316
35347
|
};
|
|
35317
35348
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
35318
35349
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
35350
|
+
const FOOTER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
|
|
35351
|
+
const REL_ID_NUMERIC_PATTERN = /rId|mi/g;
|
|
35352
|
+
const getLargestRelationshipId = (relationships = []) => {
|
|
35353
|
+
const numericIds = relationships.map((rel) => Number(String(rel?.attributes?.Id ?? "").replace(REL_ID_NUMERIC_PATTERN, ""))).filter((value) => Number.isFinite(value));
|
|
35354
|
+
return numericIds.length ? Math.max(...numericIds) : 0;
|
|
35355
|
+
};
|
|
35356
|
+
const mergeRelationshipElements = (existingRelationships = [], newRelationships = []) => {
|
|
35357
|
+
if (!newRelationships?.length) return existingRelationships;
|
|
35358
|
+
let largestId = getLargestRelationshipId(existingRelationships);
|
|
35359
|
+
const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
|
|
35360
|
+
const additions = [];
|
|
35361
|
+
newRelationships.forEach((rel) => {
|
|
35362
|
+
if (!rel?.attributes) return;
|
|
35363
|
+
const attributes = rel.attributes;
|
|
35364
|
+
const currentId = attributes.Id || "";
|
|
35365
|
+
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
35366
|
+
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
35367
|
+
const isMedia = attributes.Target?.startsWith("media/");
|
|
35368
|
+
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
35369
|
+
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
35370
|
+
const hasSeenId = currentId && seenIds.has(currentId);
|
|
35371
|
+
const shouldSkip = !isNewHyperlink && !isNewHeadFoot && (hasSeenId || existingTarget);
|
|
35372
|
+
if (shouldSkip) return;
|
|
35373
|
+
attributes.Id = currentId.length > 6 || isMedia ? currentId : `rId${++largestId}`;
|
|
35374
|
+
seenIds.add(attributes.Id);
|
|
35375
|
+
additions.push(rel);
|
|
35376
|
+
});
|
|
35377
|
+
return additions.length ? [...existingRelationships, ...additions] : existingRelationships;
|
|
35378
|
+
};
|
|
35319
35379
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
35320
35380
|
swiss: "Arial, sans-serif",
|
|
35321
35381
|
roman: "Times New Roman, serif",
|
|
@@ -35524,7 +35584,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35524
35584
|
static getStoredSuperdocVersion(docx) {
|
|
35525
35585
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35526
35586
|
}
|
|
35527
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.
|
|
35587
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.4") {
|
|
35528
35588
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35529
35589
|
}
|
|
35530
35590
|
/**
|
|
@@ -35915,7 +35975,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
|
|
|
35915
35975
|
};
|
|
35916
35976
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
35917
35977
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35918
|
-
const relationships = relsData.elements.find((
|
|
35978
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
35919
35979
|
const newDocRels = [];
|
|
35920
35980
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
35921
35981
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -35956,7 +36016,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35956
36016
|
}
|
|
35957
36017
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35958
36018
|
if (params2.relationships.length) {
|
|
35959
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36019
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
35960
36020
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35961
36021
|
declaration: this.initialJSON?.declaration,
|
|
35962
36022
|
elements: [
|
|
@@ -36010,7 +36070,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36010
36070
|
}
|
|
36011
36071
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
36012
36072
|
if (params2.relationships.length) {
|
|
36013
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36073
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
36014
36074
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
36015
36075
|
declaration: this.initialJSON?.declaration,
|
|
36016
36076
|
elements: [
|
|
@@ -36029,24 +36089,8 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36029
36089
|
};
|
|
36030
36090
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36031
36091
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36032
|
-
const relationships = relsData.elements.find((
|
|
36033
|
-
|
|
36034
|
-
const regex = /rId|mi/g;
|
|
36035
|
-
let largestId = Math.max(...relationships.elements.map((el) => Number(el.attributes.Id.replace(regex, ""))));
|
|
36036
|
-
rels.forEach((rel) => {
|
|
36037
|
-
const existingId = rel.attributes.Id;
|
|
36038
|
-
const existingTarget = relationships.elements.find((el) => el.attributes.Target === rel.attributes.Target);
|
|
36039
|
-
const isNewMedia = rel.attributes.Target?.startsWith("media/") && existingId.length > 6;
|
|
36040
|
-
const isNewHyperlink = rel.attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36041
|
-
const isNewHeadFoot = rel.attributes.Type === HEADER_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36042
|
-
if (existingTarget && !isNewMedia && !isNewHyperlink && !isNewHeadFoot) {
|
|
36043
|
-
return;
|
|
36044
|
-
}
|
|
36045
|
-
rel.attributes.Target = rel.attributes?.Target?.replace(/&/g, "&");
|
|
36046
|
-
rel.attributes.Id = existingId.length > 6 ? existingId : `rId${++largestId}`;
|
|
36047
|
-
newRels.push(rel);
|
|
36048
|
-
});
|
|
36049
|
-
relationships.elements = [...relationships.elements, ...newRels];
|
|
36092
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36093
|
+
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36050
36094
|
};
|
|
36051
36095
|
exportProcessMediaFiles_fn = async function(media = {}) {
|
|
36052
36096
|
const processedData = {
|
|
@@ -36130,37 +36174,37 @@ function requireJszip_min() {
|
|
|
36130
36174
|
module2.exports = e();
|
|
36131
36175
|
})(function() {
|
|
36132
36176
|
return (function s2(a, o, h2) {
|
|
36133
|
-
function
|
|
36177
|
+
function u3(r2, e2) {
|
|
36134
36178
|
if (!o[r2]) {
|
|
36135
36179
|
if (!a[r2]) {
|
|
36136
36180
|
var t = "function" == typeof commonjsRequire && commonjsRequire;
|
|
36137
36181
|
if (!e2 && t) return t(r2, true);
|
|
36138
|
-
if (
|
|
36182
|
+
if (l) return l(r2, true);
|
|
36139
36183
|
var n = new Error("Cannot find module '" + r2 + "'");
|
|
36140
36184
|
throw n.code = "MODULE_NOT_FOUND", n;
|
|
36141
36185
|
}
|
|
36142
36186
|
var i = o[r2] = { exports: {} };
|
|
36143
36187
|
a[r2][0].call(i.exports, function(e3) {
|
|
36144
36188
|
var t2 = a[r2][1][e3];
|
|
36145
|
-
return
|
|
36189
|
+
return u3(t2 || e3);
|
|
36146
36190
|
}, i, i.exports, s2, a, o, h2);
|
|
36147
36191
|
}
|
|
36148
36192
|
return o[r2].exports;
|
|
36149
36193
|
}
|
|
36150
|
-
for (var
|
|
36151
|
-
return
|
|
36194
|
+
for (var l = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u3(h2[e]);
|
|
36195
|
+
return u3;
|
|
36152
36196
|
})({ 1: [function(e, t, r2) {
|
|
36153
36197
|
var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
36154
36198
|
r2.encode = function(e2) {
|
|
36155
|
-
for (var t2, r22, n, i, s2, a, o, h2 = [],
|
|
36199
|
+
for (var t2, r22, n, i, s2, a, o, h2 = [], u3 = 0, l = e2.length, f2 = l, c22 = "string" !== d2.getTypeOf(e2); u3 < e2.length; ) f2 = l - u3, n = c22 ? (t2 = e2[u3++], r22 = u3 < l ? e2[u3++] : 0, u3 < l ? e2[u3++] : 0) : (t2 = e2.charCodeAt(u3++), r22 = u3 < l ? e2.charCodeAt(u3++) : 0, u3 < l ? e2.charCodeAt(u3++) : 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));
|
|
36156
36200
|
return h2.join("");
|
|
36157
36201
|
}, r2.decode = function(e2) {
|
|
36158
|
-
var t2, r22, n, i, s2, a, o = 0, h2 = 0,
|
|
36159
|
-
if (e2.substr(0,
|
|
36160
|
-
var
|
|
36202
|
+
var t2, r22, n, i, s2, a, o = 0, h2 = 0, u3 = "data:";
|
|
36203
|
+
if (e2.substr(0, u3.length) === u3) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
36204
|
+
var l, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
36161
36205
|
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.");
|
|
36162
|
-
for (
|
|
36163
|
-
return
|
|
36206
|
+
for (l = 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++))), l[h2++] = t2, 64 !== s2 && (l[h2++] = r22), 64 !== a && (l[h2++] = n);
|
|
36207
|
+
return l;
|
|
36164
36208
|
};
|
|
36165
36209
|
}, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
|
|
36166
36210
|
var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
|
|
@@ -36241,10 +36285,10 @@ function requireJszip_min() {
|
|
|
36241
36285
|
return n2;
|
|
36242
36286
|
}
|
|
36243
36287
|
function n(e2, t2, r22, n2, i2, s22) {
|
|
36244
|
-
var a, o, h2 = e2.file,
|
|
36245
|
-
t2 && !r22 || (
|
|
36288
|
+
var a, o, h2 = e2.file, u3 = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36289
|
+
t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
|
|
36246
36290
|
var S2 = 0;
|
|
36247
|
-
t2 && (S2 |= 8),
|
|
36291
|
+
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36248
36292
|
var z2 = 0, C2 = 0;
|
|
36249
36293
|
w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
|
|
36250
36294
|
var r3 = e3;
|
|
@@ -36253,9 +36297,9 @@ function requireJszip_min() {
|
|
|
36253
36297
|
return 63 & (e3 || 0);
|
|
36254
36298
|
})(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);
|
|
36255
36299
|
var E2 = "";
|
|
36256
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 +=
|
|
36300
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u3.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
|
|
36257
36301
|
}
|
|
36258
|
-
var I2 = e("../utils"), i = e("../stream/GenericWorker"),
|
|
36302
|
+
var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
|
|
36259
36303
|
function s2(e2, t2, r22, n2) {
|
|
36260
36304
|
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 = [];
|
|
36261
36305
|
}
|
|
@@ -36273,7 +36317,7 @@ function requireJszip_min() {
|
|
|
36273
36317
|
this.accumulate = false;
|
|
36274
36318
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36275
36319
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36276
|
-
return
|
|
36320
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36277
36321
|
})(e2), meta: { percent: 100 } });
|
|
36278
36322
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36279
36323
|
this.currentFile = null;
|
|
@@ -36281,7 +36325,7 @@ function requireJszip_min() {
|
|
|
36281
36325
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36282
36326
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
|
|
36283
36327
|
var s22 = I2.transformTo("string", i2(n3));
|
|
36284
|
-
return
|
|
36328
|
+
return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36285
36329
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36286
36330
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36287
36331
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -36311,14 +36355,14 @@ function requireJszip_min() {
|
|
|
36311
36355
|
for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
|
|
36312
36356
|
}, t.exports = s2;
|
|
36313
36357
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
|
|
36314
|
-
var
|
|
36358
|
+
var u3 = e("../compressions"), n = e("./ZipFileWorker");
|
|
36315
36359
|
r2.generateWorker = function(e2, a, t2) {
|
|
36316
36360
|
var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
|
|
36317
36361
|
try {
|
|
36318
36362
|
e2.forEach(function(e3, t3) {
|
|
36319
36363
|
h2++;
|
|
36320
36364
|
var r22 = (function(e4, t4) {
|
|
36321
|
-
var r3 = e4 || t4, n3 =
|
|
36365
|
+
var r3 = e4 || t4, n3 = u3[r3];
|
|
36322
36366
|
if (!n3) throw new Error(r3 + " is not a valid compression method !");
|
|
36323
36367
|
return n3;
|
|
36324
36368
|
})(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
|
|
@@ -36343,7 +36387,7 @@ function requireJszip_min() {
|
|
|
36343
36387
|
return new n().loadAsync(e2, t2);
|
|
36344
36388
|
}, n.external = e("./external"), t.exports = n;
|
|
36345
36389
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
|
|
36346
|
-
var
|
|
36390
|
+
var u3 = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
|
|
36347
36391
|
function f2(n2) {
|
|
36348
36392
|
return new i.Promise(function(e2, t2) {
|
|
36349
36393
|
var r22 = n2.decompressed.getContentWorker().pipe(new a());
|
|
@@ -36356,7 +36400,7 @@ function requireJszip_min() {
|
|
|
36356
36400
|
}
|
|
36357
36401
|
t.exports = function(e2, o) {
|
|
36358
36402
|
var h2 = this;
|
|
36359
|
-
return o =
|
|
36403
|
+
return o = u3.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u3.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
|
|
36360
36404
|
var t2 = new s2(o);
|
|
36361
36405
|
return t2.load(e3), t2;
|
|
36362
36406
|
}).then(function(e3) {
|
|
@@ -36365,7 +36409,7 @@ function requireJszip_min() {
|
|
|
36365
36409
|
return i.Promise.all(t2);
|
|
36366
36410
|
}).then(function(e3) {
|
|
36367
36411
|
for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
|
|
36368
|
-
var i2 = r22[n2], s22 = i2.fileNameStr, a2 =
|
|
36412
|
+
var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u3.resolve(i2.fileNameStr);
|
|
36369
36413
|
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);
|
|
36370
36414
|
}
|
|
36371
36415
|
return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
|
|
@@ -36422,16 +36466,16 @@ function requireJszip_min() {
|
|
|
36422
36466
|
} };
|
|
36423
36467
|
}, {}], 15: [function(e, t, r2) {
|
|
36424
36468
|
function s2(e2, t2, r22) {
|
|
36425
|
-
var n2, i2 =
|
|
36469
|
+
var n2, i2 = u3.getTypeOf(t2), s22 = u3.extend(r22 || {}, f2);
|
|
36426
36470
|
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);
|
|
36427
36471
|
var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
|
|
36428
36472
|
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");
|
|
36429
36473
|
var o2 = null;
|
|
36430
|
-
o2 = t2 instanceof c2 || t2 instanceof
|
|
36474
|
+
o2 = t2 instanceof c2 || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u3.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
|
|
36431
36475
|
var h22 = new d2(e2, o2, s22);
|
|
36432
36476
|
this.files[e2] = h22;
|
|
36433
36477
|
}
|
|
36434
|
-
var i = e("./utf8"),
|
|
36478
|
+
var i = e("./utf8"), u3 = e("./utils"), l = 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) {
|
|
36435
36479
|
"/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
|
|
36436
36480
|
var t2 = e2.lastIndexOf("/");
|
|
36437
36481
|
return 0 < t2 ? e2.substring(0, t2) : "";
|
|
@@ -36483,12 +36527,12 @@ function requireJszip_min() {
|
|
|
36483
36527
|
}, generateInternalStream: function(e2) {
|
|
36484
36528
|
var t2, r22 = {};
|
|
36485
36529
|
try {
|
|
36486
|
-
if ((r22 =
|
|
36487
|
-
|
|
36530
|
+
if ((r22 = u3.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.");
|
|
36531
|
+
u3.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
|
|
36488
36532
|
var n2 = r22.comment || this.comment || "";
|
|
36489
36533
|
t2 = o.generateWorker(this, r22, n2);
|
|
36490
36534
|
} catch (e3) {
|
|
36491
|
-
(t2 = new
|
|
36535
|
+
(t2 = new l("error")).error(e3);
|
|
36492
36536
|
}
|
|
36493
36537
|
return new a(t2, r22.type || "string", r22.mimeType);
|
|
36494
36538
|
}, generateAsync: function(e2, t2) {
|
|
@@ -36708,12 +36752,12 @@ function requireJszip_min() {
|
|
|
36708
36752
|
return this.previous ? this.previous + " -> " + e2 : e2;
|
|
36709
36753
|
} }, t.exports = n;
|
|
36710
36754
|
}, {}], 29: [function(e, t, r2) {
|
|
36711
|
-
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"),
|
|
36755
|
+
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u3 = e("../base64"), n = e("../support"), a = e("../external"), o = null;
|
|
36712
36756
|
if (n.nodestream) try {
|
|
36713
36757
|
o = e("../nodejs/NodejsStreamOutputAdapter");
|
|
36714
36758
|
} catch (e2) {
|
|
36715
36759
|
}
|
|
36716
|
-
function
|
|
36760
|
+
function l(e2, o2) {
|
|
36717
36761
|
return new a.Promise(function(t2, r22) {
|
|
36718
36762
|
var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
|
|
36719
36763
|
e2.on("data", function(e3, t3) {
|
|
@@ -36727,7 +36771,7 @@ function requireJszip_min() {
|
|
|
36727
36771
|
case "blob":
|
|
36728
36772
|
return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
|
|
36729
36773
|
case "base64":
|
|
36730
|
-
return
|
|
36774
|
+
return u3.encode(t3);
|
|
36731
36775
|
default:
|
|
36732
36776
|
return h2.transformTo(e4, t3);
|
|
36733
36777
|
}
|
|
@@ -36773,7 +36817,7 @@ function requireJszip_min() {
|
|
|
36773
36817
|
}
|
|
36774
36818
|
}
|
|
36775
36819
|
f2.prototype = { accumulate: function(e2) {
|
|
36776
|
-
return
|
|
36820
|
+
return l(this, e2);
|
|
36777
36821
|
}, on: function(e2, t2) {
|
|
36778
36822
|
var r22 = this;
|
|
36779
36823
|
return "data" === e2 ? this._worker.on(e2, function(e3) {
|
|
@@ -36810,12 +36854,12 @@ function requireJszip_min() {
|
|
|
36810
36854
|
r2.nodestream = false;
|
|
36811
36855
|
}
|
|
36812
36856
|
}, { "readable-stream": 16 }], 31: [function(e, t, s2) {
|
|
36813
|
-
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"),
|
|
36814
|
-
|
|
36857
|
+
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u3 = new Array(256), i = 0; i < 256; i++) u3[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
|
|
36858
|
+
u3[254] = u3[254] = 1;
|
|
36815
36859
|
function a() {
|
|
36816
36860
|
n.call(this, "utf-8 decode"), this.leftOver = null;
|
|
36817
36861
|
}
|
|
36818
|
-
function
|
|
36862
|
+
function l() {
|
|
36819
36863
|
n.call(this, "utf-8 encode");
|
|
36820
36864
|
}
|
|
36821
36865
|
s2.utf8encode = function(e2) {
|
|
@@ -36829,7 +36873,7 @@ function requireJszip_min() {
|
|
|
36829
36873
|
return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
|
|
36830
36874
|
var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
|
|
36831
36875
|
for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
|
|
36832
|
-
else if (4 < (i2 =
|
|
36876
|
+
else if (4 < (i2 = u3[n2])) a2[r22++] = 65533, t2 += i2 - 1;
|
|
36833
36877
|
else {
|
|
36834
36878
|
for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
|
|
36835
36879
|
1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
|
|
@@ -36848,20 +36892,20 @@ function requireJszip_min() {
|
|
|
36848
36892
|
var n2 = (function(e3, t3) {
|
|
36849
36893
|
var r3;
|
|
36850
36894
|
for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
|
|
36851
|
-
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 +
|
|
36895
|
+
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u3[e3[r3]] > t3 ? r3 : t3;
|
|
36852
36896
|
})(t2), i2 = t2;
|
|
36853
36897
|
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 });
|
|
36854
36898
|
}, a.prototype.flush = function() {
|
|
36855
36899
|
this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
36856
|
-
}, s2.Utf8DecodeWorker = a, o.inherits(
|
|
36900
|
+
}, s2.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) {
|
|
36857
36901
|
this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
|
|
36858
|
-
}, s2.Utf8EncodeWorker =
|
|
36902
|
+
}, s2.Utf8EncodeWorker = l;
|
|
36859
36903
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
|
|
36860
|
-
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"),
|
|
36904
|
+
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u3 = e("./external");
|
|
36861
36905
|
function n(e2) {
|
|
36862
36906
|
return e2;
|
|
36863
36907
|
}
|
|
36864
|
-
function
|
|
36908
|
+
function l(e2, t2) {
|
|
36865
36909
|
for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
|
|
36866
36910
|
return t2;
|
|
36867
36911
|
}
|
|
@@ -36915,13 +36959,13 @@ function requireJszip_min() {
|
|
|
36915
36959
|
a.applyFromCharCode = s2;
|
|
36916
36960
|
var c2 = {};
|
|
36917
36961
|
c2.string = { string: n, array: function(e2) {
|
|
36918
|
-
return
|
|
36962
|
+
return l(e2, new Array(e2.length));
|
|
36919
36963
|
}, arraybuffer: function(e2) {
|
|
36920
36964
|
return c2.string.uint8array(e2).buffer;
|
|
36921
36965
|
}, uint8array: function(e2) {
|
|
36922
|
-
return
|
|
36966
|
+
return l(e2, new Uint8Array(e2.length));
|
|
36923
36967
|
}, nodebuffer: function(e2) {
|
|
36924
|
-
return
|
|
36968
|
+
return l(e2, r2.allocBuffer(e2.length));
|
|
36925
36969
|
} }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
|
|
36926
36970
|
return new Uint8Array(e2).buffer;
|
|
36927
36971
|
}, uint8array: function(e2) {
|
|
@@ -36980,8 +37024,8 @@ function requireJszip_min() {
|
|
|
36980
37024
|
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]);
|
|
36981
37025
|
return r22;
|
|
36982
37026
|
}, a.prepareContent = function(r22, e2, n2, i2, s22) {
|
|
36983
|
-
return
|
|
36984
|
-
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new
|
|
37027
|
+
return u3.Promise.resolve(e2).then(function(n3) {
|
|
37028
|
+
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u3.Promise(function(t2, r3) {
|
|
36985
37029
|
var e3 = new FileReader();
|
|
36986
37030
|
e3.onload = function(e4) {
|
|
36987
37031
|
t2(e4.target.result);
|
|
@@ -36992,8 +37036,8 @@ function requireJszip_min() {
|
|
|
36992
37036
|
}).then(function(e3) {
|
|
36993
37037
|
var t2 = a.getTypeOf(e3);
|
|
36994
37038
|
return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
|
|
36995
|
-
return
|
|
36996
|
-
})(e3))), e3) :
|
|
37039
|
+
return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
|
|
37040
|
+
})(e3))), e3) : u3.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
36997
37041
|
});
|
|
36998
37042
|
};
|
|
36999
37043
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
|
|
@@ -37049,11 +37093,11 @@ function requireJszip_min() {
|
|
|
37049
37093
|
this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
37050
37094
|
} }, t.exports = h2;
|
|
37051
37095
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
|
|
37052
|
-
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"),
|
|
37053
|
-
function
|
|
37096
|
+
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u3 = e("./support");
|
|
37097
|
+
function l(e2, t2) {
|
|
37054
37098
|
this.options = e2, this.loadOptions = t2;
|
|
37055
37099
|
}
|
|
37056
|
-
|
|
37100
|
+
l.prototype = { isEncrypted: function() {
|
|
37057
37101
|
return 1 == (1 & this.bitFlag);
|
|
37058
37102
|
}, useUTF8: function() {
|
|
37059
37103
|
return 2048 == (2048 & this.bitFlag);
|
|
@@ -37084,7 +37128,7 @@ function requireJszip_min() {
|
|
|
37084
37128
|
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 };
|
|
37085
37129
|
e2.setIndex(i2);
|
|
37086
37130
|
}, handleUTF8: function() {
|
|
37087
|
-
var e2 =
|
|
37131
|
+
var e2 = u3.uint8array ? "uint8array" : "array";
|
|
37088
37132
|
if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
|
|
37089
37133
|
else {
|
|
37090
37134
|
var t2 = this.findExtraFieldUnicodePath();
|
|
@@ -37114,7 +37158,7 @@ function requireJszip_min() {
|
|
|
37114
37158
|
return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
|
|
37115
37159
|
}
|
|
37116
37160
|
return null;
|
|
37117
|
-
} }, t.exports =
|
|
37161
|
+
} }, t.exports = l;
|
|
37118
37162
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
|
|
37119
37163
|
function n(e2, t2, r22) {
|
|
37120
37164
|
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 };
|
|
@@ -37143,34 +37187,34 @@ function requireJszip_min() {
|
|
|
37143
37187
|
}, _decompressWorker: function() {
|
|
37144
37188
|
return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
|
|
37145
37189
|
} };
|
|
37146
|
-
for (var
|
|
37190
|
+
for (var u3 = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() {
|
|
37147
37191
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
37148
|
-
}, f2 = 0; f2 <
|
|
37192
|
+
}, f2 = 0; f2 < u3.length; f2++) n.prototype[u3[f2]] = l;
|
|
37149
37193
|
t.exports = n;
|
|
37150
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e,
|
|
37194
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t) {
|
|
37151
37195
|
(function(t2) {
|
|
37152
37196
|
var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
|
|
37153
37197
|
if (e2) {
|
|
37154
|
-
var i = 0, s2 = new e2(
|
|
37198
|
+
var i = 0, s2 = new e2(u3), a = t2.document.createTextNode("");
|
|
37155
37199
|
s2.observe(a, { characterData: true }), r2 = function() {
|
|
37156
37200
|
a.data = i = ++i % 2;
|
|
37157
37201
|
};
|
|
37158
37202
|
} else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
|
|
37159
37203
|
var e3 = t2.document.createElement("script");
|
|
37160
37204
|
e3.onreadystatechange = function() {
|
|
37161
|
-
|
|
37205
|
+
u3(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
|
|
37162
37206
|
}, t2.document.documentElement.appendChild(e3);
|
|
37163
37207
|
} : function() {
|
|
37164
|
-
setTimeout(
|
|
37208
|
+
setTimeout(u3, 0);
|
|
37165
37209
|
};
|
|
37166
37210
|
else {
|
|
37167
37211
|
var o = new t2.MessageChannel();
|
|
37168
|
-
o.port1.onmessage =
|
|
37212
|
+
o.port1.onmessage = u3, r2 = function() {
|
|
37169
37213
|
o.port2.postMessage(0);
|
|
37170
37214
|
};
|
|
37171
37215
|
}
|
|
37172
37216
|
var h2 = [];
|
|
37173
|
-
function
|
|
37217
|
+
function u3() {
|
|
37174
37218
|
var e3, t3;
|
|
37175
37219
|
n = true;
|
|
37176
37220
|
for (var r22 = h2.length; r22; ) {
|
|
@@ -37179,18 +37223,18 @@ function requireJszip_min() {
|
|
|
37179
37223
|
}
|
|
37180
37224
|
n = false;
|
|
37181
37225
|
}
|
|
37182
|
-
|
|
37226
|
+
l.exports = function(e3) {
|
|
37183
37227
|
1 !== h2.push(e3) || n || r2();
|
|
37184
37228
|
};
|
|
37185
37229
|
}).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
|
|
37186
37230
|
}, {}], 37: [function(e, t, r2) {
|
|
37187
37231
|
var i = e("immediate");
|
|
37188
|
-
function
|
|
37232
|
+
function u3() {
|
|
37189
37233
|
}
|
|
37190
|
-
var
|
|
37234
|
+
var l = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
|
|
37191
37235
|
function o(e2) {
|
|
37192
37236
|
if ("function" != typeof e2) throw new TypeError("resolver must be a function");
|
|
37193
|
-
this.state = n, this.queue = [], this.outcome = void 0, e2 !==
|
|
37237
|
+
this.state = n, this.queue = [], this.outcome = void 0, e2 !== u3 && d2(this, e2);
|
|
37194
37238
|
}
|
|
37195
37239
|
function h2(e2, t2, r22) {
|
|
37196
37240
|
this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
|
|
@@ -37201,9 +37245,9 @@ function requireJszip_min() {
|
|
|
37201
37245
|
try {
|
|
37202
37246
|
e2 = r22(n2);
|
|
37203
37247
|
} catch (e3) {
|
|
37204
|
-
return
|
|
37248
|
+
return l.reject(t2, e3);
|
|
37205
37249
|
}
|
|
37206
|
-
e2 === t2 ?
|
|
37250
|
+
e2 === t2 ? l.reject(t2, new TypeError("Cannot resolve promise with itself")) : l.resolve(t2, e2);
|
|
37207
37251
|
});
|
|
37208
37252
|
}
|
|
37209
37253
|
function c2(e2) {
|
|
@@ -37215,10 +37259,10 @@ function requireJszip_min() {
|
|
|
37215
37259
|
function d2(t2, e2) {
|
|
37216
37260
|
var r22 = false;
|
|
37217
37261
|
function n2(e3) {
|
|
37218
|
-
r22 || (r22 = true,
|
|
37262
|
+
r22 || (r22 = true, l.reject(t2, e3));
|
|
37219
37263
|
}
|
|
37220
37264
|
function i2(e3) {
|
|
37221
|
-
r22 || (r22 = true,
|
|
37265
|
+
r22 || (r22 = true, l.resolve(t2, e3));
|
|
37222
37266
|
}
|
|
37223
37267
|
var s22 = p(function() {
|
|
37224
37268
|
e2(i2, n2);
|
|
@@ -37250,20 +37294,20 @@ function requireJszip_min() {
|
|
|
37250
37294
|
return this.then(null, e2);
|
|
37251
37295
|
}, o.prototype.then = function(e2, t2) {
|
|
37252
37296
|
if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
|
|
37253
|
-
var r22 = new this.constructor(
|
|
37297
|
+
var r22 = new this.constructor(u3);
|
|
37254
37298
|
this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
|
|
37255
37299
|
return r22;
|
|
37256
37300
|
}, h2.prototype.callFulfilled = function(e2) {
|
|
37257
|
-
|
|
37301
|
+
l.resolve(this.promise, e2);
|
|
37258
37302
|
}, h2.prototype.otherCallFulfilled = function(e2) {
|
|
37259
37303
|
f2(this.promise, this.onFulfilled, e2);
|
|
37260
37304
|
}, h2.prototype.callRejected = function(e2) {
|
|
37261
|
-
|
|
37305
|
+
l.reject(this.promise, e2);
|
|
37262
37306
|
}, h2.prototype.otherCallRejected = function(e2) {
|
|
37263
37307
|
f2(this.promise, this.onRejected, e2);
|
|
37264
|
-
},
|
|
37308
|
+
}, l.resolve = function(e2, t2) {
|
|
37265
37309
|
var r22 = p(c2, t2);
|
|
37266
|
-
if ("error" === r22.status) return
|
|
37310
|
+
if ("error" === r22.status) return l.reject(e2, r22.value);
|
|
37267
37311
|
var n2 = r22.value;
|
|
37268
37312
|
if (n2) d2(e2, n2);
|
|
37269
37313
|
else {
|
|
@@ -37271,29 +37315,29 @@ function requireJszip_min() {
|
|
|
37271
37315
|
for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
|
|
37272
37316
|
}
|
|
37273
37317
|
return e2;
|
|
37274
|
-
},
|
|
37318
|
+
}, l.reject = function(e2, t2) {
|
|
37275
37319
|
e2.state = s2, e2.outcome = t2;
|
|
37276
37320
|
for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
|
|
37277
37321
|
return e2;
|
|
37278
37322
|
}, o.resolve = function(e2) {
|
|
37279
37323
|
if (e2 instanceof this) return e2;
|
|
37280
|
-
return
|
|
37324
|
+
return l.resolve(new this(u3), e2);
|
|
37281
37325
|
}, o.reject = function(e2) {
|
|
37282
|
-
var t2 = new this(
|
|
37283
|
-
return
|
|
37326
|
+
var t2 = new this(u3);
|
|
37327
|
+
return l.reject(t2, e2);
|
|
37284
37328
|
}, o.all = function(e2) {
|
|
37285
37329
|
var r22 = this;
|
|
37286
37330
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37287
37331
|
var n2 = e2.length, i2 = false;
|
|
37288
37332
|
if (!n2) return this.resolve([]);
|
|
37289
|
-
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(
|
|
37333
|
+
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u3);
|
|
37290
37334
|
for (; ++t2 < n2; ) h22(e2[t2], t2);
|
|
37291
37335
|
return o2;
|
|
37292
37336
|
function h22(e3, t3) {
|
|
37293
37337
|
r22.resolve(e3).then(function(e4) {
|
|
37294
|
-
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true,
|
|
37338
|
+
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s22));
|
|
37295
37339
|
}, function(e4) {
|
|
37296
|
-
i2 || (i2 = true,
|
|
37340
|
+
i2 || (i2 = true, l.reject(o2, e4));
|
|
37297
37341
|
});
|
|
37298
37342
|
}
|
|
37299
37343
|
}, o.race = function(e2) {
|
|
@@ -37301,11 +37345,11 @@ function requireJszip_min() {
|
|
|
37301
37345
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37302
37346
|
var r22 = e2.length, n2 = false;
|
|
37303
37347
|
if (!r22) return this.resolve([]);
|
|
37304
|
-
var i2 = -1, s22 = new this(
|
|
37348
|
+
var i2 = -1, s22 = new this(u3);
|
|
37305
37349
|
for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
|
|
37306
|
-
n2 || (n2 = true,
|
|
37350
|
+
n2 || (n2 = true, l.resolve(s22, e3));
|
|
37307
37351
|
}, function(e3) {
|
|
37308
|
-
n2 || (n2 = true,
|
|
37352
|
+
n2 || (n2 = true, l.reject(s22, e3));
|
|
37309
37353
|
});
|
|
37310
37354
|
var a2;
|
|
37311
37355
|
return s22;
|
|
@@ -37314,17 +37358,17 @@ function requireJszip_min() {
|
|
|
37314
37358
|
var n = {};
|
|
37315
37359
|
(0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
|
|
37316
37360
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
|
|
37317
|
-
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"),
|
|
37361
|
+
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u3 = Object.prototype.toString, l = 0, f2 = -1, c2 = 0, d2 = 8;
|
|
37318
37362
|
function p(e2) {
|
|
37319
37363
|
if (!(this instanceof p)) return new p(e2);
|
|
37320
37364
|
this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
|
|
37321
37365
|
var t2 = this.options;
|
|
37322
37366
|
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;
|
|
37323
37367
|
var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
|
|
37324
|
-
if (r22 !==
|
|
37368
|
+
if (r22 !== l) throw new Error(i[r22]);
|
|
37325
37369
|
if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
|
|
37326
37370
|
var n2;
|
|
37327
|
-
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" ===
|
|
37371
|
+
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u3.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r22]);
|
|
37328
37372
|
this._dict_set = true;
|
|
37329
37373
|
}
|
|
37330
37374
|
}
|
|
@@ -37336,16 +37380,16 @@ function requireJszip_min() {
|
|
|
37336
37380
|
p.prototype.push = function(e2, t2) {
|
|
37337
37381
|
var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
|
|
37338
37382
|
if (this.ended) return false;
|
|
37339
|
-
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" ===
|
|
37383
|
+
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u3.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
|
|
37340
37384
|
do {
|
|
37341
|
-
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 !==
|
|
37385
|
+
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 !== l) return this.onEnd(r22), !(this.ended = true);
|
|
37342
37386
|
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)));
|
|
37343
37387
|
} while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
|
|
37344
|
-
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 ===
|
|
37388
|
+
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0));
|
|
37345
37389
|
}, p.prototype.onData = function(e2) {
|
|
37346
37390
|
this.chunks.push(e2);
|
|
37347
37391
|
}, p.prototype.onEnd = function(e2) {
|
|
37348
|
-
e2 ===
|
|
37392
|
+
e2 === l && ("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;
|
|
37349
37393
|
}, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
|
|
37350
37394
|
return (t2 = t2 || {}).raw = true, n(e2, t2);
|
|
37351
37395
|
}, r2.gzip = function(e2, t2) {
|
|
@@ -37368,12 +37412,12 @@ function requireJszip_min() {
|
|
|
37368
37412
|
return r22.result;
|
|
37369
37413
|
}
|
|
37370
37414
|
a.prototype.push = function(e2, t2) {
|
|
37371
|
-
var r22, n2, i2, s22, a2, o2, h2 = this.strm,
|
|
37415
|
+
var r22, n2, i2, s22, a2, o2, h2 = this.strm, u3 = this.options.chunkSize, l = this.options.dictionary, f2 = false;
|
|
37372
37416
|
if (this.ended) return false;
|
|
37373
37417
|
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;
|
|
37374
37418
|
do {
|
|
37375
|
-
if (0 === h2.avail_out && (h2.output = new d2.Buf8(
|
|
37376
|
-
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 =
|
|
37419
|
+
if (0 === h2.avail_out && (h2.output = new d2.Buf8(u3), h2.next_out = 0, h2.avail_out = u3), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _2.call(l) ? new Uint8Array(l) : l, 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);
|
|
37420
|
+
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 = u3 - 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);
|
|
37377
37421
|
} while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
|
|
37378
37422
|
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));
|
|
37379
37423
|
}, a.prototype.onData = function(e2) {
|
|
@@ -37425,35 +37469,35 @@ function requireJszip_min() {
|
|
|
37425
37469
|
} catch (e2) {
|
|
37426
37470
|
s2 = false;
|
|
37427
37471
|
}
|
|
37428
|
-
for (var
|
|
37429
|
-
function
|
|
37472
|
+
for (var u3 = new h2.Buf8(256), n = 0; n < 256; n++) u3[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
|
|
37473
|
+
function l(e2, t2) {
|
|
37430
37474
|
if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
|
|
37431
37475
|
for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
|
|
37432
37476
|
return r22;
|
|
37433
37477
|
}
|
|
37434
|
-
|
|
37478
|
+
u3[254] = u3[254] = 1, r2.string2buf = function(e2) {
|
|
37435
37479
|
var t2, r22, n2, i2, s22, a = e2.length, o = 0;
|
|
37436
37480
|
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;
|
|
37437
37481
|
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);
|
|
37438
37482
|
return t2;
|
|
37439
37483
|
}, r2.buf2binstring = function(e2) {
|
|
37440
|
-
return
|
|
37484
|
+
return l(e2, e2.length);
|
|
37441
37485
|
}, r2.binstring2buf = function(e2) {
|
|
37442
37486
|
for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
|
|
37443
37487
|
return t2;
|
|
37444
37488
|
}, r2.buf2string = function(e2, t2) {
|
|
37445
37489
|
var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
|
|
37446
37490
|
for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
|
|
37447
|
-
else if (4 < (s22 =
|
|
37491
|
+
else if (4 < (s22 = u3[i2])) o[n2++] = 65533, r22 += s22 - 1;
|
|
37448
37492
|
else {
|
|
37449
37493
|
for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
|
|
37450
37494
|
1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
|
|
37451
37495
|
}
|
|
37452
|
-
return
|
|
37496
|
+
return l(o, n2);
|
|
37453
37497
|
}, r2.utf8border = function(e2, t2) {
|
|
37454
37498
|
var r22;
|
|
37455
37499
|
for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
|
|
37456
|
-
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 +
|
|
37500
|
+
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u3[e2[r22]] > t2 ? r22 : t2;
|
|
37457
37501
|
};
|
|
37458
37502
|
}, { "./common": 41 }], 43: [function(e, t, r2) {
|
|
37459
37503
|
t.exports = function(e2, t2, r22, n) {
|
|
@@ -37481,11 +37525,11 @@ function requireJszip_min() {
|
|
|
37481
37525
|
return -1 ^ e2;
|
|
37482
37526
|
};
|
|
37483
37527
|
}, {}], 46: [function(e, t, r2) {
|
|
37484
|
-
var h2, c2 = e("../utils/common"),
|
|
37485
|
-
function
|
|
37528
|
+
var h2, c2 = e("../utils/common"), u3 = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 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, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
|
|
37529
|
+
function R(e2, t2) {
|
|
37486
37530
|
return e2.msg = n[t2], t2;
|
|
37487
37531
|
}
|
|
37488
|
-
function
|
|
37532
|
+
function T2(e2) {
|
|
37489
37533
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37490
37534
|
}
|
|
37491
37535
|
function D2(e2) {
|
|
@@ -37496,7 +37540,7 @@ function requireJszip_min() {
|
|
|
37496
37540
|
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));
|
|
37497
37541
|
}
|
|
37498
37542
|
function N2(e2, t2) {
|
|
37499
|
-
|
|
37543
|
+
u3._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);
|
|
37500
37544
|
}
|
|
37501
37545
|
function U2(e2, t2) {
|
|
37502
37546
|
e2.pending_buf[e2.pending++] = t2;
|
|
@@ -37505,23 +37549,23 @@ function requireJszip_min() {
|
|
|
37505
37549
|
e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
|
|
37506
37550
|
}
|
|
37507
37551
|
function L2(e2, t2) {
|
|
37508
|
-
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,
|
|
37552
|
+
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, u22 = e2.window, l2 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
|
|
37509
37553
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
37510
37554
|
do {
|
|
37511
|
-
if (
|
|
37555
|
+
if (u22[(r22 = t2) + a2] === p2 && u22[r22 + a2 - 1] === d22 && u22[r22] === u22[s22] && u22[++r22] === u22[s22 + 1]) {
|
|
37512
37556
|
s22 += 2, r22++;
|
|
37513
37557
|
do {
|
|
37514
|
-
} while (
|
|
37558
|
+
} while (u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && s22 < c22);
|
|
37515
37559
|
if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
|
|
37516
37560
|
if (e2.match_start = t2, o2 <= (a2 = n2)) break;
|
|
37517
|
-
d22 =
|
|
37561
|
+
d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
|
|
37518
37562
|
}
|
|
37519
37563
|
}
|
|
37520
|
-
} while ((t2 = f22[t2 &
|
|
37564
|
+
} while ((t2 = f22[t2 & l2]) > h22 && 0 != --i2);
|
|
37521
37565
|
return a2 <= e2.lookahead ? a2 : e2.lookahead;
|
|
37522
37566
|
}
|
|
37523
37567
|
function j2(e2) {
|
|
37524
|
-
var t2, r22, n2, i2, s22, a2, o2, h22,
|
|
37568
|
+
var t2, r22, n2, i2, s22, a2, o2, h22, u22, l2, f22 = e2.w_size;
|
|
37525
37569
|
do {
|
|
37526
37570
|
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
|
|
37527
37571
|
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; ) ;
|
|
@@ -37529,38 +37573,38 @@ function requireJszip_min() {
|
|
|
37529
37573
|
i2 += f22;
|
|
37530
37574
|
}
|
|
37531
37575
|
if (0 === e2.strm.avail_in) break;
|
|
37532
|
-
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead,
|
|
37576
|
+
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u22 = i2, l2 = void 0, l2 = a2.avail_in, u22 < l2 && (l2 = u22), r22 = 0 === l2 ? 0 : (a2.avail_in -= l2, c2.arraySet(o2, a2.input, a2.next_in, l2, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l2, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h22)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) 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 + x2 - 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 < x2)); ) ;
|
|
37533
37577
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37534
37578
|
}
|
|
37535
37579
|
function Z(e2, t2) {
|
|
37536
37580
|
for (var r22, n2; ; ) {
|
|
37537
37581
|
if (e2.lookahead < z2) {
|
|
37538
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37582
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37539
37583
|
if (0 === e2.lookahead) break;
|
|
37540
37584
|
}
|
|
37541
|
-
if (r22 = 0, e2.lookahead >=
|
|
37542
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37585
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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 >= x2) if (n2 = u3._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
|
|
37586
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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; ) ;
|
|
37543
37587
|
e2.strstart++;
|
|
37544
37588
|
} 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;
|
|
37545
|
-
else n2 =
|
|
37589
|
+
else n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37546
37590
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37547
37591
|
}
|
|
37548
|
-
return e2.insert = e2.strstart <
|
|
37592
|
+
return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37549
37593
|
}
|
|
37550
37594
|
function W2(e2, t2) {
|
|
37551
37595
|
for (var r22, n2, i2; ; ) {
|
|
37552
37596
|
if (e2.lookahead < z2) {
|
|
37553
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37597
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37554
37598
|
if (0 === e2.lookahead) break;
|
|
37555
37599
|
}
|
|
37556
|
-
if (r22 = 0, e2.lookahead >=
|
|
37557
|
-
for (i2 = e2.strstart + e2.lookahead -
|
|
37558
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37600
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 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 = x2 - 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 === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
|
|
37601
|
+
for (i2 = e2.strstart + e2.lookahead - x2, n2 = u3._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), 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 + x2 - 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; ) ;
|
|
37602
|
+
if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37559
37603
|
} else if (e2.match_available) {
|
|
37560
|
-
if ((n2 =
|
|
37604
|
+
if ((n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37561
37605
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37562
37606
|
}
|
|
37563
|
-
return e2.match_available && (n2 =
|
|
37607
|
+
return e2.match_available && (n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37564
37608
|
}
|
|
37565
37609
|
function M2(e2, t2, r22, n2, i2) {
|
|
37566
37610
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
@@ -37570,27 +37614,27 @@ function requireJszip_min() {
|
|
|
37570
37614
|
}
|
|
37571
37615
|
function G2(e2) {
|
|
37572
37616
|
var t2;
|
|
37573
|
-
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 =
|
|
37617
|
+
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 = l, u3._tr_init(t2), m2) : R(e2, _2);
|
|
37574
37618
|
}
|
|
37575
37619
|
function K2(e2) {
|
|
37576
37620
|
var t2 = G2(e2);
|
|
37577
37621
|
return t2 === m2 && (function(e3) {
|
|
37578
|
-
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 =
|
|
37622
|
+
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 = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37579
37623
|
})(e2.state), t2;
|
|
37580
37624
|
}
|
|
37581
37625
|
function Y2(e2, t2, r22, n2, i2, s22) {
|
|
37582
37626
|
if (!e2) return _2;
|
|
37583
37627
|
var a2 = 1;
|
|
37584
|
-
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
|
|
37628
|
+
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 R(e2, _2);
|
|
37585
37629
|
8 === n2 && (n2 = 9);
|
|
37586
37630
|
var o2 = new H();
|
|
37587
|
-
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 +
|
|
37631
|
+
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 + x2 - 1) / x2), 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);
|
|
37588
37632
|
}
|
|
37589
37633
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37590
37634
|
var r22 = 65535;
|
|
37591
37635
|
for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
|
|
37592
37636
|
if (e2.lookahead <= 1) {
|
|
37593
|
-
if (j2(e2), 0 === e2.lookahead && t2 ===
|
|
37637
|
+
if (j2(e2), 0 === e2.lookahead && t2 === l) return A2;
|
|
37594
37638
|
if (0 === e2.lookahead) break;
|
|
37595
37639
|
}
|
|
37596
37640
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
@@ -37598,15 +37642,15 @@ function requireJszip_min() {
|
|
|
37598
37642
|
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;
|
|
37599
37643
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37600
37644
|
}
|
|
37601
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37645
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37602
37646
|
}), 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) {
|
|
37603
37647
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37604
37648
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37605
37649
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37606
37650
|
}, r2.deflate = function(e2, t2) {
|
|
37607
37651
|
var r22, n2, i2, s22;
|
|
37608
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37609
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37652
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
|
|
37653
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37610
37654
|
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);
|
|
37611
37655
|
else {
|
|
37612
37656
|
var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37640,50 +37684,50 @@ function requireJszip_min() {
|
|
|
37640
37684
|
} else n2.status = 103;
|
|
37641
37685
|
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) {
|
|
37642
37686
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37643
|
-
} else if (0 === e2.avail_in &&
|
|
37644
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37645
|
-
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !==
|
|
37687
|
+
} else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
|
|
37688
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
|
|
37689
|
+
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37646
37690
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37647
37691
|
for (var r3; ; ) {
|
|
37648
37692
|
if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
|
|
37649
|
-
if (t3 ===
|
|
37693
|
+
if (t3 === l) return A2;
|
|
37650
37694
|
break;
|
|
37651
37695
|
}
|
|
37652
|
-
if (e3.match_length = 0, r3 =
|
|
37696
|
+
if (e3.match_length = 0, r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37653
37697
|
}
|
|
37654
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37698
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37655
37699
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37656
37700
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37657
37701
|
if (e3.lookahead <= S2) {
|
|
37658
|
-
if (j2(e3), e3.lookahead <= S2 && t3 ===
|
|
37702
|
+
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
37659
37703
|
if (0 === e3.lookahead) break;
|
|
37660
37704
|
}
|
|
37661
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37705
|
+
if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37662
37706
|
s3 = e3.strstart + S2;
|
|
37663
37707
|
do {
|
|
37664
37708
|
} 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);
|
|
37665
37709
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37666
37710
|
}
|
|
37667
|
-
if (e3.match_length >=
|
|
37711
|
+
if (e3.match_length >= x2 ? (r3 = u3._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37668
37712
|
}
|
|
37669
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37713
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37670
37714
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37671
|
-
if (o2 !==
|
|
37672
|
-
if (o2 === I2 && (1 === t2 ?
|
|
37715
|
+
if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37716
|
+
if (o2 === I2 && (1 === t2 ? u3._tr_align(n2) : 5 !== t2 && (u3._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;
|
|
37673
37717
|
}
|
|
37674
37718
|
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);
|
|
37675
37719
|
}, r2.deflateEnd = function(e2) {
|
|
37676
37720
|
var t2;
|
|
37677
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37721
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
|
|
37678
37722
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37679
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37723
|
+
var r22, n2, i2, s22, a2, o2, h22, u22, l2 = t2.length;
|
|
37680
37724
|
if (!e2 || !e2.state) return _2;
|
|
37681
37725
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37682
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2,
|
|
37683
|
-
for (n2 = r22.strstart, i2 = r22.lookahead - (
|
|
37684
|
-
r22.strstart = n2, r22.lookahead =
|
|
37726
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u22 = new c2.Buf8(r22.w_size), c2.arraySet(u22, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u22, l2 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
|
|
37727
|
+
for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
|
|
37728
|
+
r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
|
|
37685
37729
|
}
|
|
37686
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37730
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
|
|
37687
37731
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37688
37732
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37689
37733
|
t.exports = function() {
|
|
@@ -37691,8 +37735,8 @@ function requireJszip_min() {
|
|
|
37691
37735
|
};
|
|
37692
37736
|
}, {}], 48: [function(e, t, r2) {
|
|
37693
37737
|
t.exports = function(e2, t2) {
|
|
37694
|
-
var r22, n, i, s2, a, o, h2,
|
|
37695
|
-
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,
|
|
37738
|
+
var r22, n, i, s2, a, o, h2, u3, l, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
|
|
37739
|
+
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, u3 = r22.wsize, l = 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;
|
|
37696
37740
|
e: do {
|
|
37697
37741
|
p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
|
|
37698
37742
|
t: for (; ; ) {
|
|
@@ -37725,32 +37769,32 @@ function requireJszip_min() {
|
|
|
37725
37769
|
break e;
|
|
37726
37770
|
}
|
|
37727
37771
|
if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
|
|
37728
|
-
if (
|
|
37772
|
+
if (l < (y2 = k2 - y2) && r22.sane) {
|
|
37729
37773
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37730
37774
|
break e;
|
|
37731
37775
|
}
|
|
37732
|
-
if (S2 = c2, (
|
|
37733
|
-
if (
|
|
37734
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37735
|
-
|
|
37776
|
+
if (S2 = c2, (x2 = 0) === f2) {
|
|
37777
|
+
if (x2 += u3 - y2, y2 < w2) {
|
|
37778
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37779
|
+
x2 = s2 - k2, S2 = C2;
|
|
37736
37780
|
}
|
|
37737
37781
|
} else if (f2 < y2) {
|
|
37738
|
-
if (
|
|
37739
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37740
|
-
if (
|
|
37741
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37742
|
-
|
|
37782
|
+
if (x2 += u3 + f2 - y2, (y2 -= f2) < w2) {
|
|
37783
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37784
|
+
if (x2 = 0, f2 < w2) {
|
|
37785
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37786
|
+
x2 = s2 - k2, S2 = C2;
|
|
37743
37787
|
}
|
|
37744
37788
|
}
|
|
37745
|
-
} else if (
|
|
37746
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37747
|
-
|
|
37789
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
37790
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37791
|
+
x2 = s2 - k2, S2 = C2;
|
|
37748
37792
|
}
|
|
37749
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37750
|
-
w2 && (C2[s2++] = S2[
|
|
37793
|
+
for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
|
|
37794
|
+
w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
|
|
37751
37795
|
} else {
|
|
37752
|
-
for (
|
|
37753
|
-
w2 && (C2[s2++] = C2[
|
|
37796
|
+
for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
|
|
37797
|
+
w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
|
|
37754
37798
|
}
|
|
37755
37799
|
break;
|
|
37756
37800
|
}
|
|
@@ -37761,7 +37805,7 @@ function requireJszip_min() {
|
|
|
37761
37805
|
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;
|
|
37762
37806
|
};
|
|
37763
37807
|
}, {}], 49: [function(e, t, r2) {
|
|
37764
|
-
var I2 = e("../utils/common"),
|
|
37808
|
+
var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
|
|
37765
37809
|
function L2(e2) {
|
|
37766
37810
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37767
37811
|
}
|
|
@@ -37780,68 +37824,68 @@ function requireJszip_min() {
|
|
|
37780
37824
|
var r22, n2;
|
|
37781
37825
|
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;
|
|
37782
37826
|
}
|
|
37783
|
-
function
|
|
37827
|
+
function u3(e2, t2) {
|
|
37784
37828
|
var r22, n2;
|
|
37785
37829
|
return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
|
|
37786
37830
|
}
|
|
37787
|
-
var
|
|
37831
|
+
var l, f2, c2 = true;
|
|
37788
37832
|
function j2(e2) {
|
|
37789
37833
|
if (c2) {
|
|
37790
37834
|
var t2;
|
|
37791
|
-
for (
|
|
37835
|
+
for (l = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
|
|
37792
37836
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37793
37837
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37794
37838
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37795
|
-
for (
|
|
37796
|
-
|
|
37839
|
+
for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
37840
|
+
T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37797
37841
|
}
|
|
37798
|
-
e2.lencode =
|
|
37842
|
+
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37799
37843
|
}
|
|
37800
37844
|
function Z(e2, t2, r22, n2) {
|
|
37801
37845
|
var i2, s22 = e2.state;
|
|
37802
37846
|
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;
|
|
37803
37847
|
}
|
|
37804
37848
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
|
|
37805
|
-
return
|
|
37806
|
-
}, r2.inflateInit2 =
|
|
37807
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37849
|
+
return u3(e2, 15);
|
|
37850
|
+
}, r2.inflateInit2 = u3, r2.inflate = function(e2, t2) {
|
|
37851
|
+
var r22, n2, i2, s22, a2, o2, h22, u22, l2, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, 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];
|
|
37808
37852
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37809
|
-
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,
|
|
37853
|
+
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, u22 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
|
|
37810
37854
|
e: for (; ; ) switch (r22.mode) {
|
|
37811
37855
|
case P2:
|
|
37812
37856
|
if (0 === r22.wrap) {
|
|
37813
37857
|
r22.mode = 13;
|
|
37814
37858
|
break;
|
|
37815
37859
|
}
|
|
37816
|
-
for (;
|
|
37860
|
+
for (; l2 < 16; ) {
|
|
37817
37861
|
if (0 === o2) break e;
|
|
37818
|
-
o2--,
|
|
37862
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37819
37863
|
}
|
|
37820
|
-
if (2 & r22.wrap && 35615 ===
|
|
37821
|
-
E2[r22.check = 0] = 255 &
|
|
37864
|
+
if (2 & r22.wrap && 35615 === u22) {
|
|
37865
|
+
E2[r22.check = 0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l2 = u22 = 0, r22.mode = 2;
|
|
37822
37866
|
break;
|
|
37823
37867
|
}
|
|
37824
|
-
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 &
|
|
37868
|
+
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u22) << 8) + (u22 >> 8)) % 31) {
|
|
37825
37869
|
e2.msg = "incorrect header check", r22.mode = 30;
|
|
37826
37870
|
break;
|
|
37827
37871
|
}
|
|
37828
|
-
if (8 != (15 &
|
|
37872
|
+
if (8 != (15 & u22)) {
|
|
37829
37873
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37830
37874
|
break;
|
|
37831
37875
|
}
|
|
37832
|
-
if (
|
|
37876
|
+
if (l2 -= 4, k2 = 8 + (15 & (u22 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
|
|
37833
37877
|
else if (k2 > r22.wbits) {
|
|
37834
37878
|
e2.msg = "invalid window size", r22.mode = 30;
|
|
37835
37879
|
break;
|
|
37836
37880
|
}
|
|
37837
|
-
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 &
|
|
37881
|
+
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u22 ? 10 : 12, l2 = u22 = 0;
|
|
37838
37882
|
break;
|
|
37839
37883
|
case 2:
|
|
37840
|
-
for (;
|
|
37884
|
+
for (; l2 < 16; ) {
|
|
37841
37885
|
if (0 === o2) break e;
|
|
37842
|
-
o2--,
|
|
37886
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37843
37887
|
}
|
|
37844
|
-
if (r22.flags =
|
|
37888
|
+
if (r22.flags = u22, 8 != (255 & r22.flags)) {
|
|
37845
37889
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37846
37890
|
break;
|
|
37847
37891
|
}
|
|
@@ -37849,26 +37893,26 @@ function requireJszip_min() {
|
|
|
37849
37893
|
e2.msg = "unknown header flags set", r22.mode = 30;
|
|
37850
37894
|
break;
|
|
37851
37895
|
}
|
|
37852
|
-
r22.head && (r22.head.text =
|
|
37896
|
+
r22.head && (r22.head.text = u22 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 3;
|
|
37853
37897
|
case 3:
|
|
37854
|
-
for (;
|
|
37898
|
+
for (; l2 < 32; ) {
|
|
37855
37899
|
if (0 === o2) break e;
|
|
37856
|
-
o2--,
|
|
37900
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37857
37901
|
}
|
|
37858
|
-
r22.head && (r22.head.time =
|
|
37902
|
+
r22.head && (r22.head.time = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, E2[2] = u22 >>> 16 & 255, E2[3] = u22 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l2 = u22 = 0, r22.mode = 4;
|
|
37859
37903
|
case 4:
|
|
37860
|
-
for (;
|
|
37904
|
+
for (; l2 < 16; ) {
|
|
37861
37905
|
if (0 === o2) break e;
|
|
37862
|
-
o2--,
|
|
37906
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37863
37907
|
}
|
|
37864
|
-
r22.head && (r22.head.xflags = 255 &
|
|
37908
|
+
r22.head && (r22.head.xflags = 255 & u22, r22.head.os = u22 >> 8), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 5;
|
|
37865
37909
|
case 5:
|
|
37866
37910
|
if (1024 & r22.flags) {
|
|
37867
|
-
for (;
|
|
37911
|
+
for (; l2 < 16; ) {
|
|
37868
37912
|
if (0 === o2) break e;
|
|
37869
|
-
o2--,
|
|
37913
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37870
37914
|
}
|
|
37871
|
-
r22.length =
|
|
37915
|
+
r22.length = u22, r22.head && (r22.head.extra_len = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0;
|
|
37872
37916
|
} else r22.head && (r22.head.extra = null);
|
|
37873
37917
|
r22.mode = 6;
|
|
37874
37918
|
case 6:
|
|
@@ -37890,45 +37934,45 @@ function requireJszip_min() {
|
|
|
37890
37934
|
r22.mode = 9;
|
|
37891
37935
|
case 9:
|
|
37892
37936
|
if (512 & r22.flags) {
|
|
37893
|
-
for (;
|
|
37937
|
+
for (; l2 < 16; ) {
|
|
37894
37938
|
if (0 === o2) break e;
|
|
37895
|
-
o2--,
|
|
37939
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37896
37940
|
}
|
|
37897
|
-
if (
|
|
37941
|
+
if (u22 !== (65535 & r22.check)) {
|
|
37898
37942
|
e2.msg = "header crc mismatch", r22.mode = 30;
|
|
37899
37943
|
break;
|
|
37900
37944
|
}
|
|
37901
|
-
|
|
37945
|
+
l2 = u22 = 0;
|
|
37902
37946
|
}
|
|
37903
37947
|
r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
|
|
37904
37948
|
break;
|
|
37905
37949
|
case 10:
|
|
37906
|
-
for (;
|
|
37950
|
+
for (; l2 < 32; ) {
|
|
37907
37951
|
if (0 === o2) break e;
|
|
37908
|
-
o2--,
|
|
37952
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37909
37953
|
}
|
|
37910
|
-
e2.adler = r22.check = L2(
|
|
37954
|
+
e2.adler = r22.check = L2(u22), l2 = u22 = 0, r22.mode = 11;
|
|
37911
37955
|
case 11:
|
|
37912
|
-
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37956
|
+
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, 2;
|
|
37913
37957
|
e2.adler = r22.check = 1, r22.mode = 12;
|
|
37914
37958
|
case 12:
|
|
37915
37959
|
if (5 === t2 || 6 === t2) break e;
|
|
37916
37960
|
case 13:
|
|
37917
37961
|
if (r22.last) {
|
|
37918
|
-
|
|
37962
|
+
u22 >>>= 7 & l2, l2 -= 7 & l2, r22.mode = 27;
|
|
37919
37963
|
break;
|
|
37920
37964
|
}
|
|
37921
|
-
for (;
|
|
37965
|
+
for (; l2 < 3; ) {
|
|
37922
37966
|
if (0 === o2) break e;
|
|
37923
|
-
o2--,
|
|
37967
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37924
37968
|
}
|
|
37925
|
-
switch (r22.last = 1 &
|
|
37969
|
+
switch (r22.last = 1 & u22, l2 -= 1, 3 & (u22 >>>= 1)) {
|
|
37926
37970
|
case 0:
|
|
37927
37971
|
r22.mode = 14;
|
|
37928
37972
|
break;
|
|
37929
37973
|
case 1:
|
|
37930
37974
|
if (j2(r22), r22.mode = 20, 6 !== t2) break;
|
|
37931
|
-
|
|
37975
|
+
u22 >>>= 2, l2 -= 2;
|
|
37932
37976
|
break e;
|
|
37933
37977
|
case 2:
|
|
37934
37978
|
r22.mode = 17;
|
|
@@ -37936,18 +37980,18 @@ function requireJszip_min() {
|
|
|
37936
37980
|
case 3:
|
|
37937
37981
|
e2.msg = "invalid block type", r22.mode = 30;
|
|
37938
37982
|
}
|
|
37939
|
-
|
|
37983
|
+
u22 >>>= 2, l2 -= 2;
|
|
37940
37984
|
break;
|
|
37941
37985
|
case 14:
|
|
37942
|
-
for (
|
|
37986
|
+
for (u22 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) {
|
|
37943
37987
|
if (0 === o2) break e;
|
|
37944
|
-
o2--,
|
|
37988
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37945
37989
|
}
|
|
37946
|
-
if ((65535 &
|
|
37990
|
+
if ((65535 & u22) != (u22 >>> 16 ^ 65535)) {
|
|
37947
37991
|
e2.msg = "invalid stored block lengths", r22.mode = 30;
|
|
37948
37992
|
break;
|
|
37949
37993
|
}
|
|
37950
|
-
if (r22.length = 65535 &
|
|
37994
|
+
if (r22.length = 65535 & u22, l2 = u22 = 0, r22.mode = 15, 6 === t2) break e;
|
|
37951
37995
|
case 15:
|
|
37952
37996
|
r22.mode = 16;
|
|
37953
37997
|
case 16:
|
|
@@ -37959,59 +38003,59 @@ function requireJszip_min() {
|
|
|
37959
38003
|
r22.mode = 12;
|
|
37960
38004
|
break;
|
|
37961
38005
|
case 17:
|
|
37962
|
-
for (;
|
|
38006
|
+
for (; l2 < 14; ) {
|
|
37963
38007
|
if (0 === o2) break e;
|
|
37964
|
-
o2--,
|
|
38008
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37965
38009
|
}
|
|
37966
|
-
if (r22.nlen = 257 + (31 &
|
|
38010
|
+
if (r22.nlen = 257 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ndist = 1 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ncode = 4 + (15 & u22), u22 >>>= 4, l2 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
|
|
37967
38011
|
e2.msg = "too many length or distance symbols", r22.mode = 30;
|
|
37968
38012
|
break;
|
|
37969
38013
|
}
|
|
37970
38014
|
r22.have = 0, r22.mode = 18;
|
|
37971
38015
|
case 18:
|
|
37972
38016
|
for (; r22.have < r22.ncode; ) {
|
|
37973
|
-
for (;
|
|
38017
|
+
for (; l2 < 3; ) {
|
|
37974
38018
|
if (0 === o2) break e;
|
|
37975
|
-
o2--,
|
|
38019
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37976
38020
|
}
|
|
37977
|
-
r22.lens[A2[r22.have++]] = 7 &
|
|
38021
|
+
r22.lens[A2[r22.have++]] = 7 & u22, u22 >>>= 3, l2 -= 3;
|
|
37978
38022
|
}
|
|
37979
38023
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
37980
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38024
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
37981
38025
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
37982
38026
|
break;
|
|
37983
38027
|
}
|
|
37984
38028
|
r22.have = 0, r22.mode = 19;
|
|
37985
38029
|
case 19:
|
|
37986
38030
|
for (; r22.have < r22.nlen + r22.ndist; ) {
|
|
37987
|
-
for (; g = (C2 = r22.lencode[
|
|
38031
|
+
for (; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
37988
38032
|
if (0 === o2) break e;
|
|
37989
|
-
o2--,
|
|
38033
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37990
38034
|
}
|
|
37991
|
-
if (b2 < 16)
|
|
38035
|
+
if (b2 < 16) u22 >>>= _2, l2 -= _2, r22.lens[r22.have++] = b2;
|
|
37992
38036
|
else {
|
|
37993
38037
|
if (16 === b2) {
|
|
37994
|
-
for (z2 = _2 + 2;
|
|
38038
|
+
for (z2 = _2 + 2; l2 < z2; ) {
|
|
37995
38039
|
if (0 === o2) break e;
|
|
37996
|
-
o2--,
|
|
38040
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37997
38041
|
}
|
|
37998
|
-
if (
|
|
38042
|
+
if (u22 >>>= _2, l2 -= _2, 0 === r22.have) {
|
|
37999
38043
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
38000
38044
|
break;
|
|
38001
38045
|
}
|
|
38002
|
-
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 &
|
|
38046
|
+
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u22), u22 >>>= 2, l2 -= 2;
|
|
38003
38047
|
} else if (17 === b2) {
|
|
38004
|
-
for (z2 = _2 + 3;
|
|
38048
|
+
for (z2 = _2 + 3; l2 < z2; ) {
|
|
38005
38049
|
if (0 === o2) break e;
|
|
38006
|
-
o2--,
|
|
38050
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38007
38051
|
}
|
|
38008
|
-
|
|
38052
|
+
l2 -= _2, k2 = 0, d2 = 3 + (7 & (u22 >>>= _2)), u22 >>>= 3, l2 -= 3;
|
|
38009
38053
|
} else {
|
|
38010
|
-
for (z2 = _2 + 7;
|
|
38054
|
+
for (z2 = _2 + 7; l2 < z2; ) {
|
|
38011
38055
|
if (0 === o2) break e;
|
|
38012
|
-
o2--,
|
|
38056
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38013
38057
|
}
|
|
38014
|
-
|
|
38058
|
+
l2 -= _2, k2 = 0, d2 = 11 + (127 & (u22 >>>= _2)), u22 >>>= 7, l2 -= 7;
|
|
38015
38059
|
}
|
|
38016
38060
|
if (r22.have + d2 > r22.nlen + r22.ndist) {
|
|
38017
38061
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
@@ -38025,11 +38069,11 @@ function requireJszip_min() {
|
|
|
38025
38069
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38026
38070
|
break;
|
|
38027
38071
|
}
|
|
38028
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38072
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
38029
38073
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38030
38074
|
break;
|
|
38031
38075
|
}
|
|
38032
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38076
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
|
|
38033
38077
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38034
38078
|
break;
|
|
38035
38079
|
}
|
|
@@ -38038,21 +38082,21 @@ function requireJszip_min() {
|
|
|
38038
38082
|
r22.mode = 21;
|
|
38039
38083
|
case 21:
|
|
38040
38084
|
if (6 <= o2 && 258 <= h22) {
|
|
38041
|
-
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38085
|
+
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38042
38086
|
break;
|
|
38043
38087
|
}
|
|
38044
|
-
for (r22.back = 0; g = (C2 = r22.lencode[
|
|
38088
|
+
for (r22.back = 0; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
38045
38089
|
if (0 === o2) break e;
|
|
38046
|
-
o2--,
|
|
38090
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38047
38091
|
}
|
|
38048
38092
|
if (g && 0 == (240 & g)) {
|
|
38049
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((
|
|
38093
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
|
|
38050
38094
|
if (0 === o2) break e;
|
|
38051
|
-
o2--,
|
|
38095
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38052
38096
|
}
|
|
38053
|
-
|
|
38097
|
+
u22 >>>= v2, l2 -= v2, r22.back += v2;
|
|
38054
38098
|
}
|
|
38055
|
-
if (
|
|
38099
|
+
if (u22 >>>= _2, l2 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
|
|
38056
38100
|
r22.mode = 26;
|
|
38057
38101
|
break;
|
|
38058
38102
|
}
|
|
@@ -38067,37 +38111,37 @@ function requireJszip_min() {
|
|
|
38067
38111
|
r22.extra = 15 & g, r22.mode = 22;
|
|
38068
38112
|
case 22:
|
|
38069
38113
|
if (r22.extra) {
|
|
38070
|
-
for (z2 = r22.extra;
|
|
38114
|
+
for (z2 = r22.extra; l2 < z2; ) {
|
|
38071
38115
|
if (0 === o2) break e;
|
|
38072
|
-
o2--,
|
|
38116
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38073
38117
|
}
|
|
38074
|
-
r22.length +=
|
|
38118
|
+
r22.length += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
|
|
38075
38119
|
}
|
|
38076
38120
|
r22.was = r22.length, r22.mode = 23;
|
|
38077
38121
|
case 23:
|
|
38078
|
-
for (; g = (C2 = r22.distcode[
|
|
38122
|
+
for (; g = (C2 = r22.distcode[u22 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
38079
38123
|
if (0 === o2) break e;
|
|
38080
|
-
o2--,
|
|
38124
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38081
38125
|
}
|
|
38082
38126
|
if (0 == (240 & g)) {
|
|
38083
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((
|
|
38127
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
|
|
38084
38128
|
if (0 === o2) break e;
|
|
38085
|
-
o2--,
|
|
38129
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38086
38130
|
}
|
|
38087
|
-
|
|
38131
|
+
u22 >>>= v2, l2 -= v2, r22.back += v2;
|
|
38088
38132
|
}
|
|
38089
|
-
if (
|
|
38133
|
+
if (u22 >>>= _2, l2 -= _2, r22.back += _2, 64 & g) {
|
|
38090
38134
|
e2.msg = "invalid distance code", r22.mode = 30;
|
|
38091
38135
|
break;
|
|
38092
38136
|
}
|
|
38093
38137
|
r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
|
|
38094
38138
|
case 24:
|
|
38095
38139
|
if (r22.extra) {
|
|
38096
|
-
for (z2 = r22.extra;
|
|
38140
|
+
for (z2 = r22.extra; l2 < z2; ) {
|
|
38097
38141
|
if (0 === o2) break e;
|
|
38098
|
-
o2--,
|
|
38142
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38099
38143
|
}
|
|
38100
|
-
r22.offset +=
|
|
38144
|
+
r22.offset += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
|
|
38101
38145
|
}
|
|
38102
38146
|
if (r22.offset > r22.dmax) {
|
|
38103
38147
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
@@ -38122,35 +38166,35 @@ function requireJszip_min() {
|
|
|
38122
38166
|
break;
|
|
38123
38167
|
case 27:
|
|
38124
38168
|
if (r22.wrap) {
|
|
38125
|
-
for (;
|
|
38169
|
+
for (; l2 < 32; ) {
|
|
38126
38170
|
if (0 === o2) break e;
|
|
38127
|
-
o2--,
|
|
38171
|
+
o2--, u22 |= n2[s22++] << l2, l2 += 8;
|
|
38128
38172
|
}
|
|
38129
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) :
|
|
38173
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u22 : L2(u22)) !== r22.check) {
|
|
38130
38174
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38131
38175
|
break;
|
|
38132
38176
|
}
|
|
38133
|
-
|
|
38177
|
+
l2 = u22 = 0;
|
|
38134
38178
|
}
|
|
38135
38179
|
r22.mode = 28;
|
|
38136
38180
|
case 28:
|
|
38137
38181
|
if (r22.wrap && r22.flags) {
|
|
38138
|
-
for (;
|
|
38182
|
+
for (; l2 < 32; ) {
|
|
38139
38183
|
if (0 === o2) break e;
|
|
38140
|
-
o2--,
|
|
38184
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38141
38185
|
}
|
|
38142
|
-
if (
|
|
38186
|
+
if (u22 !== (4294967295 & r22.total)) {
|
|
38143
38187
|
e2.msg = "incorrect length check", r22.mode = 30;
|
|
38144
38188
|
break;
|
|
38145
38189
|
}
|
|
38146
|
-
|
|
38190
|
+
l2 = u22 = 0;
|
|
38147
38191
|
}
|
|
38148
38192
|
r22.mode = 29;
|
|
38149
38193
|
case 29:
|
|
38150
|
-
|
|
38194
|
+
x2 = 1;
|
|
38151
38195
|
break e;
|
|
38152
38196
|
case 30:
|
|
38153
|
-
|
|
38197
|
+
x2 = -3;
|
|
38154
38198
|
break e;
|
|
38155
38199
|
case 31:
|
|
38156
38200
|
return -4;
|
|
@@ -38158,7 +38202,7 @@ function requireJszip_min() {
|
|
|
38158
38202
|
default:
|
|
38159
38203
|
return U2;
|
|
38160
38204
|
}
|
|
38161
|
-
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38205
|
+
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, (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) : O(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) && x2 === N2 && (x2 = -5), x2);
|
|
38162
38206
|
}, r2.inflateEnd = function(e2) {
|
|
38163
38207
|
if (!e2 || !e2.state) return U2;
|
|
38164
38208
|
var t2 = e2.state;
|
|
@@ -38168,33 +38212,33 @@ function requireJszip_min() {
|
|
|
38168
38212
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38169
38213
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38170
38214
|
var r22, n2 = t2.length;
|
|
38171
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38215
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
38172
38216
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38173
38217
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38174
38218
|
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];
|
|
38175
38219
|
t.exports = function(e2, t2, r22, n, i, s2, a, o) {
|
|
38176
|
-
var h2,
|
|
38177
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38178
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38179
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38220
|
+
var h2, u3, l, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
|
|
38221
|
+
for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
|
|
38222
|
+
for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
|
|
38223
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
|
|
38180
38224
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
|
|
38181
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38182
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38225
|
+
for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
|
|
38226
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
|
|
38183
38227
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38184
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38228
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
|
|
38185
38229
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
|
|
38186
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38230
|
+
if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38187
38231
|
for (; ; ) {
|
|
38188
|
-
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 =
|
|
38232
|
+
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u3 = 1 << x2; i[c2 + (E2 >> S2) + (u3 -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u3; ) ;
|
|
38189
38233
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38190
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38234
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
|
|
38191
38235
|
if (b2 === w2) break;
|
|
38192
38236
|
b2 = t2[r22 + a[v2]];
|
|
38193
38237
|
}
|
|
38194
|
-
if (k2 < b2 && (E2 & f2) !==
|
|
38195
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38196
|
-
if (C2 += 1 <<
|
|
38197
|
-
i[
|
|
38238
|
+
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38239
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
|
|
38240
|
+
if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38241
|
+
i[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
|
|
38198
38242
|
}
|
|
38199
38243
|
}
|
|
38200
38244
|
return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38206,7 +38250,7 @@ function requireJszip_min() {
|
|
|
38206
38250
|
function n(e2) {
|
|
38207
38251
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38208
38252
|
}
|
|
38209
|
-
var s2 = 0, a = 29,
|
|
38253
|
+
var s2 = 0, a = 29, u3 = 256, l = u3 + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l + 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], x2 = [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 * (l + 2));
|
|
38210
38254
|
n(z2);
|
|
38211
38255
|
var C2 = new Array(2 * f2);
|
|
38212
38256
|
n(C2);
|
|
@@ -38216,7 +38260,7 @@ function requireJszip_min() {
|
|
|
38216
38260
|
n(A2);
|
|
38217
38261
|
var I2 = new Array(a);
|
|
38218
38262
|
n(I2);
|
|
38219
|
-
var
|
|
38263
|
+
var O, B2, R, T2 = new Array(f2);
|
|
38220
38264
|
function D2(e2, t2, r22, n2, i2) {
|
|
38221
38265
|
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;
|
|
38222
38266
|
}
|
|
@@ -38249,7 +38293,7 @@ function requireJszip_min() {
|
|
|
38249
38293
|
}
|
|
38250
38294
|
function W2(e2) {
|
|
38251
38295
|
var t2;
|
|
38252
|
-
for (t2 = 0; t2 <
|
|
38296
|
+
for (t2 = 0; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
|
|
38253
38297
|
for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
|
|
38254
38298
|
for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
|
|
38255
38299
|
e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
|
|
@@ -38267,41 +38311,41 @@ function requireJszip_min() {
|
|
|
38267
38311
|
}
|
|
38268
38312
|
function K2(e2, t2, r22) {
|
|
38269
38313
|
var n2, i2, s22, a2, o2 = 0;
|
|
38270
|
-
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]) +
|
|
38314
|
+
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]) + u3 + 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 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
|
|
38271
38315
|
L2(e2, m2, t2);
|
|
38272
38316
|
}
|
|
38273
38317
|
function Y2(e2, t2) {
|
|
38274
|
-
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,
|
|
38275
|
-
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] =
|
|
38276
|
-
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] =
|
|
38277
|
-
for (t2.max_code =
|
|
38318
|
+
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, u22 = -1;
|
|
38319
|
+
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u22 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
|
|
38320
|
+
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u22 < 2 ? ++u22 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
|
|
38321
|
+
for (t2.max_code = u22, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
|
|
38278
38322
|
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; ) ;
|
|
38279
38323
|
e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
|
|
38280
|
-
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree,
|
|
38324
|
+
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u32 = t3.max_code, l2 = 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;
|
|
38281
38325
|
for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
|
|
38282
|
-
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,
|
|
38326
|
+
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, u32 < 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 * (l2[2 * n3 + 1] + a3)));
|
|
38283
38327
|
if (0 !== m22) {
|
|
38284
38328
|
do {
|
|
38285
38329
|
for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
|
|
38286
38330
|
e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
|
|
38287
38331
|
} while (0 < m22);
|
|
38288
|
-
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; )
|
|
38332
|
+
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u32 < (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--);
|
|
38289
38333
|
}
|
|
38290
|
-
})(e2, t2), Z(s22,
|
|
38334
|
+
})(e2, t2), Z(s22, u22, e2.bl_count);
|
|
38291
38335
|
}
|
|
38292
38336
|
function X2(e2, t2, r22) {
|
|
38293
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38294
|
-
for (0 === a2 && (h22 = 138,
|
|
38337
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
|
|
38338
|
+
for (0 === a2 && (h22 = 138, u22 = 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 < u22 ? 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, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
|
|
38295
38339
|
}
|
|
38296
38340
|
function V2(e2, t2, r22) {
|
|
38297
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38298
|
-
for (0 === a2 && (h22 = 138,
|
|
38299
|
-
if (o2 <
|
|
38341
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
|
|
38342
|
+
for (0 === a2 && (h22 = 138, u22 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
|
|
38343
|
+
if (o2 < u22) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
|
|
38300
38344
|
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));
|
|
38301
|
-
s22 = i2,
|
|
38345
|
+
s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38302
38346
|
}
|
|
38303
38347
|
}
|
|
38304
|
-
n(
|
|
38348
|
+
n(T2);
|
|
38305
38349
|
var q2 = false;
|
|
38306
38350
|
function J2(e2, t2, r22, n2) {
|
|
38307
38351
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38312,23 +38356,23 @@ function requireJszip_min() {
|
|
|
38312
38356
|
q2 || ((function() {
|
|
38313
38357
|
var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
|
|
38314
38358
|
for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38315
|
-
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (
|
|
38316
|
-
for (i2 >>= 7; n2 < f2; n2++) for (
|
|
38359
|
+
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
|
|
38360
|
+
for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
|
|
38317
38361
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38318
38362
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38319
38363
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38320
38364
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38321
38365
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38322
|
-
for (Z(z2,
|
|
38323
|
-
|
|
38324
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38366
|
+
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38367
|
+
O = new D2(z2, w2, u3 + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
|
|
38368
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38325
38369
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38326
38370
|
var i2, s22, a2 = 0;
|
|
38327
38371
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
38328
38372
|
var t3, r3 = 4093624447;
|
|
38329
38373
|
for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
|
|
38330
38374
|
if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
|
|
38331
|
-
for (t3 = 32; t3 <
|
|
38375
|
+
for (t3 = 32; t3 < u3; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
|
|
38332
38376
|
return o;
|
|
38333
38377
|
})(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
|
|
38334
38378
|
var t3;
|
|
@@ -38340,7 +38384,7 @@ function requireJszip_min() {
|
|
|
38340
38384
|
V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
|
|
38341
38385
|
})(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);
|
|
38342
38386
|
}, r2._tr_tally = function(e2, t2, r22) {
|
|
38343
|
-
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] +
|
|
38387
|
+
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] + u3 + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
38344
38388
|
}, r2._tr_align = function(e2) {
|
|
38345
38389
|
P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
|
|
38346
38390
|
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);
|
|
@@ -38354,7 +38398,7 @@ function requireJszip_min() {
|
|
|
38354
38398
|
(function(e2) {
|
|
38355
38399
|
!(function(r22, n) {
|
|
38356
38400
|
if (!r22.setImmediate) {
|
|
38357
|
-
var i, s2, t2, a, o = 1, h2 = {},
|
|
38401
|
+
var i, s2, t2, a, o = 1, h2 = {}, u3 = false, l = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
|
|
38358
38402
|
e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
|
|
38359
38403
|
process$1$1.nextTick(function() {
|
|
38360
38404
|
c2(e4);
|
|
@@ -38372,8 +38416,8 @@ function requireJszip_min() {
|
|
|
38372
38416
|
c2(e4.data);
|
|
38373
38417
|
}, function(e4) {
|
|
38374
38418
|
t2.port2.postMessage(e4);
|
|
38375
|
-
}) :
|
|
38376
|
-
var t3 =
|
|
38419
|
+
}) : l && "onreadystatechange" in l.createElement("script") ? (s2 = l.documentElement, function(e4) {
|
|
38420
|
+
var t3 = l.createElement("script");
|
|
38377
38421
|
t3.onreadystatechange = function() {
|
|
38378
38422
|
c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
|
|
38379
38423
|
}, s2.appendChild(t3);
|
|
@@ -38390,11 +38434,11 @@ function requireJszip_min() {
|
|
|
38390
38434
|
delete h2[e4];
|
|
38391
38435
|
}
|
|
38392
38436
|
function c2(e4) {
|
|
38393
|
-
if (
|
|
38437
|
+
if (u3) setTimeout(c2, 0, e4);
|
|
38394
38438
|
else {
|
|
38395
38439
|
var t3 = h2[e4];
|
|
38396
38440
|
if (t3) {
|
|
38397
|
-
|
|
38441
|
+
u3 = true;
|
|
38398
38442
|
try {
|
|
38399
38443
|
!(function(e5) {
|
|
38400
38444
|
var t4 = e5.callback, r3 = e5.args;
|
|
@@ -38416,7 +38460,7 @@ function requireJszip_min() {
|
|
|
38416
38460
|
}
|
|
38417
38461
|
})(t3);
|
|
38418
38462
|
} finally {
|
|
38419
|
-
f2(e4),
|
|
38463
|
+
f2(e4), u3 = false;
|
|
38420
38464
|
}
|
|
38421
38465
|
}
|
|
38422
38466
|
}
|
|
@@ -39397,17 +39441,17 @@ function deepActiveElement(doc2) {
|
|
|
39397
39441
|
elt = elt.shadowRoot.activeElement;
|
|
39398
39442
|
return elt;
|
|
39399
39443
|
}
|
|
39400
|
-
function caretFromPoint(doc2,
|
|
39444
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
39401
39445
|
if (doc2.caretPositionFromPoint) {
|
|
39402
39446
|
try {
|
|
39403
|
-
let pos = doc2.caretPositionFromPoint(
|
|
39447
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
39404
39448
|
if (pos)
|
|
39405
39449
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
39406
39450
|
} catch (_2) {
|
|
39407
39451
|
}
|
|
39408
39452
|
}
|
|
39409
39453
|
if (doc2.caretRangeFromPoint) {
|
|
39410
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
39454
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
39411
39455
|
if (range2)
|
|
39412
39456
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
39413
39457
|
}
|
|
@@ -39506,8 +39550,8 @@ function scrollRectIntoView(view, rect, startDOM) {
|
|
|
39506
39550
|
function storeScrollPos(view) {
|
|
39507
39551
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
39508
39552
|
let refDOM, refTop;
|
|
39509
|
-
for (let
|
|
39510
|
-
let dom = view.root.elementFromPoint(
|
|
39553
|
+
for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
39554
|
+
let dom = view.root.elementFromPoint(x2, y2);
|
|
39511
39555
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
39512
39556
|
continue;
|
|
39513
39557
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -39803,8 +39847,8 @@ function coordsAtPos(view, pos, side) {
|
|
|
39803
39847
|
function flattenV(rect, left2) {
|
|
39804
39848
|
if (rect.width == 0)
|
|
39805
39849
|
return rect;
|
|
39806
|
-
let
|
|
39807
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
39850
|
+
let x2 = left2 ? rect.left : rect.right;
|
|
39851
|
+
return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
|
|
39808
39852
|
}
|
|
39809
39853
|
function flattenH(rect, top2) {
|
|
39810
39854
|
if (rect.height == 0)
|
|
@@ -44811,10 +44855,10 @@ const createTimeoutClass = (clearFunction) => class TT {
|
|
|
44811
44855
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
44812
44856
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
44813
44857
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
44814
|
-
const sum0to256 = (
|
|
44815
|
-
const sum1to256 = (
|
|
44816
|
-
const sigma0to256 = (
|
|
44817
|
-
const sigma1to256 = (
|
|
44858
|
+
const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
|
|
44859
|
+
const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
|
|
44860
|
+
const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
|
|
44861
|
+
const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
|
|
44818
44862
|
const K = new Uint32Array([
|
|
44819
44863
|
1116352408,
|
|
44820
44864
|
1899447441,
|
|
@@ -45643,9 +45687,9 @@ const equalAttrs = (pattrs, yattrs) => {
|
|
|
45643
45687
|
let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
|
|
45644
45688
|
for (let i = 0; i < keys2.length && eq2; i++) {
|
|
45645
45689
|
const key2 = keys2[i];
|
|
45646
|
-
const
|
|
45690
|
+
const l = pattrs[key2];
|
|
45647
45691
|
const r2 = yattrs[key2];
|
|
45648
|
-
eq2 = key2 === "ychange" ||
|
|
45692
|
+
eq2 = key2 === "ychange" || l === r2 || isObject$1(l) && isObject$1(r2) && equalAttrs(l, r2);
|
|
45649
45693
|
}
|
|
45650
45694
|
return eq2;
|
|
45651
45695
|
};
|
|
@@ -50366,6 +50410,7 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
|
|
|
50366
50410
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
50367
50411
|
ydoc = ydoc || editor.options.ydoc;
|
|
50368
50412
|
if (!ydoc) return;
|
|
50413
|
+
if (!editor || editor.isDestroyed) return;
|
|
50369
50414
|
const metaMap = ydoc.getMap("meta");
|
|
50370
50415
|
const docxValue = metaMap.get("docx");
|
|
50371
50416
|
let docx = [];
|
|
@@ -51857,6 +51902,16 @@ const Collaboration = Extension.create({
|
|
|
51857
51902
|
});
|
|
51858
51903
|
});
|
|
51859
51904
|
return [syncPlugin];
|
|
51905
|
+
},
|
|
51906
|
+
addCommands() {
|
|
51907
|
+
return {
|
|
51908
|
+
addImageToCollaboration: ({ mediaPath, fileData }) => () => {
|
|
51909
|
+
if (!this.options.ydoc || !mediaPath || !fileData) return false;
|
|
51910
|
+
const mediaMap = this.options.ydoc.getMap("media");
|
|
51911
|
+
mediaMap.set(mediaPath, fileData);
|
|
51912
|
+
return true;
|
|
51913
|
+
}
|
|
51914
|
+
};
|
|
51860
51915
|
}
|
|
51861
51916
|
});
|
|
51862
51917
|
const createSyncPlugin = (ydoc, editor) => {
|
|
@@ -53709,7 +53764,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53709
53764
|
{ default: remarkStringify },
|
|
53710
53765
|
{ default: remarkGfm }
|
|
53711
53766
|
] = await Promise.all([
|
|
53712
|
-
Promise.resolve().then(() => require("./index-
|
|
53767
|
+
Promise.resolve().then(() => require("./index-CEL3ujoV-C85AsK84.cjs")),
|
|
53713
53768
|
Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
|
|
53714
53769
|
Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
|
|
53715
53770
|
Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
|
|
@@ -53927,7 +53982,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53927
53982
|
* @returns {Object | void} Migration results
|
|
53928
53983
|
*/
|
|
53929
53984
|
processCollaborationMigrations() {
|
|
53930
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.28.
|
|
53985
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.28.4");
|
|
53931
53986
|
if (!this.options.ydoc) return;
|
|
53932
53987
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
53933
53988
|
let docVersion = metaMap.get("version");
|
|
@@ -55796,16 +55851,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
|
|
|
55796
55851
|
const { state: state2, dom } = view;
|
|
55797
55852
|
const { selection } = state2;
|
|
55798
55853
|
const containerRect = dom.getBoundingClientRect();
|
|
55799
|
-
let
|
|
55854
|
+
let x2, y2;
|
|
55800
55855
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
55801
|
-
|
|
55856
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
55802
55857
|
y2 = eventLocation.clientY - containerRect.top;
|
|
55803
55858
|
} else {
|
|
55804
55859
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
55805
|
-
|
|
55860
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
55806
55861
|
y2 = cursorCoords.top - containerRect.top;
|
|
55807
55862
|
}
|
|
55808
|
-
return { left:
|
|
55863
|
+
return { left: x2, top: y2 };
|
|
55809
55864
|
}
|
|
55810
55865
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
55811
55866
|
const SlashMenu = Extension.create({
|
|
@@ -56084,17 +56139,17 @@ class StructuredContentViewBase {
|
|
|
56084
56139
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
56085
56140
|
return;
|
|
56086
56141
|
}
|
|
56087
|
-
let
|
|
56142
|
+
let x2 = 0;
|
|
56088
56143
|
let y2 = 0;
|
|
56089
56144
|
if (this.dom !== dragHandle) {
|
|
56090
56145
|
const domBox = this.dom.getBoundingClientRect();
|
|
56091
56146
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
56092
56147
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
56093
56148
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
56094
|
-
|
|
56149
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
56095
56150
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
56096
56151
|
}
|
|
56097
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
56152
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
56098
56153
|
const pos = this.getPos();
|
|
56099
56154
|
if (typeof pos !== "number") {
|
|
56100
56155
|
return;
|
|
@@ -64180,24 +64235,24 @@ function parseToRgba(color) {
|
|
|
64180
64235
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
64181
64236
|
if (reducedHexMatch) {
|
|
64182
64237
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
64183
|
-
return [...arr.slice(0, 3).map((
|
|
64238
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
64184
64239
|
}
|
|
64185
64240
|
const hexMatch = hexRegex$1.exec(normalizedColor);
|
|
64186
64241
|
if (hexMatch) {
|
|
64187
64242
|
const arr = Array.from(hexMatch).slice(1);
|
|
64188
|
-
return [...arr.slice(0, 3).map((
|
|
64243
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
64189
64244
|
}
|
|
64190
64245
|
const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
|
|
64191
64246
|
if (rgbaMatch) {
|
|
64192
64247
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
64193
|
-
return [...arr.slice(0, 3).map((
|
|
64248
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
64194
64249
|
}
|
|
64195
64250
|
const hslaMatch = hslaRegex$1.exec(normalizedColor);
|
|
64196
64251
|
if (hslaMatch) {
|
|
64197
|
-
const [h2, s2,
|
|
64252
|
+
const [h2, s2, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
64198
64253
|
if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
|
|
64199
|
-
if (guard(0, 100,
|
|
64200
|
-
return [...hslToRgb(h2, s2,
|
|
64254
|
+
if (guard(0, 100, l) !== l) throw new ColorError$1(color);
|
|
64255
|
+
return [...hslToRgb(h2, s2, l), Number.isNaN(a) ? 1 : a];
|
|
64201
64256
|
}
|
|
64202
64257
|
throw new ColorError$1(color);
|
|
64203
64258
|
}
|
|
@@ -64209,7 +64264,7 @@ function hash$2(str) {
|
|
|
64209
64264
|
}
|
|
64210
64265
|
return (hash2 >>> 0) % 2341;
|
|
64211
64266
|
}
|
|
64212
|
-
const colorToInt = (
|
|
64267
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
64213
64268
|
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) => {
|
|
64214
64269
|
const key2 = colorToInt(next.substring(0, 3));
|
|
64215
64270
|
const hex2 = colorToInt(next.substring(3)).toString(16);
|
|
@@ -64236,12 +64291,12 @@ const roundColor = (color) => {
|
|
|
64236
64291
|
return Math.round(color * 255);
|
|
64237
64292
|
};
|
|
64238
64293
|
const hslToRgb = (hue, saturation, lightness) => {
|
|
64239
|
-
let
|
|
64294
|
+
let l = lightness / 100;
|
|
64240
64295
|
if (saturation === 0) {
|
|
64241
|
-
return [
|
|
64296
|
+
return [l, l, l].map(roundColor);
|
|
64242
64297
|
}
|
|
64243
64298
|
const huePrime = (hue % 360 + 360) % 360 / 60;
|
|
64244
|
-
const chroma = (1 - Math.abs(2 *
|
|
64299
|
+
const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
|
|
64245
64300
|
const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
64246
64301
|
let red = 0;
|
|
64247
64302
|
let green = 0;
|
|
@@ -64265,7 +64320,7 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64265
64320
|
red = chroma;
|
|
64266
64321
|
blue = secondComponent;
|
|
64267
64322
|
}
|
|
64268
|
-
const lightnessModification =
|
|
64323
|
+
const lightnessModification = l - chroma / 2;
|
|
64269
64324
|
const finalRed = red + lightnessModification;
|
|
64270
64325
|
const finalGreen = green + lightnessModification;
|
|
64271
64326
|
const finalBlue = blue + lightnessModification;
|
|
@@ -64273,8 +64328,8 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64273
64328
|
};
|
|
64274
64329
|
function toHex(color) {
|
|
64275
64330
|
const [r2, g, b2, a] = parseToRgba(color);
|
|
64276
|
-
let hex2 = (
|
|
64277
|
-
const h2 = guard(0, 255,
|
|
64331
|
+
let hex2 = (x2) => {
|
|
64332
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
64278
64333
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
64279
64334
|
};
|
|
64280
64335
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
|
|
@@ -66378,10 +66433,10 @@ const Image = Node$1.create({
|
|
|
66378
66433
|
let minX = 0;
|
|
66379
66434
|
let minY = 0;
|
|
66380
66435
|
let maxY = 0;
|
|
66381
|
-
attrs.polygon.forEach(([
|
|
66382
|
-
if (floatRight &&
|
|
66383
|
-
if (
|
|
66384
|
-
if (
|
|
66436
|
+
attrs.polygon.forEach(([x2, y2]) => {
|
|
66437
|
+
if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
|
|
66438
|
+
if (x2 > maxX) maxX = x2;
|
|
66439
|
+
if (x2 < minX) minX = x2;
|
|
66385
66440
|
if (y2 > maxY) maxY = y2;
|
|
66386
66441
|
if (y2 < minY) minY = y2;
|
|
66387
66442
|
});
|
|
@@ -66390,7 +66445,7 @@ const Image = Node$1.create({
|
|
|
66390
66445
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
66391
66446
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
66392
66447
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
66393
|
-
const points = attrs.polygon.map(([
|
|
66448
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
66394
66449
|
style2 += `shape-outside: polygon(${points});`;
|
|
66395
66450
|
}
|
|
66396
66451
|
break;
|
|
@@ -69755,42 +69810,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
|
|
|
69755
69810
|
function r(t) {
|
|
69756
69811
|
if (!t) return null;
|
|
69757
69812
|
let e = {};
|
|
69758
|
-
return M.forEach((
|
|
69759
|
-
let L2 = t[
|
|
69813
|
+
return M.forEach((l) => {
|
|
69814
|
+
let L2 = t[l];
|
|
69760
69815
|
if (L2 !== void 0)
|
|
69761
|
-
if (
|
|
69816
|
+
if (l === "strokeWidth") {
|
|
69762
69817
|
if (typeof L2 == "number") e.strokeWidth = L2;
|
|
69763
69818
|
else if (typeof L2 == "string") {
|
|
69764
69819
|
let o = Number(L2);
|
|
69765
69820
|
Number.isFinite(o) && (e.strokeWidth = o);
|
|
69766
69821
|
}
|
|
69767
|
-
} else typeof L2 == "string" && (e[
|
|
69822
|
+
} else typeof L2 == "string" && (e[l] = L2);
|
|
69768
69823
|
}), Object.keys(e).length ? e : null;
|
|
69769
69824
|
}
|
|
69770
69825
|
function A(t, e) {
|
|
69771
|
-
let
|
|
69772
|
-
if (!e) return
|
|
69826
|
+
let l = t.map((o) => ({ ...o }));
|
|
69827
|
+
if (!e) return l;
|
|
69773
69828
|
let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
|
|
69774
|
-
return
|
|
69829
|
+
return l.map((o, i) => {
|
|
69775
69830
|
let n = L2(o, i);
|
|
69776
69831
|
return n ? { ...o, ...n } : o;
|
|
69777
69832
|
});
|
|
69778
69833
|
}
|
|
69779
69834
|
function f(t) {
|
|
69780
|
-
let { preset: e, styleOverrides:
|
|
69835
|
+
let { preset: e, styleOverrides: l } = t;
|
|
69781
69836
|
if (!e) throw new Error("createPresetShape requires a preset name.");
|
|
69782
69837
|
let L2 = d[e];
|
|
69783
69838
|
if (!L2) throw new Error(`Unknown preset shape: ${e}`);
|
|
69784
|
-
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths,
|
|
69839
|
+
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l) };
|
|
69785
69840
|
}
|
|
69786
69841
|
function k(t) {
|
|
69787
|
-
let e = f(t),
|
|
69842
|
+
let e = f(t), l = e.paths.map((L2) => {
|
|
69788
69843
|
let o = [`d="${L2.d}"`];
|
|
69789
69844
|
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(" ")} />`;
|
|
69790
69845
|
}).join(`
|
|
69791
69846
|
`);
|
|
69792
69847
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
|
|
69793
|
-
${
|
|
69848
|
+
${l}
|
|
69794
69849
|
</svg>`;
|
|
69795
69850
|
}
|
|
69796
69851
|
class VectorShapeView {
|
|
@@ -71524,7 +71579,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71524
71579
|
}
|
|
71525
71580
|
var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
|
|
71526
71581
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
71527
|
-
var
|
|
71582
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
71528
71583
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
71529
71584
|
var width = clientRect2.width / scaleX;
|
|
71530
71585
|
var height = clientRect2.height / scaleY;
|
|
@@ -71532,10 +71587,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71532
71587
|
width,
|
|
71533
71588
|
height,
|
|
71534
71589
|
top: y2,
|
|
71535
|
-
right:
|
|
71590
|
+
right: x2 + width,
|
|
71536
71591
|
bottom: y2 + height,
|
|
71537
|
-
left:
|
|
71538
|
-
x,
|
|
71592
|
+
left: x2,
|
|
71593
|
+
x: x2,
|
|
71539
71594
|
y: y2
|
|
71540
71595
|
};
|
|
71541
71596
|
}
|
|
@@ -71736,25 +71791,25 @@ var unsetSides = {
|
|
|
71736
71791
|
left: "auto"
|
|
71737
71792
|
};
|
|
71738
71793
|
function roundOffsetsByDPR(_ref, win) {
|
|
71739
|
-
var
|
|
71794
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
71740
71795
|
var dpr = win.devicePixelRatio || 1;
|
|
71741
71796
|
return {
|
|
71742
|
-
x: round$1(
|
|
71797
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
71743
71798
|
y: round$1(y2 * dpr) / dpr || 0
|
|
71744
71799
|
};
|
|
71745
71800
|
}
|
|
71746
71801
|
function mapToStyles(_ref2) {
|
|
71747
71802
|
var _Object$assign2;
|
|
71748
71803
|
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;
|
|
71749
|
-
var _offsets$x = offsets.x,
|
|
71804
|
+
var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
71750
71805
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
71751
|
-
x,
|
|
71806
|
+
x: x2,
|
|
71752
71807
|
y: y2
|
|
71753
71808
|
}) : {
|
|
71754
|
-
x,
|
|
71809
|
+
x: x2,
|
|
71755
71810
|
y: y2
|
|
71756
71811
|
};
|
|
71757
|
-
|
|
71812
|
+
x2 = _ref3.x;
|
|
71758
71813
|
y2 = _ref3.y;
|
|
71759
71814
|
var hasX = offsets.hasOwnProperty("x");
|
|
71760
71815
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -71788,27 +71843,27 @@ function mapToStyles(_ref2) {
|
|
|
71788
71843
|
// $FlowFixMe[prop-missing]
|
|
71789
71844
|
offsetParent[widthProp]
|
|
71790
71845
|
);
|
|
71791
|
-
|
|
71792
|
-
|
|
71846
|
+
x2 -= offsetX - popperRect.width;
|
|
71847
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
71793
71848
|
}
|
|
71794
71849
|
}
|
|
71795
71850
|
var commonStyles = Object.assign({
|
|
71796
71851
|
position
|
|
71797
71852
|
}, adaptive && unsetSides);
|
|
71798
71853
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
71799
|
-
x,
|
|
71854
|
+
x: x2,
|
|
71800
71855
|
y: y2
|
|
71801
71856
|
}, getWindow$1(popper2)) : {
|
|
71802
|
-
x,
|
|
71857
|
+
x: x2,
|
|
71803
71858
|
y: y2
|
|
71804
71859
|
};
|
|
71805
|
-
|
|
71860
|
+
x2 = _ref4.x;
|
|
71806
71861
|
y2 = _ref4.y;
|
|
71807
71862
|
if (gpuAcceleration) {
|
|
71808
71863
|
var _Object$assign;
|
|
71809
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
71864
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
|
|
71810
71865
|
}
|
|
71811
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
71866
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
71812
71867
|
}
|
|
71813
71868
|
function computeStyles(_ref5) {
|
|
71814
71869
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -71922,21 +71977,21 @@ function getViewportRect$1(element, strategy) {
|
|
|
71922
71977
|
var visualViewport = win.visualViewport;
|
|
71923
71978
|
var width = html.clientWidth;
|
|
71924
71979
|
var height = html.clientHeight;
|
|
71925
|
-
var
|
|
71980
|
+
var x2 = 0;
|
|
71926
71981
|
var y2 = 0;
|
|
71927
71982
|
if (visualViewport) {
|
|
71928
71983
|
width = visualViewport.width;
|
|
71929
71984
|
height = visualViewport.height;
|
|
71930
71985
|
var layoutViewport = isLayoutViewport();
|
|
71931
71986
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
71932
|
-
|
|
71987
|
+
x2 = visualViewport.offsetLeft;
|
|
71933
71988
|
y2 = visualViewport.offsetTop;
|
|
71934
71989
|
}
|
|
71935
71990
|
}
|
|
71936
71991
|
return {
|
|
71937
71992
|
width,
|
|
71938
71993
|
height,
|
|
71939
|
-
x:
|
|
71994
|
+
x: x2 + getWindowScrollBarX$1(element),
|
|
71940
71995
|
y: y2
|
|
71941
71996
|
};
|
|
71942
71997
|
}
|
|
@@ -71947,15 +72002,15 @@ function getDocumentRect$1(element) {
|
|
|
71947
72002
|
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
71948
72003
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
71949
72004
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
71950
|
-
var
|
|
72005
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
71951
72006
|
var y2 = -winScroll.scrollTop;
|
|
71952
72007
|
if (getComputedStyle$2(body || html).direction === "rtl") {
|
|
71953
|
-
|
|
72008
|
+
x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
71954
72009
|
}
|
|
71955
72010
|
return {
|
|
71956
72011
|
width,
|
|
71957
72012
|
height,
|
|
71958
|
-
x,
|
|
72013
|
+
x: x2,
|
|
71959
72014
|
y: y2
|
|
71960
72015
|
};
|
|
71961
72016
|
}
|
|
@@ -72332,9 +72387,9 @@ function offset(_ref2) {
|
|
|
72332
72387
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
72333
72388
|
return acc;
|
|
72334
72389
|
}, {});
|
|
72335
|
-
var _data$state$placement = data[state2.placement],
|
|
72390
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
72336
72391
|
if (state2.modifiersData.popperOffsets != null) {
|
|
72337
|
-
state2.modifiersData.popperOffsets.x +=
|
|
72392
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
72338
72393
|
state2.modifiersData.popperOffsets.y += y2;
|
|
72339
72394
|
}
|
|
72340
72395
|
state2.modifiersData[name] = data;
|
|
@@ -74284,7 +74339,7 @@ function getPaddingObject(padding) {
|
|
|
74284
74339
|
}
|
|
74285
74340
|
function rectToClientRect(rect) {
|
|
74286
74341
|
const {
|
|
74287
|
-
x,
|
|
74342
|
+
x: x2,
|
|
74288
74343
|
y: y2,
|
|
74289
74344
|
width,
|
|
74290
74345
|
height
|
|
@@ -74293,10 +74348,10 @@ function rectToClientRect(rect) {
|
|
|
74293
74348
|
width,
|
|
74294
74349
|
height,
|
|
74295
74350
|
top: y2,
|
|
74296
|
-
left:
|
|
74297
|
-
right:
|
|
74351
|
+
left: x2,
|
|
74352
|
+
right: x2 + width,
|
|
74298
74353
|
bottom: y2 + height,
|
|
74299
|
-
x,
|
|
74354
|
+
x: x2,
|
|
74300
74355
|
y: y2
|
|
74301
74356
|
};
|
|
74302
74357
|
}
|
|
@@ -74370,7 +74425,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74370
74425
|
strategy
|
|
74371
74426
|
});
|
|
74372
74427
|
let {
|
|
74373
|
-
x,
|
|
74428
|
+
x: x2,
|
|
74374
74429
|
y: y2
|
|
74375
74430
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
74376
74431
|
let statefulPlacement = placement;
|
|
@@ -74387,7 +74442,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74387
74442
|
data,
|
|
74388
74443
|
reset
|
|
74389
74444
|
} = await fn2({
|
|
74390
|
-
x,
|
|
74445
|
+
x: x2,
|
|
74391
74446
|
y: y2,
|
|
74392
74447
|
initialPlacement: placement,
|
|
74393
74448
|
placement: statefulPlacement,
|
|
@@ -74400,7 +74455,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74400
74455
|
floating
|
|
74401
74456
|
}
|
|
74402
74457
|
});
|
|
74403
|
-
|
|
74458
|
+
x2 = nextX != null ? nextX : x2;
|
|
74404
74459
|
y2 = nextY != null ? nextY : y2;
|
|
74405
74460
|
middlewareData = {
|
|
74406
74461
|
...middlewareData,
|
|
@@ -74423,7 +74478,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74423
74478
|
}) : reset.rects;
|
|
74424
74479
|
}
|
|
74425
74480
|
({
|
|
74426
|
-
x,
|
|
74481
|
+
x: x2,
|
|
74427
74482
|
y: y2
|
|
74428
74483
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
74429
74484
|
}
|
|
@@ -74431,7 +74486,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74431
74486
|
}
|
|
74432
74487
|
}
|
|
74433
74488
|
return {
|
|
74434
|
-
x,
|
|
74489
|
+
x: x2,
|
|
74435
74490
|
y: y2,
|
|
74436
74491
|
placement: statefulPlacement,
|
|
74437
74492
|
strategy,
|
|
@@ -74444,7 +74499,7 @@ async function detectOverflow(state2, options) {
|
|
|
74444
74499
|
options = {};
|
|
74445
74500
|
}
|
|
74446
74501
|
const {
|
|
74447
|
-
x,
|
|
74502
|
+
x: x2,
|
|
74448
74503
|
y: y2,
|
|
74449
74504
|
platform: platform2,
|
|
74450
74505
|
rects,
|
|
@@ -74468,7 +74523,7 @@ async function detectOverflow(state2, options) {
|
|
|
74468
74523
|
strategy
|
|
74469
74524
|
}));
|
|
74470
74525
|
const rect = elementContext === "floating" ? {
|
|
74471
|
-
x,
|
|
74526
|
+
x: x2,
|
|
74472
74527
|
y: y2,
|
|
74473
74528
|
width: rects.floating.width,
|
|
74474
74529
|
height: rects.floating.height
|
|
@@ -74737,16 +74792,16 @@ function getScale(element) {
|
|
|
74737
74792
|
height,
|
|
74738
74793
|
$: $2
|
|
74739
74794
|
} = getCssDimensions(domElement);
|
|
74740
|
-
let
|
|
74795
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
74741
74796
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
74742
|
-
if (!
|
|
74743
|
-
|
|
74797
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
74798
|
+
x2 = 1;
|
|
74744
74799
|
}
|
|
74745
74800
|
if (!y2 || !Number.isFinite(y2)) {
|
|
74746
74801
|
y2 = 1;
|
|
74747
74802
|
}
|
|
74748
74803
|
return {
|
|
74749
|
-
x,
|
|
74804
|
+
x: x2,
|
|
74750
74805
|
y: y2
|
|
74751
74806
|
};
|
|
74752
74807
|
}
|
|
@@ -74790,7 +74845,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74790
74845
|
}
|
|
74791
74846
|
}
|
|
74792
74847
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
74793
|
-
let
|
|
74848
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
74794
74849
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
74795
74850
|
let width = clientRect2.width / scale.x;
|
|
74796
74851
|
let height = clientRect2.height / scale.y;
|
|
@@ -74805,11 +74860,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74805
74860
|
const css = getComputedStyle$1(currentIFrame);
|
|
74806
74861
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
74807
74862
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
74808
|
-
|
|
74863
|
+
x2 *= iframeScale.x;
|
|
74809
74864
|
y2 *= iframeScale.y;
|
|
74810
74865
|
width *= iframeScale.x;
|
|
74811
74866
|
height *= iframeScale.y;
|
|
74812
|
-
|
|
74867
|
+
x2 += left2;
|
|
74813
74868
|
y2 += top2;
|
|
74814
74869
|
currentWin = getWindow(currentIFrame);
|
|
74815
74870
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -74818,7 +74873,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74818
74873
|
return rectToClientRect({
|
|
74819
74874
|
width,
|
|
74820
74875
|
height,
|
|
74821
|
-
x,
|
|
74876
|
+
x: x2,
|
|
74822
74877
|
y: y2
|
|
74823
74878
|
});
|
|
74824
74879
|
}
|
|
@@ -74831,10 +74886,10 @@ function getWindowScrollBarX(element, rect) {
|
|
|
74831
74886
|
}
|
|
74832
74887
|
function getHTMLOffset(documentElement, scroll) {
|
|
74833
74888
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
74834
|
-
const
|
|
74889
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
74835
74890
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
74836
74891
|
return {
|
|
74837
|
-
x,
|
|
74892
|
+
x: x2,
|
|
74838
74893
|
y: y2
|
|
74839
74894
|
};
|
|
74840
74895
|
}
|
|
@@ -74886,15 +74941,15 @@ function getDocumentRect(element) {
|
|
|
74886
74941
|
const body = element.ownerDocument.body;
|
|
74887
74942
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
74888
74943
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
74889
|
-
let
|
|
74944
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
74890
74945
|
const y2 = -scroll.scrollTop;
|
|
74891
74946
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
74892
|
-
|
|
74947
|
+
x2 += max(html.clientWidth, body.clientWidth) - width;
|
|
74893
74948
|
}
|
|
74894
74949
|
return {
|
|
74895
74950
|
width,
|
|
74896
74951
|
height,
|
|
74897
|
-
x,
|
|
74952
|
+
x: x2,
|
|
74898
74953
|
y: y2
|
|
74899
74954
|
};
|
|
74900
74955
|
}
|
|
@@ -74905,14 +74960,14 @@ function getViewportRect(element, strategy) {
|
|
|
74905
74960
|
const visualViewport = win.visualViewport;
|
|
74906
74961
|
let width = html.clientWidth;
|
|
74907
74962
|
let height = html.clientHeight;
|
|
74908
|
-
let
|
|
74963
|
+
let x2 = 0;
|
|
74909
74964
|
let y2 = 0;
|
|
74910
74965
|
if (visualViewport) {
|
|
74911
74966
|
width = visualViewport.width;
|
|
74912
74967
|
height = visualViewport.height;
|
|
74913
74968
|
const visualViewportBased = isWebKit();
|
|
74914
74969
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
74915
|
-
|
|
74970
|
+
x2 = visualViewport.offsetLeft;
|
|
74916
74971
|
y2 = visualViewport.offsetTop;
|
|
74917
74972
|
}
|
|
74918
74973
|
}
|
|
@@ -74932,7 +74987,7 @@ function getViewportRect(element, strategy) {
|
|
|
74932
74987
|
return {
|
|
74933
74988
|
width,
|
|
74934
74989
|
height,
|
|
74935
|
-
x,
|
|
74990
|
+
x: x2,
|
|
74936
74991
|
y: y2
|
|
74937
74992
|
};
|
|
74938
74993
|
}
|
|
@@ -74944,12 +74999,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
74944
74999
|
const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
|
|
74945
75000
|
const width = element.clientWidth * scale.x;
|
|
74946
75001
|
const height = element.clientHeight * scale.y;
|
|
74947
|
-
const
|
|
75002
|
+
const x2 = left2 * scale.x;
|
|
74948
75003
|
const y2 = top2 * scale.y;
|
|
74949
75004
|
return {
|
|
74950
75005
|
width,
|
|
74951
75006
|
height,
|
|
74952
|
-
x,
|
|
75007
|
+
x: x2,
|
|
74953
75008
|
y: y2
|
|
74954
75009
|
};
|
|
74955
75010
|
}
|
|
@@ -75069,10 +75124,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
75069
75124
|
setLeftRTLScrollbarOffset();
|
|
75070
75125
|
}
|
|
75071
75126
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
75072
|
-
const
|
|
75127
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
75073
75128
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
75074
75129
|
return {
|
|
75075
|
-
x,
|
|
75130
|
+
x: x2,
|
|
75076
75131
|
y: y2,
|
|
75077
75132
|
width: rect.width,
|
|
75078
75133
|
height: rect.height
|
|
@@ -75934,22 +75989,22 @@ function createFloatingSeparator(separator, editor) {
|
|
|
75934
75989
|
const rect = elements.reference.getBoundingClientRect();
|
|
75935
75990
|
const containerRect = editorElement.getBoundingClientRect();
|
|
75936
75991
|
const scaleFactor = getScaleFactor(editorElement);
|
|
75937
|
-
const
|
|
75992
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
75938
75993
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
75939
75994
|
const width = Math.round(rect.width / scaleFactor);
|
|
75940
75995
|
const height = Math.round(rect.height / scaleFactor);
|
|
75941
75996
|
return {
|
|
75942
|
-
x,
|
|
75997
|
+
x: x2,
|
|
75943
75998
|
y: y2,
|
|
75944
75999
|
data: { width, height }
|
|
75945
76000
|
};
|
|
75946
76001
|
}
|
|
75947
76002
|
}
|
|
75948
76003
|
]
|
|
75949
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
76004
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
75950
76005
|
Object.assign(floatingSeparator.style, {
|
|
75951
76006
|
top: `${y2}px`,
|
|
75952
|
-
left: `${
|
|
76007
|
+
left: `${x2}px`,
|
|
75953
76008
|
width: `${middlewareData.copy.width}px`,
|
|
75954
76009
|
height: `${middlewareData.copy.height}px`,
|
|
75955
76010
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -78042,11 +78097,11 @@ function hsv2rgb(h2, s2, v2) {
|
|
|
78042
78097
|
let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
|
|
78043
78098
|
return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
|
|
78044
78099
|
}
|
|
78045
|
-
function hsl2rgb(h2, s2,
|
|
78100
|
+
function hsl2rgb(h2, s2, l) {
|
|
78046
78101
|
s2 /= 100;
|
|
78047
|
-
|
|
78048
|
-
let a = s2 * Math.min(
|
|
78049
|
-
let f2 = (n, k2 = (n + h2 / 30) % 12) =>
|
|
78102
|
+
l /= 100;
|
|
78103
|
+
let a = s2 * Math.min(l, 1 - l);
|
|
78104
|
+
let f2 = (n, k2 = (n + h2 / 30) % 12) => l - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
|
|
78050
78105
|
return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
|
|
78051
78106
|
}
|
|
78052
78107
|
const prefix = "^\\s*";
|
|
@@ -78142,8 +78197,8 @@ function rgba(color) {
|
|
|
78142
78197
|
} else if (color in colors) {
|
|
78143
78198
|
return rgba(colors[color]);
|
|
78144
78199
|
} else if (hslRegex.test(color) || hslaRegex.test(color)) {
|
|
78145
|
-
const [h2, s2,
|
|
78146
|
-
return [...hsl2rgb(h2, s2,
|
|
78200
|
+
const [h2, s2, l, a] = hsla(color);
|
|
78201
|
+
return [...hsl2rgb(h2, s2, l), a];
|
|
78147
78202
|
} else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
|
|
78148
78203
|
const [h2, s2, v2, a] = hsva(color);
|
|
78149
78204
|
return [...hsv2rgb(h2, s2, v2), a];
|
|
@@ -78942,14 +78997,14 @@ function ensureViewBoundingRect() {
|
|
|
78942
78997
|
}
|
|
78943
78998
|
return viewMeasurer.getBoundingClientRect();
|
|
78944
78999
|
}
|
|
78945
|
-
function getPointRect(
|
|
79000
|
+
function getPointRect(x2, y2) {
|
|
78946
79001
|
const viewRect = ensureViewBoundingRect();
|
|
78947
79002
|
return {
|
|
78948
79003
|
top: y2,
|
|
78949
|
-
left:
|
|
79004
|
+
left: x2,
|
|
78950
79005
|
height: 0,
|
|
78951
79006
|
width: 0,
|
|
78952
|
-
right: viewRect.width -
|
|
79007
|
+
right: viewRect.width - x2,
|
|
78953
79008
|
bottom: viewRect.height - y2
|
|
78954
79009
|
};
|
|
78955
79010
|
}
|
|
@@ -79787,8 +79842,8 @@ const VFollower = vue.defineComponent({
|
|
|
79787
79842
|
if (follower === null)
|
|
79788
79843
|
return;
|
|
79789
79844
|
const target = VBinder.targetRef;
|
|
79790
|
-
const { x, y: y2, overlap } = props;
|
|
79791
|
-
const targetRect =
|
|
79845
|
+
const { x: x2, y: y2, overlap } = props;
|
|
79846
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
79792
79847
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
79793
79848
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
79794
79849
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -79958,8 +80013,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
|
|
|
79958
80013
|
return ResizeObserverSize2;
|
|
79959
80014
|
})();
|
|
79960
80015
|
var DOMRectReadOnly = (function() {
|
|
79961
|
-
function DOMRectReadOnly2(
|
|
79962
|
-
this.x =
|
|
80016
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
80017
|
+
this.x = x2;
|
|
79963
80018
|
this.y = y2;
|
|
79964
80019
|
this.width = width;
|
|
79965
80020
|
this.height = height;
|
|
@@ -79970,8 +80025,8 @@ var DOMRectReadOnly = (function() {
|
|
|
79970
80025
|
return freeze(this);
|
|
79971
80026
|
}
|
|
79972
80027
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
79973
|
-
var _a2 = this,
|
|
79974
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
80028
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
80029
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
79975
80030
|
};
|
|
79976
80031
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
79977
80032
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -83805,10 +83860,10 @@ function getFirstAvailableNode(nodes) {
|
|
|
83805
83860
|
}
|
|
83806
83861
|
function rawGetNext(node, loop) {
|
|
83807
83862
|
const sibs = node.siblings;
|
|
83808
|
-
const
|
|
83863
|
+
const l = sibs.length;
|
|
83809
83864
|
const { index: index2 } = node;
|
|
83810
83865
|
if (loop) {
|
|
83811
|
-
return sibs[(index2 + 1) %
|
|
83866
|
+
return sibs[(index2 + 1) % l];
|
|
83812
83867
|
} else {
|
|
83813
83868
|
if (index2 === sibs.length - 1)
|
|
83814
83869
|
return null;
|
|
@@ -83864,10 +83919,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
|
|
|
83864
83919
|
}
|
|
83865
83920
|
function rawGetPrev(node, loop) {
|
|
83866
83921
|
const sibs = node.siblings;
|
|
83867
|
-
const
|
|
83922
|
+
const l = sibs.length;
|
|
83868
83923
|
const { index: index2 } = node;
|
|
83869
83924
|
if (loop) {
|
|
83870
|
-
return sibs[(index2 - 1 +
|
|
83925
|
+
return sibs[(index2 - 1 + l) % l];
|
|
83871
83926
|
} else {
|
|
83872
83927
|
if (index2 === 0)
|
|
83873
83928
|
return null;
|
|
@@ -87591,7 +87646,7 @@ function requireEventemitter3() {
|
|
|
87591
87646
|
var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
|
|
87592
87647
|
if (!handlers2) return [];
|
|
87593
87648
|
if (handlers2.fn) return [handlers2.fn];
|
|
87594
|
-
for (var i2 = 0,
|
|
87649
|
+
for (var i2 = 0, l = handlers2.length, ee = new Array(l); i2 < l; i2++) {
|
|
87595
87650
|
ee[i2] = handlers2[i2].fn;
|
|
87596
87651
|
}
|
|
87597
87652
|
return ee;
|